/*
* Created: Sun, 14 Feb 10 14:14:40 +0000
*/

function LangSwitcher(){this._isVisible=false;}
LangSwitcher.prototype.toggle=function(option){if(this._isVisible!=true){langswitcher.show();}else{langswitcher.hide();}}
LangSwitcher.prototype.hide=function(){document.getElementById('langswitcher_div').style.visibility='hidden';document.getElementById('langswitcher_div').style.display='none';this._isVisible=false;document.onclick=function(){}}
LangSwitcher.prototype.show=function(){document.getElementById('langswitcher_div').style.display='block';document.getElementById('langswitcher_div').style.visibility='visible';document.getElementById('langswitcher_div').style.position='absolute';document.getElementById('langswitcher_div').focus();document.onclick=function(){if(langswitcher._isVisible==true){langswitcher.hide();}else{langswitcher._isVisible=true;}}}
var langswitcher=new LangSwitcher();Array.prototype.in_array=function(needle){for(var i=0;i<this.length;i++)if(this[i]===needle)return true;return false;}
function feedbackButton(target){var feedback_button=document.createElement('div');var feedback_button_style='display:block !important;'+'width:50px !important;'+'height: 100px !important;'+'top: 30% !important;'+'left: -10px;'+'padding: 0 !important;'+'z-index: 20000 !important;'+'cursor: pointer !important;'+'background-image:url('+TC.get('config','staticUrlImages')+'/misc/feedback.png) !important;'+'background-repeat:no-repeat !important;'+'bottom: 0;';var knows_fixed=true;if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var version=new Number(RegExp.$1);if(version==6){knows_fixed=false;}}
if(knows_fixed==false){feedback_button_style='position: absolute !important;'+feedback_button_style;}else{feedback_button_style='position: fixed !important;'+feedback_button_style;}
if(feedback_button.style.setAttribute){feedback_button.style.setAttribute('cssText',feedback_button_style);}else{feedback_button.setAttribute('style',feedback_button_style);}
feedback_button.onclick=function(){tb_show('',target+'?keepThis=true&TB_iframe=false&height=270&width=400',false);}
feedback_button.onmouseover=function(){this.style.left='0px';}
feedback_button.onmouseout=function(){this.style.left='-10px';}
document.body.appendChild(feedback_button);}