var jsmenu={"links":
[
		{	"label":"Home",
		"url":"http://www.paxtonprints.com/",
		"title":"",
		"links":[		    
        			    
		    {
				"label":"About",
				"url":"http://paxtonprints.com/index.php?x=about",
				"title":"",
				"links":""
				},
				{"label":"Contact","url":"http://www.paxtonprints.com/contact/contact_form.php",
        "title":"",
        "links":""
				},        
				{
				"label":"Paxton Portraits","url":"http://www.paxtonportraits.com/",
        "title":"",
        "links":""
				},
        {
				"label":"Our Blog","url":"http://paxtonportraits.com/photos/",
        "title":"",
        "links":""
				},     
				{
				"label":"Facebook","url":"http://www.facebook.com/pages/Marysville-WA/Paxton-Portraits/140984006144?ref=mf",
        "title":"",
        "links":""
				}   
			]
	},
	
	{	"label":"Gallery",
		"url":"http://www.paxtonprints.com/index.php?x=gallery",
		"title":"",
		"links":
		[		    
        			    
		    {"label":"Urban","url":"http://paxtonprints.com/index.php?x=the_least_of_these","title":""},
		    {"label":"Landscape","url":"http://paxtonprints.com/index.php?x=browse&category=4&pagenum=1","title":""},
		    {"label":"Nighttime","url":"http://paxtonprints.com/index.php?x=browse&category=12&pagenum=1","title":""},
		    {"label":"Favorites","url":"http://paxtonprints.com/index.php?x=browse&category=7&pagenum=1","title":""},
		    {"label":"Full Gallery","url":"http://paxtonprints.com/index.php?x=browse&category=&pagenum=1","title":""}
			]
	},
	
	{	
		"label":"Guestbook",
		"url":"http://www.paxtonprints.com/guestbook/view.php",
		"title":"",
		"links":
		[		      			    
		    {"label":"View","url":"http://www.paxtonprints.com/guestbook/view.php","title":""},
		    {"label":"Sign","url":"http://www.paxtonprints.com/guestbook/sign.php","title":""}       
		]
	},
	{	
		"label":"Learning",
		"url":"http://www.paxtonprints.com/index.php?x=tutorials",
		"title":"",
		"links":
		[		     
				{"label":"Tutorials","url":"http://www.paxtonprints.com/index.php?x=tutorials","title":""},	    
        {"label":"Featured Artists","url":"http://www.paxtonprints.com/index.php?x=featured_photographers","title":""},
		    {"label":"Get Featured","url":"http://www.paxtonprints.com/index.php?x=get_featured","title":""},
		    {"label":"Contribute","url":"http://www.paxtonprints.com/index.php?x=contribute","title":""}   
		]
	},
	
	{	"label":"Forums",
		"url":"http://www.paxtonprints.com/forums/index.php",
		"title":"",
		"links":
		[		      			    
		    {"label":"View","url":"http://www.paxtonprints.com/forums/index.php","title":""},
        {"label":"Login","url":"http://www.paxtonprints.com/forums/ucp.php?mode=login","title":""},
        {"label":"Register","url":"http://www.paxtonprints.com/forums/ucp.php?mode=register","title":""}
		]
				
	},
	{	"label":"Purchase",
		"url":"http://www.paxtonprints.com/index.php?x=purchase",
		"title":"",
		"links":[		    
        			    
		    {
				"label":"General Info",
				"url":"http://paxtonprints.com/index.php?x=purchase",
				"title":"",
				"links":""
				},
		  	
		  	{"label":"Old Buildings","url":"http://paxtonprints.com/lightbox/old_buildings_1.html","title":"","links":
				[
					{"label":"Gallery One","url":"http://paxtonprints.com/lightbox/old_buildings_1.html","title":""},
					{"label":"Gallery Two","url":"http://paxtonprints.com/lightbox/old_buildings_2.html","title":""},
					{"label":"Gallery Three","url":"http://paxtonprints.com/lightbox/old_buildings_3.html","title":""},
					{"label":"Gallery Four","url":"http://paxtonprints.com/lightbox/old_buildings_4.html","title":""}
				]
				
				},
        {"label":"Landscapes","url":"http://paxtonprints.com/lightbox/landscape_1.html","title":"","links":
				[
					{"label":"Gallery One","url":"http://paxtonprints.com/lightbox/landscape_1.html","title":""},
					{"label":"Gallery Two","url":"http://paxtonprints.com/lightbox/landscape_2.html","title":""},
					{"label":"Gallery Three","url":"http://paxtonprints.com/lightbox/landscape_3.html","title":""}
				]
        },
				{
				"label":"Nighttime","url":"http://paxtonprints.com/lightbox/nighttime_1.html","title":"","links":
				[
					{"label":"Gallery One","url":"http://paxtonprints.com/lightbox/nighttime_1.html","title":""}
				]
				},
		    
		    {
				"label":"Urban Portraits","url":"http://paxtonprints.com/lightbox/urban_1.html","title":"","links":
				[
					{"label":"Gallery One","url":"http://paxtonprints.com/lightbox/urban_1.html","title":""},
					{"label":"Gallery Two","url":"http://paxtonprints.com/lightbox/urban_2.html","title":""},
					{"label":"Gallery Three","url":"http://paxtonprints.com/lightbox/urban_3.html","title":""}
				]				
				}
			]

	}
]
};


