var isNN4 = (document.layers) ? true : false;
var isIE4 = (document.all) ? true : false;
var isOpera = (window.opera) ? true : false;
var isW3C = (document.getElementById && !isIE4) ? true : false;
var isDHTML = (isIE4 || isW3C || isNN4) ? true : false;
if ((isIE4) && !(document.getElementById)) document.getElementById = new Function("id","return document.all[id]");

var opac=0, oitem=1, floattime=65535; 
var actualwidth, cross_cloud, cross_cloud2;

function fadeIn() { 
if (oitem==1) {otemp=document.getElementById('logo')} else {otemp=document.getElementById('slogan')}
if(opac<101) { opac+=2; 
if(isIE4) otemp.filters.alpha.opacity = opac; 
if(isW3C) otemp.style.MozOpacity = opac/100; 
setTimeout('fadeIn()', 30); } 
else {opac=0; oitem+=1; if (oitem<3) {setTimeout('fadeIn()', 60);}}
}

function fillclouds(ft) {
cross_cloud1=document.getElementById("temp1"); cross_cloud2=document.getElementById("temp2");
actualwidth=document.getElementById("temp2").offsetWidth; cross_cloud2.style.left=actualwidth+"px";
if (ft) {floattime=ft} else {floattime=65535}
floatclouds();
}

function floatclouds() {
if (parseInt(cross_cloud1.style.left)>(actualwidth*(-1)+8)) {cross_cloud1.style.left=parseInt(cross_cloud1.style.left)-1+"px"} else {cross_cloud1.style.left=parseInt(cross_cloud2.style.left)+actualwidth+"px"}
if (parseInt(cross_cloud2.style.left)>(actualwidth*(-1)+8)) {cross_cloud2.style.left=parseInt(cross_cloud2.style.left)-1+"px"} else {cross_cloud2.style.left=parseInt(cross_cloud1.style.left)+actualwidth+"px"}
floattime=floattime-1; if (floattime>0) {setTimeout("floatclouds()",60)}
}

