
function _offerBox()
{       
   document.getElementById("best_deals_box").style.display = "block";
   document.getElementById("DivDestSearch").style.display = "none";  
   document.getElementById("customer_fav_box").style.display = "none";
   document.getElementById("customer_fav_link").onclick = function(){ showCustBox(); };
   document.getElementById("value_finder_link").onclick = function(){ showValueBox(); };
   document.getElementById("DestSearch").onclick = function(){showDestDiv();   };	
}
function MoreDestination()
{
     document.getElementById("DestSearch").onclick = function(){showDestDiv();   };
}
function showCustBox()
{
    document.getElementById("best_deals_box").style.display = "none";  
    document.getElementById("best_deals_tab").style.background = "url(/Search/images/homepage/home_taboff.gif) no-repeat right";
    document.getElementById("customer_fav_box").style.display = "block";
    document.getElementById("highest_rating_tab").style.background ="url(/Search/images/homepage/home_tabon.gif) no-repeat right";
    if(parseInt(_$("ctl00_plhBody_hdnTabValue").value) == 0)
    {
        AjaxHomeRequest("CF",0);
    }
}
function showValueBox()
{
    document.getElementById("best_deals_box").style.display = "block";
    document.getElementById("best_deals_tab").style.background = "url(/Search/images/homepage/home_tabon.gif) no-repeat right";
    document.getElementById("customer_fav_box").style.display = "none";
    document.getElementById("highest_rating_tab").style.background="url(/Search/images/homepage/home_taboff.gif) no-repeat right";
    if(parseInt(_$("ctl00_plhBody_hdnTabValue").value) == 0)
    {        
        var dealDiv=_$("test");
        dealDiv.className="show";         
        var Blabel=_$("price_label");
        Blabel.className="border"; 
        var pselect = _$("price_select"); 
        //Code made upside down by Irshad due to the slider initialization Irshad 09-06-09        
        pselect.className = 'show';        
        //Initiliaze the Slider for Beach Code modified by Irshad 10-06-09 for slider
        InitiliazeSlider('price_label','price_select','min_slider','max_slider',(50),(100),'0');
    }
}
function showDestDiv()
{
    document.getElementById("DestSearch").style.color='';
    if(document.getElementById("DivDestSearch").style.display == "block")
    {
        document.getElementById("DivDestSearch").style.display = "none";
        ClearRAR();
    }
    else
    {
        document.getElementById("DivDestSearch").style.display = "block";
        GetRegion(0,0,0);// default 0 parameter for default all regions 
    }    
}
function _DestGuide()
{
    var rec_hotel_link_dis = document.getElementById("rec_hotel_link_dis");
	var rec_hotel_link_act = document.getElementById("rec_hotel_link_act");	
	var guide_link_dis = document.getElementById("guide_link_dis");
	var guide_link_act = document.getElementById("guide_link_act");	
	 var similar_properties = document.getElementById("similar_properties");
	var destination_review = document.getElementById("destination_review");	
	rec_hotel_link_dis.style.display="block";
	rec_hotel_link_act.style.display="block";    
    rec_hotel_link_dis.onclick = function(){ showSmProp(); };
     guide_link_dis.onclick = function(){ showGuide(); };
}
function showSmProp()
{
    var rec_hotel_link_dis =    document.getElementById("rec_hotel_link_dis");//document.getElementById
	var rec_hotel_link_act = document.getElementById("rec_hotel_link_act");	
	var guide_link_dis = document.getElementById("guide_link_dis");
	var guide_link_act = document.getElementById("guide_link_act");	
    var similar_properties = document.getElementById("similar_properties");
	var destination_review = document.getElementById("destination_review");	
    similar_properties.style.display="block";	    
    rec_hotel_link_act.style.background="url(/Search/images/homepage/landingpage_tabon.gif) no-repeat right";	
	if(destination_review.style.display=="block")
	{
		guide_link_act.style.background="url(/Search/images/homepage/landingpage_taboff.gif) no-repeat left";	
        destination_review.style.display="none";
	}
}
function showGuide()
{
    var rec_hotel_link_dis = document.getElementById("rec_hotel_link_dis");
	var rec_hotel_link_act = document.getElementById("rec_hotel_link_act");	
	var guide_link_dis = document.getElementById("guide_link_dis");
	var guide_link_act = document.getElementById("guide_link_act");	
    var similar_properties = document.getElementById("similar_properties");
	var destination_review = document.getElementById("destination_review");	
	destination_review.style.display="block";    
    guide_link_act.style.background="url(/Search/images/homepage/landingpage_tabon.gif) no-repeat right";    
    if(similar_properties.style.display=="block")
	{
	    rec_hotel_link_act.style.background="url(/Search/images/homepage/landingpage_taboff.gif) no-repeat left";	
	    similar_properties.style.display="none";
	}    
}
function sFooter()
{
    if(CheckForValidObject(document.getElementById("feat_destinations")))
    {
        document.getElementById("feat_destinations").style.display = "block";
    }
}
		
		