<!--

document.write('<a name="top"></a>');
document.write('<!-- Menu -->');
document.write('<table width="1024px" cellpadding="0" cellspacing="0" border=0>');
document.write('<tr>');
document.write('<td width="100%" height="100px">');
document.write('<img src="images/topBanner.jpg" width="1024px" height="100px"></img>');
document.write('</td>');		
document.write('</tr>');

//scrolling news area
/*document.write('<tr>');
document.write('<td width="100%" height="28px">');		
document.write('<table class="menuOption" align="center" width="100%" height="100%" cellpadding="0" bgcolor="#FFFFFF" cellspacing="0" border=0>');
document.write('<tr>');
document.write('<td width="100%">');

//document.write('<span id="hiddenTicker" style="position:absolute;left:-10000px;visibility:hidden"></span>');
document.write('<div id="marqueeContainer" style="position:relative;width:1024px;height:23px;z-index:20;overflow:hidden">');
document.write('<div id="marquee" style="position:absolute;left:-50000px;top:8px;z-index:1">');
document.write('</div>');
document.write('</div>');

document.write('</td>');
document.write('</tr>');
document.write('</table>');
document.write('</td>');
document.write('</tr>');
*/

//menu options
document.write('<tr>');
document.write('<td width="100%" align="center" height="28px" class="mainMenuTD">');
document.write('<table class="menuOption" align="center" width="100%" cellpadding="0" cellspacing="0" border=1>');
document.write('<tr>');

document.write('<td align="center" class="menuOption">');
document.write('<a id="link1" href="index.htm" class="Mainmenu">&nbsp;HOME&nbsp;</a>');
document.write('</td>');
document.write('<td align="center" class="menuOption">');
document.write('<a id="link2" href="bio.htm" class="Mainmenu">&nbsp;BIOGRAPHY&nbsp;</a>');
document.write('</td>');					
document.write('<td align="center" class="menuOption">');
document.write('<a id="link3" href="publishedwork.php" class="Mainmenu">&nbsp;PUBLISHED WORK&nbsp;</a>');
document.write('</td>');											
document.write('<td align="center" class="menuOption">');
document.write('<a id="link4" href="onlinework.php" class="Mainmenu">&nbsp;ONLINE WORK&nbsp;</a>');
document.write('</td>');											
//document.write('<td align="center" class="menuOption">');
//document.write('<!--<a id="link_shop" href="shop.htm" class="Mainmenu">-->ARTICLES ONLINE<!--</a>-->');
//document.write('</td>');
document.write('<td align="center" class="menuOption">');
document.write('<a id="link5" href="photos.php" class="Mainmenu">&nbsp;PHOTOS&nbsp;</a>');
document.write('</td>');											
document.write('<td align="center" class="menuOption" style="border-right:0px">');
document.write('<a id="link_contact" href="contact.htm" class="Mainmenu">&nbsp;CONTACT </a>');
document.write('</td>');

document.write('</tr>');
document.write('</table>');
document.write('</td>');
document.write('</tr>');		
document.write('</table>');

var firstLoad = true;

//function to scroll the marquee news text
function scrollMarquee()
{
    var objMarquee = findObj("marquee");
    //var hiddenTicker = findObj("hiddenTicker");
    var messages = new Array(/*'<a class="ticker" href="shop.htm">Looking for good quality affordable dance shoes??? Click here</a>'*/
                            );
            
    if (objMarquee)
    {
        
        if (firstLoad)
        {
            var divContent = "";
            
            for (var i=0; i<messages.length; i++)
            {
                divContent += '<font style="color:#a9c1fd">** </font>';
                divContent += '<font style="color:#ffff00">' + messages[i] + '</font> ';
            }
            
            if (divContent.length > 0)
            {
                divContent += '<font style="color:#a9c1fd">** </font>';
            }
                
            
            /*var divContent = '<font style="color:#a9c1fd">** </font>';
            divContent += '<font style="color:#ffff00">Book your Salsa Euphoria tickets NOW</font> ';
            divContent += '<font style="color:#a9c1fd">** </font>';
            divContent += '<font style="color:#ffff00"><a class="ticker" href="shop.htm">Looking for good quality affordable dance shoes??? Click here</a></font> ';
            divContent += '<font style="color:#a9c1fd">** </font>';
            */
           // hiddenTicker.innerHTML = divContent;    //hidden ticker is used to get the full width of the ticker content

            objMarquee.innerHTML = divContent;
            objMarquee.style.width = objMarquee.offsetWidth + 'px';
            
            if (divContent.length > 0)
            {
                firstLoad = false;
            }
        }        
        
        if (parseInt(objMarquee.style.left) > -objMarquee.offsetWidth)
        {
            objMarquee.style.left = (parseInt(objMarquee.style.left) - 2) + "px";
        }
        else
        {
            objMarquee.style.left = "1024px";
        }
        
        
        setTimeout('scrollMarquee();', 50);
    }
}

////////////////////////////////////////////////
//update the html text with the date and time
function updateTime()
{
	var dateObj = findObj("date");
	
	if (dateObj)
	{
		dateObj.innerHTML = getDate();
	}
	
	setTimeout("updateTime();", 60000);
}

//start the clock going
setTimeout("updateTime();", 1000);
setTimeout("scrollMarquee();", 2000);



//select the chosen menu
var url = window.location.href;

if (url.indexOf("index.htm") != -1)
{
	findObj("link1").className = "MainmenuSelected";
}
else if (url.indexOf("bio.htm") != -1)
{
	findObj("link2").className = "MainmenuSelected";
}
else if (url.indexOf("publishedwork.php") != -1)
{
	findObj("link3").className = "MainmenuSelected";
}
else if (url.indexOf("onlinework.php") != -1)
{
	findObj("link4").className = "MainmenuSelected";
}
else if (url.indexOf("events") != -1)
{
	findObj("link_events").className = "MainmenuSelected";
}
else if (url.indexOf("photos.php") != -1)
{
	findObj("link5").className = "MainmenuSelected";
}
else if (url.indexOf("contact.htm") != -1)
{
	findObj("link_contact").className = "MainmenuSelected";
}

//-->
