<!--
if (document.all || document.getElementById){ //if IE4 or NS6+
document.write('<style type="text/css">\n')
document.write('.dyncontent{display: none; width: 285px; height: 90px;}\n')
document.write('</style>')
}

var curcontentindex=0
var messages=new Array()

function getElementByClass(classname){
var inc=0
var alltags=document.all? document.all : document.getElementsByTagName("*")
for (i=0; i<alltags.length; i++){
if (alltags[i].className==classname)
messages[inc++]=alltags[i]
}
}

function rotatecontent(){
//get current message index (to show it):
curcontentindex=(curcontentindex<messages.length-1)? curcontentindex+1 : 0
//get previous message index (to hide it):
prevcontentindex=(curcontentindex==0)? messages.length-1 : curcontentindex-1
messages[prevcontentindex].style.display="none" //hide previous message
messages[curcontentindex].style.display="block" //show current message
}

function loadContent() {
	if (document.all || document.getElementById)  {
		getElementByClass("dyncontent")
		setInterval("rotatecontent()", 7000)
	}
}

function popWin(url,window_name,X,Y) 
{newwindow=window.open(url,window_name,'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,left='+(screen.width-X)/2+',top='+(screen.height-Y)/2+',width='+X+',height='+Y+'');
if (window.focus) {newwindow.focus()}
}

function pollpop(url,X,Y) 
{newwindow=window.open(url,'name','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,left='+(screen.width-X)/2+',top='+(screen.height-Y)/2+',width='+X+',height='+Y+'');
if (window.focus) {newwindow.focus()}
}
//-->