deconcept = {
	SWFObject: {
		callComplete: function() {}
		,callJS: function() {}
	}
};




if(typeof TDB=='undefined')
	var TDB={};
	//
	//
if(typeof TDB.FusionManager=='undefined')
	TDB.FusionManager={};
	//
	//
if(typeof TDB.FusionManager.io=='undefined')
	TDB.FusionManager.io={};
	//
	//
//
TDB.FusionManager=
{
	io:
	{
		send:function(func,prms)
		{
			//
			//document.getElementById("flashcontent").onHistoryChange(prms);
			//TDB.FusionManager.SWF.onHistoryChange(prms);
			//TDB.FusionManager.SWF[func](prms);
			//
			window.document.title=TDB.FusionManager.DEFAULT.PAGE_NAME
			//
		}
		,recieve:function()
		{
			var action=arguments[0]
			switch(action)
			{
				case 'updateDhtmlHistoryObject':
					if(TDB.FusionManager.isSafari) return; //don?t use simple history if safari is the browser
					//
					dhtmlHistory.add(arguments[1],null);
					//force pagename to avoid multiple '#' in title name IE.
					window.document.title=TDB.FusionManager.DEFAULT.PAGE_NAME;
					//
					break;
				case 'openajaxwindow':
					alert('openajaxwindow');
					break;
			}
		}
		,unserialize:function(url)
		{
			url=new String(url);
			//
			url=url.replace(/\@/g,"?");
			url=url.replace(/;/g,"&");
			url=url.replace(/:/g,"=");
			//
			return url;
		}
		,serialize:function(url)
		{
			url=new String(url);
			//
			url=url.replace(/\?/g,"@");
			url=url.replace(/&/g,";");
			url=url.replace(/=/g,":");
			//
			return url;
		}
	}
	,initializeOpenURLFix:function()
	{
		openURL=function(sURL)
		{
			if(typeof(document.getElementById('external').click)!='undefined')
			{
				document.getElementById('external').href=sURL;
				document.getElementById('external').click();
			}
			else
			{
				window.open(sURL,"_blank");
			}
		}
	}
	,initializePopup:function()
	{
		popup=function(url,winName,features)
		{
		    // Get screen dimensions
		    if(document.all)
		    {
				var sWidth  = screen.availWidth;
				var sHeight = screen.availHeight;
			}
			else
			{
			    var sWidth  = window.outerWidth;
                var sHeight = window.outerHeight;
            }
            // Manage special cases
			if(features == 'fullscreen')
			{
                width  = sWidth-5;
                height = sHeight-5;
				features = 'width='+width+',height='+height;
			}
			else if(features == 'print')
			{
                width  = sWidth-5;
                height = sHeight-5;
				features = 'width='+width+',height='+height+",menubar=yes,toolbar=no,location=no,scrollbars=yes";
			}
			features += ', resizable=yes';
		    window.open(url,winName,features);
		    return undefined;
		}
	}
	,initialize:function()
	{
		//
		this.DEFAULT=DEFAULTS;
		//
    	this.initializeOpenURLFix();
    	//
    	this.initializePopup();
    	//
	}
	,start:function()
	{
		//
		//start flash integration with express install as needed.
		var t=this.DEFAULT.SWF_VARIABLES.length;
		var flashvars = new Array();
		for(i=0;i<t;i++)
		{
			flashvars[this.DEFAULT.SWF_VARIABLES[i].name] = this.DEFAULT.SWF_VARIABLES[i].value;
		}

		//initialize the dhtml history
		dhtmlHistory.initialize();
		dhtmlHistory.addListener(this.handleHistoryChange);
		var currentLocation=dhtmlHistory.getCurrentLocation();
		if(currentLocation!='')
		{
			//parse the current location serialized search, into a unserialized version.
			flashvars[this.DEFAULT.SWF_INITIAL_VARIABLE_NAME] = currentLocation;
		}

		//handle parameters definitions
		var t=this.DEFAULT.SWF_PARAMS.length;
		var params = new Array();
		for(i=0;i<t;i++)
		{
			params[this.DEFAULT.SWF_PARAMS[i].name] = this.DEFAULT.SWF_PARAMS[i].value;
		}
		params.bgcolor = this.DEFAULT.SWF_BACKGROUND_COLOR;
		params.allowScriptAccess="sameDomain";

		swfobject.embedSWF(
			this.DEFAULT.SWF_FUSION_TRIGGER
			,"flashcontent"
			,this.DEFAULT.SWF_WIDTH
			,this.DEFAULT.SWF_HEIGHT
			,this.DEFAULT.SWF_VERSION
			,"TDB/fusion/core/includes/js/swfobject_new/expressInstall.swf", flashvars, params, {bgcolor: this.DEFAULT.SWF_BACKGROUND_COLOR});
		this.SWF = document.getElementById("flashcontent");
	}
	,handleHistoryChange:function(newlocation,historydata)
	{
		TDB.FusionManager.io.send('onHistoryChange',newlocation);
	}
	,isSafari:(navigator.vendor=="Apple Computer, Inc."&&navigator.product=="Gecko")
}
//
//
TDB.FusionManager.initialize();