/*Popup Pencere Acma*/	
function popup(url,w,h){newWindow=window.open(url,"newGebruikersnaamWin","width="+w+",height="+h+",left=200,top=200,status=no,resizable=no,menubar=no,directories=no,toolbar=no,scrollbars=yes")}
/*Popup Pencere Acma 2*/	
function popup2(url,w,h){newWindow=window.open(url,"newGebruikersnaamWin","width="+w+",height="+h+",left=100,top=50,status=no,resizable=no,menubar=no,directories=no,toolbar=no,scrollbars=yes")}


PositionX = 100;
PositionY = 100;
defaultWidth  = 500;
defaultHeight = 500;
var AutoClose = true;
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function zoomx(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Yükleniyor...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
writeln('width=(document.images[0].width);');
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){'); 
writeln('window.innerWidth=document.images["mesut"].width;');writeln('window.innerHeight=document.images["mesut"].height;}}');
writeln('function doTitle(){document.title="'+imageURL+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=FFFFFF scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=FFFFFF scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<a href="javascript:window.close()"><img name="mesut" src='+imageURL+' border="0" Title="Kapatmak İçin Tıklayınız..." style="display:block"></body></html>');
close(); 
}}
	

function iletisimsubmit(){
    if(document.iletisim.ad.value==''){alert("Hata!!! Lütfen Adınızı Belirtiniz...");return false;}
	if(document.iletisim.email.value==''){alert("E-mail adresi giriniz...");return false;}
	if(document.iletisim.email.value.indexOf('@') <= 0) {alert("Lütfen E-mail adresinizi doğru belirtiniz!");return false;} 
	if(document.iletisim.email.value.indexOf('.') <= 0) {alert("Lütfen E-mail adresinizi doğru belirtiniz!");return false;}
	if(document.iletisim.email.value.indexOf(' ') > 0) {alert("Lütfen E-mail adresinizi doğru belirtiniz!");return false;}
    if(document.iletisim.mesaj.value==''){alert("Hata!!! Lütfen Bir Mesaj Giriniz...");return false;}
	}



function isbirligisubmit(){
    if(document.isbirligi.ykisi.value==''){alert("Hata!!! Lütfen yetkili kişi adını yazınız...");return false;}
    if(document.isbirligi.telis.value==''){alert("Hata!!! Lütfen iş telefonuzu belirtiniz...");return false;}
	if(document.isbirligi.email.value==''){alert("E-mail adresi giriniz...");return false;}
	if(document.isbirligi.email.value.indexOf('@') <= 0) {alert("Lütfen E-mail adresinizi doğru belirtiniz!");return false;} 
	if(document.isbirligi.email.value.indexOf('.') <= 0) {alert("Lütfen E-mail adresinizi doğru belirtiniz!");return false;}
	if(document.isbirligi.email.value.indexOf(' ') > 0) {alert("Lütfen E-mail adresinizi doğru belirtiniz!");return false;}


	}



function bayiliksubmit(){
    if(document.bayilik.adi.value==''){alert("Hata!!! Lütfen Adınızı Belirtiniz...");return false;}
    if(document.bayilik.soyadi.value==''){alert("Hata!!! Lütfen Soyadınızı Belirtiniz...");return false;}
	if(document.bayilik.email.value==''){alert("E-mail adresi giriniz...");return false;}
	if(document.bayilik.email.value.indexOf('@') <= 0) {alert("Lütfen E-mail adresinizi doğru belirtiniz!");return false;} 
	if(document.bayilik.email.value.indexOf('.') <= 0) {alert("Lütfen E-mail adresinizi doğru belirtiniz!");return false;}
	if(document.bayilik.email.value.indexOf(' ') > 0) {alert("Lütfen E-mail adresinizi doğru belirtiniz!");return false;}
    if(document.bayilik.ceptel.value==''){alert("Hata!!! Lütfen Bir cep numarası Giriniz...");return false;}
    if(document.bayilik.sehir.value==''){alert("Hata!!! Lütfen Bir şehir Giriniz...");return false;}
    if(document.bayilik.butce.value==''){alert("Hata!!! Lütfen bir yatırım bütçesi Giriniz...");return false;}
    if(document.bayilik.dahaonce.value==''){alert("Hata!!! Lütfen bir daha önce yaptığınız işleri Giriniz...");return false;}
    if(document.bayilik.tanitim.value==''){alert("Hata!!! Lütfen kendi tanıtımızı Giriniz...");return false;}
}
	
