/*document.bgColor="#FAFAFA" F0FFFF 99CCCC*/
document.bgColor="silver"
//Drop Menu Function
 function formHandler(form){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
if (URL == "") {
alert("That's not a web page!")
}
else {
parent.location.href = URL;
}
}

//Header Script   
    function header() {
		document.write("<table border='0' width='700' id='table1' align='center' style='border-collapse: collapse' bgcolor='white'><tr><td>")
		document.write("<table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' align='center' bordercolor='#111111' width='728' id='Table' name=Table' height='71'>")
		document.write("<tr><td width='100%' bgcolor='#FFFFFF' height='42'>")
		document.write("<a href='index.html'><img alt='StarBright Logo' src='images/header.gif' border='0'></a> </i></font>")
	 // document.write("<font face='Papyrus' size='2'><i><b>Nurturing Growth, Building Character</b></i></font><br>")
	  //document.write("<font face='Arial' size='1'>1056-B Serpentine Lane, Pleasanton, CA 94566 <a href='mailto:info@wcoga.com'>info@wcoga.com</a><br>")
	//  document.write("Phone: (925) 846-1010 | Fax: (925) 846-1010 | ")
	 //document.write("<a target='new' href='http://maps.yahoo.com/maps_result?ed=Ztg7Bup_0To0GGfWMIUvbLrMjgcebj8Y9YW9tLs-&csz=Pleasanton%2C+CA+94566&country=us'>Get Map<hr></a></font><font face='Verdana' size='1'>GYMNASTICS - CHEERLEADING - TUMBLING - DANCE</font></td></table>")

}
//Body Size
	function bodysize() {
		document.write("<table align='center' border='0' width='728' id='table1'>")
	}


//Bottom Links
function bottomlinks() {
	
		document.write("<table align='center' border='0' width='728' bgcolor='#A6A6A6'><tr><td><center><font face='Verdana' size='1'>")
	document.write("<a href='webdesign/index.html'><span style='text-decoration: none'> Web Design</a> |")
	document.write("<a href='webdesign/webhosting.html'><span style='text-decoration: none'> Web Hosting</a> |")
	document.write("<a href='templates/index.html'><span style='text-decoration: none'> Templates</a> |")
	document.write("<a href='graphics/index.html'><span style='text-decoration: none'> Graphics/Publishing</a> |")
	document.write("<a href='aboutus/index.html'><span style='text-decoration: none'> About Us</a> |")
	document.write("<a href='contactus.html'><span style='text-decoration: none'> Contact Us</a>")
	document.write("</center></font></span></td></tr></table>")
}
//Display current date in footer

function showYear() {
var mydate= new Date()
var theyear=mydate.getFullYear()

document.write(theyear)
}
//Footer Script
function footer() {
	document.write("<div align='center'><table border='0' width='728' bgcolor='gray'><tr><td>")
      document.write("<center><font face='helvetica,arial' color='#000000' size='2'><small>Copyright © 2006-<script>showYear()</script> StarBright Advantage.  All rights reserved.<br>")
           document.write("<a href='mailto:info@starbrightadvantage.com'>info@starbrightadvantage.com</a><br>")
		document.write(" <a href='privacypolicy.html'>Privacy Policy</a>") 
          document.write(" | <a href='termsofuse.html'>Terms of Use</a> |") 
           document.write(" <a href='mailto:starbrightadvantage@gmail.com'>Contact Webmaster</a> </small></font></center>")
		   document.write("</tr></table></div>")
		 
		
}

//Menu Navigation
		
		var Menu = new Array ()
