bName = navigator.appName;

function openWin() {
 if(bName == "Netscape") {
  window.open("popup.html","mywin","width=480,height=400,top=40,left=40,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=no");
 }
 else {
  window.open("popup.html","mywin","width=480,height=405,top=40,left=40,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=no");
 }
}

function popup() {
	window.open("popup.html","popupwindow","height=460,width=360,scrollbars=no");
}

function setPage (newAddress) {
        if (newAddress != "") { window.location.href = newAddress; }
}


function makeArray(n){
    this.length = n;
    for (i=1;i<=n;i++){
        this[i]=0;
    }
    return this;
}
function displayDate(){
    var this_month = new makeArray(12);
    this_month[0]  = "January";
    this_month[1]  = "February";
    this_month[2]  = "March";
    this_month[3]  = "April";
    this_month[4]  = "May";
    this_month[5]  = "June";
    this_month[6]  = "July";
    this_month[7]  = "August";
    this_month[8]  = "September"; 
    this_month[9]  = "October";
    this_month[10] = "November";
    this_month[11] = "December";
    var today = new Date();
    var day   = today.getDate();
    var month = today.getMonth();
    var year  = today.getYear();
    if (year < 1900){
        year += 1900;
    }
    return(" "+day+" "+this_month[month]+" "+year);
}


if (navigator.appName == "Netscape") {
	layerRef="document.layers";
  	styleSwitch="";
    } else {
    	layerRef="document.all";
    	styleSwitch=".style";
    }

function showLayer(layerName) {
 	eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
}
  	
function hideLayer(layerName) {
	eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
}


ns=0;
layerRef="document.all"
styleSwitch=".style"
if (navigator.appName == "Netscape") {
	ns=1;
	layerRef="document.layers"
  	styleSwitch=""

}

menutop=43;
if (ns) menutop=53;

function sety(layerName,y) {
 	eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.top='+y);
}





//redbar table hilighter start
  if (document.images) {
       lefttable = new Image();
          lefttable.src="./../images/menu/table_left.jpg"; //put default img1 image here
	lefttable_on = new Image();
          lefttable_on.src="./../images/menu/table_left_over.jpg";
       righttable = new Image();
          righttable.src="./../images/menu/table_right.jpg"; //put default img2 image here
	righttable_on = new Image();
          righttable_on.src="./../images/menu/table_right_over.jpg";

  }
  function hiLite(imgDocID,imgObjName) {
          if (document.images) {
                  for (i=0; i<document.images.length; i++) {
                          if (document.images[i].name == imgDocID) {
                                  document.images[i].src = eval(imgObjName + ".src");
                          }
                  }
          }
  }
//redbar table hilighter end


var NN3 = false;
lefttable = new Image();
lefttable.src="./../images/menu/table_left.jpg"; 
lefttableon = new Image();
lefttableon.src="./../images/menu/table_left_over_en.JPG";
       
righttable = new Image();
righttable.src="./../images/menu/table_right.jpg"; 
righttableon = new Image();
righttableon.src="./../images/menu/table_right_over.JPG";
       

function on3(name)   {
        document[name].src = eval(name + "on.src");
}
function off3(name)  {
        document[name].src = eval(name + ".src");
}
NN3 = true;

function on(name)  {
        if (NN3) on3(name);
}
function off(name)  {
        if (NN3) off3(name);
}

