var subWin;

function getWidth() {
	var w = 0;
	
	if (self.innerWidth) {
		w = self.innerWidth;
	} else if (document.documentElement && document.documentElement.clientWidth) {
		w = document.documentElement.clientWidth;
	} else if (document.body) {
		w = document.body.clientWidth;
	}
	
	return w;
}

function getHeight() {
	var h = 0;
	
	if (self.innerHeight) {
		h = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) {
		h = document.documentElement.clientHeight;
	} else if (document.body) {
		h = document.body.clientHeight;
	}
	
	return h;
}

function setWidth(w) {
	//d = getscrollbarwidth();
	if (self.innerWidth) {
		self.innerWidth = w;
	} else if (document.documentElement && document.documentElement.clientWidth) {
		document.documentElement.clientWidth = w;
	} else if (document.body) {
		document.body.clientWidth = w;
	}
}

function setHeight(h) {
	//d = getextraheights();
	if (self.innerHeight) {
		self.innerHeight = h + 27;
	} else if (document.documentElement && document.documentElement.clientHeight) {
		document.documentElement.clientHeight = h + 27;
	} else if (document.body) {
		document.body.clientHeight = h + 27;
	}
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

        
function MM_openBrWindow(theURL,winName,features) { //v2.0
  subWin = window.open(theURL,winName,features);
}


function insertMenu() {
	document.write("			<ul>\
				<li><a href=\"intro.html\">Home</a></li>\
				<li><a href=\"about.html\">About PREDICT-1</a></li>\
				<li><a href=\"protocol.html\">Study design</a></li>\
				<li><a href=\"investigators.html\">Centres</a></li>\
				<li><a href=\"results.html\">Results</a></li>\
				<li><a href=\"publications.html\">Publications</a></li>\
				<li><a href=\"educational.html\">Educational Presentations</a></li>\
				<li><a href=\"studies.html\">Related GSK Studies</a></li>\
				<li><a href=\"prescribe.html\">Prescribing Information</a></li>\
				<li><a href=\"adverse.html\">Report adverse events</a></li>\
			</ul>\
");
}

function insertFooter() {
	document.write("		<!---Sponsership statement--->\
		<p>This site is  controlled by GlaxoSmithKline | &copy; Copyright,  GlaxoSmithKline group of companies 2007<br>\
			GlaxoSmithKline and the GSK logo are trade marks of the GlaxoSmithKline group of companies\
			All rights reserved.<br>\
			Please read the <a href=\"docs/Terms_and_conditions070516.html\" target=\"_blank\"><u>Terms and Conditions</u></a> and the <u><a href=\"docs/Privacy_Policy070516.html\" target=\"_blank\">Privacy  Policy</a></u><br>\
			Job number: &quot;HIV07/016/1&quot; &bull; Date of preparation//last updated: May 15th, 2007 </p>\
		<img src=\"artwork/gsk2.png\" width=\"127\" height=\"50\">\
		");
}