
<!-- 
ns4 =((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 ))
ie4 = ((navigator.appName == "Microsoft Internet Explorer") &&  (parseInt(navigator.appVersion) >= 4 ))

function openWin(filename) {
	windowOptions = 'toolbar=no,resizable=yes,scrollbars=yes,status=no,width=600,height=600';
	window.open(filename+'.htm',filename, windowOptions);
}
function msg() {
	U = document.loadmsg.src;
	l=U.length
	msgImage = U.substring(1+U.lastIndexOf('/',l),l)
}

function chgMsg(chgWith) {	
	if (document.loadmsg) {
		document.loadmsg.src = 'images/' + chgWith + ".gif";
	}
}

function chgGallery(chgWith, image1) {
//if (parseInt(navigator.appVersion.substring(0, 1)) >= 3) {
chgMsg('msg_loadimage')
//alert(document.image1.src)	
	if (image1=="jpg") {
		document.image1.src = 'images/' + chgWith + "."+image1;
	}
	else {
		document.image1.src = 'images/pxl.gif';
	}
	//alert(document.image1.src)	
//}
}

//function to clear the product displayed in centre
function clearGallery() {
		document.image1.src = 'images/pxl.gif';
}

//function to hide product text
function hideText(target) {
	target.className = 'hide_table';
}

//function to extract array content and display product text
function showText(target){
	for (i=0; i<product.length; i++) {		
	//separate file name from text content
		var showProduct = product[i];
		var splitValue = showProduct.split("|");	
		var Name = splitValue[0]			
		
		//hide all text
	    eval('hideText('+Name+')');				
		
	}
	//show select text
	target.className = 'show_table';
}


function Start(URL, DESCRIPTION, WIDTH, HEIGHT) {
windowprops = "toolbar=no,resizable=yes,scrollbars=yes,status=no,left=170,top=50,width=" + (WIDTH+50) + ",height=" + (HEIGHT+50);
var title="<title>"+"The Blind Shop - Photo Gallery"+"</title>"
var text = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r<html><head>\r"+title+"\r<link rel=\"stylesheet\" type=\"text/css\" href=\"styles/blindshop.css\"></head>\r<body bgcolor=\"#006600\">\r<table height=\"100%\" width=\"100%\" border=0 cellpadding=0 cellspacing=0><tr><td class=\"gallery\" align=\"center\" valign=\"top\" nowrap><div align=\"center\"><img src=\"" + URL + "\"  hspace=\"25\" vspace=\"25\" ></div></td></tr><tr bgcolor=\"#F9F4B8\"><td class=\"body\">"+DESCRIPTION+"</td></tr></table>\r</body>\r</html>";

preview = window.open("", "preview", windowprops);

preview.document.open();
preview.document.focus();
preview.document.write(text);

preview.document.close();

}

//  -->


