<!--

//	Edit history
//-------------------------------------------------------------------------------------------------------
//	Date		by	Reason
//-------------------------------------------------------------------------------------------------------
//	08/08/2001	LaK	First version	
//	10/08/2001	LaK	Added popImage function and tidied createMenu and insertCopy functions
//	12/08/2001	LaK	Re-Jigged menu order slightly


//
//	Setup Variables.
//
var debug=1;
var basket=true;

//
//	Function to create page top and menu.
//
function createMenu() {

	var menuhdr='<TABLE WIDTH="100%" CELLSPACING=0 BORDER=0 CELLPADDING=0 BGCOLOR="#000000"><TR>';

	menuhdr+='<TD ALIGN=LEFT VALIGN=TOP><IMG SRC="images/tl.gif" WIDTH=11 HEIGHT=11 BORDER=0></TD>';
	menuhdr+='<TD ALIGN=CENTER><FONT CLASS=tiny>&nbsp;<FONT></TD>';
	menuhdr+='<TD ALIGN=RIGHT VALIGN=TOP><IMG SRC="images/tr.gif" WIDTH=11 HEIGHT=11 BORDER=0></TD>';
	menuhdr+='</TR><TR><TD>&nbsp;</TD><TD><TABLE WIDTH="95%" CELLSPACING=0 BORDER=0 CELLPADDING=0 ';
	menuhdr+='BGCOLOR="#000000"><TR><TD ALIGN=LEFT VALIGN=TOP WIDTH=150>';

	var menu='<A HREF="index.html" CLASS=menu>Home</A><BR>';

	if (basket) {
		menu+='<A HREF="#" CLASS=menu onclick="window.open(\'https://www.paypal.com/cart/display=1&business=Debbie.Woolf%40btopenworld.com\',\'cartwin\',\'width=600,height=400,scrollbars,location,resizable,status\');">View Basket</A><BR>';
	}

	menu+='<A HREF="search.html" CLASS=menu>Search Shop</A><BR>';
	menu+='<A HREF="shop.html" CLASS=menu>Browse Shop</A><BR>';
	menu+='<A HREF="shop.html?rock=recent" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;Recent Additions</A><BR>';
	menu+='<A HREF="shop.html?rock=others" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;All Rocks</A><BR>';
	menu+='<A HREF="shop.html?rock=sold" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;Sold</A><BR>';


//Add shop pages to menu below, just copy a line below and change the name as marked below
//Try to keep em in alphabetical order as it looks neater..
//                                     ________                                        _________
	menu+='<A HREF="shop.html?rock=ammonite" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;Ammonites</A><BR>';
	menu+='<A HREF="shop.html?rock=aquamarine" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;Aquamarine</A><BR>';
	menu+='<A HREF="shop.html?rock=boltwoodite" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;Boltwoodite</A><BR>';
	menu+='<A HREF="shop.html?rock=dioptase" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;Dioptase</A><BR>';
	menu+='<A HREF="shop.html?rock=garnet" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;Garnet</A><BR>';
	menu+='<A HREF="shop.html?rock=pendant" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;Hippy-Bling</A><BR>';
	menu+='<A HREF="shop.html?rock=jeremejevite" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;Jeremejevite</A><BR>';
	menu+='<A HREF="shop.html?rock=labradorite" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;Labradorite</A><BR>';
	menu+='<A HREF="shop.html?rock=malachite" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;Malachite</A><BR>';
	menu+='<A HREF="shop.html?rock=pendant" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;Pendant</A><BR>';
	menu+='<A HREF="shop.html?rock=poldervaartite" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;Poldervaartite</A><BR>';
	menu+='<A HREF="shop.html?rock=quartz" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;Quartz</A><BR>';
	menu+='<A HREF="shop.html?rock=smithsonite" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;Smithsonite</A><BR>';
	menu+='<A HREF="shop.html?rock=tourmaline" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;Tourmaline</A><BR>';

	menu+='<A HREF="http://www.ebay.com" CLASS=menu TARGET="_blank">eBay</A><BR>';
	menu+='<A HREF="http://cgi.ebay.com/aw-cgi/eBayISAPI.dll?ViewListedItems&userid=maplesden&sort=3&since=-1&page=1&rows=0" CLASS=submenu TARGET="_blank">&nbsp;&nbsp;&nbsp;&nbsp;Our Auctions</A><BR>';
	

	menu+='<A HREF="gallery.html" CLASS=menu>Gallery</A><BR>';
	menu+='<A HREF="galsascenery.html" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;S-African Scenery</A><BR>';
	menu+='<A HREF="galukscenery.html" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;British Scenery</A><BR>';
	menu+='<A HREF="galsawildlife.html" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;S-African Wildlife</A><BR>';
	menu+='<A HREF="galfriends.html" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;Rogue\'s Gallery</A><BR>';
	menu+='<A HREF="galother.html" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;Other Pictures</A><BR>';

	menu+='<A HREF="mingal.html" CLASS=menu>Mineral Gallery</A><BR>';
	menu+='<A HREF="ragal.html" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;Recent Additions</A><BR>';
	menu+='<A HREF="cugal.html" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;Current Items</A><BR>';
	menu+='<A HREF="sogal.html" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;Sold Items</A><BR>';
	

	menu+='<A HREF="faq.html" CLASS=menu>Help</A><BR>';
	menu+='<A HREF="about.html" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;About us</A><BR>';
	menu+='<A HREF="contact.html" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;Contact us</A><BR>';
	menu+='<A HREF="feedback.html" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;Leave Feedback</A><BR>';
	menu+='<A HREF="privacy.html" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;Privacy Policy</A><BR>';
	menu+='<A HREF="copyright.html" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;Copyright</A><BR>';
	menu+='<A HREF="#" onClick="bookMarkUs()" CLASS=submenu>&nbsp;&nbsp;&nbsp;&nbsp;Add to Favorites</A><BR>';

	var menutlr='</TD><TD ALIGN=CENTER VALIGN=TOP BGCOLOR="#000000">';
	
	var fullmenu=menuhdr+menu+menutlr;

	op(fullmenu);

}

