/* popup for signin values */
function popupPH()
{
	var selectBox = document.getElementById('secure_sign_in');
	
	var selIndex = selectBox.selectedIndex;
	var selValue = selectBox.options[selIndex].value;
	
	var day = new Date();
	var id = day.getTime();
	var tbar = 0;
	var sbar = 0;
	var mbar = 0;
    	var rgn = window.location + '';
    	var url = selValue;
    	
	if (selIndex == 2) {
    		tbar = 1;
    		sbar = 1;
    		mbar = 1;
		
	}
	
	eval("page" + id + " = window.open(url, '" + id + "', 'toolbar=" + tbar +", scrollbars=1, location=0, statusbar=" + sbar + ", menubar=" + mbar +", resizable=1, width=850, height=600, left = 215, top = 30');");
}


/**
 * Description: direct page to value in dropdown
 * Params:
 *	menu - dropdown object
**/
function jump(menu)
{
	var selIndex = menu.selectedIndex;
	var selValue = menu.options[selIndex].value;
	
	window.location=selValue;

}

/**
 * IE6 Fix - Dropdowns appearing on top of Explore SLF worldwide overlay

**/
/*
Choose your country
*/
function ChooseYourCountry()
{
	$("#choose-country").hover(
		function(){
			if($("#choose-country-content:visible").size() < 1)
			{
				$("#choose-country-content").show();
				/*
				Hide the <select> menu (if applicable) in the first feature box on the
				right-hand column to fix the annoying IE6 bug where the dropdown is
				visible.
				*/
				$('#content-body div.col-top-right div.feature div.box select').css('visibility', 'hidden');
				$('#content-sidebar div.feature:first select').css('visibility', 'hidden');
			}
		},
		function() {
			$("#choose-country-content").hide();
			$('#content-body div.clearfix div.col-top-right div.feature div.box select').css('visibility', 'visible');
			$('#content-sidebar div.feature:first select').css('visibility', 'visible');
		}
	);

	$("#choose-country-content").hover(
		function() {
			$("#choose-country-content").show();
			$('#content-body div.clearfix div.col-top-right div.feature div.box select').css('visibility', 'hidden');
			$('#content-sidebar div.feature:first select').css('visibility', 'hidden');
		},
		function(){
			$("#choose-country-content").hide();
			$('#content-body div.clearfix div.col-top-right div.feature div.box select').css('visibility', 'visible');
			$('#content-sidebar div.feature:first select').css('visibility', 'visible');
		}
	);
}