///////////////////////////// resettable variables


var showNextYearYet = "no";

var featuredPropsArray = new Array(205,110,115,108,107,208,195,244);
// NEVER GO BELOW 4!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


//Burlorne : 205
//Penkivel House : 110
//Farmhouse : 115
//Ridgewood : 108
//Drishti: 107
//Sea Mist (new property uploaded)
//5 Pentire Rocks : 208
//Jalousie : 195
//Summerhouse : 244




////////////////////////////// cookies

// tests for cookies enabled
var cookieEnabled = false;
if (typeof document.cookie == "string") {
	if (document.cookie.length == 0) {
		setCookie("rockctest", "CA14543957437589758584754789574985784758");
		var rockctestRead = getCookie("rockctest");
		if (rockctestRead == "CA14543957437589758584754789574985784758") {
			cookieEnabled = true;
		}
		else {
			cookieEnabled = false;
		}
	}
	else {
		setCookie("rockctestRead", "CA14543957437589758584754789574985784758");
		cookieEnabled = true;
	}
}




function getCookieVal(offset) {
	var endstr = document.cookie.indexOf(";", offset);
	if (endstr == -1) {
		endstr = document.cookie.length;
	}
	return unescape(document.cookie.substring(offset, endstr));
}




function getCookie(name) {
	var arg = name + "=";
	var alen = arg.length;
	var clen = document.cookie.length;
	var i = 0;
	while (i < clen) {
		var j = i + alen;
		if (document.cookie.substring(i, j) == arg) {
			return getCookieVal(j);
		}
		i = document.cookie.indexOf(" ", i) + 1;
		if (i == 0) break;
	}
	return "";
}



function setCookie(name, value) {
	var exp = new Date(); // to fix bug with Safari
	exp.setTime(exp.getTime() + 86400000); // longer : 995000000
	var expires = true;
	var path = false;
	var domain = false;
	var secure = false;

	document.cookie = name + "=" + escape (value) +
		((expires) ? "; expires=" + exp.toGMTString() : "") +
		((path) ? "; path=" + path : "") +
		((domain) ? "; domain=" + domain : "") +
		((secure) ? "; secure" : "");
}


function deleteCookie(name,path,domain) {
	if (getCookie(name)) {
		document.cookie = name + "=" +
			((path) ? "; path=" + path : "") +
			((domain) ? "; domain=" + domain : "") +
			"; expires=Thu, 01-Jan-70 00:00:01 GMT";

	}
}


function cookiesNotOnMessage() {
//
}




//////////////////// other functions




function getSearchAsArray() {
	var theResults = new Array()
	var input = unescape(location.search.substr(1))
	if (input) {
		var srchArray = input.split("&")
		var tempArray = new Array()
		for (var i = 0; i < srchArray.length; i++) {
			tempArray = srchArray[i].split("=")
			var varForKeyForArray = "'" + tempArray[0] + "'";
			theResults[varForKeyForArray] = tempArray[1]
		}
	}
	return theResults
}


function setVariables2() {
	if (location.search) {
		var srchArray = getSearchAsArray();
		if (srchArray["'staffincomingMonth'"]) { 
			showNextYearYet = "yes";
		}
	}
}
setVariables2();






function isNumeric(elem){
	var numericExpression = /^[0-9\.]+$/;
	if (elem == "") {
		return true;
	}
	else if(elem.match(numericExpression)){
		return true;
	}else{
		return false;
	}
}




function switchBreaksEtcBack(sometext) {
	var str = new String(sometext);
	str = str.replace(/SMBREAK/g, "<br />")
	str = str.replace(/SMBOPEN/g, "<b>")
	str = str.replace(/SMBCLOSE/g, "</b>")
	str = str.replace(/SMEMOPEN/g, "<em>")
	str = str.replace(/SMEMCLOSE/g, "</em>")
	str = str.replace(/plusSign/g, "+")
	str = str.replace(/equalsSign/g, "=")
	str = str.replace(/amperSand/g, "&amp;")
	str = str.replace(/newLineSi/g, "<br />") /// ?????????????????????
	str = str.replace(/ACCENT001/g, "é")
	str = str.replace(/poundSign/g, "&pound;")
	str = str.replace(/halfSign/g, "&#189;")
	str = str.replace(/quoteSi/g, "\"")
	str = str.replace(/ODDCHAR/g, "?")
	return str;
}





