var App = new Class({

	Implements: [Options],
	
	options: {
		startupNavigable: "/products"
	},
	
	swf : "swf/Preloader.swf",
	bootUrl : "",
	
	initialize : function(options) {
		this.setOptions(options);
		
		swffit.showScrollV();
        swfobject.embedSWF( 
            this.swf,
            "swf_container",
            "946", "580", 
            "9.0.115", 
            "swf/expressInstall.swf", 

            // variables
            this.options, 

            // parameters
            {
                bgcolor: "#000000",
                wmode: 'opaque',
                allowFullScreen: "true"
            },

            // attributes
            {
                id: "flash"
            },
            
            this.onSwfComplete.bind(this)
       );
       
       // window.addEvent('domready', this.onDomReady.bind(this));      
   },

   onSwfComplete: function( event )
   {
	   if (event.success) {
		   if (swfmacmousewheel) {
			   swfmacmousewheel.registerObject('flash');
		   }
		   swffit.fit( "flash", 980, 1440, 1280, 1444, true, false);
            // swffit.fit( 'flash', 1270*.8,748*.8,1270*1.2, 748*1.2, true, true );
			
	   } else {
		   $('no-js').setStyle('display', 'none');
	   }
   },

   // onDomReady : function(event) {
       //Flash ID, minW, minH, maxW, maxH, hCenter, vCenter		
       
   // },
   
   openOverlay: function() {       
       // open a welcome message as soon as the window loads
       Shadowbox.open({
           content: 'http://www.imagingserver.eu/IS1/isv4/fsi.swf?FPXBase=http://www.imagingserver.eu/IS1%2Ferez%3Fsrc%3D&FPXSrc=v1retail/v1new/watch%255Fpd.tif&cfg=http%3A//www.imagingserver.eu/IS1/erez%3Fcmd%3Dview%26vtl%3Dfsi/hotspot.xml%26tmp%3Dfsi%26escape%3Dnone%26encode%3Dutf-8%26src%3Dv1retail/v1new/watch%25255Fpd.tif&NavWidth=150&NavHeight=120&ZoomLimit=100&Language=nederlands&NoNav=0&Effects=clipcolor%3d%26sharpen%3d15&plugins=clockprogress,history,maxzoom,zoommeter&Skin=v1retailnl&Mousemodes_Mode51=0&UISwitchable=0&DefaultTarget=_blank',
           player: 'swf',
           height: 640,
           width: 480,
           options: {
               showOverlay: true,
               overlayColor: '#000',
               overlayOpacity: 0.65,
               troubleElements: []
           }
       });
   }
	
});
