<!-- Original:  Markus Fischer (mfischer@josefine.ben.tuwien.ac.at) -->
<!-- Web Site:  http://josefine.ben.tuwien.ac.at/~mfischer/ -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

var bExtern = false;

var mfBanners = [
['http://www.gear-zone.co.uk/cgi-bin/referrer.pl?SOURCE=GET&DESTINATION=indextwo%2ehtml&PATH=%2fhome%2fshopgear01%2fpublic_html%2facatalog%2f&BASEURL=http%3a%2f%2fwww%2egear-zone%2eco%2euk%2facatalog%2f','images/gearzone.gif'],
['http://www.qksrv.net/click-867832-5042816','http://www.qksrv.net/image-867832-5042816'],
['http://www.awin1.com/bclick.php?mid=1&gid=523&id=9396','http://www.awin1.com/show.php?mid=1&gid=523&aid=9396'],
['http://www.virtualtourist.com/?sa=687','images/virtualtourist468x60.gif']
];

function getRandomBanner()
{
	var now = new Date();
	var sec = now.getSeconds();
	var ad = sec % mfBanners.length;

	document.write('<a target="_blank" href="'+mfBanners[ad][0]+'"> <img border="0" src="'+mfBanners[ad][1]+'"></a>');
}


  var horizontal_images = [
  ['CNV00028.JPG'],
  ['img0041.JPG'],
  ['CNV00019.JPG'],
  ['img0045.JPG'],
  ['img0046.JPG'],
  ['CNV00027.JPG'],
  ['CNV00036.JPG'],
  ['CNV00034.JPG'],
  ['CNV00037.JPG'],
  ['img0051.JPG'],
  ['CNV00026.JPG'],
  ['img0052.JPG'],
  ['CNV00038.JPG'],
  ['img0058.JPG'],
  ['CNV00029.JPG'],
  ['img0064.JPG'],
  ['CNV00005.JPG'],
  ['CNV00007.JPG'],
  ['CNV00010.JPG'],
  ['CNV00013.JPG'],
  ['CNV00014.JPG'],
  ['img0047.JPG'],
  ['CNV00021.JPG'],
  ['CNV00030.JPG'],
  ['CNV00031.JPG'],
  ['img0055.JPG'],
  ['CNV00032.JPG'],
  ['CNV00033.JPG'],
  ['img0062.JPG'],
  ['CNV00035.JPG'],
  ['CNV00009.JPG'],
  ['CNV00040.JPG']
  ];
 
  var vertical_images = [
  ['img0049.JPG'],
  ['WILD_076.JPG'],
  ['img0050.JPG'],
  ['AFRICA22.JPG'],
  ['ASIA_010.JPG'],
  ['WILD_036.JPG'],
  ['ASIA_061.JPG'],
  ['CHINA_48.JPG'],
  ['DESRT036.JPG'],
  ['WILD_050.JPG'],
  ['DESRT037.JPG'],
  ['EGYPT011.JPG'],
  ['EGYPT024.JPG'],
  ['EGYPT067.JPG'],
  ['WILD_020.JPG'],
  ['AFRICA68.JPG'],
  ['ASIA_035.JPG'],
  ['WILD_025.JPG'],
  ['ASIA_116.JPG'],
  ['WILD_124.JPG']
  
  ];
 
  var mfIe = false;
  if( document.all) {
   mfIe = true;
  }
 
  var vImageNum, hImageNum;
  function getRandomHorizontalImage()
  {
	var now = new Date();
	var sec = now.getSeconds();
	var ad = sec % horizontal_images.length;
	
	hImageNum = ad
	document.write("<img src='images/horizontal/"+horizontal_images[ad % horizontal_images.length]+"'>");
  }
  
  function getRandomVerticalImage()
  {
	var now = new Date();
	var sec = now.getSeconds();
	var ad = sec % vertical_images.length;
	
	vImageNum = ad
	document.write("<img src='images/vertical/"+vertical_images[ad % vertical_images.length]+"'>");
  }
  
  function getNextHorizontalImage()
  {
	var ad = ++hImageNum % horizontal_images.length;
	document.write("<img src='images/horizontal/"+horizontal_images[ad % horizontal_images.length]+"'>");
  }
  
  function getNextVerticalImage()
  {
	var ad = ++vImageNum % vertical_images.length;
	document.write("<img src='images/vertical/"+vertical_images[ad % vertical_images.length]+"'>");
  }  
  
  function popupWin(url,width,height, properties)
  {
	if (width==null) width=400;
	if (height==null) height=300;
	if (properties==null) properties = "width=" + width + ",height=" + height + ",directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=yes"
	window.open(url,"",properties);
  }
  
