function ne_pop(filelink){

var path = filelink.getAttribute('href');
var size = document.getElementById("downloadsize").childNodes[0].nodeValue;
var doctitle = filelink.childNodes[0].nodeValue; 
 doctitle = doctitle.replace("Download E-brochure ","");
var wHeight, wWidth, postop, posleft, features;

//get current window size
	if (document.all){ //ie
			 wHeight = document.body.offsetHeight;
			 wWidth = document.body.offsetWidth;
	}else if (document.getElementById && !document.all){
			wWidth = window.innerWidth;		//FF,NS,Op
			wHeight = window.innerHeight;	//FF,NS,Op
	}

	postop = Math.floor(wHeight/2);
	posleft = Math.floor((wWidth-380)/2);

	features='toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,copyhistory=0,width=380,height=280,left='+posleft+',top='+postop+',screenX='+posleft+',screenY='+postop+'';	
	
	msgWindow = window.open('','', features);
    msgWindow.document.write('<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml">');
    msgWindow.document.write('<head><meta http-equiv="content-type" content="text/html;charset=iso-8859-1" /><title>Rainbow Tours | Download eBrochure</title><link href="fileadmin/rainbowtours/css/popup.css" type="text/css" rel="stylesheet" media="all" /></head>');
    msgWindow.document.write('<body><div id="div-logo"><img  src="fileadmin/rainbowtours/images/logo-standard.gif" width="161" height="87" title="Rainbow Tours" alt="Rainbow Tours" /></div>');
    msgWindow.document.write('<div id="div-content"><h1>Download our eBrochure</h1>');
    msgWindow.document.write('<p><img src="fileadmin/rainbowtours/images/icon-pdf.gif" width="18" height="18" title="PDF document" alt="PDF document" /> <a href="'+path+'">'+doctitle+'</a> (pdf, '+size+')</p>');
    msgWindow.document.write('</div><div id="div-close"><p><a href="javascript:window.close();">Close window</a></p></div></body></html>');
	msgWindow.document.close();

}




function ne_pop2(filelink){

var path = filelink.getAttribute('href');
//var size = document.getElementById("downloadsize").childNodes[0].nodeValue;
//var doctitle = filelink.childNodes[0].nodeValue; 
/// doctitle = doctitle.replace("Download E-brochure ","");
var wHeight, wWidth, postop, posleft, features;

//get current window size
	if (document.all){ //ie
			 wHeight = document.body.offsetHeight;
			 wWidth = document.body.offsetWidth;
	}else if (document.getElementById && !document.all){
			wWidth = window.innerWidth;		//FF,NS,Op
			wHeight = window.innerHeight;	//FF,NS,Op
	}

	postop = Math.floor(wHeight/5);
	posleft = Math.floor((wWidth-700)/2);

//	features='toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,copyhistory=0,width=380,height=280,left='+posleft+',top='+postop+',screenX='+posleft+',screenY='+postop+'';	
	features='toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,copyhistory=0,width=700,height=500,left='+posleft+',top='+postop+',screenX='+posleft+',screenY='+postop+'';	
	
	msgWindow = window.open(path,'', features);
//    msgWindow.document.write('<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml">');
//    msgWindow.document.write('<head><meta http-equiv="content-type" content="text/html;charset=iso-8859-1" /><title>Rainbow Tours | Download eBrochure</title><link href="fileadmin/rainbowtours/css/popup.css" type="text/css" rel="stylesheet" media="all" /></head>');
//    msgWindow.document.write('<body><div id="div-logo"><img  src="fileadmin/rainbowtours/images/logo-standard.gif" width="161" height="87" title="Rainbow Tours" alt="Rainbow Tours" /></div>');
//    msgWindow.document.write('<div id="div-content"><h1>Download our eBrochure</h1>');
//    msgWindow.document.write('<p><img src="fileadmin/rainbowtours/images/icon-pdf.gif" width="18" height="18" title="PDF document" alt="PDF document" /> <a href="'+path+'">'+doctitle+'</a> (pdf, '+size+')</p>');
//    msgWindow.document.write('</div><div id="div-close"><p><a href="javascript:window.close();">Close window</a></p></div></body></html>');
//	msgWindow.document.close();

}







