var banInt = "" var banObj = ""; var banInd = 0; var banner = new Array(4); var bannertitle = new Array(4); var bannerlink = new Array(4); var bannerlinktarget = new Array(4); var bannerwidth = new Array(4); var bannerheight = new Array(4); var bannerduration = new Array(4); banner[0] = "/img/banners/theschoolhouse1.png"; bannertitle[0] = "The Schoolhouse Project"; bannerlink[0] = "http://www.theschoolhouseproject.ca/"; bannerlinktarget[0] = "_blank"; bannerwidth[0] = "574"; bannerheight[0] = "450"; bannerduration[0] = "8"; banner[1] = "/img/banners/lpc1.png"; bannertitle[1] = "Living Planet Community"; bannerlink[1] = "http://community.wwf.ca/"; bannerlinktarget[1] = "_blank"; bannerwidth[1] = "574"; bannerheight[1] = "450"; bannerduration[1] = "8"; banner[2] = "/img/banners/globalclassroom1.png"; bannertitle[2] = "Unicef Global Classroom"; bannerlink[2] = "http://globalclassroom.unicef.ca/"; bannerlinktarget[2] = "_blank"; bannerwidth[2] = "574"; bannerheight[2] = "450"; bannerduration[2] = "8"; banner[3] = "/img/banners/ingfairfees1.gif"; bannertitle[3] = "ING Fair Fees"; bannerlink[3] = "http://www.fairfees.ca"; bannerlinktarget[3] = "_blank"; bannerwidth[3] = "574"; bannerheight[3] = "450"; bannerduration[3] = "8"; for(var i in banner) MM_preloadImages(banner[i]); banObj = MM_findObj('imgBanner',''); if (banObj!="") { if (version>6) { try { banObj.style.filter = "progid:DXImageTransform.Microsoft.Pixelate(Duration=.5)"; if (typeof(banObj.filters[0])=="undefined") { } else { gofilters = true; } } catch(err) {} } changeBanner(); } function drawBanner(obj,id) { var html = ""; if (banObj=="") banObj = MM_findObj('imgBanner',''); if (bannerlink[id]!='') html += ""; html += ""+bannertitle[id]+""; if (bannerlink[id]!='') html += ""; if (banObj!=null) with (banObj) if (document.layers) {document.write(unescape(html)); document.close();} else innerHTML = unescape(html); } function changeBanner() { if (gofilters) banObj.filters[0].Apply(); drawBanner(banObj, banInd); if (gofilters) banObj.filters[0].Play(); banInt = setTimeout("changeBanner()",(bannerduration[banInd]*1000)); banInd++;if(banInd>=banner.length)banInd=0; }