﻿function addCss(cssCode)
{
    var styleElement = document.createElement("style");
    styleElement.type = "text/css";
    if (styleElement.styleSheet)
    {
        styleElement.styleSheet.cssText = cssCode;
    } else
    {
        styleElement.appendChild(document.createTextNode(cssCode));
    }
    document.getElementsByTagName("head")[0].appendChild(styleElement);
}



//$(function()
//{
//    //cssLoad();
//});

function cssLoad()
{
    var css =
     ".Submit   " +
     "{  " +
     "   background-image: url('~/Images/btnBG.jpg'); " +
     "} " +

     ".SelectBG   " +
     "{  " +
     "   background-image: url('~/images/SelectBG.jpg'); " +
     "} " +

     "#main " +
     "{ " +
     "     background-image: url('~/images/BG/BodyBG.png'); " +
     "} " +

     ".BGTop " +
     "{ " +
     "    background-image: url('~/Images/BG/topbg.png');  " +
     "} " +

     ".BGBottom " +
     "{ " +
     "	 background-image: url('~/Images/BG/bottombg.png');  " +
     "} " +

     "#resumesTabHot span.tab" +
     "{ " +
     "	 background-image: url('~/Images/ddarrow_up.gif');  " +
     "} " +

     "#imIconTab " +
     "{ " +
     "	background-image: url('~/Images/ddarrow_up.gif');  " +
     "} ";

    css = css.replaceAll("~", baseUrl + "content/");

    addCss(css);
}

