
var	hashfull=document.location.hash;
var	hash=hashfull.substring(1,5);
var	kna=hashfull.substring(6,125);//kna=String;

var ana=(kna);//Number()

var perfix="";
var pg=0;
 
var lasta=kna.search("L");

var pg=kna.search("P");

if(pg>0)
{

var page=kna.substring(pg+1,125);

ana=kna.substring(0,pg);

 // alert(kna+"-"+ana+"-"+pg+"-"+page);


	
	}
	
	
if(lasta>0)
{
perfix+="#lastpost";
	
	
 ana=ana.replace("L","");
 
 
ana+=perfix;

	}	
	
	
	
  // alert(ana);

if(hash && ana)
{
	
switch (hash)
{


	case "styl"	:
{	
	//	ss_show(ana);
//	w_show_this_menu(ana);
	
//	document.style="backgroundColor=#FFFF00";
//	document.getElementById("sty").value=ana;
 //document.location="index.php?langg="+ana;
	break;
///////////////////////
}

	case "spac"	:
{	
		ss_show(ana);
	w_show_this_menu(ana);
//document.location="index.php?spac="+ana;
	break;
///////////////////////
}	
		case "wrld"	:
{	
	
//	alert(ana);
//parent.ww_show(allw[ana].id);
//parent.ww_show(ana);
//document.write(ana);	


//channel("mbdy.php?world="+ana);

//window.frames['main'].window.location="mbdy.php?world="+ana;

fill("mbdy.php?world="+ana);

www_show(ana);
	
//	document.location.href(document.getElementById("imain").src);
	
	break;
///////////////////////
}


	
	case "club"	:
{	
	
//	channel("hall/tohalls.php?chnid="+ana;
//window.frames['main'].window.location="hall/tohalls.php?chnid="+ana;
fill("hall/tohalls.php?chnid="+ana);

www_show(2);
//	alert(ana);
	break;
	
	}
	
	//////////////////////////////////////////////////	
	case "mall"	:
{  //	alert("hall/allmalls.php?mall="+ana;
fill("hall/allmall.php?mall="+ana);

www_show(3);
	break;
	
	}
//////////////////////////////////////////////////	
	case "sbml"	:
{  //	alert("hall/allmalls.php?mall="+ana;

www_show(3);
fill("hall/mall.php?subid="+ana);



	break;
	
	}
//////////////////////////////////////////////////	

	case "hall"	:
{
www_show(2);

	
//	w_show_this_menu(allw[i].spc;		
fill("hall/subj.php?chnid=30&dd="+ana);


	break;
	}
	
	///////////////////////////
	case "subj"	:
{	

if(page>0)
{
	
fill("hall/hall.php?subjid="+ana+"&pg="+page);	


	}
	else
	{	
//www_show(2;	
fill("hall/hall.php?subjid="+ana);

}
//top.location.href="#lastpost";

	break;
	}	
////////////////////

	case "grup"	:
{	
fill("hall/g.php?gid="+ana);
www_show(156);
	break;
///////////////////////
}



	case "socy"	:
{	
fill("mbdy.php?socy="+ana);
	break;
///////////////////////
}


	case "site"	:
{	
fill("links/tolink.php?chnid="+ana);
www_show(5);
	break;
///////////////////////
}


default	:
{
fill("mbdy.php?world="+2);
	
		
//	document.location="mbdy.php";
	}	


	case ""	:
	
{
fill("mbdy.php?world="+2);
	
		
//	document.location="mbdy.php";
	}	
		
} // switch
	
	document.location.hash=hash+'='+ana;
	
	
//	w_show_this_menu(allw[i].spc);	
	} //if
	
	else
	{
fill("mbdy.php?world=2");
	document.location.hash='wrld=2';

	
		}
		
