function l()
        {
          var rnd = Math.floor(Math.random()*16)+1;
          var pat = "_mod_files/ce_images/insight/"+rnd+".jpg";
          pic = new Image();
          pic.src= pat;
          document.getElementById('ins').style.backgroundImage = 'url('+pic.src+')';
     document.getElementById('ins').style.backgroundRepeat = 'no-repeat';
          document.getElementById('ins').style.backgroundPosition = 'center';
        }

function show_video(path, t)
{
    window.open( path, t, "width=500 , height=400");
}

function hide()

{

    for( var i = 1; i <= 4; i++ )
        document.getElementById('mnu'+i).style.display = 'none';

}



function show_div(n)

{
    hide_sub();

    hide();
    document.getElementById(n).style.display = 'block';

}


function br_det()
{
   if( navigator.appName == "Opera" || navigator.appName == "Microsoft Internet Explorer" )
   {
       //hide();
   }   
}

function show_sub(n)

{

    hide_sub();

    document.getElementById(n).style.display = 'block';

}



function hide_sub()

{

    for( var i = 1; i <= 7; i++ )

        document.getElementById('mnuS'+i).style.display = 'none';

}



var s, c1, c2, r1, g1, b1, r2, g2, b2;

var fTimeout, fObj, fSteps = 25, fDelay = 5;


function un(obj, color1, color2)

{
fobj = document.getElementById(obj);

    if (fTimeout)

    {

        clearTimeout(fTimeout);

        if (fObj) fObj.style.backgroundColor = c2;

    }
    fObj = obj; c1 = color1; c2 = color2;

    r1 = eval('0x' + c1.substring(0,2));

    g1 = eval('0x' + c1.substring(2,4));

    b1 = eval('0x' + c1.substring(4,6));

    r2 = eval('0x' + c2.substring(0,2));

    g2 = eval('0x' + c2.substring(2,4));

    b2 = eval('0x' + c2.substring(4,6));

    s = 0;

    DoFade();

}



function DoFade()

{

    var d = s/fSteps;

    var m = 1 - d;

    fObj.style.backgroundColor = "#" + Dec2Hex(r1 * m + r2 * d) + Dec2Hex(g1 * m + g2 * d) + Dec2Hex(b1 * m + b2 * d);

    if (s < fSteps) fTimeout = setTimeout('DoFade();', fDelay);

    s++;

}



function Dec2Hex(Dec)

{
    var hexChars = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");

    var a = parseInt(Dec) % 16;

    var b = (parseInt(Dec) - a)/16;

    var hex = "" + hexChars[b] + hexChars[a];

    return hex;

}
