function PopUp (url, name, width, height, center, resize, scroll, posleft, postop) {
	var showx = "";
	var showy = "";
	var X =  0;
	var Y = 0;

	if (scroll) {scroll = 1;} else {scroll = 0;};
	if (resize) {resize = 1;} else {resize = 0;};

	if ((parseInt (navigator.appVersion) >= 4 ) && (center)) {
		X = (screen.width  - width ) / 2;
		Y = (screen.height - height) / 2;
	};

	if (posleft) {X = posleft;};
	if (postop) {Y = postop;};

	if ( X > 0 ) {showx = ',left='+X;};
	if ( Y > 0 ) {showy = ',top='+Y;};

	var Win = window.open( url, name, 'width='+width+',height='+height+ showx + showy + ',resizable='+resize+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no');
}

function showObject1(num) {
  var div_num = 'div'+num;
  if (document.getElementById(div_num))
{
if (document.getElementById(div_num).className == 'pop1') document.getElementById(div_num).className = 'go1';
else document.getElementById(div_num).className = 'pop1';
}

}



var _w=window,_d=document;
_w.onerror = null;
var tooltip_attr_name = "tooltip",tooltip_len=45;
_w.onload=function(e){if(_d.createElement)tooltip.d();}
tooltip={t: _d.createElement("DIV"),
c: null,
g: false,
m: function(e){if(tooltip.g){oCanvas=_d.getElementsByTagName((_d.compatMode&&_d.compatMode=="CSS1Compat")?"HTML":"BODY")[0];
x=_w.event?event.clientX+oCanvas.scrollLeft:e.pageX;
y=_w.event?event.clientY+oCanvas.scrollTop:e.pageY;
tooltip.a(x,y);}},
d: function(){tooltip.t.setAttribute("id", "tooltip");
_d.body.appendChild(tooltip.t);
a=_d.all?_d.all:_d.getElementsByTagName("*");
aLength=a.length;
for(var i=0;i<aLength;i++){if(a[i].getAttribute("title")){a[i].setAttribute(tooltip_attr_name,a[i].getAttribute("title"));
if(a[i].getAttribute(tooltip_attr_name)){a[i].removeAttribute("title");
if(a[i].getAttribute("alt") && a[i].complete) a[i].removeAttribute("alt");
tooltip.l(a[i],"mouseover",tooltip.s);
tooltip.l(a[i],"mouseout",tooltip.h);}}
else if(a[i].getAttribute("alt")&&a[i].complete){a[i].setAttribute(tooltip_attr_name, a[i].getAttribute("alt"));
if(a[i].getAttribute(tooltip_attr_name)){a[i].removeAttribute("alt");
tooltip.l(a[i], "mouseover", tooltip.s);
tooltip.l(a[i], "mouseout", tooltip.h);}}}
_d.onmousemove = tooltip.m;
_w.onscroll = tooltip.h;},
s: function(e){d=_w.event?_w.event.srcElement:e.currentTarget;
if(!d.getAttribute(tooltip_attr_name))return;
if(tooltip.t.firstChild)tooltip.t.removeChild(tooltip.t.firstChild);
tooltip.t.appendChild(_d.createTextNode(d.getAttribute(tooltip_attr_name)));
tooltip.c=setTimeout("tooltip.t.style.visibility='visible';",1);
tooltip.g=true;
var tmp=d.getAttribute(tooltip_attr_name);
tooltip.t.setAttribute("id",(tmp.length>tooltip_len)?"tooltip_big":"tooltip");},
h: function(e){tooltip.t.style.visibility = "hidden";
if(tooltip.t.firstChild)
tooltip.t.removeChild(tooltip.t.firstChild);
clearTimeout(tooltip.c);
tooltip.g = false;
tooltip.a(-99, -99);},
l: function(o,e,a){if(o.addEventListener)o.addEventListener(e,a,false);
else if(o.attachEvent)o.attachEvent("on"+e,a);
else return null;},
a: function(x,y){oCanvas=_d.getElementsByTagName((_d.compatMode &&_d.compatMode=="CSS1Compat")?"HTML":"BODY")[0];
w_width=_w.innerWidth?_w.innerWidth+_w.pageXOffset:oCanvas.clientWidth+oCanvas.scrollLeft;
w_height=_w.innerHeight?_w.innerHeight+_w.pageYOffset:oCanvas.clientHeight+oCanvas.scrollTop;
t_width=_w.event?tooltip.t.clientWidth:tooltip.t.offsetWidth;
t_height=_w.event?tooltip.t.clientHeight:tooltip.t.offsetHeight;
t_extra_width=7;
t_extra_height=5;
tooltip.t.style.left=x+8+"px";
tooltip.t.style.top=y+8+"px";
while(x+t_width+t_extra_width>w_width){x-=x+t_width+t_extra_width-w_width;
tooltip.t.style.left=x+"px";
t_width=_w.event?tooltip.t.clientWidth:tooltip.t.offsetWidth;}
while(y+t_height + t_extra_height > w_height){y-=y+t_height + t_extra_height - w_height;
tooltip.t.style.top = y + "px";
t_height=_w.event?tooltip.t.clientHeight:tooltip.t.offsetHeight;}}}
