document.write('<a href="javascript:void(0)" onclick="Selecteaza_oras(); event.returnValue=false; return false;" id="selectie_oras">S O</a> <div id="selectie_oras_lista" style="height:0px; width:0px; visibility:hidden; position:absolute; top:0px; left:0px;"> 	<div id="selectie_oras_lista_lista" style="margin:5px auto; border:1px dashed grey; width:200px; height:0px;background-color:#FFF;"> 		<div id="selectie_oras_lista_rows"> 		</div> 		<div style="float:left; text-align:left; position:relative; clear:both; width:90px; padding-left:5px;"> 			<a href="javascript:void(0);" onclick="javascript:Selecteaza();" style="color:green; font-size:12px; z-index:1001;">Selecteaza</a> 		</div> 		<div style="float:right; position:relative; width:90px; padding-right:5px;"> 			<a href="javascript:void(0);" onclick="javascript:Inchide_fereastra();" style="color:red; font-size:12px; z-index:1001;">Inchide</a> 		</div> 	</div> </div>  <script type="text/javascript" language="JavaScript"> var jq_loaded = false; function Selecteaza_oras() { 	if(!jq_loaded) 	{ 		loadjscssfile("http://lib.orasultau.ro/jq/jquery.min.js", "js"); 	} 	else 	{ 		Incarca_lista_orase(); 	} }  function Load_complete() { 	jq_loaded = true; 	Incarca_lista_orase(); }  function State_change() { 	if ((this.readyState == "complete") || (this.readyState == "loaded")) Load_complete(); }  function loadjscssfile(filename, filetype) { 	if (filetype=="js") 	{ 		var fileref=document.createElement("script"); 		fileref.setAttribute("type","text/javascript"); 		fileref.setAttribute("src", filename); 		fileref.onreadystatechange = State_change; 		fileref.onload= Load_complete; 	} 	else if (filetype=="css") 	{ 		var fileref=document.createElement("link"); 		fileref.setAttribute("rel", "stylesheet"); 		fileref.setAttribute("type", "text/css"); 		fileref.setAttribute("href", filename); 	}   	 	if (typeof fileref!="undefined") 	{ 		document.getElementsByTagName("head")[0].appendChild(fileref); 	} }  function Incarca_lista_orase() { 	var offset = $("#selectie_oras").offset(); 	$("#selectie_oras_lista").css("width", "210px"); 	$("#selectie_oras_lista").css("height", "265px"); 	$("#selectie_oras_lista").css("position", "absolute"); 	$("#selectie_oras_lista").css("top", offset.top+"px"); 	$("#selectie_oras_lista").css("left", offset.left+"px"); 	$("#selectie_oras_lista").css("background-color", "#DDD"); 	$("#selectie_oras_lista").css("z-index", "10000"); 	$("#selectie_oras_lista").css("visibility", "visible");  	$("#selectie_oras_lista_lista").css("height", "250px"); 	 	/*$("#selectie_oras_lista_rows").load("http://lib.orasultau.ro/selectie_oras/lista/");*/ 	 	$.post("http://lib.orasultau.ro/selectie_oras/lista/", function(data){ 		$("#selectie_oras_lista_rows").html(data);  	}); 	 }  function Inchide_fereastra() { 	$("#selectie_oras_lista").css("visibility", "hidden"); }  function Selecteaza() { 	var os = $("#selectie_oras_lista_rows option:selected").val(); 	var uri = "http://lib.orasultau.ro/selectie_oras/sco/?os="+os; 	$.post(uri); 	var expirare = new Date( new Date().getTime()+86400000*30 ).toGMTString(); 	document.cookie = "otCs="+os+"; expires="+expirare+"; path=/; domain=.orasultau.ro;"; 	Inchide_fereastra(); 	window.location.reload(); }  </script>');