﻿/* Local JS */
// jQuery Dependent

// Site Loaded


function clickButton(e, buttonid){

  var evt = e ? e : window.event;
  var bt = document.getElementById(buttonid);
  if (bt){
      if (evt.keyCode == 13){
            bt.click();
            return false;
      }
  }
}
        
   
 function rechercher(){
   valeurRecherche=document.getElementById("input_recherche").value;
   window.location='http://www.chambresf.com:2610/resultats-recherche.html?cx=013157528662263201644:0pgddjf028y&cof=FORID:10;NB:1&ie=UTF-8&q='+valeurRecherche;
   }

$(document).ready(onSiteLoad);

function onSiteLoad() {
	//setImagesRollover("menuTop");
	setClassRollover("imgButton");
	setClassRollover("linkButton img");
	
	preloadRollovers();
	
	
	 
	
	$('#champRecherche > input').keypress(function(e){

            var enter = 13;

            if(e.which == enter) {

                
                
                
                valeurRecherche=document.getElementById("input_recherche").value;
                var varUrl='http://www.chambresf.com/resultats-recherche.html?cx=013157528662263201644:0pgddjf028y&cof=FORID:10;NB:1&ie=UTF-8&q='+valeurRecherche;
                //alert(varUrl);
                //window.location=varUrl;
                  var bt = document.getElementById("btRecherche");
                /*bt.click();*/

                

            }
        });
}






   