function ne_pop3(filelink){

var path = filelink.getAttribute('href');
var size = document.getElementById("downloadsize").childNodes[0].nodeValue;
var doctitle = filelink.childNodes[0].nodeValue; 
var wHeight, wWidth, postop, posleft, features;

//get current window size
	if (document.all){ //ie
			 wHeight = document.body.offsetHeight;
			 wWidth = document.body.offsetWidth;
	}else if (document.getElementById && !document.all){
			wWidth = window.innerWidth;		//FF,NS,Op
			wHeight = window.innerHeight;	//FF,NS,Op
	}

	postop = Math.floor(wHeight/2);
	posleft = Math.floor((wWidth-380)/2);

	features='toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,copyhistory=0,width=380,height=280,left='+posleft+',top='+postop+',screenX='+posleft+',screenY='+postop+'';	
	
	msgWindow = window.open('','', features);
    msgWindow.document.write('<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml">');
    msgWindow.document.write('<head><meta http-equiv="content-type" content="text/html;charset=iso-8859-1" /><title>Rainbow Tours | Download eBrochure</title><link href="fileadmin/rainbowtours/css/popup.css" type="text/css" rel="stylesheet" media="all" /><style media="all" type="text/css">a, a:hover, a:visited, a:active, a:link, #div-content a, #div-content a:hover, #div-content a:visited, #div-content a:active, #div-content a:link{color:#c00;}</style></head>');
    msgWindow.document.write('<body><div id="div-logo"><img src="fileadmin/rainbowtours/images/logo-honeymoons.gif" width="161" height="87" title="Rainbow Tours" alt="Rainbow Tours" /></div>');
    msgWindow.document.write('<div id="div-content"><h1>Download the Honeymiles form</h1>');
    msgWindow.document.write('<p><img src="fileadmin/rainbowtours/images/icon-pdf.gif" width="18" height="18" title="Download the Honeymiles form" alt="Download the Honeymiles form" /> <a href="'+path+'">'+doctitle+'</a> ('+size+')</p>');
    msgWindow.document.write('</div><div id="div-close"><p><a href="javascript:window.close();">Close window</a></p></div></body></html>');
	msgWindow.document.close();

}


function ne_pop4(filelink){

var path = filelink.getAttribute('href');
//var size = document.getElementById("downloadsize").childNodes[0].nodeValue;
//var doctitle = filelink.childNodes[0].nodeValue; 
/// doctitle = doctitle.replace("Download E-brochure ","");
var wHeight, wWidth, postop, posleft, features;

//get current window size
	if (document.all){ //ie
			 wHeight = document.body.offsetHeight;
			 wWidth = document.body.offsetWidth;
	}else if (document.getElementById && !document.all){
			wWidth = window.innerWidth;		//FF,NS,Op
			wHeight = window.innerHeight;	//FF,NS,Op
	}

	postop = Math.floor(wHeight/5);
	posleft = Math.floor((wWidth-700)/2);

//	features='toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,copyhistory=0,width=380,height=280,left='+posleft+',top='+postop+',screenX='+posleft+',screenY='+postop+'';	
	features='toolbar=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=700,height=500,left='+posleft+',top='+postop+',screenX='+posleft+',screenY='+postop+'';	
	
	msgWindow = window.open(path,'', features);
//    msgWindow.document.write('<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml">');
//    msgWindow.document.write('<head><meta http-equiv="content-type" content="text/html;charset=iso-8859-1" /><title>Rainbow Tours | Download eBrochure</title><link href="fileadmin/rainbowtours/css/popup.css" type="text/css" rel="stylesheet" media="all" /></head>');
//    msgWindow.document.write('<body><div id="div-logo"><img  src="fileadmin/rainbowtours/images/logo-standard.gif" width="161" height="87" title="Rainbow Tours" alt="Rainbow Tours" /></div>');
//    msgWindow.document.write('<div id="div-content"><h1>Download our eBrochure</h1>');
//    msgWindow.document.write('<p><img src="fileadmin/rainbowtours/images/icon-pdf.gif" width="18" height="18" title="PDF document" alt="PDF document" /> <a href="'+path+'">'+doctitle+'</a> (pdf, '+size+')</p>');
//    msgWindow.document.write('</div><div id="div-close"><p><a href="javascript:window.close();">Close window</a></p></div></body></html>');
//	msgWindow.document.close();

}
