/*

	SüperSonik Ajax v5.0
	Gökhan ILDIR
		mail : gokhandiyebiri@gmail.com
		web  : www.vegokhan.com
		
    NEDEN KAYNAK KODLARINI DİDİKLEME HİSSİ DUYDUN ŞEKERİM ? 

*/

//AJax fonkisyonumuz
function nesneyarat() {
    var nesne;
    var tarayici = navigator.appName;
    if(tarayici == "Microsoft Internet Explorer"){
        nesne = new ActiveXObject("Microsoft.XMLHTTP");
    }else{
        nesne = new XMLHttpRequest();
    }
    return nesne;
}

var http = nesneyarat();

function gobek() {
    http.open('get', '/inc_orta.asp');
    http.onreadystatechange = okubakim;
    http.send(null);
}
function BlogOpen() {
    http.open('get', '/inc_blog.asp');
    http.onreadystatechange = okubakim;
    http.send(null);
}
function PopNewss() {
    http.open('get', '/inc_popnews.asp');
    http.onreadystatechange = okubakim;
    http.send(null);
}
function PopComments() {
    http.open('get', '/inc_popcomments.asp');
    http.onreadystatechange = okubakim;
    http.send(null);
}
function BlogRead(id) {
    http.open('get', '/inc_blogoku.asp?id=' + id);
    http.onreadystatechange = okubakim;
    http.send(null);
}
function VideoPlayer(id) {
    http.open('get', '/inc_videoplayer.asp?id=' + id);
    http.onreadystatechange = okubakim;
    http.send(null);
}
function VideoHomePage() {
    http.open('get', '/inc_videohome.asp');
    http.onreadystatechange = okubakim;
    http.send(null);
}
function VideoHomeCategory() {
    http.open('get', '/inc_videocat.asp');
    http.onreadystatechange = okubakim;
    http.send(null);
}
function okubakim() {
    if(http.readyState == 1){
        document.getElementById('anasayfa_orta').innerHTML = "<center><img src=/themes/secim/yukleniyor.gif><br><strong>lütfen bekleyiniz...</strong></center>";
	}
    if(http.readyState == 4){
        document.getElementById('anasayfa_orta').innerHTML = http.responseText;
	}
}
function VideoCat() {
    if(http.readyState == 1){
        document.getElementById('video_kategori').innerHTML = "<center><img src=/themes/secim/yukleniyor.gif><br><strong>lütfen bekleyiniz...</strong></center>";
	}
    if(http.readyState == 4){
        document.getElementById('video_kategori').innerHTML = http.responseText;
	}
}
function VideoOpen_TV41(){

var scrolls
if (screen.availHeight <= 600) scrolls = "yes"
else scrolls = "no";
eval("window.open('/videoplayer.asp','oz','width=900,height=600,location=no,directories=no,status=yes,menubar=no,scrollbars="+scrolls+",toolbar=no,resizable=yes,left=0,top=0');");
}
function gokhan_hideshow(elementid){
var gokhan = document.getElementById(elementid);
gokhan.style.display = (gokhan.style.display =="none") ? "block" : "none";

}
function Zipla(URL) {
if (URL.options[URL.selectedIndex].value != "") self.location.href = URL.options[URL.selectedIndex].value;	
return true;
}
function HokusFokus(Degis){
	if (!Degis.base) Degis.base = Degis.value
	if (Degis.value == Degis.base) Degis.value = "";
	else if (Degis.value == "") Degis.value = Degis.base;
}

