function HideVideo()
{
    promo_form_layover.style['display'] = 'none';
}

function ShowVideo()
{
    promo_form_layover.style['display'] = 'block';
}

// Problem with the bday ddl's
function ShowSelectTags()
{
    var theForm = document.forms[0]
    for(i=0; i<theForm.elements.length; i++)
    {
      if(theForm.elements[i].style['display'] == 'none')
        theForm.elements[i].style['display'] = 'inline';
    }
}

function OpenGiftCard(){
    var win = window.open("gift_card.aspx", "", "width=500, height=250");
}

function OpenMusicPlus(){
    var win = window.open("http://www.dynamite.ca/garage/VJ_FR/home.html", "", "width=1000, height=815");
}

function Music_fr(){
    window.open("RadioObj/Radio%20Fr/index.html", "", "location=0,status=0,scrollbars=0,width=400,height=228");
}

function Music_en(){  
    window.open("RadioObj/Radio%20En/index.html", "", "location=0,status=0,scrollbars=0,width=400,height=228");
}

function GaragePopUp(url_as_string, param_as_string){
	if(url_as_string != "")
	{
        window.open(url_as_string, "", param_as_string);
	}
}

function productSubDepartmentChange(obj, target)
{   
    target += "?dept=";
    target += obj.value;
    
    // if no subdept we do nothing.
    if (target.indexOf("-") < 0)
        return;
    
    location.replace(target);
}

function fbs_click(productId)
{
    u=location.href;
    t=document.title;

    window.open('http://www.facebook.com/sharer.php?u='+ encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');

    return false;
}
    