/**
 * Javascript common.
 *
 * @Copyright (c) 2009 travelsoft
 * @author emmanuel.sammut, minmin.wang
 * @version 1.0
 */

/**
 * protected jquery alias $.
 */
(function($){

  /**
   * document.Ready event.
   */
  $(function(){
  		/**
		 * SERP PAGE
		 */

		// action for result block
		$(".result")
			.css("cursor", "pointer")
			.click(function(){
				var href = $(this).find("h2 a:first").attr("href");
				window.location = href;
			})
		.hover(
			function(){
				$(this).addClass("bgColor2"); //css("background-color", "#f0f5f9");
			},
			function(){
				$(this).removeClass("bgColor2"); //.css("background-color", "white");
  		});
  		$.cookies.set("retourUrl", document.location.href, {path : "/"});

});

})(jQuery);

/**
 * debug tools
 */
function info(param){
  if(window.console && window.console.info){
    window.console.info(param);
  }
}
