function FluidForms(){}
FluidForms.prototype.load = function(){
	
	var basePath = "http://static.fluidforms.eu/apps/js/widget-loader/",
	
		target = "#design-widgit",
		cssURL = "http://s.fluidforms.eu/apps/js/widget-loader/css/widget-loader-2-08.min.css",
		requiredJQueryVersion = "1.2.6";
	
	this.params = {
		type:"flash",
		productID: 49,
		askForPrice: "true",
		width:622, 
		height:653, 
		
		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 = {}
				
			

			widgetParams.name = "Streets Earrings Stainless Steel";
			widgetParams.lang = fluidforms.params.lang;

			fluidforms.params.widgetParams = widgetParams;
			fluidforms.params.widget = "http://static.fluidforms.eu/apps/flex/Earth/StreetMapWizardV1-1-27.swf";
			
			
			$.getScriptCached("http://static.fluidforms.eu/apps/js/widget-loader/js/jquery.widget-loader-2-39.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 }); }; 
