// shows larger pic for product pages
function popProdwin(which){

	// old code:
	//bob = window.open("images/popups/"+which,"mailer","height=500,width=350,scrollbars,resizable,left=100,screenX=100,top=100,screenY=100")
	
	// open window but with no document preloaded
	bob = window.open("","mailer","height=500,width=350,scrollbars,resizable,left=100,screenX=100,top=100,screenY=100");
	
	// create a 'virtual' document in that window
	bob.document.open();
	
	// write HTML and javascript to that document.  JavaScript will wait for page to load, then
	// will resize window according to the size of the image
	bob.document.write("<html><head><title>East River Media :: Portfolio</title></head><SCRIPT>");
	bob.document.write("function resize(){self.resizeTo(document.images[0].width+60,document.images[0].height+60);self.focus();}");
	bob.document.write("</SCRIPT><body onload='resize() '  BGCOLOR='#FFFFFF'; ><center><a href='javascript:self.close();'>")
	bob.document.write("<img border=0 src='images/" + which);
	bob.document.write("' alt='Click to close'></a></body></html>");
	
	// close 'virtual' document
	bob.document.close();

	// bring popped window to top of stack
	bob.focus();
	
}







/*******************************************************************
 * soopa-rollovers.js
 * 7/28/2001
 * www.youngpup.net
 *
 * easiest rollovers on earth, baby!
 * see www.youngpup.net for documentation.
 *******************************************************************/


function soopaSetup() {
	var img, sh, sn, sd
	for (var i = 0; (img = document.images[i]); i++) {
		if (img.getAttribute) {

			sn = img.getAttribute("src");
			sh = img.getAttribute("hsrc");
			sd = img.getAttribute("dsrc");

			if (sn != "" && sn != null) {
				img.n = new Image();
				img.n.src = img.src;
			
				if (sh != "" && sh != null) {
					img.h = new Image();
					img.h.src = sh;
					img.onmouseover = soopaSwapOn
					img.onmouseout  = soopaSwapOff
				}

				if (sd != "" && sd != null) {
					img.d = new Image();
					img.d.src = sd;
					img.onmousedown = soopaSwapDown
				}
			}
		}
	}
}

function soopaSwapOn() {
	this.src = this.h.src;
}

function soopaSwapOff() {
	this.src  = this.n.src;
}

function soopaSwapDown() {
	this.src  = this.d.src;
	this.temp = typeof(document.onmouseup) != 'undefined' && typeof(document.onmouseup) != 'unknown' ? document.onmouseup : "";
	soopaSwapUp.img = this;
	document.onmouseup = soopaSwapUp;
}

function soopaSwapUp() {
	var ths = soopaSwapUp.img;
	ths.src = ths.n.src;
	if (ths.temp) document.onmouseup = ths.temp;
}