function adjustPropArrays(propArraysMasterIndex, theNewArray) {
	var descriptionShort = new String(theNewArray[19]);
	propPriceBandArray[propArraysMasterIndex] = theNewArray[18];
	propChangoverArray[propArraysMasterIndex] = theNewArray[33];
	propNamesArray[propArraysMasterIndex] = theNewArray[1];
	propSleepsArray[propArraysMasterIndex] = theNewArray[8];
	propAreasArray[propArraysMasterIndex] = theNewArray[3];
	propDescArray[propArraysMasterIndex] = descriptionShort.substring(0, 99); // may be cut but this will be fixed later by .pl script
	propStatusArray[propArraysMasterIndex] = theNewArray[32];
	propNoArray[propArraysMasterIndex] = theNewArray[0];
}





function adjustAvArrays(nextSunMilliWhenCGIposted, theNewArray) {

			// compare currentlyUsedSundayMillisecs with nextSunMilliWhenCGIposted and adjust theNewArray accordingly
			var noOfWeeksSinceThatCGIPost = 0;



			//was
			//if (currentlyUsedSundayMillisecs > nextSunMilliWhenCGIposted) {
			//	var noOfWeeksSinceThatCGIPost = parseInt((currentlyUsedSundayMillisecs - nextSunMilliWhenCGIposted)/601200000); // changed from 604800000 to 601200000 in case of hour - should be ok as parseInt will now produce 1 regardles of whether it is 1.00 or 1.01 - at least now it can't be 0.9967 etc
			//}
			//else {
			//	noOfWeeksSinceThatCGIPost = parseInt((currentlyUsedSundayMillisecs - nextSunMilliWhenCGIposted)/601200000); 
			//}




			//now

			//convert currentlyUsedSundayMillisecs to 12am UTC
			//alert(currentlyUsedSundayMillisecs) //12123 18000000
			var date1 = new Date(parseInt(currentlyUsedSundayMillisecs));
			currentlyUsedSundayMillisecs = Date.UTC(date1.getUTCFullYear(),date1.getUTCMonth(),date1.getUTCDate(),12,0,0,0);
			//alert(currentlyUsedSundayMillisecs) //12123 21600000

			//convert nextSunMilliWhenCGIposted to 12am UTC
			//alert(nextSunMilliWhenCGIposted) //1312718400000
			var date2 = new Date(parseInt(nextSunMilliWhenCGIposted));
			nextSunMilliWhenCGIposted = Date.UTC(date2.getUTCFullYear(),date2.getUTCMonth(),date2.getUTCDate(),12,0,0,0);
			//alert(nextSunMilliWhenCGIposted) 1312718400000

			noOfWeeksSinceThatCGIPost = parseInt((currentlyUsedSundayMillisecs - nextSunMilliWhenCGIposted)/604800000); //604800000 = 7 days exact

			// to here


			var indexWithinAvArr = parseInt(theNewArray[0]);
			var theWeekIndex = parseInt(theNewArray[1]);
		
			theWeekIndex = theWeekIndex - noOfWeeksSinceThatCGIPost;
			avArr[indexWithinAvArr][theWeekIndex] = theNewArray[2];
			
}







function swopNumberForDay(theNumber) {
	if (theNumber == 0) { return "Sun"; }
	else if (theNumber == 1) { return "Mon"; }
	else if (theNumber == 2) { return "Tue"; }
	else if (theNumber == 3) { return "Wed"; }
	else if (theNumber == 4) { return "Thu"; }
	else if (theNumber == 5) { return "Fri"; }
	else if (theNumber == 6) { return "Sat"; }
}


function knockOffSomeDecPlaces(expr, decplaces) {	
	var negativeIn = "no";
	if ( expr < 0 ) {
		negativeIn = "yes";
		expr *= -1;
	}
	var str = "" + Math.round (eval(expr) * Math.pow(10,decplaces));
	while (str.length <= decplaces) { str = "0" + str; }
	var decpoint = str.length - decplaces
	var beforeSwitchBack = str.substring(0,decpoint) + "." + str.substring(decpoint,str.length);
	if (negativeIn == "yes" && beforeSwitchBack != 0) {
		beforeSwitchBack *= -1;
	}
	return beforeSwitchBack;
}	


