window.onload=function()
{
PrepareRoundedCorners();
}

function PrepareRoundedCorners()
{
if(!NiftyCheck())
    return;
if(document.getElementById("logincontainer"))
{
    RoundedTop("div#logincontainer", "#EAEAEA", "#E1783B");
    RoundedBottom("div#logincontainer", "#EAEAEA", "#B1B1B1");
}
if(document.getElementById("container"))
{
    RoundedTop("div#container", "#EAEAEA", "#FFF");
    RoundedBottom("div#container", "#EAEAEA", "#EF8841");
}

if(document.getElementById("personallogo"))
{
  Rounded("div#personallogo","#DCDCDC","#FFF");
}
if (document.getElementById("personalnews")) {
    //Rounded("div#personalnews li", "#DCDCDC", "#FFF");
}
if (document.getElementById("mainchoices"))
{
  Rounded("div#mainchoices li","#DCDCDC","#FFF");
}
if(document.getElementById("personalsettings"))
{
  Rounded("div#personalsettings li","#DCDCDC","#FFF");
}
if(document.getElementById("gradient"))
{
  RoundedTop("div#gradient","#DCDCDC","#B8B8B8");
  RoundedBottom("div#gradient","#DCDCDC","#ECECF2");
}
if(document.getElementById("currentitem"))
{
  Rounded("div#currentitem","#DCDCDC","#FFF");
}
/*if(document.getElementById("fullitem"))
{
  Rounded("div#fullitem","#DCDCDC","#FFF");
}
if(document.getElementById("nav"))
{
  RoundedTop("ul#nav li","transparent","#FFC");
}*/

}

function textboxMultilineMaxNumber(txt, maxLen) {
    try {
        if (txt.value.length > (maxLen - 1)) return false;
    } catch (e) {
    }
}
