Cufon.replace('h2, #footer #bottom span.find, .title p span, .title div, #rhs .spotlight .title, #sidebar .title', {
	hover: true
});


   var $j = jQuery.noConflict();

            // Use jQuery via $j(...)
   $j(document).ready(function () {


       $j(".sfsearchTxt").val("Search Site");
       $j(".sfsearchTxt").focus(function () {
           $j(this).val("");
       });

       $j('#fns li a:last').addClass('last');
       $j('.sf_pagerNumeric a:last').addClass('last');

       $j('#home-banner #holder').cycle({
           fx: 'scrollVert',
           prev: '#prev',
           next: '#next',
           speed: 600,
           sync: true,
           timeout: 0
       });

       $j('#clients ul').jcarousel({
           wrap: 'circular'
       });

       $j("#home-banner .slide .title p span").each(function () {
           var value = $.trim($(this).text())
           if (value == "") {
               $(this).hide();
           }
       })

       $j('#spotlights .holder:last').addClass('last');

       $j('.faqs dd').hide(); // Hide all DDs inside .faqs
       $j('.faqs dt').hover(function () { $(this).addClass('hover') }, function () { $(this).removeClass('hover') }).click(function () { // Add class "hover" on dt when hover
           $(this).next().slideToggle('normal');
           $(this).toggleClass('open'); // Toggle dd when the respective dt is clicked
       });

       $j('#nav ul li a[href*="fns"]:first').parent().css('display', 'none');
       $j('#nav ul li a[href*="sns"]:first').parent().css('display', 'none');
       $j('#nav ul li a[href*="news-events"]').addClass('last');
       $j('#nav ul li a').attr('title', '');


       $j('#casestudies li p span.pubdate').each(function (index) {
           if ($j(this).text().indexOf("02 January 0001") > -1) {
               $j(this).next(".publicationdate").css("display", "block");
           }
           else {
               $j(this).css("display", "block");
           }

       });


       if (window.location.href.indexOf("about-us.aspx") != -1 || window.location.href.indexOf("about-us") != -1) {

          
           $j('#nav ul li a[href*="about-us"]:first').attr('id','active');


       }
       if (window.location.href.indexOf("home.aspx") != -1 || window.location.href.indexOf("home") != -1) {


           $j('#nav ul li a[href*="home"]:first').attr('id', 'active');


       }
       if (window.location.href.indexOf("sectors.aspx") != -1 || window.location.href.indexOf("sectors") != -1) {
           $j('#nav ul li a[href*="sectors"]:first').attr('id', 'active');
       }
       if (window.location.href.indexOf("solutions-services.aspx") != -1 || window.location.href.indexOf("solutions-services") != -1) {
           $j('#nav ul li a[href*="solutions-services"]:first').attr('id', 'active');
       }
       if (window.location.href.indexOf("clients.aspx") != -1 || window.location.href.indexOf("clients") != -1) {
           $j('#nav ul li a[href*="clients"]:first').attr('id', 'active');
       }
       if (window.location.href.indexOf("our-partners.aspx") != -1 || window.location.href.indexOf("our-partners") != -1) {
           $j('#nav ul li a[href*="our-partners"]:first').attr('id', 'active');
       }
       if (window.location.href.indexOf("resources.aspx") != -1 || window.location.href.indexOf("resources") != -1) {
           $j('#nav ul li a[href*="resources"]:first').attr('id', 'active');
       }
       if (window.location.href.indexOf("news-events.aspx") != -1 || window.location.href.indexOf("news-events") != -1) {
           $j('#nav ul li a[href*="news-events"]:first').attr('id', 'active');
       }


   });




function emailme() {
        var title = document.title;
        var url = document.location.href;
        var subject = "DOCOsoft Ltd";
        var bodyText = "I saw this page and thought you might like to see it " + url;

        window.location.href = "mailto:?subject=" + subject + "&body=" + bodyText;

}
