var s=20;
var minheight=0;

function shoppingcat(){
  var content=document.getElementById("content");
  var key = document.getElementById("key");
  var tit = document.getElementById("tit");
  var t=content.style;
  var maxheight=120;
  if(t.height==""||t.height==0)
    t.height=minheight;
  var h=parseInt(t.height);
  if(key.innerHTML=="Exhibition Profile"){
    h+=s;
    t.height=h+"px";
    if(h<maxheight){
      setTimeout("shoppingcat();",0);
    }else{
	
	document.getElementById("S0").style.backgroundImage="url(/images/index_14_1.gif)";
	document.getElementById("S0").style.backgroundPosition="left";
	document.getElementById("S0").style.backgroundRepeat="no-repeat";
    key.innerHTML="Exhibition Profile ";
    }
  }else{
    h-=s;
    t.height=h+"px";
    if(h>minheight){
      setTimeout("shoppingcat();",1);
    }else{
		document.getElementById("S0").style.backgroundImage="";
      key.innerHTML="Exhibition Profile";
    }
  }  
}

function shoppingcat1(){
  var content1=document.getElementById("content1");
  var key1 = document.getElementById("key1");
  var t1=content1.style;
  var maxheight=145;
  
  if(t1.height==""||t1.height==0)
    t1.height=minheight;
  var h1=parseInt(t1.height);
  if(key1.innerHTML=="Visitor Service"){
    h1+=s;
    t1.height=h1+"px";
    if(h1<maxheight){
      setTimeout("shoppingcat1();",0);
    }else{
      key1.innerHTML="Visitor Service ";
	  document.getElementById("S1").style.backgroundImage="url(/images/index_14_1.gif)";
	  document.getElementById("S1").style.backgroundPosition="left";
	  document.getElementById("S1").style.backgroundRepeat="no-repeat";
    }
  }else{
	  document.getElementById("S1").style.backgroundImage="";
    h1-=s;
    t1.height=h1+"px";
    if(h1>minheight){
      setTimeout("shoppingcat1();",1);
    }else{
      key1.innerHTML="Visitor Service";
    }
  }
}


function shoppingcat2(){
  var content2=document.getElementById("content2");
  var key2 = document.getElementById("key2");
  var t2=content2.style;
  var maxheight=161;
  if(t2.height==""||t2.height==0)
    t2.height=minheight;
  var h2=parseInt(t2.height);
  if(key2.innerHTML=="Exhibitor Service"){
    h2+=s;
    t2.height=h2+"px";
    if(h2<maxheight){
      setTimeout("shoppingcat2();",0);
    }else{
      key2.innerHTML="Exhibitor Service ";
	  document.getElementById("S2").style.backgroundImage="url(/images/index_14_1.gif)";
	  document.getElementById("S2").style.backgroundPosition="left";
	  document.getElementById("S2").style.backgroundRepeat="no-repeat";
    }
  }else{
	  document.getElementById("S2").style.backgroundImage="";
    h2-=s;
    t2.height=h2+"px";
    if(h2>minheight){
      setTimeout("shoppingcat2();",1);
    }else{
      key2.innerHTML="Exhibitor Service";
    }
  }
}



function shoppingcat3(){
  var content3=document.getElementById("content3");
  var key3 = document.getElementById("key3");
  var t3=content3.style;
  var maxheight=120;
  if(t3.height==""||t3.height==0)
    t3.height=minheight;
  var h3=parseInt(t3.height);
  if(key3.innerHTML=="Press Service"){
    h3+=s;
    t3.height=h3+"px";
    if(h3<maxheight){
      setTimeout("shoppingcat3();",0);
    }else{
		document.getElementById("S3").style.backgroundImage="url(/images/index_14_1.gif)";
	  document.getElementById("S3").style.backgroundPosition="left";
	  document.getElementById("S3").style.backgroundRepeat="no-repeat";
      key3.innerHTML="Press Service ";
    }
  }else{
	  document.getElementById("S3").style.backgroundImage="";
    h3-=s;
    t3.height=h3+"px";
    if(h3>minheight){
      setTimeout("shoppingcat3();",1);
    }else{
      key3.innerHTML="Press Service";
    }
  }
}


function kai(m){
if (m==1){
	document.getElementById("content").style.height='100';
	}
}
