(function() {
var GYIQ = function() {
};
GYIQ.updateYear =  function () {
		jQuery("html").addClass("js");
		jQuery(function() {
			jQuery("span.year").text(new Date().getFullYear());
			jQuery("html").removeClass("js");
		});
	};
GYIQ.getURLParameter  = function(paramName) {
		paramName = paramName.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
		var regexS = "[\\?&]"+paramName+"=([^&#]*)";
		var regex = new RegExp( regexS );
		var results = regex.exec( window.location.href );
		if( results == null ) {
			return "";
		}else {
			return results[1];
		}
};
GYIQ.updateInputs = function(paramName) {
		jQuery(function() {
			var inputElem = jQuery("[name=" + paramName + "]");
			if (inputElem.length != 0) {
				var inputVal = GYIQ.getURLParameter(paramName);
				if(inputVal != "") {
					inputElem.val(inputVal);
					jQuery.cookie(paramName, inputVal, {expires: 7, path: "/", domain: document.location.hostname});
				}
			}
		});
};
GYIQ.bcbsTooltip = function () {
	jQuery(function() {
		if(document.getElementById("bcbs-list")) {
			jQuery("map[name='bcbs-list'] area").tooltip({ 
				bodyHandler: function () {
					return jQuery("#bcbs-listitems").html();
				},
				showURL: false,
				delay: 100,
				bcbs: true
			}).click(function(event){
				event.preventDefault();
			});
		}
	});
};
window.GYIQ = GYIQ;
})(window);
