//==== image preloader ====//
var myimages_left = new Array();
function preloading_left(){
for (x=0; x<preloading_left.arguments.length; x++){
myimages_left[x] = new Image();
myimages_left[x].src = preloading_left.arguments[x];
}
}
preloading_left("australia/a/about_sos.jpg","australia/a/franchisee_login.jpg","australia/a/get_a.jpg","australia/a/gust_book.jpg","australia/a/home.jpg","australia/a/ms_society.jpg","australia/a/photo_album.jpg","australia/a/q&a.jpg","australia/a/sos_franchising.jpg","australia/a/tell_australia.jpg","australia/a/about_us.jpg","australia/a/sos_awards.jpg","australia/a/manual.jpg","australia/a/discussion.jpg","australia/a/logout.jpg");
//==== preloader ends ====//

//========== left menu quotes ====================//
var quotes=new Array("If you can DREAM it, you can DO it. Walt Disney",
"Dream as if you'll live forever. Live as if you'll die today. James Dean",
"Kindness is wisdom. Phillip J. Bailey",
"Imagine. John Lennon",
"Service is the rent we pay for being. It is the very purpose of life, and not something you do in your spare time. Marion Wright Edelman",
"[about the past] the way I see it, you can either run from it, or learn from it. Rafikki to Simba in Disney's The Lion King",
"The harder you fall, the higher you bounce. Anonymous",
"People are like stained-glass windows. They sparkle and shine when the sun is out, but when the darkness sets in, their true beauty is revealed only if there is a light from within. Elizabeth Kbler-Ross",
"I keep my ideals, because in spite of everything, I still believe that people are really good at heart. Anne Frank",
"The important thing is not to stop questioning. Albert Einstein",
"A hunch is creativity trying to tell you something. Anonymous",
"Nothing endures but change. Heraclitus",
"Our life is what our thoughts make it. Marcus Aurelius Antonius",
"It's kind of fun to do the impossible. Walt Disney",
"We are what we repeatedly do. Aristotle",
"No one can make you feel inferior without your consent. Eleanor Roosevelt",
"Shoot for the moon. Even if you miss, you'll land among the stars. Les Brown",
"Remember your dreams. Maryanne Radmacher-Hershey",
"Obstacles don't have to stop you. If you run into a wall, don't turn around and give up. Figure out how to climb it, go through it, or work around it. Michael Jordan",
"Fear less, hope more; Whine less, breathe more; Talk less, say more; Hate less, love more; And all good things are yours. Anonymous",
"Pain is inevitable. Suffering is optional. Source Unknown",
"The greater the obstacle, the more glory in overcoming it. Moliere",
"Everyone needs recognition for his accomplishments, but few people make the need known quite as clearly  as the little boy who said to his father:  \"Let's play darts. I'll throw and you say 'Wonderful!'\". Source Unknown",
"And life is what we make it. Always has been, always will be. Grandma Moses",
"You may be deceived if you trust too much, but you will live in torment if you don't trust enough. Frank Crane",
"Try to eliminate the word SHOULD from your vocabulary. but try doing so though without replacing SHOULD with OUGHT or YOU'D BETTER. Anonymous",
"Every exit is an entrance somewhere else. Tom Stoppard",
"We think in generalities, but we live in detail. Alfred North Whitehead",
"Out of clutter, find Simplicity. From discord, find Harmony. In the middle of difficulty lies Opportunity. Albert Einstein",
"He did each single thing as if he did nothing else. Charles Dickens",
"Nurture your mind with great thoughts. Benjamin Disraeli",
"A weed is no more than a flower in disguise. James Lowell",
"He who laughs, lasts. Mary Poole",
"We must use time creatively, and forever realize that the time is always ripe to do right. Nelson Mandela",
"Do what you can with what you have where you are. Theodore Roosevelt",
"Many candles can be kindled from one candle without diminishing it. The Midrash",
"You can complain because roses have thorns, or you can rejoice because thorns have roses. Ziggy",
"No bird soars too high if he soars with his own wings. William Blake",
"Our greatest glory is not in never failing, but in rising up every time we fail. Ralph Waldo Emerson",
"Speak when you're angry, and you'll make the best speech you'll ever regret. Lawrence J. Peter",
"The way I see it,  if you want the rainbow, you gotta be willing to put up with the rain. Dolly Parton",
"The last of the human freedoms is to choose one's attitudes. Victor Frankl",
"What does not destroy me makes me strong. Freidrich Nietzsche",
"Don't let life discourage you; everyone who got where he is had to be where he was. R.L. Evans",
"You must do the thing you think you cannot do. Eleanor Roosevelt",
"Little things affect little minds. Benjamin Disraeli",
"Appreciation is a wonderful thing; it makes what is excellent in others belong to us as well. Voltaire",
"Age is of no importance unless you are a cheese. Billie Burke",
"The one thing you cannot teach a person is COMMON SENSE. Anonymous",
"You cannot plough a field by turning it over in your mind. Anonymous",
"Life is a big canvas, throw all the paint on it you can. Danny Kaye",
"Be just and fear not. Wolsey in Shakespeare's King Henry VIII",
"The art of life is to know how to enjoy a little and to endure much. William Hazlitt",
"Life can only be understood backwards, but must be lived forwards. Soren Kierkegaard",
"You don't get to choose how you're going to die. Or when. You can only decide how you're going to live. NOW. Joan Baez",
"Be a good listener. Your ears will never get you in trouble. Frank Tyger",
"We do not inherit the earth from our ancestors, we borrow it from our children. Haida Indian Saying",
"You can't expect to hit the jackpot if you don't put a few nickels in the machine. Flip Wilson",
"An archer cannot hit the bullseye if he doesn't know where the target is. Anonymous",
"Begin somewhere. You cannot build a reputation on what you intend to do. Liz Smith",
"This has always been a motto of mine: Attempt the impossible in order to improve your work. Bette Davis",
"People only see what they are prepared to see. Ralph Waldo Emerson",
"Remember, there are no small parts, only small actors. Konstantin Stanislavski",
"The meaning of things lies not in the things themselves,but in our attitude towards them. Antoine de Saint-Exupery",
"Whatever you can do or dream you can, begin it. Boldness has genius, magic and power in it. Begin it now. Goethe",
"Remain calm, serene, always in command of yourself. You will then find out how easy it is to get along. Paramanhansa Yogananda",
"It takes a long time to become young. Pablo Picasso",
"The worst bankrupt in the world is the person who has lost his enthusiasm. H. W. Arnold",
"Unthankfulness is theft. Martin Luther",
"As contagion of sickness makes sickness, contagion of trust can make trust. Marianne Moore",
"...if we wait for the moment when everything, absolutely everything is ready, we shall never begin. Ivan Turgenev",
"Perfection is terrible, it cannot have children. Sylvia Plath",
"Four Rules For Life. Show up. Pay attention. Tell the truth. Don't be attached to the results. Source Unknown",
"Imagination is the highest kite one can fly. Lauren Bacall",
"Love yourself first and everything else falls into line. You really have to love yourself to get anything done in this world. Lucille Ball",
"The trouble with being in the rat race is that even if you win, you're still a rat. Lily Tomlin",
"One can never consent to creep when one feels an impulse to soar. Helen Keller",
"You may be disappointed if you fail, but you are doomed if you don't try. Beverly Sills",
"It is best to learn as we go, not go as we have learned. Leslie Jeanne Sahler",
"Luck is a matter of preparation meeting opportunity. Oprah Winfrey",
"He who angers you conquers you. Elizabeth Kenny Australian Nurse",
"I'm not young enough to know everything. James Barrie",
"..if one does not have wild dreams of achievement, there is no spur even to get the dishes washed. One must think like a hero to behave like a merely decent human being. May Sarton",
"I learned that it is the weak who are cruel, and that gentleness is to be expected only from the strong. Leo Rosten",
"What I spent I had What I saved I lost What I gave I have. George Moore",
"Hold fast to dreams, For if dreams die, Life is a broken-winged bird, That cannot fly. Langston Hughes",
"You will never find time for anything. If you want time you must make it. Charles Buxton",
"There is no point at which you can say, 'Well, I'm successful now. I might as well take a nap.' Carrie Fisher",
"There is no greatness where there is no simplicity, goodness and truth. Leo Tolstoy",
"There are no short cuts to any place worth going. Source Unknown",
"The truth of the matter is that you always know the right thing to do. The hard part is doing it. General H. Norman Schwarzkopf",
"If you're going to be able to look back on something and laugh about it, you might as well laugh about it now. Marie Osmond",
"Life isn't a matter of milestones, but of moments. Rose Kennedy",
"The thing always happens that you really believe in; and the belief in a thing makes it happen. Frank Lloyd Wright",
"Being considerate of others will take your children further in life than any college degree. Marian Wright Edelman",
"If you really want something you can figure out how to make it happen. Cher",
"[My mother] said I must always be intolerant of ignorance but understanding of illiteracy. That some people, unable to go to school, were more educated and more intelligent than college professors. Maya Angelou",
"You have to find it. No one else can find it for you. Bjorn Borg",
"Knowing is not enough; We must apply. Willing is not enough;We must do. Goethe",
"Never look down on anybody unless you're helping him up. The Reverend Jesse Jackson",
"As long as you're going to be thinking anyway, THINK BIG. Donald Trump",
"The best way to become boring is to say everything. Voltaire",
"Think it more satisfactory to live richly than die rich. Sir Thomas Browne",
"Don't hold grudges; it's pointless. Jealousy too is a non-cathartic, negative emotion. Liz Smith",
"Remember to Live. Goethe",
"Treat your friends as you do your pictures, and place them in their best light. Jennie Jerome Churchill",
"Look for the good in everything and you will find it. Anonymous",
"There are two ways of spreading light -to be the candle or the mirror that reflects it. Edith Wharton",
"The journey is the reward. Tao Saying",
"People with goals succeed because they know where they're going. Earl Nightingale",
"You don't get harmony when everybody sings the same note. Source Unknown",
"The measure of a man's real character is what he would do if he knew he would never be found out. T.B. Macaulay",
"If I could wish for my life to be perfect, it would be tempting but I would have to decline, for life would no longer teach me anything. Allyson Jones",
"The more we give of anything, the more we shall get back. Grace Speare",
"A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes. Hugh Downs",
"Stories are like fairy gold. The more you give away, the more you have. Polly McGuire",
"You live longer once you realize that any time spent being unhappy is wasted. Ruth E. Renkl",
"Don't postpone joy. Bumper Sticker",
"Persons thankful for little things are certain to be the ones with much to be thankful for. Frank Clark",
"You grow up the day you have your first real laugh, at yourself. Ethel Barrymore",
"Don't get your knickers in a knot. Nothing is solved and it just makes you walk funny. Kathryn Carpenter",
"Failing to plan is planning to fail. Effie Jones",
"Don't be afraid your life will end; be afraid that it will never begin. Grace Hansen",
"I finally figured out the only reason to be alive is to enjoy it. Rita Mae Brown",
"Practice random acts of kindness and senseless acts of beauty. Adair Lara",
"Look twice before you leap. Charlotte Bronte",
"Silent gratitude isn't much use to anyone. Gladys Browyn Stern",
"We are not interested in the possibilities of defeat. Queen Victoria",
"The only place you'll find success before work is in the dictionary. May B Smith");
var lnt=quotes.length;
var qt=parseInt(Math.random()*lnt);
var qote=quotes[qt];
var s1=qote.lastIndexOf('.');
var comment=qote.substr(0,s1+1);
var author=qote.substr(s1+1);
//======================= end ==============================//
var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i;
function checkmail()
	{
		//alert(a);
		e=frm2.mail.value;
		var returnval=emailfilter.test(e)
		if(returnval==false)
		{
		alert("Please enter a valid email address.");
		e.select;
		}
		else
		frm2.submit();
		
	}
