//==== 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/SITE-MAP.jpg","australia/yelllo_a/FRANCHISEE-ONLY.jpg","australia/yelllo_a/LINKS.jpg");
//==== preloader ends ====//


function mouseonHOME(imgnm)
	{
		document.images[imgnm].src="australia/yelllo_a/"+ imgnm + ".jpg";		
	}
function mouseOffHOME(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_home()
{
		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);
		
		if(pageName=='index.php')
		{
		var str="<table cellpadding='0' cellspacing='0' align='right' border='0' width='100%' background='australia/yell_bg.jpg'>";
		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' class='txt'>&nbsp;</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' border='0'></a><a href='customer-order.php?sent=1' title='Franchise Chocolate Australia'><img src='australia/chocolate_box2.jpg' alt='Franchise Chocolate Australia' border='0'></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' border='0'></a><a href='customer-order.php?sent=1' title='Franchise Chocolate Australia'><img src='australia/franchising2.jpg'  alt='Franchise Chocolate Australia' border='0'></a></td>";
		str+="</tr>";
		str+="<tr><td>&nbsp;</td></tr>";
		}
		else
		{
		var str="<table cellpadding='0' cellspacing='0' align='right' border='0' width='100%' background='australia/yell_bg.jpg'>";
		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' class='txt'>&nbsp;</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' border='0'></a><a href='customer-order.php?sent=1' title='Franchise Chocolate Australia'><img src='australia/chocolate_box2.jpg' width='78' height='89' alt='Franchise Chocolate Australia' border='0'></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' border='0'></a><a href='customer-order.php?sent=1' title='Franchise Chocolate Australia'><img src='australia/franchising2.jpg'  alt='Franchise Chocolate Australia' width='81' height='24' border='0'></a></td>";
		str+="</tr>";
		str+="<tr><td>&nbsp;</td></tr>";
		}
		
		if(pageName=='establishment-costs.php')
		{ 
		str+="<tr><td align='left' valign='top'><img src='australia/yelllo_a/establishment-code.jpg' alt='Franchising Confectionery' width='183' height='21' border='0'/></td></tr>";
		}
		else
		{
		str+="<tr>";
		str+="<td align='left' valign='top'><a href='establishment-costs.php?flg=1' title='Franchising Confectionery' onmouseover=mouseonHOME('establishment-code'); onmouseout=mouseOffHOME('establishment-code');><img name='establishment-code' alt='Franchising Confectionery' src='australia/yello_b/establishment-code.jpg' width='183' height='21' border='0'/></a></td>";
		str+="</tr>";
		}
		
		if(pageName=='home-sitemap.php')
		{
		str+="<tr><td align='left' valign='top'><img src='australia/yelllo_a/SITE-MAP.jpg' width='183' height='21' alt='Franchising Chocolate' border='0'/></td></tr>";
		}
		else
		{
		str+="<tr>";
		str+="<td align='left' valign='top'><a href='home-sitemap.php' title='Franchising Chocolate' onmouseover=mouseonHOME('SITE-MAP'); onmouseout=mouseOffHOME('SITE-MAP');><img name='SITE-MAP' alt='Franchising Chocolate' src='australia/yello_b/SITE-MAP.jpg' width='183' height='21' border='0'/></a></td>";
		str+="</tr>";
		}
		
		
		if(pageName=='home-franchiseesonly.php')
		{ 
		str+="<tr><td align='left' valign='top'><img src='australia/yelllo_a/FRANCHISEE-ONLY.jpg' alt='Franchise Mobile Australia' width='183' height='21' border='0'/></td></tr>";
		}
		else
		{
		str+="<tr>";
		str+="<td align='left' valign='top'><a href='franchisee-login.php' title='Franchise Mobile Australia' onmouseover=mouseonHOME('FRANCHISEE-ONLY'); onmouseout=mouseOffHOME('FRANCHISEE-ONLY');><img name='FRANCHISEE-ONLY' alt='Franchise Mobile Australia' src='australia/yello_b/FRANCHISEE-ONLY.jpg' width='183' height='21' border='0'/></a></td>";
		str+="</tr>";
		}
		if(pageName=='franchises-available.php')
		{ 
		str+="<tr><td align='left' valign='top'><img src='australia/yelllo_a/FRANCHISEE-AVAILABLE.jpg' alt='Franchise Confectionery Australia' width='183' height='21' border='0'/></td></tr>";
		}
		else
		{
		str+="<tr>";
		str+="<td align='left' valign='top'><a href='franchises-available.php' title='Franchise Confectionery Australia' onmouseover=mouseonHOME('FRANCHISEE-AVAILABLE'); onmouseout=mouseOffHOME('FRANCHISEE-AVAILABLE');><img name='FRANCHISEE-AVAILABLE' alt='Franchise Confectionery Australia' src='australia/yello_b/FRANCHISEE-AVAILABLE.jpg' width='183' height='21' border='0'/></a></td>";
		str+="</tr>";
		}
		
		
		if(pageName=='home-links.php')
		{ 
		str+="<tr><td align='left' valign='top'><img src='australia/yelllo_a/LINKS.jpg' alt='Franchising Confectionery Australia' width='183' height='21' border='0'/></td></tr>";
		}
		else
		{
		str+="<tr>";
		str+="<td align='left' valign='top'><a href='home-links.php' title='Franchising Confectionery Australia' onmouseover=mouseonHOME('LINKS'); onmouseout=mouseOffHOME('LINKS');><img name='LINKS' src='australia/yello_b/LINKS.jpg' width='183' alt='Franchising Confectionery Australia' height='21' border='0'/></a></td>";
		str+="</tr>";
		}
		
		
		if(pageName=='sos-staff.php')
		{ 
		str+="<tr><td align='left' valign='top'><img src='australia/yelllo_a/about_us_r.jpg' width='183' alt='Franchising Chocolate Australia' height='21' border='0'/></td></tr>";
		}
		else
		{
		str+="<tr>";
		str+="<td align='left' valign='top'><a href='sos-staff.php' title='Franchising Chocolate Australia' onmouseover=mouseonHOME('about_us_r'); onmouseout=mouseOffHOME('about_us_r');><img name='about_us_r' alt='Franchising Chocolate Australia' src='australia/yello_b/about_us_r.jpg' width='183' height='21' border='0'/></a></td>";
		str+="</tr>";
		}
		if(pageName=='franchise_code.php')
		{ 
		str+="<tr><td align='left' valign='top'><img src='australia/yelllo_a/franchising-code.jpg' width='183' alt='Franchising Confectionery' height='21' border='0'/></td></tr>";
		}
		else
		{
		str+="<tr>";
		str+="<td align='left' valign='top'><a href='franchise_code.php' title='Franchising Confectionery' onmouseover=mouseonHOME('franchising-code'); onmouseout=mouseOffHOME('franchising-code');><img name='franchising-code' alt='Franchising Confectionery' src='australia/yello_b/franchising-code.jpg' width='183' height='21' border='0'/></a></td>";
		str+="</tr>";
		}
		
		str+="<tr><td>&nbsp;</td></tr>";
		str+="<tr><td align='left' valign='top'>";
		str+="<img src='australia/free_call.jpg' width='183' alt='franchising chocolate australia'  height='143' border='0' align='top'></td>";
		str+="</tr>";
		str+="<tr><td align='left' valign='top'>&nbsp;</td>";
		str+="</tr>";
		str+="<tr><td align='left' valign='top' style='padding-left:13px'><img src='australia/franchise_chocolate.jpg' alt='franchise confectionery' border='0' align='top' hspace='0' vspace='0'></td>";
		str+="</tr></table>";
		
		
		document.write(str);
}	