var ns4 = (navigator.appName == "Netscape")? true:false
var ie4 = (document.all)? true:false
var leftposition = 13;
var topposition = 0;
var textheight = 100;

if(ie4 == true) topposition = 296;
if(ns4 == true) topposition = 296;
var frameheight = 140;
var bottomposition = topposition + frameheight;
var currentpos = bottomposition;
var textinit = topposition - textheight; 
var start = true;	

function tickinit() {
	if(ie4 == true) timeoutID = setInterval("tickmove()",100);
	if(ns4 == true) timeoutID = setInterval("tickmove()",150);
}

function tickmove() {
	if (start) ticerObj = document.getElementById("ticerID").style
	currentpos = currentpos - 2;
	if(currentpos < textinit ) currentpos = bottomposition;
	cliptop = topposition - currentpos;
	clipbottom = bottomposition - currentpos;
	ticerObj.left = leftposition;
	if(ie4 == true) { ticerObj.top =currentpos } 
	if(ns4 == true) { ticerObj.top =currentpos }
	ticerObj.clip = "rect(" + cliptop + "px auto "+clipbottom+"px auto)";

	if (start) {
		ticerObj.visibility = "visible";
		start=false;
	}
	
}
function tickstop() {
	clearTimeout( timeoutID);
}

function newWindow(adver) {
	AdverWin = window.open("", "adverWin", "width=500,height=175,left=0,top=300")
	AdverWin.document.write("<HEAD><TITLE>ÏÐÎÌÎÖÈß!!!</TITLE></HEAD>")
	AdverWin.document.write("<BODY><IMG src=" + adver + "></BODY>")
	AdverWin.focus()
}