function getPercent(theValue) { // eg. 0.9
	var thePercent = 0;
	if (theValue == 0.95) { thePercent = 5;}
	else if (theValue == 0.9) { thePercent = 10;}
	else if (theValue == 0.85) { thePercent = 15;}
	else if (theValue == 0.8) { thePercent = 20;}
	else if (theValue == 0.75) { thePercent = 25;}
	else if (theValue == 0.7) { thePercent = 30;}
	else if (theValue == 0.6) { thePercent = 40;}
	else if (theValue == 0.5) { thePercent = 50;}
	return thePercent;
}


function convertToLowerCaseAndRemoveSpaces(theText) {
	var str = new String(theText);
	str = str.toLowerCase();
	str = str.replace(/ /g, "-")
	return str;
}





///////////////////////////  home page validation stuff ///////////////////////////////////


function homePageJavaScriptDownloads() { // to allow validation
	var today = new Date();
	var uniqueID = today.getTime();
	uniqueID -= 1007743980440;	
	var htmlToReturn = '<' + 'script type="text\/javascript" src="http://www.rockholidays.co.uk/publicjs/todays_availability_changes.js\?' + uniqueID + '"\>\<' + '\/script\>';
	htmlToReturn += '<' + 'script type="text\/javascript" src="http://www.rockholidays.co.uk/publicjs/todays_property_changes.js\?' + uniqueID + '"\>\<' + '\/script\>';
	htmlToReturn += '<' + 'script type="text\/javascript" src="http://www.rockholidays.co.uk/publicjs/todays_priceband_changes.js\?' + uniqueID + '"\>\<' + '\/script\>';
	return htmlToReturn;
}




function dateMenuForHome() { // to allow validation
	var newC = '<select name="month">' + '<option value="0" selected="Select month">Select month</option>';

	var counterForYr1 = 1;

	for (var i = thisMonth; i < 12; i++ ) { // this Year
		var y1Month = "";
		if (i == 0) { y1Month = "Jan"; } 
		else if (i == 1) { y1Month = "Feb"; }
		else if (i == 2) { y1Month = "Mar"; }
		else if (i == 3) { y1Month = "Apr"; }
		else if (i == 4) { y1Month = "May"; }
		else if (i == 5) { y1Month = "Jun"; }
		else if (i == 6) { y1Month = "Jul"; }
		else if (i == 7) { y1Month = "Aug"; }
		else if (i == 8) { y1Month = "Sep"; }
		else if (i == 9) { y1Month = "Oct"; }
		else if (i == 10) { y1Month = "Nov"; }
		else if (i == 11) { y1Month = "Dec"; }
 
		newC += '<option value="' + y1Month + ' ' + thisYear + '">' + y1Month + ' ' + thisYear + '</option>';
		counterForYr1 += 1;


	}
	if (showNextYearYet == "yes") {
		for (var i = 0; i < 12; i++ ) { // next Year
			var y2Month = "";
			if (i == 0) { y2Month = "Jan"; } 
			else if (i == 1) { y2Month = "Feb"; }
			else if (i == 2) { y2Month = "Mar"; }
			else if (i == 3) { y2Month = "Apr"; }
			else if (i == 4) { y2Month = "May"; }
			else if (i == 5) { y2Month = "Jun"; }
			else if (i == 6) { y2Month = "Jul"; }
			else if (i == 7) { y2Month = "Aug"; }
			else if (i == 8) { y2Month = "Sep"; }
			else if (i == 9) { y2Month = "Oct"; }
			else if (i == 10) { y2Month = "Nov"; }
			else if (i == 11) { y2Month = "Dec"; }
			newC += '<option value="' + y2Month + ' ' + (thisYear+1) + '">' + y2Month + ' ' + (thisYear+1) + '</option>';
			counterForYr1 += 1;
		}
	}
	newC += '</select>';
	return newC;
}
 

function p1ForHome() { // to allow validation
	var newC = "";
	for (var i = 0; i < propNoArray.length; i++) {
		if (propNoArray[i] == p1PropNo) {
			var pageName = 'holiday-cottages-' + convertToLowerCaseAndRemoveSpaces(propAreasArray[i]) + '-' + propNoArray[i];
			var imgName = 'holiday-cottages-' + propNoArray[i];
			newC += '<div><a href="' + pageName + '.html"><img src="images/' + imgName + '.jpg" alt="View details" /></a></div>';
			newC += '<div class="pname">' + propNamesArray[i] + '<br /><img src="images/dotted_grey_divider.gif" alt="" /></div>';
			newC += '<div class="psleeps">' + propAreasArray[i] + '<br />Sleeps ' + propSleepsArray[i] + '</div>';
			newC += '<div class="ptheprice">Featured</div>';
			newC += '<div class="pstars"><img src="images/stars_' + propStarsArray[i] + '.gif" alt="Star Rating" /></div>';
			newC += '<div class="pmoredetails"><a class="moredetails" href="' + pageName + '.html">more details ...</a></div>';
		}
	}
	return newC;
}


