function movieFather(obiect) {
  if (navigator.appName.indexOf("Microsoft") != -1) {
      return window[obiect];
  }
  else {
      return document[obiect];
  }
}
function Fereastra_detalii(myurl){
	movieFather("loader").Fereastra_detalii(myurl);
}
function inaltimeClient(){
				 return document.body.clientHeight;
}
function Loader(){

document.write('<center><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" height="100%" id="loader" align="middle">\n');
document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
document.write('<param name="wmode" value="transparent" />\n');
document.write('<param name="movie" value="loader1.swf" /><param name="quality" value="high" />\n');
document.write('<embed src="loader1.swf" quality="high"  wmode="transparent" width="100%" height="100%" swLiveConnect=true id="loader" name="loader" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />\n');
document.write('</object></center>\n');

/*
    	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="nr_vizit" width="190" height="125" align="middle">\n');
    	document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
	document.write('<param name="movie" value="nr_vizit.swf" />\n');
 	document.write('<param name="quality" value="high" />\n');
 	document.write('<param name="wmode" value="transparent" />\n');
 	document.write('<param name="bgcolor" value="#ffffff" />\n');
	document.write('<embed src="nr_vizit.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="190" height="125" swLiveConnect=true id="nr_vizit" name="nr_vizit" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
   	 document.write('</object>\n');*/

}
function getCookie(NameOfCookie)
{ if (document.cookie.length > 0) 
{ begin = document.cookie.indexOf(NameOfCookie+"="); 
if (begin != -1) 
{ begin += NameOfCookie.length+1; 
end = document.cookie.indexOf(";", begin);
if (end == -1) end = document.cookie.length;
return unescape(document.cookie.substring(begin, end)); } 
}
return null; 
}

function setCookie(NameOfCookie, value, expiredays) { 
  var ExpireDate = new Date ();
  ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000));
  document.cookie = NameOfCookie + "=" + escape(value) + 
  ((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString());
}
function setCookieLimba(limba){
	setCookie('limba',limba,1);
}

function fereastra_foto_stiri(fotoid){
  my_window= window.open ("", "pozaWindow",'toolbar=no, menubar=no,scrollbars=no , resizable=yes,location=no, directories=no, status=no');
  my_window.document.write('<body bgcolor="#c80000" leftmargin=0 topmargin=0>');
	my_window.document.write('<center><img src="poze_stiri.php?id='+fotoid+'" id="poze_stiri" name="poze_stiri"></center></body>'); 
  
	//my_window.document.getElementById("poze_stiri");
		//my_window.document.images["poze_stiri"].height
		//my_window.document.body.height=20000
		//my_window.resizeTo(my_window.document.images["poze_stiri"].widtht,my_window.document.images["poze_stiri"].height)
		//my_window.resizeTo(my_window.document.images["poze_stiri"].widtht,1000)
		my_window.focus();
	}	





