function MM_openBrWindow(theURL,winName,features) {
  window.name = "main";
  var page = "popup.html";
  smallWin=window.open(theURL,winName,features);
}

function tellAFriend (undef) {
    var baseRef = document.location.href.substring(document.location.href.lastIndexOf("/") + 1,location.href.length);
    baseRef = baseRef.substring(0,baseRef.lastIndexOf("."));
    var URL = "http://tellafriend.bock.com/cgi-bin/sendthis.pl?catalogname=giftedgarden&item=" + baseRef;
    MM_openBrWindow(URL,'tellAFriend','scrollbars=no,resizable=yes,width=453,height=447,left=200,top=50');
}

function ZoomPopWide(theURL) {
if ((navigator.appVersion.indexOf("AOL") >0)) {
  MM_openBrWindow(theURL,"ZoomPopUp",'scrollbars=yes,resizable=yes,width=850,height=480,left=30,top=30');
} else if (navigator.appVersion.indexOf("Mac") != -1) {
  MM_openBrWindow(theURL,"ZoomPopUp",'scrollbars=yes,resizable=yes,width=850,height=480,left=30,top=30');
} else {

PopUp=window.open("","ZoomPopWide",'scrollbars=yes,resizable=yes,width=850,height=480,left=30,top=30');
	PopUp.document.write ("<HTML><HEAD><TITLE>");
	PopUp.document.write ("Image Zoom");
	PopUp.document.write ("</TITLE></HEAD>");
	PopUp.document.write ("<body border=0 TOPMARGIN=0 LEFTMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 BGCOLOR=#FFFFFF TEXT=#333333 LINK=#990000 VLINK=#336699>");
	PopUp.document.write ("<table cellpadding=0 cellspacing=0 bgcolor=#FFFFFF border=0 width=100%><tr><td background=/lib/sakayoga/white.gif><img src=/lib/sakayoga/white.gif width=1 height=5></td></tr></table>");
	PopUp.document.write ("<CENTER><hr width=375 size=1 color=#9E9E8A noshade></CENTER>");
PopUp.document.write ("<table cellpadding=0 cellspacing=0 bgcolor=#FFFFFF border=0 width=100%><tr><td height=375>");
	PopUp.document.write ("<P ALIGN=CENTER>");
	PopUp.document.write ("<A HREF='JavaScript:this.close()'><IMG BORDER=0 HSPACE=0 VSPACE=0 SRC='");
	PopUp.document.write (theURL);
	PopUp.document.write ("'></a>");
	PopUp.document.write ("</P>");
	PopUp.document.write ("</td></tr><tr><td bgcolor=#ffffff class=tan>");
	PopUp.document.write ("<CENTER><hr width=375 size=1 color=#9E9E8A noshade></CENTER><P ALIGN=CENTER>");
	PopUp.document.write ("<A HREF='JavaScript:this.close()'><img src=/lib/sakayoga/close.gif width=109 height=19 border=0 align=absmiddle></a>");
	PopUp.document.write ("</td></tr></table>");
        PopUp.document.write ("</BODY></HTML>");

	}
}

function ZoomPopUp(theURL) {
if ((navigator.appVersion.indexOf("AOL") >0)) {
  MM_openBrWindow(theURL,"ZoomPopUp",'scrollbars=yes,resizable=yes,width=850,height=480,left=30,top=30');
} else if (navigator.appVersion.indexOf("Mac") != -1) {
  MM_openBrWindow(theURL,"ZoomPopUp",'scrollbars=yes,resizable=yes,width=850,height=480,left=30,top=30');
} else {

PopUp=window.open("","ZoomPopUp",'scrollbars=yes,resizable=yes,width=850,height=480,left=30,top=30');
	PopUp.document.write ("<HTML><HEAD><TITLE>");
	PopUp.document.write ("Image Zoom");
	PopUp.document.write ("</TITLE></HEAD>");
	PopUp.document.write ("<body border=0 TOPMARGIN=0 LEFTMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 BGCOLOR=#FFFFFF TEXT=#333333 LINK=#990000 VLINK=#336699>");
	PopUp.document.write ("<table cellpadding=0 cellspacing=0 bgcolor=#FFFFFF border=0 width=100%><tr><td background=/lib/sakayoga/white.gif><img src=/lib/sakayoga/white.gif width=1 height=5></td></tr></table>");
	PopUp.document.write ("<CENTER><hr width=375 size=1 color=#9E9E8A noshade></CENTER>");
PopUp.document.write ("<table cellpadding=0 cellspacing=0 bgcolor=#FFFFFF border=0 width=100%><tr><td height=375>");
	PopUp.document.write ("<P ALIGN=CENTER>");
	PopUp.document.write ("<A HREF='JavaScript:this.close()'><IMG BORDER=0 HSPACE=0 VSPACE=0 SRC='");
	PopUp.document.write (theURL);
	PopUp.document.write ("'></a>");
	PopUp.document.write ("</P>");
	PopUp.document.write ("</td></tr><tr><td bgcolor=#ffffff class=tan>");
	PopUp.document.write ("<CENTER><hr width=375 size=1 color=#9E9E8A noshade></CENTER><P ALIGN=CENTER>");
	PopUp.document.write ("<A HREF='JavaScript:this.close()'><img src=/lib/sakayoga/close.gif width=109 height=19 border=0 align=absmiddle></a>");
	PopUp.document.write ("</td></tr></table>");
        PopUp.document.write ("</BODY></HTML>");

	}
}
