var detectedVersion = -1;var failFile = null;var flashPlugin = navigator.plugins['Shockwave Flash'];var flash_ver = -1;var flashVersion = 0;var flashVersion_DONTKNOW = -1;var hours = 24;var mantleSwfOutput = "";var mantleFailoverOutput = "";var name = "";var result = null;var returnvalue = "";var search = "";var strMyBrowser = "";var swfFile = null;var rotBlock = new Array();var len = 0;var itemIndex = 0;var fTimerID = null;var myimages = new Array();var buttonTime = 100;var rotateTime = 5200;function getCookie(name) {    search = name + "=";    returnvalue = "";    if (document.cookie.length > 0) {        offset = document.cookie.indexOf(search)	// if cookie exists    if (offset != -1) {        offset += search.length        // set index of beginning of value        end = document.cookie.indexOf(";", offset);			// set index of end of cookie value			if (end == -1) end = document.cookie.length;			returnvalue=unescape(document.cookie.substring(offset, end));		}	}	return returnvalue;};function getFlashVersion2(baseVersion) {	if (detectedVersion != -1) return detectedVersion;	if (baseVersion == null) baseVersion = 10;	if (navigator.plugins != null && navigator.plugins.length > 0) {		var pluginRef = navigator.plugins['Shockwave Flash'];		if (pluginRef != null) {			var verIndex = pluginRef.description.indexOf (".");			detectedVersion = parseInt(pluginRef.description.substr(verIndex - 1, 1));		}	}		else if ((window.ActiveXObject) && (navigator.userAgent.indexOf("MSIE")!= -1) && (navigator.userAgent.indexOf("Windows") != -1)) {			document.write('<scr' + 'ipt language="VBScript"\> \nPrivate i, x\nOn Error Resume Next\nMM_FlashControlInstalled = False\nFor i = ' + baseVersion + ' To 1 Step -1\n');			document.write('Set x = CreateObject("ShockwaveFlash.ShockwaveFlash." & i)\nMM_FlashControlInstalled = IsObject(x)\nIf MM_FlashControlInstalled Then\ndetectedVersion = CStr(i)\nExit For\nEnd If\nNext\n');			document.write('</scr' + 'ipt\> \n');	}	return detectedVersion;}function makeCookie(name,hours) {    if (name != "true") {        if (hours != null && hours.length > 0) {            expire = new Date((new Date()).getTime() + hours * 3600000)        } else {            expire = new Date((new Date()).getTime() + 24 * 3600000)        }        document.cookie=name + "=true; expires=" + expire.toGMTString();        return;    }	}function showFeature() {    getFlashVersion2();    if (detectedVersion >= 5) bolPlugin = true; else bolPlugin = false;    if (bolPlugin) {        document.write(mantleSwfOutput);        return;    }     else {        document.write(mantleFailoverOutput);        return;    }}function trackFlash(){    result=getCookie("flashtest");    if (result != "true") {        flash_ver = getFlashVersion2();        document.writeln('<img src="http://images.compuserve.com/menu/i/ft/flashcontrol.gif" width="1" height="1" border="0">');        document.writeln('<img src="http://images.compuserve.com/menu/i/ft/flash' + flash_ver + '.gif" width="1" height="1" border="0">');        document.cookie="flashtest=true";    };}if(document.all && !document.getElementById) {    document.getElementById = function(id) {         return document.all[id];    }}function rotateInit(){        for (x=0; x<rotateInit.arguments.length; x++){	    rotBlock[x] = rotateInit.arguments[x];	}	len = (rotBlock.length)-1;}function rotate(){    clearTimeout(fTimerID);    document.getElementById(rotBlock[itemIndex]).style.display = "none";    itemIndex++;    if(itemIndex > len)        itemIndex = 0;    document.getElementById(rotBlock[itemIndex]).style.display = "block";    fTimerID = setTimeout('rotate()', rotateTime);    return itemIndex;}function pause() {    if (fTimerID != null) {        clearTimeout(fTimerID);        fTimerID = null;    }}   function forward() {    if (fTimerID != null) {    clearTimeout(fTimerID);    }    fTimerID = setTimeout('rotate()', buttonTime);}function backwards(){    if (fTimerID != null) {    clearTimeout(fTimerID);    }    document.getElementById(rotBlock[itemIndex]).style.display = "none";    itemIndex--;    if(itemIndex <= -1)        itemIndex = len;    document.getElementById(rotBlock[itemIndex]).style.display = "block";    fTimerID = setTimeout('rotate()',rotateTime);    return itemIndex;}function h(){	var ht03 = document.getElementById("unit03").offsetHeight;	var ht04 = document.getElementById("unit04").offsetHeight;	var ht06 = document.getElementById("unit06").offsetHeight;	var ht08 = document.getElementById("unit08").offsetHeight;	var ht11 = document.getElementById("unit11").offsetHeight;	var ht12 = document.getElementById("unit12").offsetHeight;	var ht13 = document.getElementById("unit13").offsetHeight;	var ht14 = document.getElementById("unit14").offsetHeight;	var ht15 = document.getElementById("unit15").offsetHeight;if (ht03<(ht04+ht06+ht08+ht11+ht12+2*ht14)) {		document.getElementById("unit03").style.height=(ht04+ht06+ht08+ht11+ht12+2*ht14+15)+"px";	}}document.write("<style type='text/css'>#fade {visibility:hidden;}</style>");function goToWebmail() {    document.loginform.username.value = document.loginform.screenname.value;    document.loginform.action = document.loginform.webmailDestination.value;    document.loginform.submit();}function initImage() {	imageId = 'fade';	image = document.getElementById(imageId);	setOpacity(image, 0);	image.style.visibility = "visible";	fadeIn(imageId,0);}function fadeIn(objId,opacity) {	if (document.getElementById) {		obj = document.getElementById(objId);		if (opacity <= 100) {			setOpacity(obj, opacity);			opacity += 10;			window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 100);		}	}}function setOpacity(obj, opacity) {	opacity = (opacity == 100)?99.999:opacity;	// IE/Win	obj.style.filter = "alpha(opacity:"+opacity+")";	// Safari<1.2, Konqueror	obj.style.KHTMLOpacity = opacity/100;	// Older Mozilla and Firefox	obj.style.MozOpacity = opacity/100;	// Safari 1.2, newer Firefox and Mozilla, CSS3	obj.style.opacity = opacity/100;}window.onload = function() {initImage()}
