function expand(namew){ var test = namew; t1 = new Tween(document.getElementsByName(test)[0].style,'width',Tween.strongEaseOut,166,402,0.3,'px'); t1.start(); } function impand(namew){ t2 = new Tween(document.getElementsByName(namew)[0].style,'width',Tween.strongEaseOut,402,166,0.3,'px'); t2.start(); } function getWindowHeight() { var windowHeight = 0; if (typeof(window.innerHeight) == 'number') { windowHeight = window.innerHeight; } else { if (document.documentElement && document.documentElement.clientHeight) { windowHeight = document.documentElement.clientHeight; } else { if (document.body && document.body.clientHeight) { windowHeight = document.body.clientHeight; } } } return windowHeight; } function setFooter() { if (document.getElementById) { var windowHeight = getWindowHeight(); if (windowHeight > 0) { var contentHeight = document.getElementById('content').offsetHeight; alert(contentHeight); var footerElement = document.getElementById('footer'); var footerHeight = footerElement.offsetHeight; if (windowHeight - (contentHeight + footerHeight) >= 0) { footerElement.style.top = ((windowHeight - (contentHeight + footerHeight)))-53 + 'px'; footerElement.style.visibility = "visible"; } else { footerElement.style.top = '0px'; } } } } var currentPhoto = 0; var secondPhoto = 1; var currentOpacity = new Array(); var imageArray = new Array("1.jpg","2.jpg","3.jpg"); var FADE_STEP = 2; var FADE_INTERVAL = 10; var pause = false; function init(img1,img2,img3) { imageArray = new Array(img1,img2,img3); currentOpacity[0]=99; for(i=1;i"; document.getElementById("mContainer").innerHTML = mHTML; if(document.all) { document.getElementsByName("photo")[currentPhoto].style.filter="alpha(opacity=100)"; } else { document.getElementsByName("photo")[currentPhoto].style.MozOpacity = .99; } mInterval = setInterval("crossFade()",FADE_INTERVAL); } function crossFade() { if(pause)return; currentOpacity[currentPhoto]-=FADE_STEP; currentOpacity[secondPhoto] += FADE_STEP; if(document.all) { document.getElementsByName("photo")[currentPhoto].style.filter = "alpha(opacity=" + currentOpacity[currentPhoto] + ")"; document.getElementsByName("photo")[secondPhoto].style.filter = "alpha(opacity=" + currentOpacity[secondPhoto] + ")"; } else { document.getElementsByName("photo")[currentPhoto].style.MozOpacity = currentOpacity[currentPhoto]/100; document.getElementsByName("photo")[secondPhoto].style.MozOpacity =currentOpacity[secondPhoto]/100; } if(currentOpacity[secondPhoto]/100>=.98) { currentPhoto = secondPhoto; secondPhoto++; if(secondPhoto == imageArray.length)secondPhoto=0; pause = true; xInterval = setTimeout("pause=false",3000); } } function doPause() { if(pause) { pause = false; document.getElementById("pauseBtn").value = "pause"; } else { pause = true; document.getElementById("pauseBtn").value = "play"; } } function getWinSize(hei){ var win = window; var pos = {x:0,y:0}; if(typeof win.innerWidth != 'undefined'){ pos.w = win.innerWidth; pos.h = win.innerHeight; }else if(win.document.body){ pos.w = parseInt(win.document.body.clientWidth); pos.h = parseInt(win.document.body.clientHeight); } document.getElementById('footerPattern').style.visibility = "visible"; document.getElementById('footRightPlant').style.visibility = "visible"; document.getElementById('footerPattern').style.bottom = hei + "px"; document.getElementById('footRightPlant').style.bottom = hei + "px"; }