function FluidForms(){}
FluidForms.prototype.load = function(){
	
	var basePath = "http://static.fluidforms.eu:8080/apps/js/widget-loader/",
	
		target = "#design-widgit",
		cssURL = "http://s.fluidforms.eu:8080/apps/js/widget-loader/css/widget-loader-2-07.min.css",
		requiredJQueryVersion = "1.2.6";
	
	this.params = {
		type:"flash",
		productID: 1,
		width:620, 
		height:698, 
		
		lang:"en"
	}

	javascript:(function(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){c=a.createElement("script");c.type="text/javascript";c.src="http://ajax.googleapis.com/ajax/libs/jquery/"+g+"/jquery.min.js";c.onload=c.onreadystatechange=function(){if(!b&&(!(d=this.readyState)||d=="loaded"||d=="complete")){h((f=e.jQuery).noConflict(1),b=1);f(c).remove()}};a.documentElement.childNodes[0].appendChild(c)}})(window,document,requiredJQueryVersion,function($,L){
		fluidforms.$ = $;
		$(document.createElement('link') ).attr({ href: cssURL, media: 'screen', type: 'text/css', rel: 'stylesheet' }).appendTo('head'); 
		$(document).ready(function(){
			if(!fluidforms.params.lang){
				fluidforms.params.lang = $("html").attr("lang");
			}
			
				
					var widgetParams = {productName:"Bowl-Pinstripe", key:"ABQIAAAA9l4ysi3co4me8_RyylZ8bBSWL9CDtUV-wxLHsk2ka8xNQKwxIxRAgq8Yt9d0X4q7ZzAyOGTyRLYTcA"}
				
			

			widgetParams.name = "Earth Multiplex";
			widgetParams.lang = fluidforms.params.lang;

			fluidforms.params.widgetParams = widgetParams;
			fluidforms.params.widget = "http://static.fluidforms.eu/apps/flex/Earth/EarthWizardV1-1-36.swf";
			
			
			$.getScriptCached("http://static.fluidforms.eu:8080/apps/js/widget-loader/js/jquery.widget-loader-2-22.min.js", function(){
					fluidforms.params = $.extend(fluidforms.params, typeof(fluidformsParams)!=="undefined"?fluidformsParams:{});
					fluidforms.params.widgetParams = $.extend(fluidforms.params.widgetParams, window.widgetParams||{});
					$(target).loadFluidFormsWidget(fluidforms.params);
				});
		});
	});
}
var fluidforms = new FluidForms();
fluidforms.load();

// overrides getScript so that we can cache the script that it is loading
$.getScriptCached = function(url, callback){ $.ajax({ type: "GET", url: url, success: callback, dataType: "script", cache: true }); }; 