/* DIV STLYE */

/* : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : function
- stylize div container
- passed values:
	- s = div id		[ "name" = identifer ]
	- w = width		[ "-1" = N/A | "#" = positive integer ]
	- h = height		[ "-1" = N/A | "#" = positive integer ]
	- d = display		[ "0" = N/A | "none" | "block" ]			displays container
	- v = visibility	[ "0" = N/A | "visible" | "hidden" ]		visibility of container
	- o = overflow		[ "0" = N/A | "visible" | "hidden" ]		clips container
	- p = position		[ "0" = N/A | "absolute" | "relative" ]		placement of container
	- t = top			[ "#" = integer ]
	- l = left		[ "#" = integer ]
*/
function divStyle(s, w, h, d, v, o, p, t, l) {
	if (w != -1) { var containerWidth = w + "px"; document.getElementById(s).style.width = containerWidth; }
	if (h != -1) { var containerHeight = h + "px"; document.getElementById(s).style.height = containerHeight; }
	if (d != 0) { document.getElementById(s).style.display = d; }
	if (v != 0) { document.getElementById(s).style.visibility = v; }
	if (o != 0) { document.getElementById(s).style.overflow = o; }
	if (p != 0) { document.getElementById(s).style.position = p; }
	if (t) { var containerTop = t + "px"; document.getElementById(s).style.top = containerTop; }
	if (l) { var containerLeft = l + "px"; document.getElementById(s).style.left = containerLeft; }
}

/* DIV STLYE */
