/*
#   Uses CSS and JavaScript to hide any elements with a class of
#   JscptHide. Useful for hiding content when JavaScript is enabled
#   and showing it when disabled.
#
#   Makes use of jQuery (http://www.jquery.com)
#
#   FUNCTIONS PROVIDED:
#
#   Part of the Collection Workflow Integration System (CWIS)
#   Copyright 2007 Internet Scout Project
#   http://scout.wisc.edu
*/

// Append style to created div (works in IE, Firefox)
JscptHide = document.createElement("div");
$(JscptHide).attr({ id: "JscptHide" });
$("body").append(JscptHide);
$("#JscptHide").html("<style type='text/css'>.JscptHide{display:none;}</style>");

// Append style element to the head (works in Safari, Firefox)
var JscptHide = document.createElement("style");
$(JscptHide).attr({ type: "text/css" });
var JscptHide_Style = document.createTextNode(".JscptHide{display:none;}");
$(JscptHide).append(JscptHide_Style);
$("head").append(JscptHide);

