// ActionScript Communications Document
var colorRowOn, rowColor, actualItem, pressedMenuButton;
var mcolors=new Array ();
var menuOn='#888888';
var menuOff='#444444';
var menuWidth='80px';
var firstButton='menu_welc';

function initMenu(){
      pressedMenuButton=firstButton;
      document.getElementById(pressedMenuButton).bgColor=menuOn;      
      document.getElementById(pressedMenuButton).style.height='50px';
}

function switch_iframe(url){
	document.getElementById("cont").src=url;
//	window.frames['cont'].src=url;
}

function markRow(prefix,id,color){
  if (color) rowColor=color;
      else rowColor=colorRowOn;
  rid=prefix+id;
  if (document.getElementById(rid)) document.getElementById(rid).bgColor=rowColor;
  mscolors=rowColor;
  actualItem=id;
}

function blowup(id,clr){
//document.getElementById("test").innerHTML=menuOn+","+document.getElementById(id).bgColor;   
      mcolors[id]=document.getElementById(id).bgColor;
      if (document.getElementById(id).bgColor!=menuOn.toLowerCase()){
        document.getElementById(pressedMenuButton).style.height='30px';
        document.getElementById(id).style.height='50px';
        document.getElementById(id).bgColor=clr;
      }
}

function blowdn(id){
      document.getElementById(pressedMenuButton).style.height='50px';
      if (id!=pressedMenuButton){
          document.getElementById(id).style.height='30px';
          document.getElementById(id).bgColor=mcolors[id];
      }
}

function clickIt(id,url){
          document.getElementById(id).bgColor=menuOn;
          mcolors[id]=document.getElementById(id).bgColor;
          document.getElementById(pressedMenuButton).bgColor=menuOff; 
          document.getElementById(pressedMenuButton).style.height='30px';
          pressedMenuButton=id;
          switch_iframe(url);
}

