
AIM = {
 
	frame : function(c) {
 
		var n = 'f' + Math.floor(Math.random() * 99999);
		var d = document.createElement('DIV');
		d.innerHTML = '<iframe style="display:none" src="about:blank" id="'+n+'" name="'+n+'" onload="AIM.loaded(\''+n+'\')"></iframe>';
		document.body.appendChild(d);
 
		var i = document.getElementById(n);
		if (c && typeof(c.onComplete) == 'function') { 
			i.onComplete = c.onComplete;
		}
 
		return n;
	},
 
	form : function(f, name) {
		f.setAttribute('target', name);
	},
 
	submit : function(f, c) {
		AIM.form(f, AIM.frame(c));
		if (c && typeof(c.onStart) == 'function') {
			return c.onStart();
		} else {
			return true;
		}
	},
 
	loaded : function(id) {
		var i = document.getElementById(id);
		if (i.contentDocument) {
			var d = i.contentDocument;
		} else if (i.contentWindow) {
			var d = i.contentWindow.document;
		} else {
			var d = window.frames[id].document;
		}
		if (d.location.href == "about:blank") {
			return;
		}
 
		if (typeof(i.onComplete) == 'function') {
			i.onComplete(d.body.innerHTML);
		}
	}
 
}

	function startCallback() {
		// make something useful before submit (onStart)
		//if($("form #markerpoints").length) 
	 
		
		return true;
	}
 
	
	function completeCallback(response) {
		// make something useful after (onComplete)
		document.getElementById('r').innerHTML = response;
	}
	
	
	function closeModal(){
		$('#boxes .window, #boxes2 .window, #mask ').fadeOut('fast');	
	}
	
	/**
 * @author alexander.farkas
 * 
 * @version 2.5.1
 * project site: http://plugins.jquery.com/project/AjaxManager
 */
