//Script created by Ronny Drappier, http://sipreal.com
//Visit http://javascriptkit.com for this script
function footer(){

	document.write('<HR WIDTH="100%" SIZE="1" COLOR="#000000" ALIGN="CENTER">');
	document.write('<TABLE ALIGN="CENTER" BORDER="0" CELLSPACING="0" CELLPADDING="0"> ');
	document.write('<TR> ');
	document.write('<TD ALIGN="CENTER" VALIGN="TOP">');
	document.write('<A HREF="index.html" TARGET="_top">');
	document.write('<IMG SRC="pics/lls-gold.gif" WIDTH="39" HEIGHT="35" BORDER="0" ALT="Home Page">');
	document.write('<BR><FONT STYLE="font-size: x-small; color: black">Home Page</FONT></A></TD> ');
	document.write('<TD ALIGN="CENTER" VALIGN="TOP"><FONT SIZE="+2"');
	document.write('STYLE="font-weight: bold"> Llyn L. Strelau, Jewels by Design Ltd.</FONT><BR>');
	today=new Date();
    	y0=today.getFullYear();
  	document.write('Copyright &copy; 1999-');
  	document.write(y0);
  	document.write('</TD>'); 
	document.write('<TD ALIGN="CENTER" VALIGN="TOP" >');
	document.write('<A HREF="mailto:designer@jewelsbydesign.com">');
	document.write('<IMG SRC="pics/lls-gold.gif" WIDTH="39" HEIGHT="35" BORDER="0"');
	document.write(' ALT="Contact Us"><BR><FONT STYLE="font-size: x-small; color: black">Contact Us</FONT></A></TD> ');
	document.write('</TR> ');
	 document.write('</TABLE> ');	
	document.close();		
}
//----------------------------------
/*
Disable right click script II (on images)- By Dynamicdrive.com
For full source, Terms of service, and 100s DTHML scripts
Visit http://www.dynamicdrive.com
*/
var clickmessage="Right click disabled on images!"
//FUNCTION disableclick(e)
function disableclick(e) {
	if (document.all) {
		if (event.button==2||event.button==3) {
			if (event.srcElement.tagName=="IMG"){
				alert(clickmessage);
				return false;
			}
		}
	}
	else if (document.layers) {
		if (e.which == 3) {
			alert(clickmessage);
			return false;
		}
	}
	else if (document.getElementById){
		if (e.which==3&&e.target.tagName=="IMG"){
			alert(clickmessage)
			return false
		}
	}
}

//---------------------------------------------------------
function associateimages(){
	for(i=0;i<document.images.length;i++)
	document.images[i].onmousedown=disableclick;
}

	if (document.all)
		document.onmousedown=disableclick
	else if (document.getElementById)
		document.onmouseup=disableclick
	else if (document.layers)
		associateimages()

//-----------------------------------------------
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

//-----------------------------------------------------------------
function preloadImages(imagename) {
	if (document.images) {
		image1 = newImage("imagename");
							
	}
}

//--------------------------------------------------------------


//vers = vers.substring(0,1); // or 0,4  could return 4.5 instead of just 4

function mOvr(src,clrOver){
if (!src.contains(event.fromElement)){ 
		src.style.cursor = 'hand'; 
		src.bgColor = clrOver; 
	} 
}

//--------------------------------------------------------------

function mOut(src,clrIn)
{if (!src.contains(event.toElement)){ 
		src.style.cursor = 'default'; 
		src.bgColor = clrIn; 
	} 
}

//--------------------------------------------------------------

function mClk(src) { 
if(event.srcElement.tagName=='TD')
{ src.children.tags('A')[0].click();}
}

//--------------------------------------------------------------

var title1='';
var caption1='';
//---------------------------------------------------------------------
function showbigimage(url, title, caption) {
     
    foto1= new Image();
title1=title;
caption1=caption;
   foto1.onload=onImageLoaded;
  foto1.onerror=ImageFail;
    foto1.src=(url);
}
//--------------------------------------------
function ImageFail() {
 //  alert("The following image failed to load, probably a broken link:\n" +this.src+ "\nPlease contact the webmaster of the site you are visiting about this.  The program will skip this file now.");
alert("The Large Image was not found.\n Please try again later.");
} 

