var lastItem = jQuery.noConflict();
lastItem(function () {
    lastItem(".rmRootGroup").children(".rmLast").children(".rmLink").attr('style', 'background:none !important; padding-right:27px !important;');
    lastItem(".rmLevel1 li a span").contents().unwrap();
    lastItem("#accordion-footer li ul li").each(function () {

        lastItem(this).children("div").contents().unwrap();
        //lastItem("#forRemove div").children("input").remove();
        //lastItem(this).children("div").contents().unwrap();
    });

    



    lastItem("#wsearchAgain .sfsearchBox").find(".searchButton").removeClass().addClass("searchButtonAgain");
    //lastItem(".forRemove").contents().unwrap();
    lastItem(".RadTabStripLeft_topMenuSelected ul").clone().appendTo("#sub-nav-left");
    lastItem(".RadTabStripLeft_topMenuSelected").parent().attr('style', 'display:none;');
    lastItem("#sub-nav-left ul").removeClass().addClass("sub-nav");
    lastItem("#sub-nav-left ul li").removeClass();
    lastItem("#sub-nav-left ul li a").removeClass().addClass("selected-sub-nav-first");

    lastItem(".RadTabStripLeft_subnavBottom ul").clone().appendTo("#sub-nav-bottom");
    lastItem(".RadTabStripLeft_subnavBottom").parent().attr('style', 'display:none;');
    lastItem("#sub-nav-bottom ul").removeClass().addClass("sub-nav");
    lastItem("#sub-nav-bottom ul li").removeClass();
    //lastItem("#sub-nav-bottom ul li a").removeClass();

    lastItem(".RadTabStripLeft_guruLeftNav ul").clone().appendTo("#sub-nav-left-guru");
    lastItem(".RadTabStripLeft_guruLeftNav").parent().attr('style', 'display:none;');
    lastItem("#sub-nav-left-guru ul").removeClass().addClass("sub-nav");

    lastItem(".RadTabStripLeft_guruRightNav ul").clone().appendTo("#sub-nav-right-guru");
    lastItem(".RadTabStripLeft_guruRightNav").parent().attr('style', 'display:none;');
    lastItem("#sub-nav-right-guru ul").removeClass().addClass("sub-nav");

    //lastItem(".rmLink.rmSelected").addClass("selected-main");
    lastItem(".rmSlide ul li .rmSelected").attr('style', 'background:none !important; color:#333333 !important;');

    lastItem(".rmSlide ul li .rmSelected").hover(function () {
        lastItem(this).attr('style', ' background:#ff0000 url(../App_Themes/Theme01/global/css/images/yellowIcon.jpg) no-repeat 163px center !important; color:#fff !important;');
    },
    function () {
        lastItem(this).attr('style', 'background:none !important; color:#333333 !important;');
    });

    lastItem(".rmSlide ul li .rmSelected").parent("li").parent("ul").parent("div").parent("li").children("a").addClass("rmSelected");

    lastItem(".rmSlide ul li .rmSelected").parent("li").parent("ul").parent("div").parent("li").children("a").hover(function () {

    },
    function () {
        lastItem(".rmSlide ul li .rmSelected").parent("li").parent("ul").parent("div").parent("li").children("a").attr('style', 'background:#e60000 url(../App_Themes/Theme01/global/css/images/menuDivider.jpg) no-repeat top right !important; color:#fff !important;');
    });


    //lastItem(".twitterFeed").find("span").contents().unwrap();
    lastItem("#ticker-wrapper").appendTo("#twitter-feed");
    lastItem("#accordion-footer li ul li ul").removeClass().addClass("siteMap");
    lastItem("#accordion-footer li ul li ul li ul").removeClass("siteMap");
    lastItem("#accordion-footer li ul li ul:lt(1)").remove();
    lastItem(".siteMap li").children("a:first-child").wrap("<p></p>");
    lastItem(".siteMap li ul li").find("p").contents().unwrap();
    lastItem("#accordion-footer li ul li ul.siteMap:nth-child(1)").attr('style', 'width:206px;');
    lastItem("#accordion-footer li ul li ul.siteMap:nth-child(2)").attr('style', 'width:205px;');
    lastItem("#accordion-footer li ul li ul.siteMap:nth-child(3)").attr('style', 'width:191px;');
    lastItem("#accordion-footer li ul li ul.siteMap:nth-child(4)").attr('style', 'width:168px;');
    lastItem("#accordion-footer li ul li ul.siteMap:nth-child(5)").attr('style', 'width:206px; clear:both; padding-top:30px;');
    lastItem("#accordion-footer li ul li ul.siteMap:nth-child(6)").attr('style', 'width:205px; padding-top:30px;');
    lastItem("#accordion-footer li ul li ul.siteMap:nth-child(7)").attr('style', 'width:191px; padding-top:30px;');
    lastItem(".RadSiteMap_custom-site-map-other ul").attr('style', 'width:168px; padding-top:30px;');
    lastItem(".RadSiteMap_custom-site-map-other ul li").not(":first").find("p").contents().unwrap();
    lastItem(".RadSiteMap_custom-site-map-other ul").appendTo(".RadSiteMap_custom-site-map");

    lastItem(".rmRootGroup").children(".rmLast").children(".rmLink").hover(function () {
        lastItem(this).attr('style', 'background:#e60000 !important; padding-right:27px !important;');
    },
                 function () {
                     lastItem(this).attr('style', 'background:none !important; padding-right:27px !important;');
                 });

});

             var addLink = jQuery.noConflict();

             addLink(function () {
                 addLink('.first-caption').parent("div").hover(function () {
                     addLink(this).attr('style', 'cursor:pointer !important;');
                 });
                 addLink('.first-caption').parent("div").click(function () {
                     var a_href = addLink('.first-caption .moreLink').attr('href');
                     window.location = a_href;
                 });

                 addLink('.second-caption').parent("div").hover(function () {
                     addLink(this).attr('style', 'cursor:pointer !important;');
                 });
                 addLink('.second-caption').parent("div").click(function () {
                     var a_href = addLink('.second-caption .moreLink').attr('href');
                     window.location = a_href;
                 });

                 addLink('.pink-caption').parent("div").hover(function () {
                     addLink(this).attr('style', 'cursor:pointer !important;');
                 });
                 addLink('.pink-caption').parent("div").click(function () {
                     var a_href = addLink('.first-caption .moreLink').attr('href');
                     window.location = a_href;
                 });

                 addLink('.red-caption').parent("div").hover(function () {
                     addLink(this).attr('style', 'cursor:pointer !important;');
                 });
                 addLink('.red-caption').parent("div").click(function () {
                     var a_href = addLink('.red-caption .moreLink').attr('href');
                     window.location = a_href;
                 });
             });

            

             



            

             

             