function write_rnd_banner()
{
	document.writeln("<iframe src='http://impgb.tradedoubler.com/imp/pool/iframe/11373/283778' width=468 height=60 frameborder=0 border=0 marginwidth=0 marginheight=0 scrolling='no'></iframe>");
}
  
function write_extern_header()
{
	bExtern = true;
	write_header();
}

function write_header()
{
	var urlroot = "";
	
	if (bExtern == true)
	{
		urlroot = "http://www.getabroad.co.uk/";
	}
	
	document.writeln("<table width='800' align='center' border='0' cellspacing='0' cellpadding='0'>");
	document.writeln("	<tr valign=top>");
	document.writeln("	    <td valign='top' background='" + urlroot + "images/header800.jpg' align='center'>");
	document.writeln("			<table border='0' cellspacing='0' cellpadding='0' width='100%'>");
	document.writeln("				<tr>");
	document.writeln("					<td><a href='http://www.getabroad.co.uk/index.htm' target='_top'><img src='" + urlroot + "images/ga_txtlogo.gif' border=0></a></td>");
	document.write("					<td width=468 valign='middle'>");
	//getRandomBanner();
	if (bExtern == false)
	{
		write_rnd_banner();
	}
	document.writeln("</td>");
	document.writeln("					<td>&nbsp;</td>");
	document.writeln("				</tr>");
	document.writeln("			</table>");
	document.writeln("	    </td>");
	document.writeln("	</tr>");
	document.writeln("</table>");
}

function addBookmark()
{
	window.external.AddFavorite("http://www.getabroad.co.uk","GetAbroad.co.uk - Adventure Travel");
}

function doit(str) 
{
	document.writeln(str);
}

function write_extern_menu()
{
	bExtern = true;
	write_menu();
}

