window.onresize=checkWidth;

function checkWidth()
{		
	if (document.getElementById && document.documentElement.clientWidth)
	{
		var targ = document.getElementById("pageContent");
		var intWidth = document.documentElement.clientWidth;				
		if (intWidth > 630) {
			targ.style.width = "100%";
		}
		else {
			targ.style.width = 600;
		}
	}
}

function docNav(targID, action){
	if(document.getElementById) 
	{
		var action1 = "On";
		var action2 = "Off";
		
		if (action != "On")
		{
		    action1 = "Off";
		    action2 = "On";
		}
		
		var targ = document.getElementById("docNav" + targID + action1);
		targ.style.display = "block";		
		targ = document.getElementById("docNav" + targID + action2);
		targ.style.display = "none";
	}
}

window.onload=function()
{
    if(!NiftyCheck())
        return;
    Rounded("div.boxOuterStyle1","all","#FFF","#777777","smooth");
    Rounded("div.boxOuterStyle4","all","#FFF","#D4D4D4","smooth");
    Rounded("div.boxOuterStyle5","all","#FFF","#F2F3FF","border #999999");
    Rounded("div.boxOuterStyle6","top","#FFF","#D4D4D4","smooth");
    Rounded("div.boxOuterStyle7","bottom","#FFF","#D4D4D4","smooth");
    Rounded("div.boxOuterStyle8","top","#FFF","#559DD2","smooth");
    Rounded("div.boxOuterStyle9","bottom","#FFF","#559DD2","smooth");
    Rounded("div.boxOuterStyleB1","all","#FFF","#FFFFFF","border #999999");
    Rounded("div.boxOuterStyleB2","all","#F2F3FF","#FFFFFF","border #999999");
}