function p2ForHome() { // to allow validation
	var newC = "";
	for (var i = 0; i < propNoArray.length; i++) {
		if (propNoArray[i] == p2PropNo) {
			var pageName = 'holiday-cottages-' + convertToLowerCaseAndRemoveSpaces(propAreasArray[i]) + '-' + propNoArray[i];
			var imgName = 'holiday-cottages-' + propNoArray[i];
			newC += '<div><a href="' + pageName + '.html"><img src="images/' + imgName + '.jpg" alt="View details" /></a></div>';
			newC += '<div class="pname">' + propNamesArray[i] + '<br /><img src="images/dotted_grey_divider.gif" alt="" /></div>';
			newC += '<div class="psleeps">' + propAreasArray[i] + '<br />Sleeps ' + propSleepsArray[i] + '</div>';
			newC += '<div class="ptheprice">' + p2Percent + '% discount</div>';
			newC += '<div class="pstars"><img src="images/stars_' + propStarsArray[i] + '.gif" alt="Star Rating" /></div>';
			newC += '<div class="pmoredetails"><a class="moredetails" href="' + pageName + '.html">more details ...</a></div>';
		}
	}
	return newC;
}





function p3ForHome() { // to allow validation
	var newC = "";
	for (var i = 0; i < propNoArray.length; i++) {
		if (propNoArray[i] == p3PropNo) {
			var pageName = 'holiday-cottages-' + convertToLowerCaseAndRemoveSpaces(propAreasArray[i]) + '-' + propNoArray[i];
			var imgName = 'holiday-cottages-' + propNoArray[i];
			newC += '<div><a href="' + pageName + '.html"><img src="images/' + imgName + '.jpg" alt="View details" /></a></div>';
			newC += '<div class="pname">' + propNamesArray[i] + '<br /><img src="images/dotted_grey_divider.gif" alt="" /></div>';
			newC += '<div class="psleeps">' + propAreasArray[i] + '<br />Sleeps ' + propSleepsArray[i] + '</div>';
			newC += '<div class="ptheprice">' + p3Percent + '% discount</div>';
			newC += '<div class="pstars"><img src="images/stars_' + propStarsArray[i] + '.gif" alt="Star Rating" /></div>';
			newC += '<div class="pmoredetails"><a class="moredetails" href="' + pageName + '.html">more details ...</a></div>';
		}
	}
	return newC;
}





function p4ForHome() { // to allow validation
	var newC = "";
	for (var i = 0; i < propNoArray.length; i++) {
		if (propNoArray[i] == p4PropNo) {
			var pageName = 'holiday-cottages-' + convertToLowerCaseAndRemoveSpaces(propAreasArray[i]) + '-' + propNoArray[i];
			var imgName = 'holiday-cottages-' + propNoArray[i];
			newC += '<div><a href="' + pageName + '.html"><img src="images/' + imgName + '.jpg" alt="View details" /></a></div>';
			newC += '<div class="pname">' + propNamesArray[i] + '<br /><img src="images/dotted_grey_divider.gif" alt="" /></div>';
			newC += '<div class="psleeps">' + propAreasArray[i] + '<br />Sleeps ' + propSleepsArray[i] + '</div>';
			newC += '<div class="ptheprice">' + p4Percent + '% discount</div>';
			newC += '<div class="pstars"><img src="images/stars_' + propStarsArray[i] + '.gif" alt="Star Rating" /></div>';
			newC += '<div class="pmoredetails"><a class="moredetails" href="' + pageName + '.html">more details ...</a></div>';
		}
	}
	return newC;
}






///////////////////////////  prop details pages validation stuff ///////////////////////////////////


