$(document).ready(function() {
$(“.productDropdown”).val(“AU”);
});
function overlayQuoteTop() {//This pops up the Quote modal
el = document.getElementById(“overlayQuoteTop”);
el.style.visibility = (el.style.visibility == “visible”) ? “hidden” : “visible”;
}
function overlayQuoteBottom() {//This pops up the Quote modal
el = document.getElementById(“overlayQuoteBottom”);
el.style.visibility = (el.style.visibility == “visible”) ? “hidden” : “visible”;
}
$(function(){
$(“.inlineQuoteLinkTop”).click(function(){
submitTop();
return false;
});
});
$(function(){
$(“.inlineQuoteLinkBottom”).click(function(){
submitBottom();
return false;
});
});
function submitTop(){
zipcontrol = document.getElementById(“popQuoteTermTop”);
if(ValZipNew(zipcontrol)) window.location = “http://www.progressive.com/scripts/quotestartpage.aspx?zipcode=”+zipcontrol.value+”&product=AU”;
return false;
}
function submitBottom() {
zipcontrol = document.getElementById(“popQuoteTermBottom”);
if(ValZipNew(zipcontrol)) window.location = “http://www.progressive.com/scripts/quotestartpage.aspx?zipcode=”+zipcontrol.value+”&product=AU”;
return false;
}
function ValZipNew(txtZip)
{
if (txtZip.value.length == 5)
{
var valZipReg = new RegExp(“^[0-9]{5}$”);
if (valZipReg.test(txtZip.value))
{
//valid
return true;
}
}
//come here as invalid
if(txtZip.value.length == 0) //nothing entered
{
alert(“Please enter a ZIP code.”);
}
else
{
alert(“Please enter a five digit ZIP code.”);
}
return false;
}
function KeyPressTop(e){
if(!e) e = window.event;
if(e.keyCode == 13){
return submitTop();
}
return true;
}
function KeyPressBottom(e){
if(!e) e = window.event;
if(e.keyCode == 13){
return submitBottom();
}
return true;
}
function ValZipNew(txtZip)
{
if (txtZip.value.length == 5)
{
var valZipReg = new RegExp(“^[0-9]{5}$”);
if (valZipReg.test(txtZip.value))
{
//valid
return true;
}
}
//come here as invalid
if(txtZip.value.length == 0) //nothing entered
{
alert(“Please enter a ZIP code.”);
}
else
{
alert(“Please enter a five digit ZIP code.”);
}
return false;
}
function inlineQuoteLinkTop()
{
zipcontrol = document.getElementById(“quoteStart_txbZipCode”);
productddl = document.getElementById(“quoteStart_ddlProduct”);
if(ValZipNew(zipcontrol))
{
//log GA
_gaq.push([‘_trackEvent’,’Static’,location.href, ‘clickQS-‘+productddl.value]);
window.location = “http://www.progressive.com/scripts/quotestartpage.aspx?zipcode=”+zipcontrol.value+”&product=”+productddl.value;
}
}
function inlineQuoteLinkBottom()
{
zipcontrol = document.getElementById(“quoteStart_txbZipCode”);
productddl = document.getElementById(“quoteStart_ddlProduct”);
if(ValZipNew(zipcontrol))
{
//log GA
_gaq.push([‘_trackEvent’,’Static’,location.href, ‘clickQS-‘+productddl.value]);
window.location = “http://www.progressive.com/scripts/quotestartpage.aspx?zipcode=”+zipcontrol.value+”&product=”+productddl.value;
}
}
#overlayQuoteTop, #overlayQuoteBottom {visibility: hidden; position: relative;}
#overlayQuoteTop #modalContainer, #overlayQuoteBottom #modalContainer {border: 0; left: 420px !important; top: -30px !important; position:absolute !important; z-index: 9998 !important; }
#overlayQuoteBottom #modalContainer {left: 375px !important;}
#overlayQuoteTop #modal, #overlayQuoteBottom #modal {position: relative; border: 0;}
#overlayQuoteTop #modal #closeVideo, #overlayQuoteBottom #modal #closeVideo {color:#c2cfdb; position:absolute; width:28px; height: 29px; left:174px; text-decoration:none; top:-8px; z-index: 9998 !important;}
.popQuoteWrapper {position:relative; width:186px; height: 140px; padding: 3px; background-image:url(http://www.progressive.com/images/pop-up-quote-bg.jpg); background-repeat:no-repeat; background-color:#FFF; background-position:center;
border: 1px solid #c2cfdb; -moz-box-shadow: 3px 4px 5px #CCC; -webkit-box-shadow: 3px 4px 5px #CCC; box-shadow: 3px 4px 5px #CCC;}
.popQuoteWrapper p {font-size:13px; font-family:Verdana, Geneva, sans-serif; color:#FFF; text-align:center; font-weight:bold; margin: 25px 0 0 0;}
.popQuoteWrapper .enterZip {font-family:verdana, arial; font-size:13px; padding:2px; width:126px; clear: both;}
#popQuoteBox {margin: 5px 0 5px 10px;}
#popQuoteBox #popQuoteTermTop, #popQuoteBox #popQuoteTermBottom{font-family:verdana, arial; font-size:13px; padding:2px; width:126px; clear: both; margin: 10px 0 0 13px;}
#popQuoteBox #popQuoteButton{padding: 0; margin: 10px 0 0 13px; float: left;}
Quote with a new company.
Rates vary by insurer, so you might get the same coverage for less. For example, drivers who switch to Progressive save over $475* a year on average. To see how much you could save, quote a Progressive auto policy today.