var amessage = new Array("Know that we are with you, just ask for and be willing to accept our help and it is yours.",
"You really need to relax and rest now tomorrow is a new day , trust the help you need is here.",
"The prayers you have made have been heard, we are with you to help and guide you.",
"Your desired outcome will occur in the very near future. Have patience and faith and do not force anything to happen.",
"A happy change or a new addition is coming to your family.",
"Yes the timing is right, have happy positive thoughts towards the outcome you desire.",
"Please listen to and follow the steps I am communicating through your intuition, thoughts and dreams.",
"We are leading you towards the answer to your prayers, be patient and listen to your inner guide.",
"Allow the new to enter your life, change can be wonderful and exciting if you let it and trust.",
"Taking care of yourself benefits those around you as well. Take time out today to nurture or treat yourself you deserve it.",
"You are a lightworker and it is important that you share your gifts like and earth angel.",
"Take time to do research or ask advice from someone knowledgeable in the field before you make a decision.",
"What do you desire right now? Visualise it and it will manifest for you. Release negativity it blocks the process.",
"Trust your own judgement, you know in your heart the action you want to take.",
"You are not alone with this. Just ask us (your angels) for help, guidance, healing or comfort. We are here for you.",
"A happy move is in process and it brings with it positive energy.",
"Please do not allow insecurities to hold you back. You are magical and we will help you.",
"Stay positive, expect miraculous solutions to appear.",
"Any type of learning, study or education can help your life's purpose at this time.",
"I am helping you heal yourself and others. You have healing abilities amongst your many gifts.",
"Well done, your good is coming to you. You have worked hard.",
"Look a little deeper into what is going on and into yourself before going on with this situation.",
"Let others be inspired by your example do not be fearful.",
"You have a natural gift for teaching, helping or parenting children or adults who have had a difficult childhood.",
"Stop for a little while, you have been helping everyone else but need to take time to recharge your batteries.",
"Take courage we are here to help you make the changes you need to.",
"No need for compromise, reach for the stars you deserve the very best.",
"We bring you a smoother path and some peace, take heart.",
"Maintain your faith, hope and trust, something positive is on its way to you.",
"It is your turn to shine like the sun. Let the world see the you we know and love.",
"Abundance can be yours. Picture it, relax and imagine it being yours and then release any negativity to it so that we can bring it to you.",
"Your children here and in heaven are loved, happy and well.",
"It is safe for you to experience your personal power in a loving way.",
"A cycle has come to an end, we can help you to release the past and welcome in the happiness that awaits you.",
"Your spiritual side is growing and developing, go with the flow and allow your gifts to unfold.",
"Honour your inner guidance and know that prosperity is coming to you now.",
"The worst is over the best is yet to come. Trust and be loving to yourself and those around you.",
"You are going through a process of emotional healing. Ask for our help to release some of the negative emotions like anger that you have been holding onto.",
"We are helping you to release hurt and unforgiveness from your heart and mind so that you can be open to all the love that surrounds you.",
"Get back your sense of perspective by communing with nature. Meditate, walk, do yoga or just sit in the garden without noise or chatter.",
"We are assisting you now in your relationships especially with regard to romance. Open your heart and let the love flow.",
"Gather as much information as you can, enjoy studying this will come in useful soon.",
"You have the ability to guide others for their highest good.",
"Ask yourself which decision brings me closer to my divine purpose and which takes me further from it if you need to make a choice now.",
"Yoga and exercise are an essential part of your well being. Honour the house your spirit lives in and take care of your body.",
"Now that you have asked for our help be open to receiving the assistance and guidance we are bringing you.",
"To heal this situation, look at the other persons view and position with love and compassion.",
"Those who have passed on want you to know that they are happy and wish you love.",
"You have a warm and wonderful bond with animals, allow your gentle nature to be seen by all.",
"New romance with someone new, a new project or an existing relationship that has the passion reignited, is imminent. Open your heart to love.",
"Do not shut yourself from life or experiences, you have no need to be fearful. We are here with you.",
"Ask for what you need from a loving place of the heart and it will come to you. You deserve happiness.",
"Now is your time, put your own needs first this is not selfishness it is honouring your own life's path.",
"Love heals. Remember this when you feel challenged by what is happening around you. Bring love in to any situation and ask for our help.",
"Never fear that you are not good enough. There is nothing you can do, think or say that would turn us away from you.",
"Keep communications open, there is someone who needs to speak to you or something you need to know.",
"You are very gifted if you are unsure what your gifts are ask for our help and we will guide you to know.",
"Speak your own truth even though it may be uncomfortable you will be glad that you did and we will be there to support you.",
"You are a special child stay true and know that good things are coming your way.",
"Now is the time to start developing or using your special gifts, you know what they are in your heart.",
"The answers are within, sit quietly and listen to your inner guidance and know we are also here to guide you just ask.",
"Fear holds you back, make decisions based on love.",
"You have a gift, fulfillment comes from sharing that with others.",
"You are a loving, beautiful child you do not need to earn our love we give it freely, ask for what you need.",
"Reach out to another they may need you and they may have an answer for you.",
"Give yourself the gift of time to rest, rejuvenate and reconnect with yourself.");

function fisherYates ( myArray ) 
{
	var i = myArray.length;
	if ( i == 0 ) return false;
	while ( --i ) 
	{
		var j = Math.floor( Math.random() * ( i + 1 ) );
		var tempi = myArray[i];
		var tempj = myArray[j];
		myArray[i] = tempj;
		myArray[j] = tempi;
   	}
}

//change the opacity for different browsers
function changeOpac(opacity,id)
	{
	var object = document.getElementById(id).style;
	object.opacity = (opacity / 100);
	object.MozOpacity = (opacity / 100);
	object.filter = "alpha(opacity=" + opacity + ")";
	}

function opacity(id,opacStart,opacEnd,millisec)
	{
	//speed for each frame
	var speed = Math.round(millisec / 100);
	var timer = 0;

	//determine the direction for the blending, if start and end are the same nothing happens
	if(opacStart > opacEnd)
		{
		for(i = opacStart; i >= opacEnd; i--)
			{
			setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
			timer++;
			}
		}
	else if(opacStart < opacEnd)
		{
		for(i = opacStart; i <= opacEnd; i++)
			{
			setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
			timer++;
			}
		}
	}

function shiftOpacity2(id,id2,ms)
{
	//speed for each frame
	var inspeed = Math.round(ms / 100);
	var timer = 0;
	var showOpac=0;
	var fadeOpac=100;
		//debugger;
	for(x=0;x<100;x++)
	{
		setTimeout("changeOpac(" + showOpac++ + ",'" + id + "')",(timer * inspeed));
		if(x>75)
			setTimeout("changeOpac(" + fadeOpac-- + ",'" + id2 + "')",(timer * inspeed));
		timer++;
	}
}


function showAMessage(id,ms)
{
	if(!am_bClicked)
	{
		am_bClicked=true;
		
		// select message here
		var i = Math.round((amessage.length-1)*Math.random());
 		var elem = document.getElementById('angelmessage');
  		elem.firstChild.nodeValue = amessage[i];  

		var object = document.getElementById('amsg').style;
		object.zIndex=5;
		shiftOpacity2(id,'angelpic',ms);
	}
}

function loaded()
{
		var object = document.getElementById('amsg').style;
		object.visibility="visible";
		object.opacity = 0;
		object.MozOpacity = 0;
		object.filter = "alpha(opacity=0)";
}

var am_bClicked=false;

fisherYates(amessage);
