
function show_div_index(index_id)
{document.getElementById('navigation_left_sparen').className="position navigation_sub_1";document.getElementById('navigation_left_gewinnen').className="position navigation_sub_1";document.getElementById('navigation_left_helfen').className="position navigation_sub_1";document.getElementById('sparen').style.display="none";document.getElementById('gewinnen').style.display="none";document.getElementById('helfen').style.display="none";document.getElementById(index_id).style.display="block";document.getElementById('navigation_left_'+index_id).className="position navigation_sub_1_active";}
function myCookie(fontSize)
{document.getElementById("pIFrame").src="_shared/p_cookie.php?cookieNameArray=fontSize&cookieValueArray="+fontSize;}
function choiceBox(sender,target,default_choice)
{var watchCallback=function(){if($(sender).getValue())
$(target).show();else
$(target).hide();};$(sender).observe('click',watchCallback);watchCallback();}
function choiceRadio(sender,target,closed)
{var watchCallback=function(){if($(sender).getValue()){$(target).show();$(closed).hide();}else{$(target).hide();$(closed).show();}};$(sender).observe('change',watchCallback);watchCallback();}
var SlideShow=Class.create({element:null,data:[],current:null,duration:0.8,count:0,initialize:function(element,data){this.element=$(element);this.data=$(data);this._updateText($H(this.data).values()[0]);},switchTo:function(id){this.current=this.data[id];this._slide();},_slide:function(){if(!this.current)
return;if(this.count==0){}else{var switchCallback=function(){this._updateText(this.current);var effectAttributes={from:0.0,to:1.0,duration:this.duration};new Effect.Opacity(this.element,effectAttributes);}.bindAsEventListener(this);var effectAttributes={from:1.0,to:0.0,duration:this.duration,afterFinish:switchCallback};new Effect.Opacity(this.element,effectAttributes);}
this.count+=1;},_updateText:function(data){if(!data)
return;var titleNode=this.element.select('#slide_title')[0];var descNode=this.element.select('#slide_desc')[0];if(titleNode)
titleNode.update(data["title"]);if(descNode)
descNode.update(data["desc"].stripTags());}});