(function($){
	
	$.manageAjax = (function(){
		var cache 			= {},
			queues			= {},
			presets 		= {},
			activeRequest 	= {},
			allRequests 	= {},
			triggerEndCache = {},
			defaults 		= {
						queue: true, //clear
						maxRequests: 1,
						abortOld: false,
						preventDoubbleRequests: true,
						cacheResponse: false,
						complete: function(){},
						error: function(ahr, status){
							var opts = this;
							if(status &&  status.indexOf('error') != -1){
								setTimeout(function(){
									var errStr = status +': ';
									if(ahr.status){
										errStr += 'status: '+ ahr.status +' | ';
									}
									errStr += 'URL: '+ opts.url;
									throw new Error(errStr);
								}, 1);
							}
						},
						success: function(){},
						abort: function(){}
				}
		;
		
		function create(name, settings){
			var publicMethods = {};
			presets[name] = presets[name] ||
				{};
			
			$.extend(true, presets[name], $.ajaxSettings, defaults, settings);
			if(!allRequests[name]){
				allRequests[name] 	= {};
				activeRequest[name] = {};
				activeRequest[name].queue = [];
				queues[name] 		= [];
				triggerEndCache[name] = [];
			}
			$.each($.manageAjax, function(fnName, fn){
				if($.isFunction(fn) && fnName.indexOf('_') !== 0){
					publicMethods[fnName] = function(param, param2){
						if(param2 && typeof param === 'string'){
							param = param2;
						}
						fn(name, param);
					};
				}
			});
			return publicMethods;
		}
		
		function complete(opts, args){
			
			if(args[1] == 'success' || args[1] == 'notmodified'){
				opts.success.apply(opts, [args[0].successData, args[1]]);
				if (opts.global) {
					$.event.trigger("ajaxSuccess", args);
				}
			}
			
			if(args[1] === 'abort'){
				opts.abort.apply(opts, args);
				if(opts.global){
					$.active--;
					$.event.trigger("ajaxAbort", args);
				}
			}
			
			opts.complete.apply(opts, args);
			
			if (opts.global) {
				$.event.trigger("ajaxComplete", args);
			}
			
			if (opts.global && ! $.active){
				$.event.trigger("ajaxStop");
			}
			//args[0] = null; 
		}
		
		function proxy(oldFn, fn){
			return function(xhr, s, e){
				fn.call(this, xhr, s, e);
				oldFn.call(this, xhr, s, e);
				xhr = null;
				e = null;
			};
		}
		
					
		function callQueueFn(name){
			var q = queues[name];
			if(q && q.length){
				var fn = q.shift();
				if(fn){
					fn();
				}
			}
		}

		
		function add(name, opts){
			if(!presets[name]){
				create(name, opts);
			}
			opts = $.extend({}, presets[name], opts);
			//aliases
			var allR 	= allRequests[name],
				activeR = activeRequest[name],
				queue	= queues[name];
			
			var id 				= opts.type +'_'+ opts.url.replace(/\./g, '_'),
				triggerStart 	= true,
				oldComplete 	= opts.complete,
				ajaxFn 			= function(){
									activeR[id] = {
										xhr: $.ajax(opts),
										ajaxManagerOpts: opts
									};
									activeR.queue.push(id);
									return id;
								}
				;
				
			if(opts.data){
				id += (typeof opts.data == 'string') ? opts.data : $.param(opts.data);
			}
			
			if(opts.preventDoubbleRequests && allRequests[name][id]){
				return false;
			}
			
			allR[id] = true;
			
			opts.complete = function(xhr, s, e){
				var triggerEnd = true;
				if(opts.abortOld){
					$.each(activeR.queue, function(i, activeID){
						if(activeID == id){
							return false;
						}
						abort(name, activeID);
						return activeID;
					});
				}
				oldComplete.call(this, xhr, s, e);
				//stop memory leak
				if(activeRequest[name][id]){
					if(activeRequest[name][id] && activeRequest[name][id].xhr){
						activeRequest[name][id].xhr = null;
					} 
					activeRequest[name][id] = null;
				}
				triggerEndCache[name].push({xhr: xhr, status: s});
				xhr = null;
				activeRequest[name].queue = $.grep(activeRequest[name].queue, function(qid){
					return (qid !== id);
				});
				allR[id] = false;
				
				e = null;
				
				delete activeRequest[name][id];
				
				$.each(activeR, function(id, queueRunning){
					if(id !== 'queue' || queueRunning.length){
						triggerEnd = false;
						return false;
					}
				});
				
				if(triggerEnd){
					$.event.trigger(name +'End', [triggerEndCache[name]]);
					$.each(triggerEndCache[name], function(i, cached){
						cached.xhr = null; //memory leak
					});
					triggerEndCache[name] = [];
				}
			};
			
			if(cache[id]){
				ajaxFn = function(){
					activeR.queue.push(id);
					complete(opts, cache[id]);
					return id;
				};
			} else if(opts.cacheResponse){
				 opts.complete = proxy(opts.complete, function(xhr, s){
					if( s !== "success" && s !== "notmodified" ){
						return false;
					}
					cache[id][0].responseXML 	= xhr.responseXML;
					cache[id][0].responseText 	= xhr.responseText;
					cache[id][1] 				= s;
					//stop memory leak
					xhr = null;
					return id; //strict
				});
				
				opts.success = proxy(opts.success, function(data, s){
					cache[id] = [{
						successData: data,
						ajaxManagerOpts: opts
					}, s];
					data = null;
				});
			}
			
			ajaxFn.ajaxID = id;
			
			$.each(activeR, function(id, queueRunning){
				if(id !== 'queue' || queueRunning.length){
					triggerStart = false;
					return false;
				}
			});
			
			if(triggerStart){
				$.event.trigger(name +'Start');
			}
			if(opts.queue){
				opts.complete = proxy(opts.complete, function(){
					
					callQueueFn(name);
				});
				 
				if(opts.queue === 'clear'){
					queue = clear(name);
				}
				
				queue.push(ajaxFn);
				
				if(activeR.queue.length < opts.maxRequests){
					callQueueFn(name); 
				}
				return id;
			}
			
			
			
			return ajaxFn();
		}
		
		function clear(name, shouldAbort){
			$.each(queues[name], function(i, fn){
				allRequests[name][fn.ajaxID] = false;
			});
			queues[name] = [];
			
			if(shouldAbort){
				abort(name);
			}
			return queues[name];
		}
		
		function getXHR(name, id){
			var ar = activeRequest[name];
			if(!ar || !allRequests[name][id]){
				return false;
			}
			if(ar[id]){
				return ar[id].xhr;
			}
			var queue = queues[name],
				xhrFn;
			$.each(queue, function(i, fn){
				if(fn.ajaxID == id){
					xhrFn = [fn, i];
					return false;
				}
				return xhrFn;
			});
			return xhrFn;
		}
		
		function abort(name, id){
			var ar = activeRequest[name];
			if(!ar){
				return false;
			}
			function abortID(qid){
				if(qid !== 'queue' && ar[qid] && ar[qid].xhr && ar[qid].xhr.abort){
					ar[qid].xhr.abort();
					complete(ar[qid].ajaxManagerOpts, [ar[qid].xhr, 'abort']);
				}
				return null;
			}
			if(id){
				return abortID(id);
			}
			return $.each(ar, abortID);
		}
		
		function unload(){
			$.each(presets, function(name){
				clear(name, true);
			});
			cache = {};
		}
		
		return {
			defaults: 		defaults,
			add: 			add,
			create: 		create,
			cache: 			cache,
			abort: 			abort,
			clear: 			clear,
			getXHR: 		getXHR,
			_activeRequest: activeRequest,
			_complete: 		complete,
			_allRequests: 	allRequests,
			_unload: 		unload
		};
	})();
	//stop memory leaks
	$(window).unload($.manageAjax._unload);
})(jQuery);


	var globalhashes = new Object();
	var pageisnew = true;
	var pagefound = '';
	
	
