var Log={elem:$("log"),
write:function(A){
	if(!this.elem){
		this.elem=$("log")
	}
	this.elem.set("html",A)}};
	function init(){
		Infovis.initLayout();
		var J={
			id:"347_0",
			name:"Barry Girsh",
			children:[
					{id:"126510_1",name:"DESIGN",data:[{key:"Barry Girsh",value:"skill set"}],
				  			children:[{id:"52163_2",name:"Goodwill Industries of Lower South Carolina",data:[{key:"DESIGN",value:"www.palmettogoodwill.org"}],
							children:[]},{id:"324134_3",name:"Goodwill Industries of the Chesapeake",data:[{key:"DESIGN",value:"www.goodwillches.org"}],
							children:[]},{id:"173871_4",name:"Goodwill Industries of Central Florida",data:[{key:"DESIGN",value:"www.goodwillcfl.org"}],
							children:[]},{id:"173871_5",name:"Rappahannock Goodwill",data:[{key:"DESIGN",value:"www.fredgoodwill.org"}],
							children:[]},{id:"173871_6",name:"School Nutrition Association of South Carolina",data:[{key:"DESIGN",value:"www.schoolnutritionsc.org"}],
							children:[]},{id:"173871_7",name:"South Carolina Sea Grant Consortium",data:[{key:"DESIGN",value:"www.scseagrant.org"}],
							children:[]},{id:"173871_8",name:"Carolina Youth Development Center",data:[{key:"DESIGN",value:"www.cydc.org"}],
							children:[]},{id:"173871_9",name:"Human Dimensions.gov Portal",data:[{key:"DESIGN",value:"www.hd.gov"}],
							children:[]},{id:"173871_10",name:"Palmetto Place Condominiums",data:[{key:"DESIGN",value:"www.palmettoplace.com"}],
							children:[]},{id:"173871_11",name:"South Carolina Aquarium - eLearning",data:[{key:"DESIGN",value:"www.scaquarium.org"}],
				  			children:[]}]
					},
				    {id:"235952_5",name:"PLANNING",data:[{key:"Barry Girsh",value:"skill set"}],
							children:[{id:"173871_9",name:"Human Dimensions.gov Portal",data:[{key:"DESIGN",value:"www.hd.gov"}],
							children:[]},{id:"173871_6",name:"School Nutrition Association of South Carolina",data:[{key:"DESIGN",value:"www.schoolnutritionsc.org"}],
							children:[]},{id:"173871_7",name:"South Carolina Sea Grant Consortium",data:[{key:"DESIGN",value:"www.scseagrant.org"}],
							children:[]},{id:"173871_11",name:"South Carolina Aquarium - eLearning",data:[{key:"DESIGN",value:"www.scaquarium.org"}],
							children:[]},{id:"177777_1",name:"Goodwill MAGIC Survey - WFD",data:[{key:"PLANNING",value:"www.palmettogoodwill.org/wfd"}],
							children:[]},{id:"177777_2",name:"Goodwill MAGIC Survey - Shopper/Donor",data:[{key:"PLANNING",value:"www.palmettogoodwill.org/wfd"}],
							children:[]},{id:"177777_3",name:"CCSD - No Child Left Behind",data:[{key:"PLANNING",value:"www.ccsdschools.com"}],
							children:[]},{id:"177777_4",name:"CCSD - PACT Scores",data:[{key:"PLANNING",value:"www.ccsdschools.com"}],
				  			children:[]}]
					},
				  {id:"235951_6",name:"PROGRAMMING",data:[{key:"Barry Girsh",value:"skill set"}],
							children:[{id:"2382_1",name:"PHP",data:[{key:"PROGRAMMING",value:"language"}],
							children:[]},{id:"2382_2",name:"HTML/XHTML",data:[{key:"PROGRAMMING",value:"language"}],
							children:[]},{id:"2382_3",name:"Javascript",data:[{key:"PROGRAMMING",value:"language"}],
							children:[]},{id:"2382_4",name:"CSS",data:[{key:"PROGRAMMING",value:"language"}],
							children:[]},{id:"2382_5",name:"ColdFusion",data:[{key:"PROGRAMMING",value:"language"}],
							children:[]},{id:"2382_6",name:"JSP",data:[{key:"PROGRAMMING",value:"language"}],
							children:[]},{id:"2382_7",name:"Microsoft SQL",data:[{key:"PROGRAMMING",value:"database"}],
							children:[]},{id:"2382_8",name:"MySQL",data:[{key:"PROGRAMMING",value:"database"}],
				 			children:[]}]},
				  {id:"235950_11",name:"COMMUNICATION",data:[{key:"Barry Girsh",value:"skill set"}],
				  			children:[{id:"1007_12",name:"Open-Door Policy",data:[{key:"COMMUNICATION",value:"tools"}],
							children:[]},{id:"327924_13",name:"Passion",data:[{key:"COMMUNICATION",value:"tools"}],
							children:[]},{id:"327924_14",name:"Empower",data:[{key:"COMMUNICATION",value:"tools"}],
							children:[]}]},
				  {id:"2396_14",name:"ORGANIZATION",data:[{key:"Barry Girsh",value:"skill set"}],
				  			children:[{id:"111111_3",name:"Sole Proprietor",data:[{key:"ORGANIZATION",value:"www.myvalueadd.com"}],
							children:[]},{id:"222222_2",name:"Multimedia Manager",data:[{key:"LEADERSHIP",value:"work experience"}],
							children:[]}]},
				  {id:"236021_26",name:"LEADERSHIP",data:[{key:"Barry Girsh",value:"skill set"}],
				  			children:[{id:"222222_1",name:"Sole Proprietor",data:[{key:"LEADERSHIP",value:"www.myvalueadd.com"}],
							children:[]},{id:"222222_2",name:"Multimedia Manager",data:[{key:"LEADERSHIP",value:"work experience"}],
							children:[]},{id:"222222_3",name:"Instructor for Egyptian Inspectors",data:[{key:"LEADERSHIP",value:"work experience"}],
							children:[]},{id:"222222_4",name:"Instructor Parsons School of Design",data:[{key:"LEADERSHIP",value:"work experience"}],
							children:[]},{id:"222222_5",name:"Technology Lead",data:[{key:"LEADERSHIP",value:"work experience"}],
				  			children:[]}]},
				  {id:"236024_27",name:"INTEGRATION",data:[{key:"Barry Girsh",value:"skill set"}],
							children:[{id:"177777_3",name:"CCSD - No Child Left Behind",data:[{key:"PLANNING",value:"www.ccsdschools.com"}],
							children:[]},{id:"322222_1",name:"Goodwill Employee Services",data:[{key:"INTEGRATION",value:"intranet"}],
							children:[]}]}],
			data:[]};var I=$("infovis");var H=I.offsetWidth,E=I.offsetHeight;var C,B,F;var D=new Canvas("mycanvas",{injectInto:"infovis",width:H,height:E,styles:{fillStyle:"#ddd",strokeStyle:"#ddd"},backgroundCanvas:{styles:{fillStyle:"#ccc",strokeStyle:"#ccc"},impl:{init:$empty,plot:function(M,L){L.beginPath();L.arc(0,0,((H<E)?H:E)/2,0,Math.PI*2,true);L.stroke();L.closePath()}}}});var G=new Hypertree(D,{onBeforeCompute:function(L){Log.write("centering")},getName:function(M,L){for(var N=0;N<M.data.length;N++){var O=M.data[N];if(O.key==L.name){return O.value}}for(var N=0;N<L.data.length;N++){var O=L.data[N];if(O.key==M.name){return O.value}}},onCreateLabel:function(N,L){var M=$(N);M.set("tween",{duration:300}).set("html",L.name).setOpacity(0.8).addEvents({click:function(O){G.onClick(M.id)},mouseenter:function(){M.tween("opacity",1)},mouseleave:function(){M.tween("opacity",0.8)}})},onPlaceLabel:function(L,O){var N=L.offsetWidth;var M=L.style.left.toInt();M-=N/2;L.style.left=M+"px"},onAfterCompute:function(){Log.write("done");var O=GraphUtil.getClosestNodeToOrigin(G.graph,"pos");var N=this;var M="<h4>"+O.name+"</h4><b>Connections:</b>";M+="<ul>";GraphUtil.eachAdjacency(O,function(P){var Q=P.nodeTo;if(Q.data&&Q.data.length>0){M+="<li>"+Q.name+' <div class="relation">(relation: '+N.getName(O,Q)+")</div></li>"}});M+="</ul>";$("inner-details").set("html",M);var L=GraphPlot;GraphUtil.eachNode(G.graph,function(P){if(P.id!=O.id&&!O.adjacentTo(P)){L.hideLabel(P)}})}});G.loadTreeFromJSON(J);G.refresh();var A=$("mycanvas");var K=D.getSize();A.addEvent("click",function(M){var N=A.getPosition();var L=Math.min(K.width,K.height)/2;G.move({x:(M.page.x-N.x-K.width/2)/L,y:(M.page.y-N.y-K.height/2)/L})});G.controller.onAfterCompute()};