window.onload=function(){
// add slideshows to window.onload
runSlideShow(); runSlideShow1(); runSlideShow2();

//rounded corner definitions
if(!NiftyCheck()) return;
Rounded("div#container","all","#808080","#ffffff","smooth");
Rounded("div#articles","all","#ffffff","#aaa9a9","smooth");
Rounded("div#news","all","#ffffff","#9fc7e4","smooth");
Rounded("div#blog","all","#ffffff","#d5ebfb","smooth");
Rounded("div#npi","all","#ffffff","#d5ebfb","smooth");
Rounded("div#success","all","#ffffff","#d5ebfb","smooth");
Rounded("div#foot","all","#ffffff","#808080","smooth");
Rounded("div#phone","all","#ffffff","#d5ebfb","smooth");
Rounded("div#rehabcareer","all","#ffffff","#efefef","smooth");
Rounded("div#quotes","all","#ffffff","#9fc7e4","smooth");
Rounded("div#quotes2","all","#ffffff","#9fc7e4","smooth");
}

//show and hide divs
function HideDIV(d) { document.getElementById(d).style.display = "none"; }
function DisplayDIV(d) { document.getElementById(d).style.display = "block"; }

//hide selects on dropdown menu
function hideSelects(action) { 
//documentation for this script at http://www.shawnolson.net/a/1198/hide-select-menus-javascript.html
//possible values for action are 'hidden' and 'visible'
if (action!='visible'){action='hidden';}
if (navigator.appName.indexOf("MSIE")) {
for (var S = 0; S < document.forms.length; S++){
for (var R = 0; R < document.forms[S].length; R++) {
if (document.forms[S].elements[R].options) {
document.forms[S].elements[R].style.visibility = action;
}
}
} 
}
}