function write_menu()
{
	var urlroot = "";
	
	if (bExtern == true)
	{
		urlroot = "http://www.getabroad.co.uk/";
	}
	
	document.writeln("<table cellpadding='0' cellspacing='0' border='0' height='100%' width='140' class='menu' align='left' valign='top'>");
	document.writeln("<tr height=15><td colspan=2>&nbsp;</td></tr>");
	document.writeln("<tr valign='top'>");
	document.writeln("<td width=10>&nbsp;</td>");
	document.writeln("<td class='menu'>");
	if (mfIe ==true)
	{
		document.writeln("<table bgcolor=#FF6600><tr><td><a href=# onclick=\'addBookmark();\'><FONT COLOR=#FFFFCC>Bookmark GetAbroad</FONT></a></td></tr></table>");
	}
	document.writeln("<br>");
	document.writeln("   <div id='foldheader'><a target='_top' href='" + urlroot + "index.htm'>Home</a></div> ");
	document.writeln("   <div id='foldheader'><a target='_top' href='" + urlroot + "destinationguide.htm'>Destination Guide</a></div>");
	document.writeln("   <div id='foldheader'><a target='_top' href='" + urlroot + "featuredtours.htm'>Featured Tours</a></div>");
	document.writeln("   <div id='foldheader'><a target='_top' href='" + urlroot + "touroperators.htm'>Operator Directory</a></div>");
	document.writeln("   <div id='foldheader'><a target='_top' href='" + urlroot + "lateavailability.htm'>Late Availability</a></div>");
	document.writeln("   <div id='foldheader'><a target='_blank' href='http://clkuk.tradedoubler.com/click?p=21874&a=283778&g=951989'>Tailor-Made</a></div>");
	document.writeln("   <div id='foldheader'>Travel Booking -</div>");
	document.writeln("   <div id='foldinglist'>");
	document.writeln("      &nbsp;&nbsp;&nbsp;<a target='_top' href='" + urlroot + "scheduledflights.htm'>Scheduled Flights</a><br>");
	document.writeln("      &nbsp;&nbsp;&nbsp;<a target='_top' href='" + urlroot + "charterflights.htm'>Charter Flights</a><br>");
	document.writeln("	    &nbsp;&nbsp;&nbsp;<a target='_top' href='" + urlroot + "bookhotels.htm'>Book Hotels</a><br>");
	document.writeln("	    &nbsp;&nbsp;&nbsp;<a target='_top' href='" + urlroot + "hiphotels.htm'>Hip Hotels</a><br>");
	document.writeln("	    &nbsp;&nbsp;&nbsp;<a target='_top' href='" + urlroot + "bookhostels.htm'>Book Hostels</a><br>");
	document.writeln("      &nbsp;&nbsp;&nbsp;<a target='_top' href='" + urlroot + "carhire.htm'>Car Hire</a><br>");
	document.writeln("      &nbsp;&nbsp;&nbsp;<a target='_top' href='" + urlroot + "uktravel.htm'>UK Travel</a><br>");
	document.writeln("   </div>");
	document.writeln("   <div id='foldheader'>Travel Essentials -</div>");
	document.writeln("   <div id='foldinglist'>");
	document.writeln("      &nbsp;&nbsp;&nbsp;<a target='_top' href='" + urlroot + "insurance.htm'>Insurance</a><br>");
	document.writeln("      &nbsp;&nbsp;&nbsp;<a target='_top' href='" + urlroot + "money.htm'>Money</a><br>");
	document.writeln("      &nbsp;&nbsp;&nbsp;<a target='_top' href='" + urlroot + "health.htm'>Health</a><br>");
	//document.writeln("      &nbsp;&nbsp;&nbsp;<a target='_blank' href='" + urlroot + "visas.htm'>Visas</a><br>");
	document.writeln("   </div>");
	document.writeln("   <div id='foldheader'><a target='_top' href='" + urlroot + "links.htm'>Travel Links</a></div>");
	document.writeln("   <div id='foldheader'><a target='_top' href='" + urlroot + "travelwriting.htm'>Travel Writing</a></div> ");
	document.writeln("   <div id='foldheader'><a target='_blank' href='http://travel-photo.co.uk'>Travel Photography</a></div> ");
	//document.writeln("   <div id='foldheader'><a target='_top' href='http://www.allholidaybrochures.com/partners/getabroad'>Travel Brochures</a></div> ");
	document.writeln("   <hr color='#996600' noshade align=left width=100>  ");
	document.writeln("   <div id='foldheader'><a target='_top' href='" + urlroot + "store.htm'>Gear Store</a></div>");
	//document.writeln("   <div id='foldheader'><a target='_blank' href='http://tracker.tradedoubler.com/pan/TrackerServlet?p=1639&a=283778'>Gear Store</a></div>");
	document.writeln("   <div id='foldheader'><a target='_top' href='" + urlroot + "books.htm'>Book Shop</a></div>");
	document.writeln("   <hr color='#996600' noshade align=left width=100>");
	document.writeln("   <div id='foldheader'><a target='_top' href='" + urlroot + "forum.htm'>GetAbroad Forum</a></div>");
	document.writeln("   <hr color='#996600' noshade align=left width=100>");
	document.writeln("   <div id='foldheader'><a target='_top' href='" + urlroot + "disclaimer.htm'>Disclaimer</a></div>");
	document.writeln("   <div id='foldheader'><a target='_top' href='" + urlroot + "aboutus.htm'>About Us</a></div>");
	document.writeln("   <div id='foldheader'><a target='_top' href='" + urlroot + "linktous.htm'>Link to Us</a></div>");
	document.writeln("   <div id='foldheader'><a target='_top' href='" + urlroot + "affiliations.htm'>Affiliations</a></div>");
	document.writeln("   <div id='foldheader'><a target='_top' href='" + urlroot + "sitemap.htm'>Sitemap</a></div>");
	document.writeln("<br>");
	document.writeln("   <div id='foldheader'><a target='_blank' href='http://www.RobBirrell.com'>Rob Birrell Photo</a></div>");
	
	document.writeln("</td>");
	document.writeln("</tr>");
	document.writeln("<tr height=300>");
	document.writeln("<td colspan=2 valign=bottom align=middle>");
	OneStat_Tag();
	document.writeln("</td>");
	document.writeln("</tr>");
	
	document.writeln("</table>");
}

