function LmOver(elem, clr)
 {elem.style.backgroundColor = clr;
 elem.children.tags('A')[0].style.color = "#FFFFFF";
 elem.style.cursor = 'hand'}


function LmOut(elem, clr)
 {elem.style.backgroundColor = clr;
 elem.children.tags('A')[0].style.color = "#000099";}


function LmDown(elem, clr)
 {elem.style.backgroundColor = clr;
 elem.children.tags('A')[0].style.color = "#000099";}


function LmUp(path)
 {location.href = path;}


function convert_currency(amount)
{
	if (amount == "0")
		alert("The currency conversion facility is only available when a price is specified.")
	else {
		  var w = window.open("",//URL (none specified)
		                      "conversion", //Name
                              "resizable,status,width=625,height=450"); //Features

		  w.moveTo(50,200);

		  var d = w.document;		  
		  
		  d.write('<H1 ALIGN=CENTER>The Temple Gallery </H1>');
          d.write('<H4 ALIGN=CENTER>(This currency conversion facility is for guidance only)</H4><BR><BR>');
          d.write('<!-- XE.com Universal Currency Converter(tm) Input Page Starts -->');
		  d.write('<!-- Copyright (c) 2001 XE.com. Unauthorized use prohibited. -->');
		  d.write('<!-- Input Template Version 3.05 -->');
		  d.write('<!-- You may reformat this page section, but do not delete lines or variables that start with an asterisk -->');
		  d.write('<FORM METHOD=POST ACTION="http://www.xe.com/ucc/convert.cgi">');
          d.write('<INPUT TYPE="hidden" NAME=Header VALUE="[HTML][HEAD][TITLE]The Temple Gallery - specialists in Russian icons[/TITLE]');
          d.write('[/HEAD][BODY]');
		  d.write('[H1 ALIGN=CENTER]The Temple Gallery [/H1]');
          d.write('[H4 ALIGN=CENTER](This currency conversion facility is for guidance only)[/H4][BR][BR]"');          
          d.write('<INPUT TYPE="hidden" NAME=Footer VALUE="[BR][BR][/BODY][/HTML]"');          
		  d.write('<P><TABLE WIDTH=100% CELLPADDING=1 CELLSPACING=0 BORDER=0  BGCOLOR=#000000><TR><TD ALIGN=CENTER>');
          d.write('<TABLE WIDTH=100% CELLPADDING=3 CELLSPACING=1 BORDER=0>');
		  d.write('<TR VALIGN=TOP ALIGN=CENTER>');
          d.write('<TD BGCOLOR=#FFF090><B>');
		  d.write('<FONT FACE="Arial,Helvetica">');
		  d.write('<FONT SIZE=+1>xe.com&nbsp;</FONT>');
		  d.write('Universal Currency Converter&#153;');
		  d.write('</FONT>');
		  d.write('</B></TD>');
          d.write('</TR>');
          d.write('<TR VALIGN=TOP ALIGN=LEFT>');
          d.write('<TD VALIGN=MIDDLE ALIGN=CENTER BGCOLOR=#FFFFFF>');
		  d.write('<TABLE CELLSPACING=3 CELLPADDING=2 BORDER=0 WIDTH=100%><TR>');
		  d.write('<TD><FONT FACE="Arial,Helvetica">');
          
          d.write('<B>Convert this amount</B><BR>');
          d.write('</FONT></TD>');
          d.write('<TD><FONT FACE="Arial,Helvetica">');
          
          d.write('<B>of this type of currency</B><BR>');
          d.write('</FONT></TD>');
          d.write('<TD><FONT FACE="Arial,Helvetica">');
          
          d.write('<B>into this type of currency.</B><BR>');
          d.write('</FONT></TD>');
          d.write('</TR>');
          d.write('<TR VALIGN=TOP ALIGN=LEFT>');
          d.write('<TD><FONT FACE="Arial,Helvetica">');
          d.write('<INPUT TYPE="text" NAME="Amount" VALUE="' + amount +'" SIZE=10><BR>');
          
          d.write('</FONT></TD>');
          d.write('<TD><FONT FACE="Arial,Helvetica" SIZE=-1>');
          d.write('<SELECT NAME="From" SIZE=5>      ');
          d.write('<OPTION VALUE="GBP" SELECTED>GBP United Kingdom Pounds</OPTION>      ');
          d.write('</SELECT><BR>');
          
          d.write('</FONT></TD>');
          d.write('<TD><FONT FACE="Arial,Helvetica" SIZE=-1>');
          d.write('<SELECT NAME="To" SIZE=5>');
          d.write('<OPTION VALUE="USD" SELECTED>USD United States Dollars</OPTION>');
          d.write('<OPTION VALUE="EUR">EUR Euro</OPTION>     ');
          d.write('</SELECT><BR>');
          
          d.write('</FONT></TD>');
          d.write('</TR>');
          d.write('<TR ALIGN=CENTER>');
          d.write('<TD COLSPAN=3 ALIGN=CENTER><FONT FACE="Arial,Helvetica,sans-serif">');
          
          d.write('<INPUT VALUE="Click Here to Perform Currency Conversion" type=submit>');
          d.write('</FONT></TD>');
          d.write('</TR>');
          d.write('</TD></TR></TABLE>');
          d.write('<TR ALIGN=CENTER>');
          d.write('<TD BGCOLOR=#F0F0F0 ALIGN=CENTER><FONT FACE="Arial,Helvetica,sans-serif" SIZE=-1 COLOR=#808080>');
          d.write('<!-- Important Section Start -->');
          d.write('<!-- ALL of the contents of this section are required under the usage agreement! -->');          
          d.write('<FONT COLOR=#808080><B>Universal Currency Converter</B> service and trade mark under license from <B>xe.com</B>.');
          d.write('<A HREF="http://www.xe.com/legal/" style="color:#808080;">Terms of Use</A>');
          d.write('<!-- Important Section Ends -->');
          d.write('</FONT></TD>');
          d.write('</TR>');
          d.write('</TABLE>');
          d.write('</TD></TR></TABLE></P>');
          d.write('<!-- XE.com Universal Currency Converter(tm) Input Page Ends -->');
         

		  // Output an HTML document, incorporating the currency conversion input form		  


			
          d.close();	
	}					
}