var subMenu = new Array ()



   Menu[0] = new Array("<p align='center'> Website Design ", "webdesign/index.html","_top")
     subMenu[0] = new Array()    
	 
	 subMenu[0][0] = new Array ("Overview ", "webdesign/index.html", "_top")

  subMenu[0][1] = new Array (" Creation ", "webdesign/creation.html", "_top")

  subMenu[0][2] = new Array (" Web Hosting ", "webdesign/webhosting.html", "_top")
  
     subMenu[0][3] = new Array (" Redesign ", "webdesign/redesign.html", "_top")

     subMenu[0][4] = new Array (" Enhancement ", "webdesign/enhance.html", "_top")
	 
	 subMenu[0][5] = new Array (" Maintenance ", "webdesign/maintain.html", "_top") 	 
	  
	  subMenu[0][6] = new Array (" E-Commerce ", "webdesign/ecommerce.html", "_top") 
	  
	   subMenu[0][7] = new Array (" Search Engines ", "webdesign/seo.html", "_top") 
	   
	   subMenu[0][8] = new Array (" Portfolio", "webdesign/portfolio.html", "_top")
	
	Menu[1] = new Array("<p align='center'> Web Hosting ", "webdesign/webhosting.html","_top") 
     subMenu[1] = new Array()
	 /*
	    subMenu[1][0] = new Array (" Overview ", "specialty/index.html", "_top")
	  	 
		 subMenu[1][1] = new Array (" Birthday Parties ", "https://host391.ipowerweb.com/~wcogacom/specialty/bday.html", "_top")
		 
		 subMenu[1][2] = new Array (" Summer Camp ", "specialty/summercamp.html", "_top")
		 
		  subMenu[1][3] = new Array (" Pro Shop ", "../specialty/proshop.html", "_top")
		*/
		
	Menu[2] = new Array("<p align='center'> Templates ", "templates/index.html","_top") 
     subMenu[2] = new Array()
	
	    subMenu[2][0] = new Array (" Order ", "templates/index.html", "_top")
	  	 
		 subMenu[2][1] = new Array (" Support ", "templates/support.html", "_top")
		 
		subMenu[2][2] = new Array (" Free Clip Art ", "templates/clipart.html", "_top")
		 
		   subMenu[2][3] = new Array (" Affiliates ", "templates/affiliates.html", "_top")
		
		
   Menu[3] = new Array("<p align='center'> Logo Design ", "graphics/logodesign.html","_top") 
     subMenu[3] = new Array()
	
	//subMenu[3][0] = new Array (" Overview ", "graphics/index.html", "_top")
	
	//subMenu[3][1] = new Array (" Logo Design ", "graphics/logodesign.html", "_top")

	// subMenu[3][2] = new Array (" Banners ", "graphics/banners.html", "_top")
	
	 //subMenu[3][3] = new Array (" Newsletters ", "graphics/newsletters.html", "_top")
	 
	 // subMenu[3][4] = new Array (" Brochures ", "graphics/brochures.html", "_top")
	  
	   //subMenu[3][5] = new Array (" Forms ", "graphics/forms.html", "_top")
	
	/**/
  /* Menu[4] = new Array("<p align='center'> Essay Correction ", "tutoring/index.html","_top")

     subMenu[4] = new Array()
	
     subMenu[3][0] = new Array (" Overview ", "policies/index.html", "_top")
	 subMenu[3][1] = new Array (" FAQs ", "policies/faqs.html", "_top")
	 subMenu[3][2] = new Array (" Pay Tuition Online ", "policies/payment.html", "_top")
	   */
  Menu[4] = new Array("<p align='center'> About Us ", "aboutus/index.html","_top")

     subMenu[4] = new Array()
	
     subMenu[4][0] = new Array (" FAQs ", "aboutus/faqs.html", "_top")
	 
	 /* subMenu[4][1] = new Array (" Location ", "aboutus/location.html", "_top")

     subMenu[4][2] = new Array (" Our Facility  ", "aboutus/facility.html", "_top")

     subMenu[4][3] = new Array (" Our Staff ", "aboutus/staff.html", "_top") 
	 
	  subMenu[4][4] = new Array (" Contact Us ", "aboutus/contact.html", "_top") 
	 */
 Menu[5] = new Array("<p align='center'> Contact Us ", "contactus.html","_top")

    subMenu[5] = new Array()
	 
	

orientation = "horizontal"                 
cellPadding = 5
//1
cellBorder = 1                          
verticalOffset = 30                    
horizontalOffset = 0                  
//93
subMenuDelay = .5                           


borderColor = "silver"                  
//#A6A6A6
menuBackground = "grey"              
//
menuHoverBackground = "white"        
//#00005A
fontFace = "Verdana"                         

fontColour = "navy"                    
//
fontHoverColour = "navy"              
//
fontSize = "9pt"                          

