<!--

var hs = new Array();

function myCount(id){
if (hs[id]){
if (hs[id] == 1){
document.write(" (1)");
} else {
document.write("s (" + hs[id] + ")" );
}
} else {
document.write(" (0)");
}
}

function display_image(selection,name,dawidth,daheight) {
PreView = window.open("", "Preview", "toolbar=0,location=0,directories=0,status=0,menubar=0,copyhistory=0,width="+(dawidth+60)+",height="+(daheight+68));
PreView.document.open();
PreView.document.write("<HTML><HEAD>\n");
PreView.document.write("<style type=\'text/css\' media=\'screen\'> @import \'http://www.stungeye.com/newstyle/style.css\'; </style>\n");
PreView.document.write("<TITLE>"+name+"</TITLE>\n");
PreView.document.write("</HEAD><BODY>\n");
PreView.document.write("<div id=photo>\n");
PreView.document.write("<IMG HSPACE=0 VSPACE=0 " + "SRC='" + selection + "'>\n");
PreView.document.write("<BR><A HREF=# onClick='window.close()'>Close</A>\n");
PreView.document.write("</div></BODY></HTML>");
PreView.document.close();
    }
    
function display_image_mult(selection,name,dawidth,daheight,max) {
PreView2 = window.open("", "Preview", "toolbar=0,location=0,directories=0,status=0,menubar=0,copyhistory=0,width="+(dawidth+60)+",height="+(daheight+80));
var maxPlusOne = max + 1;
PreView2.document.open();
PreView2.document.write("<HTML><HEAD>");
PreView2.document.write("<style type=\'text/css\' media=\'screen\'> @import \'http://www.stungeye.com/newstyle/style.css\'; </style>\n");
PreView2.document.write("<TITLE>"+name+"</TITLE>\n");
PreView2.document.write("<SCRIPT language=javascript>\n");
PreView2.document.write("var damax ="+max+";\n");
PreView2.document.write("var preload = new Array( "+maxPlusOne+" );\n");
PreView2.document.write("var imgNum;\n");
PreView2.document.write("for (imgNum = 1; imgNum <= damax; imgNum++){\n");
PreView2.document.write("preload[imgNum] = new Image( );\n");
PreView2.document.write("preload[imgNum].src = \'"+selection+"\'+imgNum+\'.jpg\';}\n");
PreView2.document.write("var mult2 = 1;\n");
PreView2.document.write("function changeimage(val){\n");
PreView2.document.write("if (val) mult2++;\n");
PreView2.document.write("else mult2--;\n");
PreView2.document.write("if (mult2 > damax) mult2 = damax;\n");
PreView2.document.write("if (mult2 < 1) mult2 = 1;\n");
PreView2.document.write("document[\'kimg\'].src = \'"+selection+"\'+mult2+\'.jpg\';\n");
PreView2.document.write("document.TheImage.number.value=mult2;\nreturn true;}\n");
PreView2.document.write("</script>\n");
PreView2.document.write("</HEAD><BODY>\n");
PreView2.document.write("<div id=\'photoMult\'>");
PreView2.document.write("<center>");
PreView2.document.write("<form name=\'TheImage\'>");
PreView2.document.write("<A HREF=\'#\' onClick=\'changeimage(0); return false;\'>BACK</A>");
PreView2.document.write(" (Image <input border=\'0\' name=\'number\' size=\'1\' value=\'1\'> of "+max+") ");
PreView2.document.write("<A HREF=\'#\' onClick=\'changeimage(1); return false;\'>NEXT</A><BR>\n");
PreView2.document.write("<IMG HEIGHT="+daheight+" WIDTH="+dawidth+" HSPACE=0 VSPACE=0 NAME=kimg " + "SRC=\'" + selection + "1.jpg\'><BR>\n");
PreView2.document.write("<A HREF=\'#\' onClick=\'changeimage(0); return false;\'>BACK</A> *");
PreView2.document.write("<A HREF=\'#\' onClick='window.close()'> Close </A>* \n");
PreView2.document.write("<A HREF=\'#\' onClick=\'changeimage(1); return false;\'>NEXT</A></form></center>");
PreView2.document.write("</div></BODY></HTML>");
PreView2.document.close();
    }  

function display_flash(selection,name,dawidth,daheight) {
PreView3 = window.open("", "Preview", "toolbar=0,location=0,directories=0,status=0,menubar=0,copyhistory=0,width="+(dawidth+45)+",height="+(daheight+55));
PreView3.document.open();
PreView3.document.write("<HTML><HEAD>\n");
PreView3.document.write("<style type=\'text/css\' media=\'screen\'> @import \'http://www.stungeye.com/newstyle/style.css\'; </style>\n");
PreView3.document.write("\n<TITLE>"+name+"</TITLE>\n");
PreView3.document.write("</HEAD><BODY>\n");
PreView3.document.write("<div id=\'photo\'>");
PreView3.document.write("<center>");
PreView3.document.write("<object classid=\'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\' codebase=\'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\' width="+dawidth+" height="+daheight+" id="+selection+" align=\'middle\'>\n");
PreView3.document.write("<param name=\'allowScriptAccess\' value=\'sameDomain\' />\n");
PreView3.document.write("<param name=movie value="+selection+" />\n");
PreView3.document.write("<param name=quality value=high />\n");
PreView3.document.write("<embed src="+selection+" quality=high width="+dawidth+" height="+daheight+" name="+name+" align=middle allowScriptAccess=sameDomain type=application/x-shockwave-flash pluginspage='http://www.macromedia.com/go/getflashplayer' />\n");
PreView3.document.write("</object>");
PreView3.document.write("</CENTER>");
PreView3.document.write("</DIV></BODY></HTML>");
PreView3.document.close();
    }

function display_processing(path,selection,name,dawidth,daheight) {
PreView4 = window.open("", "Preview", "toolbar=0,location=0,directories=0,status=0,menubar=0,copyhistory=0,width="+(dawidth+75)+",height="+(daheight+75));
PreView4.document.open();
PreView4.document.write("<HTML><HEAD>\n");
PreView4.document.write("<style type=\'text/css\' media=\'screen\'> @import \'http://www.stungeye.com/newstyle/style.css\'; </style>\n");
PreView4.document.write("\n<TITLE>"+name+"</TITLE>\n");
PreView4.document.write("</HEAD><BODY><CENTER>\n");
PreView4.document.write("<div id=\'photo\'>");
PreView4.document.write("<center>");
PreView4.document.write("<applet code=\'"+selection+"\' archive=\'"+path+selection+".jar\' width="+dawidth+" height="+daheight+">\n");
PreView4.document.write("<param name=\'progressbar\' value=\'true\'/>\n");
PreView4.document.write("</applet>\n");
PreView4.document.write("<BR><A href=\'"+path+selection+".pde\' target=_blank>Source Code</A> - Sketched using <a href=\'http://www.processing.org\' target=_blank>Processing</A></CENTER>\n");
PreView4.document.write("</DIV></BODY></HTML>");
PreView4.document.close();
    }    
 
    
//-->
