function openWin(URL,intWidth,intHeight) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width="+intWidth+",height="+intHeight+",left = 212,top = 217');");
}
function closeWin() {
  window.close();
}

function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}


function startPolling(){

	setInterval("adScroll()",1000)
}
var position = 0;
function adScroll(){
		
		var _left = document.getElementById('_left');
		var _right = document.getElementById('_right');
		if (navigator.appName == "Microsoft Internet Explorer")
		{
		position = document.body.scrollTop;
		}
		else {
		position = window.pageYOffset;
		}
		//	alert('catched :)');
		_left.style.top = position +'px';
		_right.style.top = position +'px';
}