function __gd_menu__()
{
  var gandins = [
    { 'name' : 'gandaia', 'href' : 'http://www.gandaia.biz', 'matchPattern' : /http(s)?:\/\/(www\.)?gandaia\.biz(\/)?(index\.html)?$/ },
    { 'name' : 'aska', 'href' : 'http://www.gandaia.biz/aska', 'matchPattern' : /http(s)?:\/\/(www\.)?gandaia\.biz\/aska/ },
    { 'name' : 'manka-te tainha', 'href' : 'http://www.mankatetainha.com', 'matchPattern' : /http:\/\/www.mankatetainha.com/ },
    
    { 'name' : 'buga', 'href' : 'http://bugapt.com', 'matchPattern' : /http:\/\/(www\.)?bugapt\.com/ },
    { 'name' : 'alma skateboards', 'href' : 'http://www.almaskateboards.eu', 'matchPattern' : /http:\/\/(www\.)?almaskateboards\.eu/ },
    { 'name' : 'toskaia', 'href' : 'http://www.toskaia.com', 'matchPattern' : /http:\/\/(www\.)?toskaia\.com/ },
    { 'name' : 'surge', 'href' : 'http://www.surgeskateboard.com', 'matchPattern' : /http:\/\/(www\.)?surgeskateboard\.com/ },
    { 'name' : 'dealer records', 'href' : 'http://www.facebook.com/pages/Almada-Portugal/Dealer-Records/128530590496460', 'matchPattern' : /Dealer\-Records/ },
    { 'name' : '2800', 'href' : 'http://doismileoitocentos.blogspot.com', 'matchPattern' : /http:\/\/doismileoitocentos.blogspot.com/ },
    { 'name' : 'at&eacute; dava uma t&aacute;bua', 'href' : 'http://atedavaumatabua.blogspot.com', 'matchPattern' : /http:\/\/atedavaumatabua\.blogspot\.com/ },
    { 'name' : 'iberian records', 'href' : 'http://www.myspace.com/iberianrecords', 'matchPattern' : /http:\/\/www\.myspace\.com\/iberianrecords/ },
    { 'name' : 'unidade gr&aacute;fica', 'href' : 'http://unidadegrafica.com', 'matchPattern' : /http:\/\/(www\.)?unidadegrafica\.com/ },
    { 'name' : 'i love patinar', 'href' : 'http://vimeo.com/user2996472', 'matchPattern' : /http:\/\/vimeo\.com\/user2996472/ },
    { 'name' : 'conspira', 'href' : 'http://conspira.net', 'matchPattern' : /http:\/\/(www\.)?conspira\.net/ },
    { 'name' : 'gandaia shopping', 'href' : 'http://shopping.gandaia.biz', 'matchPattern' : /(http(s)?:\/\/shopping\.gandaia\.biz|gandaia\.biz\/shopping)/ },
  ]
  var url = document.URL;
  var menuElemOpac = document.createElement('div');
  menuElemOpac.id = '__gd_menu_1__';
  elemOpacStyle = 'position: absolute; left: 0px; top: 15px; margin: 0px; width: 130px; font-size: 10px; line-height: 10px; background-color: #000; opacity: .4; filter: alpha(opacity=40); overflow: hidden;';
  menuElemOpac.setAttribute('style', elemOpacStyle);
  //menuElemOpac.setAttribute('style', elemOpacStyle+' height: 34px;');
  var menuElem = document.createElement('div');
  var closedHeight = '34px';
  menuElem.id = '__gd_menu_2__';
  menuElem.setAttribute('style', 'position: absolute; left: 0px; top: 15px; margin: 0px; width: 130px; height: 34px; font-size: 10px; line-height: 10px; background-color: transparent; overflow: hidden;');
  linksHTML = '<img width="120" height="24" style="position: relative; left: 5px; top: 5px; margin: 0px 0px 10px 0px; padding: 0px; cursor: pointer;" src="http://www.gandaia.biz/img/logo_topo_bizness_120.png" onclick="(document.getElementById(\'__gd_menu_1__\').style.height == document.getElementById(\'__gd_menu_1__\').getAttribute(\'closedHeight\')) ? document.getElementById(\'__gd_menu_1__\').setAttribute(\'currentHeight\', document.getElementById(\'__gd_menu_1__\').getAttribute(\'fullHeight\')) : document.getElementById(\'__gd_menu_1__\').setAttribute(\'currentHeight\', document.getElementById(\'__gd_menu_1__\').getAttribute(\'closedHeight\')); document.getElementById(\'__gd_menu_1__\').style.height = document.getElementById(\'__gd_menu_1__\').getAttribute(\'currentHeight\'); document.getElementById(\'__gd_menu_2__\').style.height = document.getElementById(\'__gd_menu_1__\').getAttribute(\'currentHeight\');">';
  var divHeight = 34+10+10;
  for (i in gandins) {
    divHeight += 16;
    var color = '#ccc';
    if (url.match(gandins[i].matchPattern)) { color = '#fff'; }
    linksHTML += '<span style="background-color: transparent; opacity: 1; position: relative; left: 5px; margin: 0px; padding: 0px;"><a style="margin: 0px; padding: 0px; text-decoration: none; font-family: helvetica; font-size: 9px; line-height: 16px; opacity: 1; letter-spacing: 1px; color: '+color+'" target="_blank" href="'+gandins[i].href+'">'+gandins[i].name+'</a></span><br>'
  }
  linksHTML += '<span style="background-color: transparent; opacity: 1; margin: 0px; padding: 0px;"><a style="margin: 0px; padding: 0px; text-decoration: none; font-family: helvetica; font-size: 9px; line-height: 16px; opacity: 1; letter-spacing: 1px; color: #ccc; float: right;" href="javascript:document.body.removeChild(document.getElementById(\'__gd_menu_2__\'));document.body.removeChild(document.getElementById(\'__gd_menu_1__\'));">x&nbsp;</a>';
  var fullHeight = divHeight+'px';
  var currentHeight = fullHeight;
  menuElemOpac.setAttribute('currentHeight', currentHeight);
  menuElemOpac.setAttribute('closedHeight', closedHeight);
  menuElemOpac.setAttribute('fullHeight', fullHeight);
  menuElemOpac.style.height = closedHeight;
  menuElem.style.height = closedHeight;;
  menuElem.innerHTML = linksHTML;
  document.body.insertBefore(menuElemOpac);
  document.body.insertBefore(menuElem);
};
__gd_menu__();