if(document.images) {
		menu01off = new Image();
		menu01off.src = "images/menu01.gif";
		menu01over = new Image();
		menu01over.src = "images/menu01_k.gif";
		
		menu02off = new Image();
		menu02off.src = "images/menu02.gif";
		menu02over = new Image();
	    menu02over.src = "images/menu02_k.gif";
		
		menu03off = new Image();
		menu03off.src = "images/menu03.gif";
		menu03over = new Image();
		menu03over.src = "images/menu03_k.gif";
		
        menu04off = new Image();
		menu04off.src = "images/menu04.gif";
		menu04over = new Image();
		menu04over.src = "images/menu04_k.gif";
		
        menu05off = new Image();
		menu05off.src = "images/menu05.gif";
		menu05over = new Image();
		menu05over.src = "images/menu05_k.gif";		
}

function onoff(imgName,state) {
        if(document.images) {               
		document.images[imgName].src = eval(imgName+state+".src");
        }
}
	

	
	
	
	
var menu=function(){
	var t=15,z=50,s=6,a;
	function dd(n){this.n=n; this.h=[]; this.c=[]}
	dd.prototype.init=function(p,c){
		a=c; var w=document.getElementById(p), s=w.getElementsByTagName('ul'), l=s.length, i=0;
		for(i;i<l;i++){
			var h=s[i].parentNode; this.h[i]=h; this.c[i]=s[i];
			h.onmouseover=new Function(this.n+'.st('+i+',true)');
			h.onmouseout=new Function(this.n+'.st('+i+')');
		}
	}
	dd.prototype.st=function(x,f){
		var c=this.c[x], h=this.h[x], p=h.getElementsByTagName('a')[0];
		clearInterval(c.t); c.style.overflow='hidden';
		if(f){
			p.className+=' '+a;
			if(!c.mh){c.style.display='block'; c.style.height=''; c.mh=c.offsetHeight; c.style.height=0}
			if(c.mh==c.offsetHeight){c.style.overflow='visible'}
			else{c.style.zIndex=z; z++; c.t=setInterval(function(){sl(c,1)},t)}
		}else{p.className=p.className.replace(a,''); c.t=setInterval(function(){sl(c,-1)},t)}
	}
	function sl(c,f){
		var h=c.offsetHeight;
		if((h<=0&&f!=1)||(h>=c.mh&&f==1)){
			if(f==1){c.style.filter=''; c.style.opacity=1; c.style.overflow='visible'}
			clearInterval(c.t); return
		}
		var d=(f==1)?Math.ceil((c.mh-h)/s):Math.ceil(h/s), o=h/c.mh;
		c.style.opacity=o; c.style.filter='alpha(opacity='+(o*30)+')';
		c.style.height=h+(d*f)+'px'
	}
	return{dd:dd}
}();	
	
	/*Harflari Temizle */	
function karakterfiltre(myfield, e, dec) {
  var key;
  var keychar;

  if (window.event)
    key = window.event.keyCode;
  else if (e)
    key = e.which;
  else
    return true;
  keychar = String.fromCharCode(key);

  // control keys
  if ((key==null) || (key==0) || (key==8) || (key==9) || (key==13) || (key==27) )
    return true;

  // numbers
  else if ((("0123456789").indexOf(keychar) > -1))
    return true;

  // decimal point jump
  else if (dec && (keychar == ".")) {
    myfield.form.elements[dec].focus();
    return false;
  } else
    return false;
}


function goster(div) {
self.document.getElementById(div).style.visibility="visible"
}

/*Manset Foksiyon */	
var proje = 1;
function mansetshow(i) 
{
	$('mtitle'+proje).setStyle('display','none');
	$('mtitle'+i).setStyle('display','block');
	proje = i;



}


/*Proje Foksiyon */	
var projeler = 1;
function projelershow(i) 
{
	$('goster'+projeler).setStyle('display','none');
	$('goster'+i).setStyle('display','block');
	projeler = i;



}



/*Karakter Temizle */	
function karaktertemizlex(deger) {
var yaz2 = new String();
var numaralar2 = ".:0123456789";
var chars = deger.value.split("");
for (i = 0; i < chars.length; i++) {
if (numaralar2.indexOf(chars[i]) != -1) yaz2 += chars[i];
}
if (deger.value != yaz2) deger.value = yaz2;
}




