

d=document;
function yg_Browser(){
	var nav=navigator; 
	this.agt=nav.userAgent.toLowerCase(); 
	this.major = parseInt(nav.appVersion); 
	this.ns=(d.layers); 
	this.dom=(d.getElementById)?1:0; 
	this.ns4up=(this.ns && this.major >=4); 
	this.ns6=(this.agt.indexOf("Netscape6")!=-1); 
	this.op=(window.opera? 1:0); 
	if(d.all)
		this.ie=1;
	else 
		this.ie=0; 
		
	this.ie4up=(this.ie && this.major >= 4); 
	this.ie5=(d.all&&this.dom); 
	this.gk=(typeof(nav.product)!="undefine"&&nav.product)?1:0; 
	this.fb=(this.agt.indexOf("firebird")!=-1); 
	this.fx=(this.agt.indexOf("firefox")!=-1); 
	this.sf=(this.agt.indexOf("safari")!=-1); 
	this.win=((this.agt.indexOf("win")!=-1) || (this.agt.indexOf("16bit")!=-1)); 
	this.mac=(this.agt.indexOf("mac")!=-1); 
}

var oBw=new yg_Browser();

function j_getObj(id){
	var i,x;
	d=document;
	if(!(x=d[id])&&d.all)
		x=d.all[id];
		
	for (i=0;!x&&i<d.forms.length;i++) 
		x=d.forms[i][id];
		
	if(!x && document.getElementById) 
		x=document.getElementById(id);
		
  return x;
}

function j_show(o,disp){
	(!disp)? 0:o.style.display=disp;
	o.style.visibility='visible';
}

function j_hide(o,disp){
	(!disp)? 0:o.style.display=disp;
	o.style.visibility='hidden';
}

function j_showhide(id){
  if (oBw.ie&&oBw.mac) 
      return true;
  if (oBw.ie||oBw.dom) {
    var o=j_getObj(id);
    var d=j_getStyle(o,"display");
    if (d==""||d=="block"||d=="inline") {
        j_hide(o,"none");
    } else {
        j_show(o,"block");
    }
  }
}

function j_setClass(o,c) {
	if(oBw.ie5||oBw.dom) 
		eval("o.className = '" + c +"'");
}

function j_setStyle(o,s,v){
	if(oBw.ie5||oBw.dom) 
		eval("o.style."+s+" = '" + v +"'");
}

function j_getStyle(o,s){
	if(oBw.ie5||oBw.dom) 
		return eval("o.style."+s);
}

function j_getClass(o){
	if(oBw.ie5||oBw.dom) 
		return eval("o.className");
}

function show(id) {
  if (oBw.ie&&oBw.mac) 
      return true;
  if (oBw.ie||oBw.dom) {
    var o=j_getObj(id);
    if (o) {
	j_show(o,"block");
    }
  }
}

function hide(id) {
  if (oBw.ie&&oBw.mac) 
      return true;
  if (oBw.ie||oBw.dom) {
    var o=j_getObj(id);
    if (o) {
        j_hide(o,"none");
    }
  }
}

function picgal_showhide(caller, id, liID){
  if (oBw.ie&&oBw.mac) 
      return true;
  if (oBw.ie||oBw.dom) {
    var o=j_getObj(id);
    var d=j_getStyle(o,"display");
    if (d==""||d=="block"||d=="inline") {
        j_hide(o,"none");
        caller.innerHTML = "[+]";
        caller.innerText = "[+]";
    } else {
        j_show(o,"block");
        caller.innerHTML = "[-]";
        caller.innerText = "[-]";
    }
  }
}