function antispam(user,domain) { locationstring="mailto:"+user+"@"+domain; window.location=locationstring; }
function generateHeadline(date,headline) { document.writeln("<p class=\"news_title\"><img src=\"http://www.exit-band.com/setlists/thumbs/arrow.gif\" width=\"25\" height=\"13\" alt=\"\" /> "+date+" -- <span class=\"entry_title\">"+headline+"</span></p>"); }
function loadPhoto(pictureName) { document.photograph.src = pictureName; }
function loadPhotoAndCaption(pictureName,caption) {
	document.photograph.src = pictureName;
	var newCaptionParagraph = document.createElement("div");
	newCaptionParagraph.setAttribute("id","caption_text");
	if (captionType == "balkans") {
		var brCheck = caption.search(/<br \/>/);
		if (brCheck !== -1) {
			var captionLength = caption.length;
			var newCaptionPt1 = caption.substr(0,brCheck);
			newCaptionPt1 = document.createTextNode(newCaptionPt1);
			var newCaptionBr = document.createElement('br');
			var newCaptionPt2 = caption.substr((brCheck+6),captionLength);
			newCaptionPt2 = document.createTextNode(newCaptionPt2);
			newCaptionParagraph.appendChild(newCaptionPt1);
			newCaptionParagraph.appendChild(newCaptionBr);
			newCaptionParagraph.appendChild(newCaptionPt2);
			}
		else {
			var newCaption = document.createTextNode(caption);
			newCaptionParagraph.appendChild(newCaption);
			}
		}
	else if ((captionType == "standard")&&(caption !== "")) { var newCaption = document.createTextNode("Photograph by "+caption); }
	else if (caption == "") { var newCaption = document.createTextNode(""); }
	else if (captionType == "affa") { var newCaption = document.createTextNode("Photo by "+caption); }
	if (captionType !== "balkans") { newCaptionParagraph.appendChild(newCaption); }
	var repCaption = document.getElementById("caption_text");
	var captionParagraph = repCaption.parentNode;
	captionParagraph.replaceChild(newCaptionParagraph,repCaption);
	}
function loadPhotoCaptionAndCredit(pictureName,caption,credit,captionWidth) {
	var newCaptionParagraph = document.createElement("div");
	newCaptionParagraph.setAttribute("id","caption_text");
	var newCaptionSection = document.createElement("div");
	newCaptionSection.setAttribute("id","caption_section");
	var newCreditSection = document.createElement("div");
	newCreditSection.setAttribute("id","credit_section");
	var brCheck = caption.search(/<br \/>/);
	if (brCheck !== -1) {
		var captionLength = caption.length;
		var newCaptionPt1 = caption.substr(0,brCheck);
		newCaptionPt1 = document.createTextNode(newCaptionPt1);
		var newCaptionBr = document.createElement('br');
		var newCaptionPt2 = caption.substr((brCheck+6),captionLength);
		newCaptionPt2 = document.createTextNode(newCaptionPt2);
		newCaptionParagraph.appendChild(newCaptionSection);
		newCaptionSection.appendChild(newCaptionPt1);
		newCaptionSection.appendChild(newCaptionBr);
		newCaptionSection.appendChild(newCaptionPt2);
		}
	else {
		var newCaption = document.createTextNode(caption);
		newCaptionParagraph.appendChild(newCaptionSection);
		newCaptionSection.appendChild(newCaption);
		}
	var newCredit = document.createTextNode("Photograph by "+credit);
	if (captionType == "courtney") { newCredit = document.createTextNode("photo by "+credit); }
	if ((captionType == "courtney")&&(credit == "sixth grade yearbook")) { newCredit = document.createTextNode(credit); }
	if ((captionType == "courtney")&&(credit == "photo: me")) { newCredit = document.createTextNode(credit); }
	newCaptionParagraph.appendChild(newCreditSection);
	newCreditSection.appendChild(newCredit);
	var repCaption = document.getElementById("caption_text");
	var captionParagraph = repCaption.parentNode;
	captionParagraph.replaceChild(newCaptionParagraph,repCaption);
	document.photograph.src = pictureName;
	var textArea = document.getElementById("caption_text");
	var captionArea = document.getElementById("caption_section");
	var captionPt1Width = (captionWidth*0.6);
	var creditArea = document.getElementById("credit_section");
	var captionPt2Width = (captionWidth*0.4);
	textArea.setAttribute("style","width:"+captionWidth+"px;");
	captionArea.setAttribute("style","width:"+captionPt1Width+"px;");
	creditArea.setAttribute("style","width:"+captionPt2Width+"px;");
	}
