if(top!=self){top.location=self.location}__uid=42;function getUid(){return __uid++}var menu_delay=800;var menu_delay_onmouseover=180;var menu_previous=new Array();var menu_timeout=new Array();var menu_timeout_tmp=new Array();var menu_started=new Array();var max_level=3;for(var i=0;i<max_level;i++){menu_previous.push("");menu_timeout.push(null);menu_timeout_tmp.push(null);menu_started.push(false)}function showMenu(a,b){if(!menu_started[b]){menu_timeout_tmp[b]=setTimeout("temporiseMenu('"+a+"', "+b+")",menu_delay_onmouseover)}else{if(menu_previous[b]!=a){temporiseMenu(a,b)}else{if(menu_timeout[b]){clearTimeout(menu_timeout[b])}if(menu_timeout_tmp[b]){clearTimeout(menu_timeout_tmp[b])}}}}function temporiseMenu(a,d){var c=document.getElementById(a);if(menu_timeout[d]){clearTimeout(menu_timeout[d])}if(menu_timeout_tmp[d]){clearTimeout(menu_timeout_tmp[d])}if(document.getElementById(menu_previous[d])){document.getElementById(menu_previous[d]).style.visibility="hidden";menu_started[d]=false;for(var b=d;b<max_level;b++){if(document.getElementById(menu_previous[b])){document.getElementById(menu_previous[b]).style.visibility="hidden"}}}if(c){c.style.visibility="visible";menu_previous[d]=a;menu_started[d]=true}}function hideMenu(b){for(var a=0;a<max_level;a++){if(menu_timeout_tmp[a]&&!menu_started[a]){clearTimeout(menu_timeout_tmp[a])}}if(menu_started[b]){menu_timeout[b]=setTimeout("temporiseMenu('', "+b+")",menu_delay)}}function show_menu(a,b){if(!menu_started[b]){menu_timeout_tmp[b]=setTimeout("temporise_menu('"+a+"', "+b+")",menu_delay_onmouseover)}else{if(menu_previous[b]!=a){temporise_menu(a,b)}else{if(menu_timeout[b]){clearTimeout(menu_timeout[b])}if(menu_timeout_tmp[b]){clearTimeout(menu_timeout_tmp[b])}}}}function temporise_menu(b,f){var a=str_repeat("s",f)+"smenu";var e=document.getElementById(a+b);if(menu_timeout[f]){clearTimeout(menu_timeout[f])}if(menu_timeout_tmp[f]){clearTimeout(menu_timeout_tmp[f])}if(document.getElementById(a+menu_previous[f])){document.getElementById(a+menu_previous[f]).style.visibility="hidden";menu_started[f]=false;for(var d=f;d<max_level;d++){var c=str_repeat("s",d)+"smenu";if(document.getElementById(c+menu_previous[d])){document.getElementById(c+menu_previous[d]).style.visibility="hidden"}}}if(e){e.style.visibility="visible";menu_previous[f]=b;menu_started[f]=true}}function hide_menu(b){for(var a=0;a<max_level;a++){if(menu_timeout_tmp[a]&&!menu_started[a]){clearTimeout(menu_timeout_tmp[a])}}if(menu_started[b]){menu_timeout[b]=setTimeout("temporise_menu('', "+b+")",menu_delay)}}function str_repeat(d,c){var a="";for(var b=0;b<c;b++){a+=d}return a}function strpos(b,c){var a=b.indexOf(c,0);return a>=0?a:false}function trim(a){return a.replace(/^\s+/g,"").replace(/\s+$/g,"")}function check_mail_validity(a){regex=new RegExp("^[a-z0-9._!#$%&'*+/=?^|~-]+@([a-z0-9._-]{2,}.)+[a-z]{2,4}$","i");return regex.test(trim(a))}function bb_hide(b){var c=b.getElementsByTagName("div");var a=c[0];if(a.style.visibility=="visible"){a.style.visibility="hidden";b.style.height="10px"}else{a.style.visibility="visible";b.style.height="auto"}return true}function hide_div(a,b){var c=false;if(arguments.length>1){c=b}if(document.getElementById(a)){if(b){Effect.SwitchOff(a)}document.getElementById(a).style.display="none"}}function show_div(a,b){var c=false;if(arguments.length>1){c=b}if(document.getElementById(a)){if(b){Effect.Appear(a,{duration:0.5})}document.getElementById(a).style.display="block"}}function hide_inline(a){if(document.getElementById(a)){Effect.SwitchOff(a);document.getElementById(a).style.visibility="hidden"}}function show_inline(a){if(document.getElementById(a)){Effect.Appear(a,{duration:0.5});document.getElementById(a).style.visibility="visible"}}function change_img_path(b,a){if(document.getElementById(b)){document.getElementById(b).src=a}}function switch_img(c,b,a){if(document.getElementById(c)){if(strpos(document.getElementById(c).src,b.replace(/\.\./g,""))!=false){document.getElementById(c).src=a}else{document.getElementById(c).src=b}}}function display_div_auto(a,b){if(document.getElementById(a)){if(b==""){b="block"}if(document.getElementById(a).style.display==b){Effect.SwitchOff(a);document.getElementById(a).style.display="none"}else{if(document.getElementById(a).style.display=="none"){document.getElementById(a).style.display=b}}}}function popup(c,b){var d=screen.height;var a=screen.width;if(d==600&&a==800){window.open(c,b,"width=680, height=540,location=no,status=no,toolbar=no,scrollbars=yes")}else{if(d==768&&a==1024){window.open(c,b,"width=672, height=620,location=no,status=no,toolbar=no,scrollbars=yes")}else{if(d==864&&a==1152){window.open(c,b,"width=672, height=620,location=no,status=no,toolbar=no,scrollbars=yes")}else{window.open(c,b,"width=672, height=620,location=no,status=no,toolbar=no,scrollbars=yes")}}}}function inArray(c,b){for(var a=0;a<b.length;a++){if(b[a]==c){return true}}return false}var timeout_progress_bar=null;var max_percent=0;var info_progress_tmp="";var progressbar_speed=20;var progressbar_size=55;var progressbar_id="progress_info";var restart_progress=false;var theme="";function load_progress_bar(c,a,b){progressbar_speed=c;restart_progress=true;theme=a;progressbar_id=b;if(arguments.length==4){progressbar_size=arguments[3]}}function progress_bar(b,d,c,a){bar_progress=(b*progressbar_size)/100;if(arguments.length<4){a="";c=""}if(restart_progress){clearTimeout(timeout_progress_bar);this.percent_begin=0;max_percent=0;if(document.getElementById("progress_bar"+progressbar_id)){document.getElementById("progress_bar"+progressbar_id).innerHTML=""}restart_progress=false}if(this.percent_begin<=bar_progress){if(document.getElementById("progress_bar"+progressbar_id)){document.getElementById("progress_bar"+progressbar_id).innerHTML+='<img src="'+PATH_TO_ROOT+"/templates/"+theme+'/images/progress.png" alt="" />'}if(document.getElementById("progress_percent"+progressbar_id)){document.getElementById("progress_percent"+progressbar_id).innerHTML=Math.round((this.percent_begin*100)/progressbar_size)}if(document.getElementById("progress_info"+progressbar_id)){if(b>max_percent){max_percent=b;info_progress_tmp=d}document.getElementById("progress_info"+progressbar_id).innerHTML=info_progress_tmp}if(this.percent_begin==progressbar_size&&a!=""&&c!=""){document.getElementById(a).innerHTML=c}timeout_progress_bar=setTimeout("progress_bar("+b+', "'+d+'", "'+a+'", "'+c.replace(/"/g,'\\"')+'")',progressbar_speed)}else{this.percent_begin=this.percent_begin-1}this.percent_begin++}function xmlhttprequest_init(b){var a=null;if(window.XMLHttpRequest){a=new XMLHttpRequest()}else{if(window.ActiveXObject){a=new ActiveXObject("Microsoft.XMLHTTP")}}a.open("POST",b,true);return a}function xmlhttprequest_sender(a,b){a.setRequestHeader("Content-type","application/x-www-form-urlencoded");a.send(b)}function escape_xmlhttprequest(a){a=a.replace(/\+/g,"%2B");a=a.replace(/&/g,"%26");return a}function browserAJAXFriendly(){if(window.XMLHttpRequest||window.ActiveXObject){return true}else{return false}}function XMLHttpRequest_search_members(d,e,f,c){var b=document.getElementById("login"+d).value;if(b!=""){if(document.getElementById("search_img"+d)){document.getElementById("search_img"+d).innerHTML='<img src="'+PATH_TO_ROOT+"/templates/"+e+'/images/loading_mini.gif" alt="" class="valign_middle" />'}var a=xmlhttprequest_init(PATH_TO_ROOT+"/kernel/framework/ajax/member_xmlhttprequest.php?token="+TOKEN+"&"+f+"=1");data="login="+b+"&divid="+d;a.onreadystatechange=function(){if(a.readyState==4&&a.status==200){if(document.getElementById("search_img"+d)){document.getElementById("search_img"+d).innerHTML=""}if(document.getElementById("xmlhttprequest_result_search"+d)){document.getElementById("xmlhttprequest_result_search"+d).innerHTML=a.responseText}Effect.BlindDown("xmlhttprequest_result_search"+d,{duration:0.5})}else{if(a.readyState==4){if(document.getElementById("search_img"+d)){document.getElementById("search_img"+d).innerHTML=""}}}};xmlhttprequest_sender(a,data)}else{alert(c)}}function XMLHttpRequest_add_member_auth(e,a,c,g){var b=document.getElementById("members_auth"+e);for(var d=0;d<b.length;d++){if(b[d].value==a){alert(g);return}}var f=new Option(c,a);f.id=e+"m"+(b.length-1);f.selected=true;if(document.getElementById("members_auth"+e)){document.getElementById("members_auth"+e).options[b.length]=f}}function check_select_multiple(e,c){var d;var b=document.getElementById("groups_auth"+e);for(d=0;d<b.length;d++){if(b[d]){b[d].selected=c}}var a=document.getElementById("members_auth"+e);for(d=0;d<a.length;d++){if(a[d]){a[d].selected=c}}}function check_select_multiple_ranks(c,b){var a;for(a=b;a<=2;a++){if(document.getElementById(c+a)){document.getElementById(c+a).selected=true}}}function writePagin(e,d,a,c,b){pagin='<span class="pagination';if(a){pagin+=" pagination_current_page text_strong"}pagin+='">';pagin+='<a href="javascript:'+e+"("+b+d+')">'+c+"</a>";pagin+="</span>&nbsp;";return pagin}function ChangePagination(g,h,e,k,l,m){var b="";if(h>1){if(arguments.length<5){l=3;m=3}var j=Math.max(0,g-l);var c=Math.min(h,g+m+1);var a="ChangePagination";var f=", "+h+", '"+e+"', '"+k+"', "+l+", "+m;if(g!=0){b+=writePagin(a,f,false,"&laquo;",0)}for(var d=j;d<g;d++){b+=writePagin(a,f,false,d+1,d)}b+=writePagin(a,f,true,g+1,g);for(var d=g+1;d<c;d++){b+=writePagin(a,f,false,d+1,d)}if(g!=h-1){b+=writePagin(a,f,false,"&raquo;",h-1)}}for(var d=0;d<h;d++){hide_div(k+"_"+d)}show_div(k+"_"+g);document.getElementById(e).innerHTML=b}function isNumeric(c){var a="0123456789.";for(var b=0;b<c.length&&a.indexOf(c[b])!=-1;b++){}return b==c.length}function isInteger(c){var a="0123456789";for(var b=0;b<c.length&&a.indexOf(c[b])!=-1;b++){}return b==c.length}var feed_menu_timeout_in=null;var feed_menu_timeout_out=null;var feed_menu_elt=null;var feed_menu_delay=800;function ShowSyndication(b){if(feed_menu_elt){feed_menu_elt.style.visibility="hidden"}feed_menu_elt=null;var c=null;c=b.parentNode.getElementsByTagName("div");for(var a=0;a<c.length;a++){if(c[a].title=="L_SYNDICATION_CHOICES"){feed_menu_elt=c[a];break}}feed_menu_elt.style.visibility="visible";clearTimeout(feed_menu_timeout_out)}function ShowSyndicationMenu(a){a.style.visibility="visible";clearTimeout(feed_menu_timeout_out)}function HideSyndication(a){feed_menu_elt=a;feed_menu_timeout_out=setTimeout("feed_menu_elt.style.visibility = 'hidden'",feed_menu_delay);clearTimeout(feed_menu_timeout_in)}function functionExists(a){if(typeof a=="string"){return(typeof window[a]=="function")}else{return(a instanceof Function)}}function include(a){if(window.document.getElementsByTagName){script=window.document.createElement("script");script.type="text/javascript";script.src=a;$("header").appendChild(script)}}playerflowPlayerRequired=false;function insertMoviePlayer(a){if(!playerflowPlayerRequired){include(PATH_TO_ROOT+"/kernel/data/flowplayer/flowplayer-3.1.1.min.js");playerflowPlayerRequired=true}flowPlayerDisplay(a)}function flowPlayerDisplay(a){if(!functionExists("flowplayer")){setTimeout("flowPlayerDisplay('"+a+"')",100);return}flowplayer(a,PATH_TO_ROOT+"/kernel/data/flowplayer/flowplayer-3.1.1.swf",{clip:{url:$(a).href,autoPlay:false}})};