//
//	Function to insert copyright text and page bottom.
//
function insertCopy() {

	var today=new Date();
	var thisYr=today.getYear();

	var msg="</TD></TR></TABLE></TD><TD>&nbsp;</TD></TR><TR>";
	msg+="<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC='images/bl.gif' WIDTH=11 HEIGHT=11 BORDER=0>";
	msg+="</TD><TD ALIGN=CENTER><FONT CLASS=tiny><A HREF='copyright.html'>Copyright</A> &copy; 1999-"+thisYr;
	msg+=" Steiner-Collectables and L4K-Design.com. All Rights Reserved.";
	msg+="</FONT></TD><TD ALIGN=RIGHT VALIGN=BOTTOM><IMG SRC='images/br.gif' ";
	msg+="WIDTH=11 HEIGHT=11 BORDER=0></TD></TR></TABLE>";

	op(msg);

}

//
//	Function to open full sized images in their own popup windows.
//
function popImage(which,size) {

	var winName=which.substring(which.lastIndexOf("/")+1,which.indexOf("."));
	var popHtml="<html><head><TITLE>Click the Pic to Close</TITLE></head><body bgcolor=black>";
	popHtml+="<A HREF='javascript:window.close();'><IMG BORDER=0 ALT='Click to Close' SRC='" + which + "'></A>";
	popHtml+="</BODY></HTML>";
	popup = window.open("",winName,size)
	with (popup.document) {

		write(popHtml)
	}
}


//
//	Functions to substitute 'op' and 'opl' for document.write (and writeln) to save typing
//
function op(what) { 
	document.write(what);
}
function opl(what) {
	document.writeln(what);
}

//
//	Function to add items to shopping basket.
//
function addToBasket(which,price) {
	var cart="https://www.paypal.com/cart/add=1&business=Debbie.Woolf%40btopenworld.com&item_name="+which+"&item_number="+which+"&amount="+price+".00&return=http%3A//www.steiner-collectables.com/paysuccess.html&cancel_return=http%3A//www.steiner-collectables.com/paycancel.html";
	window.open(cart,'cartwin','width=600,height=400,scrollbars,location,resizable,status');
}



//
//	Function to add page to bookmarks.
//
function bookMarkUs() {
	if (document.all) {
		var bookmarkurl="http://www.steiner-collectables.com"
		var bookmarktitle="S t e i n e r ' s    R o c k s h o p"
		window.external.AddFavorite(bookmarkurl,bookmarktitle)
	}
}



//
-->
