var iver = -1;

var BrowseVer = version();



function version() 

{ 

		 

   if(iver != -1)

     return iver;



   iver = 3;



   if(navigator.appName.indexOf("Netscape") != -1)  

   {  

      if(navigator.userAgent.indexOf("Mozilla/2.") != -1)       iver = 2;  

      else if(navigator.userAgent.indexOf("Mozilla/3.") != -1)  iver = 3;

      else if(navigator.userAgent.indexOf("Mozilla/4.") != -1)  iver = 4;

      else iver = 1;

   } 

   else  

   {  

      if(navigator.appName.indexOf("Internet Explorer") != -1)

      {

          if(navigator.userAgent.indexOf("Mozilla/4.") != -1) iver = 4;

          else iver = 1;

      } 

      else iver = 1;

   }

   if(iver == 4 && !document.images) iver = 3;

   



   

   return iver;

}



function situation(x)

{



   if(x == "nothing")

   {

        return;

   }



   else

   {

        location.href = x;



   }

}


function js_window(fullurl, width, height)

{

     		jsurl=fullurl;
     		
   if(BrowseVer>3){

            window.open(jsurl,'iso','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+width+',height='+height);   

      }

  
	else{

	

			window.open(jsurl,'iso','scrollbars=1,resizable=1,width='+width+',height='+height);

	}
}
function js_window_no(fullurl, width, height)

{

     		jsurl=fullurl;
     		
   if(BrowseVer>3){

            window.open(jsurl,'iso_no','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width='+width+',height='+height); 
             

      }

  
	else{

	

			window.open(jsurl,'iso_no','scrollbars=0,resizable=1,width='+width+',height='+height);

	}
}
function full_window()

{


Width=screen.availWidth;
Height=screen.availHeight;
this.window.moveTo(50,0);
this.window.resizeTo(Width,Height);
//alert(Width);
//alert(Height);
//window.page 

}

