var wpop=takSec='';

function Git(url){
	document.location=url;
}

function Obj(id){
	if (!document.getElementById) return false;
	return document.getElementById(id);
}

function yp2(loc){
	window.open(loc,'win','width=200,height=50,top=20,left=20');
}

function yp(loc,w,h){if (!window.popup){ac(loc,w,h);}else{if (!popup.closed){popup.close();ac(loc,w,h)}else{ac(loc,w,h)}}}
function ac(loc,w,h){popup=window.open(loc,'popup','scrollbars=yes,status=yes,directories=no,menubar=no,resizable=yes,toolbar=no,width='+w+',height='+h+',screenX=50,screenY=50,top=50,left=50');}

function Pop(resim,w,h){
	if (!w || !h) return;

	x=screen.width/2-w/2, y=(screen.height-60)/2-h/2;

	if (document.all) w+=16;

	if (wpop && !wpop.closed) wpop.close();
	wpop=window.open(resim,'','scrollbars=yes,status=yes,directories=no,menubar=no,resizable=yes,toolbar=no,width='+w+',height='+h+',top='+y+',left='+x);

	wpop.document.open();
	wpop.document.write('<html><title>Senkop Müzik</title><style>BODY {margin:0; background:url('+resim.href+') no-repeat;}</style><body></body></html>');
	wpop.document.close();
	wpop.focus();

	return false;
}

function Yaz(urele){
	window.open(urele,'yzc','status=yes,top=50,left=50,scrollbars=yes,resizable=yes,width=490,height=500');
	return false;
}

function Gonder(urele){
	window.open(urele,'gndr','status=yes,top=50,left=50,scrollbars=yes,resizable=yes,width=490,height=500');
	return false;
}

function Goster(obj){
	Obj(obj).style.display='block';
}

function Gosterme(obj){
	Obj(obj).style.display='none';
}

function UrunIsimOffset(){
	o=document.getElementsByTagName('DIV');
	if (l=o.length){
		for (i=0; i<l; i++){
			if (o[i].id=='isim'){
				p=o[i].childNodes[0];
				if (p.offsetHeight<20) p.style.top='6px';
			}
		}
	}
}

function DLKontrol(){
	f=document.frmdl;
	hata='';
	if (frmdl.i1.value.indexOf('@')==-1) hata='Lütfen e-posta adresinizi yazınız.';
	if (!hata) return true;
	alert(hata);
	return false;
}

function NSA(){
	t='';
	b='          ';

	t+='- Alışveriş sepetinizi oluşturun\n';
	t+=b+'Ürün detay sayfalarındaki sepete ekle düğmesini\n';
	t+=b+'kullanarak alışveriş sepetinizi oluşturun.\n\n';

	t+='- Sepetinizi onaylayın\n';
	t+=b+'Alışverişinizi bitirdiğinizde sepetinizi kontrol edip,\n';
	t+=b+'sepeti onayla düğmesini tıklayın.\n\n';

	t+='- Bilgilerinizi girin\n';
	t+=b+'Fatura sevkiyat ve kredi kartı bilgilerinizi girin.\n\n';

	t+='- Siparişinizi verin\n';
	t+=b+'Verdiğiniz tüm bilgileri son kez kontrol edip siparişinizi\n';
	t+=b+'verin. "Senkop Müzik" Online satış temsilcimiz gerekli\n';
	t+=b+'kontrolleri yapıp en kısa sürede sizinle iletişime geçecektir.'+b+'\n\n';

	t+='- Teslimat\n';
	t+=b+'Kargo ücreti alıcıya aittir.\n';
	t+=b+'Ürününüz Yurtiçi Kargo ile sigortalı olarak size ulaştırılacaktır.\n';
	t+=b+'Teslimat sırasında ürününüzün orjinal ambalajının zarar\n';
	t+=b+'görmemiş olmasına dikkat ediniz. Zarar görmüş ambalajları\n';
	t+=b+'teslim almayınız. Firmamızla iletişime geçiniz.\n\n';

	t+='- Güvenlik\n';
	t+=b+'Sipariş işlemlerinde 128 bit SSL veri şifrelemesi kullanılmaktadır.\n';
	t+=b+'Senkop.com.tr\'nin SSL sertifikasını incelemek için GeoTrust\n';
	t+=b+'logosuna tıklayabilirsiniz.\n\n';

	alert(t);
}

function Taksit(){
	if (takSec==1) return;
	Goster('kartListe');
	Goster('kart'+ilkKart);
	KartGoster(ilkKart);
	takSec=ilkKart;
}

function KartGoster(n){
	for (i=1; i<=10; i++){
		if (Obj('liKart'+i)!=null){
			Obj('kart'+i).style.display=(n==i) ? 'block' : 'none';
			Obj('liKart'+i).style.background=(n==i) ? 'steelblue' : '#fff';
			Obj('liKart'+i).firstChild.style.color=(n==i) ? '#fff' : '#a00';
		}
	}
}


