function yukseklikDegeri() {

 var viewportwidth;
 var viewportheight;
 
 // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
 
 if (typeof window.innerWidth != 'undefined')
 {
      viewportwidth = window.innerWidth,
      viewportheight = window.innerHeight
 }
 
// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)

 else if (typeof document.documentElement != 'undefined'
     && typeof document.documentElement.clientWidth !=
     'undefined' && document.documentElement.clientWidth != 0)
 {
       viewportwidth = document.documentElement.clientWidth,
       viewportheight = document.documentElement.clientHeight
 }
 
 // older versions of IE
 
 else
 {
       viewportwidth = document.getElementsByTagName('body')[0].clientWidth,
       viewportheight = document.getElementsByTagName('body')[0].clientHeight
 }
 
 return viewportheight
}


function haritaAc() {
  $("#harita").animate({
    height: yukseklikDegeri()
    //opacity: 0.4,
    //marginLeft: "0.6in",
    //fontSize: "3em",
   // borderWidth: "10px"
  }, 1000 );
}


function haritaKapat() {
  $("#harita").animate({
    height: '50%'
    //opacity: 0.4,
    //marginLeft: "0.6in",
    //fontSize: "3em",
   // borderWidth: "10px"
  }, 1000 );
}


var haritaDurum = false;
function harita() {
	
	if ( haritaDurum == true || haritaDurum == null ) {
		$("#harita").animate({
			height: '50%'
			}, 1000 ); 
	  	haritaDurum = false;
		$('#haritaAsagiOk').show();
		$('#haritaYukariOk').hide();
		
		
	} else {
	  $("#harita").animate({
		  height: yukseklikDegeri()
		  }, 1000 );
	  haritaDurum = true;
	  $('#haritaYukariOk').show();
	  $('#haritaAsagiOk').hide();
	}	
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



// Revolution veri alma



function sayfa2(obj) {
	
var d=new Date();

$('#yukle').show();

$.ajax({
type: 'GET', 
url: 'site_v3/haber.php', 
data: 'hid='+obj+'&t='+d.getTime(), 
contentType: "application/json; charset=iso-8859-9",
error:function(){ $("#hataGoster").html("Hata olustu."); }, 
context: document.body,

success: function(veri) { 
$('#yukle').hide();
//alert(veri);
$("#haberGetir"+obj).html(veri);}
});



}


