<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_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 MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function newUser(){
	var user = window.open('uyelik.php','user','width=430,height=572,resizable=0,scrollbars=0,status=0,left=100,top=100');
}


function duyuru_servisi(op)
{
	var dForm = document.ds;
	var email = document.ds.email.value;
	if (email.indexOf('@') == -1)
	{
		alert('Lütfen geçerli bir e-posta adresi giriniz.');
		return false;
	}
	else
	{
		var str = '';
		for (i = 0; i < dForm.length; i++)
		{
			str += '&'+dForm.elements[i].name+'='+dForm.elements[i].value;
		}

		var nWin = window.open('programlar/duyuru_servisi.php?op='+op+str,'new','width=203,height=99,resizable=0,status=0,scrollbars=0');
		dForm.reset();
		return true;
	}
}

function etkinlik_hatirlat(foo)
{
	
	var acts;
	var act = document.activity.id;
	
	var aWin = window.open('','aWin','width=280,height=190,resizable=0,status=0,scroll=0');
	aWin.focus();
	foo.target = 'aWin';
	foo.submit();
}

function tum_etkinlik()
{
	var tWin = window.open('programlar/etkinlik_listesi.php','tnew','width=272,height=276,resizable=0,status=0,scrollbars=0');
	tWin.focus();
}

function oyver(id)
{
	var nWin = window.open('modules/toplist.php?id='+id,'new','width=203,height=99,resizable=0,status=0');
	nWin.focus();
}

function adayGoster(foo)
{
	var nomi = document.nom.nomi.value;
	if (nomi.indexOf("-") == -1)
	{
		alert('Lütfen şarkıcı/grup ismiyle şarkı isminin arasına kısa çizgi(-) koyunuz.');
		return false;
	}
	else
	{
		var gWin = window.open('','gWin','width=203,height=99,resizable=0,status=0');
		foo.target = "gWin";
		foo.submit();
		gWin.focus();
	}

	document.nom.nomi.value = '';
	return false;
}


function PSH_MK_showpg(t,so)
{
	if (so.options[so.selectedIndex].value=="#")
	{
		window.parent.frames[t].location= "fotogaleri?section=home";
	}
	else
	{
		eval(window.parent.frames[t].location="fotogaleri?section=detail&fid="+so.options[so.selectedIndex].value);
	}
}

function PSH_MK_showbigimg(img,w,h)
{
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=0,menubars=0,resizable=0';
	win = window.open('?section=showbigimg&id='+img, w+h, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function formDenetle(foo)
{
	for (i = 0; i < foo.elements.length; i++)
	{
		if (foo.elements[i].value == null || foo.elements[i].value == '')
		{
			alert('Formda boş alanlar var.\nLütfen tüm alanları doldurunuz');
			return false;
		}
	}

	return true;
}

function avantaj_puan()
{
	var pWin = window.open('html/avantajpuan.htm','pWin','width=358,height=505,resizable=0,status=0,top=100,left=100');
}

function uyelikpaneli(no)
{
	switch (no)
	{
	case 1:
		var uWin = window.open('uyelik/dokuman_ekle.php','uWin','width=505,height=325,resizable=0,status=0');
		uWin.focus();
		break;
	case 2:
		var puWin = window.open('uyelik/puanlar.php','puWin','width=205,height=335,resizable=0,status=0');
		puWin.focus();
		break;
	case 3:
		var uuWin = window.open('uyelik/uyeliginiz.php','uuWin','width=254,height=384,resizable=0,status=0');
		uuWin.focus();
		break;
	case 4:
		var suWin = window.open('uyelik/uyelikyardim.htm','suWin','width=205,height=149,resizable=0,status=0');
		suWin.focus();
		break;
	case 5:
		var muWin = window.open('mesaj/index.php','muWin','width=610,height=283,resizable=0,status=0');
		muWin.focus();
		break;
	}
	

}

function sohbet(foo)
{
	var soWin = window.open('','soWin','width=563,height=450,resizable=0,status=0');
	foo.target = 'soWin';
	foo.submit();
	foo.reset();
	return false;
}

function etkinlik_ayrintisi(id)
{
	var aWin = window.open('modules/activity_popup.php?&id='+id,'aWin','width=323,height=430,resizable=0,status=0,scrollbars=0');
	aWin.focus();
}

function sohbet_kayit()
{
	var soWin = window.open('programlar/sohbet_kayit.php','soWin','width=190,height=200,resizable=0,status=0,scroll=0');
	soWin.focus();
}

function ayinsurprizi()
{
	var suWin = window.open('html/ayinsurprizi.htm','soWin','width=618,height=595,resizable=0,status=0,scroll=0');
	suWin.focus();
}

function yPen(url,w,h)
{
	sw = screen.width;
	sh = screen.height;
	var winN = window.open(url,'winN','width='+w+',height='+h+',left='+(sw-w)/2+',top='+(sh-h)/2+',resizable=0,status=0,scroll=0');
	winN.focus();
}

function clearInput(inp)
{
	inp.value = '';
}

function kafemk()
{
	var winKafemk = window.open('./kafemk/','winKafemk','width=610,height=283,resizable=0,status=0,scroll=0');
	winKafemk.focus();
}

function menuSlide(text)
{
	if (text == null || text == '')
	{
		text = '<strong>Menü</strong>den bölüm seçiniz'
	}
	else
		text = '<strong>'+text+'</strong>';
	var ns4=document.layers?1:0
	var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1?1:0
	var ns6=document.getElementById&&!document.all?1:0
	var docAll;
	if(ie4)
	{
		menuText = document.all.menuCell;
	}
	else if(ns4)
	{	
		menuText = document.layers.menuCell;
	}
	else if(ns6)
	{	
		menuText = document.getElementById("menuCell");
	}
	else
	{
		menuText = document.all.menuCell;
	}

	menuText.innerHTML = text;
}

function help()
{
	var winHelp = window.open('yardim/index.htm','winHelp','width=420,height=400,resizable=0,status=0,scrollbars=1');
	winHelp.focus();
}

function haber(id)
{
	var newsWin = window.open('modules/news.php?&id='+id,'newsWin','width=311,height=257,resizable=0,status=0,scrollbars=0');
	newsWin.focus();
}

function tum_haber()
{
	var allnewsWin = window.open('modules/allnews.php','allnewsWin','width=319,height=232,resizable=0,status=0,scrollbars=0');
	allnewsWin.focus();
}

//-->