function convert_to_imperial(cms)
{
	//alert("Converting " + cms);	
	return Math.round((cms * 0.3937) * 100) / 100;	
}

function convert_size_0(d1)
{
	//Dummy function
}


function convert_size_1(d1)
{	
	//alert("Converting " + d1 );

	ins1 = convert_to_imperial(d1);	

	var str = "Metric dimension " + d1  + " cm  =  Imperial " + ins1 + " in.";
	//alert(str);

	var w = window.open("",//URL (none specified)
	                      "conversion", //Name
                          "resizable,status=no,width=700,height=220"); //Features
	w.moveTo(100,100);

	var d = w.document;		  
		  
	d.write('<H1 ALIGN=CENTER>The Temple Gallery </H1>');
    d.write('<H4 ALIGN=CENTER>Metric to imperial size conversion:-</H4>');
	d.write('<H4 ALIGN=CENTER>' + str + '</H4>');

	
	d.close();
}

function convert_size_2(d1,d2)
{	
	//alert("Converting " + d1 + " " + d2);

	ins1 = convert_to_imperial(d1);
	ins2 = convert_to_imperial(d2);

	var str = "Metric dimensions " + d1 + " x " + d2 + " cm  =  Imperial " + ins1 + " x " + ins2 + " in.";
	//alert(str);

	var w = window.open("",//URL (none specified)
	                      "conversion", //Name
                          "resizable,status=no,width=790,height=220"); //Features
	w.moveTo(100,100);

	var d = w.document;		  
		  
	d.write('<H1 ALIGN=CENTER>The Temple Gallery </H1>');
    d.write('<H4 ALIGN=CENTER>Metric to imperial size conversion:-</H4>');
	d.write('<H4 ALIGN=CENTER>' + str + '</H4>');

	
	d.close();
}

function say_ecommerce_unavailable()
{	
	//Comment;

	var w = window.open("",//URL (none specified)
	                      "notification", //Name
                          "resizable,status=no,width=780,height=300"); //Features
	w.moveTo(100,100);

	var d = w.document;		  
		  
	d.write('<H1 ALIGN=CENTER>The Temple Gallery </H1>');
    d.write('<P ALIGN=CENTER>Our online ordering system will be available in mid-June 2005.</P>');
	d.write('<P ALIGN=CENTER>If you wish to place an order before then, please telephone us on <br>00 44 (0)207 7727 3809 with your credit card details.</P>');

	
	d.close();
}

function special_notice_1()
{	
	//Comment;

	var w = window.open("",//URL (none specified)
	                      "notification", //Name
                          "resizable,status=no,width=700,height=250"); //Features
	w.moveTo(100,100);

	var d = w.document;		  
	
	d.bgcolor="#fff5d2";	  
	d.write('<H2 ALIGN=CENTER>The Temple Gallery - Special Notice</H2>');
       	d.write('<P ALIGN=CENTER>We discovered this to be an icon stolen in 1994 from the Vologda Museum in Russia. We therefore immediately informed the relevant authorities, and the icon has now been returned to its owner.</P>');
	d.close();
}
