////////////////////////////////////////
//// Start of No Right Click Script ////
////////////////////////////////////////
/***********************************************
* Modified : 11/02/04 RDG - Added call to initializedrag from the Thumbnail script
***********************************************/
function NoRightClick(Button)
	{
	if (document.all)
		{
		if (event.button == 1)
			{
			if (ie&&event.srcElement.id=="dragbar"||ns6&&e.target.id=="dragbar"){
				document.onmousedown=initializedrag;
				}
			}
		if (event.button == 2)
			{
			alert(message);
			return false;
			}
		}
	if (document.layers)
		{
		if (event.button == 1)
			{
			if (ie&&event.srcElement.id=="dragbar"||ns6&&e.target.id=="dragbar"){
				document.onmousedown=initializedrag;
				}
			}
		if (event.button == 3)
			{
			alert(message);
			return false;
			}
		}
	}

if (document.layers)
	{
	document.captureEvents(Event.MOUSEDOWN);
	}
//////////////////////////////////////
//// End of No Right Click Script ////
//////////////////////////////////////

////////////////////////////////
//// Start of GoBack Script ////
////////////////////////////////
function GoBack()
	{
	history.back()
	}

//////////////////////////////
//// End of GoBack Script ////
//////////////////////////////

///////////////////////////////////////
//// Start of Change Screen Script ////
///////////////////////////////////////
function changescreen(){
	// start browser check
	if(document.images) { 
		blank1 = new Image;
		counter1 = new Image;
		counter2 = new Image;  
		swap1 = new Image;  
		swap2 = new Image;  
		swap3 = new Image;  
		swap4 = new Image;  
		swap5 = new Image;  
		swap6 = new Image;  
		swap7 = new Image;  
		swap8 = new Image;  
		swap9 = new Image;  
		swap10 = new Image;  
		swap11 = new Image;  
	
	// source images
		blank1.src = "Brospics//logo_bros.gif";
		swap1.src = "Brospics//x_bells_01.gif";
		swap2.src = "Brospics//x_bells_02.gif"; 
		counter1.src = "Brospics//back.gif";
		counter2.src = "http://counter.digits.com/wc/-d/4/-z/-c/20/broshits"; 
	}
	
	// load screens
	        
	blank = new Image(117,38);
	logo = new Image(117,38);
	header = new Image(117,38);
	counterscrn = new Image(117,38);
	
	blank.src = "Brospics//back.gif";
	logo.src = "Brospics//logo_bros.gif";
	swap1.src = "Brospics//logo_bros.gif";
	swap2.src = "Brospics//icon_noda.gif";
	swap3.src = "Brospics//icon_prod.gif";
	swap4.src = "Brospics//icon_news.gif";
	swap5.src = "Brospics//icon_memb.gif";
	swap6.src = "Brospics//icon_past_ani.gif";
	swap7.src = "Brospics//icon_tick_ani.gif";
	swap8.src = "Brospics//icon_newm.gif";
	swap9.src = "Brospics//icon_comm.gif";
	swap10.src = "Brospics//icon_cont_ani.gif";
	swap11.src = "Brospics//icon_book.gif";
	
	// Christmas Only
	//swap1.src = "Brospics//x_tree_01.gif"; 
	//swap2.src = "Brospics//x_tree_02.gif"; 
	//swap3.src = "Brospics//x_tree_03.gif";
	//swap4.src = "Brospics//x_tree_04.gif"; 
	//swap5.src = "Brospics//x_tree_05.gif";
	//swap6.src = "Brospics//x_tree_06.gif"; 
	//swap7.src = "Brospics//x_tree_07.gif";
	//swap8.src = "Brospics//x_tree_08.gif"; 
	//swap9.src = "Brospics//x_tree_09.gif";
	//swap10.src = "Brospics//x_cand_01.gif"; 
	//swap11.src = "Brospics//x_SnowDome_01.gif";
	
	counterscrn.src = "pictures/fun/eddani.gif";
}
//////////////////////////////
//// End of Screen Script ////
//////////////////////////////

