<!-- Email addresses
// Set email details here for use by write statement in pages
var emailWebmaster1   = '<a href=\"mailto:webmaster1@wlos.co.uk?Subject=WLOS web site feedback\">Webmaster<\/a>';
var emailWebmaster2   = '<a href=\"mailto:webmaster2@wlos.co.uk?Subject=WLOS web site feedback\">Michelle Nelson<\/a>';
var emailRehearsalTracks = '<a href=\"mailto:committee2@wlos.co.uk?Subject=Rehearsal Tracks\">Rehearsal Track Email<\/a>';

var emailEnquiries  = '<a href=\"mailto:generalenquiry@wlos.co.uk?Subject=WLOS General enquiry\">General enquiry<\/a>';
var emailTickets    = '<a href=\"mailto:tickets@wlos.co.uk?Subject=WLOS Ticket enquiry\">Ticket enquiry<\/a>';
var emailList       = '<a href=\"mailto:mail@wlos.co.uk?Subject=WLOS Mailing List\">Join mailing list<\/a>';
var emailSocial     = '<a href=\"mailto:social@wlos.co.uk?Subject=WLOS Social Committee\">Social Committee<\/a>';
var emailMembership = '<a href=\"mailto:membership@wlos.co.uk?Subject=WLOS Membership\">Membership<\/a>';

// Random images 

var indexA=1, listA = new Array()
  listA[listA.length]='/images/show_1.jpg';
  listA[listA.length]='/images/show_3.jpg';
  listA[listA.length]='/images/show_5.jpg';
  listA[listA.length]='/images/show_7.jpg';
  listA[listA.length]='/images/show_9.jpg';
  
indexA=parseInt(Math.random()*listA.length);
indexA=(isNaN(indexA))?0:indexA;

var indexB=1, listB = new Array()
  listB[listB.length]='/images/show_2.jpg';
  listB[listB.length]='/images/show_4.jpg';
  listB[listB.length]='/images/show_6.jpg';
  listB[listB.length]='/images/show_8.jpg';
  listB[listB.length]='/images/show_10.jpg';
  
indexB=parseInt(Math.random()*listB.length);
indexB=(isNaN(indexB))?0:indexB;

<!-- Set values for random images
var photoA = "<img class='img' vspace='5' alt='From one of our shows - See Photo Gallery for photographs' title='From one of our shows - See Photo Gallery for photographs' src='";
photoA += (listA[indexA]);
photoA += " '  >";
var photoB = "<img class='img' vspace='5' alt='From one of our shows - See Photo Gallery for photographs' title='From one of our shows - See Photo Gallery for photographs' src='";
photoB += (listB[indexB]);
photoB += " '  >";


<!-- by E Michael Brandt of ValleyWebDesigns.com - Please leave these comments intact.
// version 3.0.4  
function JustSoPicWindow(imageName,imageWidth,imageHeight,alt,bgcolor,hugger,hugMargin) {

	if (bgcolor=="") {
		bgcolor="#FFFFFF";
	}
	var adj=10
	var w = screen.width;
	var h = screen.height;
	var byFactor=1;

	if(w<740){
	  var lift=0.90;
	}
	if(w>=740 & w<835){
	  var lift=0.91;
	}
	if(w>=835){
	  var lift=0.93;
	}
	if (imageWidth>w){	
	  byFactor = w / imageWidth;			
	  imageWidth = w;
	  imageHeight = imageHeight * byFactor;
	}
	if (imageHeight>h-adj){
	  byFactor = h / imageHeight;
	  imageWidth = (imageWidth * byFactor);
	  imageHeight = h; 
	}
	   
	var scrWidth = w-adj;
	var scrHeight = (h*lift)-adj;

	if (imageHeight>scrHeight){
  	  imageHeight=imageHeight*lift;
	  imageWidth=imageWidth*lift;
	}

	var posLeft=0;
	var posTop=0;

	if (hugger == "hug image"){
	  if (hugMargin == ""){
	    hugMargin = 0;
	  }
	  var scrHeightTemp = imageHeight - 0 + 2*hugMargin;
	  if (scrHeightTemp < scrHeight) {
		scrHeight = scrHeightTemp;
	  } 
	  var scrWidthTemp = imageWidth - 0 + 2*hugMargin;
	  if (scrWidthTemp < scrWidth) {
		scrWidth = scrWidthTemp;
	  }
	  
	  if (scrHeight<100){scrHeight=100;}
	  if (scrWidth<100){scrWidth=100;}

	  posTop =  ((h-(scrHeight/lift)-adj)/2);
	  posLeft = ((w-(scrWidth)-adj)/2);
 	}

	if (imageHeight > (h*lift)-adj || imageWidth > w-adj){
		imageHeight=imageHeight-adj;
		imageWidth=imageWidth-adj;
	}
	posTop = parseInt(posTop);
	posLeft = parseInt(posLeft);		
	scrWidth = parseInt(scrWidth); 
	scrHeight = parseInt(scrHeight);
	
	var agt=navigator.userAgent.toLowerCase();
	if (agt.indexOf("opera") != -1){
	  var args= new Array();
	  args[0]='parent';
	  args[1]=imageName;
	  var i ; document.MM_returnValue = false;
	  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
	} else {
	newWindow = window.open("vwd_justso.htm","newWindow","width="+scrWidth+",height="+scrHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor='+bgcolor+' onBlur="self.close()" onClick="self.close()">');  
	newWindow.document.write('<table width='+imageWidth+' border="0" cellspacing="0" cellpadding="0" align="center" height='+scrHeight+' ><tr><td>');
	newWindow.document.write('<img src="'+imageName+'" width='+imageWidth+' height='+imageHeight+' alt="Click screen to close" >'); 
	newWindow.document.write('</td></tr></table></body></html>');
	newWindow.document.close();
	newWindow.focus();
	}
}

function jspw3(d,m,f){ //v1.4 
	f=f.split(',');var b=f[15],u=f[17],c=f[0],sl="_v_w_d_";var hr="jspw3_pop.htm?"+eval('escape(m.replace(/\\//g,sl))');var ret=massage(f[10],f[11],f[12],f[13],f[14],f[1],String(f[2]),b,f[6]);if(ret!=''){hr+=","+ret[0]+","+c+","+escape(f[1])+","+f[2]+","+escape(f[3])+","+escape(f[4])+","+f[6]+","+f[7]+","+f[8]+","+f[9]+","+ret[4]+","+ret[5]+","+f[16]+","+f[19]+","+eval('d.replace(/\\//g,sl)')+","+escape(f[5]);b=(b)?"yes":"no";var features="resizable=yes,scrollbars="+b+",width="+ret[0]+",height="+ret[1]+",top="+ret[2]+",left="+ret[3];if(u&&!c){window.open(hr,gJspw3nm++,features);}else{if(gJspw3Obj && typeof gJspw3Obj=='object' && !gJspw3Obj.closed)gJspw3Obj.close();gJspw3Obj=window.open(hr,gJspw3nm++,features);}}else window.open(m);document.MM_returnValue=(f[18]==3);}
//-->