function doPop() {
  var pop = window.open("start.php","pop","status=no,toolbar=yes,location=yes,directories=yes,menubar=yes,scrollbars=yes,resizable=no,width=990,height=620")
}
function doPopBm() {
  var popBm = window.open("business_model.php","popBm","status=no,toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,resizable=no,width=800,height=600")
} 
function doPopO() {
  var popBm = window.open("organisation_model.php","popO","status=no,toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,resizable=no,width=800,height=600")
}
function showSub(id) {
  document.getElementById("navSub" + id).style.visibility = "visible";
} 
function hideSub(id) {
  document.getElementById("navSub" + id).style.visibility = "hidden";
} 
function showPict() {
  document.getElementById("rightPane").style.clip = "rect(0px 920px 620px 0px)";
} 
function hidePict() {
  document.getElementById("rightPane").style.clip = "rect(0px 920px 620px 860px)";
} 














theCat = new Array ("", "style", "power", "society", "thought", "place", "technique", "time", "money", "design", "process", "people");
theClr = new Array ("", "2E800D", "80710D", "80120D", "DF1F16", "B718BA", "EC6132", "DFC516", "A5DF16", "51DF16", "16DFD4", "3119B9");


function showObject(id) {
	if (document.getElementById("preface" + id).style.display == "" || document.getElementById("preface" + id).style.display == "none") { 
		document.getElementById("preface" + id).style.display = "block"
		document.getElementById("title" + id).style.backgroundImage = "url(img/icons/arrow_down.gif)";
	}
	else {  
		document.getElementById("preface" + id).style.display = "none"
		document.getElementById("title" + id).style.backgroundImage = "url(img/icons/arrow_up.gif)";
	}
} 
function showCluster(id) {
	if (document.getElementById("preface" + id).style.display == "" || document.getElementById("preface" + id).style.display == "none") { 
		document.getElementById("preface" + id).style.display = "block"
		document.getElementById("title" + id).style.backgroundImage = "url(img/icons/arrow_down_333.gif)";
	}
	else {  
		document.getElementById("preface" + id).style.display = "none"
		document.getElementById("title" + id).style.backgroundImage = "url(img/icons/arrow_up_333.gif)";
	}
} 
oldId = 0;

function writeCategories() {
	for (i = 1; i < theCat.length; i++) {
		///document.getElementById("categoryBox").innerHTML += "<ul><li><a href='category.php?id=" + i + "' target='_self'>" + theCat[i] + "</a><span id='block" + i +"' style='top:" + i + "px;'><img style='margin-left:6px; background-color:#" + theClr[i] + ";' src='img/fake.gif' width='8' height='8' alt='' /></span></li></ul>";
	}
	
	
	document.getElementById("categoryBox").innerHTML = "<table class='tableNav' cellpadding='0' cellspacing='0' border='0'><tr><td><img src='img/fake.gif' width='8' height='1' alt='' /></td><td><img src='img/fake.gif' width='8' height='1' alt='' /></td></tr>"
	
	for (i = 1; i < theCat.length; i++) {
		document.getElementById("categoryBox").innerHTML += "<tr><td class='txt'><a href='category.php?id=1' target='_self'>style</a></td><td bgcolor='#2E800D'></td></tr>"
	}
	
	document.getElementById("categoryBox").innerHTML += "</table>";
						
	
}


function init(catId) {
	//alert(catId)
	//writeCategories();
	
	
}

