var ImageDir='images/imgset1';PreloadImages=new Array();JavaCheckboxImageArray=new Object();JavaCheckboxImageArray['default']=new Array();JavaCheckboxImageArray['default'][0]=ImageDir+'/checkbox.gif';JavaCheckboxImageArray['default'][1]=ImageDir+'/checkbox-ok.gif';JavaCheckboxImageArray['cross']=new Array();JavaCheckboxImageArray['cross'][0]=ImageDir+'/checkbox-cross.gif';JavaCheckboxImageArray['cross'][1]=ImageDir+'/checkbox-cross-ok.gif';JavaRadioButtonArray=new Array();JavaRadioButtonArray[0]=new Object();MouseOverIdArray=new Array();function RegisterMouseOverID(id,class_over,class_out){MouseOverIdArray[id]=new Object();MouseOverIdArray[id]['over']=class_over;MouseOverIdArray[id]['out']=class_out;}function MouseOverID(id1,class1,id2,class2){if(id1 != '') document.getElementById('id_'+id1).className=MouseOverIdArray[class1]['over'];if(id2 != '') document.getElementById('id_'+id2).className=MouseOverIdArray[class2]['over'];}function MouseOutID(id1,class1,id2,class2){if(id1 != '') document.getElementById('id_'+id1).className=MouseOverIdArray[class1]['out'];if(id2 != '') document.getElementById('id_'+id2).className=MouseOverIdArray[class2]['out'];}function MouseOverShortMenu(id){document.getElementById('id_smenu_td'+id).className='smenu-td-linkhover';document.getElementById('id_smenu_a'+id).className='link-smenuhover';}function MouseOutShortMenu(id){document.getElementById('id_smenu_td'+id).className='smenu-td-link';document.getElementById('id_smenu_a'+id).className='link-smenu';}function MouseOverMenu(id){document.getElementById('id_menu_td'+id).className='menu-td-linkhover';document.getElementById('id_menu_a'+id).className='link-menuhover';}function MouseOutMenu(id){document.getElementById('id_menu_td'+id).className='menu-td-link';document.getElementById('id_menu_a'+id).className='link-menu';}function GetJavaCheckbox(name,value,id,yes,no,imageset,onclick){var set='default';if(imageset) set=imageset;var oclk='';if(onclick) oclk=onclick;var img='';if(value==no) img=JavaCheckboxImageArray[set][0];if(value==yes) img=JavaCheckboxImageArray[set][1];document.write('<input type=hidden name="'+name+'" value="'+value+'" id="'+id+'hidden">');document.write('<img src="'+img+'" id="'+id+'" border=0 width=13 height=13 onclick="ClickOnJavaCheckbox(\''+id+'\',\''+id+'hidden\',\''+yes+'\',\''+no+'\',\''+set+'\');'+oclk+'">');if(document.images){PreloadImages.push(new Image());PreloadImages[PreloadImages.length-1].src=JavaCheckboxImageArray[set][0];PreloadImages.push(new Image());PreloadImages[PreloadImages.length-1].src=JavaCheckboxImageArray[set][1];}}function ClickOnJavaCheckbox(id_img,id_hidden,yes,no,imageset){var set='default';if(imageset) set=imageset;var newpic=JavaCheckboxImageArray[set][0];var newvalue=no;if(document.getElementById(id_img).src.indexOf(JavaCheckboxImageArray[set][0])>-1){newpic=JavaCheckboxImageArray[set][1];newvalue=yes;}document.getElementById(id_img).src=newpic;document.getElementById(id_hidden).value=newvalue;}function GetJavaRadioButtonHidden(name,id){document.write('<input type=hidden name="'+name+'" value="" id="'+id+'hidden">');JavaRadioButtonArray[0][id]=0;}function GetJavaRadioButton(value,onoff,id){var id_img=id+'_'+JavaRadioButtonArray[0][id];var img=ImageDir+'/radiobutton.gif';if(onoff=='on'){img=ImageDir+'/radiobutton-ok.gif';document.getElementById(id+'hidden').value=value;}document.write('<img src="'+img+'" id="'+id_img+'" border=0 width=13 height=13 onclick="ClickOnJavaRadioButton(\''+id+'\',\''+JavaRadioButtonArray[0][id]+'\',\''+value+'\');">');JavaRadioButtonArray[0][id]+=1;if(document.images){PreloadImages.push(new Image());PreloadImages[PreloadImages.length-1].src=ImageDir+'/radiobutton.gif';PreloadImages.push(new Image());PreloadImages[PreloadImages.length-1].src=ImageDir+'/radiobutton-ok.gif';}}function ClickOnJavaRadioButton(id,idx,value){for(var i=0;i<JavaRadioButtonArray[0][id];i++){if(i==idx){document.getElementById(id+'_'+i).src=ImageDir+'/radiobutton-ok.gif';document.getElementById(id+'hidden').value=value;}else document.getElementById(id+'_'+i).src=ImageDir+'/radiobutton.gif';}}function WriteLengthOfValue(id_source,id_target){var cnt=document.getElementById(id_source).value.length;document.getElementById(id_target).firstChild.nodeValue=cnt;}function ChangeClassOnValueCount(id_source,id_target,belowequal_class,above_class,limit){var str=belowequal_class;var cnt=document.getElementById(id_source).value.length;if(cnt>limit) var str=above_class;document.getElementById(id_target).className=str;}function CutValueToCount(id_target,limit){var cnt=document.getElementById(id_target).value.length;if(cnt>limit){var str=document.getElementById(id_target).value;document.getElementById(id_target).value=str.substring(0,limit);}}function ChangeDisplayMode(id,change1,change2){var newmode=change1;var oldmode=document.getElementById(id).style.display;if(oldmode==change1) newmode=change2;if(oldmode==change2) newmode=change1;document.getElementById(id).style.display=newmode;}function SetFirstChildNodeValue(id,content){if(document.getElementById(id))document.getElementById(id).firstChild.nodeValue=content;}function OpenWindow(url,name,options){var neu=open(url,name,options);}function OptimizeBrowserSize(){var resize=true;var version=parseFloat(navigator.appVersion);if((navigator.appName == 'Netscape') && (version < 5))resize=false;if((window.top.moveTo) && (resize)){var breite=820;if(screen.availWidth < breite)breite=screen.availWidth;var x=0;if(screen.availWidth > breite)x=Math.round((screen.availWidth-breite)/2);window.top.moveTo(x+1,1);window.top.moveTo(x,0);window.top.resizeTo(breite,screen.availHeight);}}function LoadNewOnlineCountImage(){var rnd=Math.floor(Math.random()*100000);var new_image=document.getElementById('id_user_online_image').src;new_image=new_image.replace(/=.+/,'=x'+rnd);document.getElementById('id_user_online_image').src=new_image;}function MainAtDocumentEnd(outtime){if(document.getElementById('id_user_online_image'))window.setInterval("LoadNewOnlineCountImage();",outtime)}function LDirGetSearchHereImage(name,value,id,onoff){var img='';var val=0;if(onoff=='on'){img=ImageDir+'/btn-searchhere.gif';val=value;}if(onoff=='off') img=ImageDir+'/btn-searchhere-disabled.gif';document.write('<input type=hidden name="'+name+'" value="'+val+'" id="'+id+'hidden">');document.write('<img src="'+img+'" id="'+id+'" border=0 width=28 height=17 style="vertical-align:text-bottom;" onclick="LDirClickOnSearchHereImage(\''+id+'\',\''+id+'hidden\','+value+',0);" title=\"Nur in der aktuellen Kategorie suchen.\">');if(document.images){PreloadImages.push(new Image());PreloadImages[PreloadImages.length-1].src=ImageDir+'/btn-searchhere-disabled.gif';PreloadImages.push(new Image());PreloadImages[PreloadImages.length-1].src=ImageDir+'/btn-searchhere.gif';}}function LDirClickOnSearchHereImage(id_img,id_hidden,onval,offval){var newpic=ImageDir+'/btn-searchhere-disabled.gif';var newvalue=offval;if(document.getElementById(id_img).src.indexOf("/btn-searchhere-disabled.gif")>-1){newpic=ImageDir+'/btn-searchhere.gif';newvalue=onval;}document.getElementById(id_img).src=newpic;document.getElementById(id_hidden).value=newvalue;}function LDirAtDocumentEnd(rand1,rand2){if(document.getElementById('id_ldir_votestars0_image')){var new_image=document.getElementById('id_ldir_votestars0_image').src;new_image=new_image.replace(/-0\./,'-0-'+rand1+'.');document.getElementById('id_ldir_votestars0_image').src=new_image;}if(document.getElementById('id_ldir_tiparrow_image')){var new_image=document.getElementById('id_ldir_tiparrow_image').src;new_image=new_image.replace(/-right\./,'-right-'+rand2+'.');document.getElementById('id_ldir_tiparrow_image').src=new_image;}if(document.getElementById('id_ldir_bordertable')){var log='fne';if(self != top) log='fe';var scripturl='index.php?ldlog='+log+'&ref='+document.referrer;document.write('<script language="JavaScript" src="'+scripturl+'" type="text/javascript"></script>');}}function AtDocumentEnd(){LDirAtDocumentEnd('b1f2','da9c');MainAtDocumentEnd(165000);}
