

function resortOptions(){

	jQuery('#resortOptions div').hide();				

	jQuery('#resortOptions div.offers').show();
	jQuery('#offers').css({'background-color':'white','color':'black','background-image':'none','background-position':'top right','background-repeat':'no-repeat','border-right':'none'});
	
	jQuery('#resortOptions ul.optionTabs li').click(function(){
		
	var obj = jQuery(this).attr('id')
	
					
	jQuery('#resortOptions div').hide();				
					
	jQuery(this).parent('ul.optionTabs').children().not('.lastItem').css({'backgroundColor':'#E1DBC3','color':'black','background-image':'none','border-top':'none','border-right':'1px solid white'});
	jQuery(this).parent('ul.optionTabs').children('.lastItem').css({'backgroundColor':'black','color':'#E1DBC3','border-top':'none'});
	
	
		jQuery(this).css({'backgroundColor':'white','color':'black'});
		
	
	//alert(jQuery(this).attr('id'))
	
	
if(jQuery(this).attr('id') == "location"){
	

		jQuery('#map1').show();

		
		jQuery('#map1').gMap({
					
     					latitude: resortLat,
     					longitude: resortLong,
     					icon: {
        						image: "http://www.google.com/mapfiles/marker.png",
        						shadow: "http://www.google.com/mapfiles/shadow50.png",
        						iconsize: [20, 34],
        						shadowsize: [37, 34],
        						iconanchor: [9, 34],
        						shadowanchor: [9, 34]
    						  },
    					maptype:'SATELLITE',
	 					zoom: 15,
	 					markers:[{
								latitude: resortLat,
								longitude: resortLong
							    }],
     					controls:{
         						panControl: true,
        						zoomControl: true,
         						mapTypeControl: true,
         						scaleControl: false,
         						streetViewControl: false,
         						overviewMapControl: true
     							}
    
				});	
				
				
				
		
	} else {
		
		jQuery('#resortOptions div.' + obj).show();
		
	}			
	
		
	
	});



	
	
	jQuery('#resortOptions ul.optionTabs li').hover(function(){
				
		var obj = jQuery(this).attr('id');
		
		if(!jQuery('div:visible').hasClass(obj)){
		
			jQuery(this).css('color','white');
			
		} else {
			
			jQuery(this).css('color','black');
			
		}
	},
	function(){
		
		var obj = jQuery(this).attr('id');

		if(jQuery(this).attr('id') != 'offers'){		
			
			jQuery(this).css('color','black');
			
	  	} else {
		  	
			//jQuery(this).css({'color':'#E1DBC3','font-weight':'normal'});
		  	
	 	}
	}
			
	);
	
	
	
}
