Event.observe(window, 'load', qplLoad);

function qplLoad(){
	setQPLLeftNav();
	setQPLNav();
 fixQPLBox( $("qpl_nav") );
 fixQPLBox( $("qpl_left_nav")  );
	
}

function fixQPLBox(box){
	 box.up().setStyle({margin: "0px !important", padding: "0px !important"});
	 box.up().up().setStyle({margin: "0px !important", padding: "0px !important"});
	 box.up().up().up().setStyle({margin: "0px !important", padding: "0px !important"});
	 box.up().up().up().up().setStyle({margin: "0px !important", padding: "0px !important"});;
	 box.up().up().up().up().up().setStyle({margin: "0px !important", padding: "0px !important"});
	 var qpl_uls = box.childElements();
	 var qpli = 0;

	 qpl_uls.each(function(i){
	  if(qpli > 0)
	   i.setStyle({padding: "3px 0px 0px 0px !important"});
	  qpli++;
	 });
 }
 
 function setQPLLeftNav(){
	$('qpl_left_nav').innerHTML = '<ul><li><b>August 5-6, 2008</b><br />\
	<a href="http://www.spacesensorworkshop.com" target="_blank">Space  Sensors and Measurement Techniques</a>, Nashville, TN </li>\
  	</ul>';
 
 }
 
 function setQPLNav(){
 		$('qpl_nav').innerHTML = '<ul> \
			 <li class="qpl_bb"><a href="/centers/ames/research/qpl/index.html">NAQL HOME</a></li>\
			 <li class="qpl_bb"><a href="/centers/ames/research/qpl/research-index.html">QUANTUM RESEARCH</a><br />\
			   <ul class="qpl_nav_inner">\
			    <li class="qpl_bb"><a href="/centers/ames/research/qpl/metrology-index.html">Metrology</a></li>\
			    <li class="qpl_bb"><a href="/centers/ames/research/qpl/non-linear-index.html">Non-Linear Systems</a></li>\
			    <li class="qpl_bb"><a href="/centers/ames/research/qpl/optics-index.html">Optics & Laser Physics</a></li>\
			    <li class="qpl_bb"><a href="/centers/ames/research/qpl/silicon-devices-index.html">Silicon Based Devices</a></li>\
			    <li class="qpl_bb"><a href="/centers/ames/research/qpl/algorithms-index.html">Quantum Algorithms</a></li>\
			    <li><a href="/centers/ames/research/qpl/many-body-index.html">Many Body Systems & Entanglement</a></li>\
			   </ul>\
			 </li>\
			 <li class="qpl_bb"><a href="/centers/ames/research/qpl/people-index.html">PEOPLE</a><br />\
			   <ul class="qpl_nav_inner">\
			    <li class="qpl_bb"><a href="/centers/ames/research/qpl/durkin-index.html">Dr. Gabriel Durkin</a><br /><span class="qpl_sub">Lab Coordinator</span></li>\
			    <li class="qpl_bb"><a href="http://www.ipt.arc.nasa.gov/smelyanskiy.html" target="_blank">Dr. Vadim Smelyanskiy</a><br /><span class="qpl_sub">Theory Lead</span></li>\
			    <li><a href="/centers/ames/research/qpl/spillane-index.html">Dr. Sean Spillane</a><br /><span class="qpl_sub">Experimental Lead</span></li>\
			  </ul>\
			 </li>\
			 <li class="qpl_bb"><a href="/centers/ames/research/qpl/events-index.html">EVENTS</a><br />\
			   <ul class="qpl_nav_inner">\
			    <li class="qpl_bb"><a href="/centers/ames/research/qpl/conferences-index.html">Conferences</a></li>\
			    <li><a href="/centers/ames/research/qpl/visitors-index.html">Visitors</a></li>\
			  </ul>\
			 </li>\
			<li class="qpl_bb"><a href="/centers/ames/research/qpl/opportunities-index.html">OPPORTUNITIES</a></li>\
			<li class="qpl_bb"><a href="/centers/ames/research/qpl/publications-index.html">PUBLICATIONS</a></li>\
			<li><a href="/centers/ames/research/qpl/web-links-index.html">QUANTUM ON THE WEB</a></li>\
			</ul>';

 }







