$(document).ready(function($) {

$("#menu ul li").hover(
 function()
 {
  var src = $(this).find('img').attr("src");
  var newsrc = src.replace("-off","-hover");
  $(this).find('img').attr("src", newsrc);
 },
 function()
 {
  var src = $(this).find('img').attr("src");
  var newsrc = src.replace("-hover","-off");
  $(this).find('img').attr("src", newsrc); }
);


$('#contentcc1 tr:not(".first")').hide();

$("#cc_select").change(function(){
	var the_id = $("#cc_select").val();
	$('#contentcc1 tr:not(".first")').hide();
	$("#contentcc1 tr."+the_id).show();
});



$("#cclinks li").click(function(){
				 
	var id = $(this).attr("id");
	
	var theid = '#content' + id;
	
	$("div.activecontent").removeClass('activecontent');

	$("#cclinks li.activetab").removeClass('activetab');
	
	$(this).addClass('activetab');
	
	$(theid).addClass('activecontent');
				   
				   
});


$("#carrierlink_select").change(function(){
	var the_id = $("#carrierlink_select").val();
	switch(the_id){
		case "Progressive": window.open('https://www.progressiveagent.com/manage-your-policy.aspx');
		break;
		case "Travelers": window.open('http://mytravelers.com/ESERV/MyTravSplash.aspx?AppCn=PLCUS');
		break;
		case "Encompass": window.open('https://www.encompassinsurance.com/billpay/login.asp');
		break;
		case "Montgomery_Safco": window.open('https://www.montgomery-ins.com/omapps/ContentServer?cid=1057678038603&pagename=ramInternet/Applications/PolicyHolder');
		break;
		case "Mainstreet_America": window.open('http://www.msagroup.com/policyholder/');
		break;
		case "Cincinnati": window.open('http://www.cinfin.com/');
		break;
		case "Harleysville": window.open('http://www.harleysvillegroup.com/pol/pol_1.html');
		break;
		case "Selective": window.open('http://www.selective.com/');
		break;
		case "Universal": window.open('http://www.uihna.com/en-US/');
		break;
		case "Chartis": window.open('http://www.chartisinsurance.com/US-personal-private-client-group_295_182870.html');
		break;
		case "Chubb": window.open('http://www.chubb.com/');
		break;
		case "ASI": window.open('https://www.americanstrategic.com/PolicyHolder/login.aspx');
		break;
		case "Accident_Fund": window.open('http://www.accidentfund.com/');
		break;
		case "Berkley": window.open('http://www.wrbmag.com/');
		break;
		case "FCCI": window.open('https://appweb.fcci-group.com/expresswrite/ewauth');
		break;
		case "General_Casualty": window.open('http://www.generalcasualty.com/general-casualty/qbepay.aspx');
		break;
		case "GuideOne": window.open('https://www.guideone.com/');
		break;
		case "The_Hartford": window.open('http://www.thehartford.com/servlet/Satellite?c=Page&cid=1150850346056&pagename=HIG%2FPage%2FCompTabPage');
		break;
		case "JUA": window.open('http://www.pmslic.com/policyholders/');
		break;
		case "Key_Risk": window.open('http://www.keyrisk.com/');
		break;
		case "Penn_National": window.open('http://www.pennnationalinsurance.com/portal/');
		break;
		default: //nothing;
		}
	});



 var target = '.homeblock';
  $(target).each(function() {
		$(this).hover(
      function() {
         status=$(this).find('a').attr('href');
      },
      function () {
      });

    $(this).click(function() {
       location = $(this).find('a').attr('href');
    });

    $(this).css('cursor','pointer');

  });




$("a[href^='http://']").each(function(){
		var thehref = $(this).attr('href');
		if(thehref.match(window.location.host)){
		} else {
			$(this).attr('target', '_blank');
		}
	});

$("#cc2 p:contains('http')").hide();

$("#cc2 h3").css("cursor", "pointer");
$("#cc2 h3").toggle(function(){			 
	$(this).next().show();		
	}, function() {
	$(this).next().hide();		
	});


$("#quote-type").click(function(){
	$("ul.quote-types").slideDown();

});

$("ul.quote-types li").click(function(){
	var newValue = $(this).text();
	$("#quote-type").val(newValue);
	$("ul.quote-types").hide();

});

function in_array(string, array)
{
   for (i = 0; i < array.length; i++)
   {
      if(array[i] == string)
      {
         return true;
      }
   }
return false;
}



$("#quote-form").submit(function(){
	var qtype_val = $("#quote-type").val();
	var zip_val = $("#zip-code").val();	
	var zips = new Array(28290, 27425, 27411, 28315, 28685, 28456, 28607, 27006, 28605, 27910, 27201, 28713, 28001, 28002, 28508, 28701, 28043, 28043, 28006, 28681, 27263, 28509, 27326, 28702, 27202, 28657, 28679, 27425, 27425, 27013, 28901, 27501, 28007, 27502, 27523, 27539, 28608, 28643, 28128, 28781, 28510, 27007, 27292, 27263, 27520, 28704, 27103, 28642, 27292, 28420, 27007, 27203, 27204, 27205, 28801, 28802, 28803, 28804, 28805, 28806, 28810, 28813, 28814, 28815, 28816, 28615, 28745, 28421, 28511, 28512, 28512, 28512, 27805, 27806, 28318, 27915, 28513, 27916, 27027, 28009, 28009, 28127, 27542, 27503, 27807, 28705, 28461, 28461, 28461, 28694, 28643, 28604, 28707, 28708, 28605, 28255, 28604, 28691, 27013, 27917, 28010, 28010, 28709, 28319, 28623, 28710, 27808, 28630, 27809, 28515, 27207, 28125, 27892, 28516, 28694, 28410, 28657, 28679, 28604, 28604, 27009, 27009, 27810, 27811, 28166, 28012, 27919, 28451, 28090, 27208, 27504, 27006, 28016, 27010, 27812, 28601, 28518, 28358, 28813, 28803, 28803, 28715, 27209, 27006, 27813, 28711, 28711, 28658, 28320, 27212, 27212, 28461, 27814, 28605, 28743, 28643, 28092, 28461, 28017, 28017, 28422, 28423, 27213, 28052, 28606, 28607, 28608, 27011, 27011, 28018, 28018, 27288, 28398, 27157, 28677, 28258, 28643, 27055, 28902, 27604, 27616, 28712, 28519, 28655, 27214, 28655, 27505, 27052, 27020, 28645, 27214, 27214, 28684, 28633, 28424, 28713, 27020, 27243, 27330, 27506, 27507, 27508, 28323, 28425, 28655, 27215, 27215, 27216, 27217, 27220, 27321, 28734, 28714, 27214, 27509, 28320, 27920, 27228, 28467, 28078, 28659, 28655, 28325, 27921, 28326, 28296, 27605, 28542, 28547, 27320, 27229, 28715, 27229, 28716, 28584, 28401, 27954, 27920, 28516, 27330, 28019, 28428, 28428, 28732, 27698, 28467, 28467, 28652, 27510, 28327, 28734, 27511, 27512, 27513, 27518, 27519, 28020, 28717, 27816, 28429, 27326, 28465, 28609, 28012, 27230, 27231, 28520, 28718, 28718, 28584, 28677, 27055, 28081, 28430, 28431, 27514, 27515, 27516, 27517, 27599, 28677, 28201, 28202, 28203, 28204, 28205, 28206, 28207, 28208, 28209, 28210, 28211, 28212, 28213, 28214, 28215, 28216, 28217, 28218, 28219, 28220, 28221, 28222, 28223, 28224, 28226, 28227, 28228, 28229, 28230, 28231, 28232, 28233, 28234, 28235, 28236, 28237, 28241, 28242, 28243, 28244, 28246, 28247, 28250, 28253, 28254, 28255, 28256, 28258, 28260, 28262, 28263, 28265, 28266, 28269, 28270, 28271, 28272, 28273, 28274, 28275, 28277, 28278, 28280, 28281, 28282, 28284, 28285, 28287, 28288, 28289, 28290, 28296, 28297, 28299, 28250, 27322, 28719, 28627, 28533, 28533, 27320, 28021, 28655, 28657, 28617, 28720, 28023, 28521, 27817, 27292, 27292, 28610, 28432, 28433, 27520, 27527, 27528, 27012, 27013, 28024, 28693, 27233, 28670, 28328, 28329, 28721, 27521, 27922, 27923, 27924, 27316, 27235, 28611, 27949, 27330, 27925, 28722, 28643, 28522, 27818, 28025, 28026, 28027, 27819, 28612, 28612, 28612, 28613, 27820, 27013, 27014, 27017, 27926, 28330, 28018, 28031, 27927, 28144, 27292, 28128, 28434, 27408, 28634, 27055, 28523, 28734, 28542, 28542, 27612, 28032, 28622, 28657, 27522, 27564, 28615, 27928, 28659, 28616, 28033, 28052, 28617, 28903, 28734, 28723, 28331, 27237, 28435, 27929, 27020, 28034, 27043, 28724, 27016, 28624, 28622, 28035, 28036, 28524, 28618, 27260, 28525, 28607, 28635, 28436, 28090, 28624, 27239, 28037, 27017, 28725, 28670, 28040, 27017, 28685, 28643, 28115, 27801, 27040, 28740, 28090, 28683, 28526, 27809, 27288, 28619, 28658, 28658, 28332, 27949, 28333, 28630, 27708, 27710, 28242, 27708, 27526, 28334, 28335, 27612, 27930, 27944, 27701, 27702, 27703, 27704, 27705, 27706, 27707, 27708, 27709, 27710, 27711, 27712, 27713, 27715, 27717, 27722, 28301, 28301, 28301, 28726, 28352, 27711, 27020, 27591, 27242, 28038, 27018, 27834, 27834, 27701, 27703, 28301, 28726, 28734, 27953, 28723, 28352, 28677, 28039, 28301, 27288, 27289, 27932, 28645, 28727, 27821, 28675, 27243, 28713, 28253, 27909, 27906, 27907, 27909, 27909, 27906, 27907, 27909, 28337, 28622, 28604, 28621, 28040, 28681, 27107, 28338, 28734, 27025, 27822, 28677, 27244, 27244, 28594, 28433, 27262, 27557, 27823, 27824, 28728, 28728, 28623, 27712, 28655, 27292, 28723, 28527, 28339, 27360, 27844, 27305, 27247, 28729, 28677, 27935, 27830, 28303, 27825, 28438, 28439, 27826, 28340, 28659, 28730, 27017, 28341, 28041, 28342, 27827, 28042, 28643, 27028, 27828, 28301, 28301, 28302, 28303, 28304, 28305, 28306, 28307, 28308, 28309, 28311, 28312, 28314, 28306, 27312, 27312, 27292, 28624, 28615, 28263, 28288, 28081, 27608, 28731, 28622, 28021, 28626, 28732, 27371, 28025, 28733, 27055, 28043, 27406, 27006, 28526, 28307, 28310, 28310, 28465, 28449, 28512, 27954, 27954, 28604, 27829, 28133, 27524, 27281, 27281, 27281, 28657, 28734, 28744, 27525, 27248, 27260, 27830, 27410, 27936, 28129, 27291, 27052, 27526, 28645, 28441, 27529, 27831, 27832, 28052, 28053, 28054, 28055, 28056, 27937, 27938, 28228, 27897, 27019, 28735, 28343, 27249, 28139, 28627, 28081, 28628, 27215, 28629, 28629, 27325, 27260, 28736, 28737, 28528, 28344, 28071, 28018, 27530, 27531, 27532, 27533, 27534, 27252, 27292, 28697, 28630, 28814, 27253, 28604, 28607, 27939, 28630, 28072, 28072, 28146, 28529, 28631, 27248, 28615, 27217, 28740, 28740, 28740, 28740, 27395, 27401, 27402, 27403, 27404, 27405, 27406, 27407, 27408, 27409, 27410, 27411, 27412, 27413, 27415, 27416, 27417, 27419, 27420, 27425, 27427, 27429, 27435, 27438, 27455, 27480, 27495, 27497, 27498, 27499, 27395, 27495, 27499, 27498, 27410, 27833, 27834, 27835, 27836, 27858, 28530, 27837, 28740, 27407, 28073, 28052, 27409, 27410, 27409, 27410, 27408, 27256, 27831, 27107, 27284, 27260, 27839, 28649, 28442, 27840, 28345, 28443, 27020, 27405, 27239, 27103, 27099, 27292, 28661, 27941, 28627, 28531, 28531, 28634, 27207, 28444, 27942, 28074, 28075, 27320, 27016, 27022, 27841, 27943, 28532, 28533, 27330, 27258, 28635, 28904, 28305, 28635, 28738, 28786, 27239, 28622, 27292, 28631, 28079, 28079, 27536, 27537, 28739, 28791, 28792, 28793, 28739, 28791, 28792, 28793, 28624, 27842, 28076, 27930, 27944, 28601, 28602, 28603, 28734, 28078, 28636, 28734, 27260, 27260, 27261, 27262, 27263, 27264, 27265, 27239, 28077, 27259, 28741, 28637, 28607, 27278, 27278, 27006, 27407, 27946, 27843, 28537, 28607, 28347, 28462, 28040, 27844, 27292, 28445, 27540, 28538, 28348, 28742, 28759, 28743, 28634, 28539, 28638, 28657, 28070, 28078, 28659, 27541, 28643, 28666, 28694, 28694, 28512, 28079, 28079, 28657, 28441, 27152, 28734, 28080, 28447, 27845, 27281, 27281, 27239, 28540, 28541, 28542, 28543, 28544, 28545, 28546, 27282, 27846, 27947, 28640, 28743, 28641, 27330, 28642, 28655, 28645, 28685, 27283, 28081, 28082, 28083, 28676, 27220, 27847, 28604, 28448, 28349, 27542, 27592, 28529, 27284, 27285, 28681, 27948, 27948, 27298, 27021, 28645, 28086, 28086, 28150, 27915, 28501, 28502, 28503, 28504, 27543, 27544, 27949, 27545, 27950, 28449, 28551, 28304, 28745, 28746, 28079, 28771, 28747, 28450, 28306, 28350, 28088, 28643, 27845, 28089, 28351, 28739, 28644, 28644, 28352, 28353, 28090, 27022, 28607, 28645, 27288, 27291, 27098, 28748, 28542, 28451, 28355, 28633, 28645, 28601, 27317, 27849, 27849, 27023, 27292, 27292, 27293, 27294, 27295, 27298, 28681, 28091, 27546, 28092, 28093, 28356, 28646, 28647, 28647, 27299, 28643, 28681, 28749, 27850, 28745, 28771, 28097, 28139, 28669, 27055, 28465, 28078, 28602, 28609, 27011, 28601, 28602, 28452, 28677, 27549, 28677, 27371, 28098, 28740, 28656, 28164, 27024, 28552, 28749, 27851, 28743, 28357, 28358, 28359, 28360, 27851, 28750, 28698, 27852, 27551, 27025, 28751, 28453, 28650, 27552, 27953, 27553, 27954, 27956, 28454, 28665, 28905, 27281, 27853, 27853, 27853, 28362, 28737, 28752, 27020, 28754, 28753, 28553, 28103, 28363, 28173, 28604, 27048, 28104, 28105, 28106, 27284, 28554, 28364, 28115, 27027, 28555, 28605, 28115, 28101, 28545, 28102, 28649, 27301, 28533, 27603, 28545, 28545, 28649, 27301, 27052, 28618, 27288, 28607, 27302, 28556, 27957, 28755, 27555, 27556, 27557, 28107, 27320, 28544, 28684, 28756, 27248, 28651, 28681, 28001, 28759, 27305, 27854, 28108, 28108, 28652, 28227, 28109, 27028, 27559, 28110, 28111, 28112, 27320, 28653, 27214, 28757, 28435, 28114, 28115, 28117, 27371, 28654, 28654, 28557, 28655, 28680, 27560, 28645, 28119, 27030, 27031, 27306, 28120, 28123, 28365, 28124, 27106, 28125, 27013, 27405, 28758, 28676, 28602, 28685, 27958, 27030, 27031, 28124, 28602, 27103, 28659, 27855, 28906, 28635, 27699, 27697, 27634, 27640, 27635, 28255, 28460, 28460, 28656, 28659, 28674, 27959, 28455, 28760, 27856, 28617, 27668, 27294, 27656, 28542, 28542, 28451, 27157, 27695, 27607, 27607, 28761, 28713, 27604, 28560, 28560, 28561, 28562, 28563, 28564, 28405, 27562, 27239, 27288, 28127, 28540, 27317, 28126, 28657, 28635, 28570, 27239, 28658, 28366, 27563, 28367, 27105, 28001, 28025, 27712, 27609, 27614, 28656, 28659, 28674, 27536, 28674, 28723, 28128, 28604, 27857, 28655, 28461, 28465, 28704, 27310, 28129, 28469, 28469, 28469, 28719, 27960, 27371, 28762, 27852, 28390, 27106, 28660, 28103, 28658, 28368, 27371, 27326, 28571, 28640, 28369, 28689, 27214, 27330, 27291, 27244, 28815, 28763, 27565, 27834, 28743, 28001, 27860, 28615, 27316, 28371, 27861, 28665, 27530, 28661, 28150, 28130, 28681, 27104, 28133, 28672, 28584, 27311, 28372, 27862, 28765, 28766, 28679, 27043, 28607, 28655, 27292, 27040, 27156, 27863, 27041, 27041, 27041, 27041, 27041, 27042, 28512, 27568, 27330, 28373, 28370, 28374, 28662, 27864, 27865, 28134, 28663, 28572, 28052, 27043, 28768, 27228, 27312, 28512, 27408, 28740, 27313, 27313, 27313, 28655, 27866, 28664, 28001, 27962, 27964, 28135, 28136, 28573, 28303, 28137, 28308, 28308, 28308, 27965, 28128, 27960, 27867, 27966, 27326, 27967, 28734, 27048, 27094, 27569, 27886, 28375, 28658, 27314, 27315, 28665, 28657, 28659, 27371, 28274, 27326, 27815, 28649, 28376, 28054, 27601, 27602, 27603, 27604, 27605, 27606, 27607, 27608, 27609, 27610, 27611, 27612, 27613, 27614, 27615, 27616, 27617, 27619, 27620, 27621, 27622, 27623, 27624, 27625, 27626, 27627, 27628, 27629, 27634, 27635, 27636, 27640, 27650, 27656, 27658, 27661, 27668, 27675, 27676, 27690, 27695, 27697, 27698, 27699, 27690, 27316, 27317, 27405, 28054, 27868, 28377, 27006, 27292, 27292, 28692, 27320, 27321, 27322, 27323, 28740, 27709, 27711, 28378, 28640, 28667, 28667, 27869, 28137, 28574, 27011, 28052, 28770, 27410, 27570, 28456, 28001, 28734, 27870, 27870, 27870, 28657, 28668, 28669, 27325, 28771, 27861, 27871, 27349, 27017, 28379, 28380, 28138, 27801, 27802, 27803, 27804, 27815, 27801, 28457, 27968, 27969, 27571, 28604, 28670, 27870, 27970, 28458, 28382, 28772, 27572, 27030, 28383, 27573, 27574, 27872, 27806, 28081, 28704, 27709, 27214, 27326, 27045, 27094, 27098, 27099, 28139, 28671, 28139, 28671, 28607, 28470, 28623, 28384, 28655, 28385, 28144, 28145, 28146, 28147, 28575, 28773, 27972, 28607, 27046, 27237, 27330, 27331, 27332, 28774, 27873, 27340, 28775, 28775, 27874, 28699, 28672, 27875, 27876, 27341, 28577, 28581, 27480, 27342, 27407, 27105, 27576, 27343, 28657, 28604, 27376, 28578, 27877, 27040, 27531, 27531, 27055, 28081, 28459, 28467, 28468, 28469, 28470, 27330, 28386, 27707, 28677, 27878, 28617, 27973, 28150, 28151, 28152, 28673, 28673, 28692, 27974, 28139, 27043, 28607, 28025, 27344, 27344, 27047, 27292, 28698, 27879, 27880, 27531, 28776, 28694, 27577, 28052, 28579, 28460, 27349, 28580, 27355, 27350, 27553, 28001, 28470, 28052, 27406, 27292, 27976, 28658, 28243, 28289, 28387, 28388, 28387, 28388, 27949, 27351, 28461, 28465, 27949, 28675, 28657, 27881, 28723, 28159, 28054, 28160, 27288, 28743, 27882, 28390, 27406, 28635, 28777, 28659, 28581, 27355, 28104, 28657, 28163, 28164, 27045, 27883, 27356, 28658, 28676, 28676, 27607, 28625, 28677, 28687, 28677, 28391, 28582, 27581, 27884, 27357, 27048, 28583, 28025, 27377, 28618, 27017, 28678, 27244, 27582, 28675, 27978, 28643, 28679, 28604, 28604, 27358, 27405, 27979, 28465, 28655, 28468, 28468, 28422, 28018, 28462, 28445, 28631, 27330, 28778, 27885, 28584, 28679, 27359, 28779, 28463, 27284, 28684, 28771, 28392, 28543, 28543, 28543, 28543, 27886, 28681, 28464, 27405, 28682, 28640, 27360, 27361, 28657, 28683, 27887, 27583, 27049, 27050, 28684, 28684, 28090, 28672, 28445, 28781, 27584, 27330, 28685, 28694, 28562, 28585, 27370, 28618, 28166, 27371, 28743, 28782, 28783, 28643, 28393, 28688, 28784, 28675, 27980, 27292, 28906, 27599, 27412, 27413, 28734, 27284, 28689, 28167, 27599, 28403, 28740, 28645, 27497, 27371, 27155, 28690, 28168, 28691, 28657, 28645, 28586, 27406, 28587, 28301, 28636, 28394, 27586, 28052, 27040, 28601, 28601, 28692, 28816, 27053, 28694, 27150, 27111, 27151, 28169, 28395, 28170, 27306, 28640, 28396, 27604, 27587, 27588, 27051, 28466, 27373, 27052, 27530, 28665, 27888, 27981, 28909, 28693, 27589, 28645, 28398, 27889, 28018, 27889, 28734, 28478, 27107, 27127, 27982, 28173, 28738, 28785, 28786, 28617, 28787, 28788, 27530, 28104, 27374, 27890, 27591, 27375, 28104, 27804, 27804, 28806, 27023, 27376, 28704, 27278, 28694, 28097, 27053, 27623, 27675, 28139, 28622, 28327, 28327, 27891, 27330, 28337, 28399, 27031, 28604, 28133, 27030, 28675, 28472, 27520, 27377, 28789, 28651, 27604, 28697, 28478, 27892, 28579, 28589, 28410, 27592, 27592, 28401, 28402, 28403, 28404, 28405, 28406, 28407, 28408, 28409, 28410, 28411, 28412, 28401, 28402, 28403, 28404, 28405, 28406, 28407, 28408, 28409, 28410, 28411, 28412, 27893, 27894, 27895, 27896, 27593, 27593, 27281, 27020, 27983, 28659, 27985, 28174, 28479, 27101, 27102, 27103, 27104, 27105, 27106, 27107, 27108, 27109, 27110, 27111, 27113, 27114, 27115, 27116, 27117, 27120, 27127, 27130, 27150, 27151, 27152, 27155, 27156, 27157, 27198, 27199, 27199, 27198, 27101, 27102, 27103, 27104, 27105, 27106, 27107, 27108, 27109, 27110, 27111, 27113, 27114, 27115, 27116, 27117, 27127, 27150, 27151, 27152, 27155, 27156, 27198, 27199, 28590, 27986, 27594, 28804, 28684, 27897, 27054, 27950, 27849, 27954, 27954, 27954, 28480, 28480, 27110, 27292, 27292, 27055, 27379, 28465, 27596, 27597, 28698, 28790, 29620, 29067, 29426, 29319, 29801, 29802, 29803, 29804, 29805, 29808, 29001, 29010, 29810, 29479, 29621, 29622, 29623, 29624, 29625, 29626, 29510, 29020, 29021, 29320, 29206, 29010, 29929, 29080, 29582, 29582, 29429, 29511, 29544, 29002, 29003, 29220, 29916, 29812, 29813, 29072, 29827, 29006, 29006, 29070, 29607, 29816, 29006, 29070, 29204, 29901, 29902, 29903, 29904, 29905, 29906, 29907, 29055, 29841, 29842, 29927, 29627, 29841, 29203, 29512, 29137, 29164, 29430, 29009, 29037, 29010, 29702, 29014, 29817, 29015, 29945, 29516, 29102, 29219, 29209, 29909, 29910, 29016, 29391, 29698, 29390, 29614, 29316, 29316, 29115, 29150, 29431, 29835, 29128, 29703, 29018, 29059, 29128, 29819, 29432, 29834, 29922, 29910, 29546, 29835, 29150, 29911, 29527, 29321, 29851, 29902, 29906, 29518, 29492, 29628, 29909, 29819, 29020, 29021, 29030, 29322, 29433, 29211, 29209, 29031, 29579, 29161, 29032, 29704, 29667, 29033, 29033, 29033, 29169, 29170, 29171, 29172, 29209, 29519, 29630, 29418, 29036, 29037, 29401, 29402, 29403, 29404, 29405, 29406, 29407, 29409, 29410, 29412, 29413, 29414, 29415, 29416, 29417, 29418, 29419, 29420, 29422, 29423, 29424, 29425, 29492, 29404, 29418, 29418, 29401, 29402, 29403, 29404, 29405, 29406, 29407, 29409, 29410, 29412, 29413, 29414, 29415, 29417, 29418, 29419, 29420, 29423, 29424, 29425, 29404, 29405, 29418, 29520, 29702, 29702, 29582, 29582, 29323, 29706, 29709, 29217, 29821, 29822, 29631, 29632, 29633, 29634, 29632, 29634, 29824, 29635, 29324, 29325, 29525, 29710, 29101, 29456, 29838, 29201, 29202, 29203, 29204, 29205, 29206, 29207, 29208, 29209, 29210, 29211, 29212, 29214, 29215, 29216, 29217, 29218, 29219, 29220, 29221, 29222, 29223, 29224, 29225, 29226, 29227, 29228, 29229, 29230, 29240, 29250, 29260, 29290, 29292, 29228, 29636, 29044, 29329, 29526, 29527, 29528, 29940, 29912, 29936, 29038, 29434, 29039, 29014, 29435, 29530, 29330, 29203, 29203, 29582, 29030, 29913, 29436, 29331, 29332, 29069, 29914, 29040, 29492, 29532, 29540, 29920, 29915, 29915, 29148, 29041, 29175, 29175, 29070, 29178, 29042, 29203, 29451, 29536, 29395, 29169, 29638, 29437, 29014, 29333, 29639, 29831, 29334, 29390, 29391, 29128, 29020, 29021, 29210, 29808, 29916, 29640, 29641, 29642, 29209, 29044, 29203, 29824, 29712, 29204, 29438, 29438, 29438, 29072, 29541, 29081, 29045, 29826, 29046, 29047, 29138, 29335, 29918, 29939, 29847, 29048, 29048, 29643, 29827, 29928, 29203, 29336, 29070, 29203, 29916, 29047, 29338, 29205, 29501, 29502, 29503, 29504, 29505, 29506, 29542, 29439, 29206, 29206, 29102, 29543, 29207, 29714, 29708, 29715, 29716, 29135, 29644, 29150, 29920, 29920, 29138, 29714, 29708, 29921, 29051, 29052, 29340, 29341, 29342, 29040, 29209, 29544, 29544, 29576, 29576, 29945, 29922, 29053, 29440, 29442, 29923, 29054, 29936, 29346, 29374, 29828, 29126, 29148, 29445, 29348, 29829, 29645, 29916, 29055, 29056, 29446, 29545, 29180, 29446, 29203, 29601, 29602, 29603, 29604, 29605, 29606, 29607, 29608, 29609, 29610, 29611, 29612, 29613, 29614, 29615, 29616, 29617, 29698, 29646, 29647, 29648, 29649, 29650, 29651, 29652, 29546, 29447, 29164, 29128, 29547, 29135, 29913, 29924, 29406, 29410, 29445, 29212, 29927, 29927, 29448, 29550, 29551, 29203, 29209, 29058, 29518, 29554, 29105, 29717, 29150, 29813, 29925, 29926, 29928, 29938, 29915, 29925, 29926, 29928, 29938, 29653, 29695, 29059, 29449, 29203, 29006, 29654, 29061, 29062, 29061, 29150, 29450, 29715, 29349, 29063, 29929, 29451, 29655, 29831, 29452, 29412, 29453, 29115, 29718, 29065, 29426, 29351, 29455, 29457, 29555, 29832, 29105, 29353, 29395, 29102, 29169, 29353, 29067, 29455, 29203, 29355, 29702, 29556, 29052, 29020, 29021, 29020, 29021, 29137, 29812, 29006, 29656, 29907, 29456, 29485, 29907, 29560, 29036, 29070, 29563, 29710, 29069, 29720, 29721, 29722, 29724, 29356, 29564, 29834, 29565, 29902, 29360, 29031, 29209, 29070, 29071, 29072, 29073, 29657, 29074, 29927, 29203, 29485, 29585, 29075, 29075, 29566, 29567, 29107, 29710, 29931, 29364, 29082, 29030, 29658, 29568, 29130, 29569, 29659, 29010, 29078, 29932, 29079, 29365, 29080, 29072, 29693, 29102, 29010, 29661, 29571, 29201, 29836, 29440, 29662, 29104, 29368, 29101, 29458, 29570, 29726, 29835, 29899, 29101, 29458, 29458, 29570, 29726, 29899, 29010, 29044, 29044, 29044, 29114, 29010, 29824, 29449, 29003, 29933, 29125, 29573, 29936, 29851, 29838, 29430, 29461, 29105, 29065, 29839, 29369, 29929, 29824, 29080, 29840, 29727, 29464, 29465, 29466, 29209, 29664, 29370, 29464, 29465, 29466, 29574, 29576, 29576, 29572, 29575, 29577, 29578, 29579, 29587, 29588, 29404, 29405, 29406, 29410, 29415, 29418, 29419, 29420, 29585, 29582, 29597, 29598, 29582, 29902, 29107, 29580, 29809, 29164, 29006, 29111, 29108, 29665, 29581, 29666, 29918, 29404, 29405, 29406, 29418, 29419, 29420, 29667, 29112, 29841, 29842, 29860, 29861, 29405, 29406, 29410, 29415, 29418, 29419, 29420, 29582, 29597, 29598, 29223, 29223, 29113, 29111, 29111, 29069, 29582, 29582, 29582, 29909, 29114, 29843, 29201, 29115, 29116, 29117, 29118, 29426, 29150, 29372, 29373, 29728, 29583, 29125, 29608, 29647, 29844, 29142, 29902, 29905, 29584, 29374, 29585, 29585, 29585, 29102, 29122, 29115, 29123, 29669, 29670, 29161, 29137, 29671, 29673, 29405, 29934, 29169, 29468, 29125, 29469, 29128, 29058, 29824, 29845, 29945, 29126, 29045, 29935, 29555, 29910, 29819, 29127, 29927, 29506, 29589, 29449, 29470, 29206, 29072, 29020, 29021, 29471, 29375, 29128, 29729, 29675, 29138, 29129, 29912, 29936, 29472, 29130, 29203, 29125, 29132, 29488, 29710, 29922, 29101, 29730, 29731, 29732, 29733, 29734, 29164, 29376, 29474, 29133, 29741, 29475, 29476, 29216, 29218, 29226, 29214, 29547, 29407, 29104, 29477, 29920, 29135, 29479, 29676, 29945, 29137, 29590, 29138, 29169, 29169, 29006, 29206, 29677, 29142, 29143, 29161, 29831, 29227, 29939, 29104, 29591, 29914, 29940, 29455, 29455, 29810, 29164, 29592, 29672, 29678, 29679, 29020, 29021, 29742, 29152, 29152, 29941, 29080, 29922, 29638, 29638, 29453, 29145, 29680, 29681, 29135, 29682, 29683, 29127, 29130, 29481, 29743, 29812, 29593, 29169, 29080, 29547, 29215, 29301, 29302, 29303, 29304, 29305, 29306, 29307, 29316, 29318, 29319, 29128, 29909, 29067, 29169, 29146, 29407, 29477, 29920, 29135, 29148, 29203, 29684, 29377, 29201, 29147, 29150, 29070, 29851, 29127, 29010, 29058, 29127, 29014, 29554, 29482, 29482, 29484, 29485, 29006, 29148, 29483, 29484, 29485, 29070, 29150, 29151, 29153, 29154, 29909, 29685, 29575, 29575, 29587, 29575, 29587, 29160, 29936, 29846, 29686, 29943, 29594, 29067, 29687, 29708, 29409, 29123, 29688, 29943, 29161, 29689, 29690, 29690, 29847, 29590, 29848, 29031, 29162, 29209, 29849, 29378, 29379, 29111, 29225, 29150, 29208, 29208, 29744, 29163, 29944, 29850, 29487, 29487, 29164, 29691, 29596, 29488, 29492, 29166, 29692, 29851, 29044, 29384, 29105, 29695, 29168, 29385, 29033, 29169, 29170, 29171, 29172, 29696, 29693, 29169, 29301, 29175, 29067, 29945, 29180, 29853, 29177, 29386, 29945, 29178, 29493, 29697, 29835, 29853, 29102, 29856, 29180, 29180, 29010, 29733, 29040, 29388, 29014, 29111, 29945, 29449, 29745);
	
	
	if( in_array(zip_val, zips)){
		var qtype_val_string = qtype_val.toString();
		if(qtype_val_string.match('Auto')){
		window.location = 'auto-insurance-quote/';
		}
		if(qtype_val_string.match('Health')){
		window.location = 'health-insurance-quote/';
		}
		if(qtype_val_string.match('Home Owners')){
		window.location = 'home-insurance-quote/';
		}
		if(qtype_val_string.match('Life')){
		window.location = 'life-insurance-quote/';
		}
		if(qtype_val_string.match('Group Benefits')){
		window.location = 'group-benefits-quote/';
		}
		if(qtype_val_string.match('Business')){
		window.location = 'commercial-insurance-quote/';
		}	
		return false;
	} else {
		alert ('We are not servicing your zip code at this time.');
		return false;
	}

});




});
