function bookmarksite()
            {
					if (document.all)
					{
						  // For IE
						  window.external.AddFavorite(location.href, document.title);
					}
					else if (window.sidebar)
				 {
                              // For Firefox $.browser.mozilla
                              window.sidebar.addPanel(document.title, location.href, "");
						}

                        else if(window.chrome){
                        alert("Google Chrome does not support this way of bookmarking websites. Please press ctrl+D (Cmd+D for Mac OS) to bookmark this page.");
                        }
            }

$(document).ready( function() {
	
		if ($.browser.msie && $.browser.version == "6.0" && $.cookie ("ie6") == null) {
			$("#disclaimer").show();
			$('a.linkDecline').click( function () {
				$('#disclaimer').hide();
				$.cookie("ie6", "true", {path: '/'}, {expires: 7});
			});
		};
		if ($.cookie("hcp") == null) {
			$("#PV-disclaimer-hcp").show();
			$('a.btnHCP').click( function () {
				if ($('input[name=hcp]:checked').is(':checked') && $('input[name=policy]:checked').is(':checked')) {
					$('#PV-disclaimer-hcp').hide();
					$.cookie("hcp", "true");
					if ($.cookie ("pub") == null ){
						$.cookie("pub", "true", {path: '/'}, {expires: 7});
				}
				} else {
					$('p.mandatory').show();
					return false;
				}
			});
		};
		if ($.cookie("pub") == null) {
			$("#PV-disclaimer").show();
			$('a.btnHCP').click( function () {
				if ($('input[name=hcp]:checked').is(':checked') && $('input[name=policy]:checked').is(':checked')) {
					$('#PV-disclaimer').hide();
					$.cookie("hcp", "true");
					if ($.cookie ("pub") == null ){
						$.cookie("pub", "true", {path: '/'}, {expires: 7});
				}
				} else {
					$('p.mandatory').show();
					return false;
				}
			});
			$('a.btnPub').click( function () {
				$('#PV-disclaimer').hide();
				$.cookie("pub", "true", {path: '/'}, {expires: 7});
			})
		};
		
		
	
		
		
		
	});
	

/* 
* marks the PDF link with another icon
*/
var enhancePDFLinks = function(){
	$('.container-3-cols .col li a:first-child').each(function(){
		var self = $(this);
		var fileUrl = self.attr('href');
		if(fileUrl.indexOf('.pdf') > -1) {
			self.parents('li').addClass('is-download');
		}
	});
};

$(document).ready(enhancePDFLinks);
