$(document).ready(function() { //load functions when the dom is ready
						   
    /////////////////////////////////////////////////////////////
	//the following function is for equalheight columns.
	/////////////////////////////////////////////////////////////
	
	equalHeight($("#cityguide .twocol"));
	equalHeight($(".equalize"));
	
    /////////////////////////////////////////////////////////////
	//the following function is for the masthead transition.
	/////////////////////////////////////////////////////////////
	
	$('#masthead').cycle('fade');
	
	 /////////////////////////////////////////////////////////////
	//the following function are for the iMap
	/////////////////////////////////////////////////////////////
	if($("#map").length > 0) {
	$("#map").stickyfloat({ duration: 400 });
	}
	
	/////////////////////////////////////////////////////////////
	//the following functions are for the attendees, exhibitors,
	//and meeting planners drop down menus.
	/////////////////////////////////////////////////////////////
	
    //default state of subnavs
    $('ul#attendeesSubNav, ul#exhibitorsSubNav, ul#meetingPlannersSubNav').css({
        "display": "none"
    });

    //on mouseover show the attendees subnav
    $('ul#attendeesNav').mouseover(function() {
        $('ul#attendeesSubNav').css({
            "display": "block"
        });
    });

    //on mouseover show the exhibitors subnav
    $('ul#exhibitorsNav').mouseover(function() {
        $('ul#exhibitorsSubNav').css({
            "display": "block"
        });
    });

    //on mouseover show the meeting planners subnav
    $('ul#meetingPlannersNav').mouseover(function() {
        $('ul#meetingPlannersSubNav').css({
            "display": "block"
        });
    });

    //on mouseout hide attendees subnav
    $('ul#attendeesSubNav, ul#attendeesNav').mouseout(function() {
        $('ul#attendeesSubNav').css({
            "display": "none"
        });
    });

    //on mouseout hide exhibitors subnav
    $('ul#exhibitorsSubNav, ul#exhibitorsNav').mouseout(function() {
        $('ul#exhibitorsSubNav').css({
            "display": "none"
        });
    });

    //on mouseout hide exhibitors subnav
    $('ul#meetingPlannersSubNav, ul#meetingPlannersNav').mouseout(function() {
        $('ul#meetingPlannersSubNav').css({
            "display": "none"
        });
    });
	

});