(function($){
	var isonprocess = false;
	var _constfields = '';
	var _page = '';
	var ajaxchoke = 0;
	var modalwin = 0;
	var currentContent = null;
	var pageopts = null;
	
	

	$.fn.initpage = function(options){ 
			var defaults = {
                     classpage:'',
					 methodcall:'',
					 divspace:'',
					 popup:false,
					 modal:false,
					 persist:true,
					 modaltitle:'',
					 formid:false,
					 append:false,
					 page:'add',
					 url:options.base_path+'lib/strapper.php',
					 enctype:'text/plain',
					 jaxmanagename:'fixQueue',
					 doscroll:true,
					 sourcecall:window.location.pathname	 
                 };
				 
				pageopts = $.extend(defaults,options); 
			 
	};
	
	$.fn.getpage = function(opt){
			
		var temp = pageopts;
		var options = $.extend({},temp, opt);
		if(!arguments.length) { alert("Strapper page parameters must be at least 1. ({classpage:'pagename'})"); return false; }
		
		var p = {};
			
 			
			
		 			for(var prop in options){
						p[prop] = options[prop];	  
					}
			 	
		 			if(options.formid !== false) { 
		 				var arr = new Array();
						$("#"+options.formid+ " input[id], #"+options.formid +" input[type='hidden'], #"+options.formid+" textarea[id], #"+options.formid + " select[id]").each(function(){
						   var child = $(this);
						  
						   if(child.attr('id').toString().search(/\[\]/i)>=0){ 
							 
							  
							  if(child.attr('checked')){  
								 // child.each(function(){ 
									arr.push($(this).val());	
									 
							  	 // });
							  }  
							 
								   var newid = child.attr('id').toString().replace(/\[\]/,'');
							 
								 if(typeof (p[newid])=='undefined'){
									 p[newid] = arr;
									 
								 } 
							  //}
							  
							
							  
						   } else {
							   
							   	p[child.attr("id")] = child.attr("value");
						   }
						  
						}); 
				}  					 
			
				
					if(options.jaxmanagename=='fixQueue'){
						p['qname'] = 'fixQueue';
				}	
	 	
			//query string update:
			var q = '';
			for (var i in p){
				q += i+'='+p[i]+'&';
			}  
			


			 
			 
			return $(this).ajaxfetch(p);
		  
//			 return q;
	    

        };
	


	$.fn.readPermissions = function(){ 
			var flagme = false;
			
		
			try{
				 
				$("a:not([class*=navclass])").each(function(){
															
					var _n = $(this).attr('name');
				 
					if(_n=='' || $(this).hasClass('permitted')) return;
					//if(_n=='menu_addproptodubiz') alert(_n+' is allowed: '+$(this).allowed_fieldvar_const(_n)+ ' for page: '+_page);			
					
					if($(this).allowed_fieldvar_const(this.name,$(this)) !== false ){
						$(this).css('visibility', 'visible'); 
					} else {
						$(this).css('visibility', 'hidden');
						
							$(this).css('display','none');
							$(this).prev('.label').css('display','none');
							$(this).parent().prev().children('span').css('display','none');
						 
					}
					
				});
				
				
				$("form input[type='text']:not([class*=navexempt])").each(function(){ 
				    
					var _n = $(this).attr('name');
					if(_n=='' || $(this).hasClass('permitted')) return;
					flagme = true;
					
					  
					if($(this).allowed_fieldvar_const(this.name,$(this)) === true ){
						$(this).attr('disabled', false); 
					} else {
						$(this).attr('disabled', true); 
						if(_viewtype=='none'){
							$(this).css('display','none');
							$(this).prev('.label').css('display','none');
							$(this).parent().prev().children('span').css('display','none');
						}
					}
				 
				});
				
				
				
				$("form input[type='file']:not([class*=navexempt])").each(function(){ 
				    var _n = $(this).attr('name');
					if(_n=='' || $(this).hasClass('permitted')) return;
					flagme = true;
					if($(this).allowed_fieldvar_const(this.name,$(this)) !== false ){
						$(this).attr('disabled', false);
					} else {
						$(this).attr('disabled', true);
						if(_viewtype=='none'){
							$(this).css('display','none');
							$(this).prev('.label').css('display','none');
							$(this).parent().prev().children('span').css('display','none');
						}
					}
				 
				});
				

				$("form input[type='submit']:not([class*=navexempt]), form input[type='button']:not([class*=navexempt])").each(function(){ 
				    var _n=$(this).attr('name');
					if(_n=='' || $(this).hasClass('permitted')) return;
					flagme = true;
					if($(this).allowed_fieldvar_const(this.name,$(this)) !== false ){
						$(this).attr('disabled', false);
						
					} else {
						$(this).attr('disabled',true);
						//if(_viewtype=='none'){
							$(this).css('display','none');
							$(this).prev('.label').css('display','none');
							$(this).parent().prev().children('span').css('display','none');
							$(this).removeClass('btn_classic');
							$(this).addClass('btn_disabled');
						//}
						
					}
				 
				});
				
				 
				
				
				$("form select").each(function(){
					var _n = $(this).attr('name');					   
					if(_n=='' || $(this).hasClass('permitted')) return;
					flagme = true;
					
					if($(this).allowed_fieldvar_const(_n,$(this)) !== false ){
						$(this).attr('disabled', false);
					} else {
						$(this).attr('disabled', true);
						if(_viewtype=='none'){
							$(this).css('display','none');
							$(this).prev('.label').css('display','none');
							$(this).parent().prev().children('span').css('display','none');
						}
						
					
					}
				});
				
			
				$("form input[type=checkbox]:not([class*=navexempt])").each(function(){
					var _n=$(this).attr('name');
					
					if(_n=='' || $(this).hasClass('permitted')) return;
					flagme = true;

					 
					if($(this).allowed_fieldvar_const(_n,$(this)) !== false ){
						$(this).attr('disabled', false);
					} else {
						$(this).attr('disabled', true);
						if(_viewtype=='none'){
							$(this).css('display','none');
							$(this).prev('.label').css('display','none');
							$(this).parent().prev().children('span').css('display','none');
						}
						if($(this).attr('checked')){
						//recreate this element for this value because disabled checkboxes will not be read by form submit, but make it invisible to the naked eye
						//$(this).recreateElement($(this));				
						}
					}
				});
				
				
			} catch (e) {}

		
		
	};
	
	$.fn.recreateElement = function(el){
		var elt = el.attr('type');
		var eln = el.attr('name');
		var elv = el.attr('value');
		var newEl = '';
		
		newEl = "<input type='text' name='"+eln+"' style='visibility:hidden' value='"+elv+"' />";
		el.parent().append(newEl);	
	};
	
	$.fn.allowed_fieldvar_const = function(fldname,obj) {
	 
	if(_constfields=='' || typeof (_constfields) == 'undefined') return true;
		
		try {
			var f_str = _constfields;
			f_str = f_str.replace(/\[\]/g,'');
			 
			//if(fldname.indexOf('[')) fldname = fldname.replace(/\[\]/g,'');
			if(fldname.indexOf('[')>=0) fldname = fldname.substr(0,fldname.indexOf('[')); 
		    
			 			
			var str_obj = $.parseJSON(f_str);
			
			
			
			
			if(typeof(str_obj[fldname])!=='undefined') {  
				
				 
				var p_arr = str_obj[fldname].split(",");
				
				 
					for(var i=0;i<p_arr.length;i++){
						if(p_arr[i]==_page) return true;
					}
				 
				
			}
			
			
			
			 
			 
 			 return false;	
		} catch(e){}
	};

	$.fn.ajaxfetch = function(options){ 

		var opt = options;
		
		var enctype = (opt.formid===false)?opt.enctype:'multipart/form-data';

                var cacheres = true;
                if(window.location.pathname.match(/admin/)){
                    cacheres = false;
                }


			var defaults = {
				queue: true, 
				maxRequests: 40, 
				preventDoubbleRequests:true, 
				abortOld:false, 
				cacheResponse:cacheres,
				sourcecall:window.location.pathname
			};
		
		 
		var jaxmanageropt = $.extend(defaults, options);	
		 
	/*	var waitonly = $(this).showasmodal({mwidth:'15em',waitonly:true,modalbgcolor:'#000',background:"#090909 url(../images/108.gif) 15px 15px no-repeat",color:'#fff',border:'1px solid #fff'}, 'contacting server...');*/
		 
		_page = options.page;
		_viewtype = options.viewtype;
		$.prettyLoader.show();
 
		$.manageAjax.create(opt.jaxmanagename, jaxmanageropt); 
		return reqid = $.manageAjax.add(opt.jaxmanagename,{
				enctype: enctype,
				url:opt.url,
				dataType:'json',
				type:'GET',
				data:opt,
				beforeSend: function(xmlhttprequest){ isonpreocess = true; },
				error:function(xmlhttpreq, textStatus, errorThrown){  
						ajaxchoke++;
						if(ajaxchoke>=5){
							alert("Giving up...Cannot seem to fetch data.");
							
						} else $().ajaxfetch(options);
						 
						
						 
				},
				complete: function(XMLHttpRequest, textStatus){
 					
					 
					$().readPermissions();  
					isonprocess = false;
					
					if(options.doscroll===true) $('body,html').animate({scrollTop: 0 } , 'slow');
					 
					return true;
				},
				success:function(result){  
					  
					
					if(result.success.toString()=='true'){  
						
 						
						var html = result.data.pagehtml;
						
						//set variable for permissions
						_constfields = result.data.constfields;
					 
						// $('#maincontainer').html(result.data.msg);
							
							if(opt.modal===true) {
								 
 								
								//$().prettyPhoto({theme:'facebook'});
								//$.prettyPhoto.open('#inline-1');
								$(this).showasmodal({modalbgcolor:'#000',background:"#fff",color:'#000',border:'7px solid #c1c1c1'}, html);	
								
								
								
							} else $("#"+opt.divspace).html(html);
							
						 
						 
					} else $(errorspace).html(html);
					
					
					
					
					 opt = {};
					 
				} 
					
				 
		});
	};
	
	
	
	
	$.fn.showasmodal = function(options, result){
 			 
		 
			var uniqueid = Math.round(Math.random()*9999999);	 
				 
 			
			var defaults = {
					m_class:'div_modal',
					div_id:"div_"+uniqueid,
					bodyclass:'modalbody',
					mwidth:'auto',
					mheight:'auto',
					waitonly:false,
					modalbgcolor:'#000',
					opacity:.2,
					fadeto:'slow',
					fadetoopaq:.7,
					maskheight:$(document).height(),
					maskwidth:$(document).width(),
					border:'2px solid #000',
					background:'#000',
					color:'#fff',
					close_button: '',
					modal_title: ''
					
				};	
			
			var options = $.extend(defaults, options);
			
			
			 
			
			var modalwin_html = "<div id='"+options.div_id+"' class='"+options.m_class+"'><div class='button_x_modal'>"+options.close_button+"</div><div class='"+options.bodyclass+"'></div></div>";
			if(modalwin==0) { modalwin_html += "<div id='mask_"+uniqueid+"' class='mask'></div>"; modalwin++; }
			
			
			 
			$("body").append(modalwin_html); 
			$("body").css('height','auto');
			
			
			//var divclone = $('#'+options.div_id).clone();
			$('#'+options.div_id).children().css('visibility','hidden');
			
			 
			$("#"+options.div_id+" ."+options.bodyclass).html(result);
			
			$("#"+options.div_id).css('height',options.mheight);
			$("#"+options.div_id).css('width',options.mwidth);
			$("#"+options.div_id).css('background',options.background);
			$("#"+options.div_id).css('border',options.border);
			$("#"+options.div_id).css('color',options.color);
			$("#"+options.div_id).css('position','absolute');
			 
			$("."+options.bodyclass).css('color',options.color);
			
			//Get the screen height and width
			var maskHeight = options.maskheight;
			var maskWidth = options.maskwidth;
			
			 
			//Set height and width to mask to fill up the whole screen
			
			
			//transition effect		
			//$('#mask').fadeIn('slow');	
			$('.mask').fadeTo(options.fadeto, options.fadetoopaq);	
			
			//Get the window height and width
			var winH = $(document).height();
			var winW = $(document).width();
			
			
			//Set the popup window to center
			$("#"+options.div_id).css('left', winW/2-$("#"+options.div_id).width()/2);
			if($("#"+options.div_id).height()>winH) $("#"+options.div_id).css('top', $(window).scrollTop() + 50);
			else $("#"+options.div_id).css('top', $(window).scrollTop() +50);
			
			$('.mask').css({'width':$(document).width()+'px','height':$(document).height()+'px', 'background':options.modalbgcolor}); 
			//transition effect
			
			//$("."+options.m_class).fadeIn(500); 	
			
			$("."+options.m_class).fadeIn(500);
			//$("."+options.m_class).show(500,function(){ 
				//divclone.appendTo('#'+options.div_id).css('visibility','visible');
				
				$('#'+options.div_id).children().css('visibility','visible');
				$("h3.poptitle").bind('mousedown',function(e){
					
						$("#"+options.div_id).draggable();
					
					
				});
				
			//});
	
			
			 
				
			
			$('#'+options.div_id+' .button_x_modal').bind('click', function(e) {
				$('#'+options.div_id).children().animate({'opacity':.4},'fast',function(){
						$(".mask").animate({'opacity':0},'fast','linear',function(){ $(this).remove(); modalwin=0;});
						$("#"+options.div_id).fadeOut(200,function(){$(this).remove(); modalwin=0; });
				});
				$(window).unbind('resize');
			});		
			
			 
			
			$(window).bind("resize", function(event){ 
				$(window).unbind('resize');	
				$('#'+options.div_id).remove();
				$('.mask').remove();
				modalwin =0;
				if(options.waitonly) $(this).closemodal(options);
				else $(this).showasmodal(options, result);			

			});
			
			 
			 
			
			return options;
				
		
		
	};
	
	$.fn.closemodal = function(thismodal){
		  
		$(".mask, #"+thismodal.div_id).animate({'opacity':0},'fast','linear',function(){ $(".mask, #"+thismodal.div_id).remove(); });
		
	};
	
	$.fn.initTinyMCE = function(el){
	  var txtname = el.attr('name'); 
	  var isreadonly  = $(this).allowed_fieldvar_const(txtname);
	  
		el.tinymce({
			// Location of TinyMCE script
			readonly: !isreadonly,
			script_url : '../lib/jquery/plugins/tiny_mce/tiny_mce.js',

			// General options
			theme : "simple",
			plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",

			// Example content CSS (should be your site CSS)
			content_css : "../css/default.css"
			 
			});	
	};
	
 
	
	
	$.fn.redirectpage = function(options){
			
			var params = '';
			
			 
			
			$.ajax({
				   url:'../lib/checkpreviouspage.php',
				   dataType:'json',
				   type:'POST',
				   data:options,
				   success:function(result){
						if(result.success.toString()=='true'){
						 	 
							var p = eval("("+result.data.params+")");
							
							$(this).getpage(p);
							 
						} else getpage({classpage:'allaccess',methodcall:'defaulthome',divspace:'mainbody'});
					},error:function(xmlhttprequest,errorText,errThrown){ alert('Sorry, I think I just choked... Please try again.'); }
			});
			
		}
			
			
 	} 
)(jQuery);
