(function(){
$UA={};
var u=navigator.userAgent;
if(u.match(/Opera[\/\s](\d\.\d+)/)){
$UA.b="Op";
$UA.v=RegExp.$1;
}else if(u.match(/MSIE (\d\.\d+)/)){
$UA.b="IE";
$UA.v=RegExp.$1;
}else if(u.match(/Safari\/([\.\d]+)/)){
$UA.b="Sa";
$UA.v=RegExp.$1;
}else if(u.match(/iCab[\/\s\D]+([\.\d]+)/)){
$UA.b="iCab";
$UA.v=RegExp.$1;
}else if(u.match(/Konqueror\/([\.\d]+)/)){
$UA.b="Kon";
$UA.v=RegExp.$1;
}else if(u.match(/Gecko\/(\d+)/)){
$UA.b="Moz";
$UA.v=RegExp.$1;
}else{
$UA.b="-";
$UA.v="-";
}
$=function(i){
return document.getElementById(i);
};
position=function(e){
if(e.clientTop){
var p={x:e.clientTop,y:e.clientLeft};
}else{
var p={x:e.offsetLeft,y:e.offsetTop};
while(e=e.offsetParent){
p.x+=e.offsetLeft;
p.y+=e.offsetTop;
}
}
return p;
}
size=function(e){
if(e.clientWidth!=0){
return {w:e.clientWidth,h:e.clientHeight};
}else if(e.offsetWidth){
return {w:e.offsetWidth,h:e.offsetHeight};
}else{
return {w:null,h:null};
}
}
opacity=function(e,o){
if($UA.b=="IE"){
e.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+o+")";
}else if($UA.b=="Moz"){
if(o==0){
e.style.MozOpacity=0;
}else{
e.style.MozOpacity=o/100;
}
}else{
if(o==0){
e.style.opacity=0;
e.style.KHTMLOpacity=0;
}else{
e.style.opacity=o/100;
e.style.KHTMLOpacity=o/100;
}
}
}
page_onload=function(f){
if(window.addEventListener){
window.addEventListener("load", f, false);
}else if(window.attachEvent){
window.attachEvent("onload", f);
}
};
OpenNew=function(){
var l=document.getElementsByTagName("a");
for(var i=0;i<l.length;i++){
if(l[i].href.indexOf(".doc")!=-1 || l[i].href.indexOf(".xls")!=-1 || l[i].href.indexOf(".pdf")!=-1 || l[i].className=="NewWindow"){
l[i].setAttribute("target","_blank");
}
}
}
MailTo=function(arg){
var ad="";
for(var i=0; i<arg.length; i++){
ad+=String.fromCharCode(arg[i]);
}
location.href="mailto:"+ad;
}
ajax=function(){};
ajax.x=function(){
if(window.ActiveXObject){
try{
return new ActiveXObject('Msxml2.XMLHTTP');
}catch(e){
try{
return new ActiveXObject('Microsoft.XMLHTTP');
}catch(e2){
return null;
}
}
}else if(window.XMLHttpRequest){
return new XMLHttpRequest();
}else{
return null;
}
}
ajax.touch=function(u,d){
var x=ajax.x();
x.open('GET',u,true);
x.send(d);
}
ajax.get=function(u){
var x=ajax.x();
x.open('GET',u,false);
x.send(null);
return x.responseText;
}
TSVtoArray=function(tsv){
var line=tsv.replace(/\r\n?/g,"\n").split("\n");
var TSV_Array_Obj=new Array();
for(var i=0;i<line.length;i++){
if(line[i]!="") TSV_Array_Obj.push(line[i].split("\t"));
}
return TSV_Array_Obj;
};
})();
page_onload(function(){
var MenuIMG=$("menu").getElementsByTagName("img");

if($UA.b=="IE"&&parseFloat($UA.v)<=6){
for(var i=0;i<MenuIMG.length;i++){
if(MenuIMG[i].src.indexOf(".png")!=-1){
MenuIMG[i].style.width=MenuIMG[i].width;
MenuIMG[i].style.height=MenuIMG[i].height;
MenuIMG[i].style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src='+MenuIMG[i].src+')';
MenuIMG[i].src="images/d.gif";
}
}
}
$("menu").style.visibility="visible";
var MainMenu=$("menu").getElementsByTagName("div");
for(var i=0;i<MainMenu.length;i++){
if(MainMenu[i].className=="main_menu"){
MainMenu[i].onmouseover=function(){
var IMG=this.getElementsByTagName("a")[0].getElementsByTagName("img")[0];
if($UA.b=="IE"&&parseFloat($UA.v)<=6){
IMG.style.filter=IMG.currentStyle.filter.replace("\.png","_over\.png");
}else{
IMG.src=IMG.src.replace("\.png","_over\.png");
}
if(this.getElementsByTagName("div").length>0){
this.getElementsByTagName("div")[0].style.display="block";
this.getElementsByTagName("div")[0].style.top=position(this).y+50+"px";
this.getElementsByTagName("div")[0].style.left=position(this).x+"px";
opacity(this.getElementsByTagName("div")[0],95);
}
}
MainMenu[i].onmouseout=function(){
var IMG=this.getElementsByTagName("a")[0].getElementsByTagName("img")[0];
if($UA.b=="IE"&&parseFloat($UA.v)<=6){
IMG.style.filter=IMG.currentStyle.filter.replace("_over\.png","\.png");
}else{
IMG.src=IMG.src.replace("_over\.png","\.png");
}
if(this.getElementsByTagName("div").length>0){
this.getElementsByTagName("div")[0].style.display="none";
}
}
}
}
OpenNew();
var flash;
if(flash=$("movie")){
flash.style.zIndex=0;
var d=document.createElement("div");
d.style.zIndex=1;
d.style.width=size(flash).w+"px";
d.style.height=size(flash).h+"px";
d.style.top=position(flash).y+"px";
d.style.left=position(flash).x+"px";
d.style.backgroundImage="url(images/d.gif)";
d.style.position="absolute";
document.body.appendChild(d);
}
for(var i=0;i<MenuIMG.length;i++){
var I=new Image();
var IO=new Image();
I.src=MenuIMG[i].src;
IO.src=MenuIMG[i].src.replace("\.png","_over\.png");
}
});