ns4 = (document.layers)? true:false;
ns6 = ((document.getElementById) && (!document.all))?true:false;

//css('subnavproducts',winW-191,94,189,213,null,'hidden',5)+
//id - div id
//left - window width-pixel (winW-191)
//top

function css(id,left,top,width,height,color,vis,z,clip) {
	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; clip:rect(0px '+width+'px '+height+'px 0px);'
	if (arguments.length>=6 && color!=null) str += (ns4)? ' 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+';'
	str += '}\n'
	return str
}
function writeCSS(str,showAlert) {
	str = css('START')+str+css('END')
	document.write(str)
	if (showAlert) alert(str)
}


