var netscape = 0;
	goodIE = 0;
	 n=5;
     na=5;
browserName = navigator.appName.substring(0,8);
browserVer = parseFloat(navigator.appVersion);

if (browserName == "Netscape" && browserVer >= 3)
{ netscape = 1; }
if (browserName == "Microsof" && browserVer == 4)
{ goodIE = 1; }

if (netscape || goodIE) {
	 Img= new Array(n);
	for(i=1; i<=n; i++) { Img[i] = new Image() };
   Img_r=new Array(n);
	for(i=1; i<=na; i++) { Img_r[i] = new Image() };
	
	Img[1].src="img/about_a.gif";
	Img[2].src="img/product_a.gif";
	Img[3].src="img/contact_a.gif";
	Img[4].src="img/pict_1.gif";
	Img[5].src="img/pict_3.gif";

	Img_r[1].src="img/about.gif";
	Img_r[2].src="img/product.gif";
	Img_r[3].src="img/contact.gif";
	Img_r[4].src="img/pict_1_a.gif";
	Img_r[5].src="img/pict_3_a.gif";
}

function imgover(trg,imgname){
	if (netscape || goodIE)
	 	document.images[trg].src=Img_r[imgname].src;
}
  
function imgout(trg,imgname){
	if (netscape || goodIE)
		 document.images[trg].src=Img[imgname].src; 
}

function ShowFoto(img){
	var foto1= new Image();
	foto1.src = img.src;
	if((foto1.width != 0)&&(foto1.height != 0) && (foto1.width > img.width || foto1.height != img.height)){
		width=foto1.width+20;
		height=foto1.height+20;
		var scroll = '';
		if (width > screen.width) {width = screen.width; scroll = ',scrollbars=yes';}
		if (height > (screen.height - 80)) {height = screen.height - 80; scroll = ',scrollbars=yes';}
		size="width="+width+",height="+height+scroll+", resizeable=yes"
		newwin=window.open(foto1.src,"",size);
	}
}

function CheckFoto(img){
	var foto1= new Image();
	foto1.src = img.src;
	if((foto1.width != 0)&&(foto1.height != 0) && (foto1.width > img.width || foto1.height != img.height)){
		img.style.cursor = 'pointer';
	}
}