/*******************************************************************************
____________________________ API DOCUMENTATION BEGIN ___________________________
````````````````````````````````````````````````````````````````````````````````
Variables and functions used throughout website.

````````````````````````````````````````````````````````````````````````````````
_____________________________ API DOCUMENTATION END ____________________________
*******************************************************************************/

//------------------------------------------------------------------------------
// AUTO INVOKE FUNCTIONALITY BEGIN
//------------------------------------------------------------------------------

if(top.location.href != self.location.href) top.location.href = self.location.href; //prevent unauthorized framing

//------------------------------------------------------------------------------
// AUTO INVOKE FUNCTIONALITY END
//------------------------------------------------------------------------------

//------------------------------------------------------------------------------
// CSS FUNCTIONS BEGIN
//------------------------------------------------------------------------------

//FUNCTION-- swap class
function swapClass(theId, theClass) {
 var objId = document.getElementById(theId);
 objId.className = theClass;
}

//------------------------------------------------------------------------------
// CSS FUNCTIONS END
//------------------------------------------------------------------------------

function outsideLink(URL) {
   		var writeURL = URL;
   		var thisSite="www.risperdalconsta.com";
	   	if (URL.length > 60)
	   	{
		   writeURL = URL.substr(0, 60) + "...";
	   	}
	   	
	   	if (confirm("\nYou are now leaving www.RISPERDALCONSTA.com.\n\n" + "This link will take you to a site maintained by a third party who is solely responsible for its contents.\n\nOrtho-McNeil-Janssen Pharmaceuticals, Inc., provides these links as a service to Web site visitors. Ortho-McNeil-Janssen Pharmaceuticals, Inc., is not responsible for the privacy policy of any third party Web sites. We encourage you to read the privacy policy of every Web site you visit. \n"))
	   	//if (confirm("\nThank you for visiting " + thisSite + ".\n\nBy clicking 'OK' you will be taken to: \n\n" + writeURL +"\n\nA Web site to which our Privacy Policy \ndoes not apply.\n\nYou are solely responsible for your \ninteractions with such Web sites.\n\n"))
	   	{
		   window.open(URL,"_blank");
	   	}
}