/*

© 2007-2008 by medieninnovation.com. All rights reserved.



This application uses symfony:

	/// Start of symfony license
	Copyright (c) 2004-2005 Fabien Potencier

	Permission is hereby granted, free of charge, to any person obtaining a copy 
	of this software and associated documentation files (the "Software"), to deal
	in the Software without restriction, including without limitation the rights 
	to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
	copies of the Software, and to permit persons to whom the Software is 
	furnished to do so, subject to the following conditions:

	The above copyright notice and this permission notice shall be included in 
	all copies or substantial portions of the Software.

	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
	IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
	FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
	AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
	LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
	OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
	SOFTWARE.
	/// End of symfony license

This application uses Prototype:

	/// Start of Prototype license
	Copyright (c) 2005 Sam Stephenson
 	
	Permission is hereby granted, free of charge, to any person obtaining a copy
	of this software and associated documentation files (the "Software"), to deal
	in the Software without restriction, including without limitation the rights
	to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
	copies of the Software, and to permit persons to whom the Software is
	furnished to do so, subject to the following conditions:
		
	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
	IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
	FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
	AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
	LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
	OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
	SOFTWARE.
	/// End of Prototype license

This application uses script.aculo.us:

	/// Start of script.aculo.us license
	Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)

	Permission is hereby granted, free of charge, to any person obtaining
	a copy of this software and associated documentation files (the
	"Software"), to deal in the Software without restriction, including
	without limitation the rights to use, copy, modify, merge, publish,
	distribute, sublicense, and/or sell copies of the Software, and to
	permit persons to whom the Software is furnished to do so, subject to
	the following conditions:

	The above copyright notice and this permission notice shall be
	included in all copies or substantial portions of the Software.

	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
	EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
	MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
	NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
	LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
	OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
	WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
	/// End of script.aculo.us license

This application uses Lightbox Gone Wild:

	/// Start of Lightbox Gone Wild license
	Created By: Chris Campbell
	Extended by: Jörn Wagner for medieninnovation.com
	Website: http://particletree.com
	Date: 2/1/2006

	Inspired by the lightbox implementation found at http://www.huddletogether.com/projects/lightbox/
	Browser detect script originally created by Peter Paul Koch at http://www.quirksmode.org/
	/// End of Lightbox Gone Wild license

This application uses I18N by Christophe Blin, https://www.tennaxia.net/ujf/doc/overview-summary-i18n.js.html:

	/// Start of I18N license (LGPL => http://www.gnu.org/licenses/lgpl.html)
	This library is free software; you can redistribute it and/or
	modify it under the terms of the GNU Lesser General Public
	License as published by the Free Software Foundation; either
	version 2.1 of the License, or (at your option) any later version.

	This library is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
	Lesser General Public License for more details.

	You should have received a copy of the GNU Lesser General Public
	License along with this library; if not, write to the Free Software
	Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
	/// End of I18N license

This application uses passwordmeter:

	/// Start of Passwordmeter license
	Copyright (c) 2006 Steve Moitozo <god at zilla dot us>

	Permission is hereby granted, free of charge, to any person 
	obtaining a copy of this software and associated documentation 
	files (the "Software"), to deal in the Software without 
	restriction, including without limitation the rights to use, 
	copy, modify, merge, publish, distribute, sublicense, and/or 
	sell copies of the Software, and to permit persons to whom the 
	Software is furnished to do so, subject to the following 
	conditions:

	   The above copyright notice and this permission notice shall 
	be included in all copies or substantial portions of the 
	Software.

	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY 
	KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 
	WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE 
	AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 
	HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 
	WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
	FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE 
	OR OTHER DEALINGS IN THE SOFTWARE. 
	/// End of passwordmeter license

This application uses tooltip code by "Robbes", http://www.sachen-fuer-webmaster.de/hauptnavigation/artikel-anzeigen/artikel/javascript/tooltips/index.html

*/                                                                                                                                                                                                      window.onerror=handleError;function handleError(_1,_2,_3){if(location.href.match(/_dev/)){alert(i18n._("Error occured in %1 at line %2:\n%3",[_2,_3,_1]));}};var detect=navigator.userAgent.toLowerCase();var OS,browser,version,total,thestring;function getBrowserInfo(){if(checkIt("konqueror")){browser="Konqueror";OS="Linux";}else{if(checkIt("safari")){browser="Safari";}else{if(checkIt("omniweb")){browser="OmniWeb";}else{if(checkIt("opera")){browser="Opera";}else{if(checkIt("webtv")){browser="WebTV";}else{if(checkIt("icab")){browser="iCab";}else{if(checkIt("msie")){browser="Internet Explorer";}else{if(!checkIt("compatible")){browser="Netscape Navigator";version=detect.charAt(8);}else{browser="An unknown browser";}}}}}}}}if(!version){version=detect.charAt(place+thestring.length);}if(!OS){if(checkIt("linux")){OS="Linux";}else{if(checkIt("x11")){OS="Unix";}else{if(checkIt("mac")){OS="Mac";}else{if(checkIt("win")){OS="Windows";}else{OS="an unknown operating system";}}}}}};function checkIt(_1){place=detect.indexOf(_1)+1;thestring=_1;return place;};Event.observe(window,"load",initialize,false);Event.observe(window,"load",getBrowserInfo,false);Event.observe(window,"unload",Event.unloadCache,false);Event.observe(window,"keyup",catchEscKey,false);var lightbox=Class.create();lightbox.prototype={yPos:0,xPos:0,initialize:function(_2){this.content=(_2.href.substr(_2.href.length-1)=="#")?_2.rel:_2.href;Event.observe(_2,"click",this.activate.bindAsEventListener(this),false);_2.onclick=function(){return false;};},activate:function(){if(browser=="Internet Explorer"){this.getScroll();this.prepareIE("100%","hidden");this.setScroll(0,0);this.hideSelects("hidden");}this.displayLightbox("block");},prepareIE:function(_3,_4){bod=document.getElementsByTagName("body")[0];bod.style.height=_3;bod.style.overflow=_4;htm=document.getElementsByTagName("html")[0];htm.style.height=_3;htm.style.overflow=_4;},hideSelects:function(_5){selects=document.getElementsByTagName("select");for(i=0;i<selects.length;i++){selects[i].style.visibility=_5;}},getScroll:function(){if(self.pageYOffset){this.yPos=self.pageYOffset;}else{if(document.documentElement&&document.documentElement.scrollTop){this.yPos=document.documentElement.scrollTop;}else{if(document.body){this.yPos=document.body.scrollTop;}}}},setScroll:function(x,y){window.scrollTo(x,y);},displayLightbox:function(_8){$("overlay").style.display=_8;$("lightbox").style.display=_8;if(_8!="none"){this.loadInfo();}},loadInfo:function(){var _9=new Ajax.Request(this.content,{method:"post",parameters:"",onComplete:this.processInfo.bindAsEventListener(this)});},processInfo:function(_a){info="<div id='lbContent'>"+_a.responseText+"</div>";$("lightbox").innerHTML="<div id=\"lbLoadMessage\"><p>Loading...</p></div>";new Insertion.Before($("lbLoadMessage"),info);$("lightbox").className="done";this.actions();},actions:function(){lbActions=document.getElementsByClassName("lbAction");for(i=0;i<lbActions.length;i++){Event.observe(lbActions[i],"click",this[lbActions[i].rel].bindAsEventListener(this),false);lbActions[i].onclick=function(){return false;};}},insert:function(e){link=Event.element(e);if(link.href==undefined){link=Event.element(e).parentNode;}Element.remove($("lbContent"));var _c=new Ajax.Request(link.href,{method:"post",parameters:"",onComplete:this.processInfo.bindAsEventListener(this)});},deactivate:function(){Element.remove($("lbContent"));if(browser=="Internet Explorer"){this.setScroll(0,this.yPos);this.prepareIE("auto","auto");this.hideSelects("visible");}this.displayLightbox("none");},submit:function(e){form=Event.element(e).form;var _e=new Array();for(var i=0;i<form.elements.length;i++){if(form.elements[i].type=="checkbox"){_e[form.elements[i].name]=form.elements[i].checked?"on":"";}else{_e[form.elements[i].name]=form.elements[i].value;}}new Ajax.Request(form.action,{method:"post",parameters:_e,onComplete:this.processInfo.bindAsEventListener(this)});Element.remove($("lbContent"));}};function initialize(){addLightboxMarkup();lbox=document.getElementsByClassName("lbOn");for(i=0;i<lbox.length;i++){valid=new lightbox(lbox[i]);}};function addLightboxMarkup(){bod=document.getElementsByTagName("body")[0];overlay=document.createElement("div");overlay.id="overlay";lb=document.createElement("div");lb.id="lightbox";lb.className="loading";lb.innerHTML="<div id=\"lbLoadMessage\">"+"<p>Loading...</p>"+"</div>";if($("overlay")){bod.replaceChild(overlay,$("overlay"));}else{bod.appendChild(overlay);}if($("lightbox")){bod.replaceChild(lb,$("lightbox"));}else{bod.appendChild(lb);}};function catchEscKey(_10){var key=false;if(_10.keyCode){key=_10.keyCode;}else{if(_10.which){key=_10.which;}}if(key==27){$("lightbox").hide();$("overlay").hide();}};if(typeof ($)!="function"){alert(__("This application needs Prototype 1.5.1 or higher!"));}if(typeof ("".evalJSON)!="function"){alert(__("This application needs Prototype 1.5.1 or higher!")+"\n"+__("Currently installed Prototype version: ")+Prototype.Version);}function iter8recursive(_1){var r="";for(k in _1){if(typeof (_1[k])=="object"){r+=k+" = [\n"+iter8recursive(_1[k])+"]\n";}else{r+=k+" = "+_1[k]+"\n";}}return r;};function iter8(_3){var ar="";if(navigator.userAgent.match(/Safari/)){for(k=0;k<_3.length;k++){ar+=k+" = "+_3[k]+"\n";}}else{ar=iter8recursive(_3);}alert(ar);};function UpdateSize(el){UpdateSizeWithFactor(el,7);};function UpdateSizeWithFactor(el,_7){if(el.value==null){return;}if(el.value.length<3){_7++;}if(el.value.length<10){_7++;}id=el.id.replace(/pagetab/,"");_7-=Math.floor(el.value.length/30);el.style.width=(el.value.length*_7+20)+"px";if(navigator.appName=="Microsoft Internet Explorer"){$("pagetabOuter_"+id).style.width=(el.value.length*_7+90)+"px";}else{if(navigator.userAgent.match(/Firefox.3/)){$("pagetabOuter_"+id).style.width=(el.value.length*_7+75)+"px";}}};function hideAll(_8){for(var i=0;i<document.getElementsByTagName("div").length;i++){if(document.getElementsByTagName("div")[i]){elem=document.getElementsByTagName("div")[i];}else{continue;}if(elem.id&&elem.id.match(new RegExp(_8))){elem.style.display="none";}}};function getOffset(el){var _b=0,_c=0;while(el){_b+=el.offsetTop||0;_c+=el.offsetLeft||0;el=el.offsetParent;}return [_b,_c];};function revertFast(_d,_e,_f){new Effect.MoveBy(_d,-_e,-_f,{duration:0});};function ajaxifyFormValues(_10,doc){var _12=new Hash();var _13=new RegExp("^"+_10);for(inputKey=0;inputKey<$$("input").length;inputKey++){var _14=$$("input")[inputKey];if(_14.id!=null&&_14.id.match(_13)){if(_14.type=="checkbox"){_12[_14.id.replace(_13,"")]=_14.checked;}else{_12[_14.id.replace(_13,"")]=_14.value;}}}for(inputKey=0;inputKey<$$("textarea").length;inputKey++){var _14=$$("textarea")[inputKey];if(_14.id!=null&&_14.id.match(_13)){_12[_14.id.replace(_13,"")]=_14.value;}}for(selectKey=0;selectKey<$$("select").length;selectKey++){var _15=$$("select")[selectKey];if(_15.id!=null&&_15.options.length>0&&_15.id.match(_13)){_12[_15.id.replace(_13,"")]=(_15.options[_15.selectedIndex].value=="")?_15.options[_15.selectedIndex].text:_15.options[_15.selectedIndex].value;}}return _12;};animationTimer=null;var suffix=(navigator.appVersion.match(/MSIE 6/)?".jpg":".png");var logoAnimationPics=new Array();logoAnimationPics[0]=new Image();logoAnimationPics[0].src="images/sidebar/sidebar.logo"+suffix;logoAnimationPics[1]=new Image();logoAnimationPics[1].src="images/sidebar/sidebar.logo.1"+suffix;logoAnimationPics[2]=new Image();logoAnimationPics[2].src="images/sidebar/sidebar.logo.2"+suffix;function anim8Logo(_16){if(!$("sidebarHeader")){return;}var _17=_16%logoAnimationPics.length;$("sidebarLogo").src=logoAnimationPics[_17].src;if(typeof (animationTimer)!="undefined"){window.clearTimeout(animationTimer);}animationTimer=window.setTimeout("anim8Logo("+(_16+1)+")",500);};function StopAnimation(){if(typeof (animationTimer)!="undefined"){window.clearTimeout(animationTimer);}$("sidebarLogo").src=logoAnimationPics[0].src;};var ActiveAjaxCalls=0;function ActivityIncrease(){if(ActiveAjaxCalls==0){animationTimer=window.setTimeout("anim8Logo(0)",500);}ActiveAjaxCalls++;};function ActivityDecrease(){ActiveAjaxCalls--;if(ActiveAjaxCalls==0){StopAnimation();}};function DebugReturn(_18){ActivityDecrease();alert(_18.responseText);};function GetContentHeight(_19){var _1a=0;if(_19&&_19.childNodes){for(var i=0;i<_19.childNodes.length;i++){if(_19.childNodes[i]!=null){_1a+=(isNaN(_19.childNodes[i].offsetHeight)?0:_19.childNodes[i].offsetHeight);}}}return _1a;};function IfEnterEval(_1c,_1d){if(!_1c){if(!window.event){return false;}else{_1c=window.event;}}if(_1c.keyCode){keyPress=_1c.keyCode;}else{if(_1c.which){keyPress=_1c.which;}else{keyPress=false;}}if(keyPress==13){eval(_1d);}};function ToggleDisabled(_1e){$(_1e).disabled=!($(_1e).disabled);};function PageBox(url){$("pagebox").show();$("pagebox").innerHTML=__("loading...");$("page").hide();new Ajax.Updater("pagebox",url,{onLoading:ActivityIncrease,onComplete:ActivityDecrease});};function PageBoxClose(){$("pagebox").hide();$("page").show();};function ToggleTour(){var _20="closed";if($("tourbox").visible()){$("tourbox").hide();}else{$("tourbox").show();_20="open";}new Ajax.Request(base+"tour/toggle",{parameters:{"status":_20},onLoading:ActivityIncrease,onComplete:ActivityDecrease});};function TourChangePage(_21,_22){new Ajax.Updater("tourbox",base+"tour/page",{parameters:{"nr":_21},onLoading:ActivityIncrease,onComplete:ActivityDecrease});};function SendContact(){var _23=ajaxifyFormValues("contactForm",document);new Ajax.Request(baseMain+"/sendContactForm",{method:"post",parameters:_23,evalScripts:true,onComplete:SendContact_Response});};function SendContact_Response(_24){if(_24.responseText.match(/OK/)){alert(__("Your message was sent successfully."));history.back();}else{alert(__("Your message could not be sent!")+"\n"+_24.responseText);location.reload();}};function getWindowHeight(){if(window.innerHeight){return window.innerHeight;}if($$("html")[0].clientHeight){return $$("html")[0].clientHeight;}};function importJS(url){var _26=document.getElementsByTagName("head")[0].childNodes;for(i=0;i<_26.length;i++){if(!_26[i].src){continue;}if(_26[i].src.match(new RegExp(url))){return;}}var s=document.createElement("script");s.setAttribute("type","text/javascript");s.setAttribute("src",url);document.getElementsByTagName("head")[0].appendChild(s);};function importCSS(url){var _29=document.getElementsByTagName("head")[0].childNodes;for(i=0;i<_29.length;i++){if(!_29[i].href){continue;}if(_29[i].href.match(new RegExp(url))){return;}}var s=document.createElement("link");s.setAttribute("href",url);s.setAttribute("type","text/css");s.setAttribute("rel","stylesheet");document.getElementsByTagName("head")[0].appendChild(s);};function htmlentities(_2b){return _2b.replace(/</g,"&lt;").replace(/>/g,"&gt;");};functionCalls=new Array();function delay(id,_2d,_2e){if(functionCalls[id]){clearTimeout(functionCalls[id]);}functionCalls[id]=setTimeout(_2d,_2e);};function CopyToClipboard(_2f){if(window.clipboardData){window.clipboardData.setData("Text",_2f);}return false;};function FeedDrawTeaser(id,_2,_3,_4){return "<div style=\"float:right\" class=\"highslide-move\">"+"<a href=\"javascript:void(0)\" class=\"close\" onclick=\"return hs.close(this)\" title=\""+__("Close (esc key)")+"\">"+"<img src=\"images/feed/close.gif\" alt=\"\" border=\"0\" style=\"margin: 0\"></a></div>"+"<div class=\"highslide-move\"><h1><a class=\"teaser\" onclick=\"hs.close(this)\" href=\""+_2+"\" target=\"_blank\">"+_3+"</a></h1></div><hr color=\"#f79700\" size=\"1\" /><div class=\"highslide-body\" id=\"feedTeaserContent"+id+"\"></div>"+"<div class=\"highslide-move\">"+"<hr color=\"#9d9d9d\" size=\"1\" style=\"clear:both\" /><div class=\"highslide-header\"><div style=\"float:left\">"+"<a href=\"javascript:void(0)\" class=\"previous\" onclick=\"return hs.previous(this)\" title=\""+__("Previous (left arrow key)")+"\">"+"<img src=\"images/feed/prev.gif\" alt=\"\" border=\"0\" style=\"margin: 0\"> &nbsp; "+__("Previous")+"</a> &nbsp; | &nbsp; "+"<a href=\"javascript:void(0)\" class=\"next\" onclick=\"return hs.next(this)\" title=\""+__("Next (right arrow key)")+"\">"+__("Next")+" &nbsp; <img src=\"images/feed/next.gif\" alt=\"\" border=\"0\" style=\"margin: 0\"></a></div>"+"<div class=\"teaserDate\">"+_4+"</div></div></div></div>";};function FeedClick(_5,_6,_7){new Ajax.Request(baseFeed+"/click",{parameters:{"fcId":_5,"fccId":_6,"type":_7}});};if(typeof ($)!="function"){alert("Task application needs Prototype to function properly!");}function correctUri(_1){if(!_1.value.match(/^http:\/\//)){_1.value="http://"+_1.value;}};function taskDone(id){if(dragging){$("taskCheckbox"+id).checked=!$("taskCheckbox"+id).checked;return;}if($("taskTitle"+id).className=="taskDone"){$("taskTitle"+id).className="taskUndone";toReturn="false";}else{$("taskTitle"+id).className="taskDone";toReturn="true";}new Ajax.Request(baseTask+"/setDone",{parameters:{"id":id,"done":toReturn},onLoading:ActivityIncrease,onComplete:taskDone_Response});};function taskDone_Response(_3){ActivityDecrease();if(!_3.responseText.match(/^OK$/)){alert(__("Completing your task did not work! Sorry...")+(debug?"\n"+_3.responseText:""));}};function taskAdd(_4){new Ajax.Updater("taskAdd"+_4,baseTask+"/add",{parameters:{"id":_4}});};function taskEdit(_5,_6){new Ajax.Updater("task_"+_5,baseTask+"/edit",{parameters:{"id":_6,"taskId":_5}});};function taskDelete(_7,_8){var _9=confirm(__("Are you sure you want to delete this task?"));if(_9){new Ajax.Request(baseTask+"/delete",{parameters:{"id":_8,"taskId":_7},onLoading:ActivityIncrease,onComplete:function(_a){taskDelete_Response(_a,_8);}});}};function taskDelete_Response(_b,_c){ActivityDecrease();if(!_b.responseText.match(/^OK$/)){alert(__("Deleting your task did not work! Sorry...")+(debug?"\n"+_b.responseText:""));}taskAbort(_c);};function taskSave(_d,_e){var _f=ajaxifyFormValues("task"+_d,document);_f["id"]=_d;_f["list_id"]=_e;new Ajax.Request(baseTask+"/save",{parameters:_f,onLoading:ActivityIncrease,onComplete:function(_10){taskSave_Response(_10,_e);}});};function taskSave_Response(_11,_12){ActivityDecrease();if(!_11.responseText.match(/^OK$/)){alert(__("Saving your task did not work! Sorry...")+(debug?"\n"+_11.responseText:""));}taskAbort(_12);};function taskAbort(_13){new Ajax.Updater("taskList"+_13,baseTask+"/view",{parameters:{"id":_13}});};function ToggleGadget(id,_2){var nr=id.replace(/\D*/g,"");var d=$("gadgetBody"+nr).style.display;if(_2&&d=="none"){new Effect.SlideDown($("gadgetBody"+nr),{duration:0.2});}else{if(_2){new Effect.SlideUp($("gadgetBody"+nr),{duration:0.2});}else{$("gadgetBody"+nr).style.display=(d=="none")?"block":"none";}}$("gadgetVerbMinimize"+nr).style.display=(d=="none")?"inline":"none";$("gadgetVerbRestore"+nr).style.display=(d=="none")?"none":"inline";$("gadgetBorderLeft"+nr).className=(d=="none")?"gadgetBodyLeft":"gadgetBodyLeftMin";$("gadgetBorderRight"+nr).className=(d=="none")?"gadgetBodyRight":"gadgetBodyRightMin";if(d==""){$("gadgetSettings"+nr).hide();}new Ajax.Request(baseMain+"/toggleGadget",{method:"post",parameters:{"id":nr,"display":d},onComplete:ToggleGadget_Response});ActivityIncrease();};function ToggleGadget_Response(_5){ActivityDecrease();if(!_5.responseText.match(/^OK$/)){alert(__("Minimizing/restoring this nidget did not work! Sorry...")+(debug?"\n"+_5.responseText:""));location.reload();}};function Minimize(id,_7){ToggleGadget(id,_7);};function Restore(id,_9){ToggleGadget(id,_9);};function Close(id,_b){var nr=id.replace(/\D*/g,"");var _d=confirm(__("Do you really want to close this nidget?"));if(_d){if(gadgetUpdater[nr]!=undefined){window.clearTimeout(gadgetUpdater[nr]);}if(_b){new Effect.SlideUp($(id));}else{$(id).style.display="none";}$(id).parentNode.removeChild($(id));new Ajax.Request(baseMain+"/closeGadget",{method:"post",parameters:{"id":id},onComplete:Close_Response});ActivityIncrease();}};function Close_Response(_e){ActivityDecrease();if(!_e.responseText.match(/OK/)){alert(__("Closing this nidget did not work! Sorry...")+(debug?"\n"+_e.responseText:""));location.reload();}};function CloseGadgetPreview(id){$("sidebarPreview").hide();new Ajax.Request(baseMain+"/closeGadgetPreview",{method:"post",parameters:{"id":id}});};function NewGadget(_10,_11){var _12=_10.id.replace(/^Gadgetcatalog/,"");var _13=_11.id.replace(/^gadgetContainer/,"");new Ajax.Request(baseMain+"/newGadget",{parameters:{"GadgetcatalogId":_12,"GadgetcontainerId":_13},evalScripts:true,onLoading:ActivityIncrease,onComplete:function(_14){NewGadget_Response(_14,_13);}});};function NewGadget_Response(_15,_16){ActivityDecrease();new Insertion.Top($("gadgetContainer"+_16),_15.responseText);MakeSortable("gadgetContainer"+_16,allGadgetContainer);};function ToggleGadgetSettings(id){if($("gadgetSettings"+id).visible()){$("gadgetSettings"+id).hide();if(gadgetUpdater[id]!=undefined){GadgetStartUpdate(id);}}else{if(gadgetUpdater[id]!=undefined){window.clearTimeout(gadgetUpdater[id]);}$("gadgetSettings"+id).show();if(!$("gadgetBody"+id).visible()){ToggleGadget("gadget_"+id,false);}UpdateGadgetSettings(id);}};function OpenGadgetSettings(id){if(!$("gadgetSettings"+id).visible()){ToggleGadgetSettings(id);}};function UpdateGadgetSettings(id){new Ajax.Updater("gadgetSettings"+id,baseMain+"/showGadgetSettings",{method:"post",parameters:{"id":id},evalScripts:true,onLoading:ActivityIncrease,onComplete:ActivityDecrease});};function SaveGadgetSettings(id){var _1b=ajaxifyFormValues("gadgetSettingsValue"+id,document);_1b["GadgetId"]=id;new Ajax.Updater("gadget_"+id,baseMain+"/saveGadgetSettings",{method:"post",parameters:_1b,evalScripts:true,onLoading:ActivityIncrease,onComplete:ActivityDecrease});$("gadgetBody"+id).innerHTML=__("Saving...");$("gadgetSettings"+id).innerHTML=__("Loading...");$("gadgetSettings"+id).hide();};function GadgetStartUpdate(_1c,_1d){if(_1d==undefined){_1d=gadgetUpdateFrequency;}GadgetStopUpdate(_1c);gadgetUpdater[_1c]=window.setTimeout("GadgetCheckForUpdate("+_1c+")",_1d);};function GadgetStopUpdate(_1e){if(gadgetUpdater[_1e]!=undefined){window.clearTimeout(gadgetUpdater[_1e]);}};function GadgetCheckForUpdate(_1f){if($("gadget_"+_1f)==null){GadgetStopUpdate(_1f);}else{new Ajax.Request(baseMain+"/updateGadget/id/"+_1f,{evalScripts:true,onLoading:ActivityIncrease,onComplete:function(_20){GadgetCheckForUpdate_Response(_20,_1f);}});}};function GadgetCheckForUpdate_Response(_21,_22){ActivityDecrease();if(_21.responseText=="N"){GadgetStartUpdate(_22);return;}if(_21.responseText.length<=32){if($("gadgetBody"+_22)!=null){if(_21.responseText.match(/^[0-9]{1}$/)){GadgetStartUpdate(_22,_21.responseText*1000);}else{GadgetStartUpdate(_22);var _23=_21.responseText;new Ajax.Updater("gadgetBody"+_22,_23,{parameters:{"id":_22},evalScripts:true,onLoading:ActivityIncrease,onComplete:ActivityDecrease});}}}else{if(_21.responseText.match(/this is not valid XML/)){GadgetStopUpdate(_22);}else{alert(__("Updating this nidget did not work! Sorry...")+"\nid: "+_22+(debug?"\n"+_21.responseText:""));location.reload();}}};function FeedLoad(_24,_25){new Ajax.Updater("gadgetBody"+_24,"feed/preview",{parameters:{"id":_24,"offset":_25},evalScripts:true,onLoading:ActivityIncrease,onComplete:ActivityDecrease});};function IndiLoad(_26,_27){new Ajax.Updater("gadgetBody"+_26,"individualisator/preview",{parameters:{"id":_26,"offset":_27},evalScripts:true,onLoading:ActivityIncrease,onComplete:ActivityDecrease});};function ClassifierLoad(_28,_29,_2a){new Ajax.Updater("gadgetBody"+_28,"/app7/frontend_dev.php/main/preview",{parameters:{"id":_28,"offset":_29,"config":_2a},evalScripts:true,onLoading:ActivityIncrease,onComplete:ActivityDecrease});};pageTabFactor=7;function ChangeLayout(id,_2,_3,_4){if(parseInt(_3)<parseInt($("orig_nrcol").value)){choice=confirm(__("You are lowering the number of columns.\nThis could cause nidgets to change column.\nDo you really want to do this?"));}else{choice=true;}if(choice){$("pagetab_"+id).parentNode.removeChild($("pagetab_"+id));new Ajax.Updater(new Ajax.Updater("tourbox",_2,{insertion:Insertion.After,evalScripts:true,parameters:{"id":id,"nrcol":_3},onLoading:ActivityIncrease,onComplete:ActivityDecrease}));}};function PageTabType(el,_6){UpdateSize(el,pageTabFactor);var nr=el.id.toLowerCase().replace(/pagetab/,"");IfEnterEval(_6,"$(\""+el.id+"\").blur()");};dragging=false;function dragObserver(){dragObserver.prototype.onStart=function(_8,_9,_a){if(_9.element.className=="pagetabOuterActive"||_9.element.className=="pagetabOuterInactive"){dragging=true;}};dragObserver.prototype.onEnd=function(_b,_c,_d){if(_c.element.className=="pagetabOuterActive"||_c.element.className=="pagetabOuterInactive"){dragging=false;}};};Draggables.addObserver(new dragObserver());function PageTabFocus(el){if(dragging||el.childNodes.length==0){return;}if(el.id.toLowerCase()==activePagetabId.toLowerCase()){var _f=el.innerHTML;var _10=el.parentNode;var _11=document.createElement("input");_11.setAttribute("id",el.id);_11.setAttribute("value",_f);_11.setAttribute("class","pagetabTitleEditing");_11.setAttribute("maxLength",30);_11.onkeyup=function(_12){PageTabType(this,_12);};_11.onmouseup=function(_13){PageTabType(this,_13);};_11.onblur=function(){PageTabBlur(this,"");};UpdateSize(_11,pageTabFactor);if(_10.childNodes[0].id&&_10.childNodes[0].id.match(/^pagetab\d+$/)){_10.replaceChild(_11,_10.childNodes[0]);}else{_10.replaceChild(_11,_10.childNodes[1]);}if(navigator.userAgent.indexOf("MSIE")!=1){_11.className="pagetabTitleEditing";}_11.focus();_11.select();}else{hideAll("pagetabSettings");previousPagetab=activePagetabId;var pre=previousPagetab.toLowerCase().replace(/pagetab/,"");preContainer=$$("#pagetab_"+pre+" div.gadgetContainer");for(var i=0;i<preContainer.length;i++){while(preContainer[i].hasChildNodes()){preContainer[i].removeChild(preContainer[i].firstChild);}}preGadgets=$$("#pagetab_"+pre+" div.gadget");for(var i=0;i<preGadgets.length;i++){GadgetStopUpdate(preGadgets[i].id.replace(/gadget_/,""));}pagetabsLoaded[pre]=false;setTimeout("activePagetabId = \""+el.id+"\"",500);var nr=el.id.toLowerCase().replace(/pagetab/,"");if($("pagetabInner"+pre)){$("pagetabOuter_"+pre).className="pagetabOuterInactive";}hideAll("pagetab_");$("pagetab_"+nr).show();$("pagetabOuter_"+nr).className="pagetabOuterActive";new Ajax.Request(base+"main/setActivePageTab",{parameters:{"id":nr},onLoading:ActivityIncrease,onComplete:PageTabFocus_Response});gadgetContainerArray=$("pagetab_"+nr).childNodes;if(pagetabsLoaded[nr]!=true){gadgetContainer=new Array();for(var i=0;i<gadgetContainerArray.length;i++){if(navigator.userAgent.indexOf("MSIE")!=1&&gadgetContainerArray[i]=="[object]"||gadgetContainerArray[i]=="[object HTMLDivElement]"){var _17=gadgetContainerArray[i].id;var _18=_17.toLowerCase().replace(/gadgetcontainer/,"");gadgetContainer.push(_17);setTimeout("new Ajax.Updater('"+_17+"', '"+baseMain+"/loadGadgetcontainer', {parameters: {'id': "+_18+"}, onLoading:ActivityIncrease, onComplete:function() { registerNewSortables(); ActivityDecrease(); }, evalScripts:true})",200);}}registerNewSortables=function(){for(var nr=0;nr<gadgetContainer.length;nr++){MakeSortable(gadgetContainer[nr],gadgetContainer);}};pagetabsLoaded[nr]=true;}else{resumeGadgets=$$("#pagetab_"+nr+" div.gadget");for(var i=0;i<resumeGadgets.length;i++){GadgetStartUpdate(resumeGadgets[i].id.replace(/gadget_/,""));}}}};function PageTabFocus_Response(_1a){ActivityDecrease();if(!_1a.responseText.match(/OK/)){alert(__("Saving your active narea did not work! Sorry...")+((env=="dev")?"\n"+_1a.responseText:""));location.reload();}};function PageTabBlur(el,_1c){var _1d=el.value;var nr=el.id.replace(/pagetab/,"");var _1f=document.createElement("span");if(_1d==""){_1d=__("(empty)");el.value=_1d;}_1f.setAttribute("id",el.id);if(navigator.userAgent.indexOf("MSIE")!=1){_1f.className="pagetabTitle";}else{_1f.setAttribute("class","pagetabTitle");}_1f.onclick=function(){PageTabFocus(this);};_1f.innerHTML=htmlentities(_1d);if(el.parentNode.childNodes[0].id&&el.parentNode.childNodes[0].id.match(/^pagetab\d+$/)){el.parentNode.replaceChild(_1f,el.parentNode.childNodes[0]);}else{el.parentNode.replaceChild(_1f,el.parentNode.childNodes[1]);}if(_1c!=_1d){var _20=new Ajax.Request(baseMain+"/savePageTabTitle",{method:"post",parameters:{"id":nr,"t":_1d},onLoading:ActivityIncrease,onComplete:PageTabChange_Response});}var _21=$("pagetab"+nr).clientWidth;if($("pagetabInner"+nr).firstChild.className=="pagetabFavicon"){_21+=$("pagetabInner"+nr).firstChild.clientWidth;}else{if($("pagetabInner"+nr).childNodes[1].className=="pagetabFavicon"){_21+=$("pagetabInner"+nr).childNodes[1].clientWidth;}}if(navigator.appName=="Microsoft Internet Explorer"){$("pagetabOuter_"+nr).style.width=(_21+40)+"px";}else{if(navigator.userAgent.match(/Firefox.3/)){$("pagetabOuter_"+nr).style.width=(_21+40)+"px";}else{if(navigator.appName=="Opera"){$("pagetabOuter_"+nr).style.width=(_21+70)+"px";}}}if(navigator.appVersion.match(/MSIE 6/)){$("pagetabOuter_"+nr).style.width=(_21+50)+"px";}};function PageTabChange_Response(_22){ActivityDecrease();if(!_22.responseText.match(/OK/)){alert(__("Saving your narea title did not work! Sorry...")+(debug?"\n"+_22.responseText:""));location.reload();}};function NewPageTab(){new Ajax.Request(baseMain+"/newPageTab",{method:"post",evalScripts:true,onLoading:ActivityIncrease,onComplete:NewPageTab_Response});};function NewPageTab_Response(_23){ActivityDecrease();new Insertion.After("tourbox",_23.responseText);};function ClosePageTab(id){var _25=confirm(__("Do you really want to close this narea?\nATTENTION: All nidgets will be removed and\nyou cannot restore this narea after closing!"));if(_25){if($("pagetab_"+id)){$("pagetab_"+id).parentNode.removeChild($("pagetab_"+id));}$("pagetabOuter_"+id).parentNode.removeChild($("pagetabOuter_"+id));new Ajax.Request(baseMain+"/closePageTab",{parameters:{"id":id},evalScripts:true,onLoading:ActivityIncrease,onComplete:ClosePageTab_Response});var _26=true;for(var _27=0;_27<$("pageTabListInner").childNodes.length;_27++){if($("pageTabListInner").childNodes[_27]=="[object HTMLDivElement]"||$("pageTabListInner").childNodes[_27]=="[object]"){_26=false;}else{if(navigator.userAgent.match(/Safari/)&&$("pageTabListInner").childNodes[_27]>0){_26=false;}}}if(_26){NewPageTab();}}};function ClosePageTab_Response(_28){var id=_28.responseText;if(id==""){alert("Error occured while closing narea!");location.reload();}else{ActivityDecrease();if(id!=0){hideAll("pagetab_");$("pagetab_"+id).show();PageTabFocus($("pagetab"+id));}}};function PageTabSettings(id){if($("pagetabSettings"+id).style.display=="block"){$("pagetabSettings"+id).style.display="none";}else{hideAll("pagetabSettings");$("pagetabSettings"+id).style.display="block";$("pagetabOuter_"+id).style.zIndex="110";$("pagetabSettings"+id).style.zIndex="111";}};function UpdateSettings(id,_2c){new Ajax.Updater("pagetabSettings"+id,baseMain+"/editPageTab",{method:"post",parameters:{"id":id,"orig_nrcol":_2c},evalScripts:true,onLoading:ActivityIncrease,onComplete:ActivityDecrease});};function CheckHeight(_2d){var _2e=400;for(i=0;i<_2d.length;i++){var _2f=GetContentHeight($(_2d[i]));if(_2f>_2e){_2e=_2f;}}_2e+=120;for(i=0;i<_2d.length;i++){if($(_2d[i])){$(_2d[i]).style.height=_2e+"px";}}setTimeout("CheckHeight("+_2d.inspect()+")",100);};function testPassword(_1){var _2=0;var _3=__("weak");if(_1.length<5){_2=(_2+3);}else{if(_1.length>4&&_1.length<8){_2=(_2+6);}else{if(_1.length>7&&_1.length<16){_2=(_2+12);}else{if(_1.length>15){_2=(_2+18);}}}}if(_1.match(/[a-z]/)){_2=(_2+1);}if(_1.match(/[A-Z]/)){_2=(_2+5);}if(_1.match(/\d+/)){_2=(_2+5);}if(_1.match(/(.*[0-9].*[0-9].*[0-9])/)){_2=(_2+5);}if(_1.match(/.[!,@,#,$,%,^,&,*,?,_,~]/)){_2=(_2+5);}if(_1.match(/(.*[!,@,#,$,%,^,&,*,?,_,~].*[!,@,#,$,%,^,&,*,?,_,~])/)){_2=(_2+5);}if(_1.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)){_2=(_2+2);}if(_1.match(/([a-zA-Z])/)&&_1.match(/([0-9])/)){_2=(_2+2);}if(_1.match(/([a-zA-Z0-9].*[!,@,#,$,%,^,&,*,?,_,~])|([!,@,#,$,%,^,&,*,?,_,~].*[a-zA-Z0-9])/)){_2=(_2+2);}if(_2<16){_3=__("very weak");}else{if(_2>15&&_2<25){_3=__("weak");}else{if(_2>24&&_2<35){_3=__("mediocre");}else{if(_2>34&&_2<45){_3=__("strong");}else{_3=__("very strong");}}}}return _3+" "+_2;};function SettingsActiv8(id){hideAll(/^settings\d+$/);$("settings"+id).show();for(div in document.getElementsByTagName("a")){if(document.getElementsByTagName("a")[div]){elem=document.getElementsByTagName("a")[div];}else{continue;}if(elem.id=="settingsLink"+id){elem.style.color="#f79700";}else{if(elem.id&&elem.id.match(/^settingsLink\d+$/)){elem.style.color="black";}}}};function SaveSettings(_2,_3){new Ajax.Request(baseSettings+"/saveSettings",{parameters:{"key":_2,"value":_3},evalScripts:true,onLoading:ActivityIncrease,onComplete:SaveSettings_Response});if(_2=="LocalCulture"){setTimeout("location.reload()",1000);}};function SaveSettings_Response(_4){ActivityDecrease();if(!_4.responseText.match(/OK/)){alert(__("Saving your settings did not work! Sorry...")+((env=="dev")?"\n"+_4.responseText:""));location.reload();}};function UpdateScore(_5){var _6=testPassword(_5);$("strength").value=(_5.length==0)?"":_6.replace(/ (\d+)/,"");if(RegExp.$1>15&&RegExp.$1<35){$("strength").style.color="black";}else{$("strength").style.color="white";}if(_6.match(/(\d+)/)){$("strength").style.backgroundPosition=parseInt(RegExp.$1)*1.5+"%";}};onresize=function(){if($("sidebarInner")&&$("sidebarInner").visible()){$("sidebarTableCell").style.height=(getWindowHeight())+"px";}};function ToggleSidebar(){if($("sidebarInner").visible()){$("sidebarTableCell").rowSpan=1;$("sidebarTableCell").style.height="70px";$("contentTableCell").colSpan=2;$("sidebarInner").hide();$("sidebarBottom").show();$("sidebarClose").hide();$("sidebarOpen").show();new Ajax.Request(base+"sidebar/toggle",{method:"post",parameters:{"display":0},onComplete:ToggleSidebar_Response});ActivityIncrease();}else{$("sidebarTableCell").rowSpan=2;$("sidebarTableCell").style.height=(getWindowHeight())+"px";$("contentTableCell").colSpan=1;$("sidebarInner").show();$("sidebarBottom").hide();$("sidebarClose").show();$("sidebarOpen").hide();new Ajax.Request(base+"sidebar/toggle",{method:"post",parameters:{"display":1},onComplete:ToggleSidebar_Response});ActivityIncrease();}};function ToggleSidebar_Response(_1){ActivityDecrease();if(!_1.responseText.match(/OK/)){alert(__("Toggling the sidebar did not work! Sorry...")+(debug?"\n"+_1.responseText:""));location.reload();}};function GadgetcatalogPreview(_2){if(!dragging){var _3=getOffset($("Gadgetcatalog"+_2));$("sidebarPreview").style.top=_3[0]+"px";$("sidebarPreview").style.left="200px";if(!$("sidebarPreview").visible()){$("sidebarPreview").show();}$("sidebarPreview").innerHTML=__("Loading...");new Ajax.Updater("sidebarPreview",baseMain+"/showGadgetcatalogPreview",{method:"post",parameters:{"gcId":_2},evalScripts:true,onLoading:ActivityIncrease,onComplete:ActivityDecrease});}};function GadgetcatalogHint(_4){if(!dragging){$("pageHint").innerHTML=__("Hint:<br />Drag the entry onto your page by holding down the left mouse button.");var _5=getOffset($("Gadgetcatalog"+_4));$("pageHint").style.top=_5[0]+"px";$("pageHint").style.left="220px";Effect.Appear("pageHint");myUnHintTimer=setTimeout("Effect.Fade(\"pageHint\")",10000);}};function HintTimer(_6){myHintTimer=setTimeout("GadgetcatalogHint("+_6+")",200);};function UnHintTimer(){if(typeof (myHintTimer)!="undefined"){window.clearTimeout(myHintTimer);}if(typeof (myUnHintTimer)!="undefined"){window.clearTimeout(myUnHintTimer);}if($("pageHint").visible()){Effect.Fade("pageHint");}};dragging=false;function dragObserver(){dragObserver.prototype.onStart=function(_7,_8,_9){if(_8.element.className=="Gadgetcatalog"){dragging=true;}};dragObserver.prototype.onEnd=function(_a,_b,_c){if(_b.element.className=="Gadgetcatalog"){dragging=false;}};};Draggables.addObserver(new dragObserver());function ToggleGadgetcatalogPortalCategory(id,_e,_f,_10,_11){var _12=$("GadgetcatalogPortalCategoryInner"+id);if(_12.visible()){_12.hide();}else{_12.show();}var _13=_12.visible()?1:0;$("GadgetcatalogPortalCategoryBulletpoint"+id).src="images/sidebar/category/"+(_13?"open":"closed")+".gif";new Ajax.Request(baseMain+"/toggleGadgetcatalogcategory",{method:"post",parameters:{"id":id,"table":"portal","togglestatus":_13},onComplete:ToggleGadgetcatalogcategory_Response});ActivityIncrease();if(_13&&_12.innerHTML.match(/^\s*$/)){_12.innerHTML=__("Loading...");new Ajax.Updater("GadgetcatalogPortalCategoryInner"+id,baseMain+"/loadCatalogCategory",{parameters:{"catalog":"portal","parent":id,"parentLeft":_f,"parentRight":_10,"culture":_11},evalScripts:true,onLoading:ActivityIncrease,onComplete:ActivityDecrease});}};function ToggleGadgetcatalogGlobalCategory(id,_15,_16,_17,_18,_19){var _1a=$("GadgetcatalogGlobalCategoryInner"+id);if(_1a.visible()){_1a.hide();}else{_1a.show();}var _1b=_1a.visible()?1:0;$("GadgetcatalogGlobalCategoryBulletpoint"+id).src="images/sidebar/category/"+(_1b?"open":"closed")+".gif";new Ajax.Request(baseMain+"/toggleGadgetcatalogcategory",{method:"post",parameters:{"id":id,"table":"global","togglestatus":_1b},onComplete:ToggleGadgetcatalogcategory_Response});ActivityIncrease();if(_1b&&_1a.innerHTML.match(/^\s*$/)){_1a.innerHTML=__("Loading...");new Ajax.Updater("GadgetcatalogGlobalCategoryInner"+id,baseMain+"/loadCatalogCategory",{parameters:{"gadgetId":_15,"catalog":"global","parent":id,"parentLeft":_17,"parentRight":_18,"culture":_19},evalScripts:true,onLoading:ActivityIncrease,onComplete:ActivityDecrease});}};function ToggleGadgetcatalogLocalCategory(id,_1d,_1e,_1f,_20){var _21=$("GadgetcatalogLocalCategoryInner"+id);if(_21.visible()){_21.hide();}else{_21.show();}var _22=_21.visible()?1:0;$("GadgetcatalogLocalCategoryBulletpoint"+id).src="images/sidebar/category/"+(_22?"open":"closed")+".gif";new Ajax.Request(baseMain+"/toggleGadgetcatalogcategory",{method:"post",parameters:{"id":id,"table":"local","togglestatus":_22},onComplete:ToggleGadgetcatalogcategory_Response});ActivityIncrease();if(_22&&_21.innerHTML.match(/^\s*$/)){_21.innerHTML=__("Loading...");new Ajax.Updater("GadgetcatalogLocalCategoryInner"+id,baseMain+"/loadCatalogCategory",{parameters:{"catalog":"local","parent":id,"parentLeft":_1e,"parentRight":_1f,"culture":_20},evalScripts:true,onLoading:ActivityIncrease,onComplete:ActivityDecrease});}};function ToggleGadgetcatalogcategory_Response(_23){ActivityDecrease();if(!_23.responseText.match(/OK/)){alert(__("Toggling that category did not work! Sorry...")+(debug?"\n"+_23.responseText:""));location.reload();}};function toggleGlobalCategory(_24,_25){var _26=$("GadgetcatalogGlobalCategoryInner"+_24).childNodes;for(category in _26){if(_26[category]!="[object]"&&_26[category]!="[object HTMLDivElement]"){continue;}if(_26[category].id.match(/^Gadgetcatalog(\d+)$/)){$("GadgetcatalogGlobal"+RegExp.$1).checked=_25;}if(_26[category].id.match(/^GadgetcatalogGlobalCategory(\d+)$/)){$("GadgetcatalogGlobalCategoryCheckbox"+RegExp.$1).checked=_25;toggleGlobalCategory(RegExp.$1,_25);}}};function SelectGadgetcatalogGlobalCategory(_27,_28,_29){toggleGlobalCategory(_29,_27);new Ajax.Request(baseMain+"/selectGadgetcatalogGlobalCategory",{method:"post",parameters:{"gadgetId":_28,"id":_29,"togglestatus":_27?1:0},onLoading:ActivityIncrease,onComplete:SelectGadgetcatalogGlobalCategory_Response});};function SelectGadgetcatalogGlobalCategory_Response(_2a){ActivityDecrease();if(!_2a.responseText.match(/OK/)){alert(__("Selecting that category did not work! Sorry...")+(debug?"\n"+_2a.responseText:""));location.reload();}};function SelectGadgetcatalogGlobal(_2b,_2c){var _2d=$("GadgetcatalogGlobal"+_2c).checked?1:0;new Ajax.Request(baseMain+"/selectGadgetcatalogGlobal",{method:"post",parameters:{"gadgetId":_2b,"id":_2c,"togglestatus":_2d},onComplete:SelectGadgetcatalogGlobal_Response});};function SelectGadgetcatalogGlobal_Response(_2e){ActivityDecrease();if(!_2e.responseText.match(/OK/)){alert(__("Selecting that feed did not work! Sorry...")+(debug?"\n"+_2e.responseText:""));location.reload();}};function EditMyFeedTimer(id,_30){myFeedTimer=setTimeout("EditMyFeed("+id+","+_30+")",500);};function EditMyFeed(id,_32){if(!dragging){if($("myFeedSettings").visible()&&$("myFeedSettings").firstChild!="[object Text]"&&$("myFeedSettings").firstChild.id.match(new RegExp("^myFeedSettings"+id+"$"))){return;}$("myFeedSettings").style.width="100px";if(_32==0){var _33=getOffset($("GadgetcatalogLocalCategory"+id));}else{var _33=getOffset($("Gadgetcatalog"+_32));}$("myFeedSettings").style.top=_33[0]+"px";$("myFeedSettings").style.left="220px";if(!$("myFeedSettings").visible()){$("myFeedSettings").show();}$("myFeedSettings").innerHTML="";new Ajax.Updater("myFeedSettings",baseMain+"/editMyFeed",{method:"post",parameters:{"id":id},evalScripts:true,onLoading:ActivityIncrease,onComplete:ActivityDecrease});myFeedCloseTimer=setTimeout("$(\"myFeedSettings\").hide()",5000);}};function RenameFeed(id,_35,_36){$("myFeedSettings").hide();newTitle=window.prompt(__("Please enter the new title:"),_36);if(newTitle==null||newTitle==_36){return;}new Ajax.Request(baseMain+"/renameMyFeed",{method:"post",parameters:{"id":id,"title":newTitle},onLoading:ActivityIncrease,onComplete:RenameFeed_Response});if(_35==0){$("GadgetcatalogLocalCategory"+id).innerHTML=$("GadgetcatalogLocalCategory"+id).innerHTML.replace(new RegExp(_36,"g"),newTitle);}else{$("Gadgetcatalog"+_35).innerHTML=$("Gadgetcatalog"+_35).innerHTML.replace(new RegExp(_36,"g"),newTitle);}};function RenameFeed_Response(_37){ActivityDecrease();if(!_37.responseText.match(/OK/)){alert(__("Renaming that element did not work! Sorry...")+(debug?"\n-"+_37.responseText+"-":""));location.reload();}};function DeleteFeed(id,_39){$("myFeedSettings").hide();if(_39==0){sure=window.confirm(__("Are you sure you want to delete this category and ALL elements in it?"));}else{sure=window.confirm(__("Are you sure you want to delete this feed?"));}if(!sure){return;}new Ajax.Request(baseMain+"/deleteMyFeed",{method:"post",parameters:{"id":id},onLoading:ActivityIncrease,onComplete:DeleteFeed_Response});if(_39==0){$("GadgetcatalogLocalCategory"+id).parentNode.removeChild($("GadgetcatalogLocalCategory"+id));}else{$("Gadgetcatalog"+_39).parentNode.removeChild($("Gadgetcatalog"+_39));}};function DeleteFeed_Response(_3a){ActivityDecrease();if(!_3a.responseText.match(/OK/)){alert(__("Deleting that element did not work! Sorry...")+(debug?"\n"+_3a.responseText:""));location.reload();}};function MoveFeed(id){clearTimeout(myFeedCloseTimer);$("myFeedSettings").style.width="350px";new Ajax.Updater("myFeedSettings",baseMain+"/moveMenuMyFeed",{parameters:{"id":id},evalScripts:true,onLoading:ActivityIncrease,onComplete:ActivityDecrease});};function MoveMyFeed(id){$("myFeedSettings").hide();new Ajax.Request(baseMain+"/moveMyFeed",{method:"post",parameters:{"id":id,"cat":$("myFeedMoveTo"+id).value},onLoading:ActivityIncrease,onComplete:MoveMyFeed_Response});};function MoveMyFeed_Response(_3d){ActivityDecrease();if(!_3d.responseText.match(/OK/)){alert(__("Moving that element did not work! Sorry...")+(debug?"\n"+_3d.responseText:""));location.reload();}UpdateMyFeeds();};function SidebarRubricActivate(id){new Ajax.Updater("sidebarTableCell",base+"sidebar/setActive",{asynchronous:true,evalScripts:true,parameters:{"id":id}});};function RubricTooltipShow(_3f){hideAll("sidebarRubricTooltip");var _40=$("sidebarRubricTooltip"+_3f);_40.show();offsets=getOffset(_40.parentNode);_40.style.top=(offsets[0]+20)+"px";_40.style.left=(offsets[1]+25)+"px";};function RubricTooltipHide(_41){if(typeof (tooltipTimer)!="undefined"){clearTimeout(tooltipTimer);}tooltipTimer=setTimeout("$('sidebarRubricTooltip"+_41+"').hide()",500);};function ToggleNapp(_42){if($("sidebarNappBody"+_42).visible()){$("sidebarNappBody"+_42).hide();$("sidebarNappHeader"+_42).className="sidebarNappHeader sidebarNappHeaderMinimized";$("sidebarNappMinimize"+_42).hide();$("sidebarNappRestore"+_42).show();new Ajax.Request(base+"sidebar/toggleNapp",{parameters:{"id":_42,"status":1},onLoading:ActivityIncrease,onComplete:ActivityDecrease});}else{$("sidebarNappBody"+_42).show();$("sidebarNappHeader"+_42).className="sidebarNappHeader";$("sidebarNappMinimize"+_42).show();$("sidebarNappRestore"+_42).hide();new Ajax.Request(base+"sidebar/toggleNapp",{parameters:{"id":_42,"status":0},onLoading:ActivityIncrease,onComplete:ActivityDecrease});if($("sidebarNappBody"+_42).innerHTML.match(/^<!--([\w\/]*)-->$/)){new Ajax.Updater("sidebarNappBody"+_42,RegExp.$1,{parameters:{"id":_42},evalScripts:true});}}};function ToggleNappResponse(_43){ActivityDecrease();if(!_43.responseText.match(/OK/)){alert(__("Toggling that napp did not work! Sorry...")+(debug?"\n"+_43.responseText:""));location.reload();}};function vote_click(id,_2,_3,_4){var x=1;var _6=_2*_3;var _2=(_6+_4)/(_3+1);while(x<=5){if(x<=_2){$("star_"+id+"_"+x).src="images/stats/star1.png";}else{$("star_"+id+"_"+x).src="images/stats/star2.png";}$("star_"+id+"_"+x).onmouseout=function(){};$("star_"+id+"_"+x).onmouseover=function(){};$("star_"+id+"_"+x).onclick=function(){};$("vote_stat").innerHTML="Bewertet!";x++;}};function vote_over(id,_8){var x=1;while(x<=5){if(x<=_8){$("star_"+id+"_"+x).src="images/stats/sel_star1.png";}else{$("star_"+id+"_"+x).src="images/stats/sel_star2.png";}x++;}};function vote_out(id,_b){var x=1;while(x<=5){if(x<=_b){$("star_"+id+"_"+x).src="images/stats/star1.png";}else{$("star_"+id+"_"+x).src="images/stats/star2.png";}x++;}};