var StartV = 0.5; var EndV = 1; var MidV; var Inc = 0.18; var mSec = 20; var Power = 3; var goFirst = 0; document.onmouseover = mouseOver; document.onmouseout = mouseOut; document.onmousedown = mouseDown; document.onmouseup = mouseUp; document.onmousemove = mouseMove; document.onkeypress = keypress; function mouseOver() { var vSrc = window.event.srcElement; if (vSrc.className == "child2" || vSrc.className == "child3" || vSrc.className == "parent") { fColor = vSrc.style.backgroundColor; vSrc.style.backgroundColor = "FFFFFF"; window.event.cancelbubble == true; } if (vSrc.className == "tubs") { fColor = vSrc.style.backgroundColor; tColor = vSrc.style.color; vSrc.style.backgroundColor = "FFFFFF"; vSrc.style.color = "000000"; window.event.cancelbubble == true; } if (vSrc.className == "Icon" && vSrc.id == "Icon1") { Cramp = vSrc.src vSrc.src = "../images/power_nrm.gif"; } if (vSrc.className == "Icon" && vSrc.id == "Icon2") { Cramp = vSrc.src vSrc.src = "../images/ease_nrm.gif"; } if (vSrc.className == "Icon" && vSrc.id == "Icon3") { Cramp = vSrc.src vSrc.src = "../images/manage_nrm.gif"; } if (vSrc.className == "Icon" && vSrc.id == "Icon4") { Cramp = vSrc.src vSrc.src = "../images/comp_nrm.gif"; } } function mouseOut() { var vSrc = window.event.srcElement; if (vSrc.className == "child2" || vSrc.className == "child3" || vSrc.className == "parent") { vSrc.style.backgroundColor = ""; window.event.cancelbubble == true; } if (vSrc.className == "tubs") { vSrc.style.backgroundColor = fColor; vSrc.style.color = tColor; window.event.cancelbubble == true; } if (vSrc.className == "Icon") { vSrc.src = Cramp; } } function mouseDown() { var vSrc = window.event.srcElement; //if (vSrc.className == "child2" && vSrc.Arr != null) { //} if (vSrc.className == "Icon" && vSrc.id == "Icon1") { vSrc.src = "../images/powerful_ico.gif"; vSrc.className = "IconX"; } if (vSrc.className == "Icon" && vSrc.id == "Icon2") { vSrc.src = "../images/ease_ico.gif"; vSrc.className = "IconX"; } if (vSrc.className == "Icon" && vSrc.id == "Icon3") { vSrc.src = "../images/manage_ico.gif"; vSrc.className = "IconX"; } if (vSrc.className == "Icon" && vSrc.id == "Icon4") { vSrc.src = "../images/compatbl_ico.gif"; vSrc.className = "IconX"; } } function mouseUp() { var vSrc = window.event.srcElement; if (vSrc.className == "child2" || vSrc.className == "child3" || vSrc.className == "parent") { window.event.cancelbubble == true; } } function mouseMove() { top.JavaVar.varTimerOn="0"; } function keypress() { top.JavaVar.varTimerOn="0"; } function closeAll(el) { divColl=document.all.tags("DIV"); for (i=0; i< divColl.length; i++) { if (el != "bib") { felEl=eval(el + "Child1"); if ((divColl(i).className == "child1") && (felEl != divColl(i))) { divColl(i).style.display="none"; } } else { if (divColl(i).className == "child1") { divColl(i).style.display="none"; } } } } // function expandIE(el) { whichEl=eval(el + "Child1"); closeAll(el); //whichIm=event.srcElement; if (whichEl.style.display != "block") { whichEl.style.display = "block"; whichEl.isExpanded=true; //alert(whichEl.id); } else { whichEl.style.display="none"; whichEl.isExpanded=false; } } function expandIE2(el) { whichEl=eval(el + "Child3"); if (top.JavaVar.menuItem != 0) { whichIm=eval(top.JavaVar.menuItem); top.JavaVar.menuItem = 0;} else { whichIm=event.srcElement; top.JavaVar.menuItem = 0;} if (whichEl.style.display != "block") { whichEl.style.display = "block"; whichEl.isExpanded=true; //alert(whichIm.id); if (whichIm.Arr != null) { //alert('TestOn'); whichArrow = eval(whichIm.Arr); whichArrow.src = "../images/tocuparw.gif"; } } else { whichEl.style.display="none"; whichEl.isExpanded=false; if (whichIm.Arr != null) { whichArrow = eval(whichIm.Arr); whichArrow.src = "../images/downarrw.gif"; } } } // function start(bar) { //alert (pointer.style.posLeft) timer = window.setTimeout("FadeTitle();", 500, "JavaScript"); } function Audio1(bar) { top.BGSounds.location="../audio/fade.htm"; timer = window.setTimeout("FadeTitle();", 0, "JavaScript"); } function FadeTitle() { if (EndV > .9999) { StartV = StartV + Inc; MidV = Math.sin(StartV) + 1; EndV = Math.pow(MidV,Power); Title.filters.alpha.opacity = Title.filters.alpha.opacity + EndV; timer = window.setTimeout("FadeTitle();", mSec, "JavaScript"); } else { StartV = 0.5; EndV = 1; Inc = 0.053; mSec = 20; timer = window.setTimeout("TitleSlide();", 100, "JavaScript"); } } function Audio2() { top.BGSounds.location="../audio/slide.htm"; timer = window.setTimeout("TitleSlide();", 0, "JavaScript"); } function TitleSlide() { if (EndV > .9999) { StartV = StartV + Inc; MidV = Math.sin(StartV) + 1; EndV = Math.pow(MidV,Power); MainBody.style.posTop = MainBody.style.posTop + EndV; timer = window.setTimeout("TitleSlide();", mSec, "JavaScript"); } else { top.JavaVar.varTimerReady = 1; } }