var myGAW;
var myGA = 0;
var hw = null;
function help(){
	var url, width, height, popwidth, popheight, topPos, leftPos, prop;
	if(hw != null) hw.close();
	url = 'http://www.vucutgelistirme.net/kutucuk/help.htm';
	width = 800;height = 600;
	popwidth = 300;popheight = 300;
	if (document.all || document.layers){
		width = screen.availWidth;
		height = screen.availHeight;
	}
	topPos = (width-popwidth)/2;
	leftPos = (height-popheight)/2;	
	prop = 'status=no,toolbar=no,menubar=no,directories=no,location=no,scrollbars=yes,resizable=no,alwaysRaised=yes,titlebar=yes,z-lock=yes';
	prop += ',width=' + popwidth + ',height=' + popheight + ',top=' + topPos + ',left=' + leftPos;
	hw = window.open(url,"helpbrowser",prop);
	hw.focus();
}

function myINIT(){
	var html = '';
	var mysite_categoryArr = mysite_category.split('%3A');
	var mysite_cat = unescape(mysite_categoryArr[0]);
	mysite_cat = mysite_cat.replace(/_/g, "")
	mysite_cat = mysite_cat.replace(/İ/g, "I")
	mysite_cat = mysite_cat.replace(/ı/g, "i")
	mysite_cat = mysite_cat.replace(/Ü/g, "U")
	mysite_cat = mysite_cat.replace(/ü/g, "u")
	mysite_cat = mysite_cat.replace(/Ö/g, "O")
	mysite_cat = mysite_cat.replace(/ö/g, "o")
	mysite_cat = mysite_cat.replace(/Ç/g, "C")
	mysite_cat = mysite_cat.replace(/ç/g, "c")
	mysite_cat = mysite_cat.replace(/Ş/g, "S")
	mysite_cat = mysite_cat.replace(/ş/g, "s")
	mysite_cat = mysite_cat.replace(/Ğ/g, "G")
	mysite_cat = mysite_cat.replace(/ğ/g, "g")
	var adUrl = 'http://www.vucutgelistirme.net/kutucuk/ad.asp?runOfNetwork=125x125&pageName=mysite_' + mysite_cat + '_125x125';
	if(document.layers){
		html = '<layer pageY="0" pageX="0" visibility="hidden" name="ad_mySite1">\n';
		html += '<table border="2" cellpadding="0" cellspacing="0"><tr><td valign="top" bgcolor="#ffffff">\n';
		html += '<table border="0" cellpadding="0" cellspacing="0" width="135"><tr bgcolor="#cccccc">\n';
		html += '<td valign="top"><a href="http://www.vucutgelistirme.net/" style="text-decoration:none" target="_blank" onMouseOver="window.status=\'AnaSayfa\';return true" onMouseOut="window.status=\'\';return true"><img src="http://www.vucutgelistirme.net/kutucuk/logo.gif" width="53" height="30" border="0"></a></td>\n';
		html += '<td valign="top" align="right" nowrap><a href="" onClick="javascript:help();return false;" onMouseOver="window.status=\'Yardım\';return true" onMouseOut="window.status=\'\';return true"><img src="http://www.vucutgelistirme.net/kutucuk/help.gif" width="16" height="14" border="0" alt="Yardım"></a><a href="" onClick="javascript:myOC(2);return false" onMouseOver="window.status=\'Küçült\';return true" onMouseOut="window.status=\'\';return true"><img src="http://www.vucutgelistirme.net/kutucuk/minimize.gif" width="16" height="14" border="0" alt="Küçült"></a></td>\n';
		html += '</tr><tr>\n';
		html += '<td valign="middle" colspan="2" align="center" height="130"></td>\n';
		html += '</tr></table></td></tr></table></layer>\n';
		html += '<layer pageY="0" pageX="0" visibility="hidden" name="ad_mySite2">\n';
		html += '<table border="2" cellpadding="0" cellspacing="0"><tr><td valign="top" bgcolor="#ffffff">\n';
		html += '<table border="0" cellpadding="0" cellspacing="0" width="135"><tr bgcolor="#cccccc">\n';
		html += '<td valign="top"><a href="http://www.vucutgelistirme.net/" style="text-decoration:none" target="_blank" onMouseOver="window.status=\'AnaSayfa\';return true" onMouseOut="window.status=\'\';return true"><img src="http://www.vucutgelistirme.net/kutucuk/logo.gif" width="53" height="30" border="0"></a></td>\n';
		html += '<td valign="top" align="right" nowrap><a href="" onClick="javascript:help();return false;" onMouseOver="window.status=\'Yardım\';return true" onMouseOut="window.status=\'\';return true"><img src="http://www.vucutgelistirme.net/kutucuk/help.gif" width="16" height="14" border="0" alt="Yardım"></a><a href="" onClick="javascript:myOC(1);return false" onMouseOver="window.status=\'Büyült\';return true" onMouseOut="window.status=\'\';return true"><img src="http://www.vucutgelistirme.net/kutucuk/maximize.gif" width="16" height="14" border="0" alt="Büyült"></a></td>\n';
		html += '</tr></table></td></tr></table></layer>\n';
		html += '<layer pageY="0" width="125" height="125" pageX="0" visibility="hidden" name="ad_mySite" src="' + adUrl + '">&nbsp;</layer>\n';
	}
	else if(document.all || document.getElementById){
		html = '<div style="z-index:0;position: absolute; top: 0; left: 0; visibility: hidden" id="ad_mySite1">\n';
		html += '<table border="2" cellpadding="0" cellspacing="0"><tr><td valign="top" bgcolor="#ffffff">\n';
		html += '<table border="0" cellpadding="0" cellspacing="0" width="135"><tr bgcolor="#cccccc">\n';
		html += '<td valign="top"><a href="http://www.vucutgelistirme.net/" style="text-decoration:none" target="_blank" onMouseOver="window.status=\'AnaSayfa\';return true" onMouseOut="window.status=\'\';return true"><img src="http://www.vucutgelistirme.net/kutucuk/logo.gif" width="53" height="30" border="0"></a></td>\n';
		html += '<td valign="top" align="right" nowrap><a href="" onClick="javascript:help();return false;" onMouseOver="window.status=\'Yardım\';return true" onMouseOut="window.status=\'\';return true"><img src="http://www.vucutgelistirme.net/kutucuk/help.gif" width="16" height="14" border="0" alt="Yardım"></a><a href="" onClick="javascript:myOC(2);return false" onMouseOver="window.status=\'Küçült\';return true" onMouseOut="window.status=\'\';return true"><img src="http://www.vucutgelistirme.net/kutucuk/minimize.gif" width="16" height="14" border="0" alt="Küçült"></a></td>\n';
		html += '</tr><tr><td colspan="2"><img src="http://www.vucutgelistirme.net/kutucuk/blank.gif" width="1" height="3" border="0"></td></tr><tr><td valign="middle" colspan="2" align="center" height="130">\n';
		html += '<iframe src="' + adUrl + '" width="125" height="128" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" allowTransparency="true"></iframe>\n';
		html += '</td></tr></table></td></tr></table></div>\n';
		html += '<div style="position: absolute; top: 0; left: 0; visibility: hidden" id="ad_mySite2">\n';
		html += '<table border="2" cellpadding="0" cellspacing="0"><tr><td valign="top" bgcolor="#ffffff">\n';
		html += '<table border="0" cellpadding="0" cellspacing="0" width="135"><tr bgcolor="#cccccc">\n';
		html += '<td valign="top"><a href="http://www.vucutgelistirme.net/" style="text-decoration:none" target="_blank" onMouseOver="window.status=\'AnaSayfa\';return true" onMouseOut="window.status=\'\';return true"><img src="http://www.vucutgelistirme.net/kutucuk/logo.gif" width="53" height="30" border="0"></a></td>\n';
		html += '<td valign="top" align="right" nowrap><a href="" onClick="javascript:help();return false;" onMouseOver="window.status=\'Yardım\';return true" onMouseOut="window.status=\'\';return true"><img src="http://www.vucutgelistirme.net/kutucuk/help.gif" width="16" height="14" border="0" alt="Yardım"></a><a href="" onClick="javascript:myOC(1);return false" onMouseOver="window.status=\'Büyült\';return true" onMouseOut="window.status=\'\';return true"><img src="http://www.vucutgelistirme.net/kutucuk/maximize.gif" width="16" height="14" border="0" alt="Büyült"></a></td>\n';
		html += '</tr></table></td></tr></table></div>\n';
	}
	document.write(html);
}
function myPA(){
	var PageX = 0;
	if(window.innerWidth) PageX = window.innerWidth-156;
	else if(document.body.clientWidth) PageX = document.body.clientWidth-141;
	if(document.getElementById){
		document.getElementById("ad_mySite1").style.left=PageX;
		document.getElementById("ad_mySite2").style.left=PageX;		
	}
	else if(document.all){
		document.all.ad_mySite1.style.left=PageX;
		document.all.ad_mySite2.style.left=PageX;
	}
	else if(document.layers){
		document.ad_mySite1.pageX=PageX;
		document.ad_mySite2.pageX=PageX;
		document.ad_mySite.pageX=window.innerWidth-147;
		document.ad_mySite.pageY=35;
	}
}
function myOC(d){
	myPA();
	if (d==-1){
		if(document.getElementById){
			document.getElementById("ad_mySite1").style.visibility="hidden";
			document.getElementById("ad_mySite2").style.visibility="hidden";
		}
		else if(document.all){
			document.all.ad_mySite1.style.visibility="hidden";
			document.all.ad_mySite2.style.visibility="hidden";
		}
		else if(document.layers){
			document.ad_mySite.visibility="hidden";
			document.ad_mySite1.visibility="hidden";
			document.ad_mySite2.visibility="hidden";
		}
	}
	if (d==1){
		if(document.getElementById){
			document.getElementById("ad_mySite2").style.visibility="hidden";
			document.getElementById("ad_mySite1").style.visibility="visible";
		}	
		else if(document.all){
			document.all.ad_mySite2.style.visibility="hidden";
			document.all.ad_mySite1.style.visibility="visible";
		}
		else if(document.layers){
			document.ad_mySite2.visibility="hidden";
			document.ad_mySite1.visibility="visible";
			document.ad_mySite.visibility="visible";
		}
	}
	if (d==2){
		if(document.getElementById){
			document.getElementById("ad_mySite1").style.visibility="hidden";
			document.getElementById("ad_mySite2").style.visibility="visible";
		}	
		else if(document.all){
			document.all.ad_mySite1.style.visibility="hidden";
			document.all.ad_mySite2.style.visibility="visible";
		}
		else if(document.layers){
			document.ad_mySite.visibility="hidden";
			document.ad_mySite1.visibility="hidden";
			document.ad_mySite2.visibility="visible";
		}
	}
}
function myCF(){
	if(document.all) top.ad=0;
}
function myEH(){
	return false;
}
function mySH(){
	var r=0;
	if(document.all || document.getElementById){
		if(window!=top){
			myFF(top);
			if(myGAW==self && !top.ad){
				r=1;
				top.ad=1;
			}
		}
		else r=1;
	}
	else if(document.layers){
		if (window!=window.top){
			myFF(window.top);
			if (myGAW==self) r=1;
		}
		else{
			if (!top.frames||top.frames.length==0) r=1;
		}
	}
	return r;
}
function myFF(w){
	var i=0;
	if(document.all && (w.document.body.text || w.frames.length==0)){
		myCA(w);
		return;
	}
	for(i=0;i<w.frames.length;i++){
		if(w.frames[i].frames.length>0) myFF(w.frames[i]);
		else myCA(w.frames[i]);
	}
	return;
}

function myCA(w){
	var t=0;
	if(!w) w=self;
	if(document.layers){
		if(w.innerWidth) t=w.innerWidth*w.innerHeight;
		else t=10;
	}
	if(document.all){
		t=document.body.clientWidth*document.body.clientHeight;
	}
	if(t>=myGA){
		myGA=t;
		myGAW=w;
	}
}

function myEA(g){
	if(g == 1) top.gg=g;
	if(mySH()==1&&(top.gg==0||top.gg!=1||!top.gg)){
		myINIT();
		myPA();
		window.onresize=myPA;
		window.onunload=myCF;
		myOC(1);
	}
}
if(mysite_category != ''){
	window.onerror = myEH; 
	myEA(0);
}