function ShowMenu(iIndex){
return;

var str=navigator.userAgent;
if (str.indexOf('MSIE 6.0') > 0) {
	HideMenu();
	var obj;
	obj = document.getElementById("sub_" + iIndex);
	if (obj) 
		obj.style.display = 'block';
}
}
function HideMenu(){
return;

var str=navigator.userAgent;
if (str.indexOf('MSIE 6.0') > 0) {
	var obj;
	for (var i = 0; i < jsmenu.links.length - 1; i++) {
		obj = document.getElementById("sub_" + i);
		if (obj) 
			obj.style.display = 'none';
	}
}
}
function GenerateMenuAnchor(obj,clss,iIndex){
return '<a href="' + obj.url + '" title="' + obj.title + '" class="' + clss + '" onmouseover="ShowMenu(' + iIndex + ');">&raquo; ' + obj.label + ' &laquo;</a>' + GenerateSubMenu(obj,iIndex);
}
function GenerateDropAnchor(obj,clss){
return '<a href="' + obj.url + '" title="' + obj.title + '" class="' + clss + '"> ' + obj.label + ' </a>';
}
function GenerateSubMenu(obj,iIndex){
if (!obj.links || obj.links.length == 0) {
	return '';
}

var tmp='';
var st='dropdown';
if (obj.links.length==0){st='full';}
for(var i=0;i<obj.links.length;i++){
	st='dropdown';
	tmp+='<li style="list-style: none;">' + GenerateDropAnchor(obj.links[i],st);

	//do subs
	if(obj.links[i].links){
		if(obj.links[i].links.length==1){st='full';}
		tmp+='<ul>';
		for(var j=0;j<obj.links[i].links.length;j++){
			if(j==0){st='full';}
			if(j>=1){st='dropdown';}
			if(obj.links[i].links.length==1){st='full';}
			tmp+='<li>' + GenerateDropAnchor(obj.links[i].links[j],st) + '</li>';
		}
		tmp+='</ul>';
	}
	tmp+='</li>';
}

if (tmp.length > 0) {return '<ul id="sub_' + iIndex + '" onclick="HideMenu();">' + tmp + '</ul>';}
return '';
}
function GenerateMenu()
{
var obj=document.getElementById("menu");
if(obj){
	var menuitem=jsmenu.links[0];
	obj.innerHTML='<ul><li style="list-style: none;">' + GenerateMenuAnchor(menuitem,'left',0) + '</li></ul>';
	
	for(var i=1;i<jsmenu.links.length-1;i++){
		menuitem=jsmenu.links[i];
		obj.innerHTML+='<ul><li class="left" style="list-style: none;">' + GenerateMenuAnchor(menuitem,'middle',i) + '</li></ul>';
	}
	
	menuitem=jsmenu.links[jsmenu.links.length-1];
	obj.innerHTML+='<ul><li style="list-style: none;">' + GenerateMenuAnchor(menuitem,'right',jsmenu.links.length-1) + '</li></ul>';
	
	//window.alert(obj.innerHTML);
}
}

GenerateMenu();
