var theImages = new Array()

theImages[0] = '../images/pb_000001.jpg'
theImages[1] = '../images/pb_000002.jpg'
theImages[2] = '../images/pb_000003.jpg'
theImages[3] = '../images/pb_000004.jpg'
theImages[4] = '../images/pb_000005.jpg'
theImages[5] = '../images/pb_000006.jpg'
theImages[6] = '../images/pb_000007.jpg'
theImages[7] = '../images/pb_000008.jpg'
theImages[8] = '../images/pb_000009.jpg'
theImages[9] = '../images/pb_000010.jpg'
theImages[10] = '../images/pb_000011.jpg'
theImages[11] = '../images/pb_000012.jpg'
theImages[12] = '../images/pb_000013.jpg'
theImages[13] = '../images/pb_000014.jpg'
theImages[14] = '../images/pb_000015.jpg'
theImages[15] = '../images/pb_000016.jpg'
theImages[16] = '../images/pb_000017.jpg'
theImages[17] = '../images/pb_000018.jpg'
theImages[18] = '../images/pb_000019.jpg'
theImages[19] = '../images/pb_000020.jpg'
theImages[20] = '../images/pb_000021.jpg'
theImages[21] = '../images/pb_000023.jpg'
theImages[21] = '../images/pb_000024.jpg'

var j = 0
var p = theImages.length;

var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}

var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}

function popUp(url){
 	window.open(url,"pop","width = 495,height = 495,toolbars = 0,scrollbars = no");
}

function printPage(text) {
	text = document;
	print(text);
}

function referPage(activeURL)  {
	URL = "../scripts/friend.php?id=" + activeURL;
	popUp(URL); 
}


// Top Navigation 13082009 
st_siteroot="file:///D|/Myxt/Pantarhei%20Bioscience/website1308/mainwebsite_html";
st_jspath="../navigation/stmenu.js";

if(!window.location.href.indexOf("file:") && st_jspath.charAt(0)=="/")
  document.write('<script type="text/javascript" src="'+st_siteroot+st_jspath+'"><\/script>');
else 
  document.write('<script type="text/javascript" src="'+st_jspath+'"><\/script>');