// Left Menu
// function leftmenu_home(id,m,d)
// {
// 	/*alert(id);
// 	alert(m);
// 	alert(d);*/
// 	var p=document.location.href;
// 	var pn=p.lastIndexOf('/');
// 	var pe=p.indexOf('?');
// 	if(pe!='-1')
// 	var pageName=p.substring(pn+1,pe);
// 	else
// 	var pageName=p.substring(pn+1);
// //alert(pageName);
// var str="";
// str+="<div id='menuheader_index'>";
// 	str+="<div id='menucategories_index'>";
// 		str+="<span class='categories_index category_textformat'>CATEGORIES</span>";	
// 	str+="</div>";
// str+="</div>";
// str+="<div class='menucontent_index'>";
// str+="<div class='borderimg1_index'></div>";
// str+="<div class='menulink_index'>";	
// 
// 	if(pageName=='index.php' || pageName=='home-sitemap.php' ||  pageName=='home-links.php' || pageName=='')
// 	{
// 		str+="<div class='menuseparator_index'>";
// 			str+="<span class='menus_index left_menu_link_selected menulinking_index'>HOME</span>";
// 		str+="</div>";
// 	}
// 	else
// 	{
// 		str+="<div class='menuseparator_index'>";
// 			str+="<a href='index.php' class='menulinking_index'>";
// 				str+="<span class='menus_index left_menu_link_normal'>HOME</span>";
// 			str+="</a>";	
// 		str+="</div>";
// 	}
// 	if(pageName=='getasnackbox.php')
// 	{ 
// 		str+="<div class='menuseparator_index'>";
// 			str+="<span class='menus_index left_menu_link_selected menulinking_index'>GET A SNACK BOX</span>";
// 		str+="</div>";
// 	}
// 	else
// 	{
// 		str+="<div class='menuseparator_index'>";
// 			str+="<a href='getasnackbox.php' class='menulinking_index'>";
// 				str+="<span class='menus_index left_menu_link_normal'>GET A SNACK BOX</span>";
// 			str+="</a>";	
// 		str+="</div>";
// 	}
// 	if(pageName=='sos-franchising.php' || pageName=='sos-application.php' || pageName=='sos-busoutline.php' || pageName=='sos_franchiseeinfo.php' || pageName=='sos-franchiseeselection.php' || pageName=='sos-franchisinginfo.php' || pageName=='sos-strengths.php' || pageName=='sos-whybuy.php' || pageName=='franchise-code.php')
// 	{ 	
// 		str+="<div class='menuseparator_index'>";
// 			str+="<span class='menus_index left_menu_link_selected menulinking_index'>SOS FRANCHISING</span>";
// 		str+="</div>";
// 	}
// 	else
// 	{
// 		str+="<div class='menuseparator_index'>";
// 			str+="<a href='sos-franchising.php' class='menulinking_index'>";
// 				str+="<span class='menus_index left_menu_link_normal'>SOS FRANCHISING</span>";
// 			str+="</a>";	
// 		str+="</div>";
// 	}
// 	if(pageName=='franchises-available.php' || pageName=='franchise_code.php')
// 	{ 	
// 		str+="<div class='menuseparator_index'>";
// 			str+="<span class='menus_index left_menu_link_selected menulinking_index'>FRANCHISES AVAILABLE</span>";
// 		str+="</div>";
// 		}
// 	else
// 	{
// 		str+="<div class='menuseparator_index'>";
// 			str+="<a href='franchises-available.php' class='menulinking_index'>";
// 				str+="<span class='menus_index left_menu_link_normal menulinking_index'>FRANCHISES AVAILABLE</span>";
// 			str+="</a>";	
// 		str+="</div>";
// 	}
// 		if(pageName=='about.php' || pageName=='about-bus-involve.php' || pageName=='about-corp-philosophy.php' || pageName=='about-history.php' || pageName=='about-mission.php' || pageName=='about-privacy.php' || pageName=='about-target.php')
// 	{ 
// 		str+="<div class='menuseparator_index'>";
// 			str+="<span class='menus_index left_menu_link_selected menulinking_index'>ABOUT US</span>";
// 		str+="</div>";
// 	}
// 	else
// 	{
// 		str+="<div class='menuseparator_index'>";
// 			str+="<a href='about.php' class='menulinking_index'>";
// 				str+="<span class='menus_index left_menu_link_normal'>ABOUT US</span>";
// 			str+="</a>";	
// 		str+="</div>";
// 	}
// 	if(pageName=='sos-staff.php')
// 	{ 
// 		str+="<div class='menuseparator_index'>";
// 			str+="<span class='menus_index left_menu_link_selected menulinking_index'>SOS STAFF</span>";
// 		str+="</div>";
// 		}
// 	else
// 	{
// 		str+="<div class='menuseparator_index'>";
// 			str+="<a href='sos-staff.php' class='menulinking_index'>";
// 				str+="<span class='menus_index left_menu_link_normal'>SOS STAFF</span>";
// 			str+="</a>";	
// 		str+="</div>";
// 	}
// 	if(pageName=='sos-awards.php')
// 	{ 
// 		str+="<div class='menuseparator_index'>";
// 			str+="<span class='menus_index left_menu_link_selected menulinking_index'>SOS AWARDS</span>";
// 		str+="</div>";
// 	}
// 	else
// 	{
// 		str+="<div class='menuseparator_index'>";
// 			str+="<a href='sos-awards.php' class='menulinking_index'>";
// 				str+="<span class='menus_index left_menu_link_normal'>SOS AWARDS</span>";
// 			str+="</a>";	
// 		str+="</div>";
// 	}
// 	if(pageName=='lifeline.php')
// 	{ 
// 		str+="<div class='menuseparator_index'>";
// 			str+="<span class='menus_index left_menu_link_selected menulinking_index'>LIFELINE</span>";
// 		str+="</div>";
// 	}
// 	else
// 	{
// 		str+="<div class='menuseparator_index'>";
// 			str+="<a href='lifeline.php' class='menulinking_index'>";
// 				str+="<span class='menus_index left_menu_link_normal'>LIFELINE</span>";
// 			str+="</a>";	
// 		str+="</div>";
// 	}
// 	if(pageName=='tackers.php' || pageName=='tackers-diff_issues.php' || pageName=='tackers-activities.php')
// 	{ 
// 		str+="<div class='menuseparator_index'>";
// 			str+="<span class='menus_index left_menu_link_selected menulinking_index'>TACKERS FOUNDATION</span>";
// 		str+="</div>";
// 	}
// 	else
// 	{
// 		str+="<div class='menuseparator_index'>";
// 			str+="<a href='tackers.php' class='menulinking_index'>";
// 				str+="<span class='menus_index left_menu_link_normal'>TACKERS FOUNDATION</span>";
// 			str+="</a>";	
// 		str+="</div>";
// 	}
// 	
// 	if(pageName=='home-qa.php')
// 	{ 
// 		str+="<div class='menuseparator_index'>";
// 			str+="<span class='menus_index left_menu_link_selected menulinking_index'>Q&amp;A&rsquo;S</span>";
// 		str+="</div>";
// 	}
// 	else
// 	{
// 		str+="<div class='menuseparator_index'>";
// 			str+="<a href='home-qa.php' class='menulinking_index'>"
// 				str+="<span class='menus_index left_menu_link_normal'>Q&amp;A&rsquo;S</span>";
// 			str+="</a>";	
// 		str+="</div>";
// 	}
// 
// 	if(pageName=='general-video.php')
// 	{ 
// 		str+="<div class='menuseparator_index'>";
// 			str+="<span class='menus_index left_menu_link_selected menulinking_index'>VIDEOS</span>";
// 		str+="</div>";
// 	}
// 	else
// 	{
// 		str+="<div class='menuseparator_index'>";
// 			str+="<a href='general-video.php' class='menulinking_index'>"
// 				str+="<span class='menus_index left_menu_link_normal'>VIDEOS</span>";
// 			str+="</a>";	
// 		str+="</div>";
// 	}
// 	if(pageName=='chocolate-facts.php' || pageName=='cadbury.php' || pageName=='cadbury-green.php' || pageName=='product-information.php'|| pageName=='arnotts-nutritionals.php' || pageName=='mars.php' || pageName=='nestle.php')
// 	{ 
// 		str+="<div class='menuseparator_index'>";
// 			str+="<span class='menus_index left_menu_link_selected menulinking_index'>CHOCOLATE FACTS</span>";
// 		str+="</div>";
// 	}
// 	else
// 	{
// 		str+="<div class='menuseparator_index'>";
// 			str+="<a href='chocolate-facts.php' class='menulinking_index'>";
// 				str+="<span class='menus_index left_menu_link_normal'>CHOCOLATE FACTS</span>";
// 			str+="</a>";	
// 		str+="</div>";
// 	}
// 	if(pageName=='photo-album.php' || pageName=='photo-album-snackbox.php' || pageName=='photo-album-staff.php' || pageName=='photo-album-vehicles.php' || pageName=='photo-album-conferences.php')
// 	{ 
// 		str+="<div class='menuseparator_index'>";
// 			str+="<span class='menus_index left_menu_link_selected menulinking_index'>PHOTO ALBUM</span>";
// 		str+="</div>";
// 	}
// 	else
// 	{
// 		str+="<div class='menuseparator_index'>";
// 			str+="<a href='photo-album.php' class='menulinking_index'>";
// 				str+="<span class='menus_index left_menu_link_normal'>PHOTO ALBUM</span>";
// 			str+="</a>";	
// 		str+="</div>";
// 	}
// 	if(pageName=='guestbook.php')
// 	{ 
// 		str+="<div class='menuseparatorlast_index'>";
// 			str+="<span class='menus_index left_menu_link_selected menulinking_index'>GUEST BOOK</span>";
// 		str+="</div>";
// 	}
// 	else
// 	{
// 		str+="<div class='menuseparatorlast_index'>";
// 			str+="<a href='sosguestbook/messagestick.php' class='menulinking_index'>";
// 				str+="<span class='menus_index left_menu_link_normal'>GUEST BOOK</span>";
// 			str+="</a>";	
// 		str+="</div>";
// 	}
	
