
function hideDescription(theGroup,theGroupShow){
		
	$('#' + theGroup).hide();
	$('#' + theGroupShow).show();

}

function showDescription(theGroup,theGroupHide){
		
	$('.longDesc').hide();
	$('.shortDesc').show();
	
	$('#' + theGroupHide).hide();
	$('#' + theGroup).show();

}

function showGroup(theGroup){
	
	$('.mediaGroup').hide();
	$('#' + theGroup).show();

}

function ShowMenu(themenu){

	var el = document.getElementById(themenu);
	
	if (el){
		el.style.visibility = 'visible';
	}
}

function HideMenu(themenu){
	var el = document.getElementById(themenu);
	
	if (el){
		el.style.visibility = 'hidden';
	}
}

function offsite(url){
	var xpos = 0;
	var ypos = 0;
	var width=1024;
	var height=768;
	winOptions = 'toolbar=1,location=1,menubar=1,directories=1,screenx=' +  xpos + ',screeny='+ ypos + ',top='+ ypos +',left=' + xpos + ',status=1,menubar=1,scrollbars=1,resizable=1,width=' + width + ',height=' + height;
	var temp = window.open(url, '', winOptions);
	temp.focus();
}



function clearText(field){
    if (field.defaultValue == field.value) field.value = '';
    else if (field.value == '') field.value = field.defaultValue;
}

$(document).ready(function(){

    $(".menu").append("<li class='last'>&nbsp;</li>");

	//$("#tab_business_travel_55").addClass("on");
    //$("#subnav h2:contains('Business Travel')").next("ul").addClass("ul_businesstravel");

    $('.menu').hover(
      function () {
    	$(this).prev().addClass("menuhover");
      }, 
      function () {
           $(this).prev().removeClass("menuhover");
      }
    );

    $('.level2').hover(
      function () {
    	$(this).prev().addClass("submenuhover");
      }, 
      function () {
           $(this).prev().removeClass("submenuhover");
      }
    );

    $('div#subnav ul li').hover(
      function () {
        $(this).addClass("li_hover");
        $(this).find('ul.level2').css("visibility","visible");
      }, 
      function () {
           $(this).removeClass("li_hover");
           $(this).find('ul.level2').css("visibility","hidden");
      }
    );

    $('#subnav li.separator').first().addClass('first');
	$('ul.level2').find('li.separator').addClass('level2_separator');
    
    //$("#top_div.meetings_and_events #subnav ul.level1 li:eq(1)").addClass('li_width_me_cd');
    //$("#top_div.business_travel #subnav ul.level1 li:eq(0)").addClass('li_width_bt_cd');

    //$("#top_div.meetings_and_events #subnav ul.level2:eq(0)").find('li').addClass('li_width_me_cd');
    //$("#top_div.business_travel #subnav ul.level2:eq(0)").find('li').addClass('li_width_bt_cd');

    $(".li_7aaa092a-7ffd-40d3-abc9-b463ad7fca7f").addClass('li_width_me_ps');
    $(".li_7aaa092a-7ffd-40d3-abc9-b463ad7fca7f").find('li').addClass('li_width_me_ps_sub');
	
    $(".li_45017e02-e579-42c4-b3bd-40fae3361e0b").addClass('li_width_me_cd');
    $(".li_45017e02-e579-42c4-b3bd-40fae3361e0b").find('li').addClass('li_width_me_cd_sub');

    $(".li_1c03a2e9-c8cb-4eda-bbb6-73fd37b6d248").addClass('li_width_bt_cd');
    $(".li_1c03a2e9-c8cb-4eda-bbb6-73fd37b6d248").find('li').addClass('li_width_bt_cd_sub');


    $("a[rel='slideshow1']").colorbox({ opacity:0.8});
    $("a[rel='slideshow1']").each(function(){ $(this).colorbox({ title:$(this).attr('title') }) });



});




