var brand = 'st_regis';
var requestedChainCode = 'ST';
var requestedAffiliationCode = 'ST';
var successPath = 'http://www.starwoodhotels.com/stregis/search/ratelist.html';


$(document).ready(function( ) {
	
    $('div.dhtmlSelector').click(function(event) {
		if($(this).find('ul').css('display') == 'none'){
			$(this).find('ul').show( );
		}else{
			$(this).find('ul').hide( );
		}
        if(event.stopPropagation){
            event.stopPropagation();
        }
    });
    $(document).click(function(e) {
        (e.target && e.target.id == 'languageSelectorButton') || $('div#languageSelector').find('ul').hide( );
    });
});


function brandNavClose()	{
	document.getElementById("brandNavBrandList").style.visibility = "hidden";
	document.getElementById("brandNavIframeShim").style.display = "none";
}

function brandNavOpen()	{
	document.getElementById("brandNavBrandList").style.visibility = "visible";
	document.getElementById("brandNavIframeShim").style.display = "block";
}

function popUp(URL,popWidth,popHeight, scrollbars) {
	var useScrollBars = scrollbars || "0";
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars="+useScrollBars+",location=0,statusbar=0,menubar=0,resizable=0,width="+popWidth+",height="+popHeight+",left=242,top=114');");
}