fontDecoration = "none"                   

fontWeight = "bold"                    



sborderColor = "silver"               

smenuBackground = "white"                 
//#FFFCCC
smenuHoverBackground = "grey"          

sfontFace = "Verdana"                        

sfontColour = "#000080"              

sfontHoverColour = "navy"              

sfontSize = "9pt"                          

sfontDecoration = "none"                   

sfontWeight = "none"                      

// Browser Sniffer
var isIE = (document.getElementById && document.all)?true:false;
var isNS4 = (document.layers)?true:false;
var isNS6 = (document.getElementById && !document.all)?true:false;

var timer
var obj = (isIE)?"document.all":"document.getElementById"

// Default horizontal and vertical offsets
if (verticalOffset == 0 || verticalOffset == "") 
{
  verticalOffset = (orientation=="horizontal")?20:5
}

if (horizontalOffset == 0 || horizontalOffset == "") 
{
  horizontalOffset = (orientation=="horizontal")?-1:70
}

// Menu Styles
document.writeln ('<style>');
document.writeln ('.rcMenuStatic {font-family:'+fontFace+';font-size:'+fontSize+';color:'+fontColour+';font-weight:'+fontWeight+';background-color:'+menuBackground+'; cursor:hand; text-decoration:'+fontDecoration+'}');
document.writeln ('.rcMenuHover  {font-family:'+fontFace+';font-size:'+fontSize+';color:'+fontHoverColour+';font-weight:'+fontWeight+';background-color:'+menuHoverBackground+'; cursor:hand; text-decoration:'+fontDecoration+'}');
document.writeln ('.rcSubMenuStatic {font-family:'+sfontFace+';font-size:'+sfontSize+';color:'+sfontColour+';font-weight:'+sfontWeight+';text-decoration:'+sfontDecoration+';background-color:'+smenuBackground+'; cursor:hand}');
document.writeln ('.rcSubMenuHover  {font-family:'+sfontFace+';font-size:'+sfontSize+';color:'+sfontHoverColour+';font-weight:'+sfontWeight+';text-decoration:'+sfontDecoration+';background-color:'+smenuHoverBackground+'; cursor:hand}');
document.writeln ('</style>');

// Build and show the main menu items
function showMenus()
{
	//modifies the table in which the menu bar is in
	document.write("</tr><tr><td bgcolor='silver' height='29' align='left'><p align='center'>")
	
	//added here end
	
  if (orientation == "vertical")
  {
    document.writeln ('<table border="0" cellpadding="0" cellspacing="'+cellBorder+'" bgColor="'+borderColor+'">')
  }
  else
  {
    document.writeln ('<table border="0" cellpadding="0" cellspacing="'+cellBorder+'" bgColor="'+borderColor+'"><tr>')
  }  
  for (x=0; x<Menu.length; x++)
  {
    if (orientation=="vertical") document.writeln('<tr>')
    document.writeln ('<td onclick="tdMouseClick(\'mainLink'+x+'\')" onMouseOver="hoverMenu(); popDown('+x+', \'button'+x+'\'); " onMouseOut="clearMenu('+x+')" ><div id="button'+x+'"><table border="0" cellpadding="'+cellPadding+'" cellspacing="0" width="100%"><tr><td class="rcMenuStatic" id="cell'+x+'" nowrap>');
    document.writeln ('<a id="mainLink'+x+'" href="'+Menu[x][1]+'" target="'+Menu[x][2]+'" class="rcMenuStatic">'+Menu[x][0]+'</a></td>');
    document.writeln ('</tr></table></div></td>');    
    if (orientation=="vertical") document.writeln('</tr>')
  }
  if (orientation == "vertical")
  {
    document.writeln ('</table>');
  }
  else
  {
      document.writeln ('</tr></table>');
  }   
//close of table
	document.write("</tr></table>")

}  

