/**
 * @fileOverview All JS-code for bas.nl
 * @author name
 * @since 1.0 - 2010-8-6
 * @version 1.0 - 2010-8-6
 */




if (typeof (nl) == "undefined") {
	/**
	 * @namespace Top Level bas
	 */
	var nl = {}
}
if (typeof(nl.bas) == "undefined") {
	/**
	 * @namespace bas name
	 */
	nl.bas = {}
}






/**
 * @namespace Boiler plate class
 */
nl.bas = (function() {
	var config = {
		foo: "bar"
	}

	function privateMethod() {
		//
	}



	/* Start public */
	return {
		/**
		 * Boiler plate public method
		 * @example
		 * nl.bas.namespace.PublicMethod()
		 */
		PublicMethod: function() {
			//
		},
		
		/**
		 * Add Flash Klok to page
		 * @param {String} swfUrl URL of SWF
		 * @param {String} flashContainer ID of the DOM element where the SWF will be placed in
		 * @requires swfobject
		 * @requires jQuery
		 * @example
		 * nl.kruikenstad.AddFlashElement("/flash/animationHeader.swf", "FlashSpotlight")
		 */
		AddFlashElement: function(swfUrl, flashContainer, elementWidth, elementHeight, flashVarString) {
			var flashvars = {};
            flashvars.xmlFile = flashVarString;

			var params = {};
				params.wmode = "transparent";
			var attributes = {};

			if (swfobject.getFlashPlayerVersion().major >= 9) {
				swfobject.embedSWF(swfUrl +"?random=" + Math.random(), flashContainer, elementWidth, elementHeight, "9.0.0", "/flash/expressInstall.swf", flashvars, params, attributes);
			}
		}
	}
	/* End public */
})();

/**
 * @namespace Boiler plate class
 */
nl.bas.layoutCtrl = (function() {
	var config = {
		foo: "bar"
	}

	function privateMethod() {
		//

	}



	/* Start public */
	return {

		/**
		 * Boiler plate public method
		 * @example
		 * nl.bas.namespace.PublicMethod()
		 */
		dropDownLastChild: function(menuTarget) {
			jQuery(menuTarget+':last-child').addClass('lastItem');
		}
	}
	/* End public */
})();

