// ClickTale Top part
var WRInitTime=(new Date()).getTime();
// ClickTale end of Top part

$(document).ready(function(){

   var linkHref = document.location.href;
   var linkPath = document.location.pathnamef;

/**for top main navigation **/
  $("#header .nav li").each(function(){
  var link = $(this).children("a");
   if (link.attr("href") == document.location.pathname || link.attr("href") == document.location.href) {
    $(this).children("a").addClass("active");
  }

 });

(function($) {
  var cache = [];
  // Arguments are image paths relative to the current page.
  $.preLoadImages = function() {
    var args_len = arguments.length;
    for (var i = args_len; i--;) {
      var cacheImage = document.createElement('img');
      cacheImage.src = arguments[i];
      cache.push(cacheImage);
    }
  }
})(jQuery)

jQuery.preLoadImages("/images/header/nav_home_on.png",
    "/images/header/nav_management_on.png", "/images/header/nav_advisors_on.png",
    "/images/header/nav_jobs_on.png", "/images/header/nav_press_on.png",
    "/images/header/nav_contact_on.png", "/images/header/nav_how_on.png",
    "/images/header/nav_features_on.png","/images/header/nav_download_on.png",
    "/images/header/nav_pricing_on.png","/images/header/nav_support_on.png",
    "/images/features/music.jpg", "/images/features/photos.jpg",
    "/images/features/video.jpg", "/images/features/contacts.jpg",
    "/images/features/backups.jpg","/images/features/mdrive.jpg");
 });