//---------------------------------------------------------------------
function onImageLoaded() {
     var bigpicWin = null;
    if (!bigpicWin || bigpicWin.closed)
  {	 
//	 foto1= new Image();
 //   foto1.src=(url);
//alert(this.width);
//  if((foto1.width!=0)&&(foto1.height!=0)){
//     imgwidth=foto1.width+20;     
 //    imgheight=foto1.height+150;
// } 
   //  imgwidth=320;    
    // imgheight=380;	 
     imgwidth=this.width+20;     
     imgheight=this.height+150;
    usrwidth = screen.width+10;
    usrheight = screen.height;

<!-- determine where to position new window on centre of screen -->
    var X = (usrwidth - imgwidth) / 2;
    var Y = (usrheight - imgheight) / 2;

    properties = "toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,width="+imgwidth+",height="+imgheight+",";

   checkie = navigator.appName.indexOf("icrosoft");
     if (checkie == -1){
       properties = properties+"screenX="+X+",screenY="+Y;
     }
     else {
       properties = properties+"left="+X+",top="+Y;
     }

    bigpicWin = window.open('','bigpicWin',properties);

    bigpicWin.document.open();
    bigpicWin.document.write(' <HTML><HEAD> ');
    bigpicWin.document.write(' <TITLE>'+title1+'</TITLE> ');
    bigpicWin.document.write(' </HEAD> ');
    bigpicWin.document.write(' <BODY Text="#FFCC00" bgcolor="#2B3700" MARGINWIDTH="0" MARGINHEIGHT="0" LEFTMARGIN="0" TOPMARGIN="0" BOTTOMMARGIN="0" ');
 	 bigpicWin.document.write(' ONMOUSEDOWN="{{if (event.button==2||event.button==3) {alert(\'Right Mouse button disabled\');return false;}}}" ');
	 bigpicWin.document.write('  > ');
    bigpicWin.document.write(' <CENTER> ');
    bigpicWin.document.write('<TABLE VALIGN="TOP" COLS="4" ALIGN="CENTER" WIDTH="100%" Height="100%" ');
	 bigpicWin.document.write('  > ');
    bigpicWin.document.write(' <TR ALIGN="CENTER" VALIGN="MIDDLE"> ');
	 bigpicWin.document.write(' <TD BGCOLOR="#2B3700">	');	 
	 bigpicWin.document.write(' <IMG SRC="'+this.src+'" HSPACE="0" VSPACE="0" BORDER="1" GALLERYIMG="no" ');
	 bigpicWin.document.write('  > ');
	 bigpicWin.document.write(' </TD> </TR> ');
    bigpicWin.document.write(' <TR ALIGN="CENTER" VALIGN="MIDDLE"> ');
	 bigpicWin.document.write(' <TD BGCOLOR="#2B3700">	');	
    bigpicWin.document.write(caption1); 
	 bigpicWin.document.write(' </TD> </TR> ');
    bigpicWin.document.write(' <TR ALIGN="CENTER" VALIGN="MIDDLE"> ');
	 bigpicWin.document.write(' <TD BGCOLOR="#2B3700">	');	  
    bigpicWin.document.write(' <form id=form1 name=form1>  '); 
    bigpicWin.document.write(' <input type="button" name="Close" onClick="self.close()" value=" Close Window "> ');
    bigpicWin.document.write(' </form> ');
	 bigpicWin.document.write(' </TD> </TR> </TABLE> ');	 
	 bigpicWin.document.write('</BODY>');
    bigpicWin.document.write('</HTML>');
    bigpicWin.document.close();
    bigpicWin.focus();
  }
  else
  {
    bigpicWin.focus();
  }
}


// 		<a onclick="zoomBox(event,this,330,331,200,100);return false" //                href="http://www.anotherhole.com/Shop/sunshop/images/products/big/BigHorseShoes.jpg"><img //      src="http://www.anotherhole.com/Shop/sunshop/images/classic/zoom.gif" border="0"></a><br>
	
var maxW,maxH,fromX,fromY,toX,toY,adjX,adjY,zBox,zStep=0,zLink,zNew;

function zoomBox(evt,zlink,maxw,maxh,tox,toy) {
	if (arguments.length > 2) zNew=1;
	scrollH=(window.pageYOffset!=null)?window.pageYOffset:document.body.scrollTop;
	maxW=maxw?maxw:window.innerWidth?innerWidth:document.body.clientWidth;
	maxH=maxh?maxh:window.innerHeight?innerHeight:document.body.clientHeight;
	toX=tox?tox:0;
	toY=(toy?toy:0)+scrollH;
	fromX=evt.pageX?evt.pageX:evt.clientX;
	fromY=(evt.pageY?evt.pageY:evt.clientY)+(document.all?scrollH:0);
	adjX=toX+evt.screenX-fromX;
	adjY=toY+evt.screenY-fromY;
	if (document.createElement && document.body.appendChild && !zBox) {
		zBox=document.createElement("div");
		zBox.style.position="absolute";
		document.body.appendChild(zBox);
	} else if (document.all && !zBox) {
		document.all[document.all.length-1].outerHTML+="<div id=zBoxDiv style=position:absolute></div>";
		zBox=document.all.zBoxDiv;
	} else if (document.layers && !zBox) {
		zBox=new Layer(maxW);
		zBox.style=zBox;
	}
	zLink=zlink;
	doZoom();
}

function doZoom() {
zStep+=1;
zPct=(10-zStep)/10
	if (document.layers) {
		zBox.moveTo(toX+zPct*(fromX-toX),toY+zPct*(fromY-toY));
		zBox.document.open();
		zBox.document.write("<table width="+maxW*(1-zPct)+" height="+maxH*(1-zPct)+" border=2 cellspacing=0><tr><td></td></tr></table>");
		zBox.document.close();
		} else {
                                           
		zBox.style.border="2px solid #009900";
		zBox.style.left=toX+zPct*(fromX-toX);
		zBox.style.top=toY+zPct*(fromY-toY);
		zBox.style.width=maxW*(1-zPct);
		zBox.style.height=maxH*(1-zPct);
	}
	zBox.style.visibility="visible";
	if (zStep < 10) setTimeout("doZoom("+fromX+","+fromY+","+toX+","+toY+")",30);
	else {
		zBox.style.visibility="hidden";
		zStep=0;
		if (zLink && !zNew) location.href=zLink.href;
		else if (zLink && zNew) {
			var w=window.open(zLink.href,"","width="+maxW+",height="+maxH+",left="+adjX+",top="+adjY+",No,resizable");
			zNew=null;
		}
	}
}


