// Pop-Up Pencere Açma Fonksiyonu

function opennWindow(url, w, h) {
var windowprops = "scrollbars,width=" + w + ",height=" + h;
popup = window.open(url,'remote',windowprops);
}

function opennnWindow(url, w, h) {
var windowprops = "scrollbars,resizable=1,width=" + w + ",height=" + h;
popup = window.open(url,'remote',windowprops);
}

function openWindow(url, w, h) {
var windowprops = "width=" + w + ",height=" + h;
popup = window.open(url,'remote',windowprops);
}

function popUp(URL) 
{
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=325,height=450,left = 477.5,top = 212.5');");
	}
		function Pencere(dosya, h, w){ 
		popup = window.open(dosya,"popDialog","height="+h+",width="+w+",scrollbars=no") 
			if ( popup.document.close() ) { 
			popup.document.close() 
	} 
} 

function openWin(img)
{
	window.open('big.aspx?img='+img, '','scrollbars=no,resizable=no,width=720,height=480,resizable=0');
}

function Pencere(dosya, h, w)
{
	popup = window.open(dosya,"popDialog","height="+h+",width="+w+",scrollbars=no") 
		if ( popup.document.close() ) { 
				popup.document.close() 
			} 
} 

// Flash Animasyonlarin Çerçevesini Kaldirma
function swfoku(swf_adi, swfyukseklik, swfgenislik, swfmode)
{
	var str = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"&nbsp; codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=9,0,16,0" width='+swfgenislik+' height='+swfyukseklik+' VIEWASTEXT>';
	str += ' <param name="movie" value="'+swf_adi+'" /> ';
	str += ' <param name="quality" value="high" /> ';
	str += ' <param name="menu" value="0" /> ';
// wmode = window, transparent, opaque
	str += ' <param name="wmode" value="'+swfmode+'" /> ';
	str += ' <embed src='+swf_adi+' width='+swfgenislik+' height='+swfyukseklik+' quality="high" pluginspage="http://www.adobe.com/go/getflashplayer" type="application/x-shoc kwave-flash" wmode="transparent"></embed> ';
	str += ' </object> ';
	document.write(str);
}

function swfoku2(swfadi,swfyukseklik,swfgenislik)
{
	var eed = document.location.search;
	var flash  = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=9,0,16,0" width='+swfgenislik+' height='+swfyukseklik+'>'
		flash += '<param name="allowScriptAccess" value="sameDomain" />'
		flash += '<param name="movie" value="'+swfadi+''+document.location.search+'">'
		flash += '<param name="quality" value="high" />'
		flash += '<param name="menu" value="0" />'
		flash += '<param name="wmode" value="transparent" />'
		flash += '<param name="scale" value="noscale" />'
		flash += '<embed src="'+swfadi+''+document.location.search+'" quality="high" scale="noscale"  width='+swfgenislik+' height='+swfyukseklik+' allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />'
		flash += '</object>'
		document.write(flash)
}
function swfoku3(swfadi)
{
	var eed = document.location.search;
	document.write ('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=9,0,16,0" width="100%" height="100%" id="ind" align="middle">'
+'<param name="allowScriptAccess" value="sameDomain" />'
+'<param name="movie" value="'+swfadi+''+document.location.search+'">'
+'<param name="quality" value="high" />'
+'<param name="menu" value="0" />'
+'<param name="scale" value="noscale" />'
+'<param name="bgcolor" value="#ffffff" />'
+'<embed src="'+swfadi+''+document.location.search+ '" quality="high" scale="noscale" bgcolor="#ffffff" width="100%" height="100%" name="ind" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" /></object>')

}

// Her sayfa refresh olusunda 1 kez Pop-Up Açilsin
var popurls=new Array()
popurls[0]="http://www.gundogdu.k12.tr/random2.asp"

/*
function openpopup(popurl){
var winpops=window.open(popurl,"","width=200,height=500")
}

function get_cookie(Name) {
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // if cookie exists
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1)
         end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}

function loadornot(){
if (get_cookie('jkpopup')==''){
openpopup(popurls[Math.floor(Math.random()*(popurls.length))])
document.cookie="jkpopup=yes"
}
}

loadornot()
*/