function GetPosition(cid,sepStr,pages){
	var retValue,i,tempArr;
	var tempArr=catalog_arr	;	
	for (var i=0;i<tempArr.length;i++){
		if(tempArr[i][0]==cid){
			
			retValue=sepStr+"<a href=\""+pages+".asp?id="+tempArr[i][0]+"\">"+tempArr[i][1]+"</a>";
			if(parseInt(tempArr[i][2])!=0){
				retValue=GetPosition(tempArr[i][2],sepStr,pages)+retValue;
				return retValue;
			}else{				
				return retValue;
			}					
		}		
	}	
	
}
function GetCatalogs(cid,sepStr){
	var retValue,i,tempArr;
	var tempArr=catalog_arr	;	
	for (var i=0;i<tempArr.length;i++){
		if(tempArr[i][2]==cid){			
			retValue+="<option value=\""+tempArr[i][0]+"\">"+sepStr+tempArr[i][1]+"</option>";
			if(parseInt(tempArr[i][0])!=0){				
				retValue+=GetCatalogs(tempArr[i][0],"&nbsp;ŠĀ");
			}			
		}		
	}
	return retValue;
}
