//Conforme XHTML Strict - per usarlo aggiungere ad <a ... rel="external" ... >  
	$(document).ready(function(){
	    
		// ZoomImage in pop-up
		$("A[@rel*='external']").click(function(){
			//window.open($(this).attr("href"), 'popup', 'width=600,height=440,top=20,left=20,toolbar=no');			
			var html =  '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'+
						'<HTML>'+
						'<HEAD>'+
							'<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />'+
							'<TITLE>Marcon Costruzioni S.r.l. - Immagine</TITLE>'+
						'</HEAD>'+
						'<BODY style="margin: 0 0 0 0; background-color: #000;" onLoad="window.resizeTo(document.imageTest.width+10, document.imageTest.height+68)">'+
							'<div style="text-align:center; width:100%; height:100%;">'+
								'<img src="'+$(this).attr("href")+'" border="0" name="imageTest" />'+
							'</div>'+
						'</BODY>'+
						'</HTML>';
			var popupImage = window.open('', 'popup', 'width=100,height=100,toolbar=no');	
			popupImage.document.open();
			popupImage.document.write(html);
			popupImage.document.close();
			return false;
	    });		
		
		// SwapImage in home-page
		$("div.menuhome a").hover(function(){
			$(this).find("img").attr({ src : "images/"+$(this).attr("name")+"_on.gif" });
		}, function(){
			$(this).find("img").attr({ src : "images/"+$(this).attr("name")+"_off.gif" });	
		});	
		
	});

	
	