//This javascript is loaded when DOM is ready
$('document').ready(function() {
	
	//To animate the menu bar
	$('#nav').droppy();	

	/*Commented out for task 612
	//To disable clicks on some items on MenuBar
	$('.navbar>ul>li>a:gt(1)').bind('click',function()
	{	
		return false;
	});*/	

	//To add the widget title depending upon the insurance type
	$('#widget_title_txt').text(widget_title_text);

	//To set the default text of the drop down and hidden insurance type
	$('#quotetype_selected').text(drop_down_text);
	$('#selInsuranceType').attr('value',sel_ins_type);

	//To show the content on TOP (SEO Reasons)
	//$('.title_txt_left').html($('.content_title').html());
	$('.content_section').html($('.content').html());
	
	//Focus the text box to enter zip when page is loaded
	//$('#txtZipBox').focus();
	$(':input[name=txtZipBox]').focus();
	
	//To hide the drop down when clicked anywhere in browser
	$('.wrapper').bind('click',function(e)
	{	
		e.stopPropagation();
		$('#quotetype_list').css('display','none');		
	});
	
	//To toggle the drop down when clicked on it or the arrow.		
	$('#quotetype_selected,.quotetype_list_arrow').bind('click',function(e)
	{
		e.stopPropagation();
		$('#quotetype_list').toggle();		
	});
	
	//To change the photo upon every new request
	$('.widgetcontainer').css('background','transparent url('+widget_photo+') no-repeat left top');
	
});