function click() 
  {
	if (event.button==2) 
	{
		alert("\xA9" + " Copyright GetAbroad 2001/2002");
	}
  }
  
function write_footer()
{
    document.writeln("<A target='_top' href='http://www.getabroad.co.uk/index.htm'>Home</A>&nbsp;&nbsp;|&nbsp;&nbsp;");
    document.writeln("<A target='_top' href='http://www.getabroad.co.uk/destinationguide.htm'>Destination Guide</A>&nbsp;&nbsp;|&nbsp;&nbsp;");
    document.writeln("<A target='_top' href='http://www.getabroad.co.uk/featuredtours.htm'>Featured Tours</A>&nbsp;&nbsp;|&nbsp;&nbsp;");
    document.writeln("<A target='_top' href='http://www.getabroad.co.uk/touroperators.htm'>Operator Directory</A>&nbsp;&nbsp;|&nbsp;&nbsp;");
    document.writeln("<A target='_top' href='http://www.getabroad.co.uk/lateavailability.htm'>Late Availability</A>&nbsp;&nbsp;|&nbsp;&nbsp;");
    document.writeln("<A target='_top' href='http://www.getabroad.co.uk/tailormade.htm'>Tailor-Made</A>&nbsp;&nbsp;|&nbsp;&nbsp;");
    document.writeln("<A target='_top' href='http://www.getabroad.co.uk/scheduledflights.htm'>Scheduled Flights</A>&nbsp;&nbsp;|&nbsp;&nbsp;");
    document.writeln("<A target='_top' href='http://www.getabroad.co.uk/charterflights.htm'>Charter Flights</A>&nbsp;&nbsp;|&nbsp;&nbsp;");
    document.writeln("<A target='_blank' href='http://www.getabroad.co.uk/bookhotels.htm'>Book Hotels</A>&nbsp;&nbsp;|&nbsp;&nbsp;");
    document.writeln("<A target='_top' href='http://www.getabroad.co.uk/bookhostels.htm'>Book Hostels</A>&nbsp;&nbsp;|&nbsp;&nbsp;");
    document.writeln("<A target='_top' href='http://www.getabroad.co.uk/carhire.htm'>Car Hire</A>&nbsp;&nbsp;|&nbsp;&nbsp;");
    document.writeln("<A target='_top' href='http://www.getabroad.co.uk/uktravel.htm'>UK Travel</A>&nbsp;&nbsp;|&nbsp;&nbsp;");
    document.writeln("<A target='_top' href='http://www.getabroad.co.uk/insurance.htm'>Insurance</A>&nbsp;&nbsp;|&nbsp;&nbsp;");
    document.writeln("<A target='_top' href='http://www.getabroad.co.uk/money.htm'>Money</A>&nbsp;&nbsp;|&nbsp;&nbsp;");
    document.writeln("<A target='_top' href='http://www.getabroad.co.uk/health.htm'>Health</A>&nbsp;&nbsp;|&nbsp;&nbsp;");
    document.writeln("<A target='_top' href='http://www.getabroad.co.uk/visas.htm'>Visas</A>&nbsp;&nbsp;|&nbsp;&nbsp;");
    document.writeln("<A target='_top' href='http://www.getabroad.co.uk/links.htm'>Travel Links</A>&nbsp;&nbsp;|&nbsp;&nbsp;");
    document.writeln("<A target='_blank' href='http://travel-photo.co.uk'>Travel Photography</A>&nbsp;&nbsp;|&nbsp;&nbsp;"); 
	document.writeln("<A target='_top' href='http://www.allholidaybrochures.com/partners/getabroad'>Travel Brochures</a>&nbsp;&nbsp;|&nbsp;&nbsp;");
    document.writeln("<A target='_top' href='http://www.getabroad.co.uk/store.htm'>Gear Store</A>&nbsp;&nbsp;|&nbsp;&nbsp;");
    document.writeln("<A target='_top' href='http://www.getabroad.co.uk/books.htm'>Book Shop</A>&nbsp;&nbsp;|&nbsp;&nbsp;");
    document.writeln("<A target='_top' href='http://www.getabroad.co.uk/forum.htm'>GetAbroad Forum</A>&nbsp;&nbsp;|&nbsp;&nbsp;");
    document.writeln("<A target='_top' href='http://www.getabroad.co.uk/disclaimer.htm'>Disclaimer</A>&nbsp;&nbsp;|&nbsp;&nbsp;");
    document.writeln("<A target='_top' href='http://www.getabroad.co.uk/aboutus.htm'>About Us</A>&nbsp;&nbsp;|&nbsp;&nbsp;");
    document.writeln("<A target='_top' href='http://www.getabroad.co.uk/linktous.htm'>Link to Us</A>&nbsp;&nbsp;|&nbsp;&nbsp;");
    document.writeln("<A target='_top' href='http://www.getabroad.co.uk/affiliations.htm'>Affiliations</A>");
    document.writeln("<A target='_top' href='http://www.getabroad.co.uk/sitemap.htm'>Sitemap</A>");
    document.writeln("<A target='_top' href='http://www.robbirrell.com'>Rob Birrell Photography</A>");
}

