﻿function getMenu()
{
  Menu ='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="502" height="30" id="anasayfa_btn" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="false" /><param name="movie" value="/Swf/anasayfa_btn.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="/Swf/anasayfa_btn.swf" quality="high" bgcolor="#ffffff" width="502" height="30" name="anasayfa_btn" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
  document.write(Menu);
  
}

function getBanner()
{
  Banner ='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="1001" height="211" id="umut1" align="middle"><param name="allowScriptAccess" value="sameDomain" />	<param name="allowFullScreen" value="false" /><param name="movie" value="/Swf/umut1.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="/Swf/umut1.swf" quality="high" bgcolor="#ffffff" width="1001" height="211" name="umut1" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
  document.write(Banner);
  
}
function getImaj()
{
  Imaj ='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="227" height="229" id="er_fl_top" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="false" /><param name="movie" value="/Swf/er_fl_top.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="/Swf/er_fl_top.swf" quality="high" bgcolor="#ffffff" width="227" height="229" name="er_fl_top" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
  document.write(Imaj);
  
}
function viewImage(imagepath,ix,iy)
{
  window.open('/Foto.aspx?imgFoto=' +imagepath ,'','width='+ix+',height='+iy+',resizable=yes,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,fullscreen=no,dependent=no');
}

function showPicture( imgName, imgCaption, imgWidth, imgHeight, textColor, bgColor ) {
	if (imgWidth<=100) {
		imgWidth=100;
		}
	if (imgHeight<=100) {
		imgHeight=100;
		}
	winHeight=imgHeight+30;
	w = window.open('','Demo','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,width='+imgWidth+',height='+winHeight);
	w.document.write("<html><head><title>"+imgCaption+"</title>" );
	w.document.write("<STYLE TYPE='text/css'>" );
	w.document.write("A {font-family: verdana; font-size: 10px; color: "+textColor+"; text-decoration : none;}" );
	w.document.write("A:Visited {font-family: verdana;font-size: 10px; color: "+textColor+"; }" );
	w.document.write("A:Active { font-family: verdana; font-size: 10px; color: "+textColor+"; }" );
	w.document.write("A:Hover { font-family: verdana; font-size: 10px; color: "+textColor+"; }" );
	w.document.write("IMG {border-color : "+textColor+";}" );
	w.document.write("BODY { font-family: verdana; font-size : 10px; font-weight: normal; color : "+textColor+"; background-color : "+bgColor+"; }" );
	w.document.write("</STYLE>");
	w.document.write(String.fromCharCode(60)+"script language='JavaScript'"+String.fromCharCode(62));
	w.document.write("IE5=NN4=NN6=false\n");
	w.document.write("if(document.all)IE5=true;\n");
	w.document.write("else if(document.getElementById)NN6=true\n");
	w.document.write("else if(document.layers)NN4=true\n");
	w.document.write("function autoSize() {\n");
	w.document.write("if(IE5) self.resizeTo(document.images[0].width+10,document.images[0].height+31+20)\n");
	w.document.write("else if(NN6) self.sizeToContent()\n");
	w.document.write("else top.window.resizeTo(document.images[0].width,document.images[0].height+20)\n");
	w.document.write("self.focus()\n");
	w.document.write("}\n</scr");
	w.document.write("ipt>\n");
	w.document.write("</head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad=" );
	w.document.write("'javascript:autoSize();'>" );
	w.document.write("<table cellpadding=0 cellspacing=0 border=0><tr><td colspan=3><img src='"+imgName+"' border=0 alt='"+imgCaption+"'></td></tr>" );
	w.document.write("<tr><td align='left'><a>&nbsp;© Kidynet</a></td>" );
	w.document.write("<td align='center'></td>" );
	w.document.write("<td align='right' ><a href='javascript:top.window.close();'>KAPAT</a>&nbsp;</td></tr>" );
	w.document.write("</table></body></html>" );
	w.document.close();
}
