function picturePop(kind,location) {
	//alert ("running");
	switch(kind) {
		case "vertical":	
			var winWidth = '550';
			var winHeight = '550';
			var winScroll = '0';
			//var site = "http://www.squarepegproductions.com";
			break;
		
		case "horizontal":	
			var winWidth = '550';
			var winHeight = '550';
			var winScroll = '0';
			//var site = "http://www.scme.com";
			break;
			
		default: alert("invalid selection");
	}

	var winResize = '0';
	var winTool = '0';
	var winLoc = '0';
	var winMenu = '0';
	var winStatus = '1';
	var winDir = '0';
			
	var winfeatures = 'width='+winWidth+',height='+winHeight+',scrollbars='+winScroll+',resizable='+winResize+',toolbar='+winTool+',location='+winLoc+',menubar='+winMenu+',status='+winStatus+',directories='+winDir;

	newwindow2=window.open('','name', winfeatures);
	var tmp = newwindow2.document;
	tmp.write('<html><head><title>Alternate View</title>');
	tmp.write('<link rel="stylesheet" rev="stylesheet" href="http://www.omnialeather.com.com/css/pop.css" />');
	tmp.write('</head><body>');
	tmp.write('<div id="contain"><div style="vertical-align: middle;"><img src="http://www.omnialeather.com/collections/files_collections/500/'+location+'" alt="" /></div></div>');
	tmp.write('<div id="close"><a href="javascript:self.close()">CLOSE WINDOW</a></div>');
	tmp.write('</body></html>')
	tmp.close();
}

function showImages(whichSet) {
	//alert("working");
	if (document.getElementById(whichSet).style.display == 'none') {
		document.getElementById(whichSet).style.display = 'block';
	}
	else {
		document.getElementById(whichSet).style.display = 'none';
	}
}
