nav3plus = false;    
if (navigator.userAgent.indexOf("Mozilla") != -1)      
{     
 nav3plus = parseInt(navigator.appVersion.substring(0,1)) >= 3     
} 
if (navigator.userAgent.indexOf("Googlebot") == -1)      
{ 
	if (top == self)     
	{  
	 if (nav3plus && typeof nav == "undefined")      
	 { 
	  if (typeof script == "undefined")
	  { 
	   var a=document.URL.substring(7,document.URL.length);
	   var b=a.indexOf("/");
	   location.replace('/'+a.substring(b+1,b+3)+'/'+document.URL.substring(document.URL.lastIndexOf("/")+1,document.URL.length-5)); 
	  }
	  else
	  {	
	   var param="";
	   if (typeof noparam == "undefined")
	   {
		   if (self.location.search.length>0)
		   {
		    param=self.location.search;
		   }
		 }
		 if (script.substring(0,1) != '/')
		 {
		 	script='/'+script;
		 }
	   location.replace(script+param);
	  }
	 }     
	 else     
	 {     
	  location.replace('/');     
	 }    
	}
}

