
//language select
$(document).ready(function() {


 



    $(".campareTableData  .hotelname a").each(function() {
        if ($(this).text().length > 16) {
            $(this).attr("title", $(this).text());
            var str = $(this).text().substring(0, 13) + "...";
            $(this).html(str);
        }
    });

//    $(".campareTableData  .detailview td").each(function() {
//        if ($(this).text().length > 20) {
//            $(this).attr("title", $(this).text());
//            var str = $(this).text().substring(0, 16) + "...";
//            $(this).html(str);
//        }
//    });

// if ($(".footer").attr("hideprice") == "1") {
//        $("tr.compareRate").hide();
//        $(".roomItem .links .price").css("visibility", "hidden").parent().css("position", "relative")
//		     .find(".lks2").css({ "position": "absolute", "bottom": 0 });
//		    

//            thisinfotimer = setInterval(function() {
//                if ($(".thisinfo div").html() != null) {

//                    $(".thisinfo div").css("background-color", "transparent").find("span").hide().next("strong").hide();
//                }
//            }, 50);

//    }

    /*if($(".footer").attr("hideprice") == "1") {
    $("tr.compareRate").hide();                           //room comparison price	
    $(".thisinfo div").css("background-color","transparent")     //room detail price
    .find("span").hide().next("strong").hide();
		
		$(".roomItem .links .price").hide()
    .parent().css("position","relative")
    .find(".lks2").css({"position":"absolute","bottom":0});
		
	}*/

    //language select
    if ($(".lang").hasClass("lang_vf")) {
       $(".lang p").hide();
    }
    else if ($(".lang").hasClass("lang_h")) {
        $(".lang p").show();
    }
    else if ($(".lang").hasClass("lang_hf")) {
        $(".lang p").show();
    }


/*   $("table.compareTable tr.detailview:eq(2)").hide();
    $("table.campareTableData tr.detailview:eq(2)").hide();
    $("#detailview").click(function() {
        $("table.compareTable tr.detailview:eq(2)").hide().attr("visible", "hide");
        $("table.campareTableData tr.detailview:eq(2)").hide().attr("visible", "hide");
    });*/
//reservation  font-weight:blod;
    
    $(".nav a.reser").prev("a").css("font-weight", "bold");

});	 
		 
		 
		 
		 