working_disp=-1;high_click_disp=-1;mouse_over_rating=-1;cur_rating=0;cur_disabled=true;hiding_enabled=1;is_over=0;isforced=false;ifr_sup=0;ifr_test=0;xmlLabel=new Array();xmlFile=new Array();xmlKeys=new Array();xmlComment=new Array();xmlRating=new Array();ratingStar=new Array();togb=new Array();//star preloadsstar1=new Image();star1.src='/images/star_empty_.gif';star2=new Image();star2.src='/images/star_half_.gif';star3=new Image();star3.src='/images/star_full_.gif';star4=new Image();star4.src='/images/star_empty_h.gif';star5=new Image();star5.src='/images/star_half_h.gif';star6=new Image();star6.src='/images/star_full_h.gif';barz1=new Image();barz1.src='/images/bar_left_.gif';barz2=new Image();barz2.src='/images/bar_right_.gif';barz3=new Image();barz3.src='/images/bar_mid_.gif';barz4=new Image();barz4.src='/images/bar_left_h.gif';barz5=new Image();barz5.src='/images/bar_right_h.gif';barz6=new Image();barz6.src='/images/bar_mid_h.gif';barz7=new Image();barz7.src='/images/bar_overlap.gif';nuub1=new Image();nuub1.src='/images/rating_cancel_.gif';nuub2=new Image();nuub2.src='/images/rating_cancel_h.gif';nuub3=new Image();nuub3.src='/images/rating_cancel_x_.gif';nuub4=new Image();nuub4.src='/images/rating_cancel_x_h.gif';misc1=new Image();misc1.src='/images/uplink_sel.gif';function choose(ico){	document.frm.icon.value=ico;	document.frm.submit();	return false;}function enc(url){	return escape(url).split("+").join("%2B").split("%20").join("+");}function onOver(elm,disp,is_manager,is_owner){	if(!is_over)	{		is_over=1;		d=document.getElementById("nav");		child_lis=d.getElementsByTagName("li");		for(k=0;k<child_lis.length;k++)		{			if(child_lis[k].id&&child_lis[k].id.indexOf('man')!=-1)			{				if(is_manager)					child_lis[k].style.display="list-item";				else					child_lis[k].style.display="none";			}			if(child_lis[k].id&&child_lis[k].id.indexOf('rate')!=-1)			{				if(!is_owner)					child_lis[k].style.display="list-item";				else					child_lis[k].style.display="none";			}		}		doc_maxX=document.body.offsetWidth+absX(document.body);		option_absX=absX(elm);		if(option_absX+d.offsetWidth>doc_maxX)			d.style.left=""+(doc_maxX-d.offsetWidth)+"px";		else			d.style.left=""+option_absX+"px";		d.style.top=""+(absY(elm)+elm.offsetHeight-2)+"px";		if(d.parentNode!=elm)		{			elm.appendChild(d);		}		elm.className="optionsOn";		working_elm=elm;		old_disp=working_disp;		working_disp=disp;		working_iconid_span=document.getElementById("iconid"+disp);		working_iconid=working_iconid_span.innerHTML;		for(k=0;k<5;k++)			ratingStar[k]=document.getElementById('rate_x_'+k);		selfrate_elm=document.getElementById('selfrate'+working_disp);		selfrate=(selfrate_elm.innerHTML)/1.0;		if(old_disp!=working_disp)			update_options(is_manager,is_owner);	}}function onOut(elm){	if(hiding_enabled&&is_over)	{		d=document.getElementById("nav");		child_lis=d.getElementsByTagName("li");		if(isforced)		{			for(k=0;k<child_lis.length;k++)			{				if(child_lis[k].className=="parent_active")				{					out_opt(child_lis[k]);				}			}		}		isforced=false;		elm.className="options";		d.style.left="-999em";		is_over=0;	}}function update_options(is_manager,is_owner){	// basic option update		wimg=document.getElementById('img'+working_disp);	ftest=document.getElementById('testlink');	new_testhref='http://mmii.info/icontest.php?url='+wimg.src.split("%").join("%25").split("?").join(escape("?")).split("&").join(escape("&")).split(":").join(escape(":"));	ftest.href=new_testhref;		// rating update	if(!is_owner)	{		rateout('x');	}		// full option update	if(is_manager)	{		wname=document.getElementById('name'+working_disp);				cat_hidden=0;		wcat=document.getElementById('cat'+working_disp);		if(!wcat)		{			cat_hidden=1;			wcat=document.getElementById('hide_cat'+working_disp);		}				wkeys=document.getElementById('hide_keys'+working_disp);				wcomment=document.getElementById('hide_comment'+working_disp);		fcomment=document.forms['frmComment'].comment;		new_comment=wcomment.innerHTML;		fcomment.value=new_comment;			flabel=document.forms['frmName'].label;		ffilename=document.forms['frmFile'].filename;		fkeys=document.forms['frmKeys'].keys;		fdelete=document.getElementById('deletelink');				new_label=wname.innerHTML;		new_filenamearr=wimg.src.split('/');		new_filename=new_filenamearr[new_filenamearr.length-1];		new_catindex=0;		new_keys=wkeys.innerHTML;		new_deletehref='javascript:delete_icon('+working_iconid+')';				flabel.value=new_label;		ffilename.value=new_filename;		fkeys.value=new_keys;		fdelete.href=new_deletehref;	}}function update_label(frm){	req_label=document.forms['frmName'].label.value;	flag=0;	if(req_label=="")	{		flag=1;		alert("You must enter a label!");	}	if(flag)		failed=false;	else		failed=true;	if(!flag)	{		if(!xmlLabel[working_disp])			xmlLabel[working_disp]=vb();		if(xmlLabel[working_disp])		{			try			{				xmlLabel[working_disp].open('POST','icon_manager.php',true);				xmlLabel[working_disp].setRequestHeader('Content-Type','application/x-www-form-urlencoded');				eval('xmlLabel[working_disp].onreadystatechange=function(){update_label_foot('+working_disp+')}');				xmlLabel[working_disp].send('methodtype=xml&update=label&iconid='+working_iconid+'&dispno='+working_disp+'&val='+enc(req_label));				failed=false;			}			catch(f_e)			{				failed=true;			}		}		if(failed) // try iframe		{			if(ifr_sup)			{				iform=document.forms['f_ifr'];				iform.action='/icon_manager.php';				iform.update.value='label';				iform.iconid.value=working_iconid;				iform.dispno.value=working_disp;				iform.val.value=req_label;				iform.submit();				failed=false;			}		}		isforced=true;		onOut(working_elm);	}	return failed;}function update_label_foot(updated_disp){	if(xmlLabel[updated_disp].readyState==4)	{		the_stuff=xmlLabel[updated_disp].responseText;		if(the_stuff&&the_stuff.indexOf('label: ')==0)		{			updated_label=the_stuff.substr(7);			change_label_display(updated_disp,updated_label);		}		else			alert(the_stuff);	}}function change_label_display(tmpdsp,tmplabel){	wname=document.getElementById('name'+tmpdsp);	wname.innerHTML=tmplabel;}function update_filename(frm){	req_filename=document.forms['frmFile'].filename.value;	req_autoformat=document.forms['frmFile'].autoformat.value;	flag=0;	if(!req_autoformat)	{		if(req_filename=="")		{			flag=1;			alert("Please enter a filename!");		}		else if(req_filename.substr(req_filename.length-4).toLowerCase()!=".gif")		{			flag=1;			alert("File must have a .gif extension!");		}		else if(req_filename.length<5)		{			flag=1;			alert("Filename must be greater than 0 characters in length!");		}		else if(!req_filename.toLowerCase().match(/^[-_0-9a-z]+\.gif$/))		{			flag=1;			alert("Filename includes invalid characters!");		}	}	if(flag)		failed=false;	else		failed=true;	if(!flag)	{		if(req_autoformat==1)			req_type='autoname';		else			req_type='filename';		if(!xmlFile[working_disp])			xmlFile[working_disp]=vb();		if(xmlFile[working_disp])		{			try			{				xmlFile[working_disp].open('POST','icon_manager.php',true);				xmlFile[working_disp].setRequestHeader('Content-Type','application/x-www-form-urlencoded');				eval('xmlFile[working_disp].onreadystatechange=function(){update_file_foot('+working_disp+')}');				xmlFile[working_disp].send('methodtype=xml&update='+req_type+'&iconid='+working_iconid+'&dispno='+working_disp+'&val='+enc(req_filename));				failed=false;			}			catch(f_e)			{				failed=true;			}		}		if(failed) // try iframe		{			if(ifr_sup)			{				iform=document.forms['f_ifr'];				iform.action='/icon_manager.php';				iform.update.value=req_type;				iform.iconid.value=working_iconid;				iform.dispno.value=working_disp;				iform.val.value=req_filename;				iform.submit();				failed=false;			}		}		isforced=true;		onOut(working_elm);	}	return failed;}function update_file_foot(updated_disp){	if(xmlFile[updated_disp].readyState==4)	{		the_stuff=xmlFile[updated_disp].responseText;		if(the_stuff&&the_stuff.indexOf('file: ')==0)		{			updated_filename=the_stuff.substr(6);			change_filename_display(updated_disp,updated_filename);		}		else			alert(the_stuff);	}}function change_filename_display(tmpdsp,tmpfname){	ffnamear=tmpfname.split('/');	ffname=ffnamear[ffnamear.length-1];	wimg=document.getElementById('img'+tmpdsp);	wimg.src=tmpfname;	if(wimg.parentNode.href)		wimg.parentNode.href=tmpfname;	ftest=document.getElementById('testlink');	new_testhref='http://mmii.info/icontest.php?url='+wimg.src.split("%").join("%25").split("?").join(escape("?")).split("&").join(escape("&")).split(":").join(escape(":"));	ftest.href=new_testhref;	if(working_disp==tmpdsp)		document.forms['frmFile'].filename.value=ffname;}function update_keys(frm){	req_keys=document.forms['frmKeys'].keys.value;	flag=0;	if(!req_keys.toLowerCase().match(/^[-_0-9a-z\!\@\&\+\.\ ]*$/))	{		flag=1;		alert("Keys include invalid characters!");	}	if(flag)		failed=false;	else		failed=true;	if(!flag)	{		if(!xmlKeys[working_disp])			xmlKeys[working_disp]=vb();		if(xmlKeys[working_disp])		{			try			{				xmlKeys[working_disp].open('POST','icon_manager.php',true);				xmlKeys[working_disp].setRequestHeader('Content-Type','application/x-www-form-urlencoded');				eval('xmlKeys[working_disp].onreadystatechange=function(){update_keys_foot('+working_disp+')}');				xmlKeys[working_disp].send('methodtype=xml&update=keys&iconid='+working_iconid+'&dispno='+working_disp+'&val='+enc(req_keys));				failed=false;			}			catch(f_e)			{				failed=true;			}		}		if(failed) // try iframe		{			if(ifr_sup)			{				iform=document.forms['f_ifr'];				iform.action='/icon_manager.php';				iform.update.value='keys';				iform.iconid.value=working_iconid;				iform.dispno.value=working_disp;				iform.val.value=req_keys;				iform.submit();				failed=false;			}		}		isforced=true;		onOut(working_elm);	}	return failed;}function update_keys_foot(updated_disp){	if(xmlKeys[updated_disp].readyState==4)	{		the_stuff=xmlKeys[updated_disp].responseText;		if(the_stuff&&the_stuff.indexOf('keys: ')==0)		{			updated_keys=the_stuff.substr(6);			change_keys_display(updated_disp,updated_keys);		}		else			alert(the_stuff);	}}function change_keys_display(tmpdsp,tmpkeys){	wkeys=document.getElementById('hide_keys'+tmpdsp);	wkeys.innerHTML=tmpkeys;}function rateicon(rating,disp){	if(disp!='x')	{		working_disp=disp;		working_iconid_span=document.getElementById("iconid"+disp);		working_iconid=working_iconid_span.innerHTML;	}		flag=0;	if(!((''+rating).match(/^[0-5]$/)))	{		flag=1;		alert("Qu1t 7ry1n6 t00 h4x my s1t3, y0!");	}	if(flag)		failed=false;	else		failed=true;	if(!flag)	{		if(true)		{			if(disp!='x')			{				selfrate_elm=document.getElementById('selfrate'+disp);				selfrate=selfrate_elm.innerHTML;			}			for(var i=0;i<rating;i++)			{				tmpstar=document.getElementById('rate_'+disp+'_'+i);				if(i<selfrate)					tmpstar.src='/images/star_full_h.gif';				else					tmpstar.src='/images/star_half_h.gif';			}			for(i=rating;i<5;i++)			{				tmpstar=document.getElementById('rate_'+disp+'_'+i);				if(i<selfrate)					tmpstar.src='/images/star_half_.gif';				else					tmpstar.src='/images/star_empty_.gif';			}		}				if(!xmlRating[working_disp])			xmlRating[working_disp]=vb();		if(xmlRating[working_disp])		{			try			{				xmlRating[working_disp].open('POST','icon_manager.php',true);				xmlRating[working_disp].setRequestHeader('Content-Type','application/x-www-form-urlencoded');				eval('xmlRating[working_disp].onreadystatechange=function(){rateicon_foot('+working_disp+')}');				xmlRating[working_disp].send('methodtype=xml&update=rating&iconid='+working_iconid+'&dispno='+working_disp+'&val='+enc(rating));				failed=false;			}			catch(f_e)			{				failed=true;			}		}		if(failed) // try iframe		{			if(ifr_sup)			{				iform=document.forms['f_ifr'];				iform.action='/icon_manager.php';				iform.update.value='rating';				iform.iconid.value=working_iconid;				iform.dispno.value=working_disp;				iform.val.value=rating;				iform.submit();				failed=false;			}		}	}	return failed;}function rateicon_foot(updated_disp){	if(xmlRating[updated_disp].readyState==4)	{		the_stuff=xmlRating[updated_disp].responseText;		if(the_stuff&&the_stuff.indexOf('rating: ')==0)		{			tmparr=the_stuff.substr(8).split(',');			updated_rating=tmparr[0];			updated_avgrating=tmparr[1];			rateicon_display(updated_disp,updated_rating,updated_avgrating);		}		else			alert(the_stuff);	}}function rateicon_display(tmpdsp,tmprating,tmpavgrating){	tdisp=tmpdsp;	wselfrate=document.getElementById('selfrate'+tmpdsp);	wselfrate.innerHTML=tmprating;	wavgrating=document.getElementById('avgrating'+tmpdsp);	wavgrating.innerHTML=tmpavgrating;	if(tmpdsp==working_disp)	{		selfrate=tmprating;		if(mouse_over_rating=='x')		{			rateover(cur_rating,'x');			rateout(tmpdsp);		}		else if(mouse_over_rating==tmpdsp)		{			rateover(cur_rating,tmpdsp);			rateout('x');		}		else		{			rateout(tmpdsp);			rateout('x');		}	}}function rateover(rating,disp){	xdisp=disp;	mouse_over_rating=disp;	cur_rating=rating;	if(disp!='x')	{		selfrate_elm=document.getElementById('selfrate'+disp);		selfrate=selfrate_elm.innerHTML;	}	for(var i=0;i<selfrate;i++)	{		tmpstar=document.getElementById('rate_'+disp+'_'+i);		if(i<rating)			tmpstar.src='/images/star_full_h.gif';		else			tmpstar.src='/images/star_full_.gif';	}	for(i=selfrate;i<5;i++)	{		tmpstar=document.getElementById('rate_'+disp+'_'+i);		if(i<rating)			tmpstar.src='/images/star_empty_h.gif';		else			tmpstar.src='/images/star_empty_.gif';	}	tmpnub=document.getElementById('rate_'+disp+'_');	nuburl='/images/rating_cancel_';	if(disp=='x')		nuburl+='x_';	if(rating==0)		nuburl+='h';	tmpnub.src=nuburl;	barleft_elm=document.getElementById('rate_'+disp+'_bar_left');	if(rating==0)		barleft_elm.src='/images/bar_left_.gif';	else		barleft_elm.src='/images/bar_left_h.gif';	barright_elm=document.getElementById('rate_'+disp+'_bar_right');	if(rating==5)		barright_elm.src='/images/bar_right_h.gif';	else		barright_elm.src='/images/bar_right_.gif';	for(i=1;i<5;i++)	{		tmpbar=document.getElementById('rate_'+disp+'_bar_mid_'+i);		if(rating>0)		{			if(i<rating)				tmpbar.src='/images/bar_mid_h.gif';			else if(i>rating)				tmpbar.src='/images/bar_mid_.gif';			else				tmpbar.src='/images/bar_overlap.gif';		}		else			tmpbar.src='/images/bar_mid_.gif';	}}function rateout(disp){	mouse_over_rating=-1;	if(disp!='x')	{		selfrate_elm=document.getElementById('selfrate'+disp);		selfrate=selfrate_elm.innerHTML;	}	for(var i=0;i<5;i++)	{		tmpstar=document.getElementById('rate_'+disp+'_'+i);		if(i<selfrate)			tmpstar.src='/images/star_full_.gif';		else			tmpstar.src='/images/star_empty_.gif';	}	tmpnub=document.getElementById('rate_'+disp+'_');	if(disp!='x')		tmpnub.src='/images/rating_cancel_.gif';	else		tmpnub.src='/images/rating_cancel_x_.gif';	barleft_elm=document.getElementById('rate_'+disp+'_bar_left');	barleft_elm.src='/images/bar_left_.gif';	barright_elm=document.getElementById('rate_'+disp+'_bar_right');	barright_elm.src='/images/bar_right_.gif';	for(i=1;i<5;i++)	{		tmpbar=document.getElementById('rate_'+disp+'_bar_mid_'+i);		tmpbar.src='/images/bar_mid_.gif';	}}function del_com(frm){	document.forms['frmComment'].comment.value="";}function update_comment(frm){	req_comment=document.forms['frmComment'].comment.value;	flag=0;	if(req_comment.length>255)	{		flag=1;		alert("Too long: Max length is 255 characters ("+(req_comment.length-255)+" over)");	}	if(flag)		failed=false;	else		failed=true;	if(!flag)	{		if(!xmlComment[working_disp])			xmlComment[working_disp]=vb();		if(xmlComment[working_disp])		{			try			{				xmlComment[working_disp].open('POST','icon_comments.php',true);				xmlComment[working_disp].setRequestHeader('Content-Type','application/x-www-form-urlencoded');				eval('xmlComment[working_disp].onreadystatechange=function(){update_comment_foot('+working_disp+')}');				xmlComment[working_disp].send('methodtype=xml&update=description&iconid='+working_iconid+'&dispno='+working_disp+'&val='+enc(req_comment));				failed=false;			}			catch(f_e)			{				failed=true;			}		}		if(failed) // try iframe		{			if(ifr_sup)			{				iform=document.forms['f_ifr'];				iform.action='/icon_comments.php';				iform.update.value='description';				iform.iconid.value=working_iconid;				iform.dispno.value=working_disp;				iform.val.value=req_comment;				iform.submit();				failed=false;			}		}		isforced=true;		onOut(working_elm);	}	return failed;}function update_comment_foot(updated_disp){	if(xmlComment[updated_disp].readyState==4)	{		the_stuff=xmlComment[updated_disp].responseText;		if(the_stuff&&the_stuff.indexOf('comment: ')==0)		{			has_com=the_stuff.charAt(9);			updated_comment=the_stuff.substr(11);			col_i=updated_comment.indexOf(":");			newcnt=updated_comment.substring(0,col_i);			newcom=updated_comment.substr(col_i+2);			change_comment_display(updated_disp,has_com,newcnt,newcom);		}		else			alert(the_stuff);	}}function change_comment_display(tmpdsp,tmphdesc,tmpcount,tmpcomment){	wcomspan=document.getElementById('icon_comments'+tmpdsp);	wcomlink=document.getElementById('icon_com_link'+tmpdsp);	if(tmpcount>0)	{		wcomlink.innerHTML='Comments ('+tmpcount+')';		if(tmphdesc==1)			wcomlink.className='com_desc';		else			wcomlink.className='com_undsc';	}	else if(tmpcount==0)	{		if(tmphdesc==1)			wcomlink.className='uncm_desc';		else			wcomlink.className='uncm_undsc';		wcomlink.innerHTML='Comments (0)';	}	try	{		wcomment=document.getElementById('hide_comment'+tmpdsp);		wcomment.innerHTML=tmpcomment;	}	catch(e)	{	}}function find_update_comment(i_id,has_d,c_cnt,c_txt){	i_dsp=0;	found=false;	i_elm=document.getElementById('iconid0');	while(i_elm&&!found)	{		found=(i_elm.innerHTML==i_id);		if(!found)		{			i_dsp++;			i_elm=document.getElementById('iconid'+i_dsp);		}	}	if(found)	{		change_comment_display(i_dsp,has_d,c_cnt,c_txt);	}}function replace_file(frm,cfm){	frm.iconid.value=working_iconid;	if(cfm)	{		wname=document.getElementById('name'+working_disp).innerHTML;		fnamearr=frm.new_file.value.split('/');		fname=fnamearr[fnamearr.length-1];		if(confirm("Really replace \""+wname+"\" using "+fname+" ?"))		{			frm.submit();		}	}	return true;}function update_cat(){	val_str="";	count=0;	for(i=0;i<=high_click_disp;i++)		if(togb[i])		{			count++;			if(val_str!="")				val_str+=",";			iconid_span=document.getElementById("iconid"+i);			temp_iconid=iconid_span.innerHTML;			val_str+=""+temp_iconid;		}	conf=confirm("Really move "+count+" icons?");	if(conf)	{		cat_s=document.getElementById("mcat");				iform=document.forms['f_ifr'];		iform.action='/icon_manager.php';		iform.target='_self';		iform.methodtype.value='post';		iform.update.value='category';		iform.iconid.value=val_str;		iform.dispno.value=0;		iform.val.value=cat_s.options[cat_s.selectedIndex].value;		iform.submit();	}}function mass_delete(){	val_str="";	count=0;	for(i=0;i<=high_click_disp;i++)		if(togb[i])		{			count++;			if(val_str!="")				val_str+=",";			iconid_span=document.getElementById("iconid"+i);			temp_iconid=iconid_span.innerHTML;			val_str+=""+temp_iconid;		}	conf=confirm("Really delete "+count+" icons?");	if(conf)	{		iform=document.forms['f_ifr'];		iform.action='/icon_manager.php';		iform.target='_self';		iform.methodtype.value='post';		iform.update.value='delete';		iform.iconid.value=val_str;		iform.dispno.value=0;		iform.val.value='';		iform.submit();	}}function mass_autoname(){	val_str="";	count=0;	for(i=0;i<=high_click_disp;i++)		if(togb[i])		{			count++;			if(val_str!="")				val_str+=",";			iconid_span=document.getElementById("iconid"+i);			temp_iconid=iconid_span.innerHTML;			val_str+=""+temp_iconid;		}	conf=confirm("Really auto-filename "+count+" icons?");	if(conf)	{		iform=document.forms['f_ifr'];		iform.action='/icon_manager.php';		iform.target='_self';		iform.methodtype.value='post';		iform.update.value='autoname';		iform.iconid.value=val_str;		iform.dispno.value=0;		iform.val.value='';		iform.submit();	}}function delete_icon(theiconid){	wimg=document.getElementById('img'+working_disp);	wname=document.getElementById('name'+working_disp);	new_label=wname.innerHTML;	new_filenamearr=wimg.src.split('/');	new_filename=new_filenamearr[new_filenamearr.length-1];	conf=confirm("Really delete this icon?\n"+new_label+"\n"+new_filename);	if(conf)	{		iform=document.forms['f_ifr'];		iform.action='/icon_manager.php';		iform.target='_self';		iform.methodtype.value='post';		iform.update.value='delete';		iform.iconid.value=theiconid;		iform.dispno.value=working_disp;		iform.val.value='';		iform.submit();	}}function sel_all(no_disps){	for(i=0;i<no_disps;i++)	{		tmp_icoid_span=document.getElementById("iconid"+i);		tmp_id=tmp_icoid_span.innerHTML;		try		{			tmp_elm=document.getElementById('togb'+i);			tmp_elm.className=tmp_elm.className.split("off").join("on");			togb[i]=true;		}		catch(e)		{		}	}	high_click_disp=no_disps-1;	update_multi_functions();	void(0);}function sel_none(no_disps){	for(i=0;i<no_disps;i++)	{		tmp_icoid_span=document.getElementById("iconid"+i);		tmp_id=tmp_icoid_span.innerHTML;		try		{			tmp_elm=document.getElementById('togb'+i);			tmp_elm.className=tmp_elm.className.split("on").join("off");			togb[i]=false;		}		catch(e)		{		}	}	high_click_disp=no_disps-1;	update_multi_functions();	void(0);}function hover_togb(disp){	elm=document.getElementById('togb'+disp);	elm.className=elm.className.split("_hover").join("")+"_hover";}function out_togb(disp){	elm=document.getElementById('togb'+disp);	elm.className=elm.className.split("_hover").join("");}	function toggle_togb(disp){	if(disp>high_click_disp)		high_click_disp=disp;	elm=document.getElementById('togb'+disp);	if(elm.className.indexOf('off')!=-1)	{		elm.className=elm.className.split("off").join("on");		togb[disp]=true;	}	else	{		elm.className=elm.className.split("on").join("off");		togb[disp]=false;	}	update_multi_functions();	return false;}function update_multi_functions(){	mdel_elm=document.getElementById('mdel');	mcat_elm=document.getElementById('mcat');	mauto_elm=document.getElementById('mauto');	tbd_elm=document.getElementById('mass');	count=0;	for(i=0;i<=high_click_disp;i++)		if(togb[i])			count++;	if(count>0&&cur_disabled)	{		mdel_elm.disabled=false;		mcat_elm.disabled=false;		mauto_elm.disabled=false;		cur_disabled=false;		tbd_elm.style.display='block';	}	if(count==0&&!cur_disabled)	{		mdel_elm.disabled=true;		mcat_elm.disabled=true;		mauto_elm.disabled=true;		cur_disabled=true;		tbd_elm.style.display='none';	}}function support_iframes(){	ifr_sup=1;}function manage_newwin(){	return false;}function markup_newwin(id){	jwin=window.open('/icon_markup.php?id='+id,'markup','width=350,height=250,toolbar=0,resizable=0');jwin.focus();	return false;}function open_com_box(id){	cwin=window.open('/icon_comments.php?id='+id,'com_box','width=400,height=300,toolbar=0,statusbar=1,resizable=1,scrollbars=1');cwin.focus();	return false;}window.onload=function(){	setup_flyouts();	test_xml=vb();	if(test_xml)	{		ifr_test=1;		ifr_sup=1;	}	if(!ifr_test)	{		ifr_test=1;		tfr_test=document.getElementById('t_test');		tfr_test.src='/html/test_iframe.html';	}}function vb(){var C=null;try{C=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{C=new ActiveXObject("Microsoft.XMLHTTP")}catch(sc){C=null}}if(!C&&typeof XMLHttpRequest!="undefined"){C=new XMLHttpRequest()}return C}