function showWindow() {
	popwindow = window.open(popwindowURL, "popwindow", "toolbar=no,width="+popwindowwidth+",height="+popwindowheight+",top="+popwindowtop+",left="+(-popwindowwidth)+"");
	if (document.all) {
		marginright = screen.width+50
	}
	if (document.layers) {
		marginright = screen.width+50
	}
	pagecenter=Math.floor(marginright/2)-Math.floor(popwindowwidth/2)
	movewindow()
}

function movewindow() {
	if (popwindowleft<=pagecenter) {
		popwindow.moveTo(popwindowleft,popwindowtop)
		popwindowleft+=step
		timer= setTimeout("movewindow()",pause)
	}else {
		clearTimeout(timer)
		timer= setTimeout("movewindow2()",waitingtime)
	}
}

function movewindow2() {
	if (popwindowleft<=marginright) {
		popwindow.moveTo(popwindowleft,popwindowtop)
		popwindowleft+=step
		timer= setTimeout("movewindow2()",pause)
	}else {
		clearTimeout(timer)
		popwindow.close()
	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
	Window.open(theURL,winName,features);
}

function doBlink() {
        var blink = document.all.tags("BLINK")
        for (var i=0; i<blink.length; i++)
                blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : ""
}

function startBlink() {
        if (document.all)
                setInterval("doBlink()",500)
}