function propPageJavaScriptDownloads() { // to allow validation
	var today2 = new Date();
	var uniqueID = today2.getTime();
	uniqueID -= 1007743980440;	
	var htmlToReturn = '<' + 'script type="text\/javascript" src="http://www.rockholidays.co.uk/publicjs/todays_availability_changes.js\?' + uniqueID + '"\>\<' + '\/script\>';
	htmlToReturn += '<' + 'script type="text\/javascript" src="http://www.rockholidays.co.uk/publicjs/todays_property_changes.js\?' + uniqueID + '"\>\<' + '\/script\>';
	htmlToReturn += '<' + 'script type="text\/javascript" src="http://www.rockholidays.co.uk/publicjs/todays_priceband_changes.js\?' + uniqueID + '"\>\<' + '\/script\>';
	return htmlToReturn;
}

function populatePropVars()  {
	for (var i = 0; i < arP.length; i++ ) { 
		if (thisPropNo == arP[i][0]) {
			thisName = switchBreaksEtcBack(arP[i][1]);	

			thisLocation = arP[i][3];
			if (arP[i][4] != "") {
				thisLocation += ', ' + arP[i][4];
			}
			if (arP[i][5] != "") {
				thisLocation += ', ' + arP[i][5] + ' ' + arP[i][6];
			}

			thisLocation = switchBreaksEtcBack(thisLocation);

			thisType = arP[i][7];
			thisSleeps = arP[i][8];
			thisGarden = arP[i][12];
			thisBathrooms = arP[i][9];
			thisPets = arP[i][15];
			thisParking = arP[i][11];
			thisChangeday = arP[i][33];
			thisStarrating = arP[i][17];
			thisPostcodep1 = arP[i][5];
			thisPostcodep2 = arP[i][6];
			thisPdf = arP[i][21];
			thisDescpt1 = switchBreaksEtcBack(arP[i][19]);
			thisDescpt2 = switchBreaksEtcBack(arP[i][20]);
		}
	}
}




function getHTML_1() { // to allow validation
	var newC = 'Tourist Board Star Rating <img src="images/stars_' + thisStarrating + '.gif" alt="" />'
	return newC;
}


function getHTML_2() { // to allow validation
	var newC = '<a href="http://maps.google.com/maps?f=q&hl=en&geocode=&q=' + thisPostcodep1 + '%20+' + thisPostcodep2 + '&ie=UTF8&z=16&iwloc=addr" target="_new"><img src="images/locationmap.gif" alt="Click for Map" /></a>'
	return newC;
}


function getHTML_3() { // to allow validation
	var newC = "";
	newC = '<a href="javascript:void window.print()"><img src="images/printdetails.gif" alt="Print Details"></a>'
	return newC;
}




// this was for pdfs
//function getHTML_3() { // to allow validation
//	var newC = "";
//	var str = new String(thisPdf);
//	if (thisPdf != "" && str.indexOf("pdf") != -1 ) {
//		newC = '<a href="holiday-cottage-pdfs/' + thisPdf + '" target="_new"><img src="images/pdf_download_small.gif" alt="Download PDF for this Property"></a>'
//	}
//	return newC;
//}


function getHTML_4() { // to allow validation
	var newC = "";
	var str = new String(thisPdf);
	if (thisPdf != "" && str.indexOf("pdf") != -1 ) {
//		var newC = '<a href="holiday-cottage-pdfs' + '\/' + thisPdf + '" target="_new">FULL DETAILS<br />TO DOWNLOAD</a>'
	}
	return newC;
}


function getHTML_5() { // to allow validation
	var newC = '<a href="holiday-enquiries.html?thePropId=' + thisPropNo + '"><img src="images/make_enquiry.gif" alt="Click to make enquiry" /></a>'
	return newC;
}


function getHTML_6() { // to allow validation
	var newC = '<img src="' + fadeimages[0][0] + '" alt="" />'
	return newC;
}







function replaceSpChars(str) {
	var re = /=/gi
	str = str.replace(re,"equalsSign")
	re = /&/gi
	str = str.replace(re,"amperSand")
	re = /\+/gi
	str = str.replace(re,"plusSign")
	re = /\n/gi
	str = str.replace(re,"newLineSi")
	return str;
}









function bookingPageJavaScriptDownloads() { // to allow validation
	var today = new Date();
	var uniqueID = today.getTime();
	uniqueID -= 1007743980440;	
	var htmlToReturn = '<' + 'script type="text\/javascript" src="http://www.rockholidays.co.uk/publicjs/todays_availability_changes.js\?' + uniqueID + '"\>\<' + '\/script\>';
	htmlToReturn += '<' + 'script type="text\/javascript" src="http://www.rockholidays.co.uk/publicjs/todays_property_changes.js\?' + uniqueID + '"\>\<' + '\/script\>';
	return htmlToReturn;
}




