$(document).ready(function(){

	$("#theSelect").change(function() {
		switch ($(this).val()) {
			case 'Motorcycle':
				$(".save img").attr("src", "/DefaultFilePile/Public/GetQuote/motorcycle.png");
				$(".quoteForm a.getQuote").attr("href", "https://quote.markelinsuresfun.com/bike/quote.aspx");
				$(".quoteForm a.retrieve").attr("href", "https://quote.markelinsuresfun.com/bike/retrieve.aspx");
				break;
				
			case 'Boat':
				$(".save img").attr("src", "/DefaultFilePile/Public/GetQuote/boat.png");
				$(".quoteForm a.getQuote").attr("href", "https://quote.markelinsuresfun.com/boat/quote.aspx");
				$(".quoteForm a.retrieve").attr("href", "https://quote.markelinsuresfun.com/boat/retrieve.aspx");
				break;		
				
			case 'UTV/ATV':
				$(".save img").attr("src", "/DefaultFilePile/Public/GetQuote/utv.png");
				$(".quoteForm a.getQuote").attr("href", "https://quote.markelinsuresfun.com/atv/quote.aspx");
				$(".quoteForm a.retrieve").attr("href", "https://quote.markelinsuresfun.com/atv/retrieve.aspx");
				break;	
				
			case 'PWC':
				$(".save img").attr("src", "/DefaultFilePile/Public/GetQuote/pwc.png");
				$(".quoteForm a.getQuote").attr("href", "https://quote.markelinsuresfun.com/boat/quote.aspx");
				$(".quoteForm a.retrieve").attr("href", "https://quote.markelinsuresfun.com/boat/retrieve.aspx");
				break;	
			
			case 'Snowmobile':
				$(".save img").attr("src", "/DefaultFilePile/Public/GetQuote/snowmobile.png");
				$(".quoteForm a.getQuote").attr("href", "https://quote.markelinsuresfun.com/bike/quote.aspx");
				$(".quoteForm a.retrieve").attr("href", "https://quote.markelinsuresfun.com/atv/retrieve.aspx");
				break;	
				
			default: 
				$(".save img").attr("src", "/DefaultFilePile/Public/GetQuote/motorcycle.png");
				$(".quoteForm .getQuote a").attr("href", "https://quote.markelinsuresfun.com/bike/quote.aspx");
				$(".quoteForm a.retrieve").attr("href", "https://quote.markelinsuresfun.com/bike/retrieve.aspx");

		}
	});
    $("img[alt='Chat Online']").click( function(e){
                        e.preventDefault();
						window.open( "http://messenger.providesupport.com/messenger/markel.html", "MarkelSupport", 
						"status = 1, height = 500, width = 528, resizable = 0" );
				});
 
});
