$(function() {
    $('.rollover').hover(function() {
        var currentImg = $(this).attr('src');
		var top = $(this).attr('top');
		$('#'+top).css('display','block');
        $(this).attr('src', $(this).attr('hover'));
        $(this).attr('hover', currentImg);
		var primo = $('#prima');
		if (primo.attr('id') != $(this).attr('id')){
		primo.attr('src', primo.attr('rel'));
		}
    }, function() {
        var currentImg = $(this).attr('src');
		var top = $(this).attr('top');
		$('#'+top).css('display','none');
        $(this).attr('src', $(this).attr('hover'));
        $(this).attr('hover', currentImg);
   });
	$('.map').maphilight();
			    $("img").pngfix({
				sizingMethod: "crop"
			});
				$('.class-folder').pngfix({
				sizingMethod: "scale"
			});
				$('.content-view-full').pngfix({
				sizingMethod: "crop"
			});
				
				$('.attribute-header h1').pngfix({
				sizingMethod: "crop"
			});
			
			$('.attribute-tag-cloud').pngfix({
				sizingMethod: "crop"
			});
					
				

});

var imageArray = ['/extension/ezwebin/design/ezwebin/images/quad_1h.png', '/extension/ezwebin/design/ezwebin/images/quad_2h.png', '/extension/ezwebin/design/ezwebin/images/quad_3h.png', '/extension/ezwebin/design/ezwebin/images/quad_4h.png', '/extension/ezwebin/design/ezwebin/images/quad_5h.png', '/extension/ezwebin/design/ezwebin/images/quad_6h.png','/extension/ezwebin/design/ezwebin/images/chi_up.png', '/extension/ezwebin/design/ezwebin/images/cosa_up.png','/extension/ezwebin/design/ezwebin/images/conchi_up.png','/extension/ezwebin/design/ezwebin/images/dove_up.png'];
 
// Loop through and declare an element that will not actually be used.
$.each(imageArray, function (i, val) {
  $('<img/>').attr('src', val);
});


function vaiService() {
	var url = $('#listservizi option:selected').attr('value');
	if (url != "#") {
		document.location.href = url;
	}
	return false;
	
	
}