/**********************************************************************************
 * 
 * LastChangedDate:		$Date: 2007-02-13 13:54:48 +0100 (Tue, 13 Feb 2007) $
 * LastChangedRevision	$Rev: 63 $
 * LastChangedBy:		$Author: $
 * HeadURL:				$URL: http://linux/cd/balance/trunk/httpdocs/js/nl/balance/balance.js $
 * ID:					$Id: balance.js 63 2007-02-13 12:54:48Z  $
 * 
/**********************************************************************************/

// Create namespace
if ( ! window.nl.intenz ) {
	window.nl.intenz = {} ;
} ;

/**
 * Quist Class
 */
nl.intenz.Intenz = function() {
	nl.xd.util.Event.addListener( window , 'load' , function() { nl.intenz.Intenz.DOC.show() ; } ) ;
} ;

/**
 * DOC Class
 */
nl.intenz.Intenz.DOC = function() {
	var flash ;
	
	return {
		show: function() {
			// unhide flash site
			var center = nl.xd.util.DOM.get( 'center' ) ;
			nl.xd.util.DOM.removeClass( center, "displaynone" );
			this.showSite() ;
		} ,
		showSite: function() {
			var path = location.href ;
			path = path.split( '?' ) ;
			path = path[ 0 ] ;
			
			path = path.split( '/' );
			path.pop();
			path = path.join( '/' );
			
			var container = nl.xd.util.DOM.get( 'main' ) ;
		
			if( window.isIntro ){
				
			   var so = new SWFObject("intro_intenz01.swf?x=2", "main", "990", "720", "6.0.65", "#ffffff");
			   so.addVariable("_xml", window.flashvars);
			   so.addVariable("path", path);
			   so.addParam("menu", "false");
			   so.write("main");
				
			//	container.innerHTML = nl.xd.flash.Simple.Standard( 'intro_intenz01.swf' , '990' , '720' , window.flashvars + '&path=' + path , 'flashmenu' ) ;	
			} else {
				
			   var so = new SWFObject("intenz01.swf?x=9", "main", "990", "720", "6.0.65", "#ffffff");
			   so.addVariable("_xml", window.flashvars);
			   so.addVariable("path", path);
			   so.addParam("menu", "false");
			   so.write("main");

				
				//container.innerHTML = nl.xd.flash.Simple.Standard( 'intenz01.swf' , '990' , '720' , window.flashvars + '&path=' + path , 'flashmenu' ) ;				
			}
			
		} ,
		showIntro: function(){
			var path = location.href ;
			path = path.split( '?' ) ;
			path = path[ 0 ] ;
			
			var container = nl.xd.util.DOM.get( 'main' ) ;
			container.innerHTML = nl.xd.flash.Simple.Standard( 'intro_intenz01.swf' , '990' , '720' , window.flashvars + '&path=' + path , 'flashmenu' ) ;
		}
		
	} ;
} () ;

new nl.intenz.Intenz() ;
