﻿$(document).ready(function() {
    if ("#tabs") {
        $("#tabs").tabs().tabs('rotate', 8000);
    }
    if ("#accordion") {
        $("#accordion").accordion({ clearStyle: true});
    }    
	if ("#members-section") {
        $("#members-section").accordion({ clearStyle: true, collapsible :true, active:false });
    }
    if ('#UserLoginPanel1_btnLogIn') {
        $('#UserLoginPanel1_btnLogIn').colorbox();
    }
    if ('#registrationForm_btnChangePassword') {
        $('#registrationForm_btnChangePassword').colorbox();
    }
    if (".footerlogin") {
        $(".footerlogin").colorbox()
    }
    if ("#view-large") {
        $("#view-large a").colorbox();
    }
    $(".registered .close").click(function() {
        $(this).parents(".registered").animate({ opacity: "hide" }, "slow")
    });

    $(".btnRequestPayment").colorbox({ width: "630px", inline: true, href: "#RequestPayment" });
    $(".btnShowWarning").colorbox({ width: "350px", inline: true, href: "#popupMessage" });
});

sfHover = function() {
    var sfEls = document.getElementById("listMenuRoot").getElementsByTagName("LI");
    for (var i = 0; i < sfEls.length; i++) {
        sfEls[i].onmouseover = function() {
            this.className += " sfhover";
        }
        sfEls[i].onmouseout = function() {
            this.className = this.className.replace(new RegExp(" sfhover\\b"), "");
        }
    }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

  



