//==== image preloader ====//
var myimages = new Array();
function preloading(){
for (x=0; x<preloading.arguments.length; x++){
myimages[x] = new Image();
myimages[x].src = preloading.arguments[x];
}
}
preloading("australia/yelllo_a/HISTORY.jpg","australia/yelllo_a/MISSION.jpg","australia/yelllo_a/BUS-INVOLVE.jpg","australia/yelllo_a/CORP_PHILOSOPHY.jpg","australia/yelllo_a/PRIVACY.jpg","australia/yelllo_a/TARGET.jpg","australia/yelllo_a/about_us_r.jpg");
//==== preloader ends ====//



function mouseonAbout(imgnm)
	{
		document.images[imgnm].src="australia/yelllo_a/"+ imgnm + ".jpg";		
	}
function mouseOffabout(imgnm)
	{
		document.images[imgnm].src="australia/yello_b/"+ imgnm + ".jpg";		
	}
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();
		
	}
	
function right_about()
{
	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);
var str="<table cellpadding='0' cellspacing='0' align='right' border='0' width='100%'>";
str+="<tr><td align='center' valign='top'><a href='iphone.php'  title='Franchise Mobile Australia'><img src='australia/mobile_australia.gif' width='183' height='32' border='0' vspace='0' hspace='0' alt='Franchise Mobile Australia'></a></td></tr>";
str+="<tr><td align='center' valign='top'><a href='iphone.php'  title='Franchise Mobile Australia'><img src='australia/franchise_mobile.gif'  alt='Franchise Mobile Australia' width='183' height='98' border='0'></a></td></tr>";
str+="<tr><td align='center' valign='top'><a href='iphone.php'  title='Franchise Mobile Australia'><img src='australia/franchising.gif'  alt='Franchise Mobile Australia' border='0'></a></td></tr>";
str+="<tr><td align='left' valign='top' style='padding-left:13px;'><a href='customer-order.php?sent=0' title='Franchise Chocolate Australia'><img src='australia/chocolate_box1.jpg' alt='Franchise Chocolate Australia' width='78' height='89' border='0'></a><a href='customer-order.php?sent=1' title='Franchise Chocolate Australia'><img src='australia/chocolate_box2.jpg' width='78' height='89' border='0' alt='Franchise Chocolate Australia'></a></td></tr>";
str+="<tr><td align='left' valign='top' class='txt'>&nbsp;</td></tr>";
str+="<tr>";
str+="<td align='left' valign='top' style='padding-left:13px;'><a href='customer-order.php?sent=0' title='Franchise Chocolate Australia'><img src='australia/franchising1.jpg' alt='Franchise Chocolate Australia' width='81' height='24' border='0'></a><a href='customer-order.php?sent=1' title='Franchise Chocolate Australia'><img src='australia/franchising2.jpg' width='81' height='24' border='0' alt='Franchise Chocolate Australia'></a></td>";
str+="</tr>";
str+="<tr><td>&nbsp;</td></tr>";

