// Common.ihq.js
// Requires JQuery

// MboxNVXOffer Include Script
document.write("\n\t\t" + unescape("%3Cscript src='/js/mboxNVX.js' type='text/javascript'%3E%3C/script%3E")+"\n");


jQuery(function()
{		
	// Focus on Zip Field if QuickForm
	if(document.getElementById("address_1_zip") && document.getElementById("quickform")){
		jQuery("#address_1_zip").focus();
	}
	jQuery("#footer a").each(function(index){
		jQuery(this).click(function(event){
			event.preventDefault();
			remote=window.open(this.href,"remotewin","width=800,height=600,menubar=0,toolbar=no,scrollbars=yes");
			remote.focus();
		});
	});
	
	// Blue Cross Blue Shield Carrier List
	if(document.getElementById("bcbs-list") || document.getElementById("bcbs-list-top")) {
		$("map[name='bcbs-list'] area, map[name='bcbs-list-top'] area").tooltip({ 
			bodyHandler: function () {
				return jQuery("#bcbs-listitems").html();
			},
			showURL: false,
			delay: 100,
			bcbs: true
		}).click(function(event){
			event.preventDefault();
		});
	}
});

