// JavaScript Document
function photo_open(link, width, height)
{
var photoWindow = window.open(link,"photo",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height);
}
function openWindow(theURL,winName,features) {window.open(theURL,winName,features);}
function display(myimage) {
 html = "<html><head><title>Photo</title>" +
  "</head><body leftmargin=\"0\" " 
  + "marginwidth=\"0\" topmargin=\"0\" marginheight=\"0\"><center>" 
  + "<img style=\"cursor:pointer;\"src=\"" + myimage + "\" border=\"0\" name=\"image\" " 
  + "onload='window.resizeTo(document.image.width,document.image.height+135)'; onclick=\"window.close();\">"
  + "</center><div style=\"color:#C40D09; font-family:tahoma; font-weight:bold; font-size:11px;\" align=\"center\"><img src=\"http://www.design-imobiliare.ro/img/web_design_imobiliare_bc.gif\" width=\"192\" height=\"64\" title=\"design imobiliare 2007\" alt=\"web2007 design imobilliare copy; 2007\"><br/><span style=\"\">0751 884 977 / 021 330 39 94 </span> </div>"
  + "</body></html>";
 popup=window.open('','image','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1');
 popup.focus();
popup.document.open();
 popup.document.write(html);
 popup.document.close()
 };
  function doClear(theText) {
     if (theText.value == theText.defaultValue) {
         theText.value = ""
  }}
  	function set_language(id){
	var pars = 'get_lang='+id;
	 new Ajax.Request('client/ajax_modules/set_language.php',{method: 'get',parameters: pars,
		onLoading: function(){
	    $('loadingx').show();
		//alert('Let\'s see : '+form);
		},
		onSuccess: function(transport) {
		 var raspuns = transport.responseText;
		 //alert('Let\'s see : '+raspuns);
		 $('loadingx').hide();
		 getNewsLetter();
		 $('show_updatex').hide();
		 $(css2).hide();
		 $(css).innerHTML = raspuns;
		 $(css).show();
	   }  
    });
  }
  function getById(id){
	  return document.getElementById(id);
  }
  function showId(id){
  }
   ////////////////////////
 function openWindow(url,win,feat) { //v2.0
  window.open(url,win,feat);
}
 function newsLetter(){	
	var forms = $('frm_nws').serialize(true)
	new Ajax.Request('client/ajax_modules/insert_news_letter.php', {
	method: 'post', parameters: forms,
			onLoading: function(){
			},
			onSuccess: function(transport) {
				var raspuns = transport.responseText;
//alert(raspuns);
				$('news_lett').show();
				$('news_lett').innerHTML = raspuns;

			}
		});
	}
	function goToURL() { //v3.0
  var i, args=goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
	function bannerChange(){
	 new Ajax.Request('client/ajax_modules/project_change.php',{
	  parameters: 'none',
		onLoading: function(){
		},
		onSuccess: function(transport) {
		 var raspuns = transport.responseText;
		 $('headRG').innerHTML = raspuns;
         $('headRG').hide();
         Effect.Appear('headRG');
		 $('headRG').show();	 
	   }  
    });
  } 
  function doForMyHaiduc(){
   //Effect.Appear('appear_m');
   //Effect.Fade('appear_m');
   setInterval('bannerChange()', 12000);
  }
