var yenix = null;
function popup(a,b,c) {
	if(yenix == null || yenix.closed) {
		w = (b != null) ? b : 576;
		h = (c != null) ? c : 360;
		yenix=window.open(a,"outputWindow","menubar=no,scrollbars=yes,resizable=yes,width="+w+",height="+h);
		//yenix=window.open(a,"outputWindow","menubar=no,scrollbars=yes,resizable=yes,width=600,height=400");
	} 
	else {
	window.yenix.location=a;
	}
if(navigator.appName == "Microsoft Internet Explorer" &&
	parseInt(navigator.appVersion) >= 4) {
      		yenix.focus();
      	} 
	else {
      		if(navigator.appName != "Microsoft Internet Explorer")
      		yenix.focus(); 
	}
}


/*
window.onscroll = function(){
	var b=window.document.body;
	var sr = window.sagreklam;
	if(sr != null){
		status = b.clientHeight +" :: "+ b.scrollTop;
		var posTop = parseInt((b.clientHeight - sr.offsetHeight) / 2);
		if(posTop > 0){
			sr.style.posTop = b.scrollTop + posTop;
		}
		else {
			sr.style.posTop = b.scrollTop;
		}
	}

}

window.onresize = function(){
	window.onscroll();
}
*/
window.onload=function(){
	//window.onscroll();
	
	if(window["sagreklam"] != null)	window["sagreklam"].style.posHeight = window.document.body.scrollHeight;
	
}
/*================================================================*/



