function main() {
    //fix irratating IE6 background image flickering problem
	try { document.execCommand("BackgroundImageCache", false, true); } catch(err) {}
        
    //drop-down menus
	$('#exploreButton').hover(function(){showSubMenu('#exploreMenu');},function(){hideSubMenu('#exploreMenu')});
	$('#exploreMenu').hover(function(){showSubMenu('#exploreMenu');},function(){hideSubMenu('#exploreMenu')});
	$('#planButton').hover(function(){showSubMenu('#planMenu');},function(){hideSubMenu('#planMenu')});
	$('#planMenu').hover(function(){showSubMenu('#planMenu');},function(){hideSubMenu('#planMenu')});
	$('#purchaseButton').hover(function(){showSubMenu('#purchaseMenu');},function(){hideSubMenu('#purchaseMenu')});
	$('#purchaseMenu').hover(function(){showSubMenu('#purchaseMenu');},function(){hideSubMenu('#purchaseMenu')});
	$('#stayButton').hover(function(){showSubMenu('#stayMenu');},function(){hideSubMenu('#stayMenu')});
	$('#stayMenu').hover(function(){showSubMenu('#stayMenu');},function(){hideSubMenu('#stayMenu')});
	
	//set rounded corners
	$('.whiteBox').append('<img src="../images/white_yellow_corner1.gif" class="corner1" />');
	$('.whiteBox').append('<img src="../images/white_yellow_corner2.gif" class="corner2" />');
	$('.whiteBox').append('<img src="../images/white_yellow_corner3.gif" class="corner3" />');
	$('.whiteBox').append('<img src="../images/white_yellow_corner4.gif" class="corner4" />');	
    
	//set rounded corners
	$('.blueBox .whiteBox').append('<img src="../images/white_blue_corner1.gif" class="corner1" />');
	$('.blueBox .whiteBox').append('<img src="../images/white_blue_corner2.gif" class="corner2" />');
	$('.blueBox .whiteBox').append('<img src="../images/white_blue_corner3.gif" class="corner3" />');
	$('.blueBox .whiteBox').append('<img src="../images/white_blue_corner4.gif" class="corner4" />');	
    
	//set rounded corners
    $('.yellowBox').append('<img src="../images/yellow_corner1.gif" class="corner1" />');
	$('.yellowBox').append('<img src="../images/yellow_corner2.gif" class="corner2" />');
	$('.yellowBox').append('<img src="../images/yellow_corner3.gif" class="corner3" />');
	$('.yellowBox').append('<img src="../images/yellow_corner4.gif" class="corner4" />');	
    
	//set rounded corners
	$('.blueBox').append('<img src="../images/blue_corner1.gif" class="corner1" />');
	$('.blueBox').append('<img src="../images/blue_corner2.gif" class="corner2" />');
	$('.blueBox').append('<img src="../images/blue_corner3.gif" class="corner3" />');
	$('.blueBox').append('<img src="../images/blue_corner4.gif" class="corner4" />');	
	
	//set rounded corners
	$('.greyBox').append('<img src="../images/corner1.gif" class="corner1" />');
	$('.greyBox').append('<img src="../images/corner2.gif" class="corner2" />');
	$('.greyBox').append('<img src="../images/corner3.gif" class="corner3" />');
	$('.greyBox').append('<img src="../images/corner4.gif" class="corner4" />');	

	//jquery implementation of valign="middle"
    $('.valign').each(function () {
        $(this).css('margin-top',(($(this).parent().height()-$(this).height())/2)+'px');
        $(this).css('display','block');
        });
    
    //convert PNGs to GIFs if IE6 
    if($.browser.msie && $.browser.version.substr(0,3)<"7")
        $("img[@src$=png]").each(function () {$(this).attr('src', $(this).attr('src').replace(/png/i, 'gif'))}); 
}

function showSubMenu(obj) {
    //$('#exploreButton').attr({src: exploreButtonOn.src});
    $(obj).css({display: "block"});
}

function hideSubMenu(obj){
    //$('#exploreButton').attr({src: exploreButtonOff.src});
    $(obj).css({display: "none"});
}


