
var doPopUpX = (screen.width/2)-275;
var doPopUpY = (screen.height/2)-140;
var pos = "left="+doPopUpX+",top="+doPopUpY;

function doPopUp(){
doPopUpWindow = window.open("currency.htm","currency","width=550,height=280,"+pos);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


// toggle stuff by ID
function toggle (targetId) {
	if (document.getElementById) {
			var target = document.getElementById(targetId);
			
			if (target.style.display == "none") {
					target.style.display = "block";
			} else {
					target.style.display = "none";
			}
	}	
}

/* ------------- Show/Hide Walking Tour Content ------------- */

function toggleHide (targetId) {
	if ( (document.getElementById) && (document.getElementsByTagName) ) {
			
		var elements = document.getElementsByTagName("div");
		var target = document.getElementById(targetId);
		
		for (var i=0; i < elements.length; i++) {
		
		// hide all elements apart the targeted element
		if ( (elements[i].className.match("toggle")) && (elements[i] != target) ) {
						elements[i].style.display = "none";
						//elements[i].style.height = "50%";
						elements[i].style.overflow = "visible";
				}
		}	
		
		// the targeted element
		if (elements[i] = target) 
		{
				if ( (target.style.display == "none") || (target.style.display == "") )	{
					target.style.display = "block";		
					//elements[i].style.height = "50%";
					elements[i].style.overflow = "visible";
				} else {
						target.style.display = "none";
				}
		}
		
	}	else return false;
	
}



/* ------------- Image Popups ------------- */

PositionX = 0;
PositionY = 0;

// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)

defaultWidth  = 470;
defaultHeight = 650;

// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows

var AutoClose = true;

// Do not edit below this line...
// ================================
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=300,height=150,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading.... Please Wait</title><meta http-equiv="imagetoolbar" content="no" /><style>body{margin:0px; padding:0px;} img{margin:0px; padding:0px; border:none;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
writeln('width=100-(document.body.clientWidth-document.images[0].width);');
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=003366 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=003366 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="George" src='+imageURL+' style="display:block; margin:0px; padding:0px; border:none;" alt="'+imageTitle+'" title="click anywhere to close this window" onclick="javascript:window.close();"></body></html>');
close();		
}}

