// BIKES RIGHT NAV

var myMenu;
	window.onload = function() {
		myMenu = new SDMenu("my_menu");
    myMenu.speed = 5;                     // Menu sliding speed (1 - 5 recomended)
    myMenu.remember = false;               // Store menu states (expanded or collapsed) in cookie and restore later
    myMenu.oneSmOnly = true;             // One expanded submenu at a time
    myMenu.markCurrent = true;            // Mark current link / page (link.href == location.href)
		myMenu.init();
	};
  
  
var tableopen = "<table width=180 border=0 cellspacing=0 cellpadding=0><tr><td class=expanded>";
var tableclose = "</td></tr></table>";

var catopen = "<table width=180 border=0 cellspacing=0 cellpadding=0><tr><td class=cat>";
var catclose = "</td></tr></table>";


// WHERE AM I? Look for URL to determine which section you're in.

// Cannondale Factory Racing
  cat=0;
  
// Shonan Bellmare
if (location.href.indexOf("bellmare") != -1 || location.href.indexOf("/bellmare") != -1) {
  cat=1;
}

document.write("<img src=\"/js/09/sdmenu/topRacing.gif\" height=24 width=180>");

document.write("<div style=\"float: left\" id=\"my_menu\" class=\"sdmenu\">");

// document.write(cat); /*FOR TESTING*/


/************************** Cannondale Factory **************************/     
if (cat == 0){  
document.write("<div>");
 } else {
  document.write("<div class=collapsed>");
  } 
      
      document.write("<span style=\"font-size:11px\">C-Dale Factory Racing</span>");

        //document.write(catopen+"Join The Good Fight"+catclose);

        document.write("<a href=\"/racing/factory.html\" style=\"font-size:11px\"><strong>選手・スタッフ紹介</strong></a>");
        document.write("<a href=\"/racing/factory/index.html\" style=\"font-size:11px\"><strong>シーズンレポート</strong></a>");
        
            
        document.write("</div>");

/************************** Cannondale Factory **************************/     
if (cat == 1){  
document.write("<div>");
 } else {
  document.write("<div class=collapsed>");
  }

      
      document.write("<span>Shonan Bellmare</span>");

        //document.write(catopen+"Join The Good Fight"+catclose);

        document.write("<a href=\"/racing/bellmare.html\" style=\"font-size:11px\"><strong>選手・スタッフ紹介</strong></a>");
        document.write("<a href=\"/racing/bellmare/index.html\" style=\"font-size:11px\"><strong>シーズンレポート</strong></a>");
        
            
        document.write("</div>");
      
    document.write("</div>");
    
    


      
