function DrawNav(Which,Level) {
	var myClass = "";
	var myLink = "";
	var Links = {
		"Home": "index",
		"Calendar": "Calendar",
		"Newsletter": "Newsletter",
		"Find a Photographer": "Photographers",
		"Membership Benefits": "Benefits",
		"Join Now": "JoinNow",
		"Documents": "Documents",
		//"Vendors": "AtWork",
		"Members Only": "MembersOnly",
		"Perspectives": "Perspectives",
		"Gallery": "Gallery",
		"Contact Us": "ContactUs"
	}
  for (var Topic in Links) {
  	if (Topic == Which) { myClass = "showItem" } else { myClass = "navItem" }
  	myLink = Links[Topic] + '.htm';
  	if (Topic == "Calendar") myLink += "#Next"
		if (Level > 0) myLink = "../" + myLink;
		if (Level > 1) myLink = "../" + myLink;
		document.write('<div class="' + myClass + '"><a href="' + myLink + '">' + Topic + '</a></div>');
		document.write('<div class="navDivider"></div>');
	}
}
function ShowGallery(Photographer,Level) {
//	dom.disable_window_open_feature.location = 0;
	var GalleryFolder = "Gallery/";
	if (Level == 1) { GalleryFolder = "../" + GalleryFolder }
	var href = GalleryFolder + Photographer + "/HTML/index.htm?3";
			imageWidth = 510; imageHeight = 390;
		  var windowWidth = imageWidth + 70, windowHeight = imageHeight + 135;
	var left = (window.screen.width - (windowWidth + 10))/2;   // plus two 5-pixel borders
	var top = (window.screen.height - (windowHeight + 50))/2;  // plus title and status bars
	window.open(href, "", "left="+left+",top="+top+",width="+windowWidth+",height="+windowHeight+",scrollbars")
}
function ShowBooklet(Photographer,Level) {
	var GalleryFolder = "Gallery/";
	if (Level == 1) { GalleryFolder = "../" + GalleryFolder }
	window.open(GalleryFolder + Photographer + "/HTML/index.htm", "", "left=0,top=0,width=830,height=590")
}
function setHeight() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  //Adjust myHeight for SONOPP pages
		myHeight = myHeight - 178;
	if (myHeight < 244) { myHeight = 244 }
	return myHeight;
}
function refresh() {
	location.href = location.href;
}
var addr = [];
addr[0] = ['Linda', 'LindasLenses', 'com'];		// President
addr[1] = ['TopDog', 'FordFamily', 'com'];		// Webmaster
addr[2] = ['prfisheye', 'aol', 'com'];				// PRFisheye
function just_decrypt(n) {
	var decrypted_string = addr[n][0] + '@' + addr[n][1] + '.' +addr[n][2];
	return decrypted_string;
}
