function privacyNotice(lang,url) {
	if(lang == 'fr') {
		if(confirm("Avis sur la protection de la vie privée : Vous êtes sur le point de quitter le site de l’Agence d’assurances Hbc pour le site Web de son assureur autorisé. Pour obtenir plus de renseignements sur la politique de l’Agence d’assurances Hbc en matière de vie privée, visitez http://shop.hbc.com/fr_FR/privacy.html")) {
			document.location.href = url;
		}
	}
	else {
		if(confirm("Privacy Notice:  You are leaving the Hbc Insurance Agency website to it's approved insurance underwriter's website.  For more information on Hbc Insurance Agency's privacy policy please visit http://shop.hbc.com/en_US/privacy.html")) {
			document.location.href = url;
		}
	}
}


function getQueryVariable(variable) {
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  for (var i=0;i<vars.length;i++) {
    var pair = vars[i].split("=");
    if (pair[0] == variable) {
      return pair[1];
    }
  } 
}

if (getQueryVariable('prov')) {
	Cookie.set("prov", getQueryVariable('prov'), 1);
}

var init = function () {

	var services = document.getElementsBySelector('.productType');
	services.each(function (e) {
		if (getQueryVariable('prov') || Cookie.get("prov") != "undefined") {
			if (!e.hasClassName(getQueryVariable('prov')) && !e.hasClassName(Cookie.get("prov"))) {
				e.setStyle('display','none');
			}
		}
	});

};

window.addEvent('load', init);