function getImgDim() {
	var photo = document.photograph.src;
	imgDims = new Image();
	imgDims.onload = getDims;
	imgDims.src = photo;
	}
function getDims() {
	var imgWidth = imgDims.width;
	var imgHeight = imgDims.height;
	var photoLoc = document.getElementById("photograph");
	photoLoc.setAttribute("width",imgWidth);
	photoLoc.setAttribute("height",imgHeight);
	}
function sizeDiv() {
	var photo = document.photograph.src;
	divWidth = new Image();
	divWidth.onload = getWidth;
	divWidth.src = photo;
	}
function getWidth() {
	var captionWidth = divWidth.width;
	var captionArea = document.getElementById("caption_text");
	captionArea.setAttribute("style","width:"+captionWidth+"px;");
	}
var winTyp = ",scrollbars=0,status=0,top=25,left=25";
function shirtdesign(url) { window.open(url,"shirtdesign","width=600,height=277"+winTyp); }
function gallerywindow(url) { var nw=window.open(url,"photogallery","width=830,height=670"+winTyp);nw.focus(); }
function gallerywindowa(url) { var nw=window.open(url,"earlyphotogallery","width=525,height=393"+winTyp);nw.focus(); }
function balkansgallerywindow(url) { window.open(url,"balkansphotogallery","width=830,height=700"+winTyp); }
function journalimagea(url) { window.open(url,"hbalkansimage","width=397,height=600"+winTyp); }
function journalimageb(url) { window.open(url,"hbalkansimage","width=398,height=600"+winTyp); }
function journalimagec(url) { window.open(url,"vbalkansimage","width=600,height=398"+winTyp); }
function journalimaged(url) { window.open(url,"vbalkansimage","width=600,height=397"+winTyp); }
function setlist(url) { window.open(url,"setlist","width=400,height=520"+winTyp); }
function setlistthin(url) { window.open(url,"setlist","width=331,height=520"+winTyp); }
function multisetlist(url) { window.open(url,"multisetlist","width=400,height=536"+winTyp); }
function flyerpending(url) { window.open(url,"flyer","width=300,height=300"+winTyp); }
function newsimage(url) { window.open(url,"newsimage","width=600,height=400"+winTyp); }
function newsimagea(url) { window.open(url,"newsimagea","width=600,height=480"+winTyp); }
function newsimageb(url) { window.open(url,"newsimageb","width=315,height=210"+winTyp); }
function newsimagec(url) { window.open(url,"newsimagec","width=600,height=450"+winTyp); }
function newsimaged(url) { window.open(url,"newsimaged","width=600,height=375"+winTyp); }
function newsimagee(url) { window.open(url,"newsimagee","width=332,height=500"+winTyp); }
function newsimagef(url) { window.open(url,"newsimagef","width=500,height=500"+winTyp); }
function mspaper(url) { window.open(url,"newspaper","width=900,height=542"+winTyp); }
function lyricstandard(url) { window.open(url,"lyrics","width=330,height=670,scrollbars=1,status=0,top=25,left=25"); }
function heroes(url) { window.open(url,"heroes","width=1110,height=750,scrollbars=1,status=0,top=25,left=25"); }
function inspiration(url){ window.open(url,"inspiration","width=600,height=522"+winTyp); }
function equipment(url) { newwindow=window.open(url,"equipment","width=700,height=622"+winTyp); }
function concerts(url) { window.open(url,"concerts","width=700,height=700,scrollbars=1,status=0,top=25,left=25"); }
function courtneyanswer(url) { window.open(url,"courtneyanswer","width=600,height=167"+winTyp); }
function courtneywhy(url) { window.open(url,"courtneywhy","width=500,height=270"+winTyp); }
function courtneyequipment(url) { window.open(url,"courtneyanswer","width=230,height=320"+winTyp); }