var p='intro';var intro;var ias;var ci;var pi;var preInitTimer;preInit();function preInit(){if((document.getElementById)&&(intro=document.getElementById(p))){intro.style.visibility="hidden";if(typeof preInitTimer!='undefined')clearTimeout(preInitTimer);}else{preInitTimer=setTimeout("preInit()",2);}}
function fader(ino,opacity){var obj=ias[ino];if(obj.style){if(obj.style.MozOpacity!=null){obj.style.MozOpacity=(opacity/100)-.001;}else if(obj.style.opacity!=null){obj.style.opacity=(opacity/100)-.001;}else if(obj.style.filter!=null){obj.style.filter="alpha(opacity="+opacity+")";}}}
function fadeInit(){if(document.getElementById){preInit();ias=new Array;var node=intro.firstChild;while(node){if(node.nodeType==1){ias.push(node);}
node=node.nextSibling;}
for(i=0;i<ias.length;i++){ias[i].style.position='absolute';ias[i].style.top=0;ias[i].style.zIndex=0;fader(i,0);}
intro.style.visibility='visible';ci=0;pi=ias.length-1;opacity=100;fader(ci,100);window.setTimeout("crossfade(100)",2000);}}
function crossfade(opacity){if(opacity<100){fader(ci,opacity);opacity+=10;window.setTimeout("crossfade("+opacity+")",100);}else{fader(pi,0);pi=ci;ci+=1;if(ci>=ias.length){ci=0;}
ias[pi].style.zIndex=0;ias[ci].style.zIndex=100;opacity=0;window.setTimeout("crossfade("+opacity+")",3000);}}
addEvent(window,'load',fadeInit)
function addEvent(elm,evType,fn,useCapture)
{if(elm.addEventListener){elm.addEventListener(evType,fn,useCapture);return true;}else if(elm.attachEvent){var r=elm.attachEvent("on"+evType,fn);return r;}}