var ModeCount = 0;
var Key = null;
var curIndex = 0;
var topics = null;
var prev = null;

function load( cat )
{
		if(curIndex >= ModelCount) return false;
		  
		/* if(curIndex<25)
		 {
			var tbl = document.getElementById('m');	 
			
			if(curIndex==0 || 	curIndex%5 == 0 )
			{
				prev = prnt = document.createElement("tr");
				tbl.appendChild(prnt);
			}
			else
			{
				prnt = prev;
			}			
		 }
		 else */
		 {
			var tbl = document.getElementById('models_bottom');	 
			
			if((curIndex /*-25 */)%6 == 0 )
			{
				prev = prnt = document.createElement("tr");
				tbl.appendChild(prnt);
			}
			else
			{
				prnt = prev;
			}						 
		 }

		var obj = document.createElement("td");
		obj.className='td_mdata';
		obj.style.width = '140px';
		obj.style.height = '140px';
		obj.innerHTML ="<iframe frameborder='0' SCROLLING='no' src='/bin/get.php?index="+curIndex+"&cat="+cat+"&key="+Key+"' width='100%' height='100%' onLoad='var obj2=this.contentWindow.document.getElementById("+'"i'+curIndex+'"'+"); obj2.src=obj2.alt; load("+cat+");'></iframe>";
		curIndex++;
		prnt.appendChild(obj);	  
		 
		return true;
		
}