﻿$(document).ready(function () {
    $(".hidden").hide();
    $(".show").html("more ....");

    $(".show").click(function () {
        if (this.className.indexOf('clicked') != -1) {
            $(this).prev().slideUp(500);
            $(this).removeClass('clicked')
            $(this).html("more ....");
        }
        else {
            $(this).addClass('clicked')
            $(this).prev().slideDown(500);
            $(this).html("... less");
        }
    }); // show click

    if (Modernizr.borderradius) {
        //alert("supports borderradius");
    } else {
        //IE8 and IE7
        $("head").append($("<script type='text/javascript' src='/CMSTemplates/Softmedia/scripts/PIE.js'></script>"));

        $('#headerNav, #bodyMiddle, #secondaryMiddle, #footerMiddle, #bodyMiddleInner, #footerMiddleInner, #basicMiddleWhite, #secondaryMiddleInner').each(function () {
            PIE.attach(this);
        });

    }
});

function SetOurProcessToolTips()
{
    $("map #areaInvestigate").tooltip({ bodyHandler: function () { return "<span>We come to understand what changes you need, why<br/>you need them, and who will be affected by them.</span>"; }, showURL: false });
    $("map #areaAnalyze").tooltip({ bodyHandler: function () { return "<span>Use the results of <span style=\"font-weight:bold;\">Investigate</span> to understand how these<br/>changes fit into your business and make suggestions<br/>to better align those changes with your business.</span>"; }, showURL: false });
    $("map #areaCreate").tooltip({ bodyHandler: function () { return "<span>Use the results of <span style=\"font-weight:bold;\">Analyze</span> to create a solution that enables<br/>the changes your business needs to help it grow.</span>"; }, showURL: false });
    $("map #areaImplement").tooltip({ bodyHandler: function () { return "<span>We work with you to prepare stakeholders &amp; users and<br/>seamlessly merge solutions into your business.</span>"; }, showURL: false });
    $("map #areaMonitor").tooltip({ bodyHandler: function () { return "<span>Change is a certainty.  Don’t be a victim of it. Manage<br/>change by planning ahead with Softmedia.</span>"; }, showURL: false });
}

