if(!document.getElementsByClassName){document.getElementsByClassName=function(cl){var retnode=[];var myclass=new RegExp('\\b'+cl+'\\b');var elem=this.getElementsByTagName('*');for(var i=0;i<elem.length;i++){var classes=elem[i].className;if(myclass.test(classes))retnode.push(elem[i])}return retnode}}if(document.images){var n1=new Image(32,32);n1.src=rootpath+'img/common/about_on.gif';var n2=new Image(32,32);n2.src=rootpath+'img/common/extra_on.gif';var n3=new Image(32,32);n3.src=rootpath+'img/common/home_on.gif';var n4=new Image(32,32);n4.src=rootpath+'img/common/sound_on.gif';var n5=new Image(32,32);n5.src=rootpath+'img/common/vision_on.gif'}if(typeof init=='function'){window.onload=init}function initShareButtons(ar){for(var i=0;i<ar.length;i++){addthis.button('#'+ar[i]['id'],{ui_click:'true',ui_header_color:'#000',data_track_clickback:true},{url:ar[i]['url'],title:ar[i]['title'],description:ar[i]['description']})}}function rollOver(id,ld,cs,st){var imgid='img'+id;var isrc=document.images[imgid].src;if(typeof st!='undefined'&&st!=null){document.images[imgid].src=(st==1?isrc.replace('_off.','_on.'):isrc.replace('_on.','_off.'))}else{ld=((typeof ld=='undefined')?-1:ld);document.images[imgid].src=((isrc.indexOf('_on.')!=-1&&ld!==0)?isrc.replace('_on.','_off.'):(ld==1?isrc.replace('_off.','_load.'):(ld===0?isrc.replace('_load.','_on.'):isrc.replace('_off.','_on.'))))}if(typeof cs!='undefined'&&cs){document.images[imgid].style.cursor=cs}}function rollOn(id){rollOver(id,null,null,1)}function rollOff(id){rollOver(id,null,null,0)}function showJS(){var shEl=document.getElementsByClassName('js');for(var i=0;i<shEl.length;i++){shEl[i].style.display=(shEl[i].localName=='tr'?'table-row':'block')}}function openFile(n,t,wd,ht,h){var f;if(t=='txt'){f='./php/text.php?n='+n;window.open(f,n+'_txt','height=500,width=400,toolbar=no,scrollbars=yes,menubar=no,resizable=no,location=no,directories=no,status=yes,hotkeys=no')}else if(t=='jpg'||t=='gif'||t=='png'){f='./php/image.php?n='+n+'&t='+t+'&wd='+wd+'&ht='+ht+(typeof h!='undefined'?('&h='+h):'');window.open(f,n+'_'+wd+'_'+ht,'height='+ht+',width='+wd+',toolbar=no,scrollbars=no,menubar=no,resizable=no,location=no,directories=no,status=no,hotkeys=no')}return false}