	
/*
http://webdesign.html.it/articoli/leggi/528/more-nifty-corners/
*/

window.onload=function(){

  //conditional display functionality added by John Bedard 05/02/2006
  var bodyId = document.body.id;
  var bodyClass = document.body.className;
  
  if(!NiftyCheck())
      return;
    Rounded("div#content","all","#ffffff","#e4f4d6","small smooth");
    Rounded("div.buttonwrap","tl bl","#2036d9","#ffffff","big smooth");
		
		
		if (bodyClass == "homepage") {
			 Rounded("div#contentwrap","tl tr","#2036d9","#ffffff","big smooth");
		} else {
			 Rounded("div#contentwrap","tl tr","#0b1250","#ffffff","big smooth");
		}
			 Rounded("div#contentwrap","bl br","#2036d9","#ffffff","big smooth");
		
		
    // Rounded("span.button","tl bl","#ffffff","#96ce5e","small smooth");
  	if (bodyId == "announcements"){	
    	 	Rounded("span.menuannouncements","tl bl","#ffffff","#e4f4d6","small smooth");
        Rounded("span.menuinformation","tl bl","#ffffff","#96ce5e","small smooth");
        Rounded("span.menudirectory","tl bl","#ffffff","#96ce5e","small smooth");
        Rounded("span.menuevent","tl bl","#ffffff","#96ce5e","small smooth");
        Rounded("span.menucontact","tl bl","#ffffff","#96ce5e","small smooth");
  	} else if (bodyId == "information"){	
    	 	Rounded("span.menuannouncements","tl bl","#ffffff","#96ce5e","small smooth");
        Rounded("span.menuinformation","tl bl","#ffffff","#e4f4d6","small smooth");
        Rounded("span.menudirectory","tl bl","#ffffff","#96ce5e","small smooth");
        Rounded("span.menuevent","tl bl","#ffffff","#96ce5e","small smooth");
        Rounded("span.menucontact","tl bl","#ffffff","#96ce5e","small smooth");
  	} else if (bodyId == "directory"){	
    	 	Rounded("span.menuannouncements","tl bl","#ffffff","#96ce5e","small smooth");
        Rounded("span.menuinformation","tl bl","#ffffff","#96ce5e","small smooth");
        Rounded("span.menudirectory","tl bl","#ffffff","#e4f4d6","small smooth");
        Rounded("span.menuevent","tl bl","#ffffff","#96ce5e","small smooth");
        Rounded("span.menucontact","tl bl","#ffffff","#96ce5e","small smooth");
  	} else if (bodyId == "events"){	
    	 	Rounded("span.menuannouncements","tl bl","#ffffff","#96ce5e","small smooth");
        Rounded("span.menuinformation","tl bl","#ffffff","#96ce5e","small smooth");
        Rounded("span.menudirectory","tl bl","#ffffff","#96ce5e","small smooth");
        Rounded("span.menuevent","tl bl","#ffffff","#e4f4d6","small smooth");
        Rounded("span.menucontact","tl bl","#ffffff","#96ce5e","small smooth");
  	} else if (bodyId == "contact"){	
    	 	Rounded("span.menuannouncements","tl bl","#ffffff","#96ce5e","small smooth");
        Rounded("span.menuinformation","tl bl","#ffffff","#96ce5e","small smooth");
        Rounded("span.menudirectory","tl bl","#ffffff","#96ce5e","small smooth");
        Rounded("span.menuevent","tl bl","#ffffff","#96ce5e","small smooth");
        Rounded("span.menucontact","tl bl","#ffffff","#e4f4d6","small smooth");
  	} else {
    	  Rounded("span.button","tl bl","#ffffff","#96ce5e","small smooth");
  	}

}
