﻿

$(document).ready(

function()
{
    decoratePage();

}

);

function decoratePage()
{

}


    
function setBackground(col)
{
    //var col = "<%= SiteBackgroundCol %>";
    
    //$('.modbar').css('backgroundColor', col);
    $('.Site_Body').css('backgroundColor', col);
    $('.msNav li').css('backgroundColor', col);
    
}



function setBorder(col)
{
    //var col = "<%= SiteBorderCol %>";
    
    $('body').css('backgroundColor', col);
    $('.modbg').css('backgroundColor', col);
    if (col != "")
        $('body').css('background-image', 'none');
    else
        $('body').css('background-image', '');
    
}

 
function setTabs(col)
{
    //var col = "<%= SiteTabCol %>";

    //$("a.msNavTab").css('backgroundColor', col);
    $("a.msNavTab[class=msNavTab] .xboxcontent").css('backgroundColor', col);
    $("a.msNavTab[class=msNavTab] .xb2").css('backgroundColor', col);
    $("a.msNavTab[class=msNavTab] .xb3").css('backgroundColor', col);
    $("a.msNavTab[class=msNavTab] .xb4").css('backgroundColor', col);
    
}



function doBkgColours(hex)
{
$('.Site_Body').css('backgroundColor', '#' + hex);
$('.msNav li').css('backgroundColor', '#' + hex);
}

function doBorderColours(hex)
{
$('body').css('backgroundColor', '#' + hex);
$('.modbg').css('backgroundColor', '#' + hex);
$('body').css('background-image', 'none');
}

function doTabColours(hex)
{
	//$("a.msNavTab").css('backgroundColor', '#' + hex);
	$("a.msNavTab[class=msNavTab] .xboxcontent").css('backgroundColor', col);
    $("a.msNavTab[class=msNavTab] .xb2").css('backgroundColor', col);
    $("a.msNavTab[class=msNavTab] .xb3").css('backgroundColor', col);
    $("a.msNavTab[class=msNavTab] .xb4").css('backgroundColor', col);
}

