// JScript File

function getFileModifiedDate(id) {
    switch ( id ) {
        case "itinerary":
            var src = "Data/xml/itinerary.xml";
            var win = window.createPopup();
            
            win.document.body.style.display = "none";
            win.document.body.style.visibility = "hidden";
            win.document.url = src;
            win.show(0,0,0,0,document.body);

            var modDate = new Date(win.document.lastModified);
            window.top.updatestatusdate_itinerary = formatDateStr(modDate);

            win.hide();                        

            break;
        case "clips":
            var win = window.createPopup();
            
            win.document.body.style.display = "none";
            win.document.body.style.visibility = "hidden";
            win.document.url = src;
            win.show(0,0,0,0,document.body);

            var modDate = new Date();
            
            win.document.url = "Contents/HTML/clips/clips_pix.htm";
            var modDate1 = new Date(win.document.lastModified);

            win.document.url = "Contents/HTML/clips/clips_vid.htm";
            var modDate2 = new Date(win.document.lastModified);
            
            if ( modDate1 > modDate2 ) {
                modDate = modDate1;
            } else {
                modDate = modDate2;
            }

            window.top.updatestatusdate_clips = formatDateStr(modDate);                        

            win.hide();                        

            break;
    }
}


function getHomeHTML() {
    var strHTML = ""
        + "<table cellpadding='0' cellspacing='0'>"
        + "    <tr>"
        + "        <td align='left' >"
        + "            <p>Welcome to <b>Solid Ground</b> featuring Karl Bracy! Enjoy a full afternoon or evening of r&amp;b, soul, and dance music with us. We proudly service the San Francisco Bay Area and surrounding communities, presenting cocktail, dinner, dance, and party music, catering to a variety of occasions including protocol functions, corporate and specialized events, receptions, house parties, festivals, club dates and more! <a rel='bookmark' href='#contact'>Contact us!</a></p>"
        + "        </td>"
        + "    </tr>"
        + "    <tr><td class='vspc-20'></td></tr>"
        + "    <tr>"
        + "        <td>"
        + "            <a id='upcoming'></a>"
        + "            <table border='4' width='70%' align='center'>"
        + "                <tr>"
        + "                    <td align='center' valign='top'>"
        + "                        <table border='0' cellspacing='0' cellpadding='0' width='100%' align='center'>"
        + "                            <tr>"
        + "                                <td style='border-left-style:groove; border-left-color:#0000CC; border-right-style:groove; border-right-color:#0000CC; border-top-style:groove; border-top-color:#0000CC'>"
        + "                                    <table  border='0' cellspacing='0' cellpadding='0' width='100%' align='center'>"
        + "                                        <tr>"
        + "                                            <td style='border-bottom:1pt solid #000000; font-size:medium;' height='40' width='100%' align='center' valign='middle' >"
        + "                                                <i><b><font color='#008000'>Upcoming public events!</font></b></i>"
        + "                                            </td>"
        + "                                        </tr>"
        + "                                        <tr>"
        + "                                            <td style='border-bottom:1pt solid #000000;' width='100%' height='220px'>"
        + "                                                <div id='divHomeDetail' style='height:220px; width:auto; position:static; overflow-y:auto; overflow-x:hidden; font-family:Arial; font-size:medium'></div>"
        + "                                            </td>"
        + "                                        </tr>"
        + "                                    </table>"
        + "                                </td>"
        + "                            </tr>"
        + "                            <tr>"
        + "                                <td align='center' valign='middle' height='40' style='border-left-style:groove; border-left-color:#0000CC; border-right-style:groove; border-right-color:#0000CC; border-bottom-style:groove; border-bottom-color:#0000CC;'>"
        + "                                    <div id='divItineraryStatus' style='font-size:smaller;'></div>"
        + "                               </td>"
        + "                            </tr>"
        + "                        </table>"
        + "                    </td>"
        + "                </tr>"
        + "            </table>"
        + "        </td>"
        + "    </tr>"
        + "    <tr><td class='vspc-20'></td></tr>"
        + "    <tr>"
        + "        <td align='left' >"
        + "            <p><b>Solid Ground</b> specializes in <i>Old School</i> dance music originally recorded by artists such as Stevie Wonder, Earth, Wind &amp; Fire, Stylistics, Spinners, O\'Jays, Tower Of Power, Commodores, Billy Paul, Ohio Players, George Benson, and many, many more!</p>"
        + "        </td>"
        + "    </tr>"
        + "    <tr><td class='vspc-10'></td></tr>"
        + "    <tr>"
        + "        <td align='center'>"
        + "            <div id='divClipsStatus' >&nbsp;</div>"
        + "        </td>"
        + "    </tr>"
        + "    <tr><td class='vspc-20'></td></tr>"
        + "    <tr>"
        + "        <td align='left' >"
        + "            <p><b>Solid Ground</b> comes with years of experience; our music is guaranteed to &quot;take you back!&quot; The five-piece group consists of <a rel='bookmark' href='#Dion_Duncan' onclick='navBtn_onclick(\"bios\");'> Dion Duncan</a>  on drums and vocals, <a rel='bookmark' href='#Terry_Baker' onclick='navBtn_onclick(\"bios\");'> Terry Baker</a> on keyboards, <a rel='bookmark' href='#Hal_Imbrie' onclick='navBtn_onclick(\"bios\");'> Hal Imbrie</a> on bass and vocals, <a rel='bookmark' href='#Tim_Landis' onclick='navBtn_onclick(\"bios\");'>Tim Landis</a> on guitars and vocals, and <a rel='bookmark' href='#Karl_Bracy' onclick='navBtn_onclick(\"bios\");'> Karl Bracy</a>  on lead vocal. Karl is well received on both national and international circuits, having toured in Japan and other faraway places.</p>"
        + "        </td>"
        + "    </tr>"
        + "    <tr><td class='vspc-10'></td></tr>"
        + "    <tr>"
        + "        <td align='center'>"
        + "            <table border='0' width='100%' cellpadding='0'>"
        + "                <tr>"
        + "                    <td width='100%' align='center'>"
        + "                        <br />"
        + "                        <i><b><font size='2' color='#990033'>Click any button below to explore the world of Solid Ground!!</font></b></i>"
        + "                    </td>"
        + "                </tr>"
        + "                <tr>"
        + "                    <td width='100%' align='center'>"
        + "                        <div id='divShell_HNav2' class='HNavDiv_hidden'></div><br />&nbsp;"
        + "                    </td>"
        + "                </tr>"
        + "            </table>"
        + "        </td>"
        + "    </tr>"
        + "    <tr>"
        + "        <td>"
        + "            <dl>"
        + "                <dd>"
        + "                    <h2 align='left'><a id='contact'>Tell us...how can we enhance YOUR occasion?</a></h2>"
        + "                    <dl>"
        + "                        <dt><strong>Contact</strong></dt> "
        + "                        <dd>"
        + "                            <table border='1'>"
        + "                                <tr>"
        + "                                    <td width='50%'>"
        + "                                        <a href='mailto:Terry@solidgroundmusic.com'>Terry Baker</a>"
        + "                                    </td>"
        + "                                    <td width='50%'>415.265.8351</td>"
        + "                                </tr>"
        + "                                <tr>"
        + "                                    <td width='50%'>"
        + "                                        <a href='mailto:Karl@solidgroundmusic.com'>Karl Bracy</a>"
        + "                                    </td>"
        + "                                    <td width='50%'>707.738.4875</td>"
        + "                                </tr>"
        + "                                <tr>"
        + "                                    <td width='50%'>"
        + "                                        <a href='mailto:Dion@solidgroundmusic.com'>Dion Duncan</a>"
        + "                                    </td>"
        + "                                    <td width='50%'>707.280.2752</td>"
        + "                                </tr>"
        + "                            </table>"
        + "                        </dd> "
        + "                        <dt><strong>Electronic mail</strong></dt> "
        + "                        <dd>"
        + "                            <a href='mailto:generalinfo@solidgroundmusic.com'>General Info</a>"
        + "                        </dd>"
        + "                    </dl>"
        + "                </dd>"
        + "            </dl>"
        + "        </td>"
        + "    </tr>"
        + "</table>"
	
/*
	var dt = getNewDate(2007,2,26);
	var tm = getNewTime(17,5,26,238);
	var dt = getNewDate();
	var tm = getNewTime();
	var dttm = getNewDateTime(2007,2,26,17,5,26,238);
	var dttm = getNewDateTime();
	var dt_val = cvtDate2Int(dt);
	var tm_val = cvtTime2Float(tm);
	var dttm_val = cvtDateTime2TokenID(dttm);
	var dttm_dt_val = cvtDate2Int(dttm);
	var dttm_tm_val = cvtTime2Float(dttm);

	var dt_hex = dt_val.toString(16);

	alert("date=" + dt.toDateString() + " hex=" + dt_hex
		+ "\n" + "time=" + tm.toTimeString()
		+ "\n\n" + "datetimedate= " + dttm.toDateString()
		+ "\n" + "datetimetime= " + dttm.toTimeString()
		+ "\n\n" + "date2int= " + dt_val
		+ "\n" + "time2float= " + tm_val
		+ "\n\n" + "datetime2num= " + dttm_val
		+ "\n" + "datetime2dateint= " + dttm_dt_val
		+ "\n" + "datetime2timefloat= " + dttm_tm_val
		+ "\n\n" + "dt_val and tm_val=" + eval(Number(dt_val) + Number(tm_val))
	);
*/            
    return strHTML;
}
        
    
