function openDisclaimerWin() {
  	if (document.cookie) {
  	  if (document.cookie.toLowerCase().indexOf("us_healthcare=yes") >= 0) {
  	    window.location.href="/ezetimibe/zetia/hcp/index.jsp";
  	    return;
  	  }
  	}
	
	var myWin = window.open("/ezetimibe/zetia/hcp_disclaimer_popup.jsp","Healthcare","status=no,width=300,height=150, scrollbars=no")
  	if (myWin.opener == null) 
  		myWin.opener=window;
  	myWin.opener.name="opener";
	myWin.focus();
}

function openTranscriptWindow(url) {
	var myWin = window.open(url,"ZETIA","toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=460,height=500")
	if (myWin.opener == null)
		myWin.opener = window;
	myWin.opener.name = "opener";
}
function popup_ilm(url) {
	var myWin = window.open("/ezetimibe/zetia/consumer/about_zetia/questions_ilm.jsp?WT.svl=2","ZETIA","toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=0,width=437,height=320")
	if (myWin.opener == null)
		myWin.opener = window;
	myWin.opener.name = "opener";
}

/* This page should contains CNS specific functions. */
function openZetiaComplianceWin() {
	var myWin = window.open("http://www.zetia.com/ezetimibe/zetia/consumer/shared/compliance_program/index.jsp","Compliance","toolbar=no,scrollbars=1,location=no,statusbar=0,menubar=0,resizable=1,width=631,height=400")
	if (myWin.opener == null)
		myWin.opener = window;
	myWin.opener.name = "opener";
}

function openZetiaPrivacyWin() {
	var myWin = window.open("http://www.zetia.com/ezetimibe/zetia/consumer/shared/privacy/index.jsp","Healthcare","toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=631,height=400")
	if (myWin.opener == null)
		myWin.opener = window;
	myWin.opener.name = "opener";
}
function openZetiaCopyWin() {
	var myWin = window.open("http://www.zetia.com/ezetimibe/zetia/consumer/shared/copyright/index.jsp","Healthcare","toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=631,height=400")
	if (myWin.opener == null)
		myWin.opener = window;
	myWin.opener.name = "opener";
}

function openZetiaTermsWin() {
	var myWin = window.open("http://www.zetia.com/ezetimibe/zetia/consumer/shared/terms/index.jsp","Healthcare","toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=631,height=400")
	if (myWin.opener == null)
		myWin.opener = window;
	myWin.opener.name = "opener";
}

function openZetiaPAPWin() {
	var myWin = window.open("/ezetimibe/zetia/consumer/shared/pap/index.jsp?WT.svl=5","Physician","toolbar=no,scrollbars=1,location=no,statusbar=0,menubar=0,resizable=1,width=631,height=400")
	if (myWin.opener == null)
		myWin.opener = window;
	myWin.opener.name = "opener";
}

function openZetiaImportantWin() {
	var myWin = window.open("/ezetimibe/zetia/consumer/shared/important_information/index.jsp","Healthcare","toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=631,height=400")
	if (myWin.opener == null)
		myWin.opener = window;
	myWin.opener.name = "opener";
}

//loads links from flash call on home page
function loadLink(url){
	if(url=='link1'){
		document.location='/ezetimibe/zetia/consumer/how_it_works/index.jsp?mtc=6BOTTOM';
	}
}

function openPrintWin(url) {
	var myWin = window.open(url,"print","toolbar=no,scrollbars=1,location=no,statusbar=0,menubar=0,resizable=1,width=631,height=500")
	if (myWin.opener == null)
		myWin.opener = window;
	myWin.opener.name = "opener";
}
function changeParentLocationClose(url) {
	opener.location.href = url;
	opener.name = "opener";
	window.close();
	opener.focus();
}
function openMSPMedWatch() {
    var myWin = window.open("http://www.msppharma.com/msp_jv/msppharma/side_effects/index.jsp","MedWatch","toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=465,height=450")
    if (myWin.opener == null)
        myWin.opener = window;
    myWin.opener.name = "opener";
}
function openWhy() {
    var myWin = alert("Why? This information will be used to analyze the program to better understand its usage and how improvements can be made in the future.")
//    if (myWin.opener == null)
//        myWin.opener = window;
//    myWin.opener.name = "opener";
}

function openExternalWinMerckSchering(product, url) {
    if(! confirm("Thank you for visiting " + product + ".com.\n\nMerck/Schering-Plough does not review or control the content at the site to which this\nhyperlink connects; therefore, this hyperlink does not constitute an endorsement by\nMerck/Schering-Plough of the content of any non-Merck/Schering-Plough site.\n\nDo you wish to continue?"))
        return;

    var externalWin = window.open(url,null,"toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=600,height=500");
    if (externalWin.opener == null)
        externalWin.opener=window;
        externalWin.opener.name="opener";
}

function hidetools() {
		document.getElementById('show-tools').style.visibility = 'hidden';
		document.getElementById('tools-bt').style.visibility = 'hidden';
		document.getElementById('tools-bt').style.margin = '0';
		document.getElementById('tools_base').style.padding = '0';

	}
	
function showtools() {
	var t=setTimeout("document.getElementById('show-tools').style.visibility = 'visible'",900);
	var t=setTimeout("document.getElementById('tools-bt').style.visibility = 'visible'",950);
	var t=setTimeout("document.getElementById('tools-bt').style.margin = '10px 0 0'",900);
	var t=setTimeout("document.getElementById('tools_base').style.padding = '0 0 20px'",900);

	}


