function vidPop(url){ //Popup for the video player
	leftPos=(screen.width/2)-(320/2);
	topPos=(screen.height/2)-(240/2)*1.2;
	newwindow=window.open(url,'name','left='+leftPos+',top='+topPos+',height=240,width=320');
	if (window.focus) {newwindow.focus()}
	return false;
}

function vrPop(url,theWidth,theHeight){ //Popup for the video player
	leftPos=(screen.width/2)-(theWidth/2);
	topPos=(screen.height/2)-(theHeight/2)*1.2;
	newWindow=window.open("images/virtual/"+url,'name','left='+leftPos+',top='+topPos+',height='+theHeight+',width='+theWidth);
	if (window.focus) {newWindow.focus()}
	return false;
}

function infoPop(url,theWidth,theHeight){ //Popup for the video player
	leftPos=(screen.width/2)-(theWidth/2);
	topPos=(screen.height/2)-(theHeight/2)*1.2;
	newWindow=window.open("popupinfo/"+url,'name','left='+leftPos+',top='+topPos+',height='+theHeight+',width='+theWidth);
	if (window.focus) {newWindow.focus()}
	//return false;
}

function testPop(url,theWidth,theHeight){ //Popup for the video player
	leftPos=(screen.width/2)-(theWidth/2);
	topPos=(screen.height/2)-(theHeight/2)*1.2;
	newWindow=window.open("testimonials/"+url,'name','left='+leftPos+',top='+topPos+',height='+theHeight+',width='+theWidth);
	if (window.focus) {newWindow.focus()}
	//return false;
}

function imgPop(url,theWidth,theHeight){ //Popup for the video player
	leftPos=(screen.width/2)-(theWidth/2);
	topPos=(screen.height/2)-(theHeight/2)*1.2;
	newWindow=window.open('','name','left='+leftPos+',top='+topPos+',height='+theHeight+',width='+theWidth);
	newWindow.resizeTo(theWidth,theHeight);
	var tmp = newWindow.document;
	tmp.write('<html><head><title>Ryk Visscher\'s Hunting Adventures</title>');
	tmp.write('</head><body style="margin:0; padding:0"><img src="/images/photos/'+url+'" />');
	tmp.write('</body></html>');
	tmp.close();
	if (window.focus) {newWindow.focus()}
	
	//return false;
}