// Modification of this code is not allowed and will permanently disable your account!
// Account ID: 168299
// Site URL  : http://www.getabroad.co.uk
// Copyright (C) 2002,2003 OneStat.com All Rights Reserved
function OneStat_Tag()
{
    var CONTENTSECTION= "";
    var CUSTOMDATA= "";
    var osp_URL= document.URL;
    var osp_Title= document.title;

 	if (self == top)
	{
		osp_URL = document.URL;
	}
	else
	{
		osp_URL = parent.document.URL;
	}

   function A(B, C)
    {
        W+="&"+B+"="+escape(C);
    }

    var t = new Date();

    var W="http"+(document.URL.indexOf('https:')==0?'s':'')+"://stat.onestat.com/asp/stat.asp?tagver=1&sid=168299";

    A( "tz", t.getTimezoneOffset());
    A( "ch", t.getHours());
    A( "ti", typeof(osp_Title)== "string" ? osp_Title : document.title);
	A( "url", osp_URL);
    A( "rf", parent==self ? window.document.referrer : top.document.referrer);
    A( "js", "Yes");
    A( "ul", navigator.appName=="Netscape" ? navigator.language : navigator.userLanguage);
    if(typeof(screen)=="object")
    {
    A( "sr", screen.width+"x"+screen.height);
    A( "cd", screen.colorDepth);
    A( "jo", navigator.javaEnabled()?"Yes":"No");
    }
    A( "section", typeof(CONTENTSECTION)== "string" ? CONTENTSECTION : "");
    A( "custom", typeof(CUSTOMDATA)== "string" ? CUSTOMDATA : "");
    if( W.length>2048 && navigator.userAgent.indexOf('MSIE')>=0)
        W= W.substring( 0, 2043)+"&tu=1";

    document.write('<A HREF="http://www.onestat.com/asp/login.asp?sid=168299" target=_blank><IMG ID="ONESTAT_TAG" BORDER="0" SRC="'+W+'" width=1 height=1></A>');

}

