var loadstatustext="<img src='/images/yukleniyor.gif' /> Yükleniyor...";

 var autocontrolvar;

var arrayList = new Array (  "/tab/", //// Tab 
							"/tab/changeMustWatch", //// Must Watch
							"/tab/changeMustRead", //// Must Read
							"/tab/", //// kategori Review
							"/tab/changeTech", //// Tech Womaon Portal
							"/tab/section/", //// Section Pages india, world etc
							"/tab/business/" //// Section Pages Load, Tax etc

						 ); 	

function changeNavigation ( arg, total_arg, tab_name )
{	
   try 
   {   		
		if ( tab_name == 'most' )	var url = arrayList[ 0 ];
		if ( tab_name == 'mustwatch' )	var url = arrayList[ 1 ];
		if ( tab_name == 'mustread' )	var url = arrayList[ 2 ];
		if ( tab_name == 'techWomanPotal' )	var url = arrayList[ 4 ];
		if ( tab_name == 'nation' || tab_name == 'business' || tab_name == 'world' ||tab_name == 'sci-tech' ||tab_name == 'lifestyle' ||tab_name == 'sports' || tab_name == 'health' || tab_name == 'entertainment' )	var url = arrayList[ 5 ];
		if ( tab_name == 'loan_tax' )	var url = arrayList[ 6 ];
		


		if ( tab_name != 'mustreadMouseOver') 
			http.open("GET", url + arg +"/" +tab_name+".asp?sID="+Math.random()+"", true);

		//document.write (url + arg +"&tab=" +tab_name);

		if ( tab_name == 'mustwatch' )		 http.onreadystatechange = mustWatchHttpResponse;
		if ( tab_name == 'mustread' )		 http.onreadystatechange = mustReadHttpResponse;	 
		if ( tab_name == 'most' ) 			 http.onreadystatechange = tabNavHttpResponse;	 	 
		if ( tab_name == 'techWomanPotal' )  http.onreadystatechange = techWomanPotalHttpResponse;	 	 			 
		if ( tab_name == 'nation' )	 		 http.onreadystatechange = sectionNationHttpResponse;	 	 			 
		if ( tab_name == 'business')	 	 http.onreadystatechange = sectionBusinessHttpResponse;	 	 			 
		if ( tab_name == 'world' )	 		 http.onreadystatechange = sectionWorldHttpResponse;	 	 			 
		if ( tab_name == 'sci-tech')	 	 http.onreadystatechange = sectionSciTechHttpResponse;	 	 			 
		if ( tab_name == 'lifestyle' )	 	 http.onreadystatechange = sectionLifeStyleHttpResponse;	 	 			 
		if ( tab_name == 'sports')	 		 http.onreadystatechange = sectionSportsHttpResponse;	
		if ( tab_name == 'health')	 		 http.onreadystatechange = sectionHealthHttpResponse;	
		if ( tab_name == 'entertainment')	 http.onreadystatechange = sectionEntertainmentHttpResponse;	
 	 			 
		if ( tab_name == 'loan_tax')	 	http.onreadystatechange = sectionLoanTaxHttpResponse;	
	 		
	if ( tab_name == 'most' || tab_name == 'kategori' || tab_name == 'puandurumlari' || tab_name == 'videolar' || tab_name == 'cokizlenengenel' || tab_name == 'loan_tax' || tab_name == 'sonmaclar' ) 		
		{	 
			 for ( var i=1; i <= total_arg ; i++ )	 {
				if ( arg == i )
					document.getElementById( tab_name +i).style.display="block";
				else
					document.getElementById( tab_name +i).style.display="none";
			}
			
			if (tab_name == 'kategori' || tab_name == 'sonmaclar' || tab_name == 'puandurumlari' || tab_name == 'videolar' || tab_name == 'cokizlenengenel') {
				for ( var i=1; i <= total_arg ; i++ )	 {
				if ( arg == i )
					document.getElementById( "a" + tab_name +i).style.display="block";
				else
					document.getElementById( "a" + tab_name +i).style.display="none";
			}
			}
			
			
		}
		http.send(null);
   }catch(e){}
}


    var panels = new Array('sonlar1', 'sonlar2');
      var selectedTab = null;
      function showPanel(tab, name)
      {
        if (selectedTab) 
        
        for(i = 0; i < panels.length; i++)
          document.getElementById(panels[i]).style.display = (name == panels[i]) ? 'block':'none';

        return false;
      }
    