/*****************************************************************************************************/

//}

// if(pageName=='franchisee-login.php'&&id=='')
// { 
// str+="<tr><td align='left' valign='top'><img src='australia/a/franchisee_login.jpg'   alt='Franchise Chocolate Australia' width='172' height='21' border='0'/></td></tr>";
// }
// else
// {
// if(id==''){
// str+="<tr>";
// str+="<td align='left' valign='top'><a href='franchisee-login.php'  title='Franchise Chocolate Australia' onmouseover=mouseon('franchisee_login'); onmouseout=mouseOff('franchisee_login');><img name='franchisee_login'    alt='Franchise Chocolate Australia' src='australia/b/franchisee_login.jpg' width='172' height='21' border='0'/></a></td>";
// str+="</tr>";
// }
// }
// if(pageName=='iphone.php')
// { 
// str+="<tr><td align='left' valign='top'><img src='australia/a/australiaphone.jpg' alt='Franchising Chocolate' width='172' height='21' border='0'/></td></tr>";
// }
// else
// {
// str+="<tr>";
// str+="<td align='left' valign='top'><a href='iphone.php' title='Franchising Chocolate'  onmouseover=mouseon('australiaphone'); onmouseout=mouseOff('australiaphone');><img name='australiaphone' alt='Franchising Chocolate'  src='australia/b/australiaphone.jpg' width='172' height='21' border='0'/></a></td>";
// str+="</tr>";
// }
// if(pageName=='contact.php')
// { 
// str+="<tr><td align='left' valign='top'><img src='australia/a/australiacontact.jpg' alt='Franchising Confectionery' width='172' height='21' border='0'/></td></tr>";
// }
// else
// {
// str+="<tr>";
// str+="<td align='left' valign='top'><a href='contact.php' title='Franchising Confectionery' onmouseover=mouseon('australiacontact'); onmouseout=mouseOff('australiacontact');><img name='australiacontact' alt='Franchising Confectionery' src='australia/b/australiacontact.jpg' width='172' height='21' border='0'/></a></td>";
// str+="</tr>";
// }
// if(id!=''&&m==1)
// {
// if(pageName=='chapters.php')
// { 
// str+="<tr><td align='left' valign='top'><img src='australia/a/manual.jpg' width='172' height='21' border='0'/></td></tr>";
// }
// else
// {
// str+="<tr>";
// str+="<td align='left' valign='top'><a href='chapters.php' onmouseover=mouseon('manual'); onmouseout=mouseOff('manual');><img name='manual' src='australia/b/manual.jpg' width='172' height='21' border='0'/></a></td>";
// str+="</tr>";
// }
// }
// if(id!=''&&d==1)
// {
// str+="<tr>";
// str+="<td align='left' valign='top'><a href='discussion-board.php' onmouseover=mouseon('discussion'); onmouseout=mouseOff('discussion');><img name='discussion' src='australia/b/discussion.jpg' width='172' height='21' border='0'/></a></td>";
// str+="</tr>";
// }
// if(id!='')
// {
// str+="<tr>";
// str+="<td align='left' valign='top'><a href='logout.php' onmouseover=mouseon('logout'); onmouseout=mouseOff('logout');><img name='logout' src='australia/b/logout.jpg' width='172' height='21' border='0'/></a></td>";
// str+="</tr>";
// }


