/**** Home page flash  ****/
 var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-18823842-1']);
  _gaq.push(['_setDomainName', 'none']);
  _gaq.push(['_setAllowLinker', true]);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

$(document).ready(
	function () {
	
 $('div.flash').flash({   
 src: 'flash/main.swf',   
 height: 450,   
 width: 840,
 wmode: 'transparent'
});  



 $('div.gallery').flash({   
 src: 'flash-gallery.swf',   
 height: 490,   
 width: 795,
 wmode: 'transparent',
 allowfullscreen:'true'
 
});  

 $('div.gallery2').flash({   
 src: 'factories.swf',   
 height: 490,   
 width: 795,
 wmode: 'transparent',
 allowfullscreen:'true'
 
}); 


		jsScrollbar('#Container', {
			tweenDuration: 500,
			tweenFn: function (pos) {
				return -Math.cos(pos*Math.PI) / 2 + 0.5;
			}
		});
 
 
 
		
	$("div.flash-slider").flash({
		src: 'flash/imagescroller.swf', 
		wmode: 'transparent', 
		salign:'tl', 
		allowscriptaccess:'samedomain', 
		scale:'exactfit', 
		quality:'low',
		allowfullscreen:'true', 
		availparams: ['src', 'bgcolor', 'quality', 'allowscriptaccess', 'allowfullscreen', 'flashvars', 'wmode', 'salign', 'quality', 'sscale'],
    flashvars: { 
        settingsXML: 'slider-settings.xml'
           }
           
           }); 
           
           
        
/*	
flashembed("slider" { 
 
		src: 'flash/imagescroller.swf', 
		wmode: 'transparent', 
		salign:'tl', 
		allowscriptaccess:'samedomain', 
		scale:'noscale', 
		height:'92px', 
		width:'840px', 
		allowfullscreen:'false' // "flashvars" 
    }, { 
        settingsXML: 'slider-settings.xml',
           }); 	
		*/
	
/*$('.flash').flash({ swf: 'slider.swf', wmode: 'transparent',  height: 450,   width: 840});*/
Shadowbox.init({overlayOpacity:     "0.8"
});  
});

/*

var message="Access Denied!\nDragoni International LLC." 
function click(e) {
	if (document.all) {
		if (event.button == 2) {
			alert(message);
			return false;
		}
	}
	if (document.layers) {
		if (e.which == 3) {
			alert(message);
			return false;
		}
	}
}
if (document.layers) {
	document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;*/




