/*
 *	jQuery Timer plugin v0.1
 *		Matt Schmidt [http://www.mattptr.net]
 *
 *	Licensed under the BSD License:
 *		http://mattptr.net/license/license.txt
 */
/*
 * jQuery Color Animations
 * Copyright 2007 John Resig
 * Released under the MIT and GPL licenses.
 */


(function(jQuery){jQuery.each(['backgroundColor','borderBottomColor','borderLeftColor','borderRightColor','borderTopColor','color','outlineColor'],function(i,attr){jQuery.fx.step[attr]=function(fx){if(fx.state==0){fx.start=getColor(fx.elem,attr);fx.end=getRGB(fx.end);}
fx.elem.style[attr]="rgb("+[Math.max(Math.min(parseInt((fx.pos*(fx.end[0]-fx.start[0]))+fx.start[0]),255),0),Math.max(Math.min(parseInt((fx.pos*(fx.end[1]-fx.start[1]))+fx.start[1]),255),0),Math.max(Math.min(parseInt((fx.pos*(fx.end[2]-fx.start[2]))+fx.start[2]),255),0)].join(",")+")";}});function getRGB(color){var result;if(color&&color.constructor==Array&&color.length==3)
return color;if(result=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color))
return[parseInt(result[1]),parseInt(result[2]),parseInt(result[3])];if(result=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color))
return[parseFloat(result[1])*2.55,parseFloat(result[2])*2.55,parseFloat(result[3])*2.55];if(result=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color))
return[parseInt(result[1],16),parseInt(result[2],16),parseInt(result[3],16)];if(result=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color))
return[parseInt(result[1]+result[1],16),parseInt(result[2]+result[2],16),parseInt(result[3]+result[3],16)];return colors[jQuery.trim(color).toLowerCase()];}
function getColor(elem,attr){var color;do{color=jQuery.curCSS(elem,attr);if(color!=''&&color!='transparent'||jQuery.nodeName(elem,"body"))
break;attr="backgroundColor";}while(elem=elem.parentNode);return getRGB(color);};})(jQuery);jQuery.timer=function(interval,callback)
{var interval=interval||100;if(!callback)
return false;_timer=function(interval,callback){this.stop=function(){clearInterval(self.id);};this.internalCallback=function(){callback(self);};this.reset=function(val){if(self.id)
clearInterval(self.id);var val=val||100;this.id=setInterval(this.internalCallback,val);};this.interval=interval;this.id=setInterval(this.internalCallback,this.interval);var self=this;};return new _timer(interval,callback);};$(document).ready(function(){var caeciliaL={src:'./swf/cclight.swf'};sIFR.activate(caeciliaL);sIFR.replace(caeciliaL,{selector:'h1',css:'.sIFR-root { background-color: #ffffff; color: #586169; }'});sIFR.replace(caeciliaL,{selector:'#logo h2',css:['.sIFR-root { background-color: #ffffff; color: #586169; }','a {color: #586169; text-decoration: none;}','a:hover {color: #000000; text-decoration: none;}']});sIFR.replace(caeciliaL,{selector:'h3',css:'.sIFR-root { background-color: #ffffff; color: #364147; }'});$("div[id$='prjimgnav']:first").prepend("<a href=\"javascript: history.go(-1)\" title=\"Back\">&lt; </a>");$('#news-item-1').animate({color:'#253036'},400);$.timer(10000,function(timer){$('#hide-0-prjimg img').fadeOut();$('#news-item-1').animate({color:'#586169'},400);$('#news-item-2').animate({color:'#253036'},400);$('#hide-1-prjimg').fadeIn();timer.stop();$.timer(10000,function(timer){$('#hide-1-prjimg').fadeOut();$('#news-item-2').animate({color:'#586169'},400);$('#news-item-3').animate({color:'#253036'},400);$('#hide-2-prjimg').fadeIn();timer.stop();$.timer(10000,function(timer){$('#hide-2-prjimg').fadeOut();$('#news-item-3').animate({color:'#586169'},400);$('#news-item-4').animate({color:'#253036'},400);$('#hide-3-prjimg').fadeIn();timer.stop();$.timer(10000,function(timer){$('#hide-3-prjimg').fadeOut();$('#news-item-4').animate({color:'#586169'},400);$('#news-item-5').animate({color:'#253036'},400);$('#hide-4-prjimg').fadeIn();timer.stop();$.timer(10000,function(timer){$('#hide-4-prjimg').fadeOut();$('#news-item-5').animate({color:'#586169'},400);$('#news-item-1').animate({color:'#586169'},400);$('#news-item-1 dd a').animate({color:'#253036'},400);$('#hide-0-prjimg img').fadeIn();timer.stop();});});});});timer.stop();});});