/*
	Version:			2.0a
	Written-By:		quasimodo, Web Developer
	Filename:		warpto.js
	Last Updated:	01-Apr-2004
	Description:	Generates a cross website/domain ("Client Side Include") drop down
						box of websites that can be customised for individual websites via HTML or CSS
*/

var warplanguage = "ei"; var NS4;
if (document.layers) { NS4 = true; } else { NS4 = false; }

var expdate = new Date();
var proto = location.protocol;
var dummyimage = new Image();
if (NS4) { colourDepth = screen.pixelDepth; } else { colourDepth = screen.colorDepth; }
if (NS4) { browserHeight = screen.pixelDepth; } else { browserHeight = screen.colorDepth; }
if (proto == "http:") { outputhtml = 'http://warp.prnewswire.co.uk/cgi/metrics?screen.width='+screen.width+'&screen.height='+screen.height+'&colourDepth='+colourDepth+'&browser='+escape(navigator.appName)+'&appver='+escape(navigator.appVersion)+'&os='+escape(navigator.platform)+'&site='+escape(location.protocol+'//'+location.hostname)+'&screenavheight='+screen.availHeight+'&screenavwidth='+screen.availWidth+'&language='+warplanguage; }

function statsget() { if (proto == "http:") { dummyimage.src = outputhtml } }

document.write('<table cellpadding="0" cellspacing="0" border="0">'+
'<form name="warpto">'+
'<tr>'+
'<td align="right">'+
'<span id="warpdrive" >'+
'<select id="warpdrive" name="site" onChange="makeitso(document.warpto.site.options[document.warpto.site.selectedIndex].value)">'+
'	<option value="">&nbsp;PR Newswire web sites'+
'	<option value="">&nbsp;- MEDIA -'+
'	<option value="http://www.prnewswire.com/media/">&nbsp;Media Site'+
'	<option value="">&nbsp;- INFORMATION -'+
'	<option value="http://www.prnewswire.com.br/argentina/">&nbsp;Argentina'+
'	<option value="http://www.prnewswire.com.br/">&nbsp;Brazil'+
'	<option value="http://www.newswire.ca/">&nbsp;Canada'+
'	<option value="http://www.prnewswire.co.uk/">&nbsp;Europe'+
'	<option value="http://www.prnewswire.com.mx">&nbsp;Mexico'+
'	<option value="http://www.prnewswire.com/">&nbsp;North America'+
'	<option value="http://www.prnewswire.com.pr">&nbsp;Puerto Rico'+
'	<option value="http://www.prnewswire.com.ve">&nbsp;Venezuela'+
'	<option value="http://www.prnewswire.co.uk/disclose/">&nbsp;Disclose'+
'	<option value="http://www.hdnweb.com">&nbsp;Hispanic Digital Network'+
'	<option value="http://www.hispanicprwire.com">&nbsp;Hispanic PR Wire'+
'	<option value="http://www.latinclips.com">&nbsp;LatinClips'+
'	<option value="http://www.prnewswire.com/mediatlasinfo/">&nbsp;MEDIAtlas&#0153;'+
'	<option value="http://www.multivu.com/">&nbsp;MultiVu&#0153;'+
'	<option value="http://www.notilog.com/">&nbsp;Notilog'+
'	<option value="http://www.vfilings.com/">&nbsp;Vintage Filings'+
'	<option value="">&nbsp;- CLIENTS -'+
'	<option value="https://portal.prnewswire.co.uk/web/guest/home">&nbsp;PRN Direct'+
'	<option value="">&nbsp;- NEWS -'+
'	<option value="http://www.prnewswire.com.br/argentina/">&nbsp;Argentina'+
'	<option value="http://www.prnewswire.com.br/">&nbsp;Brazil'+
'	<option value="http://www.newswire.ca/">&nbsp;Canada'+
'	<option value="http://prnewswireasia.com/index_en.html">&nbsp;China'+
'	<option value="http://www.prnewswire.co.uk/news/">&nbsp;Europe'+
'	<option value="http://www.prnewswire.fr/">&nbsp;France'+
'	<option value="http://www.prnewswire.com.mx">&nbsp;Mexico'+
'	<option value="http://www.perssupport.nl/">&nbsp;Netherlands'+
'	<option value="http://www.prnewswire.com/">&nbsp;North America'+
'	<option value="http://www.prnewswire.com.pr">&nbsp;Puerto Rico'+
'	<option value="http://www.prnewswire.com.ve">&nbsp;Venezuela'+
'	<option value="http://www.eventnewscenter.com">&nbsp;Event News Center'+
'</select>'+
'</span>'+
'</td>'+
'</tr>'+
'</form>'+
'</table>'+
'\n');
statsget();

function makeitso(URL) {
	if (URL != "") {
		logGotourl(URL);
		top.location = URL;
	}
} 

function logGotourl(URL) {
  par_url = parent.location.href;
  par_url = (par_url == location.href) ? "no parent" : par_url;
  query_string = "http://warp.prnewswire.co.uk/cgi-bin/goto_url"
   + "?" + escape(location.href)
   + "&to=" + escape(URL);
   
  if (document.images) {
   reporter = new Image();
   reporter.src = query_string;
  }
  return true;
}