function changeNavigationTab ( arg, total_arg, focusTab, tab_name )
{	
	url = "/html/tab/cokokunanlar/";
	http.open("GET", url + "cokokunanlar.asp?cokokunan="+focusTab+"&sID="+Math.random()+"&bolum="+arg+"", true);

	if ( tab_name == 'tabNav' )
	 	 http.onreadystatechange = mostReadCommentedHttpResponse;	 
	 http.send(null);
}


<!--
 
var numflas=5;
for (i=1; i<numflas; i++)
var curflas=0;

 
function swapflas()
{
  
    
  curflas=curflas+1;
  if (curflas>numflas){curflas=1;}
    
		for ( var s=1; s <= 5 ; s++ )	 
		{
			if ( s == curflas )
		
			document.getElementById("tabflas"+s).className = "active";
			else
				document.getElementById("tabflas"+s).className = "none";		
		}
		
			for ( var s=1; s <= 5 ; s++ )	 
		{
			if ( s == curflas )
		
			document.getElementById("flasgor"+s).style.display= "block";
	
			else
					
					
					document.getElementById("flasgor"+s).style.display= "none";
							
							
		
		}
 
     
	 var tickspeed=5000
		autocontrolvar= setTimeout("swapflas()", 5000);
		
	
 
    }

function satirbasigorunum(tur)

{
	if (tur == 1){
		
		document.getElementById("s1").style.display= "block";
		document.getElementById("s2").style.display= "none";
		document.getElementById("ssecim1").className = "satirbasiactive";
		document.getElementById("ssecim2").className = "satirbasideactive";
		setCookie('sgorunum','1',365);
	}
			else{
		document.getElementById("s1").style.display= "none";
		document.getElementById("s2").style.display= "block";	
		document.getElementById("ssecim1").className = "satirbasideactive";
		document.getElementById("ssecim2").className = "satirbasiactive";
		setCookie('sgorunum','2',365);
		}
	
}
 
 function selectflas(flas)
{
  
    
 
		for ( var s=1; s <= 5 ; s++ )	 
		{
			if ( s == flas )
		
			document.getElementById("tabflas"+s).className = "active";
			else
				document.getElementById("tabflas"+s).className = "none";		
		}
		
			for ( var s=1; s <= 5 ; s++ )	 
		{
			if ( s == flas )
		
			document.getElementById("flasgor"+s).style.display= "block";
	
			else
					document.getElementById("flasgor"+s).style.display= "none";
		
		}
 
clearTimeout(autocontrolvar);
 
    }
//-->

 


function flasdegistir ( arg, total_arg, focusTab, tab_name )
{	
	if (arg=='0')
	{
	 var autocontrolvar;
	clearTimeout(autocontrolvar);
	displaymode="manual";
	}


	url = "/html/tab/flas/";
	
	http.open("GET", url + "flas.asp?flas="+focusTab+"&sID="+Math.random()+"", true);

if ( tab_name == 'tabflas' )
 	 http.onreadystatechange = flasHttpResponse;	 
	 http.send(null);
}



function flasHttpResponse() {
 
  
  if (http.readyState == 4)  {  	
  		var temp = http.responseText.split("**~~**")
		document.getElementById('flasdesc').innerHTML      = temp[0];
		document.getElementById('flassonraki_desc').innerHTML = temp[1];
		for ( var i=1; i <= 5 ; i++ )	 
		{
			if ( i == temp[2] )
				document.getElementById("tabflas"+i).className = "active";
			else
				document.getElementById("tabflas"+i).className = "none";		
		}
		if (temp[2] == 1)
		var sira="2";
		else if (temp[2] == 2)
		var sira="3";
		else if (temp[2] == 3)
		var sira="4";
		else if (temp[2] == 4)
		var sira="5";
		else if (temp[2] == 5)
		var sira="1";
		
		var tickspeed=5000
		autocontrolvar=setTimeout("flasdegistir ( 1, 5, "+sira+", 'tabflas')",tickspeed)
		
  }
}


function flasdegistirmanual ( arg, total_arg, focusTab, tab_name )
{	

	
	clearTimeout(autocontrolvar);
	url = "/html/tab/flas/";
	http.open("GET", url + "flas.asp?flas="+focusTab+"&sID="+Math.random()+"", true);

if ( tab_name == 'tabflas' )
 	 http.onreadystatechange = flasmanualHttpResponse;	 
	 http.send(null);
}


