/*
	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="http://www.prnewswire.com/profnet/">&nbsp;ProfNet'+
'	<option value="">&nbsp;- INFORMATION -'+
'	<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/">&nbsp;North America'+
'	<option value="http://www.prnewswire.co.uk/disclose/">&nbsp;Disclose'+
'	<option value="http://www.prnewswire.co.uk/ewatch/">&nbsp;eWatch&#0153; (UK)'+
'	<option value="http://www.prnewswire.com/ewatch/">&nbsp;eWatch&#0153; (US)'+
'	<option value="http://www.mediainsider.com/">&nbsp;Media Insider'+
'	<option value="http://www.prnewswire.com/mediatlasinfo/">&nbsp;MEDIAtlas&#0153;'+
'	<option value="http://www.multivu.com/">&nbsp;MultiVu&#0153;'+
'	<option value="http://praudit.prnewswire.com/">&nbsp;PR AUDiT'+
'	<option value="">&nbsp;- CLIENTS -'+
'	<option value="http://www.prndirect.com/">&nbsp;PRN Direct'+
'	<option value="">&nbsp;- NEWS -'+
'	<option value="http://www.prnewswire.com.br/">&nbsp;Brazil'+
'	<option value="http://www.newswire.ca/">&nbsp;Canada'+
'	<option value="http://www.xinhuaprnewswire.com/">&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.co.il/">&nbsp;Israel'+
'	<option value="http://www.perssupport.anp.nl/">&nbsp;Netherlands'+
'	<option value="http://www.prnewswire.com/">&nbsp;North America'+
'</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;
}

