if(typeof _ALVINE_BACKEND=="undefined"){var _ALVINE_BACKEND=false}_ALVINE_BACKEND=(_ALVINE_BACKEND===true)?true:false;var _ALVINE_DHTML=false;var _ALVINE_DOM=false;var _ALVINE_COMPAT_MODE=document.compatMode;var _ALVINE_QUIRKS_MODE=true;if(typeof _ALVINE_DEBUG_MODE=="undefined"){var _ALVINE_DEBUG_MODE=false}_ALVINE_DEBUG_MODE=(_ALVINE_DEBUG_MODE===true)?true:false;var _ALVINE_ERROR_HANDLER="none";var _ALVINE_IE=false;var _ALVINE_IE6=false;var _ALVINE_IE7=false;var _ALVINE_IE8=false;var _ALVINE_NS=false;var _ALVINE_OP=false;var _ALVINE_MAC=false;var _ALVINE_NETSCAPE=false;var _ALVINE_FIREFOX=false;var _ALVINE_FIREFOX2=false;var _ALVINE_FIREFOX3=false;var _ALVINE_FIREFOX4=false;var _ALVINE_SAFARI=false;var _ALVINE_SAFARI1=false;var _ALVINE_SAFARI2=false;var _ALVINE_SAFARI3=false;var _ALVINE_SAFARI4=false;var _ALVINE_CHROME=false;var _ALVINE_CHROME1=false;var _ALVINE_CHROME2=false;var _ALVINE_CHROME3=false;var _ALVINE_CLIENT_OS=null;function initLib(){if(!_ALVINE_DEBUG_MODE&&_ALVINE_ERROR_HANDLER=="none"){window.onerror=function(){return false}}setCookie("AlvineJavascript",true,0,"/");var a=document.compatMode.toString().toLowerCase();_ALVINE_COMPAT_MODE=a;_ALVINE_QUIRKS_MODE=(a=="backcompat")?true:false;if(navigator.appName=="Netscape"){_ALVINE_NETSCAPE=true}if(/Windows/.test(navigator.userAgent)){_ALVINE_CLIENT_OS="win"}else{if(/Macintosh/.test(navigator.userAgent)){_ALVINE_CLIENT_OS="mac"}else{if(/Linux/.test(navigator.userAgent)){_ALVINE_CLIENT_OS="lin"}}}if(navigator.userAgent.indexOf("Chrome")<0){if(/AppleWebKit\/(\S+)\s[\s|\S]+/.test(navigator.userAgent)){_ALVINE_SAFARI=true;var e;var g;if(navigator.userAgent.indexOf("Version")<0){if(/Safari\/(\S+)/.test(navigator.userAgent)){e=RegExp.$1;g=parseInt(e)}if(e<=419){b=1;_ALVINE_SAFARI1=true}else{b=2;_ALVINE_SAFARI2=true}}else{if(/Version\/(\S+)\sSafari\/(\S+)/.test(navigator.userAgent)){g=RegExp.$1;var b=parseInt(g);e=RegExp.$2;if(b==4){_ALVINE_SAFARI4=true}else{if(b==3){_ALVINE_SAFARI3=true}}}}}}if(navigator.userAgent.indexOf("Chrome")>0){if(/AppleWebKit\/(\S+)\s[\s|\S]+/.test(navigator.userAgent)){_ALVINE_CHROME=true;var c;var f=RegExp.$1;var g;if(/Chrome\/(\S+)/.test(navigator.userAgent)){c=RegExp.$1;g=parseInt(c)}if(c<530||g==1){b=1;_ALVINE_CHROME1=true}else{if(c<532||g==2){b=2;_ALVINE_CHROME2=true}else{if(c>=532||g==3){b=3;_ALVINE_CHROME3=true}}}}}if(/Firefox[\/\s](\d+)(\.(\d+)?)/.test(navigator.userAgent)){var b=new Number(RegExp.$1);_ALVINE_FIREFOX=true;if(b==4){_ALVINE_FIREFOX4=true}else{if(b==3){_ALVINE_FIREFOX3=true}else{if(b==2){_ALVINE_FIREFOX2=true}}}}if(navigator.appName=="Netscape"){_ALVINE_NETSCAPE=true}if(document.getElementById){_ALVINE_DHTML=true;_ALVINE_DOM=true}if(window.opera){_ALVINE_OP=true}if(document.all&&!_ALVINE_OP){var d=/MSIE\s(.*?)\;/i;var b=navigator.appVersion.match(d);b=b[1];if(b.substring(0,1)=="6"){_ALVINE_IE6=true}if(b.substring(0,1)=="7"){_ALVINE_IE7=true}if(b.substring(0,1)=="8"){_ALVINE_IE8=true}_ALVINE_DHTML=true;_ALVINE_IE=true}if(document.layers&&!_ALVINE_OP){_ALVINE_DHTML=true;_ALVINE_NS=true}if(navigator.userAgent.indexOf("Mac")!=-1){_ALVINE_MAC=true}if(_ALVINE_DEBUG_MODE&&_ALVINE_ERROR_HANDLER!="none"&&_ALVINE_IE6){window.onerror=handleErrors}}function getElementID(a){return getElement("id",a)}function getElement(b,c,a){if(_ALVINE_DOM){if(b.toLowerCase()=="id"){if(typeof document.getElementById(c)=="object"){return document.getElementById(c)}return void (0)}else{if(b.toLowerCase()=="name"){if(typeof document.getElementsByName(c)=="object"){return document.getElementsByName(c)[a]}return void (0)}else{if(b.toLowerCase()=="tagname"){if(typeof document.getElementsByTagName(c)=="object"||(_ALVINE_OP&&typeof document.getElementsByTagName(c)=="function")){return document.getElementsByTagName(c)[a]}return void (0)}else{return void (0)}}}}else{if(_ALVINE_IE){if(b.toLowerCase()=="id"){if(typeof document.all[c]=="object"){return document.all[c]}return void (0)}else{if(b.toLowerCase()=="tagname"){if(typeof document.all.tags(c)=="object"){return document.all.tags(c)[a]}return void (0)}else{if(b.toLowerCase()=="name"){if(typeof document[c]=="object"){return document[c]}return void (0)}else{return void (0)}}}}else{if(_ALVINE_NS){if(b.toLowerCase()=="id"||b.toLowerCase()=="name"){if(typeof document[c]=="object"){return document[c]}return void (0)}else{if(b.toLowerCase()=="index"){if(typeof document.layers[c]=="object"){return document.layers[c]}return void (0)}else{return void (0)}}}}}return void (0)}function alvine_datagrid_changeColor(b,a){if(!b){return}if(a){b.setAttribute("alvineChangeColor",b.style.backgroundColor)}else{a=b.getAttribute("alvineChangeColor")}b.style.backgroundColor=a}function writeHTML(b,a){if(!b){return void (0)}if(_ALVINE_OP){b.innerHTML=a}else{if(_ALVINE_DOM){if(typeof(b.innerHTML)!="undefined"){b.innerHTML=a}else{}}else{if(_ALVINE_IE){}else{if(_ALVINE_NS){b.document.open();b.document.write(a);b.document.close()}}}}return void (0)}function changeSource(b,a){if(!b){return}if(!a){return}b.src=a}function writeContent(b,a){if(!b){return void (0)}if(_ALVINE_OP){}else{if(_ALVINE_DOM){if(b.firstChild){b.firstChild.nodeValue=a}}else{if(_ALVINE_IE){b.innerText=a}else{if(_ALVINE_NS){b.document.open();b.document.write(a);b.document.close()}}}}return void (0)}function moveElementTo(b,a,c){if(_ALVINE_DOM||_ALVINE_OP){b.style.left=a+"px";b.style.top=c+"px"}else{if(_ALVINE_NS){b.moveTo(a,c)}}}function setVisibilityMode(b,a){if(!b){return void (0)}if(_ALVINE_DOM||_ALVINE_OP){if(a){b.style.visibility="visible";b.style.display="block"}else{b.style.visibility="hidden";b.style.display="none"}}else{if(_ALVINE_IE){if(a){b.style.visibility="visible";b.style.display="block"}else{b.style.visibility="hidden";b.style.display="none"}}else{if(_ALVINE_NS){if(a){b.visibility="show";b.display="block"}else{b.visibility="hide";b.display="none"}}}}return void (0)}function setVisibility(b,a){if(!b){return void (0)}if(_ALVINE_DOM||_ALVINE_OP){if(a){b.style.visibility="visible";b.style.display="block"}else{b.style.visibility="hidden";b.style.display="none"}}else{if(_ALVINE_IE){if(a){b.style.visibility="visible";b.style.display="block"}else{b.style.visibility="hidden";b.style.display="none"}}else{if(_ALVINE_NS){if(a){b.visibility="show";b.style.display="block"}else{b.visibility="hide";b.style.display="none"}}}}return void (0)}function getLeftOfElement(b,c){if(_ALVINE_NS){return b.pageX}if(!c){c="noid"}var a=b.offsetLeft;if(b.id==c){return a}if(b.offsetParent!=null&&b.offsetParent.tagName!="HTML"){a+=getLeftOfElement(b.offsetParent)}return a}function toggleFoldTableRow(c){var a,b;b=getElementID(c);if(!b){return false}if(b){if(b.style.display=="none"||!b.style.display){foldTableRow(b,true)}else{foldTableRow(b,false)}}return true}function foldTableRow(obj,forcedStatus){obj=element_isObject(obj);if(!obj){return}if(forcedStatus){
/*@cc_on @if(!@_jscript || (@_jscript_version >= 5)) @*/
try{obj.style.display="table-row"}catch(e){obj.style.display="block"}
/*@elif(@_jscript_version < 5)
			row.style.display = 'block'; // for IE4
		@end @*/
}else{obj.style.display="none"}return true}function getTopOfElement(b,c){if(_ALVINE_NS){return b.pageY}if(!c){c="noid"}var a=b.offsetTop;if(b.id==c){return a}if(b.offsetParent!=null&&b.offsetParent.tagName!="HTML"){a+=getTopOfElement(b.offsetParent)}return a}function getHeightOfElement(a){if(_ALVINE_NS){return a.height}return a.offsetHeight}function getWidthOfElement(a){if(_ALVINE_NS){return a.width}return a.offsetWidth}function getCookie(a){a=a.replace(/^\s+|\s+$/g,"");values=document.cookie;values=values.split(";");for(var b=0;b<values.length;b++){var c=values[b].split("=");c[0]=c[0].replace(/^\s+|\s+$/g,"");if(a==c[0]){return c[1]}}return""}function setCookie(d,f,b,h,e,g){var c=new Date();c.setTime(c.getTime());if(b){b=b*86400000}var a=new Date(c.getTime()+(b));document.cookie=d+"="+escape(f)+((b)?";expires="+a.toGMTString():"")+((h)?";path="+h:"")+((e)?";domain="+e:"")+((g)?";secure":"")}function alvine_getClientWidth(){return alvine_getRectStruct(window.innerWidth?window.innerWidth:0,document.documentElement?document.documentElement.clientWidth:0,document.body?document.body.clientWidth:0)}function alvine_getClientHeight(){return alvine_getRectStruct(window.innerHeight?window.innerHeight:0,document.documentElement?document.documentElement.clientHeight:0,document.body?document.body.clientHeight:0)}function alvine_getScrollLeft(){return alvine_getRectStruct(window.pageXOffset?window.pageXOffset:0,document.documentElement?document.documentElement.scrollLeft:0,document.body?document.body.scrollLeft:0)}function alvine_getScrollTop(){return alvine_getRectStruct(window.pageYOffset?window.pageYOffset:0,document.documentElement?document.documentElement.scrollTop:0,document.body?document.body.scrollTop:0)}function alvine_getRectStruct(d,b,a){var c=0;if(d){c=d}if(b&&(!c||(c>b))){c=b}return a&&(!c||(c>a))?a:c}function alvineSimpleAjaxRequest(url,id,errorID,appendInputFlag){var url=url;var containerID=(typeof id!="object")?id:id.id;var errorContainerID=(typeof errorID!="object")?errorID:errorID.id;var requestObj=false;var urlData=new Array();var callBacks=new Array();var finalCallBacks=new Array();var urlControlData=new Array();var urlControlID=new Array();var urlStaticParameter="";var urlOneWayParameter="";var appendInput=(appendInputFlag===true)?true:false;this.addToUrl=function(urlPart){url+=","+urlPart};this.addParameter=function(part){if(urlStaticParameter.length>0){urlStaticParameter+="&"}urlStaticParameter+=part};this.addOnWayParameter=function(part){if(urlOneWayParameter.length>0){urlOneWayParameter+="&"}urlOneWayParameter+=part};function checkState(){if(requestObj.readyState!=4){return false}if(requestObj.status==200){return requestObj.responseText}else{errorMsg="Error: "+requestObj.status;if(errorContainerID!=null){obj=getElement("id",errorContainerID);writeHTML(obj,errorMsg);return false}return errorMsg}}this.sendRequest=function(){requestObj=null;if(window.XMLHttpRequest){requestObj=new XMLHttpRequest();if(requestObj.overrideMimeType){requestObj.overrideMimeType("text/html")}}else{if(window.ActiveXObject){try{requestObj=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{requestObj=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}}}if(!requestObj){errorMsg="no ajax";if(errorContainerID!=null){obj=getElement("id",errorContainerID);writeHTML(obj,errorMsg);return false}return false}var parameters=urlStaticParameter;if(parameters.length>0){parameters+="&"}parameters+=urlOneWayParameter;urlOneWayParameter="";for(i=0;i<urlData.length;i++){if(parameters.length>0){parameters+="&"}value=eval(urlData[i]);parameters+="sxx_ajax["+urlData[i]+"]="+value}for(i=0;i<urlControlID.length;i++){if(parameters.length>0){parameters+="&"}value=eval(urlControlData[i]);parameters+="sxx_ajax["+urlControlID[i]+"]="+value}if(parameters.length>0){parameters+="&"}parameters+="r="+(1+10000*(Math.random()));try{requestObj.onreadystatechange=eventHandler;requestObj.open("POST",url,true);requestObj.setRequestHeader("Content-Type","application/x-www-form-urlencoded");requestObj.send(parameters)}catch(e){alert(e)}};this.bindControl=function(key,id){handler="o=getElementID('"+id+"'); if(o) o.value;";urlControlData[urlControlData.length]=handler;urlControlID[urlControlID.length]=key};this.bindVariable=function(key){urlData.push(key)};this.bindCallback=function(callBack,forceExecution){var newEntry=new Object();newEntry.forcedExecution=(forceExecution===true)?true:false;newEntry.cbfunction=callBack;finalCallBacks.push(newEntry)};this.bindObjectCallback=function(callBack){callBacks.push(callBack)};function eventHandler(){var result=checkState();if(result!=false){var obj=getElement("id",containerID);resultContent=result;scriptStartIndex=resultContent.indexOf("<json>");if(scriptStartIndex>=0){scriptEndIndex=resultContent.indexOf("</json>");skript=resultContent.substr(scriptStartIndex+6,scriptEndIndex-scriptStartIndex-6);data=alvine_getParsedJSONObject(skript);for(j=0;j<callBacks.length;j++){callBacks[j]("json",data)}resultContent=resultContent.substr(0,scriptStartIndex)+resultContent.substr(scriptEndIndex+6+1,resultContent.length)}outScript="";var collectorObj=document.createElement("DIV");writeHTML(collectorObj,resultContent);var scriptSegments=collectorObj.getElementsByTagName("SCRIPT");var scriptSegmentSeek=/\<script\s\S+type\=\"text\/javascript\"\S*\>(.*)\<\/script\>/;scriptSegmentSeek.exec(resultContent,"g");if(scriptSegments){for(i=0;i<scriptSegments.length;i++){if(typeof scriptSegments[i]!="object"){continue}var newContent=scriptSegments[i].innerHTML;newContent+=(newContent.substring(-1)!=";")?";":"";outScript+=newContent;if(typeof scriptSegments[i].parentNode=="undefined"){continue}if(typeof scriptSegments[i].parentNode.removeChild!="function"){continue}scriptSegments[i].parentNode.removeChild(scriptSegments[i])}resultContent=collectorObj.innerHTML}scriptStartIndex=resultContent.indexOf("<array>");if(scriptStartIndex>=0){scriptEndIndex=resultContent.indexOf("</array>");skript=resultContent.substr(scriptStartIndex+7,scriptEndIndex-scriptStartIndex-7);data=eval(skript);for(j=0;j<callBacks.length;j++){callBacks[j]("array",data)}resultContent=resultContent.substr(0,scriptStartIndex)+resultContent.substr(scriptEndIndex+7+1,resultContent.length)}scriptStartIndex=resultContent.indexOf("<object>");if(scriptStartIndex>=0){scriptEndIndex=resultContent.indexOf("</object>");skript=resultContent.substr(scriptStartIndex+8,scriptEndIndex-scriptStartIndex-8);data=eval(skript);for(j=0;j<callBacks.length;j++){callBacks[j]("object",data)}resultContent=resultContent.substr(0,scriptStartIndex)+resultContent.substr(scriptEndIndex+8+1,resultContent.length)}if(appendInput){obj.innerHTML+=resultContent}else{writeHTML(obj,resultContent)}if(outScript){eval(outScript)}if(finalCallBacks.length>0){for(j=0;j<finalCallBacks.length;j++){eval(finalCallBacks[j].cbfunction)}}return}if(finalCallBacks.length>0){for(j=0;j<finalCallBacks.length;j++){if(!finalCallBacks[j].forcedExecution){continue}eval(finalCallBacks[j].cbfunction)}}return}}function getViewportHeight(){vpHeight=null;if(document.documentElement.clientHeight){vpHeight=document.documentElement.clientHeight}else{if(window.innerHeight){vpHeight=window.innerHeight}else{if(document.clientHeight){vpHeight=document.clientHeight}else{if(document.body&&document.body.clientHeight){vpHeight=document.body.clientHeight}else{if(document.documentElement.clientHeight){vpHeight=document.documentElement.clientHeigt}else{}}}}}return vpHeight}function getViewportWidth(){vpWidth=null;if(document.documentElement.clientWidth){vpWidth=document.documentElement.clientWidth}else{if(window.innerWidth){vpWidth=window.innerWidth}else{if(document.clientWidth){vpWidth=document.clientWidth}else{if(document.body&&document.body.clientWidth){vpWidth=document.body.clientWidth}else{if(document.documentElement.clientWidth){vpWidth=document.documentElement.clientWidth}else{}}}}}return vpWidth}function handleErrors(d,b,a){var c=null;c="Error: "+d+"\n\nFile:"+b+"\n\nLine:"+a+"\n";alert(c);return true}function ie6ToggleActiveXControls(g){if(!_ALVINE_IE6){return true}g=(g===false)?false:true;var d={};var a=new Array("select");var e;for(e=0;e<a.length;e++){d[a[e]]=document.getElementsByTagName(a[e])}for(var b in d){var c=d[b];for(e=0;e<c.length;e++){if(typeof c[e]!="object"){continue}if(typeof c[e].className=="undefined"){continue}if(g==true){if(c[e].style.visibility!="hidden"){continue}var f=(typeof c[e].alvine_displayInitValue!="undefined")?c[e].alvine_displayInitValue:"visible";element_setVisibility(c[e],f)}else{if(typeof c[e].alvine_displayInitValue=="undefined"){c[e].alvine_displayInitValue=c[e].style.visibility}element_setVisibility(c[e],"hidden")}}}return true}function alvine_getParsedJSONObject(jsonData){try{if(typeof JSON=="undefined"){JSON={};JSON.parse=function(expr){return !(/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(expr.replace(/"(\\.|[^"\\])*"/g,"")))&&eval("("+expr+")")}}}catch(event){}return JSON.parse(jsonData)}function uniqueArray(a){var d={};var c=new Array();for(var b=0;b<a.length;b++){d[a[b]]=true}for(var b in d){c[c.length]=b}return c}function removeFromArray(a,d){var e={};var c=new Array();for(var b=0;b<a.length;b++){if(a[b]==d){continue}e[b]=a[b]}for(var b in e){c[c.length]=e[b]}return c}initLib();function str_replace(c,b,a){if((a==null)||(c==null)){return null}if((a.length==0)||(c.length==0)){return a}if((b==null)||(b.length==0)){b=""}var f=c.length;var e=b.length;var d=a.indexOf(c,0);while(d>=0){a=a.substring(0,d)+b+a.substring(d+f);d=a.indexOf(c,d+e)}return a}function strstr(c,b){if((c==null)||(b==null)){return null}if((c.length==0)||(b.length==0)){return null}if(typeof c.indexOf=="undefined"){return false}var a=c.indexOf(b);if(a<0){return false}return true}function rtrim(a){if(typeof a=="undefined"||typeof a.substr=="undefined"){return a}var b=a.length-1;while(a.substr(b)==" "){if(a.substr(b)!=" "||b<=0){break}a=a.substr(b);b=a.length-1}return a}function ltrim(a){if(typeof a=="undefined"||typeof a.substr=="undefined"){return a}while(a.substr(0,1)==" "){if(a.substr(0,1)!=" "||a.length<=0){break}a=a.substr(1)}return a}function trim(a){ltrim(a);rtrim(a);return a}function js_rand(b,a){if(b>a){return(-1)}if(b==a){return(b)}return(parseInt(b)+parseInt(Math.random()*(parseInt(a)-parseInt(b)+1)))}function js_parable(e,d,f){e=Math.pow(e,2);return(e+(e*d)+f)}function js_acceleration(c,b){var a=(b*Math.PI/180);return(Math.sin(a)*c)}function js_convertPercentage(b,a){return((a/100)*b)}function time_initDateTime(f){var a=new Object();a.year=1970;a.month=0;a.day=1;a.hours=0;a.minutes=0;a.seconds=0;if(typeof f=="object"){var c=new Object();for(var d in a){if(typeof f[d]=="undefined"){c[d]=a[d];continue}var e=f[d];switch(d){default:break;case"month":e=parseInt(f[d])-1;break}c[d]=parseInt(e)}var b=new Date(c.year,c.month,c.day,c.hours,c.minutes,c.seconds)}else{var b=new Date()}return b}function time_getTimestamp(b){var a=time_initDateTime(b);var f=a.getFullYear();var e=a.getMonth()+1;var g=a.getDate();var c=a.getMinutes();var h=a.getHours();var k=a.getSeconds();var d=new Array();d.push(f);d.push(str_pad(e,2,"0","left"));d.push(str_pad(g,2,"0","left"));d.push(str_pad(h,2,"0","left"));d.push(str_pad(c,2,"0","left"));d.push(str_pad(k,2,"0","left"));d=d.join("");return d}function time_getUnixTimestamp(b){var a=(time_getMilliTimestamp(b)/1000);return a}function time_getMilliTimestamp(c){var a=time_initDateTime(c);var b=a.getTime();return b}function alvine_element_createObjectPath(c,b){if(typeof c!="object"){c=document}var d=b.split(".");var a=d.shift();if(typeof c[a]!="object"){c[a]=new Object()}if(d.length>0){alvine_element_createObjectPath(c[a],d.join("."))}return true}if(typeof alvine!="object"){alvine=new Object()}alvine_element_createObjectPath(alvine,"data.cache.elements");function page_onLoad(b,a){obj=window;if(typeof event_add=="undefined"){return false}a=(a===true)?true:false;event_add(obj,"load",b,a);return true}function page_onScroll(b,a){obj=document;if(_ALVINE_IE){obj=window}if(typeof event_add=="undefined"){return false}a=(a===true)?true:false;event_add(obj,"scroll",b,a);return true}function element_get(b,a){var c;if(document.getElementById){if(b=="id"){c=document.getElementById(a)}}else{if(document.all){if(b=="id"){c=document.all[a]}}}return c}function element_addClassName(b,a){return _element_addClassName(b,a," ")}function _element_addClassName(b,a,c){b=element_isObject(b);if(!b){return false}if(typeof c=="undefined"){c=""}b.className+=c+a;return true}function element_removeClassName(b,a,c){b=element_isObject(b);if(!b){return false}if(typeof c=="undefined"){c=""}b.className=str_replace(c+a,"",b.className);return true}function element_replaceClassName(c,b,a){c=element_isObject(c);c.className=str_replace(b,a,c.className);return true}function element_move(d,a,c){d=element_isObject(d);var b=element_getSize(d);a=element_recalcValue2px(a,b.width);c=element_recalcValue2px(c,b.height);a=parseInt(a);c=parseInt(c);element_setLeft(d,a);element_setTop(d,c);return true}function element_center(a){a=element_isObject(a);element_centerX(a);element_centerY(a);return true}function element_centerX(g){g=element_isObject(g);var f=alvine_getViewport();var d=element_getSize(g);var c=new Object();var a=new Object();c.x=parseInt((f.width/2));a.x=parseInt((d.width/2));var b=new Object();b.x=c.x-a.x;var e=element_getPositionY(g);element_move(g,b.x,e);return true}function element_centerY(g){g=element_isObject(g);var f=alvine_getViewport();var d=element_getSize(g);var c=new Object();var a=new Object();c.y=parseInt((f.height/2));a.y=parseInt((d.height/2));var b=new Object();b.y=c.y-a.y;var e=element_getPositionX(g);element_move(g,e,b.y);return true}function element_getAbsolutePositionX(c,d){c=element_isObject(c);var b=element_getPositionX(c);if(_ALVINE_NS){return b}if(!d){d="noid"}if(typeof c.offsetParent!="object"){return b}var a=c.offsetParent;while(a!=null&&typeof a!="undefined"&&a.tagName!="HTML"){b+=element_getPositionX(a);if(a.id==d){return b}a=a.offsetParent}return b}function element_getAbsolutePositionY(c,d){c=element_isObject(c);var b=element_getPositionY(c);if(_ALVINE_NS){return b}if(!d){d="noid"}if(typeof c.offsetParent!="object"){return b}var a=c.offsetParent;while(a!=null&&typeof a!="undefined"&&a.tagName!="HTML"){b+=element_getPositionY(a);if(a.id==d){return b}a=a.offsetParent}return b}function element_getPositionX(a){a=element_isObject(a);if(typeof a.style.position!="undefined"){if(a.style.position=="absolute"&&typeof a.style.left!="undefined"&&a.style.left!=""&&a.style.left!="auto"){return(parseInt(a.style.left))}}if(typeof a.offsetLeft=="number"){return(parseInt(a.offsetLeft))}if(typeof a.clientLeft=="number"){return(parseInt(a.clientLeft))}if(typeof a.layerX=="number"){return(parseInt(a.layerX))}if(typeof a.pageX=="number"){return(parseInt(a.pageX))}return false}function element_getPositionY(a){a=element_isObject(a);if(typeof a.style.position!="undefined"){if(a.style.position=="absolute"&&typeof a.style.top!="undefined"&&a.style.top!=""&&a.style.top!="auto"){return(parseInt(a.style.top))}}if(typeof a.offsetTop=="number"){return(parseInt(a.offsetTop))}if(typeof a.clientTop=="number"){return(parseInt(a.clientTop))}if(typeof a.layerY=="number"){return(parseInt(a.layerY))}if(typeof a.pageY=="number"){return(parseInt(a.pageY))}return false}function element_getScrollPositionX(){if(_ALVINE_IE){var a=0;if(_ALVINE_QUIRKS_MODE&&document.body&&typeof document.body.scrollLeft!="undefined"){a=document.body.scrollLeft}else{if(typeof document.documentElement!="undefined"){if(typeof document.documentElement.scrollLeft!="undefined"){a=document.documentElement.scrollLeft}}}return parseInt(a)}if(typeof window.pageXOffset!="undefined"){return parseInt(window.pageXOffset)}if(typeof window.scrollX!="undefined"){return parseInt(window.scrollX)}return 0}function element_getScrollPositionY(){if(_ALVINE_IE){var a=0;if(_ALVINE_QUIRKS_MODE&&document.body&&typeof document.body.scrollTop!="undefined"){a=document.body.scrollTop}else{if(typeof document.documentElement!="undefined"){if(typeof document.documentElement.scrollTop!="undefined"){a=document.documentElement.scrollTop}}}return parseInt(a)}if(typeof window.pageYOffset!="undefined"){return parseInt(window.pageYOffset)}if(typeof window.scrollY!="undefined"){return parseInt(window.scrollY)}return 0}function element_getScrollPosition(){var a={x:0,y:0};a.x=element_getScrollPositionX();a.y=element_getScrollPositionY();return a}function element_getPosition(b,f,e){b=element_isObject(b);var d;if(!f){var a=element_getPositionX(b);var c=element_getPositionY(b)}else{var a=element_getAbsolutePositionX(b,e);var c=element_getAbsolutePositionY(b,e)}return{x:a,y:c}}function element_setLeft(b,a){b=element_isObject(b);if(!b){return}b.style.position=(b.style.position!="fixed"&&b.style.position!="absolute")?"absolute":b.style.position;a=a+0;b.style.left=a.toString()+"px";return true}function element_setTop(b,a){b=element_isObject(b);b.style.position=(b.style.position!="fixed"&&b.style.position!="absolute")?"absolute":b.style.position;a=a+0;b.style.top=a.toString()+"px";return true}function element_getZIndex(b,a){b=element_isObject(b);if(b.style.zIndex!=null){return b.style.zIndex}return true}function element_setZIndex(b,a){b=element_isObject(b);if(b.style.zIndex!=null){b.style.zIndex=a;return true}return true}function element_setDisplay(b,a){b=element_isObject(b);if(!b){return false}b.style.display=a;return true}function element_setVisibility(b,a){b=element_isObject(b);b.style.visibility=a;return true}function element_isVisible(a){a=element_isObject(a);return(a.style.visibility=="visible")?true:false}function element_resetOpacity(b){b=element_isObject(b);try{if(isDefined(b.style.MozOpacity)){b.style.MozOpacity=1;return true}else{if(isDefined(b.style.opacity)){b.style.opacity=1;return true}else{if(isDefined(b.filters)){if(!isDefined(b.filters.alpha)){b.style.filter="alpha(opacity=100)";return true}b.filters.alpha.opacity=100;return true}else{if(isDefined(b.style.KhtmlOpacity)){b.style.KhtmlOpacity=1;return true}}}}}catch(a){}}function element_setOpacity(d,b){d=element_isObject(d);b=b>100?100:b;b=b<0?b*100:b;b=parseInt(b);b=b<0?0:b;try{if(typeof d.style.opacity!="undefined"){d.style.opacity=b/100}else{if(typeof d.style.MozOpacity!="undefined"){d.style.MozOpacity=b/100}else{if(typeof d.filters!="undefined"&&typeof d.filters!="unknown"){if(d.filters.alpha){var a=element_getComputedStyleProperty(d,"hasLayout");if(!a&&!d.style.zoom){d.style.zoom="1"}d.filters.alpha.opacity=b.toString()}else{d.style.filter="alpha(opacity="+b.toString()+")"}}else{if(typeof d.style.KhtmlOpacity!="undefined"){d.style.KhtmlOpacity=b/100}}}}}catch(c){}return true}function element_getOpacity(c){c=element_isObject(c);if(!c){return 100}if(typeof c.style.opacity!="undefined"&&c.style.opacity!=""){return parseInt(c.style.opacity*100)}if(typeof c.style.MozOpacity!="undefined"&&c.style.MozOpacity!=""){return parseInt(c.style.MozOpacity*100)}if(typeof c.style.KhtmlOpacity!="undefined"&&c.style.KhtmlOpacity!=""){return parseInt(c.style.KhtmlOpacity*100)}if(document.all&&document.all[c.id]&&document.all[c.id].style){if(document.all[c.id].style.opacity){return parseInt(document.all[c.id].style.opacity*100)}if(document.all[c.id].style.MozOpacity){return parseInt(document.all[c.id].style.MozOpacity*100)}if(document.all[c.id].style.KhtmlOpacity){return parseInt(document.all[c.id].style.KhtmlOpacity*100)}}try{if(typeof c.filters!="undefined"&&c.filters!=""){if(c.filters.alpha&&c.filters.alpha.opacity){return parseInt(c.filters.alpha.opacity)}else{var a=element_getComputedStyleProperty(c,"opacity");if(a){return parseInt(a*100)}else{c.style.filter="alpha(opacity=100)";return parseInt(c.filters.alpha.opacity)}}}}catch(b){}var a=element_getComputedStyleProperty(c,"opacity");if(!a){a=element_getComputedStyleProperty(c,"MozOpacity")}if(!a){a=element_getComputedStyleProperty(c,"KhtmlOpacity")}if(a){return parseInt(a*100)}return 100}function element_getSize(b){b=element_isObject(b);var a=new Object();a.width=element_getWidth(b);a.height=element_getHeight(b);return a}function element_getWidth(a){a=element_isObject(a);if(!a){return null}switch(a.tagName){case"TR":return element_getWidth(a.parentNode);break;default:break}if(typeof a.style!="undefined"&&typeof a.style.width!="undefined"&&a.style.width!=null&&a.style.width!=""&&a.style.width!="auto"){return parseInt(a.style.width)}if(typeof a.offsetWidth!="undefined"&&a.offsetWidth!=null&&a.offsetWidth!=""){return parseInt(a.offsetWidth)}if(typeof a.clientWidth!="undefined"&&a.clientWidth!=null&&a.clientWidth!=""){return parseInt(a.clientWidth)}if(typeof a.width!="undefined"&&a.width!=null&&a.width!=""){return parseInt(a.width)}if(typeof a.naturalWidth!="undefined"&&a.naturalWidth!=null&&a.naturalWidth!=""){return parseInt(a.naturalWidth)}if(typeof document.all=="object"){if(typeof document.all[a.id]!="undefined"&&typeof document.all[a.id].offsetWidth!="undefined"&&document.all[a.id].offsetWidth!=null&&document.all[a.id].offsetWidth!=""){return parseInt(document.all[a.id].offsetWidth)}}if(typeof a.style!="undefined"&&typeof a.style.maxWidth!="undefined"&&a.style.maxWidth!=null&&a.style.maxWidth!=""){return parseInt(a.style.maxWidth)}if(typeof a.style!="undefined"&&typeof a.style.minWidth!="undefined"&&a.style.minWidth!=null&&a.style.minWidth!=""){return parseInt(a.style.minWidth)}return 0}function element_getHeight(e){e=element_isObject(e);if(!e){return null}switch(e.tagName){case"TR":var b=e.getElementsByTagName("TD");if(typeof b[0]=="undefined"){return false}var a=0;for(var c in b){if(typeof b[c].tagName=="undefined"){continue}if(b[c].tagName!="TD"){continue}var d=element_getHeight(b[c]);if(d<=a){continue}a=d}return a;break;case"TD":var a=0;for(var c in e.childNodes){if(typeof e.childNodes[c].tagName=="undefined"){continue}a+=element_getHeight(e.childNodes[c])}return a;break}if(typeof e.style!="undefined"&&typeof e.style.height!="undefined"&&e.style.height!=null&&e.style.height!=""&&e.style.height!="auto"){return parseInt(e.style.height)}if(typeof e.offsetHeight!="undefined"&&e.offsetHeight!=null&&e.offsetHeight!=""){return parseInt(e.offsetHeight)}if(typeof e.clientHeight!="undefined"&&e.clientHeight!=null&&e.clientHeight!=""){return parseInt(e.clientHeight)}if(typeof e.height!="undefined"&&e.height!=null&&e.height!=""){return parseInt(e.height)}if(typeof e.naturalHeight!="undefined"&&e.naturalHeight!=null&&e.naturalHeight!=""){return parseInt(e.naturalHeight)}if(typeof document.all=="object"){if(typeof document.all[e.id]!="undefined"&&typeof document.all[e.id].offsetHeight!="undefined"&&document.all[e.id].offsetHeight!=null&&document.all[e.id].offsetHeight!=""){return parseInt(document.all[e.id].offsetHeight)}}if(typeof e.style!="undefined"&&typeof e.style.maxHeight!="undefined"&&e.style.maxHeight!=null&&e.style.maxHeight!=""){return parseInt(e.style.maxHeight)}if(typeof e.style!="undefined"&&typeof e.style.minHeight!="undefined"&&e.style.minHeight!=null&&e.style.minHeight!=""){return parseInt(e.style.minHeight)}return 0}function element_setWidth(e,c,a){e=element_isObject(e);if(!e){return null}a=(a===false)?false:true;var f=c;if(_ALVINE_IE){c=c<0?0:c}c=(c!="auto")?parseInt(c).toString()+"px":c;if(f.toString().substr(-1)=="%"){c=f}switch(e.tagName){case"TR":var d=e.getElementsByTagName("TD");if(d.length==0){return false}for(var b in d){element_setWidth(d[b],f)}return true;break}if(a){e.style.overflow="hidden"}e.style.width=c;return true}function element_setHeight(f,a,b){f=element_isObject(f);if(!f){return null}b=(b===false)?false:true;if(a==false){a=0}var e=a;if(_ALVINE_IE){a=a<0?0:a}a=(a!="auto")?parseInt(a).toString()+"px":a;if(e.toString().substr(-1)=="%"){a=e}switch(f.tagName){case"TR":var d=f.getElementsByTagName("TD");if(d.length==0){return false}for(var c in d){element_setHeight(d[c],e)}return true;break}if(b){f.style.overflow="hidden"}f.style.height=a;return true}function element_setSize(d,c,a,b){d=element_isObject(d);b=(b===false)?false:true;element_setWidth(d,c,b);element_setHeight(d,a,b);return true}function element_resetSize(a){a=element_isObject(a);element_resetWidth(a);element_resetHeight(a);return true}function element_resetWidth(a){a=element_isObject(a);if(_ALVINE_IE6){a.style.overflow="visible";a.style.width=null}else{a.style.width=null}return true}function element_resetHeight(a){a=element_isObject(a);if(_ALVINE_IE6){a.style.overflow="visible";a.style.height=null}else{a.style.height=null}return true}function element_setBackground(b,a){b=element_isObject(b);b.style.background=a;return true}function element_setText(b,a){b=element_isObject(b);if(!b){return false}if(isDefined(b.text)){b.text=a}if(isDefined(b.innerText)){b.innerText=a}if(isDefined(b.textContent)){b.textContent=a}if(isDefined(b.innerHTML)){b.innerHTML=a}return true}function element_getText(a){a=element_isObject(a);if(!a){return false}if(isDefined(a.text)){return a.text}if(isDefined(a.innerText)){return a.innerText}if(isDefined(a.textContent)){return a.textContent}if(isDefined(a.innerHTML)){return a.innerHTML}return true}function element_addChildNodes(b,h,d,g){b=element_isObject(b);if(!b){return true}d=(d==true)?true:false;g=(g==false)?false:true;var a=element_isObject(h);if(a){h=a}if(typeof h=="string"){var k=document.createElement("DIV");k.innerHTML=h.toString();h=document.createElement("DIV");h.appendChild(k);h=h.childNodes}if(typeof h.className!="undefined"&&strstr(h.className,"hidden")){h=h.childNodes}if(h==null||(typeof h!="object"&&typeof h!="function")){return false}if(d==true){element_removeChildNodes(b)}var l;if(typeof h.length!="undefined"){for(var c=0;c<h.length;c++){if(typeof h[c]!="object"){continue}try{if(g){l=element_cloneNode(h[c],true)}else{l=h[c]}b.appendChild(l)}catch(f){continue}}}else{if(g){l=element_cloneNode(h,true)}else{l=h}b.appendChild(l)}return true}function element_cloneNode(g,a){if(typeof g!="object"){return false}a=(a===false)?false:true;var c=g.cloneNode(a);element_cloneEvents(g,c,a);if(typeof g.alvine_onOpen!="undefined"){c.alvine_onOpen=g.alvine_onOpen}if(typeof g.alvine_onClose!="undefined"){c.alvine_onClose=g.alvine_onClose}for(var b in g){if(typeof c[b]!="undefined"){continue}try{var f=g[b];c[b]=f}catch(d){}}c.id="";element_buildUniqueObjectID(c);return c}function element_cloneEvents(a,b,d){if(typeof a.alvine_eventListeners=="object"){for(var f in a.alvine_eventListeners){var e=a.alvine_eventListeners[f];for(var c in e){var g=e[c];event_add(b,g.type,g.fn,g.useCapture)}}}if(!d){return}for(var f=0;f<a.childNodes.length;f++){element_cloneEvents(a.childNodes[f],b.childNodes[f],d)}}function element_removeChildNodes(c,a){c=element_isObject(c);var b=(!isDefined(a)||isNull(a))?true:false;if(!b){c.removeChildNode(a)}else{while(c.childNodes[0]){c.removeChild(c.childNodes[0])}}return true}function element_calcDifference(b,a){b=parseInt(b);a=parseInt(a);var c=b-a;var d=1;if(b<a){d=-1}c=d*parseInt(c);return{difference:c,direction:d}}function element_recalcValue2px(a,b){if(typeof a=="undefined"){return null}if(a==null){return null}if(a.toString().substring((a.toString().length-1))=="%"){return parseInt(((b/100)*parseInt(a)))}if(a.toString().substring((a.toString().length-2),2)=="px"){return parseInt(a)}return parseInt(a)}function element_isObject(a){if(a==null){return false}if(typeof(a)=="object"){if(typeof a.id!="undefined"&&a.id==""){element_buildUniqueObjectID(a)}a=element_browser_prepareObject(a);return a}var b=element_get("id",a);if(typeof b!="object"||b==null){return false}if(typeof b.id!="undefined"&&b.id==""){element_buildUniqueObjectID(b)}b=element_browser_prepareObject(b);return b}function element_isNumber(a){if(parseInt(a)!=a){return false}return true}function isNull(a){return(a===null)}function isDefined(a){if(typeof a=="undefined"){return false}return true}function element_getComputedStyleProperty(c,a){c=element_isObject(c);if(!c){return null}var b=null;if(c.currentStyle){if(typeof a!="undefined"&&a!=""){b=(typeof c.currentStyle[a]!="undefined")?c.currentStyle[a]:null}else{b=c.currentStyle}}else{if(window.getComputedStyle){if(document.defaultView.getComputedStyle(c,null)){if(typeof a!="undefined"&&a!=""){b=document.defaultView.getComputedStyle(c,null).getPropertyValue(a)}else{b=document.defaultView.getComputedStyle(c,null)}}}}return b}function element_browser_prepareObject(a){if(_ALVINE_IE){a=element_browser_ie_prepareObject(a)}return a}function element_browser_ie_prepareObject(a){if(!_ALVINE_IE){return a}if(typeof a!="object"){return a}if(typeof a.style!="undefined"){}return a}function alvine_getElementsByAttribute(c,a){var f=document.getElementsByTagName(c);var e=new Array();var g;var d;for(var b=0;b<f.length;b++){g=f[b];d=g.getAttribute(a);if(typeof d=="undefined"){continue}if(typeof d!="string"){continue}e.push(g)}return e}if(typeof alvine=="undefined"){alvine=new Object()}alvine_object_createObjectPath(alvine,"data.move");function object_initLibs(a){if(!a){a=window.event}if(typeof alvine.data.move.object=="undefined"){alvine.data.move.object=null}event_add(document,"mousemove",object_moveObject);event_add(document,"mouseup",object_toggleMoving);return true}function object_count(c){if(typeof c!="object"){return 0}var b=0;for(var a in c){b++}return b}function alvine_object_addObserver(d,a,b){var f=element_isObject(d);var e=element_isObject(a);if(!f){return null}if(!e){return null}b=(typeof b=="undefined")?"alvine_handleEvent":b;if(typeof e.alvine_observers=="undefined"){e.alvine_observers=new Object()}if(typeof e.alvine_observers[b]=="undefined"){e.alvine_observers[b]=new Array()}var c=new Object();c.id=d;e.alvine_observers[b].push(c);if(typeof e.alvine_notifyObserver=="undefined"){e.alvine_notifyObserver=function(h,n){h=(typeof h=="undefined")?"alvine_handleEvent":h;if(typeof this.alvine_observers[h]=="undefined"){return false}var m=this.alvine_observers[h];if(m.length==0){return false}if(typeof n=="undefined"){n=new Object()}for(var k in m){var l=m[k];var g=element_isObject(l.id);g[h](n,this)}return true}}if(typeof f[b]=="undefined"){f[b]=function(h,g){return true}}return true}function alvine_object_hasObservers(a){a=element_isObject(a);if(typeof a.alvine_notifyObserver=="undefined"){return false}if(typeof a.alvine_observers=="undefined"){return false}return true}function alvine_object_createObjectPath(c,b){if(typeof c!="object"){c=document}var d=b.split(".");var a=d.shift();if(typeof c[a]!="object"){c[a]=new Object()}if(d.length>0){alvine_element_createObjectPath(c[a],d.join("."))}return true}function element_buildUniqueObjectID(c){obj=c;if(typeof obj!="object"&&typeof obj!="function"){return null}var d=null;if(!obj){d=(!isNull(c))?c:"generic"}else{if(isDefined(obj.id)&&obj.id!=""){d=obj.id}else{if(isDefined(obj.tagName)){d=obj.tagName.toLowerCase()}else{if(isDefined(obj.nodeName)){d=obj.nodeName.toLowerCase()}else{if(isDefined(obj.localName)){d=obj.localName.toLowerCase()}}}}}var b=new Date();var a=d+"_"+b.getTime()+b.getMilliseconds()+js_rand(0,9999);alvine_object_createObjectPath(alvine,"session.generatedObjectIDs");if(!isDefined(alvine.session.generatedObjectIDs[a])){if(obj&&!obj.id){obj.id=a}alvine.session.generatedObjectIDs[a]=a}else{a=element_buildUniqueObjectID(obj)}return a}function alvine_getViewport(){var a=null;var b=null;if(typeof window.innerWidth!="undefined"){a=window.innerWidth;b=window.innerHeight;return{width:a,height:b}}if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0){a=document.documentElement.clientWidth;b=document.documentElement.clientHeight;return{width:a,height:b}}if(typeof document.getElementsByTagName("body")[0].clientWidth!="undefined"){a=document.getElementsByTagName("body")[0].clientWidth;b=document.getElementsByTagName("body")[0].clientHeight;return{width:a,height:b}}return false}function alvine_object_selectAddOption(f,b,e,c){f=element_isObject(f);var d=document.createElement("option");d.text=b;d.value=e;if(c===true){d.setAttribute("selected",true)}if(_ALVINE_IE){if(f.type!="select-one"&&f.type!="select-multiple"){return false}}else{if(typeof f.add!="function"){return false}}try{f.add(d,null)}catch(a){f.add(d)}return true}function alvine_object_selectRemoveOption(d,a){d=element_isObject(d);for(var c in d.options){var b=d.options[c];if(b==null){continue}if(!isDefined(b.value)){continue}if(b.value!=a){continue}d.remove(c);return true}return false}function alvine_array_keys(c){var a=new Array();for(var b in c){a.push(b)}return a}function alvine_bubble_kSort(h,l){if(typeof h!="object"){return h}l=!l?"regular":l;var m,g,k;var o=alvine_array_keys(h);var a,b;for(m=0;m<o.length;m++){for(g=0;g<(o.length-1);g++){a=o[g];b=o[g+1];var f=false;if(l=="regular"){if(parseInt(a)>parseInt(b)){f=true}}else{if(l=="reverse"){if(parseInt(a)<parseInt(b)){f=true}}}if(!f){continue}k=o[g+1];o[g+1]=o[g];o[g]=k}}var e,d;if(typeof h.length=="undefined"){e=new Object();d="object"}else{e=new Array();d="array"}for(var c in o){var n=o[c];if(d=="object"){e[n]=h[n]}else{if(d=="array"){e.push(h[n])}}}return e}function object_makeMovable(e,g,f,c,d){if(_ALVINE_SAFARI==true&&_ALVINE_CLIENT_OS=="mac"){return false}var b=element_isObject(e);if(!b){return false}if(typeof b.alvineMovingEnabled!="undefined"){return true}var a=element_isObject(g);if(!a){a=b}if(!a){return false}if(typeof d!="object"){d={x:0,y:0}}a.alvine_lockAreaOffset=d;b.alvine_moveObj=a;if(typeof a.alvine_onMoveStart!="function"){a.alvine_onMoveStart=function(){return true}}if(typeof a.alvine_onMove!="function"){a.alvine_onMove=function(){return true}}if(typeof a.alvine_onMoveStop!="function"){a.alvine_onMoveStop=function(){return true}}a.alvine_lockArea=(c===true)?true:false;a.alvine_relativeParent=element_isObject(f);a.alvine_useRelativePosition=(a.alvine_relativeParent)?true:false;a.alvine_initPosition=element_getPosition(a,a.alvine_useRelativePosition);mouse_attachToObject(a);event_add(b,"mousedown",object_toggleMoving);event_add(b,"mouseover",'element_addClassName("'+b.id+'", "moving_possible")');event_add(b,"mouseout",'element_replaceClassName("'+b.id+'", " moving_possible", "")');b.alvineMovingEnabled=true;return true}function object_digforRelativeParentObject(b,a){b=element_isObject(b);if(a==null){object_digforRelativeParentObject(b,b.parentNode);return true}if(a.tagName.toString().toLowerCase()=="body"){return false}if(!b.alvine_relativeParentObject&&(a.style.position=="relative"||a.style.position=="absolute")){b.alvine_relativeParentObject=a}else{object_digforRelativeParentObject(b,a.parentNode)}return true}function object_getMouseOffset(c,b){if(!b){b=window.event}if(!c.alvine_getMousePosition){mouse_attachToObject(c)}var a=c.alvine_getMousePosition(true,true);if(!a){a={x:0,y:0}}return a}function object_toggleMoving(a){if(!a){a=window.event}switch(a.type){case"mousedown":var b=(!this.alvine_moveObj)?this:this.alvine_moveObj;if(typeof b.alvine_onMoveStart=="function"){b.alvine_onMoveStart()}b.alvine_mouseOffset=object_getMouseOffset(b,a);if(!strstr(b.className," moving_enabled")){element_addClassName(b,"moving_enabled")}b.alvine_currentSize=element_getSize(b);if(b.alvine_relativeParent){b.alvine_relativeParent.alvine_currentSize=element_getSize(b.alvine_relativeParent)}alvine.data.move.object=b;break;case"mouseup":if(!alvine.data.move.object){break}var b=alvine.data.move.object;if(typeof b.alvine_onMoveStop=="function"){b.alvine_onMoveStop()}b.alvine_mouseOffset=null;b.alvine_moveStatus=null;element_replaceClassName(b," moving_enabled","");alvine.data.move.object=null;break}return object_preventDefaultEventBehaviour(a)}function object_preventDefaultEventBehaviour(a){if(typeof a!="object"){return true}if(typeof a.preventDefault=="function"){a.preventDefault()}a.returnValue=false;return false}function object_moveObject(h){if(!h){h=window.event}if(!alvine.data.move.object){return true}var d=alvine.data.move.object;if(!d.alvine_moveStatus){d.alvine_moveStatus="moving"}if(typeof d.alvine_onMove=="function"){d.alvine_onMove()}var k;var c;var g;var a,f;if(d.alvine_relativeParent){if(!d.alvine_relativeParent.alvine_getMousePosition){mouse_attachToObject(d.alvine_relativeParent)}k=d.alvine_relativeParent.alvine_getMousePosition(true,true);if(d.alvine_lockArea){a=d.alvine_relativeParent.alvine_currentSize;f=d.alvine_currentSize}}else{k=document.alvine_getMousePosition(true,false)}c=k.x;g=k.y;var e=d.alvine_mouseOffset;c-=e.x;g-=e.y;var b=d.alvine_lockAreaOffset;if(d.alvine_lockArea){if(c<(b.x*(-1))){c=(b.x*(-1))}if(g<(b.y*(-1))){g=(b.y*(-1))}if(c>(a.width-f.width+b.x)){c=(a.width-f.width+b.x)}if(g>(a.height-f.height+b.y)){g=(a.height-f.height+b.y)}}element_move(d,c,g);return object_preventDefaultEventBehaviour(h)}function object_storeCaretPosition(a){a=element_isObject(a);if(!a){return true}if(document.selection){a.alvine_caretPosition=document.selection.createRange()}else{if(a.selectionStart){a.alvine_caretPosition=a.selectionStart}else{}}return true}function object_insertAtCaretPosition(c,d){c=element_isObject(c);if(!c){return true}if(typeof c.focus!="undefined"){c.focus()}if(typeof document.selection!="undefined"){var b=document.selection.createRange();b.text=d;b=document.selection.createRange();b.move("character",d)}else{if(typeof c.selectionStart!="undefined"){var e=c.selectionStart;var a=c.selectionEnd;if(c.value.length>0){c.value=c.value.substr(0,e)+d+c.value.substr(a,c.value.length)}else{c.value=d}}else{}}if(typeof c.focus!="undefined"){c.focus()}return true}page_onLoad(object_initLibs);function event_add(obj,type,fn,useCapture){obj=element_isObject(obj);if(!obj){return false}if(typeof type=="undefined"){return false}if(typeof obj.alvine_eventListeners=="undefined"){obj.alvine_eventListeners={}}if(typeof obj.alvine_eventListeners[type]=="undefined"){obj.alvine_eventListeners[type]={}}var fnKey=type.toString()+fn.toString();var newEntry={};newEntry.type=type;newEntry.fn=fn;newEntry.useCapture=useCapture;obj.alvine_eventListeners[type][fnKey]=newEntry;if(typeof fn=="string"){var str=fn;fn=function(){eval(str)}}var ietype=type;if(type.indexOf("on")>-1){type=type.substring(2)}else{ietype="on"+type}if(obj.addEventListener){obj.addEventListener(type,fn,false)}else{if(obj.attachEvent){fnKey=(typeof str!="undefined")?str:fn.toString();obj["e"+type+fnKey]=fn;obj[type+fnKey]=function(){obj["e"+type+fnKey](window.event)};obj.attachEvent(ietype,obj[type+fnKey])}}return true}function event_remove(obj,type,fn){obj=element_isObject(obj);if(!obj){return false}if(typeof type=="undefined"){return false}var fnKey=type.toString()+fn.toString();if(typeof obj.alvine_eventListeners!="undefined"&&typeof obj.alvine_eventListeners[type]!="undefined"&&typeof obj.alvine_eventListeners[type][fnKey]!="undefined"){delete (obj.alvine_eventListeners[type][fnKey])}if(typeof fn=="string"){var str=fn;fn=function(){eval(str)}}var ietype=type;if(type.indexOf("on")>-1){type=type.substring(2)}else{ietype="on"+type}if(obj.removeEventListener){obj.removeEventListener(type,fn,false)}else{if(obj.detachEvent){fnKey=(typeof str!="undefined")?str:fn.toString();obj.detachEvent(ietype,obj[type+fnKey]);obj[type+fnKey]=null;obj["e"+type+fnKey]=null}}return true}if(typeof alvine!="object"){alvine=new Object()}alvine_object_createObjectPath(alvine,"data.mouse.positions.document");function mouse_init(a){if(!a){a=window.event}mouse_attachToObject(document);return object_preventDefaultEventBehaviour(a)}function mouse_attachToObject(a){a=element_isObject(a);a.alvine_ID=(typeof a.id!="undefined")?a.id:a.nodeName.toString().substr(1).toLowerCase();if(typeof alvine.data.mouse.positions[a.alvine_ID]=="undefined"){alvine.data.mouse.positions[a.alvine_ID]={x:0,y:0}}a.alvine_getMousePosition=function(b,e){b=(b===false)?false:true;e=(e===true)?true:false;var c=alvine.data.mouse.positions[this.alvine_ID];if(!b){var g=element_getScrollPosition();c.x-=g.x;c.y-=g.y}if(!e){return{x:parseInt(c.x),y:parseInt(c.y)}}var f=element_getPosition(this,true);var d={};d.x=parseInt(c.x);d.y=parseInt(c.y);d.x-=parseInt(f.x);d.y-=parseInt(f.y);return{x:d.x,y:d.y}};event_add(a,"mouseover",mouse_getPos,false);event_add(a,"mousemove",mouse_getPos,false);event_add(a,"mouseout",mouse_getPos,false);return true}function mouse_getPos(b){if(!b){b=window.event}if(typeof this.alvine_ID=="undefined"){if(this.nodeName=="undefined"){return object_preventDefaultEventBehaviour(b)}this.alvine_ID=(typeof this.id!="undefined")?this.id:this.nodeName.toString().substr(1).toLowerCase()}if(typeof alvine.data.mouse.positions[this.alvine_ID]=="undefined"){alvine.data.mouse.positions[this.alvine_ID]={x:0,y:0}}if(b.pageX||b.pageY){alvine.data.mouse.positions[this.alvine_ID]={x:b.pageX,y:b.pageY}}else{var c=element_getScrollPosition();var a={x:b.clientX,y:b.clientY};a.x+=c.x;a.y+=c.y;alvine.data.mouse.positions[this.alvine_ID]=a}return object_preventDefaultEventBehaviour(b)}page_onLoad(mouse_init,true);var mousePositions=new Object();function mouse_setPosition(a){if(!a){a=window.event}if(typeof this.id!="undefined"&&this.id!=""){element_buildUniqueObjectID(this)}if(typeof mousePositions[this.id]=="undefined"){mousePositions[this.id]=new Object()}var b=mouse_calcPosition(a);mousePositions[this.id]=b;this.alvine_mousePos=b;return true}function mouse_getPosition(d,c,a){d=element_isObject(d);if(!d){return{x:0,y:0}}c=(c!=true)?false:true;if(typeof mousePositions[d.id]=="undefined"){return alvine.data.mouse.positions.document}var b=mousePositions[d.id].x;var f=mousePositions[d.id].y;if(typeof a=="undefined"){a=new Object();a.x=null;a.y=null}if(c==true||(a.x!=null&&a.y!=null)){var e=(a.x!=null&&a.y!=null)?a:element_getPosition(d,true);b-=e.x;f-=e.y}return{x:parseInt(b),y:parseInt(f)}}function mouse_calcPosition(d){if(!d){d=window.event}var b;var f;if(typeof(d.pageX)=="number"){b=d.pageX;f=d.pageY}else{if(typeof(d.clientX)=="number"){var e=3;b=d.clientX-e;f=d.clientY-e;if(_ALVINE_IE){var c=document.body.scrollLeft;var a=document.body.scrollTop;if(c==0){c=document.documentElement.scrollLeft}if(a==0){a=document.documentElement.scrollTop}b+=c;f+=a}}}return{x:parseInt(b),y:parseInt(f)}}alvine_object_createObjectPath(alvine,"forms");alvine.forms.mouseOverControl=false;function forms_initControl(e,b){var g=forms_checkExtendedControlsBrowserCompability();if(!g){return false}e=element_isObject(e);if(!e){return false}if(typeof e.tagName=="undefined"){return false}b=(b===true)?true:false;b=(typeof e.alvine_extendControl!="undefined")?e.alvine_extendControl:b;if(b){forms_renderExtendedControl(e);var a=element_isObject(e.id+"_proxy");e.alvine_proxyObj=a}if(typeof e.alvine_renderProxyObject!="function"){e.alvine_renderProxyObject=function(){a=this.alvine_proxyObj;if(!this.alvine_proxyObj){a=element_isObject(this.id+"_proxy");if(!a){return true}this.alvine_proxyObj=a}if(typeof a.alvine_renderObject!="function"){return true}a.alvine_renderObject();return true}}var f=forms_getControlType(e);switch(f){case"select_select-one":case"select":if(typeof e.alvine_addOption=="function"){e.alvine_renderProxyObject();if(!b){break}event_add(e,"change","this.alvine_renderProxyObject()",true);break}e.alvine_addOptions=function(s){if(typeof s=="undefined"){return false}var k;var h=new Object();if(typeof s=="object"){if(object_count(s)==0){return true}for(var m in s){if(typeof s[m].tagName=="undefined"){continue}if(s[m].tagName.toString().toLowerCase()=="option"){h[s[m].value]=s[m];continue}var q=s[m].getAttribute("alvine:value");if(q==null||q==""){continue}var p=s[m].getAttribute("alvine:selected");s[m].alvine_selected=(p!=null&&p!="")?true:false;k=q.valueOf();h[k]=s[m]}}else{h[s]=s}for(var l in h){var o=document.createElement("OPTION");var r=this.options.length;o.id=this.id+"_"+r;o.value=l;o.selected=(typeof h[l].alvine_selected!="undefined")?h[l].alvine_selected:h[l].selected;o.text=h[l].textContent;o.className=h[l].className;o.alvine_initObject=h[l];var n=(document.all)?r:null;this.add(o,n)}if(this.selectedIndex<0){this.options[0].selected=true}this.alvine_renderProxyObject();return true};e.alvine_removeOption=function(h){this.remove(h);this.alvine_renderProxyObject()};e.alvine_clearOptions=function(h){h=(h===true)?true:false;this.options.length=0;if(h){return true}this.alvine_renderProxyObject();return true};e.alvine_setValue=function(h){this.selectedIndex=h;this.alvine_renderProxyObject();return true};var d=element_isObject(e.id+"_optioncontainer");if(d){var c=d.getElementsByTagName("DIV");if(c.length>0){e.alvine_clearOptions(true);e.alvine_addOptions(c)}}e.alvine_renderProxyObject();if(!b){break}event_add(e,"change","this.alvine_renderProxyObject()",true);break;case"select_select-multiple":case"select_multiple":case"select_select-multiple_true":case"select_list":break;case"textarea":case"textarea_textarea":case"input_text":case"input_password":break;case"input_checkbox":case"input_radio":e.alvine_renderProxyObject();event_add(e,"change",forms_clickbox_handleChange,true);if(_ALVINE_IE){event_add(e,"focus",forms_checkbox_handleFocus,true)}break;default:break}return true}function forms_clickbox_handleChange(a){if(!a){a=window.event}var b=this;b.alvine_renderProxyObject();if(_ALVINE_IE6){return}return object_preventDefaultEventBehaviour(a)}function forms_checkbox_handleFocus(a){if(!a){a=window.event}this.alvine_proxyObject.focus();return object_preventDefaultEventBehaviour(a)}function forms_init_textinput(d,b,c,a){d=element_isObject(d);if(!d){return false}b=(typeof b!="undefined"&&b===false)?false:true;a=(typeof a!="undefined"&&a===false)?false:true;c=(typeof c!="undefined"&&c===false)?false:true;d.alvine_defaultValue=d.value;if(b){event_add(d,"focus",forms_textinput_clearValue)}if(a){event_add(d,"focus",forms_textinput_selectValue)}if(c){event_add(d,"blur",forms_textinput_restoreDefaultValue)}return true}function forms_textinput_clearValue(a){if(!a){a=window.event}if(this.value==""){return}if(typeof this.alvine_defaultValue=="undefined"){this.alvine_defaultValue=this.value}if(this.value!=this.alvine_defaultValue){return}this.value=""}function forms_textinput_restoreDefaultValue(a){if(!a){a=window.event}if(this.value!=""){return}if(typeof this.alvine_defaultValue=="undefined"){return}this.value=this.alvine_defaultValue}function forms_textinput_selectValue(a){if(!a){a=window.event}if(this.value==""){return}this.select()}function forms_setInputValue(b,a){b=element_isObject(b);b.value=a;return true}function forms_initImageSelectFields(f){var d=element_isObject(f);var e=null;for(var c in d.childNodes){for(var b in d.childNodes[c].childNodes){e=d.childNodes[c].childNodes[b].id;if(e==null){continue}if(typeof e=="undefined"){continue}if(e.substr(0,f.length)!=f){continue}var a=e.split("_label__");if(a[0]!=f){continue}event_add(e,"mouseover",forms_setHover);event_add(e,"mouseout",forms_setHover);event_add(e,"mousedown",forms_imageSelectSetStatus);event_add(e,"mousedown",forms_setActive);event_add(e,"mouseup",forms_setActive)}}}function forms_checkExtendedControlsBrowserCompability(){if(_ALVINE_IE6){return true}if(_ALVINE_IE7){return true}if(_ALVINE_IE8){return true}if(_ALVINE_FIREFOX2){return true}if(_ALVINE_FIREFOX3){return true}return false}function forms_initExtendedControls(a){if(!a){a=window.event}alvine_object_createObjectPath(alvine,"forms");alvine.forms.browserIsCompatible=forms_checkExtendedControlsBrowserCompability();if(typeof alvine.forms.controls=="undefined"){alvine.forms.controls=new Object()}return object_preventDefaultEventBehaviour(a)}function forms_registerControl(b,a){var c=forms_checkExtendedControlsBrowserCompability();if(!c){return false}b=element_isObject(b);if(!b){return false}if(typeof alvine.forms.controls=="undefined"){alvine.forms.controls=new Object()}b.alvine_extendControl=(a===true)?true:false;alvine.forms.controls[b.id]=b;return true}function forms_processExtendedControls(c){if(!c){c=window.event}if(typeof alvine=="undefined"){return false}if(typeof alvine.forms=="undefined"){return false}if(typeof alvine.forms.controls=="undefined"){return false}for(var b in alvine.forms.controls){var a=alvine.forms.controls[b];var d=(a.alvine_extendControl===true)?true:false;forms_initControl(a,d)}return true}function forms_getControlType(a){a=element_isObject(a);if(!a){return false}var b=a.nodeName.toString().toLowerCase();b+=((typeof a.type!="undefined"&&a.type!=null)&&a.type.toString().toLowerCase()!=b)?"_"+a.type.toString().toLowerCase():"";b+=(typeof a.multiple!="undefined"&&a.multiple===true)?"_"+a.multiple.toString().toLowerCase():"";return b}function forms_renderExtendedControl(q){var o=forms_checkExtendedControlsBrowserCompability();if(!o){return false}q=element_isObject(q);if(!q){return false}if(typeof q.alvine_beforeExtension=="function"){q.alvine_beforeExtension()}if(typeof q.nodeName=="undefined"||q.nodeName==null){return false}var d=forms_getControlType(q);if(d=="hidden"){return true}var a;var v;var h=document.createElement("DIV");h.className="top_panel";var b=document.createElement("DIV");b.className="bottom_panel";var k=new Object();k.left="&nbsp;";k.right="&nbsp;";k.middle="&nbsp;";for(var A in k){var f=document.createElement("DIV");f.className=A;f.innerHTML=k[A];h.appendChild(f.cloneNode(true));b.appendChild(f.cloneNode(true))}v=document.createElement("DIV");v.className="content_panel";var e=document.createElement("DIV");e.className="right";var c=document.createElement("DIV");c.className="content";if(d=="select_select-one"&&(parseInt(q.size)>0||parseInt(q.rows)>0||parseInt(q.style.height)>0)){d="select_list"}switch(d){case"select_select-one":case"select":var F=document.createElement("DIV");F.alvine_originalObj=q;F.id=q.id+"_proxy";F.className="gfx_dropdown";F.className+=" "+str_replace("hidden","",q.className);if(q.disabled){m.className+=" disabled"}element_setVisibility(q,"hidden");element_move(q,-9999,0);F.alvine_options=new Array();event_add(F,"mouseover",custom_input_activateMouseoverControl,true);event_add(F,"mouseout",custom_input_deactivateMouseoverControl,true);var D=document.createElement("DIV");D.className="button_selector down";D.id=F.id+"_buttonselector";D.alvine_parentObject=F;var m=document.createElement("DIV");m.className="value islink";m.id=F.id+"_value";m.alvine_parentObject=F;if(typeof q.alvine_eventListeners!="undefined"){for(var A in q.alvine_eventListeners){var r=q.alvine_eventListeners[A];for(var x in r){var C=r[x];event_add(m,C.type,C.fn,C.useCapture)}}}F.appendChild(D);F.appendChild(m);c.appendChild(F);var g=F.id+"_list";var B=element_isObject(g);if(!B){B=document.createElement("DIV");B.id=g;document.body.insertBefore(B,document.body.childNodes[0])}B.className="dropdown_list";element_setVisibility(B,"hidden");element_setLeft(B,-9999);B.alvine_visible=false;B.alvine_dropdownObj=F;event_add(B,"mouseover",custom_input_activateMouseoverControl,true);event_add(B,"mouseout",custom_input_deactivateMouseoverControl,true);F.alvine_buttonSelectorObj=D;F.alvine_valueObj=m;F.alvine_listObj=B;B.alvine_selectOption=function(H){H=element_isObject(H);if(!H){return true}var t=this.alvine_dropdownObj;for(var G in t.alvine_options){element_removeClassName(t.alvine_options[G]," selected");if(t.alvine_options[G].id!=H.id){continue}element_addClassName(t.alvine_options[G]," selected")}return true};B.alvine_renderObject=function(){var K=this.alvine_dropdownObj;var G=K.alvine_originalObj;writeHTML(this,"");var N=G.getElementsByTagName("OPTION");for(var L in N){if(typeof N[L].tagName=="undefined"){continue}var O=N[L];var Q=(typeof N[L].alvine_initObject=="object")?N[L].alvine_initObject:O;var P=document.createElement("DIV");var H=document.createAttribute("alvine:type");H.nodeValue="option";P.setAttributeNode(H);P.alvine_originalOption=N[L];P.className="option islink";P.className+=" "+str_replace("hidden","",O.className);var J=O.selected;if(J){P.className+=" selected"}var I=new Object();I.onclick={trgObj:P};I.onmousedown={trgObj:P};I.onmouseup={trgObj:P};I.onmousemove={trgObj:P};for(var t in I){var M=Q[t];if(typeof M!="function"){var R=Q.getAttribute("alvine:"+t);if(R!=null&&R!=""){M=R}}if(typeof M!="function"||M==null||M==""){continue}event_add(I[t].trgObj,t,M,true)}P.innerHTML=Q.innerHTML;P.alvine_valueObj=K.alvine_valueObj;P.alvine_parentObject=K;if(J){custom_dropdown_setOptionValue(P)}event_add(P,"mousedown",custom_dropdown_setOptionValueHandler,true);event_add(P,"mousedown",custom_dropdown_handleToggleListEvent,true);this.appendChild(P);K.alvine_options.push(P);P.onmouseover=function(){var T=this.className.split(" ");var U=false;for(var S in T){if(T[S]!="highlight"){continue}U=true;break}if(!U){T.push("highlight")}this.className=T.join(" ")};P.onmouseout=function(){var T=this.className.split(" ");for(var S in T){if(T[S]!="highlight"){continue}delete (T[S]);break}this.className=T.join(" ")}}K.alvine_setSwitchcolors();return true};F.alvine_renderObject=function(){this.alvine_clear();this.alvine_listObj.alvine_renderObject();return true};F.alvine_clear=function(){if(this.alvine_options.length==0){return true}for(var t in this.alvine_listObj.childNodes){var H=element_isObject(this.alvine_listObj.childNodes[t]);if(!H){continue}var G=H.getAttribute("alvine:type");if(G==null||G==""){continue}this.alvine_listObj.removeChild(H)}this.alvine_options.length=0;return true};F.alvine_setSwitchcolors=function(){if(this.alvine_options.length==0){return true}for(var G in this.alvine_options){var t=(G%2==0)?2:1;if(this.alvine_options[G].className.substring(0,10)=="switchcolor"){this.alvine_options[G].className=this.alvine_options[G].className.substring(12)}element_removeClassName(this.alvine_options[G],"  ");this.alvine_options[G].className="switchcolor0"+t.toString()+" "+this.alvine_options[G].className}return true};event_add(D,"mousedown",custom_dropdown_handleToggleListEvent,true);event_add(m,"mousedown",custom_dropdown_handleToggleListEvent,true);if(typeof document.alvine_dropdownFields=="undefined"){document.alvine_dropdownFields=new Object()}if(typeof document.alvine_dropdownFields[F.id]=="undefined"){document.alvine_dropdownFields[F.id]=F}if(typeof document.alvine_closeRegisteredDropDowns=="undefined"){document.alvine_closeRegisteredDropDowns=function(G){if(!G){G=window.event}for(var t in document.alvine_dropdownFields){var H=document.alvine_dropdownFields[t].alvine_listObj;if(alvine.forms.mouseOverControl&&H.id==alvine.forms.mouseOverControl){continue}H=element_isObject(H);if(!H){continue}if(!H.alvine_visible){continue}custom_dropdown_toggleList(t)}return true}}if(_countChildren(document.alvine_dropdownFields)==1){event_add(document,"mousedown",document.alvine_closeRegisteredDropDowns)}D.onmouseover=function(){var t=this.className.split(" ");if(!strstr(this.className,"highlight")){t.push("highlight")}this.className=t.join(" ");return false};D.onmouseout=function(){element_replaceClassName(this," highlight","");return false};a=document.createElement("DIV");a.className="custom_control_panel";a.className+=" "+str_replace("hidden","",q.className);a.appendChild(h);e.appendChild(c);v.appendChild(e);a.appendChild(v);a.appendChild(b);q.parentNode.insertBefore(a,q);break;case"select_select-multiple":case"select_multiple":case"select_select-multiple_true":case"select_list":var E=document.createElement("DIV");E.id=q.id+"_proxy";E.className="gfx_multilist";E.className+=" "+str_replace("hidden","",q.className);E.alvine_options=new Array();c.appendChild(E);var p=q.getElementsByTagName("OPTION");var z=element_isObject(q.id+"_optioncontainer");var u=false;if(z){var w=z.getElementsByTagName("DIV");if(w.length>0){p=w}}E.alvine_addOption=function(K,N,M){K=element_isObject(K);N=element_isObject(N);var S=(typeof M!="number")?this.alvine_options.length:M;var O=document.createElement("DIV");var H=document.createAttribute("alvine:type");H.nodeValue="option";O.setAttributeNode(H);O.className="option islink";var G=document.createElement("INPUT");var T=this.id+"_"+S;G.id=T;G.className="hidden";G.type="checkbox";G.checked=false;O.className+=" "+str_replace("hidden","",N.className);var R;var J;if(N.tagName.toLowerCase()=="option"){R=p[A].value;J=N.selected}else{var Q=N.getAttribute("alvine:value");if(Q==null||Q==""){return false}var I=new Object();I.onchange={trgObj:G};I.onclick={trgObj:O};I.onmousedown={trgObj:O};I.onmouseup={trgObj:O};I.onmousemove={trgObj:O};for(var t in I){var L=p[A].getAttribute("alvine:"+t);if(L==null||L==""){continue}event_add(I[t].trgObj,t,L,true)}R=Q.valueOf();var P=N.getAttribute("alvine:selected");J=(P!=null&&P!="")?P.valueOf():false}G.value=R;G.name=K.name;if(J){G.checked=J;element_addClassName(O,"checked")}G.alvine_multilistObject=E;K.parentNode.insertBefore(G,K);O.innerHTML=N.innerHTML;O.alvine_inputObj=G;event_add(O,"mousedown",custom_multilist_setOptionValue,true);this.appendChild(O);this.alvine_options[parseInt(S)]=O;return S};E.alvine_removeOption=function(G){var H=this.alvine_options[G];var t=H.alvine_inputObj;if(typeof H!="object"){return false}t.parentNode.removeChild(t);H.parentNode.removeChild(H);this.alvine_options.splice(G,1);this.alvine_setSwitchcolors();return true};E.alvine_clearOptions=function(){if(this.alvine_options.length==0){return true}for(var t in this.alvine_options){this.alvine_removeOption(t)}return true};E.alvine_setSwitchcolors=function(){if(this.alvine_options.length==0){return true}for(var G in this.alvine_options){var t=(G%2==0)?2:1;element_removeClassName(this.alvine_options[G],"switchcolor01");element_removeClassName(this.alvine_options[G],"switchcolor02");element_removeClassName(this.alvine_options[G],"  ");this.alvine_options[G].className="switchcolor0"+t.toString()+" "+this.alvine_options[G].className}return true};for(var A in p){if(typeof p[A].tagName=="undefined"){continue}E.alvine_addOption(q,p[A])}c.appendChild(E);E.alvine_setSwitchcolors();for(var A in E.alvine_options){if(typeof E.alvine_options[A]!="object"){continue}var s=E.alvine_options[A].getAttribute("alvine:type");if(s==null||s==""){continue}E.alvine_options[A].onmouseover=function(){var G=this.className.split(" ");var H=false;for(var t in G){if(G[t]!="highlight"){continue}H=true;break}if(!H){G.push("highlight")}this.className=G.join(" ")};E.alvine_options[A].onmouseout=function(){var G=this.className.split(" ");for(var t in G){if(G[t]!="highlight"){continue}delete (G[t]);break}this.className=G.join(" ")}}a=document.createElement("DIV");a.className="custom_control_panel";a.className+=" "+str_replace("hidden","",q.className);a.appendChild(h);e.appendChild(c);v.appendChild(e);a.appendChild(v);a.appendChild(b);q.parentNode.replaceChild(a,q);break;case"textarea":case"textarea_textarea":case"input_text":case"input_password":q.className=str_replace("hidden","",q.className);var l=q.cloneNode(true);if(typeof q.alvine_eventListeners!="undefined"){for(var A in q.alvine_eventListeners){var r=q.alvine_eventListeners[A];for(var x in r){var C=r[x];event_add(l,C.type,C.fn,C.useCapture)}}}c.appendChild(l);a=document.createElement("DIV");a.className="custom_control_panel";a.id=q.id+"_proxy";a.appendChild(h);e.appendChild(c);v.appendChild(e);a.appendChild(v);a.appendChild(b);q.parentNode.replaceChild(a,q);break;case"input_checkbox":case"input_radio":if(d=="input_radio"){alvine_object_createObjectPath(alvine.forms,"lists.radio");if(typeof alvine.forms.lists.radio[q.name]=="undefined"){alvine.forms.lists.radio[q.name]=new Array()}alvine.forms.lists.radio[q.name].push(q)}q.className+=" hidden";q.alvine_controlType=d;a=document.createElement("DIV");a.id=q.id+"_proxy";a.className="custom_small_control_panel";var n=document.createElement("LABEL");n.htmlFor=q.id;n.alvine_inputObj=q;inputObj=document.createElement("DIV");inputObj.className="custom_"+d;q.alvine_proxyObject=inputObj;a.alvine_sensitiveObj=n;n.appendChild(inputObj);a.appendChild(n);a.alvine_renderObject=function(){var t=this.alvine_sensitiveObj.alvine_inputObj;if(t.alvine_controlType=="input_checkbox"){if(t.checked){if(!strstr(t.className,"checked")){element_addClassName(t.alvine_proxyObject,"checked")}}else{element_removeClassName(t.alvine_proxyObject," checked")}}else{for(var G in alvine.forms.lists.radio[t.name]){var H=alvine.forms.lists.radio[t.name][G];element_removeClassName(H.alvine_proxyObject," checked");if(!H.checked){continue}element_addClassName(H.alvine_proxyObject,"checked")}}return true};q.parentNode.insertBefore(a,q);break;default:break}if(typeof q.alvine_finishExtension=="function"){a.alvine_finishExtension=q.alvine_finishExtension;a.alvine_finishExtension()}return}function forms_setHover(a){if(!a){a=window.event}if(a.type=="mouseover"){element_addClassName(this,"hover")}else{element_removeClassName(this,"hover")}return object_preventDefaultEventBehaviour(a)}function forms_setActive(a){element_removeClassName(this,"active");element_addClassName(this,"active"," ");return object_preventDefaultEventBehaviour(a)}function forms_imageSelectSetStatus(e){var c=this.id;var a=c.split("_label__");var g=a[0];var f=element_isObject(g);for(var d in f.childNodes){for(var b in f.childNodes[d].childNodes){obj=f.childNodes[d].childNodes[b].id;if(obj==null){continue}if(typeof obj=="undefined"){continue}if(obj==c){continue}if(obj.substr(0,g.length)!=g){continue}var h=obj.split("_label__");if(h[0]!=g){continue}element_removeClassName(obj,"active")}}return object_preventDefaultEventBehaviour(e)}function forms_imageSelectDoEffect(g){var h=this.parentNode;var e=h.id.split("_");var b=e[(e.length-1)];var c=element_getSize("form_panel_id");var a=parseInt(b)+1;if(typeof sfxFormData[a]=="undefined"){return null}var k=image_preload_get("form_panel_id",a);var d=element_isObject("stepimage");d.src=k.src;if(a>=sfxFormData.length&&a==b){return null}var f=new Object();f.unlock_sizing=false;var l=new JAVASCRIPT_SFX_ROLLOUT("form_panel_id","size","100%",sfxFormData[a].size.height+"px",65,1,1,true,f);l.start();return object_preventDefaultEventBehaviour(g)}function forms_initFieldEvents(f){var d=element_isObject(f);var e=null;for(var c in d.childNodes){for(var b in d.childNodes[c].childNodes){row=d.childNodes[c].childNodes[b];for(var a in row.childNodes){e=row.childNodes[a];if(e.nodeName!="SELECT"&&!strstr(e.className,"image_select_panel")){continue}if(e.nodeName=="SELECT"){event_add(e,"change",forms_imageSelectDoEffect)}else{if(strstr(e.className,"image_select_panel")){event_add(e,"mouseup",forms_imageSelectDoEffect)}}}}}}function forms_initCommandSelectAllCheckboxes(e,a){e=element_isObject(e);a=element_isObject(a);var c=a.getElementsByTagName("INPUT");e.alvine_checkboxList=new Array();for(var b=0;b<c.length;b++){var d=c[b];if(d.type!="checkbox"){continue}e.alvine_checkboxList.push(d)}event_add(e,"click",forms_toggleCommandSelectAllCheckboxes);return true}function forms_toggleCommandSelectAllCheckboxes(b){if(!b){b=window.event}for(var a in this.alvine_checkboxList){this.alvine_checkboxList[a].checked=this.checked;if(typeof this.alvine_checkboxList[a].alvine_renderProxyObject=="function"){this.alvine_checkboxList[a].alvine_renderProxyObject()}}return true}function markFocus(b){var a=strstr(b.className,"inputfocus");if(!a){element_addClassName(b,"inputfocus");if(typeof b.select=="function"){b.select()}}else{element_removeClassName(b," inputfocus")}return true}function custom_input_activateMouseoverControl(a){if(!a){a=window.event}alvine.forms.mouseOverControl=(typeof this.alvine_listObj!="undefined")?this.alvine_listObj.id:this.id;return true}function custom_input_deactivateMouseoverControl(a){if(!a){a=window.event}alvine.forms.mouseOverControl=false;return true}function custom_dropdown_setOptionValueHandler(a){if(!a){a=window.event}custom_dropdown_setOptionValue(this);var b=this.alvine_originalOption;if(typeof b.parentNode.onchange!="undefined"&&b.parentNode.onchange!=null){b.parentNode.onchange(a)}return object_preventDefaultEventBehaviour(a)}function custom_dropdown_setOptionValue(b){b=element_isObject(b);var e=b.alvine_valueObj;var d=b.alvine_originalOption;var c=(typeof d.alvine_initObject=="object")?d.alvine_initObject.innerHTML:d.innerHTML;e.innerHTML=c;var a=d.index;d.parentNode.selectedIndex=a;d.parentNode.alvine_proxyObj.alvine_listObj.alvine_selectOption(b);return false}function custom_multilist_setOptionValue(b){if(!b){b=window.event}var a=this.alvine_inputObj;a.checked=(a.checked)?false:true;if(a.checked){element_addClassName(this,"checked")}else{element_removeClassName(this," checked")}return object_preventDefaultEventBehaviour(b)}function custom_dropdown_handleToggleListEvent(a){if(!a){a=window.event}if(typeof this.alvine_parentObject!="object"){return}custom_dropdown_toggleList(this.alvine_parentObject.id);return object_preventDefaultEventBehaviour(a)}function custom_dropdown_toggleList(l){var e=document.getElementById(l);if(!e){return true}buttonSelectorObj=e.alvine_buttonSelectorObj;listObj=e.alvine_listObj;var r=buttonSelectorObj.className.split(" ");if(typeof listObj.alvine_visible=="undefined"||!listObj.alvine_visible){var a=alvine_getViewport();var d=element_getScrollPosition();var g=(a.height-15);var p=element_getPosition(e,true);var f=element_getSize(e);var m=120;var o=element_getHeight(listObj);var k=15;var u=(d.y+g);if(_ALVINE_IE){}var n=p.x;var h=(p.y+f.height);var c=(h+o);if(c>u){var b=g-h;if(b<m){b=o;h=p.y-o;var s=(h-d.y);var t=(p.y-d.y);if(s<k){h=d.y+k;b=t-k}}element_setHeight(listObj,b);listObj.style.overflow="auto"}element_move(listObj,n,h);element_setVisibility(listObj,"visible");for(var q in r){if(r[q]!="down"){continue}r[q]="up"}listObj.alvine_visible=true}else{element_setVisibility(listObj,"hidden");element_setLeft(listObj,-9999);element_setTop(listObj,-9999);listObj.style.overflow="visible";element_resetHeight(listObj);for(var q in r){if(r[q]!="up"){continue}r[q]="down"}listObj.alvine_visible=false}buttonSelectorObj.className=r.join(" ");return false}function _countChildren(c){var a=0;for(var b in c){a++}return a}if(typeof content_frontend_plugin_content_simple_form_controlSelectAssignmentData=="undefined"){content_frontend_plugin_content_simple_form_controlSelectAssignmentData=new Object()}function content_frontend_plugin_content_simple_form_select_assignment_init(c){if(typeof content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c]=="undefined"){content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c]=new Object()}if(typeof content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c]["lists"]=="undefined"){content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c]["lists"]=new Array()}if(typeof content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c]["lists"]["all"]=="undefined"){content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c]["lists"]["all"]=new Array()}if(typeof content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c]["lists"]["selected"]=="undefined"){content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c]["lists"]["selected"]=new Array()}if(typeof content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c]["menu"]=="undefined"){content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c]["menu"]=new Array()}if(typeof content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c]["menu"]["buttons"]=="undefined"){content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c]["menu"]["buttons"]=new Array()}var b="control_select_list_all";var d="control_select_list_selected";var a="control_select_assignment_menu";content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c]["lists"]["all"]["object"]=element_isObject(b+"_"+c);content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c]["lists"]["selected"]["object"]=element_isObject(d+"_"+c);var e=content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c]["lists"]["all"]["object"];var h=content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c]["lists"]["selected"]["object"];var f=new Object();if(h.options.length>0){for(var g in h.options){var k=h.options[g];if(typeof k!="object"){continue}f[k.value]=true}}selectedEntries=content_frontend_plugin_content_simple_form_select_assignment_getInternListSelection(e,"value",f);if(selectedEntries.length>0){content_frontend_plugin_content_simple_form_select_assignment_removeListEntry(e,selectedEntries);content_frontend_plugin_content_simple_form_select_assignment_clearList(h);content_frontend_plugin_content_simple_form_select_assignment_addListEntry(h,selectedEntries)}content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c]["lists"]["all"]["reset"]=content_frontend_plugin_content_simple_form_select_assignment_getInternListSelection(e,"all");content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c]["lists"]["selected"]["reset"]=content_frontend_plugin_content_simple_form_select_assignment_getInternListSelection(h,"all");content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c]["menu"]["buttons"]["selected_move_right"]=element_isObject(a+"_cmd_selected_move_right_"+c);event_add(content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c].menu.buttons.selected_move_right,"click",content_frontend_plugin_content_simple_form_select_assignment_listMenuCmdWrapper);content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c]["menu"]["buttons"]["selected_move_left"]=element_isObject(a+"_cmd_selected_move_left_"+c);event_add(content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c].menu.buttons.selected_move_left,"click",content_frontend_plugin_content_simple_form_select_assignment_listMenuCmdWrapper);content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c]["menu"]["buttons"]["all_move_right"]=element_isObject(a+"_cmd_all_move_right_"+c);event_add(content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c].menu.buttons.all_move_right,"click",content_frontend_plugin_content_simple_form_select_assignment_listMenuCmdWrapper);content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c]["menu"]["buttons"]["all_move_left"]=element_isObject(a+"_cmd_all_move_left_"+c);event_add(content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c].menu.buttons.all_move_left,"click",content_frontend_plugin_content_simple_form_select_assignment_listMenuCmdWrapper);content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c]["menu"]["buttons"]["reset"]=element_isObject(a+"_cmd_reset_"+c);event_add(content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c].menu.buttons.reset,"click",content_frontend_plugin_content_simple_form_select_assignment_listMenuCmdWrapper);content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c]["lists"]["all"]["move_up"]=element_isObject(b+"_cmd_up_"+c);event_add(content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c].lists.all.move_up,"click",content_frontend_plugin_content_simple_form_select_assignment_listInternMoveSelection);content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c]["lists"]["all"]["move_down"]=element_isObject(b+"_cmd_down_"+c);event_add(content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c].lists.all.move_down,"click",content_frontend_plugin_content_simple_form_select_assignment_listInternMoveSelection);content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c]["lists"]["selected"]["move_up"]=element_isObject(d+"_cmd_up_"+c);event_add(content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c].lists.selected.move_up,"click",content_frontend_plugin_content_simple_form_select_assignment_listInternMoveSelection);content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c]["lists"]["selected"]["move_down"]=element_isObject(d+"_cmd_down_"+c);event_add(content_frontend_plugin_content_simple_form_controlSelectAssignmentData[c].lists.selected.move_down,"click",content_frontend_plugin_content_simple_form_select_assignment_listInternMoveSelection)}function content_frontend_plugin_content_simple_form_select_assignment_getData(a){return content_frontend_plugin_content_simple_form_controlSelectAssignmentData[a]}function content_frontend_plugin_content_simple_form_select_assignment_listMenuCmdWrapper(h){if(!h){h=window.event}var k=this.id.split("_cmd_");var l=k[0];var e=k[1].split("_");var b=e.pop();var a=e.join("_");var d=content_frontend_plugin_content_simple_form_select_assignment_getData(b);var c=d.lists.all.object;var g=d.lists.selected.object;var f;switch(a){default:break;case"selected_move_right":f=content_frontend_plugin_content_simple_form_select_assignment_getInternListSelection(c);content_frontend_plugin_content_simple_form_select_assignment_addListEntry(g,f);content_frontend_plugin_content_simple_form_select_assignment_removeListEntry(c,f);break;case"selected_move_left":f=content_frontend_plugin_content_simple_form_select_assignment_getInternListSelection(g);content_frontend_plugin_content_simple_form_select_assignment_addListEntry(c,f);content_frontend_plugin_content_simple_form_select_assignment_removeListEntry(g,f);break;case"all_move_right":f=content_frontend_plugin_content_simple_form_select_assignment_getInternListSelection(c,"all");content_frontend_plugin_content_simple_form_select_assignment_addListEntry(g,f);content_frontend_plugin_content_simple_form_select_assignment_clearList(c);break;case"all_move_left":f=content_frontend_plugin_content_simple_form_select_assignment_getInternListSelection(g,"all");content_frontend_plugin_content_simple_form_select_assignment_addListEntry(c,f);content_frontend_plugin_content_simple_form_select_assignment_clearList(g);break;case"reset":content_frontend_plugin_content_simple_form_select_assignment_clearList(c);content_frontend_plugin_content_simple_form_select_assignment_addListEntry(c,d.lists.all.reset);content_frontend_plugin_content_simple_form_select_assignment_clearList(g);content_frontend_plugin_content_simple_form_select_assignment_addListEntry(g,d.lists.selected.reset);break}}function content_frontend_plugin_content_simple_form_select_assignment_listInternMoveSelection(o){if(!o){o=window.event}var p=this.id.split("_cmd_");var q=p[0];var h=p[1].split("_");var d=h.pop();var c=h.pop();q+="_"+d;var a=element_isObject(q);if(a.selectedIndex<0){return true}var m=a.options;var k=content_frontend_plugin_content_simple_form_select_assignment_getInternListSelection(a);var e=a.selectedIndex;var n=null;if(c=="up"){n=((e-1)>=0)?(e-1):0}else{n=((e+1)<a.options.length)?(e+1):(a.options.length-1)}var l=new Array();var b=0;for(var g=0;g<m.length;g++){var r=m[g];if(typeof k[r.index]=="undefined"){l.push(r)}}content_frontend_plugin_content_simple_form_select_assignment_clearList(a);b=n;for(var f in k){l.splice(b,0,k[f]);b++}content_frontend_plugin_content_simple_form_select_assignment_addListEntry(a,l)}function content_frontend_plugin_content_simple_form_select_assignment_addListEntry(e,b){e=element_isObject(e);if(typeof b.length=="number"||object_count(b)!=null){for(var a in b){var d=document.createElement("option");d.value=b[a].value;d.text=b[a].text;d.selected=b[a].selected;e.appendChild(d)}}else{var c=element_isObject(b);var d=document.createElement("option");d.value=c.value;d.text=c.text;d.selected=c.selected;e.appendChild(d)}}function content_frontend_plugin_content_simple_form_select_assignment_removeListEntry(d,b){d=element_isObject(d);if(typeof b.length=="number"||object_count(b)!=null){for(var a in b){d.removeChild(b[a])}}else{var c=element_isObject(b);d.removeChild(c)}}function content_frontend_plugin_content_simple_form_select_assignment_clearList(a){a=element_isObject(a);a.options.length=0}function content_frontend_plugin_content_simple_form_select_assignment_getInternListSelection(d,c,b){c=(typeof c=="undefined")?"selected":c;var h=element_isObject(d);var f=new Object();for(var e=0;e<h.options.length;e++){var g=h.options[e];var a=false;switch(c){default:break;case"selected":if(!g.selected){a=true}break;case"value":if(typeof b=="undefined"){a=true}if(object_count(b)>0&&(typeof b[g.value]=="undefined")){a=true}break}if(a){continue}if(typeof f[g.index]=="undefined"){f[g.index]=new Object()}f[g.index]=g}return f}function content_frontend_plugin_content_simple_form_imageselect_initFields(a){var d=element_isObject(a);var e=null;if(typeof d.alvine_imageButtonLabels=="undefined"){d.alvine_imageButtonLabels=new Array()}for(var c in d.alvine_imageButtonLabels){var b=d.alvine_imageButtonLabels[c];if(typeof b!="object"){continue}event_add(b,"mouseover",content_frontend_plugin_content_simple_form_imageselect_setHover);event_add(b,"mousedown",content_frontend_plugin_content_simple_form_imageselect_setStatus);event_add(b,"mouseout",content_frontend_plugin_content_simple_form_imageselect_resetHover)}d.alvine_setStatus=function(f){for(var g in this.alvine_imageButtonLabels){buttonObj=this.alvine_imageButtonLabels[g];if(buttonObj.id!=f){element_removeClassName(buttonObj,"active"," ")}else{element_removeClassName(buttonObj,"active"," ");element_addClassName(buttonObj,"active")}}return true};d.alvine_resetHover=function(){for(var f in this.alvine_imageButtonLabels){buttonObj=this.alvine_imageButtonLabels[f];element_removeClassName(buttonObj,"hover"," ")}return true};d.alvine_setHover=function(f){for(var g in this.alvine_imageButtonLabels){buttonObj=this.alvine_imageButtonLabels[g];if(buttonObj.id!=f){element_removeClassName(buttonObj,"hover"," ")}else{element_removeClassName(buttonObj,"hover"," ");element_addClassName(buttonObj,"hover")}}return true};d.alvine_getChildPanel=function(h,f){for(var g in this.alvine_imageButtonPanels){var k=this.alvine_imageButtonPanels[g];if(k.value!=h&&g!=f){continue}return k}return false};d.alvine_getChildButton=function(h,f){for(var g in this.alvine_imageButtonInputs){var k=this.alvine_imageButtonInputs[g];if(k.value!=h&&g!=f){continue}return k}return false};d.alvine_setChildPanelDisplay=function(h,f){var k=this.alvine_getChildPanel(h);var g=this.alvine_getChildButton(h);if(!k){return false}if(!g){return false}if(!f){element_setDisplay(k.object,"none");g.checked=""}else{element_setDisplay(k.object,"block")}return true};d.alvine_setChildrenDisplay=function(h,q){if(h==""&&typeof this.alvine_initValueList=="undefined"){return true}if(h==""){h=this.alvine_initValueList}var o=new Array();if(typeof h!="object"){if(strstr(h,",")){h=h.split(",");for(var k in h){o.push(h[k])}}else{o.push(h)}}else{o=h}if(typeof this.alvine_configurator_settings!="undefined"&&typeof this.alvine_configurator_settings.values!="undefined"){if(o!=null){if(typeof this.alvine_configurator_settings.values[o[0]]!="undefined"){o=this.alvine_configurator_settings.values[o[0]];if(typeof o!="object"&&strstr(o,",")){o=o.split(",")}}}else{o=this.alvine_initValueList}}var m=null;for(var k in this.alvine_imageButtonPanels){var l=this.alvine_imageButtonPanels[k];var f=l.object;var n=l.value;var p=false;for(var g in o){if(n!=o[g]){continue}p=true;m=(m==null)?n:m;break}if(!p){element_setDisplay(f,"none")}else{element_setDisplay(f,"block")}}return m};return true}function content_frontend_plugin_content_simple_form_imageselect_addImageButton(l,h,m,g,f,k){var c=element_isObject(l);if(!c){return false}var e=element_isObject(h);if(!e){return false}var d=element_isObject(g);if(!d){return false}if(typeof c.alvine_imageButtonLabels=="undefined"){c.alvine_imageButtonLabels=new Array()}if(typeof c.alvine_imageButtonInputs=="undefined"){c.alvine_imageButtonInputs=new Array()}if(typeof c.alvine_imageButtonPanels=="undefined"){c.alvine_imageButtonPanels=new Array()}if(typeof c.alvine_imageButtonSrc=="undefined"){c.alvine_imageButtonSrc=new Object()}if(typeof c.alvine_initValueList=="undefined"){c.alvine_initValueList=new Array()}var b=element_isObject(m);c.alvine_imageButtonLabels.push(e);c.alvine_imageButtonInputs.push(b);c.alvine_imageButtonSrc[b.value]=k;c.alvine_initValueList.push(b.value);var a=new Object();a.object=d;a.value=b.value;c.alvine_imageButtonPanels.push(a);element_move(b,-999,-999);return true}function content_frontend_plugin_content_simple_form_imageselect_triggerInputField(a){if(!a){a=window.event}if(typeof this.alvine_triggerInput=="undefined"){return false}this.alvine_triggerInput(a);return true}function content_frontend_plugin_content_simple_form_imageselect_resetHover(c){if(!c){c=window.event}var b=this.id;var a=b.split("_label__");var e=a[0];var d=element_isObject(e);if(!d){return false}d.alvine_resetHover(b);return true}function content_frontend_plugin_content_simple_form_imageselect_setHover(c){if(!c){c=window.event}var b=this.id;var a=b.split("_label__");var e=a[0];var d=element_isObject(e);if(!d){return false}d.alvine_setHover(b);return true}function content_frontend_plugin_content_simple_form_imageselect_setStatus(c){if(!c){c=window.event}var b=this.id;var a=b.split("_label__");var e=a[0];var d=element_isObject(e);if(!d){return false}d.alvine_setStatus(b);return true}var registeredItems=new Object();function forms_initImageSelectMultiFields(h,b){var f=element_isObject(h);var g=null;if(typeof registeredItems[h]=="undefined"){registeredItems[h]=new Object()}registeredItems[h]["selectionMaxItems"]=(typeof b!="undefined")?b:null;for(var e in f.childNodes){for(var d in f.childNodes[e].childNodes){g=f.childNodes[e].childNodes[d].id;if(g==null){continue}if(typeof g=="undefined"){continue}if(g.substr(0,h.length)!=h){continue}var a=g.split("_label__");if(a[0]!=h){continue}var c=element_isObject(a[0]+"_item__"+a[1]);event_add(g,"mouseover",forms_setHover);event_add(g,"mouseout",forms_setHover);event_add(c,"change",forms_setMultiStatus)}}}function forms_setMultiStatus(g){var f=this.id;var d=f.split("_item__");var l=d[0];var a=element_isObject(l);var k=element_isObject(d[0]+"_label__"+d[1]);selectionCount=1;for(var c in a.childNodes){for(var b in a.childNodes[c].childNodes){obj=a.childNodes[c].childNodes[b].id;if(obj==null){continue}if(typeof obj=="undefined"){continue}if(obj==f){continue}if(obj.substr(0,l.length)!=l){continue}var d=obj.split("_label__");if(d[0]!=l){continue}var h=element_isObject(d[0]+"_item__"+d[1]);var m=element_isObject(d[0]+"_label__"+d[1]);if(h.checked==true){if(registeredItems[l].selectionMaxItems!=null&&selectionCount>registeredItems[l].selectionMaxItems){alert(" Es stehen nur "+registeredItems[l].selectionMaxItems+" M?glichkeiten zur Auswahl.");this.checked=false;element_removeClassName(k,"active");selectionCount--;return false}element_removeClassName(m,"active");element_addClassName(m,"active"," ");selectionCount++}else{element_removeClassName(m,"active")}}}}function forms_resetMultiStatus(g){var a=new Array();a.push(g);var f=element_isObject(g);for(var d in f.childNodes){for(var c in f.childNodes[d].childNodes){obj=f.childNodes[d].childNodes[c].id;if(obj==null){continue}if(typeof obj=="undefined"){continue}if(obj.substr(0,g.length)!=g){continue}var a=obj.split("_label__");if(a[0]!=g){continue}var b=element_isObject(a[0]+"_item__"+a[1]);var e=element_isObject(a[0]+"_label__"+a[1]);b.checked=false;element_removeClassName(e,"active")}}}page_onLoad(forms_processExtendedControls);page_onLoad(forms_initExtendedControls);if(typeof alvine=="undefined"){alvine=new Object()}alvine_object_createObjectPath(alvine,"session.effects");function effects_fade(e,d,f,b,c,l){e=element_isObject(e);if(!e){return false}tmpEffect=new APP_EFFECT("fade");var h=tmpEffect.effectID;alvine_object_createObjectPath(alvine,"session.effects."+e.id+".data.effects."+h);var a=alvine.session.effects[e.id].data;a.parentObject=e;a.callback=l;a.effects[h]=tmpEffect;var g=element_getOpacity(e);if(!isDefined(a.effect_initValues)){a.effect_initValues=new Array();a.effect_initValues.push(g);element_resetOpacity(e)}d=(!isNull(d))?d:g;a.effect_getCurrentValues=function(){var m=element_getOpacity(this.parentObject);return Array(m.toString())};a.effect_init=function(){if(isNull(this.effect_initValues[0])){return true}element_setOpacity(this.parentObject,this.effect_initValues[0]);return true};a.effect_doEffect=function(n,p){var m=new Array();for(var o in n){m[o]=false;if(!isNull(n[o])){element_setOpacity(this.parentObject,n[o]);if(n[o]==this.effects[p].targetValues[o]){m[o]=true}}else{m[o]=true}}if(!m[0]){return true}this.effects[p].stop();if(typeof this.callback!="function"){return true}this.callback();return p};var k=new Array();k.push(d);a.effects[h].addObjects(a,null,k,b,c,f);return a}function effects_rollout(g,b,d,h,e,f,c,m){g=element_isObject(g);if(!g){return false}tmpEffect=new APP_EFFECT("rollout");var k=tmpEffect.effectID;alvine_object_createObjectPath(alvine,"session.effects."+g.id+".data.effects."+k);var a=alvine.session.effects[g.id].data;a.parentObject=g;a.callback=m;a.effects[k]=tmpEffect;if(!isDefined(a.effect_initValues)){a.effect_initValues=new Array();a.effect_initValues.push(element_getWidth(a.parentObject));element_resetWidth(a.parentObject);a.effect_initValues.push(element_getHeight(a.parentObject));element_resetHeight(a.parentObject)}a.effects[k]=tmpEffect;a.options_center=(c===true)?true:false;var n=element_getSize(a.parentObject);b=(!isNull(b))?b:n.width;d=(!isNull(d))?d:n.height;a.effect_init=function(){if(isDefined(this.effect_initValues)){element_setWidth(this.parentObject,this.effect_initValues[0]);element_setHeight(this.parentObject,this.effect_initValues[1])}return true};a.effect_getCurrentValues=function(){var o=element_getSize(this.parentObject);return Array(o.width,o.height)};a.effect_doEffect=function(p,r){var o=new Array();for(var q in p){o[q]=false;if(!isNull(p[q])){if(q==0){element_setWidth(this.parentObject,p[q]);if(this.options_center){element_centerX(this.parentObject)}}else{element_setHeight(this.parentObject,p[q]);if(this.options_center){element_centerY(this.parentObject)}}if(p[q]==this.effects[r].targetValues[q]){o[q]=true}}else{o[q]=true}}if(!o[0]||!o[1]){return true}this.effects[r].stop();if(typeof this.callback!="function"){return true}this.callback();return true};var l=new Array();l.push(b);l.push(d);a.effects[k].addObjects(a,null,l,e,f,h);return a}function effects_move(e,g,b,h,c,d,m){e=element_isObject(e);if(!e){return false}tmpEffect=new APP_EFFECT("move");var k=tmpEffect.effectID;alvine_object_createObjectPath(alvine,"session.effects."+e.id+".data.effects."+k);var a=alvine.session.effects[e.id].data;a.parentObject=e;a.callback=m;a.effects[k]=tmpEffect;var f=element_getPosition(e);if(isNaN(g)||g==null){g=f.x}if(isNaN(b)||b==null){b=f.y}if(!isDefined(a.effect_initValues)){a.effect_initValues=new Array();a.effect_initValues.push(f.x);a.effect_initValues.push(f.y)}a.effect_init=function(){if(isDefined(this.effect_initValues)){element_setLeft(this.parentObject,this.effect_initValues[0]);element_setTop(this.parentObject,this.effect_initValues[1])}return true};a.effect_getCurrentValues=function(){var n=element_getPosition(this.parentObject);return Array(n.x,n.y)};a.effect_doEffect=function(o,q){var n=new Array();for(var p in o){n[p]=false;if(!isNull(o[p])){if(p==0){element_setLeft(this.parentObject,o[p])}else{element_setTop(this.parentObject,o[p])}if(o[p]==this.effects[q].targetValues[p]){n[p]=true}}else{n[p]=true}}if(!n[0]||!n[1]){return true}this.effects[q].stop();if(typeof this.callback!="function"){return true}this.callback();return true};var l=new Array();l.push(g);l.push(b);a.effects[k].addObjects(a,null,l,c,d,h);return a}function APP_EFFECT(a){this.effectType=(isDefined(a))?a:"rollout";this.effectID=element_buildUniqueObjectID(this);this.targetObjects=new Array();if(typeof this.intervalList!="object"){this.intervalList=new Object()}this["stop"]=function(c){if(c){for(var b in this.srcObject.effects){this.srcObject.effects[b].stop()}}else{if(this.intervalID){window.clearInterval(this.intervalID);this.intervalID=null}}return true};this["addObjects"]=function(e,m,h,b,c,k){e=element_isObject(e);if(!e){return false}m=(isNull(m))?this.effectID:m;this.speed=(isNull(b))?75:b;this.angle=(isNull(c))?17:c;if(!isDefined(e.effect_originValues)){e.effect_originValues=e.effect_getCurrentValues()}e.effect_randomValues=new Array();for(var f in h){var l=h[f].toString().split(":");switch(l[0]){case"origin":h[f]=e.effect_originValues[f];break;case"init":h[f]=e.effect_initValues[f];break;case"rand":var g=l[1].split(",");for(var d in g){g[d]=element_recalcValue2px(g[d],e.effect_originValues[f])}e.effect_randomValues[f]=g;break;default:h[f]=element_recalcValue2px(h[f],e.effect_originValues[f]);break}}this.targetValues=h;e.effect_calcNewValues=this.calcNewValues;e.effect_start=function(n){if(typeof this.effects[n]=="undefined"){return true}this.effects[n].start();return true};e.effect_killInterval=function(){this.effects[m].stop();return true};e.effect_stop=e.effect_killInterval;this.targetObjects.push(e.parentObject);this.srcObject=e;if(!e.effect_initDone){e.effect_init()}e.effect_initDone=true;this.eventName=(!isNull(k))?k:"now";if(this.eventName=="now"){this.start()}else{event_add(e.parentObject,this.eventName,'alvine.session.effects["'+e.parentObject.id+'"].data.effect_start("'+m+'")',true)}return true};this["start"]=function(){for(var f in this.targetObjects){var e=this.targetObjects[f];var g=alvine.session.effects[e.id].data;this.initValues=new Array();this.initValues=g.effect_getCurrentValues();for(var d in this.targetValues){if(typeof g.effect_randomValues[d]=="object"){var c=g.effect_randomValues[d];var b=js_rand(c[0],c[1]);this.targetValues[d]=b}}this.stop(true);this.intervalID=window.setInterval('alvine.session.effects["'+e.id+'"].data.effect_calcNewValues("'+this.effectID+'")',this.speed)}return true};this["calcNewValues"]=function(g){var b=this.effect_getCurrentValues();for(var e in b){if(isNull(b[e])){continue}b[e]=parseInt(b[e]);var f=parseInt(this.effects[g].initValues[e]);var c=parseInt(this.effects[g].targetValues[e]);if(b[e]==c){continue}if(f<c){distance=(b[e]<(c/2))?b[e]:(c-b[e])}else{distance=(b[e]>(f/2))?(f-b[e]):b[e]}distance=(distance<0)?(distance*(-1)):distance;distance=(distance==0)?1:distance;var d=Math.ceil(js_acceleration(distance,this.effects[g].angle));if(f<c){if((b[e]+d)<=c){b[e]+=d}else{b[e]=c}}else{if((b[e]-d)>=c){b[e]-=d}else{b[e]=c}}}this.effect_doEffect(b,g);return true};return true}function effects_slideEffect(f,a,h,b,e,c){f=(f)?element_isObject(f):false;a=element_isObject(a);if(!a){return}f.toggleReverseMode=(c===true)?true:false;f.slideObj=a;b=(typeof b=="undefined")?"top":b;var d=b.split(":");b=d[0];d=(typeof d[1]!="undefined")?d[1]:0;e=(typeof e=="undefined"||e==null)?"onclick":e;a.timeout=(typeof h=="undefined")?0:h;a.initSize=element_getSize(a);a.sourceObject=f;var l=(a.parentNode.tagName.toString().toLowerCase()!="body")?element_getSize(a.parentNode):alvine_getViewport();a.targetPosition={x:0,y:0};var k,g;switch(b){case"top":d=(d>0)?(a.initSize.height-d):0;g=(a.initSize.height*(-1));element_setTop(a,g);a.initPosition=element_getPosition(a);if(a.initPosition.x<0||a.initPosition.x>l.width){a.initPosition.x=0;element_setLeft(a,a.initPosition.x)}a.targetPosition.x=a.initPosition.x;a.targetPosition.y=(0-d);break;case"right":d=(d>0)?(a.initSize.width-d):0;k=l.width;element_setLeft(a,k);a.initPosition=element_getPosition(a);a.targetPosition.x=((k-a.initSize.width)+d);if(a.initPosition.y<0||a.initPosition.y>l.height){a.initPosition.y=0;element_setTop(a,a.initPosition.y)}a.targetPosition.y=a.initPosition.y;break;case"bottom":d=(d>0)?(a.initSize.height-d):0;g=l.height;element_setTop(a,g);a.initPosition=element_getPosition(a);if(a.initPosition.x<0||a.initPosition.x>l.width){a.initPosition.x=0;element_setLeft(a,a.initPosition.x)}a.targetPosition.x=a.initPosition.x;a.targetPosition.y=((g-a.initSize.height)+d);break;case"left":d=(d>0)?(a.initSize.width-d):0;k=(a.initSize.width*(-1));element_setLeft(a,k);a.initPosition=element_getPosition(a);a.targetPosition.x=(0-d);if(a.initPosition.y<0||a.initPosition.y>l.height){a.initPosition.y=0;element_setTop(a,a.initPosition.y)}a.targetPosition.y=a.initPosition.y;break}a.effectChain=function(){if(this.alvine_visible===true){return}var m=function(){var n=this.parentObject;if(n.timeout==0){return}window.setTimeout("effects_move('"+n.id+"', '"+n.initPosition.x+"', '"+n.initPosition.y+"', 'now', 12, 18)",n.timeout);n.alvine_visible=false;return};effects_move(this,this.targetPosition.x,this.targetPosition.y,"now",12,18,m);this.alvine_visible=true;return};if(f){f[e]=function(m){if(!m){m=window.event}if(!this.slideObj.alvine_visible){this.slideObj.effectChain();if(typeof this.alvine_onShow=="function"){this.alvine_onShow(m)}}else{if(this.toggleReverseMode){this.slideObj.hide()}}}}else{a.effectChain()}a.hide=function(){if(!this.alvine_visible){return}effects_move(this,this.initPosition.x,this.initPosition.y,"now",12,18);this.alvine_visible=false;if(typeof this.sourceObject!="object"){return}if(typeof this.sourceObject.alvine_onHide!="function"){return}this.sourceObject.alvine_onHide()}}function effects_initTabSlider(d,m,n){d=element_isObject(d);var h=d.getAttribute("alvine:alignment");d.alvine_alignment=(h=="horizontal"||h=="h")?"horizontal":"vertical";var a=d.getElementsByTagName("div");m=(!isNaN(m))?m:0;d.alvine_equalizeEntrySize=(n===true)?true:false;d.alvine_entries={};var f=0;d.alvine_entryList={};for(var e=0;e<a.length;e++){var b=element_isObject(a[e]);if(!b){continue}if(!b.getAttribute){continue}var g=b.getAttribute("alvine:type");if(g!="entry"){continue}d.alvine_entries[b.id]=b;b.alvine_parentObject=d;b.setAttribute("alvine:index",f);b.alvine_fold=function(q,s){var r=0;var p=0;if(this.alvine_parentObject.alvine_alignment=="horizontal"){p=this.alvine_initSize.height;if(!q){r=(this.alvine_parentObject.alvine_equalizeEntrySize)?this.alvine_parentObject.alvine_peak.width:this.alvine_initSize.width}}else{r=this.alvine_initSize.width;if(!q){p=(this.alvine_parentObject.alvine_equalizeEntrySize)?this.alvine_parentObject.alvine_peak.height:this.alvine_initSize.height}}if(s){element_setSize(this.alvine_contentObj,r,p)}else{effects_rollout(this.alvine_contentObj,r,p,"now",12,24)}};var k=b.getElementsByTagName("div");for(var c=0;c<k.length;c++){var o=element_isObject(k[c]);if(!o){continue}if(!o.getAttribute){continue}var l=o.getAttribute("alvine:type");if(!l){continue}if(l=="head"){b.alvine_headObj=o;b.alvine_headObj.alvine_parentObject=b;b.alvine_headObj.alvine_listObject=d;b.alvine_headObj.onclick=function(q){if(!q){q=window.event}var p=this.alvine_parentObject.getAttribute("alvine:index");this.alvine_listObject.alvine_refreshList(p);return true}}else{if(l=="content"){b.alvine_contentObj=o}}}d.alvine_entryList[b.id]=b;f++}d.alvine_setPeaks=function(){this.alvine_peak={width:0,height:0};for(var p in this.alvine_entries){if(this.alvine_entries[p].alvine_initSize){continue}this.alvine_entries[p].alvine_initSize=element_getSize(this.alvine_entries[p].alvine_contentObj);if(this.alvine_entries[p].alvine_initSize.width>this.alvine_peak.width){this.alvine_peak.width=this.alvine_entries[p].alvine_initSize.width}if(this.alvine_entries[p].alvine_initSize.height>this.alvine_peak.height){this.alvine_peak.height=this.alvine_entries[p].alvine_initSize.height}}};d.alvine_refreshList=function(p,t){p=(!isNaN(p))?p:0;t=(t===true)?true:false;for(var r in this.alvine_entryList){var s=this.alvine_entryList[r];var q=s.getAttribute("alvine:index");if(q==p){s.alvine_fold(false,t)}else{s.alvine_fold(true,t)}}};d.alvine_setPeaks();d.alvine_refreshList(m,true)}function effects_arrangePulldownStructure(b,a){b=element_isObject(b);if(!b){return null}a=(typeof a!="undefined"&&a=="unfolded")?"unfolded":"folded";b.alvine_currentFoldStatus=(a=="folded")?"folded":"unfolded";b.alvine_newFoldStatus=(a=="folded")?"unfolded":"folded";effects_buildFoldingStructure(b);effects_activatePulldownStructure(b);event_add(document,"click","effects_pulldownResetStructure('"+b.id+"')");return true}function effects_pulldownResetStructure(a){a=element_isObject(a);if(!a){return null}a.alvine_resetFolding();return true}function effects_pulldownResetFolding(a){if(!a){a=window.event}this.alvine_resetFolding();return true}function effects_pulldownHandleMouseover(a){if(!a){a=window.event}this.alvine_parentObj.alvine_resetFolding(this)}function effects_pulldownHandleMouseout(c){if(!c){c=window.event}if(typeof this.alvine_children!="object"){return}if(typeof this.alvine_children.childrenfolder!="object"){return}var b=this.alvine_children.childrenfolder;for(var a in b){b[a].alvine_resetFolding()}}function effects_activatePulldownStructure(d){if(typeof d.alvine_children=="undefined"){return null}for(var b in d.alvine_children){var a=d.alvine_children[b];for(var e in a){var c=a[e];switch(b){case"childrenfolder":break;case"childpanel":if(typeof c.alvine_parentObj.alvine_resetFolding!="function"){c.alvine_parentObj.alvine_resetFolding=function(g){if(typeof this.alvine_children!="object"){return}if(typeof this.alvine_children.childpanel!="object"){return}g=element_isObject(g);var f=null;f=(g)?g.id:f;for(var h in this.alvine_children.childpanel){var k=this.alvine_children.childpanel[h];if(f!=null&&k.id==f){k.alvine_toggleStatus("unfolded")}else{k.alvine_toggleStatus("folded")}}}}c.alvine_currentFoldStatus=c.alvine_masterObj.alvine_currentFoldStatus;if(typeof c.alvine_toggleStatus!="function"){c.alvine_toggleStatus=function(f){f=(typeof f!="undefined"&&f=="unfolded")?"unfolded":"folded";this.alvine_currentFoldStatus=f;for(var g in this.alvine_children.childrenfolder){var h=this.alvine_children.childrenfolder[g];if(this.alvine_currentFoldStatus=="unfolded"){if(!strstr(h.className,"sfxPulldownFolded")&&!strstr(h.className,"sfxPulldownUnfolded")){element_addClassName(h,"sfxPulldownUnfolded")}else{element_replaceClassName(h,"sfxPulldownFolded","sfxPulldownUnfolded")}}else{if(this.alvine_currentFoldStatus=="folded"){element_replaceClassName(h,"sfxPulldownUnfolded","sfxPulldownFolded")}}element_replaceClassName(h,"  "," ")}this.alvine_newFoldStatus=(this.alvine_currentFoldStatus=="folded")?"unfolded":"folded"}}c.alvine_toggleStatus(c.alvine_masterObj.alvine_currentFoldStatus);event_add(c,"mouseover",effects_pulldownHandleMouseover);event_add(c,"mouseout",effects_pulldownHandleMouseout);break;case"folderswitch":if(typeof d.alvine_children=="undefined"){break}if(typeof d.alvine_children.childrenfolder=="undefined"){element_replaceClassName(c,"sfxPulldownFolded","sfxPulldownBlank");break}break;case"datailfolder":break}effects_activatePulldownStructure(c,c.alvine_masterObj.alvine_currentFoldStatus)}}return true}function effects_arrangeFoldingStructure(b,a){b=element_isObject(b);if(!b){return null}a=(typeof a!="undefined"&&a=="unfolded")?"unfolded":"folded";b.alvine_currentFoldStatus=(a=="folded")?"folded":"unfolded";b.alvine_newFoldStatus=(a=="folded")?"unfolded":"folded";effects_buildFoldingStructure(b);effects_activateFoldingStructure(b);return true}function effects_buildFoldingStructure(g,h){g=element_isObject(g);if(!g){return null}h=(typeof h=="undefined")?0:h;var f={};for(var c in g.childNodes){var b=g.childNodes[c];b=element_isObject(b);if(!b){continue}if(typeof b!="object"){continue}if(typeof b.id=="undefined"){continue}var e=b.getAttribute("alvine:effects");if(!e||e.indexOf("foldingListKey",0)!=0){continue}e=e.substr(14).toLowerCase();if(e==""){continue}if(typeof f=="undefined"){f={}}if(typeof f[e]=="undefined"){f[e]={}}if(typeof f[e].first=="undefined"){f[e].first=b}if(typeof f[e].last=="undefined"){f[e].last={}}f[e].last=b;element_addClassName(b,"inside");b.alvine_parentObj=g;b.alvine_level=h;if(e=="childpanel"){element_addClassName(b,"level"+h.toString())}if(typeof g.alvine_children=="undefined"){g.alvine_children=new Object()}if(typeof g.alvine_children[e]=="undefined"){g.alvine_children[e]=new Object()}g.alvine_children[e][b.id]=b;b.alvine_masterObj=(typeof g.alvine_masterObj=="undefined")?g:g.alvine_masterObj;if(e=="folderswitch"){if(typeof b.alvine_masterObj.alvine_masterChildren=="undefined"){b.alvine_masterObj.alvine_masterChildren=new Object()}if(typeof b.alvine_masterObj.alvine_masterChildren.folderswitch=="undefined"){b.alvine_masterObj.alvine_masterChildren.folderswitch=new Object()}b.alvine_masterObj.alvine_masterChildren.folderswitch[b.id]=b}if(typeof b.hasChildNodes=="function"&&!b.hasChildNodes()){continue}var a=h+1;effects_buildFoldingStructure(b,a)}if(typeof f!="object"){return true}for(var c in f){var d=f[c];if(typeof d!="object"){continue}element_removeClassName(d.first,"inside");element_addClassName(d.first,"first");element_removeClassName(d.last,"inside");element_addClassName(d.last,"last")}return true}function effects_activateFoldingStructure(d){if(typeof d.alvine_children=="undefined"){return null}for(var b in d.alvine_children){var a=d.alvine_children[b];for(var e in a){var c=a[e];switch(b){case"childrenfolder":break;case"childpanel":break;case"folderswitch":if(typeof d.alvine_children=="undefined"){break}if(typeof d.alvine_children.childrenfolder=="undefined"){element_replaceClassName(c,"sfxFolded","sfxBlank");break}c.alvine_currentFoldStatus=c.alvine_masterObj.alvine_currentFoldStatus;if(typeof c.alvine_toggleStatus!="function"){c.alvine_toggleStatus=function(f){f=(typeof f!="undefined"&&f=="unfolded")?"unfolded":"folded";this.alvine_currentFoldStatus=f;for(var g in this.alvine_parentObj.alvine_children.childrenfolder){var h=this.alvine_parentObj.alvine_children.childrenfolder[g];if(typeof h.alvine_initSize=="undefined"){h.alvine_initSize=element_getSize(h)}if(this.alvine_currentFoldStatus=="unfolded"){element_setHeight(h,"auto");element_replaceClassName(this,"sfxFolded","sfxUnfolded")}else{if(this.alvine_currentFoldStatus=="folded"){element_setHeight(h,0);element_replaceClassName(this,"sfxUnfolded","sfxFolded")}}element_replaceClassName(this,"  "," ")}this.alvine_newFoldStatus=(this.alvine_currentFoldStatus=="folded")?"unfolded":"folded"}}c.alvine_toggleStatus(c.alvine_masterObj.alvine_currentFoldStatus);c.onclick=function(f){if(!f){f=window.event}this.alvine_toggleStatus(this.alvine_newFoldStatus);return true};break;case"datailfolder":break}effects_activateFoldingStructure(c,c.alvine_masterObj.alvine_currentFoldStatus)}}return true}function effects_toggleFoldingStatusAll(d,a){d=element_isObject(d);a=(typeof a!="undefined"&&a=="unfolded")?"unfolded":"folded";if(!d){return a}d.alvine_currentFoldStatus=a;if(typeof d.alvine_masterChildren=="undefined"){return null}var b;var c;if(typeof d.alvine_masterChildren.folderswitch!="undefined"){b=d.alvine_masterChildren.folderswitch;for(var e in b){c=b[e];if(typeof c.alvine_toggleStatus!="function"){continue}c.alvine_toggleStatus(d.alvine_currentFoldStatus)}}d.alvine_newFoldStatus=(d.alvine_currentFoldStatus=="folded")?"unfolded":"folded";if(typeof d.alvine_toggleButton!="undefined"){d.alvine_toggleButton.alvine_changeStatusClass(d.alvine_newFoldStatus)}return d.alvine_newFoldStatus}function effects_initToggleListFoldingButton(a,b){a=element_isObject(a);if(!a){return false}if(typeof a.alvine_initDone!="undefined"&&a.alvine_initDone==true){return true}a.alvine_initDone=true;b=element_isObject(b);if(!b){return false}a.alvine_listObj=b;b.alvine_toggleButton=a;if(!strstr(a.className,"sfxFolded")){element_addClassName(a,"sfxFolded")}a.alvine_changeStatusClass=function(c){var e=(c=="folded")?"sfxFolded":"sfxUnfolded";var d=(e=="sfxFolded")?"sfxUnfolded":"sfxFolded";element_replaceClassName(this,e,d);element_replaceClassName(this,"  "," ")};event_add(a,"click",effects_handleListFoldingToggleClick);return true}function effects_handleListFoldingToggleClick(a){if(!a){a=window.event}effects_toggleFoldingStatusAll(this.alvine_listObj,this.alvine_listObj.alvine_newFoldStatus);this.alvine_changeStatusClass(this.alvine_listObj.alvine_newFoldStatus);this.alvine_oldStatus=this.alvine_newStatus;return object_preventDefaultEventBehaviour(a)}function effects_initHover(a){a=element_isObject(a);if(!a){return}if(a.alvine_hoverInitDone){return}a.onmouseover=function(b){if(this.alvine_hover){return true}if(!b){b=window.event}element_addClassName(this,"cdHoverColor");this.alvine_hover=true;return true};a.onmousemove=a.onmouseover;a.onmouseout=function(b){if(!b){b=window.event}element_removeClassName(this,"cdHoverColor");this.alvine_hover=false;return true};a.alvine_hoverInitDone=true;return}function effects_initHighlightTargetCell(b,a){b=element_isObject(b);if(!b){return}a=element_isObject(a);if(!a){return}b.alvine_targetObj=a;if(b.alvine_hoverInitDone){return}b.onmouseover=function(c){if(b.alvine_targetObj.alvine_hover){return true}if(!c){c=window.event}element_addClassName(b.alvine_targetObj,"cdHoverColor");b.alvine_targetObj.alvine_hover=true;return true};b.onmousemove=b.onmouseover;b.onmouseout=function(c){if(!c){c=window.event}element_removeClassName(b.alvine_targetObj,"cdHoverColor");b.alvine_targetObj.alvine_hover=false;return true};b.alvine_hoverInitDone=true;return}if(typeof alvine=="undefined"){var alvine=new Object()}function content_js_init(b,a){if(typeof alvine.session=="undefined"){alvine.session=new Object()}if(typeof alvine.plugin=="undefined"){alvine.plugin=new Object()}if(typeof alvine.content=="undefined"){alvine.content=new Object()}if(typeof alvine.page=="undefined"){alvine.page=new Object()}if(typeof alvine.content["imagePreloader"]=="undefined"){alvine.content["imagePreloader"]=new Object()}if(typeof a.useImagePreloader!="undefined"){if(a.useImagePreloader){page_onLoad(content_js_imagePreloader_preloadImages)}}content_js_importSettings()}function content_js_imagePreloader_registerImage(a,b){if(typeof a=="undefined"){return false}b=(typeof b=="undefined")?a:b;if(typeof alvine.content["imagePreloader"][b]=="undefined"){alvine.content["imagePreloader"][b]=new Object()}alvine.content.imagePreloader[b]["url"]=a;return true}function content_js_imagePreloader_getStoredImageObject(a){if(typeof a=="undefined"){return false}if(typeof alvine.content.imagePreloader[a]["object"]=="undefined"){return false}return alvine.content.imagePreloader[a]["object"]}function content_js_imagePreloader_preloadImages(b){if(!b){b=window.event}for(var a in alvine.content.imagePreloader){if(typeof alvine.content.imagePreloader[a]["url"]=="undefined"){continue}if(typeof alvine.content.imagePreloader[a]["object"]!="undefined"){continue}alvine.content.imagePreloader[a]["object"]=new Image();alvine.content.imagePreloader[a]["object"].src=alvine.content.imagePreloader[a]["url"]}}function content_js_cutWindow(){document.body.style.overflow="hidden";if(document.getElementsByTagName("html")[0]){document.getElementsByTagName("html")[0].style.overflow="hidden"}return true}function content_js_releaseCuttedWindow(){document.body.style.overflow="visible";if(document.getElementsByTagName("html")[0]){document.getElementsByTagName("html")[0].style.overflow=""}return true}function content_js_scrollWindow(b,a,c){c=(c==false)?false:true;if(c){b=(isNaN(b))?0:b;a=(isNaN(a))?0:a;window.scroll(b,a)}return true}function content_js_setHover(d,b,f,a){d=element_isObject(d);if(!d){return false}var c="js_hover";var e=(b)?c+"_"+b:c;if(typeof d.alvine_hoverKey!="undefined"){return true}element_addClassName(d,"islink");element_addClassName(d,e);d.alvine_hoverKey=e;f=(f)?f:"mouseover";a=(a)?a:"mouseout";event_add(d,f,content_js_addHover);event_add(d,a,content_js_removeHover);return true}function content_js_addHover(a){if(!a){a=window.event}if(typeof this.alvine_hoverKey=="undefined"){return true}element_addClassName(this,this.alvine_hoverKey);return true}function content_js_removeHover(a){if(!a){a=window.event}if(typeof this.alvine_hoverKey=="undefined"){return true}element_removeClassName(this," "+this.alvine_hoverKey);return true}function content_frontend_plugin_shop_navigation_list_init(){}function content_frontend_plugin_shop_item_gallery_init(){}function content_frontend_plugin_shop_item_order_form_init(){}if(typeof price=="undefined"){var price=new Object()}function content_frontend_plugin_shop_item_order_form_changePrice(d,b,a){obj=getElementID("detailPrice"+b+a);if(!obj){return}if(!price[b][a][d]){return}var c=price[b][a][d];writeHTML(obj,c)}function content_frontend_plugin_shop_item_order_form_addPrice(c,a,b,d){if(typeof price[c]=="undefined"){price[c]=new Object()}if(typeof price[c][a]=="undefined"){price[c][a]=new Object()}price[c][a][b]=d}function content_frontend_plugin_shop_item_order_form_changeAdvised(c,b,a){obj=getElementID("detailAdvised"+b+a);if(!obj){return}if(!alvine.plugin[b]["advised"][a]){return}var d=alvine.plugin[b]["advised"][a][c];writeHTML(obj,d)}function content_frontend_plugin_shop_item_order_form_addAdvised(d,b,c,a){if(typeof alvine.plugin[d]=="undefined"){alvine.plugin[d]=new Object()}if(typeof alvine.plugin[d]["advised"]=="undefined"){alvine.plugin[d]["advised"]=new Object()}if(typeof alvine.plugin[d]["advised"][b]=="undefined"){alvine.plugin[d]["advised"][b]=new Object()}alvine.plugin[d]["advised"][b][c]=a}var JAVASCRIPT_IMAGES_PRELOAD=new Object();function image_preload_init(a){if(typeof JAVASCRIPT_IMAGES_PRELOAD[a]!="undefined"){return false}JAVASCRIPT_IMAGES_PRELOAD[a]=new Array()}function image_preload_add(b,c){var a=JAVASCRIPT_IMAGES_PRELOAD[b].length;JAVASCRIPT_IMAGES_PRELOAD[b][a]=new Object();JAVASCRIPT_IMAGES_PRELOAD[b][a]["name"]=c.name;JAVASCRIPT_IMAGES_PRELOAD[b][a]["src"]=c.src}function image_preload_get(b,a){return JAVASCRIPT_IMAGES_PRELOAD[b][a]}function image_shrinkToFit(d,c,e){d=element_isObject(d);var a=element_getSize(d);ret=new Object();var b=(a.width/a.height);if(a.width>a.height){ret.width=c;ret.height=c*b}else{ret.width=e*b;ret.height=e}if(a.width==a.height){ret.width=c;ret.height=e}return ret}var sfxObjects=new Object();function JAVASCRIPT_SFX(){this.oid=element_buildUniqueObjectID(this);this.objectPool=new Object();this.objectName=null;this.calc=new JAVASCRIPT_SFX_OBJECT_POSITION_CALC();this.followingObjects=new Array();this.followOptions=new Object();this.current_intervalID=null;this.addObject=JAVASCRIPT_SFX_addObject;this.registerFollowingObject=JAVASCRIPT_SFX_registerFollowingObject;this.setFollowingOptions=JAVASCRIPT_SFX_setFollowingOptions;this.callFollowingObjects=JAVASCRIPT_SFX_callFollowingObjects;this.start=JAVASCRIPT_SFX_start;this.stop=JAVASCRIPT_SFX_stop}JAVASCRIPT_SFX_addObject=function(a,c,b){a=element_isObject(a);this.objectPool[a.id]=new Object();this.objectPool[a.id]=a;this.objectPool[a.id]["destination"]=new Object();this.objectPool[a.id]["destination"]["x"]=(typeof c=="number")?c:null;this.objectPool[a.id]["destination"]["y"]=(typeof b=="number")?b:null;this.objectPool[a.id]["initPosition"]=element_getPosition(a.id);return true};JAVASCRIPT_SFX_registerFollowingObject=function(a){a=element_isObject(a);if(typeof a.start=="undefined"){return true}this.followingObjects.push(a);return true};JAVASCRIPT_SFX_setFollowingOptions=function(a,b){this.sfx.followingOptions[a]=b;return true};JAVASCRIPT_SFX_callFollowingObjects=function(){for(var a in this.followingObjects){if(typeof this.followingObjects[a].start=="undefined"){continue}this.followingObjects[a].start()}return true};JAVASCRIPT_SFX_start=function(){this.sfx.callString=this.sfx.objectName+".doEffect()";this.sfx.current_intervalID=setInterval(this.sfx.callString,this.sfx.calc.intervalSpeed);return true};JAVASCRIPT_SFX_stop=function(){clearInterval(this.sfx.current_intervalID);if(this.sfx.followingObjects.length==0){return true}this.sfx.callFollowingObjects();return true};var app_registeredItems=new Object();function JAVASCRIPT_SFX_OBJECT_POSITION_CALC(){this.intervalSpeed=50;this.a=1e-9;this.b=0.0001;this.c=1;this.startTime=null;this.getValue=JAVASCRIPT_SFX_OBJECT_POSITION_CALC_getValue;this.setParameters=JAVASCRIPT_SFX_OBJECT_POSITION_CALC_setParameters;this.reset=JAVASCRIPT_SFX_OBJECT_POSITION_CALC_reset}JAVASCRIPT_SFX_OBJECT_POSITION_CALC_getValue=function(h,l){h=(typeof h=="undefined")?1:h;if(this.startTime==null){this.startTime=time_getMilliTimestamp()}var g=time_getMilliTimestamp();var f=(g-this.startTime);var e=this.a;var d=this.b;var k=this.c;if(l==true){y=Math.ceil(e)}else{y=e*Math.pow(f,2)+(d*f)+k;y=Math.floor(y)}return y};JAVASCRIPT_SFX_OBJECT_POSITION_CALC_setParameters=function(f,e,d,g){this.intervalSpeed=(typeof f!="undefined"&&f!=null)?f:this.intervalSpeed;this.a=(typeof e!="undefined"&&e!=null)?e:this.a;this.b=(typeof d!="undefined"&&d!=null)?d:this.b;this.c=(typeof g!="undefined"&&g!=null)?g:this.c};JAVASCRIPT_SFX_OBJECT_POSITION_CALC_reset=function(){this.startTime=null};function sfx_openPopUp(c,b,a){ScreenWidth=screen.width;ScreenHeight=screen.height;xpos=(ScreenWidth/2)-(b/2);ypos=(ScreenHeight/2)-(a/2);option="left="+xpos+",top="+ypos+",width="+b+",height="+a+",status=false,toolbar=false";neupop=open(c,"Detail",option)}function JAVASCRIPT_SFX_ROLLOUT(b,a){this.sfx=new JAVASCRIPT_SFX();this.sfx.objectName=b;this.oid=element_buildUniqueObjectID(this);this.effect_type="slide";this.status_open=false;if(typeof a!="undefined"){unlock_sizing=a.unlock_sizing==true?true:false;this.sfx.setFollowingOptions("unlock_sizing",unlock_sizing)}this.doEffect=JAVASCRIPT_SFX_ROLLOUT_doEffect;this.addItem=JAVASCRIPT_SFX_ROLLOUT_addItem;this.setSpeedParameters=JAVASCRIPT_SFX_ROLLOUT_setSpeedParameters;this.start=this.sfx.start;this.stop=this.sfx.stop;return true}JAVASCRIPT_SFX_ROLLOUT_addItem=function(a,h,e,b){a=element_isObject(a);var n=element_getSize(a);switch(b){default:case"slide":var d=h.toString().substring((h.toString().length-1))=="%"?true:false;var c=e.toString().substring((e.toString().length-1))=="%"?true:false;var l=n.width*(-1);var g=n.height*(-1);var f=element_getPosition(a);var h=(h!="")?element_recalcValue2px(h,n.width):f.x;var e=(e!="")?element_recalcValue2px(e,n.height):f.y;var m=(d)?l+h:parseInt(h);var k=(c)?g+e:parseInt(e);break;case"size":var m=element_recalcValue2px(h,n.width);var k=element_recalcValue2px(e,n.height);break}this.sfx.addObject(a,m,k);this.sfx.objectPool[a.id]["effectType"]=(typeof b!="undefined")?b:"slide"};JAVASCRIPT_SFX_ROLLOUT_setSpeedParameters=function(f,e,d,g){this.sfx.calc.setParameters(f,e,d,g)};JAVASCRIPT_SFX_ROLLOUT_doEffect=function(){var e=this.sfx.objectPool;var b=new Object();b.x=null;b.y=null;for(var h in e){var c=e[h];switch(c.effectType){default:case"slide":var d=element_getPosition(c);b.x=d.x;b.y=d.y;break;case"size":var a=element_getSize(c);b.x=a.width;b.y=a.height;break}var f=new Object();f.x=(b.x<c.destination.x)?1:-1;f.y=(b.y<c.destination.y)?1:-1;var g=0;for(axis in f){if(b[axis]==c.destination[axis]){continue}g=this.sfx.calc.getValue(f[axis]);if(f[axis]>0){b[axis]+=g;b[axis]=(b[axis]<c.destination[axis])?b[axis]:c.destination[axis]}else{if(f[axis]<0){b[axis]-=g;b[axis]=(b[axis]>c.destination[axis])?b[axis]:c.destination[axis]}}}switch(c.effectType){default:case"slide":element_move(c,b.x,b.y);break;case"size":element_setSize(c,b.x,b.y);break}if(b.x==c.destination.x&&b.y==c.destination.y){delete this.sfx.objectPool[h];continue}}if(object_count(this.sfx.objectPool)==0){this.stop()}return true};function image_expression_raisePopup(a){if(typeof this.alvine_popupid=="undefined"){return false}if(typeof this.alvine_popupContent=="undefined"){return false}content_layout_popup_js_show(this.alvine_popupid,this.alvine_popupContent,true);return true}function __debug(a,b){var d="";var h=0;b=(b!="undefined")?b:true;if(!name){name=""}var g="";if(!b){d+='<div style="margin:0px 0px 5px 0px;background:#ffcccc;overflow:hidden;border:1px solid #000000;color:#444444;">\n';d+='<div style="font-style:italic">DEBUG-Output(JS)</div>\n';d+='<div style="font-weight:bold">'+name+"</div>\n";d+="<pre>\n"}for(var c=0;c<=h;c++){g+="  "}if(typeof(a)=="object"){for(var e in a){var f=a[e];if(typeof(f)=="object"){d+=g+""+e+" ... ";d+=dump(f,h+1);d+="\n"}else{d+=g+""+e+" => "+f+"\n"}}}else{d+="===>"+a+"<===("+typeof(a)+")\n"}if(!b){d+="</pre>\n";d+="</div>\n"}if(!b){document.write(d)}else{alert(d)}return true}function _dbg(e){if(typeof e=="undefined"){alert("_dbg: no object given");return false}var a=new Array();var g=18;var d=new Array();var c=0;for(var b in e){if(typeof e[b]=="undefined"){continue}d.push(b.toString()+": "+e[b]);c++;if(c==g){a.push(d.join("\n"));var d=new Array();c=0}}for(var f in a){alert(a[f])}}function errorMessage(d,c,b){var a="Es ist ein Fehler aufgetreten!\n\n";a+="Meldung: "+d+"\n";a+="URL: "+c+"\n";a+="Zeile: "+b;alert(a);return true}function alvineDebugExpandDebugAll(d,c){if(c=="inline"){alvineDebugExpandDebug(d)}var a=document.getElementById(d).getElementsByTagName("DIV");var b=a.length;for(i=0;i<b;i++){if(a[i].style.display==""){continue}if(c=="inline"){if(a[i].style.display=="block"){a[i].style.display="none"}else{a[i].style.display="block"}}if(c=="open"){a[i].style.display="block"}if(c=="close"){a[i].style.display="none"}}}function alvineDebugExpandDebug(a){if(document.getElementById(a).style.display=="none"){document.getElementById(a).style.display="block"}else{document.getElementById(a).style.display="none"}}function content_layout_popup_js_init(f,d,m,c){var a="content_layout_popup_"+f;var l=a+"_background";var k=a+"_visible_panel";var b=a+"_content";var n=element_isObject(k);var h=element_isObject(l);if(typeof n.alvine_setPositioning!="function"){n.alvine_setPositioning=function(p){var q=alvine_getViewport();if(p.width>=q.width||p.height>=q.height){this.style.position="absolute";if(this.parentNode){this.parentNode.style.position="absolute"}}else{if(!_ALVINE_IE6){this.style.position="fixed";if(this.parentNode){this.parentNode.style.position="fixed"}}}}}n.minimalSize=(typeof d=="object")?d:{width:0,height:0};var o=true;event_add(window,"resize",'content_layout_popup_js_move("'+f+'")',o);event_add(window,"minimize",'content_layout_popup_js_move("'+f+'")',o);event_add(window,"maximize",'content_layout_popup_js_move("'+f+'")',o);var g=element_isObject(a);g.alvine_visible=(g.style.display=="none")?false:true;g.alvine_backgroundObj=h;if(_ALVINE_IE){g.alvine_ieFixCropping=function(){var p;if(document.documentElement){p={width:document.documentElement.scrollWidth,height:document.documentElement.scrollHeight}}else{if(document.body){p={width:document.body.scrollWidth,height:document.body.scrollWidth}}}if(p.width){element_setSize(this,p.width,p.height)}}}var e=element_isObject(b);if(typeof e.alvine_executeChildrensHandler!="function"){e.alvine_executeChildrensHandler=function(r,s){if(typeof r=="undefined"||r==""){return true}for(var q in this.childNodes){var p=this.childNodes[q];if(typeof p!="object"){continue}if(typeof p[r]!="function"){continue}p[r](s)}return true}}m=(m===true)?true:false;if(!m){return true}c=(c===true)?true:false;element_move(g,-9999,0);content_layout_popup_js_autoFit(f,false,true,c);content_layout_popup_js_show(f,null,null,c);return true}function content_layout_popup_js_show(b,o,e,a,n,h,k,m){e=(typeof e=="undefined")?false:true;var f="content_layout_popup_"+b;var d=element_isObject(f);if(!d){return false}d.alvine_sourceObject=h;d.alvine_positionOffset=k;d.alvine_clearOnClose=(typeof m=="undefined")?false:m;var c=element_isObject(f+"_scroll_content");c.style.position="relative";var g=element_isObject(f+"_content");if(!g){g=d}if(typeof o!="undefined"&&o!=null){if(e==true){element_addChildNodes(g,o,true)}else{element_addChildNodes(g,o)}}if(n){content_layout_popup_js_setTitle(b,n)}ie6ToggleActiveXControls(false);element_setOpacity(d,0);element_setDisplay(d,"block");if(typeof g.alvine_executeChildrensHandler=="function"){g.alvine_executeChildrensHandler("alvine_onOpen")}element_move(d,0,0);d.alvine_visible=true;a=(a===true)?true:false;content_layout_popup_js_autoFit(b,false,true,a);content_layout_popup_js_move(b);if(d.alvine_backgroundObj){if(typeof d.alvine_backgroundObj.alvine_initOpacity=="undefined"){d.alvine_backgroundObj.alvine_initOpacity=element_getOpacity(d.alvine_backgroundObj)}element_setOpacity(d.alvine_backgroundObj,0);element_setDisplay(d.alvine_backgroundObj,"block");var l=(d.alvine_backgroundObj.alvine_initOpacity>0)?d.alvine_backgroundObj.alvine_initOpacity:100;effects_fade(d.alvine_backgroundObj,l,"now",parseInt((l/100*50)),parseInt((l/100*80)))}effects_fade(d,"100","now",35,90);return true}function content_layout_popup_js_autoFit(e,k,p,c){p=(p===true)?true:false;c=false;k=(k===false)?false:true;var a="content_layout_popup_"+e;var d=a+"_visible_panel";var b=element_isObject(a);if(!b){return true}if(!b.alvine_visible){return true}if(_ALVINE_IE){b.alvine_ieFixCropping()}var m=element_isObject(d);if(!m){return true}var r=alvine_getViewport();element_resetSize(m);var o=element_getSize(m);var l;if(c){var h=0.8;l={width:parseInt((r.width*h)),height:parseInt((r.height*h))}}else{l=o}var g=new Object();for(var n in m.minimalSize){g[n]=m.minimalSize[n]}if(typeof m.alvine_initialSize=="undefined"||p){m.alvine_initialSize=new Object()}var q=new Object();for(var n in o){if(typeof m.alvine_initialSize[n]=="undefined"||m.alvine_initialSize[n]==0){m.alvine_initialSize[n]=o[n]}q[n]=(parseInt(o[n])>=m.alvine_initialSize[n])?parseInt(o[n]):m.alvine_initialSize[n]}var f=q;if(f.width>=l.width){f.width=l.width}else{if(f.width<=g.width){f.width=g.width}}if(f.height>=l.height){f.height=l.height}else{if(f.height<=g.height){f.height=g.height}}element_setSize(m,f.width,f.height,true);content_layout_popup_js_move(e);return true}function content_layout_popup_js_move(s){var p="content_layout_popup_"+s;var e=element_isObject(p);if(!e){return true}if(!e.alvine_visible){return true}var m=p+"_visible_panel";var r=element_isObject(m);if(!r){return true}var b=element_getSize(r);if(_ALVINE_IE){e.alvine_ieFixCropping()}var q=new Object();for(var w in b){if(typeof r.alvine_initialSize=="undefined"){r.alvine_initialSize={};if(typeof r.alvine_initialSize[w]=="undefined"){r.alvine_initialSize[w]=b[w]}}else{if(typeof r.alvine_initialSize[w]==0){r.alvine_initialSize[w]=b[w]}}q[w]=(parseInt(b[w])>=r.alvine_initialSize[w])?parseInt(b[w]):r.alvine_initialSize[w]}var c=q;r.alvine_setPositioning(c);var o=e.alvine_sourceObject;var f=e.alvine_positionOffset;if(typeof f!="object"){f={x:"center",y:"center"}}else{f.x=(typeof f.x=="undefined")?"center":f.x;f.y=(typeof f.y=="undefined")?"center":f.y}var v=element_getSize(r);var u=null;var l=null;if(typeof o=="object"){u=element_getPosition(o,true);l=element_getSize(o);element_resetSize(r);v=element_getSize(r);r.style.position="absolute"}else{u=element_getPosition(r,true);l=element_getSize(r)}var t=f.x.toString().split(":");var h=f.y.toString().split(":");if(t[0]=="center"){}else{if(t[0]=="left"){f.x=(v.width*(-1))}else{if(t[0]=="right"){f.x=l.width}else{f.x=parseInt(t[0])}}}if(typeof f.x!="string"){f.x+=(typeof t[1]!="undefined")?parseInt(t[1]):0}if(h[0]=="center"){}else{if(h[0]=="top"){f.y=((v.height+l.height)*(-1))}else{if(h[0]=="bottom"){f.y=0}else{f.y=parseInt(h[0])}}}if(typeof f.y!="string"){f.y+=(typeof h[1]!="undefined")?parseInt(h[1]):0}var a=alvine_getViewport();var g;var d;if(f.x=="center"||f.y=="center"){g=new Object();d=new Object()}var n=new Object();if(f.x=="center"){g.x=parseInt((a.width/2));d.x=parseInt((v.width/2));n.x=(g.x-d.x)}else{n.x=(u.x+f.x);if((n.x+v.width)>=(a.width+window.scrollX)){var k=(a.width-u.x-f.x);element_setWidth(r,k);v.width=k;n.x=(u.x-v.width-f.x)}}if(f.y=="center"){g.y=parseInt((a.height/2));l=element_getSize(r);d.y=parseInt((v.height/2));n.y=(g.y-d.y)}else{n.y=(u.y+l.height+f.y);if((n.y+v.height)>=(a.height+window.scrollY)){n.y=(u.y-v.height-f.y)}}if(n.x<0){n.x=0}if(n.y<0){n.y=0}element_move(r,n.x,n.y);return true}function content_layout_popup_js_setTitle(b,e){var c="content_layout_popup_"+b;var d=element_isObject(c);if(!d){return false}var a=element_isObject(c+"_title");if(!a){return false}writeHTML(a,e);return true}function content_layout_popup_js_attach(a,e,f,k,b,g,c,d){if(typeof a=="undefined"){return false}if(typeof f=="undefined"){return false}var l=element_isObject(e);if(!l){return false}var h=element_isObject(a);if(!h){return false}l.alvine_popupContentObject=h;l.alvine_popupID=f;l.alvine_popupTitle=k;l.alvine_popupClear=(typeof g=="undefined")?true:g;l.alvine_popupCropContent=(typeof c=="undefined")?false:c;l.alvine_popupClearOnReset=(typeof d=="undefined")?false:d;b=(typeof b=="undefined")?"click":b;event_add(l,b,content_layout_popup_js_raisePopUp,true);return true}function content_layout_popup_js_raisePopUp(a){if(!a){a=window.event}content_layout_popup_js_show(this.alvine_popupID,this.alvine_popupContentObject,this.alvine_popupClear,this.alvine_popupCropContent,this.alvine_popupTitle,"","",this.alvine_popupClearOnReset);return true}function content_layout_popup_js_closePopup(c){var d=element_isObject(c);if(!d){return false}var b=element_isObject(c+"_content");if(typeof b.alvine_executeChildrensHandler=="function"){b.alvine_executeChildrensHandler("alvine_onClose")}var a=element_isObject(c+"_visible_panel");if(typeof a.alvine_initPosition=="object"){a.alvine_initPosition=new Object()}if(typeof d.alvine_initialSize=="object"){d.alvine_initialSize=new Object()}element_setDisplay(d,"none");if(d.alvine_backgroundObj){element_setDisplay(d.alvine_backgroundObj,"none")}element_move(d,-9999,0);d.alvine_visible=false;if(d.alvine_clearOnClose){if(!b){b=d}}element_resetSize(a);ie6ToggleActiveXControls(true);return true}var content_frontend_plugin_content_layout_tooltips=new Object();var content_frontend_plugin_content_layout_windowsSensitiveBorder=new Object();content_frontend_plugin_content_layout_windowsSensitiveBorder.x=15;content_frontend_plugin_content_layout_windowsSensitiveBorder.y=15;function content_frontend_plugin_content_layout_tooltip_register(c,e,d,a,f,b){if(typeof content_frontend_plugin_content_layout_tooltips[e.id]=="undefined"){content_frontend_plugin_content_layout_tooltips[e.id]=new Object()}content_frontend_plugin_content_layout_tooltips[e.id]["target"]=c;content_frontend_plugin_content_layout_tooltips[e.id]["source"]=e.id;content_frontend_plugin_content_layout_tooltips[e.id]["content"]=d;content_frontend_plugin_content_layout_tooltips[e.id]["fix_width"]=(typeof d=="string")?true:false;content_frontend_plugin_content_layout_tooltips[e.id]["mode"]=f;content_frontend_plugin_content_layout_tooltips[e.id]["options"]=b;content_frontend_plugin_content_layout_tooltips[e.id]["position"]=a;return true}function content_frontend_plugin_content_layout_tooltip_getItem(a){a=element_isObject(a);if(!a){return}if(typeof content_frontend_plugin_content_layout_tooltips[a.id]=="undefined"){return false}return content_frontend_plugin_content_layout_tooltips[a.id]}function content_frontend_plugin_content_layout_tooltip_init(l,c,g,b,f,m){c=element_isObject(c);if(!c){return true}if(c.alvine_tooltipInitalized){content_frontend_plugin_content_layout_tooltip_showObject(c);return true}if(typeof b=="undefined"){b="mouseout"}if(typeof m=="undefined"){m=new Object()}else{if(typeof m=="string"){var h=m.split(",");m=new Object();for(var d=0;d<h.length;d++){var k=h[d];tmpKeyVal=k.split(":");m[tmpKeyVal[0]]=tmpKeyVal[1]}}}if(typeof m.offset=="undefined"){m.offset=new Object()}if(typeof m.offset["positive"]=="undefined"){m.offset["positive"]=new Object()}if(typeof m.offset["negative"]=="undefined"){m.offset["negative"]=new Object()}if(typeof m.currentPosition=="undefined"){m.currentPosition=new Object()}if(typeof m.width=="undefined"){m.width=null}if(typeof m.min_width=="undefined"){m.min_width=300}var e=element_getPosition(c,true);content_frontend_plugin_content_layout_tooltip_register(l,c,g,e,f,m);var a=element_isObject(l);if(!a){return true}if(typeof a.alvine_isVisible!="function"){a.alvine_isVisible=function(){if(strstr(this.className,"hidden")){return false}return true}}if(typeof a.alvine_setVisibility!="function"){a.alvine_setVisibility=function(n){n=(n===false)?false:true;if(n==true){if(this.alvine_isVisible()){return}element_removeClassName(this,"hidden"," ");element_setVisibility(this,"visible");ie6ToggleActiveXControls(false)}else{if(!this.alvine_isVisible()){return}element_setVisibility(this,"hidden");element_move(this,-999,-999);element_removeClassName(this,"hidden"," ");element_addClassName(this,"hidden");ie6ToggleActiveXControls(true)}this.className=str_replace("  "," ",this.className)}}if(a.alvine_isVisible()){a.alvine_setVisibility(false)}if(a.style.display=="none"){element_setDisplay(a,"block")}content_frontend_plugin_content_layout_tooltip_adjust(c);event_add(c,b,content_frontend_plugin_content_layout_tooltip_hideObject);c.alvine_tooltipObject=a;switch(f){default:case"mouse":mouse_attachToObject(c);event_add(c,"mousemove",content_frontend_plugin_content_layout_tooltip_handleMouse);event_add(c,"mouseover",content_frontend_plugin_content_layout_tooltip_handleMouse);break;case"sticky":event_add(c,"focus",content_frontend_plugin_content_layout_tooltip_handleSticky);event_add(c,"mouseover",content_frontend_plugin_content_layout_tooltip_handleSticky);content_frontend_plugin_content_layout_tooltip_stickToObject(null,c);break}content_frontend_plugin_content_layout_tooltip_showObject(c);c.alvine_tooltipInitalized=true;return true}function content_frontend_plugin_content_layout_tooltip_handleMouse(a){if(!a){a=window.event}content_frontend_plugin_content_layout_tooltip_setPosition(null,this);return object_preventDefaultEventBehaviour(a)}function content_frontend_plugin_content_layout_tooltip_handleSticky(a){if(!a){a=window.event}content_frontend_plugin_content_layout_tooltip_stickToObject(null,this);content_frontend_plugin_content_layout_tooltip_showObject(this);return object_preventDefaultEventBehaviour(a)}function content_frontend_plugin_content_layout_tooltip_adjust(d){d=element_isObject(d);if(!d){return true}var c=content_frontend_plugin_content_layout_tooltip_getItem(d);var b=c.target;if(!b){return true}element_resetSize(b);var a=element_getSize(b);if(c.fix_width){if(a.width>c.options.min_width){element_setWidth(b,c.options.min_width)}}else{if(c.options.width){if(a.width>c.options.width){element_setWidth(b,c.options.width)}}}return true}function content_frontend_plugin_content_layout_tooltip_arrangeContent(c,b){c=element_isObject(c);if(!c){return}var a=element_isObject(c.id+"_gfx");if(a!=null){element_addChildNodes(a,b,true)}else{element_addChildNodes(c,b,true)}return true}function content_frontend_plugin_content_layout_tooltip_setPosition(f,g){if(!f){f=window.event}var c=(typeof g!="object")?this:g;var e=content_frontend_plugin_content_layout_tooltip_getItem(c);var d=new Object();var a=element_isObject(e.target);if(!a){return object_preventDefaultEventBehaviour(f)}if(!a.alvine_isVisible()){content_frontend_plugin_content_layout_tooltip_showObject(c)}var b=e.options;b.offset["positive"]["x"]=15;b.offset["positive"]["y"]=15;b.offset["negative"]["x"]=5;b.offset["negative"]["y"]=8;if(typeof document.alvine_getMousePosition!="function"){return true}b.currentPosition=document.alvine_getMousePosition(true,false);d=content_frontend_plugin_content_layout_tooltip_calcPosition(c,b);if(!d.x||!d.y){object_preventDefaultEventBehaviour(f)}element_move(a,d.x,d.y);return object_preventDefaultEventBehaviour(f)}function content_frontend_plugin_content_layout_tooltip_stickToObject(k,f){if(!k){k=window.event}var e=this;e=(typeof f!="undefined")?element_isObject(f):e;var m=content_frontend_plugin_content_layout_tooltip_getItem(e);var b=element_isObject(m.target);var g=(typeof m.options.stick=="undefined")?null:m.options.stick;content_frontend_plugin_content_layout_tooltip_arrangeContent(b,m.content);var l=element_getSize(m.source);var d=element_getSize(m.target);var n=m.options;n.offset["positive"]["x"]=2;n.offset["positive"]["y"]=n.offset["positive"]["y"]>0?n.offset["positive"]["y"]:2;n.offset["negative"]["x"]=l.width;n.offset["negative"]["y"]=(l.height+4);var c=m.position.x;var h=m.position.y;switch(g){case"top":h-=d.height;break;default:case"bottom":h+=l.height;break;case"left":c-=d.width;break;case"right":c+=l.width;break}n.currentPosition["x"]=c;n.currentPosition["y"]=h;var a=content_frontend_plugin_content_layout_tooltip_calcPosition(e,n);element_move(b,a.x,a.y);return object_preventDefaultEventBehaviour(k)}function content_frontend_plugin_content_layout_tooltip_calcPosition(k,s){k=element_isObject(k);if(!k){return false}var q=content_frontend_plugin_content_layout_tooltip_getItem(k);var a=element_isObject(q.target);var f=element_getSize(a);var n=s.currentPosition.x;var m=s.currentPosition.y;var l=s.offset.positive.x;var h=s.offset.positive.y;var g=s.offset.negative.x;var e=s.offset.negative.y;var d=content_frontend_plugin_content_layout_windowsSensitiveBorder.x;var c=content_frontend_plugin_content_layout_windowsSensitiveBorder.y;var o=null;var r=null;var p=alvine_getViewport();o=p.width;r=p.height;var b=element_getScrollPosition();o+=b.x;r+=b.y;if(n+l+f.width>=o-d){l=0-g-f.width}if(m+h+f.height>=r-c){h=0-e-f.height}n+=l;m+=h;return{x:n,y:m}}function content_frontend_plugin_content_layout_tooltip_showObject(c,d){var b=content_frontend_plugin_content_layout_tooltip_getItem(c);if(!b){return true}var a=element_isObject(b.target);if(typeof d=="undefined"){d=true}if(a==null){return true}if(d){content_frontend_plugin_content_layout_tooltip_arrangeContent(a,b.content)}content_frontend_plugin_content_layout_tooltip_adjust(c);element_setOpacity(a,0);element_setVisibility(a,"visible");a.alvine_setVisibility(true);a.alvine_fadeEffectObj=effects_fade(a,100,"now",16,25);return true}function content_frontend_plugin_content_layout_tooltip_hideObject(c){if(!c){c=window.event}var b=content_frontend_plugin_content_layout_tooltip_getItem(this);var a=element_isObject(b.target);if(a==null){return false}if(a.alvine_isVisible()){a.alvine_setVisibility(false)}if(typeof a.alvine_fadeEffectObj=="object"){a.alvine_fadeEffectObj.effect_stop()}return object_preventDefaultEventBehaviour(c)}function content_frontend_plugin_content_layout_tooltip_show(b,c){var a=null;a=element_isObject(b);if(a==null){return false}if(c!=undefined){content_frontend_plugin_content_layout_tooltip_arrangeContent(a,c)}content_frontend_plugin_content_layout_tooltip_adjust(obj);element_setVisibility(a,"hidden");a.alvine_setVisibility(true);element_setOpacity(a,0);element_setVisibility(a,"visible");effects_fade(a,100,"now",16,25);return true}function content_frontend_plugin_content_layout_tooltip_hide(a){a=element_isObject(a);if(a==null){return false}if(a.alvine_isVisible()){a.alvine_setVisibility(false)}if(typeof a.alvine_fadeEffectObj=="object"){a.alvine_fadeEffectObj.effect_stop()}return true};