function stopCount()
{
clearTimeout(autocontrolvar);
}
function flasmanualHttpResponse() {
 
  
  if (http.readyState == 4)  {  	
  		var temp = http.responseText.split("**~~**")
		document.getElementById('flasdesc').innerHTML      = temp[0];
		document.getElementById('flassonraki_desc').innerHTML = temp[1];
		for ( var i=1; i <= 5 ; i++ )	 
		{
			if ( i == temp[2] )
				document.getElementById("tabflas"+i).className = "active";
			else
				document.getElementById("tabflas"+i).className = "none";		
		}
	
		
  }
}

function mostReadCommentedHttpResponse() {
 
  
  if (http.readyState == 4)  {  	
  		var temp = http.responseText.split("**~~**")
		document.getElementById('tab_desc').innerHTML      = temp[0];
		document.getElementById('tab_next_desc').innerHTML = temp[1];
		for ( var i=1; i <= 5 ; i++ )	 
		{
			if ( i == temp[2] )
				document.getElementById("tabNav"+i).className = "active";
			else
				document.getElementById("tabNav"+i).className = "none";		
		}
  }
}

function tabNavHttpResponse() {				


  if (http.readyState == 4)  {  	
	  document.getElementById('tabcokokunanlar').innerHTML = http.responseText;
  }
}

function sectionEntertainmentHttpResponse() {			
  if (http.readyState == 4)  {  	
	  document.getElementById('entertainmentContainer').innerHTML = http.responseText;
  }
}


function sectionHealthHttpResponse() {			
  if (http.readyState == 4)  {  	
	  document.getElementById('healthContainer').innerHTML = http.responseText;
  }
}

function sectionLoanTaxHttpResponse() {			
  if (http.readyState == 4)  {  	
	  document.getElementById('loadTaxContainer').innerHTML = http.responseText;
  }
}

function sectionNationHttpResponse() {			
  if (http.readyState == 4)  {  	
	  document.getElementById('nationContainer').innerHTML = http.responseText;
  }
}

function sectionBusinessHttpResponse() {			
  if (http.readyState == 4)  {  	
	  document.getElementById('businessContainer').innerHTML = http.responseText;
	 }
}

function sectionWorldHttpResponse() {			
  if (http.readyState == 4)  {  	
	  document.getElementById('worldContainer').innerHTML = http.responseText;
  }
}

function sectionSciTechHttpResponse() {			
  if (http.readyState == 4)  {  	
	  document.getElementById('sci-techContainer').innerHTML = http.responseText;
  }
}

function sectionLifeStyleHttpResponse() {			
  if (http.readyState == 4)  {  	
	  document.getElementById('lifestyleContainer').innerHTML = http.responseText;
  }
}

function sectionSportsHttpResponse() {			
  if (http.readyState == 4)  {  	
	  document.getElementById('sportsContainer').innerHTML = http.responseText;
  }
}

function techWomanPotalHttpResponse() {			
  if (http.readyState == 4)  {  	
	  document.getElementById('techWomanPotalContainer').innerHTML = http.responseText;
  }
}

function kategoriHttpResponse() {			
  if (http.readyState == 1)  {  	
  		document.getElementById('kategoriContainer').innerHTML = loadstatustext;
  }
  if (http.readyState == 4)  {  	
	  document.getElementById('showbuzzReviewContainer').innerHTML = http.responseText;
  }
}

function mustWatchHttpResponse() {

	if (http.readyState == 4)  {  	
		document.getElementById('mustwatchContainer').innerHTML = http.responseText;
  }
}

function mustReadHttpResponse() {

  if (http.readyState == 4)  {  	
		document.getElementById('mustreadContainer').innerHTML = http.responseText;
  }
}

function uyelik(bol,durum)
{
		
		if (durum == 0)
			document.getElementById(bol).style.display="none";
			else
			document.getElementById(bol).style.display="block";
	}
function getHTTPObject() 
{
  var xmlhttp;
  /*@cc_on
  @if (@_jscript_version >= 5)
    try {
      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        xmlhttp = false;
      }
    }
  @else
  xmlhttp = false;
  @end @*/
  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
    try {
      xmlhttp = new XMLHttpRequest();

    } catch (e) {

      xmlhttp = false;
    }
  }
  return xmlhttp;
}



var http = getHTTPObject(); // We create the HTTP Object
