function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) oldonload(); func(); } } } function change(num,limit){ if (num==limit){num=0;} num++; img=eval("p"+num); blendimage('logodiv', 'logo', img, 300); setTimeout("change("+num+","+limit+")",5000); } function blendimage(divid, imageid, imagefile, millisec) { var speed = Math.round(millisec / 10); var timer = 0; document.getElementById(divid).style.backgroundImage = "url(" + document.getElementById(imageid).src + ")"; changeOpac(0, imageid); document.getElementById(imageid).src = imagefile; for(i = 0; i <= 100; i++) { setTimeout("changeOpac(" + i + ",'" + imageid + "')",(timer * speed)); timer++; } } function changeOpac(opacity, id){ var object = document.getElementById(id).style; object.opacity = (opacity / 100); object.MozOpacity = (opacity / 100);object.KhtmlOpacity = (opacity / 100); object.filter = "alpha(opacity=" + opacity + ")"; } function blendimageORG(divid, imageid, imagefile, millisec) {var speed = Math.round(millisec / 10);var timer = 0;document.getElementById(divid).style.backgroundImage = "url(" + document.getElementById(imageid).src + ")";changeOpac(0, imageid);document.getElementById(imageid).src = imagefile;for(i = 0; i <= 100; i++) { setTimeout("changeOpac(" + i + ",'" + imageid + "')",(timer * speed)); timer++; }} var myimages = new Array(); function preloading(max){ for (x=1; x<=max; x++){ myimages[x] = new Image(); myimages[x].src = eval('p'+x); }} function isset(variable){ var temp = (undefined!==eval("window."+variable)); if (temp) { try{ if (typeof(eval("window."+variable)) === 'function') return false; } catch(err) {} } return temp;} function $() { var elements = new Array(); for (var i = 0; i < arguments.length; i++) { var element = arguments[i]; if (typeof element == 'string') element = document.getElementById(element); if (arguments.length == 1) return element; elements.push(element); } return elements; } // div opener/closers function closeall(CN){ var id=document.getElementsByTagName('div'); var x=0; for (x=0; x