﻿/// <reference path="jquery-1.3.2.js"/>


jQuery.fn.setActiveTab = function() {
/*
   var pathName = new String();
   pathName = window.location.href.toLowerCase();

   return this.each(function() {
      $('a', this).each(function() {
         if (pathName.indexOf($(this).attr('href').toLowerCase(), 0) > -1) {
            $(this).addClass('active');
            return false;
         }
      });

      var coll = new Array();

      //bargroup 0
      coll.push('orderhistory.ax userprofile.ax webuser.ax changepassword.ax');
      //bargroup 1 would follow, - Start building last group first, or use coll.reverse()

      for (var i = 0; i < coll.length; i++) {

         var str = new String();
         str = coll[i];
         var tempColl = str.split(" ");

         for (var x = 0; x < tempColl.length; x++) {

            if (pathName.indexOf(tempColl[x], 0) > -1) {
               $('[bargroup=' + i + ']', this).addClass('active');
               return false;
            }
         }
      }
   });*/
};