function CurrencyPopup(QueryString)
	{
	CurrencyWindow = window.open ('', 'CurrencyWindow', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,height=170,width=600')
	CurrencyWindow.focus()
	CurrencyWindow.location.href = 'http://www.xe.com/ecc/input.cgi?Template=sw&'+QueryString
	}


function addbookmark()
	{
	if (document.all)
	window.external.AddFavorite(location.href,document.title);
	else
	alert("Netscape/FireFox/Mozilla users bookmark the page by hitting Ctrl-D\nOpera users bookmark the page by hitting Ctrl-T");
	}

function MyPhotoViewer(cPhotoFile)
	{
	window.open("detailphoto.asp?file="+cPhotoFile,"myphotoviewer","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,fullscreen,resizable=yes");
	}

function previousphoto()
	{ 
		if(document.images) { 
			currentphoto--; 
			if(currentphoto<1) currentphoto=maxphotos; 
			document.images['photoview'].src=photo[currentphoto].src; 

			if (MsIExplorer)
			{
				document.all['detail_phototext'].innerText = Imagetext[currentphoto]; 
			}
			else
			{
				document.getElementById('detail_phototext').removeChild(document.getElementById('detail_phototext').childNodes[0]);
				var newText=document.createTextNode(Imagetext[currentphoto]);
				document.getElementById('detail_phototext').appendChild(newText);							
			}							

		} 
	} 

function nextphoto()
	{ 
		if(document.images) { 
			currentphoto++; 
			if(currentphoto>maxphotos) currentphoto=1; 
			document.images['photoview'].src=photo[currentphoto].src; 						

			if (MsIExplorer)
			{
				document.all['detail_phototext'].innerText = Imagetext[currentphoto]; 
			}
			else
			{
				document.getElementById('detail_phototext').removeChild(document.getElementById('detail_phototext').childNodes[0]);
				var newText=document.createTextNode(Imagetext[currentphoto]);
				document.getElementById('detail_phototext').appendChild(newText);							
			}							


		}
	}

function showiconmousenone(pImageNo, pImageSrc)
	{
		
		if (MsIExplorer)
		{
			document.all['divMenuDetail'].innerText = "Move your mouse over the icon for a description of its action when you click it"; 
		}
		else
		{

			document.getElementById('divMenuDetail').removeChild(document.getElementById('divMenuDetail').childNodes[0]);
			var newText=document.createTextNode("Move your mouse over the icon for a description of its action when you click it");
			document.getElementById('divMenuDetail').appendChild(newText);							
		}						
		
		switch (pImageNo)
		{
		case 0:
		pImageSrc.src = "images/icon_back.gif"
		break;
		case 1:
		pImageSrc.src = "images/icon_map.gif"
		break;																	
		case 2:
		pImageSrc.src = "images/icon_aerial.gif"
		break;																	
		case 3:
		pImageSrc.src = "images/icon_localinfo.gif"
		break;																	
		case 4:
		pImageSrc.src = "images/icon_print.gif"
		break;	
		case 5:
		pImageSrc.src = "images/icon_pdf.gif"
		break;	
		case 6:
		pImageSrc.src = "images/icon_email.gif"
		break;	
		case 7:
		pImageSrc.src = "images/icon_friend.gif"
		break;	
		case 8:
		pImageSrc.src = "images/icon_virtual.gif"
		break;
		case 9:
		pImageSrc.src = "images/icon_register.gif"
		break;
		case 10:
		pImageSrc.src = "images/icon_currency.gif"
		break;
		case 11:
		pImageSrc.src = "images/icon_favourite.gif"
		break;
		}
	}

function showiconmouseover(pImageNo, pImageSrc)
	{
		switch (pImageNo)
		{
		case 0:
		pImageSrc.src = "images/icon_back_over.gif"
		if (MsIExplorer)
		{
			document.all['divMenuDetail'].innerText = "Go back to the search results"; 
		}
		else
		{

			document.getElementById('divMenuDetail').removeChild(document.getElementById('divMenuDetail').childNodes[0]);
			var newText=document.createTextNode("Go back to the search results");
			document.getElementById('divMenuDetail').appendChild(newText);							
		}							
		
		break;
		case 1:
		pImageSrc.src = "images/icon_map_over.gif"
		
		if (MsIExplorer)
		{
			document.all['divMenuDetail'].innerText = "View a location map of the property"; 
		}
		else
		{

			document.getElementById('divMenuDetail').removeChild(document.getElementById('divMenuDetail').childNodes[0]);
			var newText=document.createTextNode("View a location map of the property");
			document.getElementById('divMenuDetail').appendChild(newText);							
		}							
	
		break;																	
		case 2:
		pImageSrc.src = "images/icon_aerial_over.gif"
		
		if (MsIExplorer)
		{
			document.all['divMenuDetail'].innerText = "View an aerial photo of the location of the property"; 
		}
		else
		{

			document.getElementById('divMenuDetail').removeChild(document.getElementById('divMenuDetail').childNodes[0]);
			var newText=document.createTextNode("View an aerial photo of the location of the property");
			document.getElementById('divMenuDetail').appendChild(newText);							
		}							
	
		break;
		case 3:
		pImageSrc.src = "images/icon_localinfo_over.gif"
		
		if (MsIExplorer)
		{
			document.all['divMenuDetail'].innerText = "View information about the local area for this property"; 
		}
		else
		{

			document.getElementById('divMenuDetail').removeChild(document.getElementById('divMenuDetail').childNodes[0]);
			var newText=document.createTextNode("View information about the local area for this property");
			document.getElementById('divMenuDetail').appendChild(newText);							
		}							
		
		break;	
		case 4:
		pImageSrc.src = "images/icon_print_over.gif"
		
		if (MsIExplorer)
		{
			document.all['divMenuDetail'].innerText = "View a print friendly version of this page"; 
		}
		else
		{

			document.getElementById('divMenuDetail').removeChild(document.getElementById('divMenuDetail').childNodes[0]);
			var newText=document.createTextNode("View a print friendly version of this page");
			document.getElementById('divMenuDetail').appendChild(newText);							
		}							
		
		break;	
		case 5:
		pImageSrc.src = "images/icon_pdf_over.gif"
		
		if (MsIExplorer)
		{
			document.all['divMenuDetail'].innerText = "View/Download/Print Full Particulars in PDF format"; 
		}
		else
		{

			document.getElementById('divMenuDetail').removeChild(document.getElementById('divMenuDetail').childNodes[0]);
			var newText=document.createTextNode("View/Download/Print Full Particulars in PDF format");
			document.getElementById('divMenuDetail').appendChild(newText);							
		}							
		
		break;	
		case 6:
		pImageSrc.src = "images/icon_email_over.gif"
		
		if (MsIExplorer)
		{
			document.all['divMenuDetail'].innerText = "Contact the agent regarding this property"; 
		}
		else
		{

			document.getElementById('divMenuDetail').removeChild(document.getElementById('divMenuDetail').childNodes[0]);
			var newText=document.createTextNode("Contact the agent regarding this property");
			document.getElementById('divMenuDetail').appendChild(newText);							
		}							
		
		break;	
		case 7:
		pImageSrc.src = "images/icon_friend_over.gif"
		
		if (MsIExplorer)
		{
			document.all['divMenuDetail'].innerText = "Email this property to a friend"; 
		}
		else
		{

			document.getElementById('divMenuDetail').removeChild(document.getElementById('divMenuDetail').childNodes[0]);
			var newText=document.createTextNode("Email this property to a friend");
			document.getElementById('divMenuDetail').appendChild(newText);							
		}							
		
		break;							
		case 8:
		pImageSrc.src = "images/icon_virtual_over.gif"
		
		if (MsIExplorer)
		{
			document.all['divMenuDetail'].innerText = "Take a virtual tour of this property"; 
		}
		else
		{

			document.getElementById('divMenuDetail').removeChild(document.getElementById('divMenuDetail').childNodes[0]);
			var newText=document.createTextNode("Take a virtual tour of this property");
			document.getElementById('divMenuDetail').appendChild(newText);							
		}							

		break;							
		case 9:
		pImageSrc.src = "images/icon_register_over.gif"
		
		if (MsIExplorer)
		{
			document.all['divMenuDetail'].innerText = "Register with us for mailing and property updates"; 
		}
		else
		{

			document.getElementById('divMenuDetail').removeChild(document.getElementById('divMenuDetail').childNodes[0]);
			var newText=document.createTextNode("Register with us for mailing and property updates");
			document.getElementById('divMenuDetail').appendChild(newText);							
		}							
		
		break;
		case 10:
		pImageSrc.src = "images/icon_currency_over.gif"
		
		if (MsIExplorer)
		{
			document.all['divMenuDetail'].innerText = "Convert the price of this property into UK pounds sterling at current rate"; 
		}
		else
		{

			document.getElementById('divMenuDetail').removeChild(document.getElementById('divMenuDetail').childNodes[0]);
			var newText=document.createTextNode("Convert the price of this property into UK pounds sterling at current rate");
			document.getElementById('divMenuDetail').appendChild(newText);							
		}							
		
		break;
		case 11:
		pImageSrc.src = "images/icon_favourite_over.gif"
		
		if (MsIExplorer)
		{
			document.all['divMenuDetail'].innerText = "Add this property card to your favourites or bookmarks"; 
		}
		else
		{

			document.getElementById('divMenuDetail').removeChild(document.getElementById('divMenuDetail').childNodes[0]);
			var newText=document.createTextNode("Add this property card to your favourites or bookmarks");
			document.getElementById('divMenuDetail').appendChild(newText);							
		}							
		
		break;
		}
	}					


