lsub="sub_0";
limg="img_0";
ndta=new Array();

function toggleSub(sub,img){
	obj=swoop.getObjById(lsub);
	if(obj!=null){
		obj.innerHTML="";}
	obj=swoop.getObjById(sub);
	if(obj!=null){
		html=new String("");
		if((typeof(ndta)=="object")&&(typeof(ndta[sub])=="object")&&(ndta[sub].length>0)){
			html+="<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
			for(i=0;i<ndta[sub].length;i++){
				html+="<tr>";
				if(typeof(ndta[sub][i])=="object"){
					for(j=0;j<ndta[sub][i].length;j++){
						if(typeof(ndta[sub][i][j])=="object"){
							html+="<td><a href=\""+ndta[sub][i][j][0]+"\" title=\""+ndta[sub][i][j][1]+"\"";
							if(!ndta[sub][i][j][3]){
								html+=" target=\"frm_main\"";}
							html+="><img src=\""+ndta[sub][i][j][2]+"\" alt=\""+ndta[sub][i][j][1]+"\" border=\"0\"><\/a><\/td>";}
						else{html+="<td><\/td>";}}}
				html+="<\/tr>";}
			html+="<\/table>";}
		obj.innerHTML=html;}
	lsub=sub;
	if(typeof(document.images[limg])=="object"){
		document.images[limg].src=document.images[limg].src.substr(0,(document.images[limg].src.lastIndexOf(".")-1))+"n.gif";}
	if(typeof(document.images[img])=="object"){
		document.images[img].src=document.images[img].src.substr(0,(document.images[img].src.lastIndexOf(".")-1))+"h.gif";}
	limg=img;}
	
function popupwin(url,n,w,h){
 	winhndl=window.open(url, "winhndl_"+n, "top=50, left=50, width="+w+", height="+h+", location=0, menubar=0, resizable=1, scrollbars=1, status=1, titlebar=0, toolbar=0");
 	if(typeof(winhndl)=="object"){
 		if(winhndl!=null){
	 		if(!winhndl.closed){
 				winhndl.focus();
 				return true;}}}
 	return false;}
 	
function popupopen(url,n,w,h){
	if(!popupwin(url,n,w,h)){
		alert("POPUP-BLOCKER!");}}