if(pageName=='about.php')
{
str+="<tr><td align='left' valign='top'><img src='australia/yelllo_a/about_sos_r.jpg' alt='Franchising Confectionery Australia' width='183' height='21' border='0'/></td></tr>";
}
else
{
str+="<tr>";
str+="<td align='left' valign='top'><a href='about.php' onmouseover=mouseonAbout('about_sos_r'); title='Franchising Confectionery Australia' onmouseout=mouseOffabout('about_sos_r');><img name='about_sos_r' src='australia/yello_b/about_sos_r.jpg' width='183' height='21' border='0' alt='Franchising Confectionery Australia'/></a></td>";
str+="</tr>";
}
if(pageName=='about-history.php')
{
str+="<tr><td align='left' valign='top'><img src='australia/yelllo_a/HISTORY.jpg' alt='Franchise Mobile Australia' width='183' height='21' border='0'/></td></tr>";
}
else
{
str+="<tr>";
str+="<td align='left' valign='top'><a href='about-history.php' title='Franchise Mobile Australia'  onmouseover=mouseonAbout('HISTORY'); onmouseout=mouseOffabout('HISTORY');><img name='HISTORY' src='australia/yello_b/HISTORY.jpg' width='183' height='21' border='0'/ alt='Franchise Mobile Australia' ></a></td>";
str+="</tr>";
}
if(pageName=='about-mission.php')
{ 
str+="<tr><td align='left' valign='top'><img src='australia/yelllo_a/MISSION.jpg' alt='Franchise Chocolate' width='183' height='21' border='0'/></td></tr>";
}
else
{
str+="<tr>";
str+="<td align='left' valign='top'><a href='about-mission.php' title='Franchise Chocolate' onmouseover=mouseonAbout('MISSION'); onmouseout=mouseOffabout('MISSION');><img name='MISSION' src='australia/yello_b/MISSION.jpg' width='183' alt='Franchise Chocolate' height='21' border='0'/></a></td>";
str+="</tr>";
}
if(pageName=='about-bus-involve.php')
{ 	
str+="<tr><td align='left' valign='top'><img src='australia/yelllo_a/BUS-INVOLVE.jpg'  alt='Franchise Confectionery Australia' width='183' height='21' border='0'/></td></tr>";
}
else
{
str+="<tr>";
str+="<td align='left' valign='top'><a href='about-bus-involve.php' title='Franchise Confectionery Australia' onmouseover=mouseonAbout('BUS-INVOLVE'); onmouseout=mouseOffabout('BUS-INVOLVE');><img name='BUS-INVOLVE'  alt='Franchise Confectionery Australia' src='australia/yello_b/BUS-INVOLVE.jpg' width='183' height='21' border='0'/></a></td>";
str+="</tr>";
}
if(pageName=='about-corp-philosophy.php')
{ 
str+="<tr><td align='left' valign='top'><img src='australia/yelllo_a/CORP_PHILOSOPHY.jpg' alt='Franchise Mobile Australia'  width='183' height='21' border='0'/></td></tr>";
}
else
{
str+="<tr>";
str+="<td align='left' valign='top'><a href='about-corp-philosophy.php'   title='Franchise Mobile Australia' onmouseover=mouseonAbout('CORP_PHILOSOPHY'); onmouseout=mouseOffabout('CORP_PHILOSOPHY');><img name='CORP_PHILOSOPHY' alt='Franchise Mobile Australia' src='australia/yello_b/CORP_PHILOSOPHY.jpg' width='183' height='21' border='0'/></a></td>";
str+="</tr>";
}
if(pageName=='about-privacy.php')
{ 
str+="<tr><td align='left' valign='top'><img src='australia/yelllo_a/PRIVACY.jpg' alt='Franchising Confectionery' width='183' height='21' border='0'/></td></tr>";
}
else
{
str+="<tr>";
str+="<td align='left' valign='top'><a href='about-privacy.php' title='Franchising Confectionery' onmouseover=mouseonAbout('PRIVACY'); onmouseout=mouseOffabout('PRIVACY');><img name='PRIVACY' alt='Franchising Confectionery' src='australia/yello_b/PRIVACY.jpg' width='183' height='21' border='0'/></a></td>";
str+="</tr>";
}
if(pageName=='about-target.php')
{ 
str+="<tr><td align='left' valign='top'><img src='australia/yelllo_a/TARGET.jpg' alt='Franchise Chocolate Australia'  width='183' height='21' border='0'/></td></tr>";
}
else
{
str+="<tr>";
str+="<td align='left' valign='top'><a href='about-target.php' title='Franchise Chocolate Australia'  onmouseover=mouseonAbout('TARGET'); onmouseout=mouseOffabout('TARGET');><img name='TARGET' src='australia/yello_b/TARGET.jpg' alt='Franchise Chocolate Australia' width='183' height='21' border='0'/></a></td>";
str+="</tr>";
}

str+="<tr><td>&nbsp;</td></tr>";
str+="<tr><td align='left' valign='top' style='padding-left:13px'><img src='australia/franchise_chocolate.jpg' border='0' alt='franchise confectionery' align='top' hspace='0' vspace='0'></td></tr>";
str+="</table>";
document.write(str);
}	
