	var scrollerwidth=274;
	var scrollerheight=63;
	var scrollerbgcolor='';
	var scrollerbackground='';
	var num = 4;
	var scrollspeed='5000';
	var waitingtime='100';
	var messages=new Array();

	function CallLayer(id, src, w, h)
	{
		document.getElementById("pop").innerHTML = "<iframe name='" + id + "' id='" + id + "' width='" + w + "' height='" + h + "' src='" + src + "' scrolling='no' frameborder='0'></iframe>";
	}

	/* SEARCH ON OVER */
	function MM_swapImgRestore() { //v3.0
	  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}

	function MM_preloadImages() { //v3.0
	  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}

	function MM_findObj(n, d) { //v4.01
	  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	  if(!x && d.getElementById) x=d.getElementById(n); return x;
	}

	function MM_swapImage() { //v3.0
	  MM_swapImgRestore();
	  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}


	var initialtab=[1, "sc1"]

	function cascadedstyle(el, cssproperty, csspropertyNS){
		if (el.currentStyle)
			return el.currentStyle[cssproperty]
		else if (window.getComputedStyle){
			var elstyle=window.getComputedStyle(el, "")
			return elstyle.getPropertyValue(csspropertyNS)
		}
	}

	var previoustab=""

	function expandcontent(cid, aobject){
		if (document.getElementById){
			highlighttab(aobject);
			detectSourceindex(aobject);
			if (previoustab!="")
				document.getElementById(previoustab).style.display="none";
				document.getElementById(cid).style.display="block";
				previoustab=cid;
			if (aobject.blur)
				aobject.blur();
				return false;
		}else{
			return true;
		}
	}

	function highlighttab(aobject){
		if (typeof tabobjlinks=="undefined")
			collecttablinks()
			for (i=0; i<tabobjlinks.length; i++)
				tabobjlinks[i].style.backgroundColor=initTabcolor
				var themecolor=aobject.getAttribute("theme")? aobject.getAttribute("theme") : initTabpostcolor
				aobject.style.backgroundColor=document.getElementById("tabcontentcontainer").style.backgroundColor=themecolor
	}

	function collecttablinks(){
		var tabobj=document.getElementById("tablist")
		tabobjlinks=tabobj.getElementsByTagName("A")
	}

	function detectSourceindex(aobject){
		for (i=0; i<tabobjlinks.length; i++){
			if (aobject==tabobjlinks[i]){
				tabsourceindex=i 
				break
			}
		}
	}

	function do_onload(){
		var cookiename=(typeof persisttype!="undefined" && persisttype=="sitewide")? "tabcontent" : window.location.pathname
		var cookiecheck=window.get_cookie && get_cookie(cookiename).indexOf("|")!=-1
		collecttablinks()
		initTabcolor=cascadedstyle(tabobjlinks[1], "backgroundColor", "background-color")
		initTabcolor=cascadedstyle(tabobjlinks[1], "backgroundColor", "background-color")
		initTabpostcolor=cascadedstyle(tabobjlinks[0], "backgroundColor", "background-color")
		if (typeof enablepersistence!="undefined" && enablepersistence && cookiecheck){
			var cookieparse=get_cookie(cookiename).split("|")
			var whichtab=cookieparse[0]
			var tabcontentid=cookieparse[1]
			expandcontent(tabcontentid, tabobjlinks[whichtab])
		}else
			expandcontent(initialtab[1], tabobjlinks[initialtab[0]-1])
	}

	function move1(whichlayer){
		tlayer=eval(whichlayer);
		if (tlayer.top>0&&tlayer.top<=num){
			tlayer.top=0;
			setTimeout("move1(tlayer)",scrollspeed);
			setTimeout("move2(document.main.document.second)",scrollspeed);
			return;
		}
		if (tlayer.top>=tlayer.document.height*-1){
			tlayer.top-=num;
			setTimeout("move1(tlayer)",waitingtime);
		}
		else{
			tlayer.top=scrollerheight;
			tlayer.document.write(messages[i]);
			tlayer.document.close();
			if (i==messages.length-1)
				i=0;
			else
				i++;
		}
	}
	function move2(whichlayer){
		tlayer2=eval(whichlayer);
		if (tlayer2.top>0&&tlayer2.top<=num){
			tlayer2.top=0;
			setTimeout("move2(tlayer2)",scrollspeed);
			setTimeout("move1(document.main.document.first)",scrollspeed);
			return;
		}
		if (tlayer2.top>=tlayer2.document.height*-1){
			tlayer2.top-=num;
			setTimeout("move2(tlayer2)",waitingtime);
		}
		else{
			tlayer2.top=scrollerheight;
			tlayer2.document.write(messages[i]);
			tlayer2.document.close();
			if (i==messages.length-1)
				i=0;
			else
				i++;
		}
	}
	function move3(whichdiv){
		tdiv=eval(whichdiv);
		if (tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=num){
			tdiv.style.pixelTop=0;
			setTimeout("move3(tdiv)",scrollspeed);
			setTimeout("move4(second2)",scrollspeed);
			return;
		}
		if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1){
			tdiv.style.pixelTop-=num;
			setTimeout("move3(tdiv)",waitingtime);
		}
		else{
			tdiv.style.pixelTop=scrollerheight;
			tdiv.innerHTML=messages[i];
			if (i==messages.length-1)
				i=0;
			else
				i++;
		}
	}
	function move4(whichdiv){
		tdiv2=eval(whichdiv);
		if (tdiv2.style.pixelTop>0&&tdiv2.style.pixelTop<=num){
			tdiv2.style.pixelTop=0;
			setTimeout("move4(tdiv2)",scrollspeed);
			setTimeout("move3(first2)",scrollspeed);
			return;
		}
		if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1){
			tdiv2.style.pixelTop-=num;
			setTimeout("move4(second2)",waitingtime);
		}
		else{
			tdiv2.style.pixelTop=scrollerheight;
			tdiv2.innerHTML=messages[i];
			if (i==messages.length-1)
				i=0;
			else
				i++;
		}
	}
	function startscroll(){
		if (document.all){
			move3(first2);
			second2.style.top=scrollerheight;
			second2.style.visibility='visible';
		}else if (document.layers){
			document.main.visibility='show';
			move1(document.main.document.first);
			document.main.document.second.top=scrollerheight+num;
			document.main.document.second.visibility='show';
		}
	}

	function loginRef(uri) {
		document.loginRefFrm.referer.value = location.href;
		document.loginRefFrm.action = uri;
		document.loginRefFrm.submit();
	}

	function printOk(){
		var printwin;
		printwin = window.open("/home/print.jsp","print","left=10px;top=10px;height=500,width=660,scrollbars=yes,toolbar=yes,menubar=yes");
		printwin.focus();
	}