// name - name of the cookie
// value - value of the cookie
// [expires] - expiration date of the cookie (defaults to end of current session)
// [path] - path for which the cookie is valid (defaults to path of calling document)
// [domain] - domain for which the cookie is valid (defaults to domain of calling document)
// [secure] - Boolean value indicating if the cookie transmission requires a secure transmission
// * an argument defaults when it is assigned null as a placeholder
// * a null placeholder is not required for trailing omitted arguments
function setCookie(name, value, expires, path, domain, secure) {
  var curCookie = name + "=" + escape(value) +
      ((expires) ? "; expires=" + expires.toGMTString() : "") +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      ((secure) ? "; secure" : "");
  document.cookie = curCookie;
}

// name - name of the desired cookie
// * return string containing value of specified cookie or null if cookie does not exist
function getCookie(name) {
  var dc = document.cookie;
  var prefix = name + "=";
  var begin = dc.indexOf("; " + prefix);
  if (begin == -1) {
    begin = dc.indexOf(prefix);
    if (begin != 0) return null;
  } else
    begin += 2;
  var end = document.cookie.indexOf(";", begin);
  if (end == -1)
    end = dc.length;
  return unescape(dc.substring(begin + prefix.length, end));
}

// name - name of the cookie
// [path] - path of the cookie (must be same as path used to create cookie)
// [domain] - domain of the cookie (must be same as domain used to create cookie)
// * path and domain default if assigned null or omitted if no explicit argument proceeds
function deleteCookie(name, path, domain) {
  if (getCookie(name)) {
    document.cookie = name + "=" + 
    ((path) ? "; path=" + path : "") +
    ((domain) ? "; domain=" + domain : "") +
    "; expires=Thu, 01-Jan-70 00:00:01 GMT";
  }
}

// date - any instance of the Date object
// * hand all instances of the Date object to this function for "repairs"
function fixDate(date) {
  var base = new Date(0);
  var skew = base.getTime();
  if (skew > 0)
    date.setTime(date.getTime() - skew);
}

function Request_QueryString(FieldName) 
{
	var QueryString = '' 
	var FieldValue = '' 
	var Start = 0 
	var End = 0 

	// Grab the querystring 
	QueryString = window.location.search 

	// Convert field name and querystring to lowercase so that 
	// function is not case sensitive. 
	FieldName = FieldName.toLowerCase() 
	QueryString = QueryString.toLowerCase()
 
	// Look for field as first item ... 
	Start = QueryString.indexOf(FieldName + '=') 

	// If field is not the first ... 
	if(Start!=1) 
	{ 
		// Search appended fields 
		Start = QueryString.indexOf('&' + FieldName + '=') 

		// If field wasn't found at all, return empty string. 
		if(Start==-1)
		{
			return(FieldValue)
		}
 
		// Setup start position after equal sign 
		Start += FieldName.length + 2 
	} 
	else 
	{ 
		// Setup start position after equal sign 
		Start = FieldName.length + 2 
	}
 
	// Search for beginning of next field 
	End = QueryString.indexOf('&', Start + 1) 

	// if another field was not defined, set end to length of querystring 
	if(End==-1){End=QueryString.length} 

	// Parse the field value 
	FieldValue = window.location.search.substring(Start, End) 

	// unescape special characters within the value (such as %20 = space character) 
	FieldValue = unescape(FieldValue) 

	// Return the results 
	return(FieldValue) 
} 

var domain="getabroad.co.uk";
var subject="GetAbroad Enquiry";

function email(user, subject)
{
	document.write('<a href=\"mailto:' + user + '@' + domain + '?subject=' + subject + '\">');
	document.write(user + '@' + domain + '</a>');
}

  
  //document.onmousedown=click
