function leader_close(){$j("#game_ban").hide('slow')}function do_search(){if($j("#search").attr("value")!=''){document.location.href=c_url_search+escape($j("#search").attr("value"))}return false}function do_search_index(){var search=$j("#search").attr("value");if(search!=''){document.location.href='http://www.spele.nl/zoek/'+escape(search)}return false}function score_open(){$j("#gs_cont").load(get_root_url()+'ajax/score.php?id='+c_var_id+'&lang='+c_var_country+'&rand='+Math.random())}function score_give(pScore){$j("#gs_cont").load(get_root_url()+'ajax/score.place.php?id='+c_var_id+'&lang='+c_var_country+'&score='+pScore+'&rand='+Math.random())}function reaction_reply(pToId,pTo){if(pToId==0){$j("#react_to").html(c_tekst_react_place)}else{$j("#react_to").html(c_tekst_react_respond)}$j("#react_to_id").attr("value",pToId);$j("#react").show('slow');$j.scrollTo('#react_nchr',500,{axis:'y',easing:'linear'});$j('#reaction').focus()}function reaction_openclose(pElem,pElem2,pImg){if(pElem.css('display')=='none'){pElem.show('fast');pImg.attr('src','i/i_reac_close.png')}else{pElem.hide('fast');pImg.attr('src','i/i_reac_open.png')}}function reaction_load(){reaction_load_page(0)}function reaction_load_page(pPage){$j("#blue_content").load(get_root_url()+'ajax/reacties.php?id='+c_var_id+'&lang='+c_var_country+'&page='+pPage+'&rand='+Math.random())}function reaction_place(pReaction,pId){$j("#blue_content").load(get_root_url()+'ajax/reacties.php?id='+c_var_id+'&lang='+c_var_country+'&reaction='+escape(pReaction)+'&reaction_id='+escape(pId)+'&rand='+Math.random())}function reaction_vote(pReaction,pVote){$j("#blue_content").load(get_root_url()+'ajax/reacties.php?id='+c_var_id+'&lang='+c_var_country+'&reaction_id='+escape(pReaction)+'&vote='+escape(pVote)+'&rand='+Math.random())}function clear_content(){$j("#blue_content").html('<br><center><img src="i/loading.gif"></center><br>')}function get_root_url(){var myloc=window.location.href;var locarray=myloc.split("/");var url='';var i=0; while(i<locarray.length-3){url=url+locarray[i]+"/";i++}if(c_url_root!='')return c_url_root;else return url}function more_load(){var myloc=window.location.href;var locarray=myloc.split("/");delete locarray[(locarray.length-1)];var arraytext=locarray.join("/");$j("#blue_content").load(arraytext+"/"+c_url_more+'?rand='+Math.random())}function slider_event(piNewValue){document.getElementById('flashobj').style.width=f_w*(piNewValue/100)+'px';document.getElementById('flashobj').style.height=f_h*(piNewValue/100)+'px'}function slider_reset(){slider.setValue(100);slider_event(100)}function openTab(pId){if(pId==1){document.getElementById('tab_1').className='tab_on';$j("#blue_content").hide();$j("#content_description").show()}else{document.getElementById('tab_1').className='tab_off';clear_content();$j("#content_description").hide();$j("#blue_content").show()}if(pId==2){document.getElementById('tab_2').className='tab_on';reaction_load()}else document.getElementById('tab_2').className='tab_off';if(pId==3){document.getElementById('tab_3').className='tab_on';more_load()}else document.getElementById('tab_3').className='tab_off'}
