/* 
Write the heading on each page.
Use spacial class for Home page.
*/
function writeHeading(home)
{    
    document.write('\
        <div class="text-header" style="top:60px">\
        <div class="headingSubtitle">\
        <div>Offering Piano Lessons to children and adults in <br/>two convenient locations:\
        Natick and Hudson, MA.</div>\
        </div></div>');
        
    // write promo info here first
    document.write('<div class="text-header" style="width:320px;margin-top:0px;color:#ffffff">\
    <div class="headingSubtitle" style="font-size:13px">\
    Receive a $25 Amazon.com Gift Certificate</div>\
    <div style="font-size:11px;">for every student who enrolls in our <a href="/pianolessons/hudsonma/studio/index.htm" style="color:#ffffff;font-size:12px;text-decoration:none">Hudson Studio</a> as a result of your referral. Offer Expires April 30, 2010</div>\
    </div>');
}

function getGoogleNatickLocation()
{
    return "http://maps.google.com/maps?f=q&hl=en&geocode=&q=99+Hartford+Street,+Natick,+MA+01760&sll=37.0625,-95.677068&sspn=60.376022,112.5&ie=UTF8&ll=42.294405,-71.386929&spn=0.007,0.013733&z=16&iwloc=addr";
}

function getGoogleHudsonLocation()
{
    return "http://maps.google.com/maps?f=q&hl=en&geocode=&q=14+Main+St++hudson+ma&sll=37.0625,-95.677068&sspn=60.376022,100.546875&ie=UTF8&ll=42.393211,-71.570134&spn=0.006989,0.012274&z=16&iwloc=addr";
}

function writeNatickStudioLocationInSidebar()
{
    // write promo info here first
    /*
    document.write('<div class="locationsInSidebar" style="background-color:#f8f6f8;padding:3px;margin-left:8px">\
    <div class="locationHeadingInSidebar" style="color:#355d79;text-align:center;font-size:11px;">\
    Receive a $25 Amazon.com Gift Certificate</div>\
    <div style="font-size:11px;">From now until April 30: Recommend us and for every student who enrolls in our Hudson Studio as a result of your referral, you’ll receive a $25 Gift Certificate from Amazon.com. </div>\
    </div>');
*/
    var natick = getGoogleNatickLocation();
    document.write('<div class="locationsInSidebar">\
    <div class="locationHeadingInSidebar">\
    <a href="' + natick + '" target="_blank" class="resourceLink">Natick Studio</a></div>\
    99 Hartford Street<br />\
    Natick, MA 01760<br>\
    508-651-2590<br>\
    </div>');
}
function writeHudsonStudioLocationInSidebar()
{
    var hudson = getGoogleNatickLocation();
    document.write('<div class="locationsInSidebar">\
    <div class="locationHeadingInSidebar">\
    <a href="' + hudson + 'http://maps.google.com/maps?f=q&hl=en&geocode=&q=14+Main+St++hudson+ma&sll=37.0625,-95.677068&sspn=60.376022,100.546875&ie=UTF8&ll=42.393211,-71.570134&spn=0.006989,0.012274&z=16&iwloc=addr" target="_blank" class="resourceLink">Hudson Studio</a></div>\
    14 Main St <br />\
    2nd Floor, Suite 4<br />\
    Hudson, MA 01749<br>\
    978-212-2867<br>\
    </div>');
}

function writeMailingAddress()
{
    document.write('<div class="locationsInSidebar">\    <div class="locationHeadingInSidebar">Mailing Address</div>\    57 Hunter Ave.<BR>\    Hudson, MA 01749\    <div style="margin-top:2px">978-568-0627<BR>\    <a href="mailto:scheduling@edmascari.com"><strong>scheduling@edmascari.com</strong></a></p>\    </div>\    </div>');}function writeBlogInformation(){    document.write('<tr>\    </tr>\
    <tr>\
    <td>\    <div style="text-align:left;margin-top:5px;margin-bottom:0px;margin-left:20px;">\    <a href="http://edmascari.com/emblog/" class="resourceLink" target="_new">\
    Ed Mascari\'s Blog</a>\
    </div>\
	</td>\
    </tr>\
    <tr>\
    </tr>\
    '); 
}

function writeWebsiteCredits()
{
    document.write('\    <div class="credit">All photos by <a href="http://www.susanwilsonphoto.com" target="_blank" class="creditLink">Susan Wilson</a>\    <br />Web Design by <a href="http://www.retinawebagency.com" target="_blank" class="creditLink">Retina Web Agency</a>\    <br />Website Maintained by <a href="http://www.summersound.net" target="_blank" class="creditLink">David Summer</a>\    </div>\    ');}