
(function($){$.fn.alternation=function(options){return this.each(function(){$.alternation(this,options);});};$.alternation=function(container,options){var settings={'children':null,'alternation':'sequence','timeout':2000,'animation':'fade','speed':'normal','class':'alternation','height':'auto'};if(options)$.extend(settings,options);if(settings.children===null)var elements=$(container).children();else
var elements=$(container).children(settings.children);if(elements.length>1){$(container).css('position','relative');$(container).css('height',settings["height"]);$(container).addClass(settings["class"]);for(var i=0;i<elements.length;i++){$(elements[i]).css('z-index',String(elements.length-i));$(elements[i]).css('position','absolute');$(elements[i]).hide();};if(settings["alternation"]=="sequence"){setTimeout(function(){$.alternation._next(elements,settings,1,0);},settings.timeout);$(elements[0]).show();}else if(settings["alternation"]=="random"){setTimeout(function(){do{current=Math.floor(Math.random()*elements.length);}while(current==0)$.alternation._next(elements,settings,current,0);},settings.timeout);$(elements[0]).show();}else
alert('jQuery: alternation: parameter "alternation" must either be "sequence" or "random"');}};$.alternation._next=function(elements,settings,current,last){if(settings["animation"]=='slide'){$(elements[last]).slideUp(settings.speed,$(elements[current]).slideDown(settings.speed));}else if(settings["animation"]=='fade'){$(elements[last]).fadeOut(settings.speed);$(elements[current]).fadeIn(settings.speed);}else
alert('jQuery: alternation: parameter "animation" must either be "slide" or "fade"');if(settings["alternation"]=="sequence"){if((current+1)<elements.length){current=current+1;last=current-1;}else{current=0;last=elements.length-1;}}else if(settings["alternation"]=="random"){last=current;while(current==last)current=Math.floor(Math.random()*elements.length);}else
alert('jQuery: alternation: parameter "alternation" must either be "sequence" or "random"');setTimeout((function(){$.alternation._next(elements,settings,current,last);}),settings.timeout);};})(jQuery);(function($){$.scheduler=function(){this.bucket={};return;};$.scheduler.prototype={schedule:function(){var ctx={"id":null,"time":1000,"repeat":false,"protect":false,"obj":null,"func":function(){},"args":[]};function _isfn(fn){return(!!fn&&typeof fn!="string"&&typeof fn[0]=="undefined"&&RegExp("function","i").test(fn+""));};var i=0;var override=false;if(typeof arguments[i]=="object"&&arguments.length>1){override=true;i++;}if(typeof arguments[i]=="object"){for(var option in arguments[i])if(typeof ctx[option]!="undefined")ctx[option]=arguments[i][option];i++;}if(typeof arguments[i]=="number"||(typeof arguments[i]=="string"&&arguments[i].match(RegExp("^[0-9]+[smhdw]$"))))ctx["time"]=arguments[i++];if(typeof arguments[i]=="boolean")ctx["repeat"]=arguments[i++];if(typeof arguments[i]=="boolean")ctx["protect"]=arguments[i++];if(typeof arguments[i]=="object"&&typeof arguments[i+1]=="string"&&_isfn(arguments[i][arguments[i+1]])){ctx["obj"]=arguments[i++];ctx["func"]=arguments[i++];}else if(typeof arguments[i]!="undefined"&&(_isfn(arguments[i])||typeof arguments[i]=="string"))ctx["func"]=arguments[i++];while(typeof arguments[i]!="undefined")ctx["args"].push(arguments[i++]);if(override){if(typeof arguments[1]=="object"){for(var option in arguments[0])if(typeof ctx[option]!="undefined"&&typeof arguments[1][option]=="undefined")ctx[option]=arguments[0][option];}else{for(var option in arguments[0])if(typeof ctx[option]!="undefined")ctx[option]=arguments[0][option];}i++;}ctx["_scheduler"]=this;ctx["_handle"]=null;var match=String(ctx["time"]).match(RegExp("^([0-9]+)([smhdw])$"));if(match&&match[0]!="undefined"&&match[1]!="undefined")ctx["time"]=String(parseInt(match[1])*{s:1000,m:1000*60,h:1000*60*60,d:1000*60*60*24,w:1000*60*60*24*7}[match[2]]);if(ctx["id"]==null)ctx["id"]=(String(ctx["repeat"])+":"+String(ctx["protect"])+":"+String(ctx["time"])+":"+String(ctx["obj"])+":"+String(ctx["func"])+":"+String(ctx["args"]));if(ctx["protect"])if(typeof this.bucket[ctx["id"]]!="undefined")return this.bucket[ctx["id"]];if(!_isfn(ctx["func"])){if(ctx["obj"]!=null&&typeof ctx["obj"]=="object"&&typeof ctx["func"]=="string"&&_isfn(ctx["obj"][ctx["func"]]))ctx["func"]=ctx["obj"][ctx["func"]];else
ctx["func"]=eval("function () { "+ctx["func"]+" }");}ctx["_handle"]=this._schedule(ctx);this.bucket[ctx["id"]]=ctx;return ctx;},reschedule:function(ctx){if(typeof ctx=="string")ctx=this.bucket[ctx];ctx["_handle"]=this._schedule(ctx);return ctx;},_schedule:function(ctx){var trampoline=function(){var obj=(ctx["obj"]!=null?ctx["obj"]:ctx);(ctx["func"]).apply(obj,ctx["args"]);if(typeof(ctx["_scheduler"]).bucket[ctx["id"]]!="undefined"&&ctx["repeat"])(ctx["_scheduler"])._schedule(ctx);else
delete(ctx["_scheduler"]).bucket[ctx["id"]];};return setTimeout(trampoline,ctx["time"]);},cancel:function(ctx){if(typeof ctx=="string")ctx=this.bucket[ctx];if(typeof ctx=="object"){clearTimeout(ctx["_handle"]);delete this.bucket[ctx["id"]];}}};$.extend({scheduler$:new $.scheduler(),schedule:function(){return $.scheduler$.schedule.apply($.scheduler$,arguments)},reschedule:function(){return $.scheduler$.reschedule.apply($.scheduler$,arguments)},cancel:function(){return $.scheduler$.cancel.apply($.scheduler$,arguments)}});$.fn.extend({schedule:function(){var a=[{}];for(var i=0;i<arguments.length;i++)a.push(arguments[i]);return this.each(function(){a[0]={"id":this,"obj":this};return $.schedule.apply($,a);});}});})(jQuery);(function($){$.extend({_debug$:null,debug:function(onoff){var old_value=($._debug$==true?true:false);$._debug$=(onoff?true:false);return old_value;},log:function(message){if($._debug$==true)console.debug(message);}});$.fn.extend({log:function(message){if($._debug$==true){return this.each(function(){if(typeof message!=="undefined")$.log(message);$.log(this);});}}});$(document).ready(function(){var req=$("html").attr("debug");if(req=="true"||req=="false")$.debug(req=="true"?true:false);});$(document).ready(function(){if(typeof window.console==="undefined"){function object2text(obj){var text=null;if(typeof obj==="undefined")text="[undefined]";else if(typeof obj==="boolean")text=(obj?"true":"false");else if(typeof obj==="number")text=""+obj;else if(typeof obj==="string")text=obj;else if(typeof obj==="function")text=obj;else if(typeof obj==="object"){if(typeof obj.nodeType!=="undefined"){if(obj.nodeType==1){text='&lt;';text+=obj.nodeName.toLowerCase();for(var i=0;i<obj.attributes.length;i++)text+=' '+obj.attributes[i].nodeName.toLowerCase()+'="'+obj.attributes[i].nodeValue+'"';text+='&gt;';}else if(obj.nodeType==2)text=obj.nodeName+'="'+obj.nodeValue;else if(obj.nodeType==3)text=obj.nodeValue;}else if(typeof obj.toJSONString!=="undefined")text=obj.toJSONString();else if(typeof obj.toString!=="undefined")text=obj.toString();}if(text==null)text="[unknown]";return text;};$(document).ready(function(){$("body").append('<div id="jQueryDebug"><ol></ol></div>');$("#jQueryDebug").css("display","none").css("fontFamily","monospace").css("backgroundColor","#ffffff").css("color","#000000").css("padding","10px 0px 10px 0px").css("border","4px solid #666699").css("margin","4px 4px 4px 4px");$("#jQueryDebug ol").css("margin","0px 0px 0px 0px").css("paddingRight","20px");});var names=["log","debug","info","warn","error","assert","dir","dirxml","group","groupEnd","time","timeEnd","count","trace","profile","profileEnd"];window.console={};for(var i=0;i<names.length;i++){window.console[names[i]]=function(msg){$('#jQueryDebug').css("display",$._debug$==true?"block":"none");$('#jQueryDebug ol').append('<li>'+object2text(msg)+'</li>').css;$("#jQueryDebug ol li").css("borderBottom","1px solid #cccccc").css("padding","1px 10px 1px 10px");}}window.console["jQueryDebug"]=true;}});})(jQuery);(function($){if($.browser.safari||navigator.userAgent.match(/Konqueror/i)){$.extend({_xsajax$node:[],_xsajax$nodes:0});}$.extend({getScriptXS:function(){var arg={'url':null,'gc':true,'cb':null,'cb_args':null};if(typeof arguments[0]=="string"){arg.url=arguments[0];if(typeof arguments[1]=="function")arg.cb=arguments[1];}else if(typeof arguments[0]=="object"){for(var option in arguments[0])if(typeof arg[option]!="undefined")arg[option]=arguments[0][option];}var node=$(document.createElement('script')).attr('type','text/javascript').attr('src',arg.url);var node_helper=null;if(arg.gc||arg.cb!==null){var callback=function(){if(arg.cb!==null){var args=arg.cb_args;if(args===null)args=[];else if(!(typeof args==="object"&&args instanceof Array))args=[args];arg.cb.apply(this,args);}if(arg.gc)$(this).remove();};if($.browser.msie){node.get(0).onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded")callback.call(this);};}else if($.browser.safari||navigator.userAgent.match(/Konqueror/i)){$._xsajax$nodes++;var helper='var ctx = jQuery._xsajax$node['+$._xsajax$nodes+'];'+'ctx.callback.call(ctx.node);'+'setTimeout(function () {'+'    jQuery(ctx.node_helper).remove();'+'}, 100);';node_helper=$(document.createElement('script')).attr('type','text/javascript').text(helper);$._xsajax$node[$._xsajax$nodes]={callback:callback,node:node.get(0),node_helper:node_helper.get(0)};}else{$(node).load(callback);}}$('head',document).append(node);if(node_helper!==null){setTimeout(function(){$('head',document).append(node_helper)},100);}}});})(jQuery);
