<?php global $options;
		foreach ($options as $value) {
			if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; }
			  else { $$value['id'] = get_settings( $value['id'] ); }
		} ?>
		<script type="text/javascript">
		<!--
		//SuckerTree Horizontal Menu (Sept 14th, 06)
		//By Dynamic Drive: http://www.dynamicdrive.com/style/

		var menuids=["treemenu1"] //Enter id(s) of SuckerTree UL menus, separated by commas

		function buildsubmenus_horizontal(){
		for (var i=0; i<menuids.length; i++){
		  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
		    for (var t=0; t<ultags.length; t++){
				if (ultags[t].parentNode.parentNode.id==menuids[i]){ //if this is a first level submenu
					ultags[t].style.top=ultags[t].parentNode.offsetHeight+"px" //dynamically position first level submenus to be height of main menu item
					ultags[t].parentNode.getElementsByTagName("a")[0].className="mainfoldericon"
				}
				else{ //else if this is a sub level menu (ul)
				  ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it
		    	ultags[t].parentNode.getElementsByTagName("a")[0].className="subfoldericon"
				}
		    ultags[t].parentNode.onmouseover=function(){
		    this.getElementsByTagName("ul")[0].style.visibility="visible"
		    }
		    ultags[t].parentNode.onmouseout=function(){
		    this.getElementsByTagName("ul")[0].style.visibility="hidden"
		    }
		    }
		  }
		}

		if (window.addEventListener)
		window.addEventListener("load", buildsubmenus_horizontal, false)
		else if (window.attachEvent)
		window.attachEvent("onload", buildsubmenus_horizontal)
		-->
		</script>

		<div class="suckertreemenu">
			<ul id="treemenu1">

				<!-- Pages -->
				<li><a href="#"><?php echo NAV_PAGES_TITLE; ?></a>
			 		<ul>
			 			<li><a href="<?php bloginfo('url');?>"><?php echo NAV_HOME_TITLE; ?></a></li>
			 			<?php wp_list_pages('title_li=&sort_column=menu_order'); ?>
			  		</ul>
				</li>

				<!-- Latest Posts -->
				<li><a href="#"><?php echo NAV_LATEST_POSTS_TITLE; ?></a>
			 		<ul>
			 			<?php wp_get_archives('type=postbypost&limit='.$theme_latestpostslimit); ?>
			  	</ul>
				</li>

				<!-- Categories -->
				<li><a href="#"><?php echo NAV_CATEGORIES_TITLE; ?></a>
			 		<ul>
			 			<?php /* replace wp_list_cats with wp_list_categories for newer versions (if not working) */
						if($theme_categorycount == "Yes"){ wp_list_cats('optioncount=1'); }elseif($theme_categorycount == "No"){ wp_list_cats('optioncount=0'); } ?>
			  	</ul>
				</li>

				<!-- Archives -->
				<li><a href="#"><?php echo NAV_ARCHIVES_TITLE; ?></a>
			 		<ul>
			 			<?php /*change the before and after parameters for adding another content before and after the archive parts */
						wp_get_archives('type='.$theme_archivestype.'&format=custom&before=<li>&after=</li>'); ?>
			  	</ul>
				</li>

			</ul>
			<br style="clear: left;" />
		</div>
