﻿


function openPrivacy() {
    window.open('/Privacy.htm', 'PrivacyPolicy', 'scrollbars=yes,status=no,width=600,height=500')
}


function openTerms() {
    window.open('/Terms.htm', 'TermsConditions', 'scrollbars=yes,status=no,width=600,height=500')
}

function openContact() {
    window.open('/ContactUs.aspx', 'ContactUs', 'scrollbars=yes,status=no,width=500,height=620')
}


function openLocations() {
    window.open('/Pages/Whole-Foods-Market-Locations.aspx', 'Locations', 'scrollbars=yes,status=no,width=550,height=620')
}

function openStf() {
    window.open('/Pages/Send-To-Friend.aspx', 'Sendtofriend', 'scrollbars=yes,status=no,width=550,height=620')
}

function openIntro() {
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="630" height="327" id="Resource_Intro" align="middle">');
    document.write('<param name="allowScriptAccess" value="sameDomain" />');
    document.write('<param name="movie" value="/flash/Resource_Intro.swf" />');
    document.write('<param name="quality" value="high" />');
    document.write('<param NAME="wmode" VALUE="transparent">');
    document.write('<embed src="/flash/Resource_Intro.swf" wmode="transparent" quality="high"  bgcolor="#d3ecfa" width="630" height="327" name="Resource_Intro" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
    document.write('</object>');

}



function showFlashDiv(layer_to_show) {
    document.getElementById('homepage_flash_container_on').style.display = "none";
    document.getElementById('homepage_flash_container_off').style.display = "none";
    document.getElementById('homepage_flash_container_' + layer_to_show).style.display = "block";
}

function showButtonDiv(label_to_show) {
    if (label_to_show == 'replay') {
        document.getElementById('button_mute').style.display = "none";
    }
    else {
        document.getElementById('button_mute').style.display = "block";
    }
    document.getElementById('button_skip').style.display = "none";
    document.getElementById('button_replay').style.display = "none";
    document.getElementById('button_' + label_to_show).style.display = "block";

}

