var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-269130-7']);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);

(function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript';
    ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' :'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(ga, s);
})();

function styledPopupClose(popupName) {
    document.getElementById(popupName).style.display = "none";
}

function AcceptTc() {
    var cBox = document.getElementById('content_0_contentarea_0_uclRegister_cbxTc');
    var btnSubmit = document.getElementById('content_0_contentarea_0_uclRegister_btnRegister');

    if (cBox.checked) {
        btnSubmit.disabled = false;
        btnSubmit.style.color = "White";
    }
    else {
        btnSubmit.disabled = true;
        btnSubmit.style.color = "Silver";
    }
}

function ToggleLink() {
    var tgSection = document.getElementById('nowPlayText');
	var link = document.getElementById('toggle');
    if (tgSection.style.display == "block") {
        tgSection.style.display = "none";
	  link.innerHTML = "expand";
	  } else {
        tgSection.style.display = "block";
	  link.innerHTML = "collapse";
    }

}


        function pageLoad() {
            var modpop = $find("loginPoPUp");
            if (!modpop)
             { return; }
            else {
                x = document.getElementById("content_0_contentarea_0_pnlPopUp");
                x.style.position = "absolute";
            }
        }
