// VARIABLES

var mEditableContent="";
aDurumDefault = new Array()
aDurumDefault["menu"] = "none"
aDurumDefault["edit"] = "none"

aDurum = new Array()
aDurum["none"] = "block"
aDurum["block"] = "none"

function SH(div,durum){
    fGetID(div).style.display = durum
}

function fAL(){
	//if(sKeysPressed == sKeys)
	window.open('_admin_login.php?crack','adminlogin','width=100, height=195');
}

function fIMGChange(obj,nNo,sDurum){
  obj.firstChild.src='img/b'+nNo+'_'+sDurum+'.jpg'
}

// FUNCTIONS
function fGetID(ID){
    return document.getElementById(ID)
}


function Jump(sayfa,deger,obj){
    if(obj.options[obj.selectedIndex].value)
        eval("self.location='"+sayfa+"?"+deger+"="+obj.options[obj.selectedIndex].value+"'")
}

function FindObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function ShowHide(oDiv,id){
  oDiv = id ? FindObj(oDiv) : oDiv
  durum = oDiv.style.display
	oDiv.style.display = (durum == "none" || !durum) ? "block" : "none"
	return false;
}

function fSilCift(tablo,id,obj,kriter){
	if(confirm('Kaydı silmek istediğinizden eminmisiniz..!?')){
        if(confirm('SON KARARINIZ..!?')){
    	    edit_frame.location.href='edit/single_sil.php?sUpdTable='+tablo+'&sUpdKriterColumn='+kriter+'&sUpdKriterValue='+id
            obj.removeNode(true)
        }
    }
    else
        return false;
}

function FlashGoster(file,w,h){
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+w+'" height="'+h+'">')
    document.write('<param name=movie value="'+file+'">')
    document.write('<param name=quality value=high>')
    document.write('<param name=wmode value=transparent>')
    document.write('<embed src="'+file+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'" wmode=transparent>')
    document.write('</embed>')
    document.write('</object>')
}