///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// JS : Dynamically created by source4Cms : Last Update : 10.08.2009 - 18:26:26
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


function Yukseklik(Obj) {

var Dom = findDOM(Obj,1);

var Height;


Height = document.documentElement.clientHeight;



Dom.height = Height + "px";



return true;

}

// Dom buluyoruz

var isDHTML = 0;

var isLayers = 0;

var isAll = 0;

var isID = 0;



if(document.getElementById) {

isID = 1;

isDHTML = 1;

}

else {

browserVersion = parseInt(navigator.appVersion);



if((navigator.appName.indexOf("Netscape") != -1) && (browserVersion == 4)) {

isLayers = 1;

isDHTML = 1;

}

else {

if(document.all) {

isAll = 1;

isDHTML = 1;

}

}



}



function findDOM(objectID,withStyle) {

if(withStyle == 1) {

if(isID) {


return (document.getElementById(objectID).style);

}

else {

if(isAll) {

return (document.all[objectID].style);

}

else {

if(isLayers) {

return (document.layers[objectID]);

}

}

}

}

else {

if(isID) {

return (document.getElementById(objectID));

}

else {

if(isAll) {

return (document.all[objectID]);

}

else {

if(isLayers) {

return (document.layers[objectID]);

}

}

}

}

}


/***************************************************************************************/
/*FORM -TR-*/
function contactFormKontrol(form) 
{ 
   var aa=document.contactForm.email
		
	 patternEposta   = "^"+"([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0-9_\.\-]+)"+"@"+"([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0-9_\.\-]+)"+"[\.]"+"([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0-9_\.\-]+)"+"$"; 
           
        if ( !regKontrol(patternEposta,form.value)) 
     { 
          alert("Lütfen Geçerli Bir E-posta Adresi Giriniz."); 
         
          aa.focus(); 
          return false; 
     } 
     return true; 
} 

/*FORM -EN-*/
function contactFormKontrolEN(form) 
{ 
   var aa=document.contactForm.email
		
	 patternEposta   = "^"+"([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0-9_\.\-]+)"+"@"+"([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0-9_\.\-]+)"+"[\.]"+"([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0-9_\.\-]+)"+"$"; 
           
        if ( !regKontrol(patternEposta,form.value)) 
     { 
          alert("E-mail Address Please Enter a Valid."); 
         
          aa.focus(); 
          return false; 
     } 
     return true; 
} 




// Mail Control

function regKontrol(pattern, value) 
{ 
   r = new RegExp(pattern, "g"); 
   return r.test(value); 
} 

/***************************************************************************************/

function videoKontrol(a) 
{ 
// alert(a)

var deger=a
 if (deger=='ddd')
{
document.getElementById('ddd').style.display = "inline";
document.getElementById('yyy').style.display = "none";
}
else
{
document.getElementById('ddd').style.display = "none";
document.getElementById('yyy').style.display = "inline";

}


} 


/***************************************************************************************/

function divAc01(a,b) 
{ 
//alert(a)


{
document.getElementById(a).style.display = "inline";
}

document.getElementById(b).style.display = "none";

} 

/*****************************************************************************************/

function divAc04(a,b) 
{ 
//alert(a)


{
document.getElementById(b).style.display = "inline";
}

document.getElementById(a).style.display = "none";

} 






/*****************************************************************************************/


function divAc02(x,y) 
{ 



{
document.getElementById(y).style.display = "inline";
}

document.getElementById(x).style.display = "none";

}


/*****************************************************************************************/



function divAc03(h,d) 
{ 



{
document.getElementById(d).style.display = "inline";
}

document.getElementById(h).style.display = "none";

} 

/*****************************************************************************************/
/*****************************************************************************************/
/*****************************************************************************************/
/*****************************************************************************************/
/*****************************************************************************************/

function window_open(url,option){
            if (option == "self"){
                  document.location.href=url;
            }else{
                  mywin = window.open(url,"_self","");
            }
      }


      
            var timerId=0;
            var mouseover=false;
            var gunlukMansetHaberListSize = 3;
            startTimer('1');
            
            function startTimer(count){
                  if(!mouseover){
                  var mansetDiv10 = document.getElementById('mansetImage10');
                  mansetDiv10.style.display='none';
                        for(var i=1;i<=gunlukMansetHaberListSize;i++){
                             var mansetDiv = document.getElementById('mansetImage'+i);
                             var tdRakam = document.getElementById('td_rakam'+i);
                             if( !mansetDiv || !tdRakam )
                                   continue;
                             
                             if(i==count){
                                   mansetDiv.style.display='block';
                                   tdRakam.style.background='#94ade8';
                             }else{
                                   mansetDiv.style.display='none';
                                   tdRakam.style.background='#3957A1';
                             }
                        }
                  }
                  count++;
                  if(count>gunlukMansetHaberListSize){
                        count=1;
                  }
                  timerId=setTimeout("startTimer('"+count+"')",7000);
            }

            function showManset(number){
                  mouseover=true;
                  
                  var mansetDiv10 = document.getElementById('mansetImage10');
                  var tdRakam10 = document.getElementById('td_rakam10');
                  if( number == 10 ){
                        mansetDiv10.style.display='block';
                        tdRakam10.style.background='#94ade8';
                  }else{
                        mansetDiv10.style.display='none';
                        tdRakam10.style.background='#3957A1';
                  }
                  
                  for(var i=1;i<=gunlukMansetHaberListSize;i++){
                        var mansetDiv = document.getElementById('mansetImage'+i);
                        var tdRakam = document.getElementById('td_rakam'+i);
                        if( !mansetDiv || !tdRakam )
                             continue;
                        
                        if(i==number){
                             mansetDiv.style.display='block';
                             tdRakam.style.background='#94ade8';
                        }
                        else{
                             mansetDiv.style.display='none';
                             tdRakam.style.background='#3957A1';
                        }
                  }
            }
            
            function stopTimer(){
                  //document.getElementById('img'+count+''+iterate).src=domain+'images/manset/n'+count+'.gif';
                  mouseover=false;
            }
            
            function stopTimerEnd(){
                  mouseover=false;
            }
            
            function startTimerEnd(){
                  mouseover=true;
                  for(var i=1;i<=gunlukMansetHaberListSize;i++){
                        if( document.getElementById('td_rakam'+i) )
                              document.getElementById('td_rakam'+i).style.background='#3957A1';
                  }
            }
            
            function showAllManset(evt){
                  for(var i=1;i<=gunlukMansetHaberListSize;i++){
                        var mansetDiv = document.getElementById('mansetImage'+i);
                        if( mansetDiv )
                             mansetDiv.style.display='none';
                  }
                  var mansetDiv10 = document.getElementById('mansetImage10');
                  mansetDiv10.style.display='block';

                  var testFairsDiv = document.getElementById('testFairsDiv');
                  //testFairsDiv.style.display = 'block';
                  //mansetGununResimleriClose();
                  //postRequestWithCache(evt||window.event,'manset.do','method=mansetGununResimleri','testFairsDiv',true);
            }

            function mansetGununResimleriClose(){
            	var testFairsDiv = document.getElementById('testFairsDiv');
                
              	visible = testFairsDiv.style.display == "none";
               	if (visible)
		       		showGununMansetleriPanel(true);
		       	else
		       		closeGununMansetleriPanel();
            }

	        function showGununMansetleriPanel(visible) {
	        	var pnl = document.getElementById("testFairsDiv");
	        	pnl.style.display = visible ? "block" : "none";
	        }
	
	        function closeGununMansetleriPanel() {
	        	showGununMansetleriPanel(false);
	        }
		        
                
    