///////////////////////////////////
//// Start of Thumbnail Script ////
///////////////////////////////////
/***********************************************
* Image Thumbnail viewer- © Dynamic Drive (www.dynamicdrive.com)
* Last updated Sept 26th, 03'. This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var ie=document.all
var ns6=document.getElementById&&!document.all

function ietruebody(){
	return (document.compatMode && document.compatMode!="BackCompat" && !window.opera)? document.documentElement : document.body
}

function enlarge(which, e, position, imgwidth, imgheight){
	if (ie||ns6){
		crossobj=document.getElementById? document.getElementById("showimage") : document.all.showimage
		if (position=="center"){
			pgyoffset=ns6? parseInt(pageYOffset) : parseInt(ietruebody().scrollTop)
			horzpos=ns6? pageXOffset+window.innerWidth/2-imgwidth/2 : ietruebody().scrollLeft+ietruebody().clientWidth/2-imgwidth/2
			vertpos=ns6? pgyoffset+window.innerHeight/2-imgheight/2 : pgyoffset+ietruebody().clientHeight/2-imgheight/2
			if (window.opera && window.innerHeight) //compensate for Opera toolbar
				vertpos=pgyoffset+window.innerHeight/2-imgheight/2
				vertpos=Math.max(pgyoffset, vertpos)
		}
		else{
			var horzpos=ns6? pageXOffset+e.clientX : ietruebody().scrollLeft+event.clientX
			var vertpos=ns6? pageYOffset+e.clientY : ietruebody().scrollTop+event.clientY
		}
		crossobj.style.left=horzpos+"px"
		crossobj.style.top=vertpos+"px"

		crossobj.innerHTML='<div align="right" id="dragbar"><span id="closetext" onClick="closepreview()">Close</span></DIV><div align="center" id="infobar"><span id="infotext">Click and drag gray bar<BR>above to move picture</span></div><img src="'+which+'">'
		crossobj.style.visibility="visible"
		return false
	}
	else //if NOT IE 4+ or NS 6+, simply display image in full browser window
		return true
}

function closepreview(){
	crossobj.style.visibility="hidden"
}

function drag_drop(e){
	if (ie&&dragapproved){
		crossobj.style.left=tempx+event.clientX-offsetx+"px"
		crossobj.style.top=tempy+event.clientY-offsety+"px"
	}
	else if (ns6&&dragapproved){
		crossobj.style.left=tempx+e.clientX-offsetx+"px"
		crossobj.style.top=tempy+e.clientY-offsety+"px"
	}
	return false
}

function initializedrag(e){
	if (ie&&event.srcElement.id=="dragbar"||ns6&&e.target.id=="dragbar"){
		offsetx=ie? event.clientX : e.clientX
		offsety=ie? event.clientY : e.clientY

		tempx=parseInt(crossobj.style.left)
		tempy=parseInt(crossobj.style.top)

		dragapproved=true
		document.onmousemove=drag_drop
	}
}

//// The following lines should be placed in the HEAD section between SCRIPT tags////
//// document.onmousedown=initializedrag
//// document.onmouseup=new Function("dragapproved=false")
/////////////////////////////////
//// End of Thumbnail Script ////
/////////////////////////////////

/////////////////////////////////////////
//// Start of Fixed Background Image ////
/////////////////////////////////////////
function xSetBackGround(WhichPic){
	if (document.all||document.getElementById)
		document.body.style.background="url('images/drood2.jpg') white center no-repeat fixed"
}
///////////////////////////////////////
//// End of Fixed Background Image ////
///////////////////////////////////////

////////////////////////////////////////
//// Start of Highlight Table Cells ////
////////////////////////////////////////
var ns6=document.getElementById&&!document.all
var ie=document.all

function changeto(e,highlightcolor){
	source=ie? event.srcElement : e.target
	if (source.tagName=="TR"||source.tagName=="TABLE")
		return
	while(source.tagName!="TD"&&source.tagName!="HTML")
		source=ns6? source.parentNode : source.parentElement
		if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
			source.style.backgroundColor=highlightcolor
}

function contains_ns6(master, slave) { //check if slave is contained by master
	while (slave.parentNode)
		if ((slave = slave.parentNode) == master)
		return true;
	return false;
}

function changeback(e,originalcolor){
	if(ie&&(event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")||source.tagName=="TR"||source.tagName=="TABLE")
		return
	else if(ns6&&(contains_ns6(source, e.relatedTarget)||source.id=="ignore"))
		return
	if(ie&&event.toElement!=source||ns6&&e.relatedTarget!=source)
		source.style.backgroundColor=originalcolor
}
//////////////////////////////////////
//// End of Highlight Table Cells ////
//////////////////////////////////////

//////////////////////////////////////
//// Start of Offset Descriptions ////
//////////////////////////////////////
function changetext(whichcontent){
	if (document.all||document.getElementById){
		cross_el=document.getElementById? document.getElementById("descriptions"):document.all.descriptions
		cross_el.innerHTML='<font face="Verdana"><small>'+whichcontent+'</small></font>'
	}
	else if (document.layers){
		document.d1.document.d2.document.write('<font face="Verdana"><small>'+whichcontent+'</small></font>')
		document.d1.document.d2.document.close()
	}
}

////////////////////////////////////
//// End of Offset Descriptions ////
////////////////////////////////////



//write meta tags ...........................................................................................//
function writeMETA(){
document.writeln('<meta http-equiv="reply-to" content="rdg'+'@'+'worldonline.co.uk">');
document.writeln('<meta http-equiv="content-style-type" content="text/css">');
document.writeln('<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">');
document.writeln('<meta http-equiv="imagetoolbar" content="no">');
document.writeln('<meta name="description" content="BROS Musical Productions is an amateur musical theatre company based in the south of England">');
document.writeln('<meta name="keywords" CONTENT=" BROS Musical Productions Bognor Regis Operatic Society opera musicals musical theatre amateur operetta show amdram drama dance bognor regis operatic society BROS bros b.r.o.s.">');
document.writeln('<meta name="revisit-after" content="15 days">');
document.writeln('<meta name="category" content="Business page, Link page, Home page">');
document.writeln('<meta name="Author" content="Richard Greenhorn">');
document.writeln('<meta name="Copyright" content="(c)2000 RDG">');
document.writeln('<meta name="Creator" content="Richard Greenhorn">');
document.writeln('<meta name="Publisher" content="Richard Greenhorn">');
document.writeln('<meta name="Distribution" content="Global">');
document.writeln('<meta name="Rating" content="General">');
document.writeln('<meta name="Robots" content="All">');
document.writeln('<link rel=stylesheet href="styles/bros01.css" type="text/css" title="24-bit Color Style">');
document.writeln('<\/head>');
}

//write bottom of the links page ...........................................................................................//
function writeBOTTOM(){
document.writeln('<p><center><font face="Arial, Helvetica, sans-serif" color="#000000" size="1"><a id=sub1 href="#formit" title="click here to send the author a comment suggestion or error report" onmousedown="document.all.comment.style.display=document.all.comment.style.display==');
document.writeln(" 'none' ? ");
document.writeln("'' :");
document.writeln(" 'none'");
document.writeln('" style="width=150px;text-align:center;">comment on the<br>'+self.document.title+' page<\/a><\/center><font face="Arial, Helvetica, sans-serif" color="#000000" size="2">');
document.writeln('<a name="formit"><\/a><SPAN id="comment" style="display:none;">');
document.writeln('<form action="http://www.eluk.co.uk/formmail/formmail.cgi" method="post">');
document.writeln('<fieldset style="border:thin inset #ffffaa"><legend accesskey=i>Rate this page</legend>');
document.writeln('<center>&nbsp;&nbsp;&nbsp;&nbsp;bad&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;good&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;excelent<br><input type=radio name=rate value=0>');
document.writeln('<input type=radio name=rate value=1>');
document.writeln('<input type=radio name=rate value=2>');
document.writeln('<input type=radio name=rate value=3>');
document.writeln('<input type=radio name=rate value=4>');
document.writeln('<input type=radio name=rate value=5>');
document.writeln('<input type=radio name=rate value=6>');
document.writeln('<\/center></fieldset><p id=info>');
document.writeln('<font size=4 color=#ff00ff>'+self.document.title+'</font>');
document.writeln('<input type="hidden" name="recipient" value="richard.greenhorn'+'@'+'the-body-shop.com">');
document.writeln('<input type="hidden" name="subject" value="add link to:">');
document.writeln('<input type="hidden" name="location" value="'+self.location+'">');
document.writeln('<input type="hidden" name="page title" value="'+self.document.title+'"><br>');
document.writeln('your full name<br><input class="msubmit" name="realname" type="textbox" value=""><br>');
document.writeln('your email address<br><input class="msubmit" name="email" type="textbox" value=""> <br>');
document.writeln('Please select a subject for this message<br>');
document.writeln('<select class="msubmit" name="subject">');
document.writeln('<option class="msubmit" value="">');
document.writeln('<option class="msubmit" value="correction report from html help">Correction');
document.writeln('<option class="msubmit" value="suggestion report from html help">Suggestion');
document.writeln('<option class="msubmit" value="error report from html help">Error report');
document.writeln('<\/select><br>');
document.writeln('Comment:<br>');
document.writeln('<textarea class="msubmit" name="message" wrap="physical" cols="28" rows="4"><\/textarea><p id=info2>');
document.writeln('thank you for taking the time to fill out this form. <br>');
document.writeln('Please click submit once only.<br>');
document.writeln('your comment will be looked into shortly<\/p>');
document.writeln('<input class="mbutton1" type="submit" value="Submit">');
document.writeln('<\/form>');
document.writeln('or e-mail <a href="mailto:richard.greenhorn'+'@'+'the-body-shop.com?subject='+self.document.title+'">richard.greenhorn'+'@'+'the-body-shop.com<\/a><\/span>');
var NewDate=new Date();
var NewYear=NewDate.getYear();
document.write('</td></tr></table><center><div id=botbar><div id=botbartext><center>Code and content &copy; 1993 - '+NewYear+' eluk</center></div></div>');
document.writeln('<\/td><\/tr><\/table><\/body><\/html>');
}

function writeTITLE(){
	window.status="Welcome to the '"+self.document.title+"' page";
}

function writeTITLE2(){
	document.writeln("<a class=BROSNormalTitle>");
	document.write(self.document.title);
	document.writeln("</a>");
}

////////////////////////////////////////////
//// Start of Site Last Modified Script ////
////////////////////////////////////////////
var sitelastmod = document.lastModified;
var sitelastmodtime = sitelastmod.substring(20, 11);
var sitelastmodday = sitelastmod.substring(5, 3);
var sitelastmodmon = sitelastmod.substring(0, 2);
var sitelastmodyear = sitelastmod.substring(10, 6);
var sitespace = " ";
var siteslash = "/";
var sitedash = "-";
var sitea = "Site last updated ";
var sitep = sitea.length;

function SiteLastMod(){
	document.writeln("<CENTER>");
	document.write(sitea.substring(sitep, 0) + sitelastmodday + sitedash + sitelastmodmon + sitedash + sitelastmodyear + sitespace + sitelastmodtime);
	document.writeln("</CENTER>");
}
//////////////////////////////////////////
//// End of Site Last Modified Script ////
//////////////////////////////////////////

////////////////////////////////////////////
//// Start of Page Last Modified Script ////
////////////////////////////////////////////
var pagelastmod = document.lastModified;
var pagelastmodtime = pagelastmod.substring(20, 11);
var pagelastmodday = pagelastmod.substring(5, 3);
var pagelastmodmon = pagelastmod.substring(0, 2);
var pagelastmodyear = pagelastmod.substring(10, 6);
var pagespace = " ";
var pageslash = "/";
var pagedash = "-";
var pagea = "Page last updated ";
var pagep = pagea.length;

function PageLastMod(){
	document.writeln("<a class=BROSNormalDate>");
//	document.write(pagelastmod + pagespace + pagea.substring(pagep, 0) + pagelastmodday + pagedash + pagelastmodmon + pagedash + pagelastmodyear + pagespace + pagelastmodtime);
	document.write(pagea.substring(pagep, 0) + pagelastmod);
	document.writeln("</a>");
}
//////////////////////////////////////////
//// End of Page Last Modified Script ////
//////////////////////////////////////////

////////////////////////////////
//// Start of E Mail Script ////
////////////////////////////////
var first = 'ma';
var second = 'il';
var third = 'to:';

function WriteEMail(EMAddress, EMSubject, EMDomain, EMExt){
	if(EMAddress==""){
		var EMAddress = 'info'
		}
	if(EMSubject==""){
		var EMSubject = 'Info'
		}
	if(EMDomain==""){
		var EMDomain = 'bros.fsnet.co'
		}
	if(EMExt==""){
		var EMExt = 'uk'
		}
	document.write('<a href="');
	document.write(first+second+third);
	document.write(EMAddress);
	document.write('&#64;');
	document.write(EMDomain);
	document.write('.');
	document.write(EMExt);
	document.write('?subject=');
	document.write(EMSubject);
	document.write('" class="mailadd">');
	document.write('E-Mail</a>');
}
//////////////////////////////
//// End of E Mail Script ////
//////////////////////////////

//////////////////////////////
//// Start of Date Script ////
//////////////////////////////
var_date = new Date();
day = var_date.getDay();
date = var_date.getDate();
month = var_date.getMonth();
function WriteDate(){
	if (day == 0) {day = "Sunday"}
	else if (day == 1) {day = "Monday"}
	else if (day == 2) {day = "Tuesday"}
	else if (day == 3) {day = "Wednesday"}
	else if (day == 4) {day = "Thursday"}
	else if (day == 5) {day = "Friday"}
	else {day = "Saturday"}
	if (date == 1) {date = "1st"}
	else if (date == 2) {date = "2nd"}
	else if (date == 3) {date = "3rd";}
	else if (date == 21) {date = "21st";}
	else if (date == 22) {date = "22nd";}
	else if (date == 23) {date = "23rd";}
	else if (date == 31) {date = "31st";}
	else {date = date + "th";}
	if (month == 0 & date == "1st") {day = "Happy"; date="New" ; month="Year";}
	else if (month == 0) {month = "January"}
	else if (month == 1) {month = "February"}
	else if (month == 2) {month = "March"}
	else if (month == 3) {month = "April"}
	else if (month == 3 & date == "14th") {day="Good"; date=" "; month="Friday";}
	else if (month == 3 & date == "16th") {day="Happy"; date=" "; month="Easter";}
	else if (month == 3 & date == "17th") {day="Easter"; date=" "; month="Monday";}
	else if (month == 4) {month = "May"}
	else if (month == 5) {month = "June"}
	else if (month == 6) {month = "July"}
	else if (month == 7) {month = "August"}
	else if (month == 8) {month = "September"}
	else if (month == 9) {month = "October"}
	else if (month == 10) {month = "November"}
	else if (month == 11 & date == "24th") {day = "Christmas Eve"; month="December";}
	else if (month == 11 & date == "25th") {day = "Merry"; date=" " ; month="Christmas";}
	else if (month == 11 & date == "26th") {day = "Boxing Day"; month="December";}
	else if (month == 11 & date == "31st") {day = "New Year's Eve"; month="December";}
	else if (month == 11) {month = "December"}
	document.writeln("<a class=BROSNormalDate>");
	document.write(day + " " + date + " " + month)
	document.writeln("</a>");
}
////////////////////////////
//// End of Date Script ////
////////////////////////////
