﻿
function LoadSignup(emailaddr, height, width)
{
    var strURL = ""
    if (emailaddr == "Your Email Address") { emailaddr = ""; }
    strURL = "/Newsletter-Sign-Up.aspx?email=" + emailaddr;
    GB_showCenter("", strURL, height, width);
} 

function urlencode(str) {
return escape(str).replace(/\+/g,"%2B").replace(/%20/g, "+").replace(/\*/g, "%2A").replace(/\//g, "%2F").replace(/@/g, "%40");
}

function GreyboxVR(swf)
{
    var strURL = "/PopUpVR.aspx?swf=" + swf
    GB_showCenter("", strURL, 310, 610);
} 

// play a new video.
function playVideo(video)
{
    getSWF("videoPlayer").playVideo(video);
}

// get the SWF by id name.
function getSWF(id)
{
    if(navigator.appName.indexOf("Microsoft") != -1)
        return window[id];
    else
        return document[id];
}