// write the footmenu
footmenuItems = new Array('news', 'resource', 'projects', 'competencies', 'contact', 'home');
function footmenu(menuArray) {
  var i = 0; while (i < menuArray.length) {
    document.write('<td align="left" valign="middle"><a id="footlink['+i+']" href="#" onClick="footaction(\''+menuArray[i]+'\');">'+menuArray[i]+'</a></td>');
    document.write('<td align="left" valign="middle"><img id="pipe['+i+']" src="images/pipe.gif" alt="pipe" width="31" height="30"></td>');
    setstyle('footlink['+i+']', [['fontSize', Math.round(13 / 1000 * layout[W]) + 'px']]);
    setstyle('pipe['+i+']', [
      ['width', Math.round(31 * scale)],
      ['height' , Math.round(30 * scale)]
    ]);
    i++;
  }
}
footmenu(footmenuItems);

//functions
function footaction(selection) {
  if(siteid == 'attivo') document.getElementById('headlogo').src = headimgs[0].src;
  if(siteid == 'bene') document.getElementById('headlogo').src = headimgs[1].src;
  document.getElementById('headcreativetesources').src = headimgs[2].src;
  setstyle('menucreativeresource', [['visibility', 'hidden']]);
  setstyle('menulogo', [['visibility', 'hidden']]);
  setstyle('menurocket', [['visibility', 'hidden']]);
  setstyle('menutext', [['visibility', 'hidden']]);
  setstyle('headrocket', [['visibility', 'visible']]);
  setstyle('theText', [
    ['fontSize', scalefontsize],
	['lineHeight', Math.round(25 * scale) + 'px'],
    ['textAlign', 'justify']
  ]);
  switch(selection) {
    case 'home':
	  menuabrollover = true;
      //siteid = '';
      groundingI = 0;
	  track.reverse();
	  setstyle('footmenu', [['visibility', 'hidden']]);
	  setstyle('menuabslash', [['visibility', 'visible']]);
	  setstyle('menuaba', [['visibility', 'visible']]);
	  setstyle('menuabb', [['visibility', 'visible']]);
	  setstyle('headrocket', [['visibility', 'visible']]);
	  //document.getElementById('headrocket').src = 'images/spacer.gif';
	  //document.getElementById('headlogo').src = 'images/spacer.gif';
      //document.getElementById('headcreativetesources').src = 'images/spacer.gif';
	break;
	case 'resource':
	  setstyle('menutext', [['visibility', 'visible']]);
	  if(siteid == 'attivo') {
	    document.getElementById('theText').innerHTML = 'Aleksandar Tatic and Cristiano Oliva founded Attivo Creative Resource  in 1998 in Milano / Italy. We are specialists in award-winning and best selling product development -from hi-end sporting products to capital goods.<br><br>bene design (Switzerland) joins the creative resource in 2004<br><br>(to visit bene creative resource press the "B" on lower right)';
	  }
	  else {
	    document.getElementById('theText').innerHTML = 'bene was founded in 1999 in Biel / Switzerland and is navigated by the two partners Heiko Stahl and Marc Frehner. We are specialists in transportation design, product development and CAD freeform modelling.<br><br>bene joins with attivo creative resource in 2004<br><br>(to visit attivo creative resource press the "A" on lower right)';
	  }
	break;
	case 'competencies':
	  setstyle('menutext', [['visibility', 'visible']]);
	  setstyle('theText', [['lineHeight', Math.round(40 * scale) + 'px']]);
	  document.getElementById('theText').innerHTML = 'Product design<br>Automotive design<br>Graphic design<br>Creative problem solving<br>Design engineering<br>Model making / prototyping<br>Industrialisation';
    break;
	case 'contact':
	  setstyle('menutext', [['visibility', 'visible']]);
	  if(siteid == 'attivo') {
	    document.getElementById('theText').innerHTML = 'attivo creative resource<br>via rutilia 10/8<br>20141 milano<br>italy<br><br>tel. +39.0254116645<br>fax. +39.0254120377<br>milano@attivocreative.com';
	  }
	  else {
	    document.getElementById('theText').innerHTML = 'bene creative resource<br>molzgasse 10<br>CH - 2502 biel / bienne<br>switzerland<br><br>tel. +41 (0)32 325 45 75<br>tel. +41 (0)32 325 45 79<br>fax. +41 (0)32 325 45 76<br>info@benecreative.com<br><br><br>webmaster:&nbsp;www.kili.ch';
	  }
	break;
	case 'projects':
	  setstyle('menutext', [['visibility', 'visible']]);
	  var HTMLstring = '';
	  var TRstring = '<tr><td valign="top" style="font-family: \'Square721 BdEx BT\'">';
	  HTMLstring += '<table id="projectstable" width="100%" border="0" cellspacing="0" cellpadding="0">';
	  if(siteid == 'attivo') {
	    HTMLstring += TRstring + 'adidas' + '</td><td>' + '03-04<br>packaging, various' + '<br><br><td>';
		HTMLstring += TRstring + 'alpinestars&nbsp;&nbsp;' + '</td><td>' + '99-00<br>motorcycle protective<br>equipment' + '<br><br><td>';
		HTMLstring += TRstring + 'baxi' + '</td><td>' + '99-04<br>home water-boilers' + '<br><br><td>';
		HTMLstring += TRstring + 'campingaz' + '</td><td>' + '00-01<br>gas-heaters' + '<br><br><td>';
		HTMLstring += TRstring + 'datalogic' + '</td><td>' + '99-03<br>bar-code readers' + '<br><br><td>';
		HTMLstring += TRstring + 'epson' + '</td><td>' + '03<br>consumer electronics' + '<br><br><td>';
		HTMLstring += TRstring + 'elesa' + '</td><td>' + '01-02<br>industrial handles' + '<br><br><td>';
		HTMLstring += TRstring + 'fila' + '</td><td>' + '99-00<br>in-line skates' + '<br><br><td>';
		HTMLstring += TRstring + 'fujitsu' + '</td><td>' + '02-03<br>mobile phones' + '<br><br><td>';
		HTMLstring += TRstring + 'gardena' + '</td><td>' + '01-04<br>irrigation products<br>gardening tools<br>water pumps<br>pruners and loppers' + '<br><br><td>';
		HTMLstring += TRstring + 'hitel' + '</td><td>' + '03-04<br>cordless phones' + '<br><br><td>';
		HTMLstring += TRstring + 'head' + '</td><td>' + '03<br>ski-boots' + '<br><br><td>';
		HTMLstring += TRstring + 'lego' + '</td><td>' + '00-01<br>clocks and watches' + '<br><br><td>';
		HTMLstring += TRstring + 'mandarina<br>duck' + '</td><td>' + '01-02<br>fashion accessories' + '<br><br><td>';
		HTMLstring += TRstring + 'motorola' + '</td><td>' + '00-01<br>mobile phone concepts' + '<br><br><td>';
		HTMLstring += TRstring + 'nordica' + '</td><td>' + '99-00<br>skis and bindings' + '<br><br><td>';
		HTMLstring += TRstring + 'panasonic' + '</td><td>' + '03<br>mobile phone concepts' + '<br><br><td>';
		HTMLstring += TRstring + 'rou-bill' + '</td><td>' + '00-04<br>writing instruments' + '<br><br><td>';
		HTMLstring += TRstring + 'razor' + '</td><td>' + '04<br>in-line skates' + '<br><br><td>';
		HTMLstring += TRstring + 'salomon' + '</td><td>' + '00-04<br>footwear innovation<br>snowboard boots<br>snowboard helmets<br>snowboard gear' + '<br><br><td>';
		HTMLstring += TRstring + 'salewa' + '</td><td>' + '00-03<br>backpacks and apparel<br>ice-tools<br>avalanche shovel<br>climbing helmet<br>tents' + '<br><br><td>';
		HTMLstring += TRstring + 'seac-sub' + '</td><td>' + '99-04<br>diving fins and suits<br>2.stage respirators<br>diving masks<br>equilibrator jackets<br>spear-guns' + '<br><br><td>';
		HTMLstring += TRstring + 'tetrapak' + '</td><td>' + '99-04<br>liquid food-packaging' + '<br><br><td>';
		HTMLstring += '</table>';
	    document.getElementById('theText').innerHTML = HTMLstring;
	  }
	  else {
	    HTMLstring += TRstring + 'attivo' + '</td><td>' + '03-04<br>various projects' + '<br><br><td>';
		HTMLstring += TRstring + 'creaholic' + '</td><td>' + '97-99<br>diving computer<br>bottle opener<br>watches' + '<br><br><td>';
		HTMLstring += TRstring + 'cree' + '</td><td>' + '99-04<br>zero emission vehicle<br>exterior, interior' + '<br><br><td>';
		HTMLstring += TRstring + 'ptc' + '</td><td>' + '98-00<br>Porsche CAD consultant' + '<br><br><td>';
		HTMLstring += TRstring + 'sis' + '</td><td>' + '00<br>microkeratome (medical)' + '<br><br><td>';
	    HTMLstring += '</table>';
		document.getElementById('theText').innerHTML = HTMLstring;
	  }
	  setstyle('projectstable', [['fontSize', scalefontsize]]);
	break;
	case 'news':
	  setstyle('menutext', [['visibility', 'visible']]);
	  if(siteid == 'attivo') {
	    document.getElementById('theText').innerHTML = '2004- Year of awards for the creative resource and our clients.<br><br>January 2004<br>The Attivo-designed Evvox promotional pen, wins the silver medal at the Promotional Gift Award 2004 to RouBill at the PSI-trade-fair in Cologne, Germany<br><a class="text" href="http://www.rou-bill.de" target="_blank">www.rou-bill.de</a><br><br>June 2004<br>Germany\'s prestigious RED-DOT design-award for has been awarded to two of our GARDENA-projects this year: The BP30/BP50 ProLine gardening pruners and the ProLine metal Irrigation guns have both been selected by the international jury.<br><a class="text" href="http://www.red-dot.de" target="_blank">www.red-dot.de</a><br><br>August 2004<br>On this year\'s GAFA-trade-fair in Cologne, Germany, the GARDENA T1030 Water-Timer has been voted &quot;Most Innovative Product&quot;, by the GAFA-2004 Innovationsforum, for its revolutionary handling and design.<br><a class="text" href="http://www.gafa-koeln.de" target="_blank">www.gafa-koeln.de</a><br><br>September 2004<br>The design for the Datalogic Gryphon barcode reader has been included in this year\'s ADI-Design Index, the selection of the Compasso d\'Oro, Italia\'s historical design distincion.<br><a class="text" href="http://www.adi-design.org/cdo/cdo.html" target="_blank">www.adi-design.org/cdo/cdo.html</a><br><br>March 2005<br>Attivo and Bene are going to exhibit at the ISPO China 2005 in Shanghai (14. - 17. March 2005)';
	  }
	  else {
	    document.getElementById('theText').innerHTML = '2004<br>bene joins attivo creative resource<br><br>January 2005<br><img src="images/iFpda.gif" alt="iFpda" width="70" height="70"><br>bene creative and sis ltd. receive the &quot;iF product design awards 2005&quot; in the &quot;medical&quot; caterory<br><br>March 2005<br>Attivo and Bene are going to exhibit at the ISPO China 2005 in Shanghai (14. - 17. March 2005)<br><br>';
	  }
	break;
  }
}