﻿
$(document).ready(function() {
// Highlight all textbox and textarea fields on focus. Return to default on blur
$("input[type='text'],textarea").focus(function(){$(this).addClass("active");});
$("input[type='text'],textarea").blur(function(){$(this).removeClass("active");});
// Change Compare Quotes submit button on mouseover
$(".compare").mouseover(function(){$(this).addClass("comparehover");});
$(".compare").mouseout(function(){$(this).removeClass("comparehover");});
// Change Find Companies submit button on mouseover
$(".find").mouseover(function(){$(this).addClass("findhover");});
$(".find").mouseout(function(){$(this).removeClass("findhover");});
// Ensure all external links open in a new window
$("a[href*='http://']:not([href*='"+location.hostname+"']),[href*='https://']:not([href*='"+location.hostname+"'])").click(function(){window.open(this.href);return false;});
});

