var brN     = navigator.appName.toLowerCase();
var isIE    = (brN.indexOf("explorer") > -1) ? true : false;
var isNS    = (brN.indexOf("netscape") > -1) ? true : false;

function browser()
{
    if (isNS)
    {
	goto_URL( 'problem.htm', 'problem' );
	}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers()
{ //v3.0
	var i,p,v,obj,args=MM_showHideLayers.arguments;
	for (i=0; i<(args.length-2); i+=3)
	{
		if ((obj=MM_findObj(args[i]))!=null)
		{
			v=args[i+2];
			if (obj.style)
			{
				obj = obj.style; 
				v = (v=='show')?'visible':(v='hide')?'hidden':v;
			}
			if (args[i] == 'Layer1')
			{
                obj.left = ((document.body.scrollWidth-810)/2) + 75 + 'px';
			}
			else if (args[i] == 'Layer2')
			{
                obj.left = ((document.body.scrollWidth-810)/2) + 75 + 75 + 'px';
			}
			else if (args[i] == 'Layer3')
			{
                obj.left = ((document.body.scrollWidth-810)/2) + 75 + 2*75 +'px';
			}
			else if (args[i] == 'Layer4')
			{
                obj.left = ((document.body.scrollWidth-810)/2) + 75 + 3*75 + 'px';
			}
			else if (args[i] == 'Layer5')
			{
                obj.left = ((document.body.scrollWidth-810)/2) + 75 + 4*75 + 'px';
			}
			else if (args[i] == 'Layer6')
			{
                obj.left = ((document.body.scrollWidth-810)/2) + 75 + 5*75 + 'px';
			}
			else if (args[i] == 'Layer7')
			{
                obj.left = ((document.body.scrollWidth-810)/2) + 75 + 6*75 + 'px';
			}
			else if (args[i] == 'Layer8')
			{
                obj.left = ((document.body.scrollWidth-810)/2) + 75 + 7*75 + 'px';
			}
			else if (args[i] == 'Layer9')
			{
                obj.left = ((document.body.scrollWidth-810)/2) + 75 + 8*75 + 'px';
			}
			
			obj.top = '59px';
			obj.visibility = v;
		}
	}
    return true;
}



function changeImages(ImgName, MyWhat) {
  var path = 'images/up/';
  document[ImgName].src = path+ImgName+'_'+MyWhat+'.gif';
}


function goto_URL(object, name) {

    window.open( object.options[object.selectedIndex].value, name );
}

function popup(object, name){

if ( object.options[object.selectedIndex].value == 'varit.htm' )
  window.open( object.options[object.selectedIndex].value, 'vari', 'width=265,height=300,scrollbars=yes');
else
  goto_URL( object, name );
}

function mini_window(object, name){

  window.open( object.href, name, 'width=265,height=300,scrollbars=yes');
}


var win=null;
function NewWindow(mypage,myname,w,h,pos,infocus){
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(mypage,myname,settings);
win.focus();}


function _dSectionExpand(sec) {
   document.all["cSec"+sec].style.display = "none";
   document.all["xSec"+sec].style.display = "";
}
function _dSectionCollapse(sec) {
   document.all["xSec"+sec].style.display = "none";
   document.all["cSec"+sec].style.display = "";
}


