;(function($) {
	// private variables
	var oSettings = {};
	var iW;
	var iH;
	var iImgLoad = 0;
	var aDispObj = [];
	//
	// default settings
	$.jurida = {
		 id: "Jurida"
		,version: "1.0.0"
		,defaults: {
			 debug:		true
			,colors:	{
				 bg:		"#FCFBF5"
				,blue:		"#61BBC3"
				,green:		"#CCFF33"
				,red:		"#FE6373"
				,orange:	"#FBA364"
				,text:		"#000000"
				,link:		"#FF0000"
				,linkover:	"#FF0000"
				,menu:		"#FFFFFF"
				,menuover:	"#FE6373"
			}
		}
		// public functions
		,foo: function(bar) {
		}
	};
	// init
	$(function() {
	});

	// call
	$.fn.extend({
		jurida: function(_settings) {
			trace("jurida");
			oSettings = $.extend({}, $.jurida.defaults, _settings);
			//
			iW = $("body").width();
			iH = $("body").height();
			//
			// flash detection
			if (swfobject.getFlashPlayerVersion().major>=9) {
				var sSwf = "juridaswf";
				$("body").prepend("<div id=\""+sSwf+"\"></div>");
				var flashvars = oSettings.colors;//{};
				var params = {
					 menu:	"false"
				};
				var attributes = {
					 id:	sSwf
					,name:	sSwf
				};
				swfobject.embedSWF("style/jurida.swf", sSwf, "640","480", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
				$("#content").hide();
			}
		}
		
	});

	// init
	function init() {}

	// trace
	function trace(o,v) {
		if (window.console&&window.console.log) {//(v||oSettings.debug)&&
			if (typeof(o)=="string")	window.console.log(o);
			else						for (var prop in o) window.console.log(prop+":\t"+String(o[prop]).split("\n")[0]);
		}
	}
})(jQuery);
