// JavaScript Document
try{
document.execCommand("BackgroundImageCache", false, true);
}catch(e){}
function $(element){
if(arguments.length>1){
for(var i=0,elements=[],length=arguments.length;i<length;i++)
   elements.push($(arguments[i]));
return elements;
}
if(typeof element=="string")
return document.getElementById(element);
else
return element;
}
var Class={
create:function(){
return function(){
   this.initialize.apply(this,arguments);
} 
}
}
Object.extend=function(destination,source){
for(var property in source){
destination[property]=source[property];
}
return destination;
}
var tabMenu=Class.create();
tabMenu.prototype={
initialize:function(container,selfOpt,otherOpt){
this.container=$(container);

var selfOptions=Object.extend({fontWeight:"bold",fontSize:"12px",color:"#FFBC44"},selfOpt||{});
var otherOptions=Object.extend({fontWeight:"normal",fontSize:"12px",color:"#666"},otherOpt||{});

for(var i=0,length=this.container.childNodes.length,objs=[];i<length;i++){
   if(this.container.childNodes[i].nodeType==1)
    objs.push(this.container.childNodes[i]);
}
var tabArray=objs[0].getElementsByTagName("li");

var divArray=new Array();
for(i=0,length=objs[1].childNodes.length;i<length;i++){
   if(objs[1].childNodes[i].nodeType==1)
    divArray.push(objs[1].childNodes[i]);
}

for(i=0,length=tabArray.length;i<length;i++){
   tabArray[i].length=length;
   tabArray[i].index=i;
   tabArray[i].onmouseover=function(){

    for(var j=0;j<this.length;j++){
     tabArray[j].style.backgroundPosition="-"+tabArray[j].offsetWidth+"px 0";
     for(var property in selfOptions){
      tabArray[j].firstChild.style[property]=otherOptions[property];
     }
    }

    this.style.backgroundPosition="0 0";
    for(var property in selfOptions){
     this.firstChild.style[property]=selfOptions[property];

    }

    for(j=0;j<this.length;j++){
     divArray[j].style.display="none";
    }

    divArray[this.index].style["display"]="block";
   }
}
}
}
var tab1=new tabMenu("tab_container1",{fontSize:"12px",color:"#000000",fontWeight:"bold"},{marginBottom:"110px"},{marginTop:"10px"},{fontWeight:"normal",color:"#000000"});
var tab2=new tabMenu("tab_container2");
var tab3=new tabMenu("tab_container3",{textDecoration:"underline"},{textDecoration:"none"});
var tab4=new tabMenu("tab_container4",{fontWeight:"normal"});
var tab5=new tabMenu("tab_container5");
