
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
	 }
	}
	function myXMLHttpRequest() {
	  var xmlhttplocal;
	  try {
	    xmlhttplocal= new ActiveXObject("Msxml2.XMLHTTP")
	 } catch (e) {
	  try {
	    xmlhttplocal= new ActiveXObject("Microsoft.XMLHTTP")
	  } catch (E) {
	    xmlhttplocal=false;
	  }
	 }

	if (!xmlhttplocal && typeof XMLHttpRequest!='undefined') {
	 try {
	  var xmlhttplocal = new XMLHttpRequest();
	 } catch (e) {
	  var xmlhttplocal=false;
	  alert('couldn\'t create xmlhttp object');
	 }
	}
	return(xmlhttplocal);
}


function anasayfadegistir(id, limit) {	
	//show loading
	var related = document.getElementById('anasayfavideo');
	related.innerHTML = '<br /><br /><div style="text-align: center;"><img src="resim/yukleniyor.gif" alt="Yukleniyor..." /><br>Yükleniyoooo</div>';
	
	//make request
	var url = "/_inc/_anasayfaajax.asp?id="+ id +"&limit="+limit;
	
	xmlhttp.open("GET", url);
	xmlhttp.onreadystatechange = show_related;
	xmlhttp.send(null);
}


function show_related() {
    if(xmlhttp.readyState == 4) {
		//update with results
		if(xmlhttp.responseText != ""){
     		document.getElementById('anasayfavideo').innerHTML = xmlhttp.responseText;
		}
        
    }
}




function oyundegistir(id, limit) {	
	//show loading
	var related = document.getElementById('anasayfaoyun');
	related.innerHTML = '<br /><br /><div style="text-align: center;"><img src="resim/yukleniyor.gif" alt="Yukleniyor..." /><br>Yükleniyoooo</div>';
	
	//make request
	var url = "/_inc/_anasayfaajaxo.asp?id="+ id +"&limit="+limit;
	
	xmlhttp.open("GET", url);
	xmlhttp.onreadystatechange = show_related2;
	xmlhttp.send(null);
}


function show_related2() {
    if(xmlhttp.readyState == 4) {
		//update with results
		if(xmlhttp.responseText != ""){
     		document.getElementById('anasayfaoyun').innerHTML = xmlhttp.responseText;
		}
        
    }
}