/*str+="</div>";
str+="<div class='borderimg2_index'></div>";
str+="</div>";	
str+="<div id='menufooter_index'></div>";
document.write(str);
}*/	

function left_image1()
{
//alert('sdds');
str='';
str+="<a href='franchises-available.php'>";
str+="<img src='images/franchises_available.jpg' alt='Franchises Available' title='Franchises Available' />";
str+="</a>";
document.write(str);		
}
function left_image2()
{
str='';
str+="<a href='http://www.franchise.org.au/' target='_blank'><img src='images/fca_logo.jpg' alt='Franchise Council Australia' title='Franchise Council Australia' /></a>";
document.write(str);		
}

/*******************************************************************************************/

function leftmenu()
{
/*alert(id);
	alert(m);
	alert(d);*/
	var p=document.location.href;
	var pn=p.lastIndexOf('/');
	var pe=p.indexOf('?');
	if(pe!='-1')
	var pageName=p.substring(pn+1,pe);
	else
	var pageName=p.substring(pn+1);
//alert(pageName);
var str="";
str+="<div id='menuheader_index1'>";
	str+="<div id='menucategories_index'>";
		str+="<span class='categories_index category_textformat'>CATEGORIES</span>";	
	str+="</div>";
str+="</div>";
str+="<div class='middlelist_index'>";
	str+="<div class='menulink_index1'>";
		str+="<div class='arrowlistmenu' >";
			if(pageName=='index.php' || pageName=='')
			{
			str+="<h3 class='menuheader2' style='margin-top:-2px'>";
			str+="<div class='pad_top8 overlink'>&nbsp;&nbsp;HOME</div></h3>";
			}
			else
			{
			str+="<h3 class='menuheader2' style='margin-top:-2px' onclick=\"window.location='index.php'\">";
			str+="<div class='pad_top8 onlink'>&nbsp;&nbsp;HOME</div></h3>";
			}
			str+="<h3 class='menuheader expandable'><div class='pad_top8'>&nbsp;&nbsp;GET A SNACK BOX</div></h3>";
			str+="<ul class='categoryitems'>";
				if(pageName=='getasnackbox.php')
				{
				str+="<li><span class='left_sub_link_selected'>Get a Snack Box</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='getasnackbox.php' title='Get a Snack Box'>Get a Snack Box</a></span></li>";
				}
				if(pageName=='getasnackbox-workplace.php')
				{
				str+="<li><span class='left_sub_link_selected'>Workplace Snack Boxes</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='getasnackbox-workplace.php' title='Workplace Snack Boxes'>Workplace Snack Boxes</a></span></li>";
				}
				if(pageName=='reasons-to-eat-chocolate.php')
				{
				str+="<li><span class='left_sub_link_selected'>Reasons to Eat Chocolate</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='reasons-to-eat-chocolate.php' title='Reasons to Eat Chocolate'>Reasons to Eat Chocolate</a></span></li>";
				}
			str+="</ul>";	
	                str+="<h3 class='menuheader expandable'><div class='pad_top8'>&nbsp;&nbsp;SOS FRANCHISING</div></h3>";
	                str+="<ul class='categoryitems'>";
				if(pageName=='sos-franchising.php')
				{
		        	str+="<li><span class='left_sub_link_selected'>SOS Franchising</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='sos-franchising.php' title='SOS Franchising'>SOS Franchising</a></span></li>";
				}
				if(pageName=='sos-application.php')
				{
		        	str+="<li><span class='left_sub_link_selected'>Application Form</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='sos-application.php' title='Application Form'>Application Form</a></span></li>";
				}
				if(pageName=='sos-busoutline.php')
				{
        	                str+="<li><span class='left_sub_link_selected'>Business Outline</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='sos-busoutline.php' title='Business Outline'>Business Outline</a></span></li>";
				}
				if(pageName=='establishment-costs.php')
				{
	                        str+="<li><span class='left_sub_link_selected'>Establishment Cost</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='establishment-costs.php?flg=0' title='Establishment Cost'>Establishment Cost</a></span></li>";
				}
				if(pageName=='sos-franchiseeinfo.php')
				{
		                str+="<li><span class='left_sub_link_selected'>Franchisee Information</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='sos-franchiseeinfo.php' title='Franchisee Information'>Franchisee Information</a></span></li>";
				}
				if(pageName=='sos-franchiseeselection.php')
				{
		                str+="<li><span class='left_sub_link_selected'>Franchisee Selection</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='sos-franchiseeselection.php' title='Franchisee Selection'>Franchisee Selection</a></span></li>";
				}
				if(pageName=='sos-franchisinginfo.php')
				{
		                str+="<li><span class='left_sub_link_selected'>Franchising Info</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='sos-franchisinginfo.php' title='Franchising Info'>Franchising Info</a></span></li>";
				}
				if(pageName=='quick-facts.php')
				{
		                str+="<li><span class='left_sub_link_selected'>Quick Facts</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='quick-facts.php' title='Quick Facts'>Quick Facts</a></span></li>";
				}
				if(pageName=='sos-strengths.php')
				{
		                str+="<li><span class='left_sub_link_selected'>SOS Strength</span></li>";
				}
				else
				{
		                str+="<li><span class='left_sub_link'><a href='sos-strengths.php' title='SOS Strength'>SOS Strength</a></span></li>";
				}
				if(pageName=='sos-whybuy.php')
				{
		                str+="<li><span class='left_sub_link_selected'>Why Buy a SOS Franchisee</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='sos-whybuy.php' title='Why Buy a SOS Franchisee'>Why Buy a SOS Franchisee</a></span></li>";
				}
				if(pageName=='franchise_code.php')
				{
		                str+="<li><span class='left_sub_link_selected'>Franchising Code</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='franchise_code.php' title='Franchising Code'>Franchising Code</a></span></li>";
				}
			str+="</ul>";
	                str+="<h3 class='menuheader expandable'><div class='pad_top8'>&nbsp;&nbsp;FRANCHISES AVAILABLE</div></h3>";
	                str+="<ul class='categoryitems'>";
				if(pageName=='franchises-available.php')
				{
		                str+="<li><span class='left_sub_link_selected'>Franchises Available</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='franchises-available.php' title='Franchises Available'>Franchises Available</a></span></li>";
				}
				if(pageName=='franchisee-login.php')
				{
		                str+="<li><span class='left_sub_link_selected'>Franchisee Only</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='franchisee-login.php' title='Franchisee Only'>Franchisee Only</a></span></li>";
				}
				if(pageName=='home-links.php')
				{
        	        	str+="<li><span class='left_sub_link_selected'>Links</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='home-links.php' title='Links'>Links</a></span></li>";
				}
	                str+="</ul>";
	                str+="<h3 class='menuheader expandable'><div class='pad_top8'>&nbsp;&nbsp;ABOUT US</div></h3>";
	                str+="<ul class='categoryitems'>";
				if(pageName=='about.php')
				{
		        	str+="<li><span class='left_sub_link_selected'>About Us</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='about.php' title='About Us'>About Us</a></span></li>";
				}
				if(pageName=='about-history.php')
				{
		        	str+="<li><span class='left_sub_link_selected'>History</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='about-history.php' title='History'>History</a></span></li>";
				}
				if(pageName=='about-mission.php')
				{
        	                str+="<li><span class='left_sub_link_selected'>Mission</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='about-mission.php' title='Mission'>Mission</a></span></li>";
				}
				if(pageName=='about-bus-involve.php')
				{
	                        str+="<li><span class='left_sub_link_selected'>Business Involvment</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='about-bus-involve.php' title='Business Involvment'>Business Involvment</a></span></li>";
				}
				if(pageName=='about-corp-philosophy.php')
				{
		                str+="<li><span class='left_sub_link_selected'>Corporate Philosphy</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='about-corp-philosophy.php' title='Corporate Philosphy'>Corporate Philosphy</a></span></li>";
				}
				if(pageName=='about-privacy.php')
				{
		                str+="<li><span class='left_sub_link_selected'>Privacy</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='about-privacy.php' title='Privacy'>Privacy</a></span></li>";
				}
				if(pageName=='about-target.php')
				{
		                str+="<li><span class='left_sub_link_selected'>Target</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='about-target.php' title='Target'>Target</a></span></li>";
				}
			str+="</ul>";
			if(pageName=='sos-staff.php')
			{
	                str+="<h3 class='menuheader2'><div class='pad_top8 overlink'>&nbsp;&nbsp;SOS STAFF</div></h3>";
	                }
	                else
	                {
	                str+="<h3 class='menuheader2' onclick=\"window.location='sos-staff.php'\"><div class='pad_top8 onlink'>&nbsp;&nbsp;SOS STAFF</div></h3>";
	                }
	                if(pageName=='sos-awards.php')
			{
	                str+="<h3 class='menuheader2'><div class='pad_top8 overlink'>&nbsp;&nbsp;SOS AWARDS</div></h3>";
	                }
	                else
	                {
	                str+="<h3 class='menuheader2' onclick=\"window.location='sos-awards.php'\"><div class='pad_top8 onlink'>&nbsp;&nbsp;SOS AWARDS</div></h3>";
	                }
	                str+="<h3 class='menuheader expandable'><div class='pad_top8'>&nbsp;&nbsp;LIFELINE</div></h3>";
	                str+="<ul class='categoryitems'>";
				if(pageName=='lifeline.php')
				{
		        	str+="<li><span class='left_sub_link_selected'>Lifeline</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='lifeline.php' title='Lifeline'>Lifeline</a></span></li>";
				}
				if(pageName=='lifeline-history.php')
				{
		        	str+="<li><span class='left_sub_link_selected'>History</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='lifeline-history.php' title='History'>History</a></span></li>";
				}
				if(pageName=='lifeline-suicide-prevention.php')
				{
        	                str+="<li><span class='left_sub_link_selected'>Suicide Prevention</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='lifeline-suicide-prevention.php' title='Suicide Prevention'>Suicide Prevention</a></span></li>";
				}
				
				if(pageName=='lifeline-volunteers.php')
				{
        	                str+="<li><span class='left_sub_link_selected'>Volunteers</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='lifeline-volunteers.php' title='Volunteers'>Volunteers</a></span></li>";
				}
				
				
				if(pageName=='lifeline-partners.php')
				{
	                        str+="<li><span class='left_sub_link_selected'>Partners</span></li>";
				}
				else
				{
		                str+="<li><span class='left_sub_link'><a href='lifeline-partners.php' title='Partners'>Partners</a></span></li>";
				}
			str+="</ul>";
			str+="<h3 class='menuheader expandable'><div class='pad_top8'>&nbsp;&nbsp;TACKERS FOUNDATION</div></h3>";
	                str+="<ul class='categoryitems'>";
				if(pageName=='tackers.php')
				{
		        	str+="<li><span class='left_sub_link_selected'>Tackers Foundation</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='tackers.php' title='Tackers Foundation'>Tackers Foundation</a></span></li>";
				}
				if(pageName=='tackers-diff-issues.php')
				{
		        	str+="<li><span class='left_sub_link_selected'>Difficulties</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='tackers-diff-issues.php' title='Difficulties'>Difficulties</a></span></li>";
				}
				if(pageName=='tackers-activities.php')
				{
        	                str+="<li><span class='left_sub_link_selected'>Activities</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='tackers-activities.php' title='Activities'>Activities</a></span></li>";
				}
			str+="</ul>";
			if(pageName=='home-qa.php')
			{
	                str+="<h3 class='menuheader2'><div class='pad_top8 overlink'>&nbsp;&nbsp;Q &amp; A</div></h3>";
	                }
	                else
	                {
	                str+="<h3 class='menuheader2' onclick=\"window.location='home-qa.php'\"><div class='pad_top8 onlink'>&nbsp;&nbsp;Q &amp; A</div></h3>";
			}
	                if(pageName=='general-video.php')
			{
			str+="<h3 class='menuheader2'><div class='pad_top8 overlink'>&nbsp;&nbsp;VIDEOS</div></h3>";
			}
			else
			{
			str+="<h3 class='menuheader2' onclick=\"window.location='general-video.php'\"><div class='pad_top8 onlink'>&nbsp;&nbsp;VIDEOS</div></h3>";
			}
	                str+="<h3 class='menuheader expandable'><div class='pad_top8'>&nbsp;&nbsp;CHOCOLATE FACTS</div></h3>";
	                str+="<ul class='categoryitems'>";
				if(pageName=='chocolate-facts.php')
				{
		        	str+="<li><span class='left_sub_link_selected'>Chocolate Facts</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='chocolate-facts.php' title='Chocolate Facts'>Chocolate Facts</a></span></li>";
				}
				if(pageName=='arnotts-nutritionals.php')
				{
		        	str+="<li><span class='left_sub_link_selected'>Arnotts</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='arnotts-nutritionals.php' title='Arnotts'>Arnotts</a></span></li>";
				}
				if(pageName=='cadbury.php')
				{
        	                str+="<li><span class='left_sub_link_selected'>Cadbury</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='cadbury.php' title='Cadbury'>Cadbury</a></span></li>";
				}
				if(pageName=='mars.php')
				{
	                        str+="<li><span class='left_sub_link_selected'>Mars Snack Food</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='mars.php' title='Mars Snack Food'>Mars Snack Food</a></span></li>";
				}
				if(pageName=='nestle.php')
				{
		                str+="<li><span class='left_sub_link_selected'>Nestle</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='nestle.php' title='Nestle'>Nestle</a></span></li>";
				}
				if(pageName=='chocolate-recipes.php')
				{
		                str+="<li><span class='left_sub_link_selected'>Chocolate Recipes</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='chocolate-recipes.php' title='Chocolate Recipes'>Chocolate Recipes</a></span></li>";
				}
				if(pageName=='favourite-tv-Ads.php')
				{
		                str+="<li><span class='left_sub_link_selected'>Favourite TV Ad's</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='favourite-tv-Ads.php' title='Favourite TV Ad&apos;s'>Favourite TV Ad's</a></span></li>";
				}
				if(pageName=='reasons-to-eat-choco.php')
				{
		                str+="<li><span class='left_sub_link_selected'>Reasons to Eat Chocolate</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='reasons-to-eat-choco.php' title='Reasons to Eat Chocolate'>Reasons to Eat Chocolate</a></span></li>";
				}
			str+="</ul>";
			str+="<h3 class='menuheader expandable'><div class='pad_top8'>&nbsp;&nbsp;PHOTO ALBUM</div></h3>";
	                str+="<ul class='categoryitems'>";
				if(pageName=='photo-album.php')
				{
		        	str+="<li><span class='left_sub_link_selected'>Photo Album</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='photo-album.php' title='Photo Album'>Photo Album</a></span></li>";
				}
				if(pageName=='photo-album-snackbox.php')
				{
		        	str+="<li><span class='left_sub_link_selected'>Snack Boxes</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='photo-album-snackbox.php' title='Snack Boxes'>Snack Boxes</a></span></li>";
				}
				if(pageName=='photo-album-vehicles.php')
				{
        	                str+="<li><span class='left_sub_link_selected'>Vehicles</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='photo-album-vehicles.php' title='Vehicles'>Vehicles</a></span></li>";
				}
				if(pageName=='photo-album-staff.php')
				{
	                        str+="<li><span class='left_sub_link_selected'>Franchisees/Staff</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='photo-album-staff.php' title='Franchisees/Staff'>Franchisees/Staff</a></span></li>";
				}
				if(pageName=='photo-album-conferences.php')
				{
		                str+="<li><span class='left_sub_link_selected'>Conferences/Meetings</span></li>";
				}
				else
				{
				str+="<li><span class='left_sub_link'><a href='photo-album-conferences.php' title='Conferences/Meetings'>Conferences/Meetings</a></span></li>";
				}
			str+="</ul>";
			str+="<h3 class='menuheader expandable'><div class='pad_top8'>&nbsp;&nbsp;GUEST BOOK</div></h3>";
	                str+="<ul class='categoryitems'>";
	                	if(pageName=='msg.php')
				{
		        	str+="<li><span class='left_sub_link_selected'>Leave your own message</span></li>";
		        	}
		        	else
		        	{
		        	str+="<li><span class='left_sub_link'><a href='sosguestbook/msg.php' title='Leave Your Own Message'>Leave Your Own Message</a></span></li>";
		        	}
		        	if(pageName=='messagestick.php')
				{
        	                str+="<li><span class='left_sub_link_selected'>Your Messages</span></li>";
	                        }
	                        else
	                        {
	                        str+="<li><span class='left_sub_link'><a href='sosguestbook/messagestick.php' title='Your Messages'>Your Messages</a></span></li>";
	                        }
			str+="</ul>";
		str+="</div>";
	str+="</div>"; 
str+="</div>";
str+="<div id='menufooter_index1'></div>";
document.write(str);
}


function setCookie(c_name,value,expiredays)
{
	
	var exdate=new Date();
	exdate.setDate(exdate.getDate()+expiredays);
	document.cookie=c_name+ "=" +escape(value)+
	((expiredays==null) ? "" : ";expires="+exdate.toUTCString());
}

