<!--
var a=-1;
var b=-1;
var c=-1;
var ypos=95;
var Id=0;
var hideA=0;
var hideB=0;
var hideC=0;
var callfrom=0;

function movemenu1(){

if (b==1){
hideB=1;callfrom=1;movemenu2();return true;
}

if (c==1){
hideC=1;callfrom=1;movemenu3();return true;
}

if (a==1){
a=-1;
}
else{
a=1;
}
if(document.layers){
document.contents.top=document.about.top;document.contents.visibility='visible';
}

if(document.all){
document.all.contents.style.top=parseInt(document.all.about.style.top);document.all.contents.style.visibility="visible";
}
if(!document.all && document.getElementById){
document.getElementById("contents").style.top=parseInt(document.getElementById("about").style.top);
document.getElementById("contents").style.visibility="visible";
}

if(!Id){movemenuA();
}
}

function movemenuA(){

if(ypos>116){ypos=116;}           
if(ypos<95){ypos=95;}       
ypos=ypos+3*a;                
if(document.layers){
document.contents.top=ypos;   
}
if(document.all){
document.all.contents.style.top=ypos+"px";
}
if(!document.all && document.getElementById){
document.getElementById("contents").style.top=ypos+"px";
}
if ((ypos <= 95 || ypos >= 116) && (hideA == 0))
{window.clearTimeout(Id);Id=0;}else{Id = window.setTimeout("movemenuA();",20);
}
if ((ypos <= 95 || ypos >= 116) && (hideA == 1) && (callfrom == 2)){
window.clearTimeout(Id);Id=0;hideA=0;callfrom=0;ypos=95;a=-1;movemenu2();
}
if ((ypos <= 95 || ypos >= 116) && (hideA == 1) && (callfrom == 3)){
window.clearTimeout(Id);Id=0;hideA=0;callfrom=0;ypos=95;a=-1;movemenu3();
}
}




function movemenu2(){

if (a==1){
hideA=1;callfrom=2;movemenu1();return true;
}

if (c==1){
hideC=1;callfrom=2;movemenu3();return true;
}

if (b==1){
b=-1;
}
else{
b=1;
}

if(document.layers){
document.contents2.top=document.services.top;document.contents2.visibility='visible';
}

if(document.all){
document.all.contents2.style.top=parseInt(document.all.services.style.top);document.all.contents2.style.visibility="visible";

}
if(!document.all && document.getElementById){
document.getElementById("contents2").style.top=parseInt(document.getElementById("services").style.top);
document.getElementById("contents2").style.visibility="visible";
}
if(!Id){movemenuB();
}
}

function movemenuB(){

if(ypos>116){ypos=116;}           
if(ypos<95){ypos=95;}
     
ypos=ypos+3*b;                
if(document.layers){
document.contents2.top=ypos;   
}
if(document.all){
document.all.contents2.style.top=ypos+"px";
}
if(!document.all && document.getElementById){
document.getElementById("contents2").style.top=ypos+"px";
}
if ((ypos <= 95 || ypos >= 116) && (hideB == 0))
{
window.clearTimeout(Id);Id=0;}else{Id = window.setTimeout("movemenuB();",20);
}
if ((ypos <= 95 || ypos >= 116) && (hideB == 1) && (callfrom == 1)){
window.clearTimeout(Id);Id=0;hideB=0;callfrom=0;ypos=95;b=-1;movemenu1();
}
if ((ypos <= 95 || ypos >= 116) && (hideB == 1) && (callfrom == 3)){
window.clearTimeout(Id);Id=0;hideB=0;callfrom=0;ypos=95;b=-1;movemenu3();
}
}



function movemenu3(){

if (a==1){
hideA=1;callfrom=3;movemenu1();return true;
}

if (b==1){
hideB=1;callfrom=3;movemenu2();return true;
}

if (c==1){
c=-1;
}
else{
c=1;
}
if(document.layers){
document.contents3.top=document.contact.top;document.contents3.visibility='visible';
}

if(document.all){
document.all.contents3.style.top=parseInt(document.all.contact.style.top);document.all.contents3.style.visibility="visible";
}
if(!document.all && document.getElementById){
document.getElementById("contents3").style.top=parseInt(document.getElementById("contact").style.top);
document.getElementById("contents3").style.visibility="visible";
}

if(!Id){movemenuC();
}
}

function movemenuC(){

if(ypos>116){ypos=116;}           
if(ypos<95){ypos=95;}       
ypos=ypos+3*c;                
if(document.layers){
document.contents3.top=ypos;   
}
if(document.all){
document.all.contents3.style.top=ypos+"px";
}
if(!document.all && document.getElementById){
document.getElementById("contents3").style.top=ypos+"px";
}
if ((ypos <= 95 || ypos >= 116) && (hideC == 0))
{window.clearTimeout(Id);Id=0;}else{Id = window.setTimeout("movemenuC();",20);
}
if ((ypos <= 95 || ypos >= 116) && (hideC == 1) && (callfrom == 1)){
window.clearTimeout(Id);Id=0;hideC=0;callfrom=0;ypos=95;c=-1;movemenu1();
}
if ((ypos <= 95 || ypos >= 116) && (hideC == 1) && (callfrom == 2)){
window.clearTimeout(Id);Id=0;hideC=0;callfrom=0;ypos=95;c=-1;movemenu2();
}
}

function retract(){

if(a == 1){window.clearTimeout(Id);Id=0;hideA=0;callfrom=0;ypos=116;movemenu1();}
if(b == 1){window.clearTimeout(Id);Id=0;hideB=0;callfrom=0;ypos=116;movemenu2();}
if(c == 1){window.clearTimeout(Id);Id=0;hideC=0;callfrom=0;ypos=116;movemenu3();}
}            

// -->
