function regionSelect ( menuForm )
{

	selecteditem = menuForm.categoryJumpSelect.selectedIndex;
	newurl = menuForm.categoryJumpSelect.options[ selecteditem ].value;
	if( newurl.length != 0)
	{
		location.href = newurl ;
	}
}

function clearField( fieldName )
{	
if(document.getElementById( fieldName ).value == 'Username' || document.getElementById( fieldName ).value == 'Password')
{
		document.getElementById( fieldName ).value = '';

}
}

sfHover = function() {
	var sfEls = document.getElementById("udm").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

$(document).ready(function(){
   var $tabs = $("#example > ul").tabs({ fx: { opacity: 'toggle' },selected: 0 });
   
   $("#gettingStarted").click(
		function()
		{
			$("#callToAction").slideDown().fadeIn(500);
		}
   )
   
   $("#callActionClose").click(
		function()
		{
			$("#callToAction").slideUp().fadeOut(500);
		}
   )
   
   
	$('#more_info_link').click(function() { // bind click event to link
	    $tabs.tabs('select', 1); // switch to third tab
	    return false;
	});
   
	$('#reviewing_options').click(function() { // bind click event to link
	    $tabs.tabs('select', 1); // switch to third tab
	    return false;
	});
	$('#case_study_link').click(function() { // bind click event to link
	    $tabs.tabs('select', 2); // switch to third tab
	    return false;
	});
	$('#comparison_link').click(function() { // bind click event to link
	    $tabs.tabs('select', 3); // switch to third tab
	    return false;
	});
	
	$('.more_info_link').click(function() { // bind click event to link
	    $tabs.tabs('select', 4); // switch to third tab
	    return false;
	});
});
