<!--

//////////////////////////////////////////////////////////////

	function Is() {
		var agent = navigator.userAgent.toLowerCase();
		this.major = parseInt(navigator.appVersion);
		this.minor = parseFloat(navigator.appVersion);
		this.ns = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
		this.ns4b = (this.ns && (this.minor < 4.04));
		this.ns4 = (document.layers);
		this.dom = (document.getElementById);
		this.ie4 = (document.all);
		this.ns6 = ((this.ns) && (this.dom) && (this.major >= 5));
	}
	var is = new Is();

	var arrowDown = new Image();
	arrowDown.src = "../images/bg1/navleft.gif";
	var arrowRight = new Image();
	arrowRight.src = "../images/bg1/navright.gif";

		if(is.ns6)
			var openDisplay = "table-row";
		else
	        var openDisplay = "inline";

		var closedDisplay = "none";
  //      var onStyle = "oMain";
  //      var offStyle = "main";

        // expandit function
        //   calls toggleSection function after a
        //   short delay so that images display
        //   correctly
        function expandit(itemId)
        {
	        window.setTimeout("toggleSection('" + itemId + "')",4);
        }

        // toggleSection function
        //   opens or closes menu section

        function toggleSection(itemId) {
	        var arrowId = itemId.replace("Body", "Arrow");
	        var headId = itemId.replace("Body", "Head");
	        var arrow, thingy, head;

	        if (document.all) {
		        thingy = document.all[itemId];
		        head = document.all[headId];
		        arrow = document.all[arrowId];
	        }

	        if (!document.all && document.getElementById) {
		        thingy = document.getElementById(itemId);
		        head = document.getElementById(headId);
		        arrow = document.getElementById(arrowId);
	        }

	        if (thingy.style.display == closedDisplay) {
		        arrow.src = arrowDown.src;
		        thingy.style.display = openDisplay;
		        head.style.cssText = "background-color:#333333; font-weight:bold;";
	        }
	        else {
		        arrow.src = arrowRight.src;
		        thingy.style.display = closedDisplay;
		//		document.getElementById("item1_Body").style.display = "none";
		        head.style.cssText = "background-color:#333333; font-weight:normal;";
	        }
        }


//////////////////////////////////////////////////////////////

	function Is() {
		var agent = navigator.userAgent.toLowerCase();
		this.major = parseInt(navigator.appVersion);
		this.minor = parseFloat(navigator.appVersion);
		this.ns = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
		this.ns4b = (this.ns && (this.minor < 4.04));
		this.ns4 = (document.layers);
		this.dom = (document.getElementById);
		this.ie4 = (document.all);
		this.ns6 = ((this.ns) && (this.dom) && (this.major >= 5));
	}
	var is = new Is();

	function findWH()
	{
		winW = (is.ns)? window.innerWidth : document.body.offsetWidth
		winH = (is.ns)? window.innerHeight : document.body.offsetHeight
	}

	function css(id,left,top,width,height,color,vis,z,other) {
		if (id=="START") return '<STYLE TYPE="text/css">\n'
		else if (id=="END") return '</STYLE>'
		var str = (left!=null && top!=null)? '#'+id+' {position:absolute; left:'+left+'px; top:'+top+'px;' : '#'+id+' {position:relative;'
		if (arguments.length>=4 && width!=null) str += ' width:'+width+'px;'
		if (arguments.length>=5 && height!=null) {
			str += ' height:'+height+'px;'
			if (arguments.length<9 || other.indexOf('clip')==-1) str += ' clip:rect(0px '+width+'px '+height+'px 0px);'
		}
		if (arguments.length>=6 && color!=null) str += (document.layers)? ' layer-background-color:'+color+';' : ' background-color:'+color+';'
		if (arguments.length>=7 && vis!=null) str += ' visibility:'+vis+';'
		if (arguments.length>=8 && z!=null) str += ' z-index:'+z+';'
		if (arguments.length==9 && other!=null) str += ' '+other
		str += '}\n'
		return str
	}

	function writeCSS(str,showAlert) {
		str = css('START')+str+css('END')
		document.write(str)
		if (showAlert) alert(str)
	}

	function mcss(id,width,height) {
		if (id=="START") return '<STYLE TYPE="text/css">\n'
		else if (id=="END") return '</STYLE>'
//		var str = (left!=null && top!=null)? '#'+id+' {position:absolute; left:'+left+'px; top:'+top+'px;' : '#'+id+' {position:relative;'
		var str = '#'+id+'{ width:'+width+'px; height:'+height+'px; clip:rect(0px '+width+'px '+height+'px 0px);'
		str += '}\n'
		return str
	}

	function mwriteCSS(str,showAlert) {
		str = mcss('START')+str+mcss('END')
		document.write(str)
		if (showAlert) alert(str)
	}

	function sizeDiv(l)
		{
		lyr = l;
		var d = document.getElementById(lyr).style;
		var dw = parseInt(d.width);
		var dh = parseInt(d.height);
		var z = "px";

		findWH();

		if(dw != winW)
		{
			d.width = (winW-250)+z;
		}
		if(dh != winH)
		{
			d.height = (winH-180)+z;
		}
	}

function doHide(l)
{
	lyr = l;
	document.getElementById(lyr).style.visibility=false;
}

window.defaultStatus = "| Broody Designs";
//-->