// Build the sub menu items
  for (x=0; x<Menu.length; x++)
  { 
    if (subMenu[x].length > 0)
    {     
      document.writeln ('<div id="MENU'+x+'" style="visibility:hidden; position:absolute; z-index:2" >');
      document.writeln ('<table border="0" cellpadding="'+cellPadding+'" cellspacing="'+cellBorder+'" bgColor="'+sborderColor+'">');
      for (y=0; y<subMenu[x].length; y++)
      {
        document.writeln ('<tr><td id="subMenu'+x+y+'" class="rcSubMenuStatic" onMouseOver="hoverMenu(); highlightMenu(\'sub\','+x+','+y+')" onMouseOut="clearMenu('+x+');" onclick="tdMouseClick(\'subLink'+x+y+'\')" nowrap><a id="subLink'+x+y+'" href="'+subMenu[x][y][1]+'" target="'+subMenu[x][y][2]+'" class="rcSubMenuStatic">'+subMenu[x][y][0]+'</a></td></tr>');
      }
      document.writeln ('</table></div>');
    }
  }
 
// Change colour or menu and submenu items when the mouse hovers over.  
function highlightMenu(element,mainMenu,dropMenu,state)
{
  state=(state == "hover")?"rcMenuHover":"rcMenuStatic"
  if (element == "sub")
  {
    for (x=0; x < subMenu[mainMenu].length; x++)
    {
      eval(obj+'("subMenu'+mainMenu+x+'").className = "rcSubMenuStatic"')
      eval(obj+'("subLink'+mainMenu+x+'").className = "rcSubMenuStatic"')
    }   
    eval(obj+'("subMenu'+mainMenu+dropMenu+'").className="rcSubMenuHover"')
    eval(obj+'("subLink'+mainMenu+dropMenu+'").className="rcSubMenuHover"')
  }
  else
  {
    eval(obj+'("cell'+mainMenu+'").className = "'+state+'"')
    eval(obj+'("mainLink'+mainMenu+'").className = "'+state+'"')
  }
}

// Find positioning for sub menus
function getOffset(obj, dim) 
{
  if(dim=="left") 
  {
    oLeft = obj.offsetLeft;      
    while(obj.offsetParent!=null) 
    {   
      oParent = obj.offsetParent    
      oLeft += oParent.offsetLeft 
      obj = oParent 	
    }
    return oLeft;
  }
  else if(dim=="top")
  {
    oTop = obj.offsetTop;
    while(obj.offsetParent!=null) 
    {
      oParent = obj.offsetParent
      oTop += oParent.offsetTop
      obj = oParent 	
    }
    return oTop
  }
  else
  {
    alert("Error: invalid offset dimension '" + dim + "' in getOffset()")
    return false;
  }
}

// Show sub menus
function popDown(param, id)
{
  var menu;
  var button;

  if (id)
  {    
    getOffset(eval(obj+'(id)'),'left');
    getOffset(eval(obj+'(id)'),'top');
  }  
  n = 0;    
  while (n < Menu.length)
  {      
    
    //button = eval(obj+'("cell'+n+'")')
    menu = "MENU"+n
    if (param == n)
    {
        if (eval(obj+'(menu)'))
        {
          eval(obj+'(menu).style.visibility = "visible"')
          eval(obj+'(menu).style.left = oLeft + horizontalOffset;')
          eval(obj+'(menu).style.top = oTop + verticalOffset;')
        }
         highlightMenu('main',n,'','hover')
         if (subMenu[param].length > 0)
         {
           for (x=0; x<subMenu[param].length; x++)
           {
             eval (obj+'("subMenu'+param+x+'").className = "rcSubMenuStatic"')
             eval (obj+'("subLink'+param+x+'").className = "rcSubMenuStatic"')         
           }
         }
      }
      else 
      {          
        if (eval(obj+'(menu)'))
        {
          eval(obj+'(menu).style.visibility = "hidden"')            
        }
        highlightMenu ('main',n,'','static')

      }
    n++
  }  
}

// Re-set timer for sub menus
function hoverMenu()
{
  if(timer)
  clearTimeout(timer)
}

// Set timer for sub menus
function clearMenu(menu)
{
  setDelay = subMenuDelay*1000
  delay = (subMenu[menu].length > 0)?setDelay:1
  
  timer = setTimeout("popDown("+(Menu.length + 1)+")",delay)
}

// when you click the box, perform the same function as if the user had clicked the hyperlink
function tdMouseClick(theElement)
{
  eval(obj+'(theElement).click()')
}

