// cross navigator functions

var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isDyn = (isDOM || isIE4 || isNS4);

function getTag(id) {
  if (isDOM) return document.getElementById(id);
  if (isIE4) return document.all[id];
  if (isNS4) return document.layers[id];
}

function getTagStyle(id) {
  return (isNS4 ? getTag(id) : getTag(id).style);
}

// roll over textes
function flipflap(position) {
  var txt01 = getTagStyle("text01");
  var txt02 = getTagStyle("text02");
  var txt03 = getTagStyle("text03");
  var txt04 = getTagStyle("text04");
  var txt05 = getTagStyle("text05");
  var txt06 = getTagStyle("text06");
  var txt07 = getTagStyle("text07");
  //var dark_pink = getColor ("#990066");
  //var light_pink = getColor ("#ECD0E3");
  //var dark_grey = getColor ("#333333");
  //var light_grey = getColor ("#cccccc");
  
  if (position == 7 && txt07.zIndex != 20) {
	change(txt07,txt06,txt02,txt03,txt04,txt05,txt01);
	return;
  }
  
  if (position == 6 && txt06.zIndex != 20) {
	change(txt06,txt07,txt02,txt03,txt04,txt05,txt01);
  }
  if (position == 5 && txt05.zIndex != 20) {
	change(txt05,txt02,txt03,txt04,txt01,txt06,txt07);
  }
  if (position == 4 && txt04.zIndex != 20) {
	change(txt04,txt02,txt03,txt01,txt05,txt06,txt07);
  }
  if (position == 3 && txt03.zIndex != 20) {
	change(txt03,txt02,txt01,txt04,txt05,txt06,txt07);
  }
  if (position == 2 && txt02.zIndex != 20) {
	change(txt02,txt01,txt03,txt04,txt05,txt06,txt07);
  }
  if (position == 1 && txt01.zIndex != 20) {
	change(txt01,txt02,txt03,txt04,txt05,txt06,txt07);
  }
  
}

function change(txt01,txt02,txt03,txt04,txt05,txt06,txt07) {
    txt01.zIndex = 20;
    txt02.zIndex = 10;
    txt03.zIndex = 10;
    txt04.zIndex = 10;
    txt05.zIndex = 10;
    txt06.zIndex = 10;
    txt07.zIndex = 10;
	txt01.color = "#333333";
    txt02.color = "#dddddd";
    txt03.color = "#dddddd";
    txt04.color = "#dddddd";
    txt05.color = "#dddddd";
    txt06.color = "#dddddd";
    txt07.color = "#dddddd";
}
//*************************************************************


