var stingArray=new Array();
/*
	PREPARE THE STINGS IN NOTEPAD NOT MS WORD
	TO ADD NEW STINGS FOLLOW THIS SAME FORMAT, INCREASING THE NUMBER IN THE SQUARE BRACKETS BY ONE EACH TIME
	EACH STING MUST BE ENTERED ON ONE LINE - USE <br /> TO SPECIFY A LINE BREAK WITHIN A STING
	DO NOT USE SMART QUOTES
	IF YOU NEED TO USE AN APOSTROPHE PREFIX IT WITH A BACKSLASH AS IN #5 BELOW
	REMEMBER THE SINGLE QUOTES ON EITHER SIDE AND SEMI-COLON AT THE END
*/

stingArray[0]='Offers masculine massage<br />for men only.';
stingArray[1]='Do you need a man\'s man\'s massage?';
stingArray[2]='e-massage for an e-business age.';
stingArray[3]='Just get stripped and get on the bed.';
stingArray[4]='Authentic oils used here.';
stingArray[5]='Aromatic oils always applied.';
stingArray[6]='Warm oils await within!';
stingArray[7]='A sensual touch in all the right places.';
stingArray[8]='Lingam massage<br />for life\'s greatest pleasure.';
stingArray[9]='Tantric touch from a masculine man.';

window.onload=doSting;

function getRandomIntUnder(incount){
	return Math.floor(Math.random()*incount);
}


function doSting(){
	var sting,stringIndex,stringCount,target;
	//CHECK PLACEHOLDER EXISTS
	if(document.getElementById('stingSlot')){
		target=document.getElementById('stingSlot');
		//COUNT HOW MANY STINGS THERE ARE
			stingCount=stingArray.length;
		//GET A RANDOM NUMBER OF SUITABLE SIZE
			stingIndex=getRandomIntUnder(stingCount);
		//IF A STING WITH THIS NUMBER EXISTS
			if(stingArray[stingIndex]){
				sting=stingArray[stingIndex];
				target.innerHTML=sting;
			}
			else{
				//SET AS DEFAULT STING
				target.innerHTML=stingArray[0];
			}
	}
	else{
		//DO NOTHING AS NO PLACEHOLDER EXISTS
	}
}
