﻿/// <reference path="../../JQuery/Core/jquery-1.4.1-vsdoc.js" />


$(function () {
    var strURL = window.location.toString().toLowerCase();
    if (strURL.indexOf("index") > 0) {
        $("#webUcHeaderNav_divHome").attr('class', $("#webUcHeaderNav_divHome").attr('class') + '1');
    }
    if (strURL.indexOf("filmlist") > 0) {
        $("#divCard").attr('class', $("#divCard").attr('class') + '1');

    } else if (strURL.indexOf("useraccount") > 0) {
        $("#divAccount").attr('class', $("#divAccount").attr('class') + '1');
    }
    if (strURL.indexOf("news") > 0) {
        $("#divNews").attr('class', $("#divNews").attr('class') + '1');
    }
    if (strURL.indexOf("cinema") > 0
        || strURL.indexOf("filmlist") > 0
        || strURL.indexOf("filmdetails") > 0
        || strURL.indexOf("chooseseat") > 0
        || strURL.indexOf("buyticket") > 0) {
        $("#divBuyTicket").attr('class', $("#divBuyTicket").attr('class') + '1');
    }
    if (strURL.indexOf("recharge") > 0) {
        $("#divRecharge").attr('class', $("#divRecharge").attr('class') + '1');
    }
    if (strURL.indexOf("vipmovie") > 0) {
        $("#divVip").attr('class', $("#divVip").attr('class') + '1');
    }
    if (strURL.indexOf("help") > 0) {
        $("#divHelp").attr('class', $("#divHelp").attr('class') + '1');
    }
    $(".help_l a").each(function () {
        if (strURL == $(this).attr("href").toLowerCase()) {
            $(this).attr('class', 'choose');
        }
    });
    if (strURL.indexOf("help_login") > 0) {
        $("#rhzc").attr('class', 'choose');
    }
    if (strURL.indexOf("helpregistration") > 0) {
        $("#rhjh").attr('class', 'choose');
    }
    if (strURL.indexOf("helprecharge") > 0) {
        $("#cztj").attr('class', 'choose');
    }
    if (strURL.indexOf("helpstrategy") > 0) {
        $("#czgl").attr('class', 'choose');
    }
    if (strURL.indexOf("helpreserve") > 0) {
        $("#rhdp").attr('class', 'choose');
    }
    if (strURL.indexOf("helpseats") > 0) {
        $("#rhxw").attr('class', 'choose');
    }
    if (strURL.indexOf("helppay") > 0) {
        $("#rhzf").attr('class', 'choose');
    }
    if (strURL.indexOf("helppassword") > 0) {
        $("#qpmm").attr('class', 'choose');
    }
    if (strURL.indexOf("helpway") > 0) {
        $("#qpfs").attr('class', 'choose');
    }
    if (strURL.indexOf("helpaddress") > 0) {
        $("#yydz").attr('class', 'choose');
    }
    if (strURL.indexOf("helphipass") > 0) {
        $("#gyhipass").attr('class', 'choose');
    }
    if (strURL.indexOf("helphipassrecharge") > 0) {
        $("#czjs").attr('class', 'choose');
    }
    if (strURL.indexOf("helpupdate") > 0) {
        $("#wzppgx").attr('class', 'choose');
    }
    if (strURL.indexOf("helpblocking") > 0) {
        $("#sjjz").attr('class', 'choose');
    }
    /////////////////////////////////////UserAttribute//////////////
    if (strURL.indexOf("usersetting") > 0) {
        $("#grxxx").attr('class', 'choose');
    }
    if (strURL.indexOf("membergroup") > 0) {
        $("#hyjb").attr('class', 'choose');
    }
    if (strURL.indexOf("changepwd") > 0) {
        $("#xgdlmm").attr('class', 'choose');
    }
    if (strURL.indexOf("userqpmm") > 0) {
        $("#szqpmm").attr('class', 'choose');
    }
    if (strURL.indexOf("userbind") > 0) {
        $("#sjbd").attr('class', 'choose');
    }
    if (strURL.indexOf("usergold") > 0) {
        $("#gold").attr('class', 'choose');
    }
    ///-------------------
    if (strURL.indexOf("userhibean") > 0) {
        $("#zhxf").attr('class', 'choose');
    }
    if (strURL.indexOf("userviewfilm") > 0) {
        $("#zhgy").attr('class', 'choose');
    }
    if (strURL.indexOf("userhipassview") > 0) {
        $("#hipassgyjl").attr('class', 'choose');
    }
    else if (strURL.indexOf("userhipass") > 0) {
        $("#syhipasscs").attr('class', 'choose');
    }

    ///--------------------------
    if (strURL.indexOf("usershortmsg") > 0) {
        $("#wddx").attr('class', 'choose');
    }

    if (strURL.indexOf("UserCard") > 0) {
        $("#hipasskk").attr('class', 'choose');
    }

}); 