$(document).ready( function() {
    $('#shadowtext').textShadow();
    $("a.fancybox").fancybox();
});


function ShowDiv(DivId, bShow) {
    oDiv = document.getElementById(DivId);
    if(oDiv) {
        if(bShow) {
            oDiv.style.display = "block";
        } else {
            oDiv.style.display = "none";
        }
    }
}

function CheckEmail(EmailElementId)
{
  var email = document.getElementById(EmailElementId);
  if(!isRFC822ValidEmail(email.value)) {
    alert('{/literal}{#Error_InvalidEmail#}{literal}');
    email.focus;
    return false;
  }
  return true;
}

function OpenInfoWindow(Url) {
    PopUp2(Url, 600, 500, true, true);
}
