var visible={};

function expand(x) {
	if (visible[x]) {
		if (visible[x] == 1) {
			$('#expandable_'+x+'_link span').html('show');
			visible[x] = 0;
		}
		else {
			$('#expandable_'+x+'_link span').html('hide');		
			visible[x] = 1;
		}
	} else {
		$('#expandable_'+x+'_link span').html('hide');		
		visible[x] = 1;
	}
	
	$('#expandable_'+x).toggle();
}

var current_expandable = '';

function toggle_expandable(x) {
	if (current_expandable != '') {
		$('#'+current_expandable).slideUp('slow');				
	}
	
	if (current_expandable != x) {
		$('#'+x).slideDown('slow');
		current_expandable = x;
	} else {
		current_expandable = '';
	}
	
}


$(document).ready(function() {
     if (document.all) {
        $(".nav li").fixHover();
	 }	 


	 $('#search_box').hover(function() { $(this).addClass('hovering'); }, function() { $(this).removeClass('hovering'); }); 
});

function launch_microsite(s, w, h) {
	window.open ("http://microsites.wright20.com/"+s,"microsite_"+s,"status=1,toolbar=0,location=0,menubar=0,directories=0,resizable=1,scrollbars=0,left=50,top=25,height="+h+",width="+w);
	return false;
}