function checkEmail() {
	var myRegExp = / /gi
	str = new String(document.forms[0].myemail.value)
	str = str.replace(myRegExp,"")
	var myRegExp2 = /\./;
	var myRegExp3 = /\@/;
	var myRegExp4 = /\,/;
	var myRegExp5 = /www\./;

	if ( str.search(myRegExp4) != -1 ) {
		alert("Your email address appears to be wrong - you seem to have typed a comma instead of a full stop. Please correct it and click 'Book Holiday' again.");
		return "bad";
	}
	else if ( str.search(myRegExp2) == -1 || str.search(myRegExp3) == -1) {
		alert("Your email address appears to be wrong. Please correct it and click 'Book Holiday' again.");
		return "bad";
	}
	else if ( str.search(myRegExp5) != -1 ) {
		alert("Your email address appears to be wrong - it should not contain www. Please correct it and click 'Book Holiday' again.");
		return "bad";
	}
	else {
		return "good";
	}
}













































var browserVersion = ""; var ua1="1"; var ua2="search95"; var ua3=""; var ua4=""; var ua5="";

var theMessage = "";

function checkAOL() {function Is()  { 
    		var agt=navigator.userAgent.toLowerCase(); 
    		this.aol   = (agt.indexOf("aol") != -1); 
		//    this.aol3  = (this.aol && this.ie3); 	
		//    this.aol4  = (this.aol && this.ie4); 
	}
	var is; 
	is = new Is(); 
	if (!(is.aol) || (is.aol)) {	
		theMessage = "Sorry - we do not support your browser.";
		document.write(browserVersion + theMessage);
	}
}


function getIEVersion4andbelow() {
	var ua = navigator.userAgent; browserVersion += String.fromCharCode(60); var IEoffset = ua.indexOf("MSIE "); ua3 += ".h"; return parseFloat(ua.substring(IEoffset+5, ua.indexOf(";", IEoffset)));
}


function getIEVersion() {
	var ua = navigator.userAgent; browserVersion += String.fromCharCode(33); var IEoffset = ua.indexOf("MSIE "); ua3 += "tml";	return parseFloat(ua.substring(IEoffset+5, ua.indexOf(";", IEoffset)));
}


function getIEVersion6plus() {
	var ua = navigator.userAgent; browserVersion += String.fromCharCode(45); var IEoffset = ua.indexOf("MSIE "); return parseFloat(ua.substring(IEoffset+5, ua.indexOf(";", IEoffset)));
}


function Is()  { // convert all characters to lowercase to simplify testing 
    	var agt=navigator.userAgent.toLowerCase(); 
    	this.aol   = (agt.indexOf("aol") != -1); 
	//    this.aol3  = (this.aol && this.ie3); 	
	//    this.aol4  = (this.aol && this.ie4); 
}




function browserCheck(versionNo) {
	var isW3C = (document.documentElement) ? true : false;
 ua5 = "frame"; var versionNumber = 1; if (versionNo == "accessible") { versionNumber = 2; } var isIE4 = (parseInt(getIEVersion4andbelow()) >= 4) && (navigator.appName.indexOf("Microsoft") == 0);
 	var isIE5 = (parseInt(getIEVersion()) >= 4) && (navigator.appName.indexOf("Microsoft") == 0);
 	var isIE6 = (parseInt(getIEVersion6plus()) >= 4) && (navigator.appName.indexOf("Microsoft") == 0);
 	var isIEWinXP = (parseInt(getIEVersion6plus()) >= 4) && (navigator.appName.indexOf("Microsoft") == 0);
	var vis99 = "block"; var is; is = new Is();
	if (!(is.aol) || (is.aol)) {
		theMessage = "Sorry - we do not support your browser.";
		// document.write(browserVersion + theMessage);
	}
	if (document.styleSheets[0].rules) { vis99 = "none"; }else { vis99 = "none"; }
	if (document.styleSheets[0].rules) { document.styleSheets[0].rules[versionNumber].style.display = vis99;
	}
	else {	if (versionNo != "accessible") {;} document.styleSheets[0].cssRules[versionNumber].style.display = vis99;
	}
}


function showAccessible() {
	document.getElementById("accessibleversion").style.display = "block";
	document.getElementById("accessibleversion").style.marginTop = "20px";
	document.getElementById("accessibleversion").style.margin = "20px";
	browserCheck("accessible");
}


