/*
AstraZeneca.it additional JS functions

*/
//define the message for the exit ramp
exitMessage='Stai abbandonando il sito www.astrazeneca.it per entrare al portale azmedicalinformation.it. Il portale \u00E8 riservato ai medici registrati ad AZ.it. Per accedere sar\u00E0 necessario re-inserire la sua password.';

function addMasterScript(){
	//that file adds in root.js, which includes all basic JS functionality
	//this must be included in all local js files 
	//Do not copy code from the root.js file, use this function to import it instead
	if(document.getElementById){
		//browser supports getElementById - attempt to add js functionality
		//this is a site-specific js file so include the master
		//create a script element
		if(document.createElement){
			elScript=document.createElement('script');		
			if(elScript){
				//include master file
				
				elScript.src='/_mshost81109/system/styles/root/javascript/root.js';
				//elScript.src='../styles/root/javascript/root.js';
				elScript.type='text/javascript';
				//get a handle to this script file
				elHead=document.getElementsByTagName('head');
				if(elHead){
					//get script
					elExistingScript=document.getElementsByTagName('script');
					if(elExistingScript){
						//add into head before previous element
						elHead[0].insertBefore(elScript,elExistingScript[0]);
						//attachEvents function is called when the master file loads 
						//so global functionality is still enabled
					}
				}
			}
		}
	}
}

//call the above function
addMasterScript();