
/***********************************************
* Switch Menu script- by Martial B of http://getElementById.com/
* Modified by Dynamic Drive for format & NS4/IE4 compatibility
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var persistmenu="yes" //"yes" or "no". Make sure each SPAN content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc)
var persisttype="sitewide" //enter "sitewide" for menu to persist across site, "local" for this page only

if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
		if(el.style.display != "block"){ //DynamicDrive.com change
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") //DynamicDrive.com change
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}

function get_cookie(Name) { 
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { 
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function onloadfunction(){
if (persistmenu=="yes"){
var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
var cookievalue=get_cookie(cookiename)
if (cookievalue!="")
document.getElementById(cookievalue).style.display="block"
}
}

function savemenustate(){
var inc=1, blockid=""
while (document.getElementById("sub"+inc)){
if (document.getElementById("sub"+inc).style.display=="block"){
blockid="sub"+inc
break
}
inc++
}
var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
var cookievalue=(persisttype=="sitewide")? blockid+";path=/" : blockid
document.cookie=cookiename+"="+cookievalue
}

if (window.addEventListener)
window.addEventListener("load", onloadfunction, false)
else if (window.attachEvent)
window.attachEvent("onload", onloadfunction)
else if (document.getElementById)
window.onload=onloadfunction

if (persistmenu=="yes" && document.getElementById)
window.onunload=savemenustate

var mycontent = new Array();

mycontent[1]='<a href="http://www.nationsillustrated.com/picture/5493"><img src="/Random/0001.jpg" alt="Guggenheim, Bilbao, Spain" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;Guggenheim, <a href="http://www.nationsillustrated.com/Spain/Bilbao/index.html">Bilbao</a>, <a href="http://www.nationsillustrated.com/Spain/">Spain</a>';
mycontent[2]='<a href="http://www.nationsillustrated.com/picture/7582"><img src="/Random/0002.jpg" alt="Taxis in Times Square, New York, New York, United States" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;Taxis in Times Square, <a href="http://www.nationsillustrated.com/New-York-United-States/New-York/index.html">New York</a>, <a href="http://www.nationsillustrated.com/New-York-United-States/">New York</a>, <a href="http://www.nationsillustrated.com/United-States/">United States</a>';
mycontent[3]='<a href="http://www.nationsillustrated.com/picture/7607"><img src="/Random/0003.jpg" alt="Empire State Building, New York, New York, United States " width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;A view from Empire State Building, <a href="http://www.nationsillustrated.com/New-York-United-States/New-York/index.html">New York</a>, <a href="http://www.nationsillustrated.com/New-York-United-States/">New York</a>, <a href="http://www.nationsillustrated.com/United-States/">United States</a>';
mycontent[4]='<a href="http://www.nationsillustrated.com/picture/7887"><img src="/Random/0004.jpg" alt="Monument Valley, Utah, United States" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;<a href="http://www.nationsillustrated.com/Utah-United-States/Monument-Valley/index.html">Monument Valley</a>, <a href="http://www.nationsillustrated.com/Utah-United-States/">Utah</a>, <a href="http://www.nationsillustrated.com/United-States/">United States</a>';
mycontent[5]='<a href="http://www.nationsillustrated.com/picture/7863"><img src="/Random/0005.jpg" alt="Grand Teton reflection, Yellowstone National Park, United States" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;Grand Teton reflection, <a href="http://www.nationsillustrated.com/United-States/Yellowstone-National-Park/index.html">Yellowstone National Park</a>, <a href="http://www.nationsillustrated.com/United-States/">United States</a>';
mycontent[6]='<a href="http://www.nationsillustrated.com/picture/7860"><img src="/Random/0006.jpg" alt="Halong Bay, Vietnam" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;Halong Bay, <a href="http://www.nationsillustrated.com/Vietnam/">Vietnam</a>';
mycontent[7]='<a href="http://www.nationsillustrated.com/picture/5280"><img src="/Random/0007.jpg" alt="Atlantic view, Hermanus, South Africa " width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;Atlantic view, <a href="http://www.nationsillustrated.com/South-Africa/Hermanus/index.html">Hermanus</a>, <a href="http://www.nationsillustrated.com/South-Africa/">South Africa</a>';
mycontent[8]='<a href="http://www.nationsillustrated.com/picture/5379"><img src="/Random/0008.jpg" alt="Barcelona, Spain" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;<a href="http://www.nationsillustrated.com/Spain/Barcelona/index.html">Barcelona</a>, <a href="http://www.nationsillustrated.com/Spain/">Spain</a>';
mycontent[9]='<a href="http://www.nationsillustrated.com/picture/5587"><img src="/Random/0009.jpg" alt="Picos, Spain" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;<a href="http://www.nationsillustrated.com/Spain/Picos/index.html">Picos</a>, <a href="http://www.nationsillustrated.com/Spain/">Spain</a>';
mycontent[10]='<a href="http://www.nationsillustrated.com/picture/5608"><img src="/Random/0010.jpg" alt="Segovia, Spain" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;<a href="http://www.nationsillustrated.com/Spain/Segovia/index.html">Segovia</a>, <a href="http://www.nationsillustrated.com/Spain/">Spain</a>';
mycontent[11]='<a href="http://www.nationsillustrated.com/picture/5809"><img src="/Random/0011.jpg" alt="Luzern, Switzerland" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;<a href="http://www.nationsillustrated.com/Switzerland/Luzern/index.html">Luzern</a>, <a href="http://www.nationsillustrated.com/Switzerland/">Switzerland</a>';
mycontent[12]='<a href="http://www.nationsillustrated.com/picture/1157"><img src="/Random/0012.jpg" alt="Nassfeld, Austria" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;<a href="http://www.nationsillustrated.com/Austria/Nassfeld/index.html">Nassfeld</a>, <a href="http://www.nationsillustrated.com/Austria/">Austria</a>';
mycontent[13]='<a href="http://www.nationsillustrated.com/picture/6345"><img src="/Random/0013.jpg" alt="Stonehenge, England, UK" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;<a href="http://www.nationsillustrated.com/England-UK/Stonehenge/index.html">Stonehenge</a>, <a href="http://www.nationsillustrated.com/England-UK/">England</a>, <a href="http://www.nationsillustrated.com/UK/">UK</a>';
mycontent[14]='<a href="http://www.nationsillustrated.com/picture/6376"><img src="/Random/0014.jpg" alt="Eilean Donan Castle, Scotland, UK" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;<a href="http://www.nationsillustrated.com/Scotland-UK/Eilean-Donan-Castle/index.html">Eilean Donan Castle</a>, <a href="http://www.nationsillustrated.com/Scotland-UK/">Scotland</a>, <a href="http://www.nationsillustrated.com/UK/">UK</a>';
mycontent[15]='<a href="http://www.nationsillustrated.com/picture/6622"><img src="/Random/0015.jpg" alt="Kodak Theatre, Los Angeles, California, United States" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;Kodak Theatre, <a href="http://www.nationsillustrated.com/California-United-States/Los-Angeles/index.html">Los Angeles</a>, <a href="http://www.nationsillustrated.com/California-United-States/">California</a>, <a href="http://www.nationsillustrated.com/United-States/">United States</a>';
mycontent[16]='<a href="http://www.nationsillustrated.com/picture/6759"><img src="/Random/0016.jpg" alt="San Francisco, California, United States" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;<a href="http://www.nationsillustrated.com/California-United-States/San-Francisco/index.html">San Francisco</a>, <a href="http://www.nationsillustrated.com/California-United-States/">California</a>, <a href="http://www.nationsillustrated.com/United-States/">United States</a>';
mycontent[17]='<a href="http://www.nationsillustrated.com/picture/7004"><img src="/Random/0017.jpg" alt="Sunset at Ali&#8217;i beach, Hawaii, United States" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;Sunset at Ali&#8217;i beach, <a href="http://www.nationsillustrated.com/Hawaii-United-States/">Hawaii</a>, <a href="http://www.nationsillustrated.com/United-States/">United States</a>';
mycontent[18]='<a href="http://www.nationsillustrated.com/picture/7056"><img src="/Random/0018.jpg" alt="Kailua beach, Oahu, Hawaii, United States " width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;Kailua beach, <a href="http://www.nationsillustrated.com/Hawaii-United-States/Oahu/index.html">Oahu</a>, <a href="http://www.nationsillustrated.com/Hawaii-United-States/">Hawaii</a>, <a href="http://www.nationsillustrated.com/United-States/">United States</a>';
mycontent[19]='<a href="http://www.nationsillustrated.com/picture/7118"><img src="/Random/0019.jpg" alt="O&#8217;Hare International Airport, Chicago, Illinois, United States" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;O&#8217;Hare International Airport, <a href="http://www.nationsillustrated.com/Illinois-United-States/Chicago/index.html">Chicago</a>, <a href="http://www.nationsillustrated.com/Illinois-United-States/">Illinois</a>, <a href="http://www.nationsillustrated.com/United-States/">United States</a>';
mycontent[20]='<a href="http://www.nationsillustrated.com/picture/7407"><img src="/Random/0020.jpg" alt="View from the Empire State Building, New York, New York, United States " width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;View from the Empire State Building, <a href="http://www.nationsillustrated.com/New-York-United-States/New-York/index.html">New York</a>, <a href="http://www.nationsillustrated.com/New-York-United-States/">New York</a>, <a href="http://www.nationsillustrated.com/United-States/">United States</a>';
mycontent[21]='<a href="http://www.nationsillustrated.com/picture/5223"><img src="/Random/0021.jpg" alt="Esplanade Theatre, Singapore" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;Esplanade Theatre, <a href="http://www.nationsillustrated.com/Singapore/">Singapore</a>';
mycontent[22]='<a href="http://www.nationsillustrated.com/picture/3196"><img src="/Random/0022.jpg" alt="Corfu, Greece" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;<a href="http://www.nationsillustrated.com/Greece/Corfu/index.html">Corfu</a>, <a href="http://www.nationsillustrated.com/Greece/">Greece</a>';
mycontent[23]='<a href="http://www.nationsillustrated.com/picture/3244"><img src="/Random/0023.jpg" alt="Fisher boats in the port of Agia Anna, Naxos, Greece" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;Fisher boats in the port of Agia Anna, <a href="http://www.nationsillustrated.com/Greece/Naxos/index.html">Naxos</a>, <a href="http://www.nationsillustrated.com/Greece/">Greece</a>';
mycontent[24]='<a href="http://www.nationsillustrated.com/picture/3306"><img src="/Random/0024.jpg" alt="Central Plaza, Hong Kong Convention and Exhibition Centre, Hong Kong" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;Central Plaza, Hong Kong Convention and Exhibition Centre, <a href="http://www.nationsillustrated.com/Hong-Kong/">Hong Kong</a>';
mycontent[25]='<a href="http://www.nationsillustrated.com/picture/3327"><img src="/Random/0025.jpg" alt="Hong Kong skyline" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;<a href="http://www.nationsillustrated.com/Hong-Kong/">Hong Kong</a> skyline';
mycontent[26]='<a href="http://www.nationsillustrated.com/picture/3439"><img src="/Random/0026.jpg" alt="Mathias church by night, Budapest, Hungary" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;Mathias Church by night, <a href="http://www.nationsillustrated.com/Hungary/Budapest/index.html">Budapest</a>, <a href="http://www.nationsillustrated.com/Hungary/">Hungary</a>';
mycontent[27]='<a href="http://www.nationsillustrated.com/picture/3631"><img src="/Random/0027.jpg" alt="Abandoned Temple complex at Orcha, India" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;Abandoned temple complex at <a href="http://www.nationsillustrated.com/India/Orcha/index.html">Orcha</a>, <a href="http://www.nationsillustrated.com/India/">India</a>';
mycontent[28]='<a href="http://www.nationsillustrated.com/picture/3634"><img src="/Random/0028.jpg" alt="City Palace, Udaipur, India" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;City Palace, <a href="http://www.nationsillustrated.com/India/Udaipur/index.html">Udaipur</a>, <a href="http://www.nationsillustrated.com/India/">India</a>';
mycontent[29]='<a href="http://www.nationsillustrated.com/picture/3731"><img src="/Random/0029.jpg" alt="Torrechiara castle, north Italy" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;Torrechiara Castle, north <a href="http://www.nationsillustrated.com/Italy/">Italy</a>';
mycontent[30]='<a href="http://www.nationsillustrated.com/picture/4125"><img src="/Random/0030.jpg" alt="San Marco square, Venice, Italy" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;San Marco Square, <a href="http://www.nationsillustrated.com/Italy/Venice/index.html">Venice</a>, <a href="http://www.nationsillustrated.com/Italy/">Italy</a>';
mycontent[31]='<a href="http://www.nationsillustrated.com/picture/4777"><img src="/Random/0031.jpg" alt="Auckland, New Zealand" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;<a href="http://www.nationsillustrated.com/New-Zealand/Auckland/index.html">Auckland</a>, <a href="http://www.nationsillustrated.com/New-Zealand/">New Zealand</a>';
mycontent[32]='<a href="http://www.nationsillustrated.com/picture/4851"><img src="/Random/0032.jpg" alt="Nugget Point, New Zealand" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;Nugget Point, <a href="http://www.nationsillustrated.com/New-Zealand/">New Zealand</a>';
mycontent[33]='<a href="http://www.nationsillustrated.com/picture/4921"><img src="/Random/0033.jpg" alt="New Zealand Landscape" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;<a href="http://www.nationsillustrated.com/New-Zealand/">New Zealand</a> sunset ';
mycontent[34]='<a href="http://www.nationsillustrated.com/picture/1505"><img src="/Random/0034.jpg" alt="Sacré Coeur on a sunny day in spring, Paris, France" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;Sacré Coeur on a sunny day in spring, <a href="http://www.nationsillustrated.com/France/Paris/index.html">Paris</a>, <a href="http://www.nationsillustrated.com/France/">France</a>';
mycontent[35]='<a href="http://www.nationsillustrated.com/picture/7947"><img src="/Random/0035.jpg" alt="Oakville colors, Ontario, Canada" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;<a href="http://www.nationsillustrated.com/Ontario-Canada/Oakville/index.html">Oakville</a> colors, <a href="http://www.nationsillustrated.com/Ontario-Canada/">Ontario</a>, <a href="http://www.nationsillustrated.com/Canada/">Canada</a>';
mycontent[36]='<a href="http://www.nationsillustrated.com/picture/1491"><img src="/Random/0036.jpg" alt="Nyhavn, Copenhagen, Denmark" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;Nyhavn, <a href="http://www.nationsillustrated.com/Denmark/Copenhagen/index.html">Copenhagen</a>, <a href="http://www.nationsillustrated.com/Denmark/">Denmark</a>';
mycontent[37]='<a href="http://www.nationsillustrated.com/picture/921"><img src="/Random/0037.jpg" alt="Sea Storm near Sydney, NSW, Australia" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;Sea storm near <a href="http://www.nationsillustrated.com/New-South-Wales-Australia/Sydney/index.html">Sydney</a>, <a href="http://www.nationsillustrated.com/New-South-Wales-Australia/">NSW</a>, <a href="http://www.nationsillustrated.com/Australia/">Australia</a>';
mycontent[38]='<a href="http://www.nationsillustrated.com/picture/1095"><img src="/Random/0038.jpg" alt="Australia Landscape" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;<a href="Australia">Australia</a> landscape';
mycontent[39]='<a href="http://www.nationsillustrated.com/picture/1157"><img src="/Random/0039.jpg" alt="Nassfeld, Austria" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;<a href="http://www.nationsillustrated.com/Austria/Nassfeld/index.html">Nassfeld</a>, <a href="http://www.nationsillustrated.com/Austria/">Austria</a>';
mycontent[40]='<a href="http://www.nationsillustrated.com/picture/2038"><img src="/Random/0040.jpg" alt="Garibaldi Provincial Park, British Columbia, Canada" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;<a href="http://www.nationsillustrated.com/British-Columbia-Canada/Garibaldi-Provincial-Park/index.html">Garibaldi Provincial Park</a>, <a href="http://www.nationsillustrated.com/British-Columbia-Canada/">British Columbia</a>, <a href="http://www.nationsillustrated.com/Canada/">Canada</a>';
mycontent[41]='<a href="http://www.nationsillustrated.com/picture/1791"><img src="/Random/0041.jpg" alt="Oaxaca, Mexico" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;<a href="http://www.nationsillustrated.com/Mexico/Oaxaca/index.html">Oaxaca</a>, <a href="http://www.nationsillustrated.com/Mexico/">Mexico</a>';
mycontent[42]='<a href="http://www.nationsillustrated.com/picture/2808"><img src="/Random/0042.jpg" alt="Pont Valentra, Cahors, France" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;Pont Valentra, <a href="http://www.nationsillustrated.com/France/Cahors/index.html">Cahors</a>, <a href="http://www.nationsillustrated.com/France/">France</a>';
mycontent[43]='<a href="http://www.nationsillustrated.com/picture/2781"><img src="/Random/0043.jpg" alt="Cliff of Etretat, Normandie, France" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;Cliff of Etretat, <a href="http://www.nationsillustrated.com/France/Normandie/index.html">Normandie</a>, <a href="http://www.nationsillustrated.com/France/">France</a>';
mycontent[44]='<a href="http://www.nationsillustrated.com/picture/1731"><img src="/Random/0044.jpg" alt="London, England, UK" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;<a href="http://www.nationsillustrated.com/England-UK/London/index.html">London</a>, <a href="http://www.nationsillustrated.com/England-UK/">England</a>, <a href="http://www.nationsillustrated.com/UK/">UK</a>';
mycontent[45]='<a href="http://www.nationsillustrated.com/picture/2867"><img src="/Random/0045.jpg" alt="Sacre Coeur, Paris, France" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;Sacre Coeur, <a href="http://www.nationsillustrated.com/France/Paris/index.html">Paris</a>, <a href="http://www.nationsillustrated.com/France/">France</a>';
mycontent[0]='<a href="http://www.nationsillustrated.com/picture/2972"><img src="/Random/0046.jpg" alt="Bundestag - German Parliament Building, Berlin, Germany" width="548" height="300" border="0" hspace="1" vspace="0"></a><br/>&nbsp;&nbsp;Bundestag - German Parliament building, <a href="http://www.nationsillustrated.com/Germany/Berlin/index.html">Berlin</a>, <a href="http://www.nationsillustrated.com/Germany/">Germany</a>'

var ry = Math.floor(Math.random()*mycontent.length);
