<!--
    /* No Right Click  by: Mondain*/
    /*
    if (window.Event) // Only Netscape will have the CAPITAL E.
      document.captureEvents(Event.MOUSEUP); // catch the mouse up event
    
    function nocontextmenu()  // this function only applies to IE4, ignored otherwise.
    {
    	event.cancelBubble = true
    	event.returnValue = false;
    	return false;
    }
    function norightclick(e)	// This function is used by all others
    {
    	if (window.Event)	// again, IE or NAV?
    	{
    		if (e.which == 2 || e.which == 3)
    			return false;
    	}
    	else
    		if (event.button == 2 || event.button == 3)
    		{
    			event.cancelBubble = true
    			event.returnValue = false;
    			return false;
    		}    
    }
    document.oncontextmenu = nocontextmenu;		// for IE5+
    document.onmousedown = norightclick;		// for all others
		*/
    // end right click
    /* No Right Click  by: Mondain*/
		
		
		//slide show script başlangıç

    var SlideShowSpeed1 = 6000;
    var SlideShowSpeed2 = 5000;
    var CrossFadeDuration1 = 1;
    var CrossFadeDuration2 = 3;
    var Picture = new Array(); 
    
    Picture[1]  = 'images/splash/pct1.jpg';
    Picture[2]  = 'images/splash/pct2.jpg';
		Picture[3]  = 'images/splash/pct3.jpg';
    Picture[4]  = 'images/splash/pct4.jpg';
		
    var tss;
    var iss;
    var jss = 1;
    var pss = Picture.length-1;
    
    var preLoad = new Array();
    for (iss = 1; iss < pss+1; iss++){
    preLoad[iss] = new Image();
    preLoad[iss].src = Picture[iss];}
    
    function runSlideShow(){
      if (document.all){
      document.images.PictureBox1.style.filter="blendTrans(duration=1)";
      document.images.PictureBox1.style.filter="blendTrans(duration=CrossFadeDuration1)";
      document.images.PictureBox1.filters.blendTrans.Apply();
			}
      document.images.PictureBox1.src = preLoad[jss].src;
      if (document.all) document.images.PictureBox1.filters.blendTrans.Play();
      jss = jss + 1;
      if (jss > (pss)) jss=1;
			//tek çalışma için arası silindi by Emre
      tss = setTimeout('runSlideShow()', SlideShowSpeed2);
    }
		//slide show script bitiş -------->


    /***********************************************
    * Pausing up-down scroller- © Dynamic Drive (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit http://www.dynamicdrive.com/ for this script and 100s more.
    ***********************************************/
    
    function pausescroller(content, divId, divClass, delay){
    this.content=content //message array content
    this.tickerid=divId //ID of ticker div to display information
    this.delay=delay //Delay between msg change, in miliseconds.
    this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
    this.hiddendivpointer=1 //index of message array for hidden div
    document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>')
    var scrollerinstance=this
    if (window.addEventListener) //run onload in DOM2 browsers
    window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
    else if (window.attachEvent) //run onload in IE5.5+
    window.attachEvent("onload", function(){scrollerinstance.initialize()})
    else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
    setTimeout(function(){scrollerinstance.initialize()}, 500)
    }
    
    // -------------------------------------------------------------------
    // initialize()- Initialize scroller method.
    // -Get div objects, set initial positions, start up down animation
    // -------------------------------------------------------------------
    
    pausescroller.prototype.initialize=function(){
    this.tickerdiv=document.getElementById(this.tickerid)
    this.visiblediv=document.getElementById(this.tickerid+"1")
    this.hiddendiv=document.getElementById(this.tickerid+"2")
    this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))
    //set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2)
    this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"
    this.getinline(this.visiblediv, this.hiddendiv)
    this.hiddendiv.style.visibility="visible"
    var scrollerinstance=this
    document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
    document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
    if (window.attachEvent) //Clean up loose references in IE
    window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
    setTimeout(function(){scrollerinstance.animateup()}, this.delay)
    }
    
    
    // -------------------------------------------------------------------
    // animateup()- Move the two inner divs of the scroller up and in sync
    // -------------------------------------------------------------------
    
    pausescroller.prototype.animateup=function(){
    var scrollerinstance=this
    if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){
    this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"
    this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"
    setTimeout(function(){scrollerinstance.animateup()}, 50)
    }
    else{
    this.getinline(this.hiddendiv, this.visiblediv)
    this.swapdivs()
    setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
    }
    }
    
    // -------------------------------------------------------------------
    // swapdivs()- Swap between which is the visible and which is the hidden div
    // -------------------------------------------------------------------
    
    pausescroller.prototype.swapdivs=function(){
    var tempcontainer=this.visiblediv
    this.visiblediv=this.hiddendiv
    this.hiddendiv=tempcontainer
    }
    
    pausescroller.prototype.getinline=function(div1, div2){
    div1.style.top=this.visibledivtop+"px"
    div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
    }
    
    // -------------------------------------------------------------------
    // setmessage()- Populate the hidden div with the next message before it's visible
    // -------------------------------------------------------------------
    
    pausescroller.prototype.setmessage=function(){
    var scrollerinstance=this
    if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
    setTimeout(function(){scrollerinstance.setmessage()}, 100)
    else{
    var i=this.hiddendivpointer
    var ceiling=this.content.length
    this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
    this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
    this.animateup()
    }
    }
    
    pausescroller.getCSSpadding=function(tickerobj){ //get CSS padding value, if any
    if (tickerobj.currentStyle)
    return tickerobj.currentStyle["paddingTop"]
    else if (window.getComputedStyle) //if DOM2
    return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
    else
    return 0
    }

		// form kontrol		
    function validateForm(theForm) {
      var elArr = theForm.elements; 
      for(var i = 0; i < elArr.length; i++) {
       with(elArr[i]) { 
        var v = elArr[i].validator; 
        if(!v) continue; 
        if(! value){
         alert("Lütfen " + v + " alanını doldurunuz!");                  
         elArr[i].select();
         elArr[i].focus(); 
         return false;				 
        }
				/*
				if(value && name == "dogum_tarihi")
					if(isDate(value)==false) {
            elArr[i].select();
            elArr[i].focus(); 
            return false; 								
					}
				*/	
				if(value && (name == "eposta" || name == "email" ))
					if(!checkMail(value)) {
            elArr[i].select();
            elArr[i].focus(); 
            return false; 								
					}
       }
      }
      return true;
    }
		
    function checkMail(emvalue){
    	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
    	if (!filter.test(emvalue)) alert('Lütfen geçerli bir E-Posta adresi giriniz!');
			else return true;
    }		
			
    function deleteOrder(trade_id){		 
			document.getElementById(trade_id).value=0;
			siparis.submit();
			return false;
    }

    function windowOpen(action,target,style,param) {
    		var s = style != null ? style : "height=400, width=550, top=50, left=50, status=no, toolbar=no, menubar=no, location=no, resizable=yes, scrollbars=yes ";
    		var t = target != null ? target : "_blank";
    		action = "haberGoster.php?id=" + action;
    		var win = window.open(action, t, s);
    		return win;
    }
		
    function setFocus(formobj) {
    	document.getElementById(formobj).select();		
    	document.getElementById(formobj).focus();
    }
		

    function rakamAyir(str,textbox,loc,delim){
      var locs = loc.split(',');     
      for (var i = 0; i <= locs.length; i++){
      	for (var k = 0; k <= str.length; k++){
      	 if (k == locs[i]){
      	  if (str.substring(k, k+1) != delim){
      	   if (event.keyCode != 8){ //backspace
      	    str = str.substring(0,k) + delim + str.substring(k,str.length);
             }
      	  }
      	 }
      	}
       }
      textbox.value = str
    }
		
    //regular expressions
    var reValidChars = /\d/;
  	function rakamKontrol(objEvent){											 
      var iKeyCode, strKey;       
      iKeyCode = objEvent.keyCode;
  		if (!iKeyCode) iKeyCode = objEvent.which;      
      strKey = String.fromCharCode(iKeyCode);
      if (!reValidChars.test(strKey)) {
      	alert("Bu alana sadece rakam girebilirsiniz!");
      	return false;
      }
    }     	
		
    /*** DHTML date validation script. Courtesy of SmartWebby.com (http://www.smartwebby.com/dhtml/)*/		
      var dtCh= "-";
      var minYear=1900;
      var maxYear=2100;
      
      function isInteger(s){
      	var i;
          for (i = 0; i < s.length; i++){   
              var c = s.charAt(i);
              if (((c < "0") || (c > "9"))) return false;
          }
          return true;
      }
      
      function stripCharsInBag(s, bag){
      	var i;
          var returnString = "";
          for (i = 0; i < s.length; i++){   
              var c = s.charAt(i);
              if (bag.indexOf(c) == -1) returnString += c;
          }
          return returnString;
      }
      
      function daysInFebruary (year){
          return (((year % 4 == 0) && ( (!(year % 100 == 0)) || (year % 400 == 0))) ? 29 : 28 );
      }
      function DaysArray(n) {
      	for (var i = 1; i <= n; i++) {
      		this[i] = 31
      		if (i==4 || i==6 || i==9 || i==11) {this[i] = 30}
      		if (i==2) {this[i] = 29}
         } 
         return this
      }
      
      function isDate(dtStr){
      	var daysInMonth = DaysArray(12)
      	var pos1=dtStr.indexOf(dtCh)
      	var pos2=dtStr.indexOf(dtCh,pos1+1)
      	var strDay=dtStr.substring(0,pos1)
      	var strMonth=dtStr.substring(pos1+1,pos2)
      	var strYear=dtStr.substring(pos2+1)
      	strYr=strYear
      	if (strMonth.charAt(0)=="0" && strMonth.length>1) strMonth=strMonth.substring(1)
      	if (strDay.charAt(0)=="0" && strDay.length>1) strDay=strDay.substring(1)
      	for (var i = 1; i <= 3; i++) {
      		if (strYr.charAt(0)=="0" && strYr.length>1) strYr=strYr.substring(1)
      	}
      	day=parseInt(strDay)
      	month=parseInt(strMonth)				
      	year=parseInt(strYr)
      	if (pos1==-1 || pos2==-1){
      		alert("Tarih formatı gg/aa/yyyy şeklinde olmalı")
      		return false
      	}
      	if (strMonth.length<1 || month<1 || month>12){
      		alert("Geçerli bir ay giriniz!")
      		return false
      	}
      	if (strDay.length<1 || day<1 || day>31 || (month==2 && day>daysInFebruary(year)) || day > daysInMonth[month]){
      		alert("Geçerli bir gün giriniz!")
      		return false
      	}
      	if (strYear.length != 4 || year==0 || year<minYear || year>maxYear){
      		alert("Lütfen "+minYear+" ile "+maxYear+" arasında bir yıl giriniz!")
      		return false
      	}
      	if (dtStr.indexOf(dtCh,pos2+1)!=-1 || isInteger(stripCharsInBag(dtStr, dtCh))==false){
      		alert("Geçerli bir tarih giriniz!")
      		return false
      	}
      return true
      }

// --> 