//==== 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/APPLICATION-FORM-08.jpg","australia/yelllo_a/POSTAL.jpg","australia/yelllo_a/PHONE-NUMBERS.jpg","australia/yelllo_a/EMAIL.jpg","australia/yelllo_a/CONFIDENTIALITY-STATMENT.jpg");
//==== preloader ends ====//


function mouseon_contact(imgnm)
	{
		document.images[imgnm].src="australia/yelllo_a/"+ imgnm + ".jpg";		
	}
function mouseOff_contact(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()
	{
		var 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_contact()
{
	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>&nbsp;</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='Get a Box'><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' alt='Franchise Chocolate Australia' width='78' height='89' 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='Get a Box'><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' alt='Franchise Chocolate Australia' width='81' height='24' border='0'></a></td>";
str+="</tr>";
str+="<tr><td>&nbsp;</td></tr>";	
if(pageName=='contact-application.php')
{
str+="<tr><td align='left' valign='top'><img src='australia/yelllo_a/APPLICATION-FORM-08.jpg' alt='Franchising Confectionery Australia'  width='183' height='21' border='0'/></td></tr>";
}
else
{

str+="<tr>";
str+="<td align='left' valign='top'><a href='contact-application.php'  title='Franchising Confectionery Australia' onmouseover=mouseon_contact('APPLICATION-FORM-08'); onmouseout=mouseOff_contact('APPLICATION-FORM-08');><img name='APPLICATION-FORM-08' src='australia/yello_b/APPLICATION-FORM-08.jpg'  alt='Franchising Confectionery Australia' width='183' height='21' border='0'/></a></td>";
str+="</tr>";
}
if(pageName=='contact-postal.php')
{ 
str+="<tr><td align='left' valign='top'><img src='australia/yelllo_a/POSTAL.jpg'  alt='Franchise Mobile Australia'  width='183' height='21' border='0'/></td></tr>";
}
else
{
str+="<tr>";
str+="<td align='left' valign='top'><a href='contact-postal.php' title='Franchise Mobile Australia'  onmouseover=mouseon_contact('POSTAL'); onmouseout=mouseOff_contact('POSTAL');><img name='POSTAL' src='australia/yello_b/POSTAL.jpg'  alt='Franchise Mobile Australia'  width='183' height='21' border='0'/></a></td>";
str+="</tr>";
}
if(pageName=='contact-phone.php')
{ 	
str+="<tr><td align='left' valign='top'><img src='australia/yelllo_a/PHONE-NUMBERS.jpg' alt='Franchise Mobile'  width='183' height='21' border='0'/></td></tr>";
}
else
{
str+="<tr>";
str+="<td align='left' valign='top'><a href='contact-phone.php' title='Franchise Mobile' onmouseover=mouseon_contact('PHONE-NUMBERS'); onmouseout=mouseOff_contact('PHONE-NUMBERS');><img name='PHONE-NUMBERS' alt='Franchise Mobile'  src='australia/yello_b/PHONE-NUMBERS.jpg' width='183' height='21' border='0'/></a></td>";
str+="</tr>";
}
if(pageName=='contact_email.php')
{ 
str+="<tr><td align='left' valign='top'><img src='australia/yelllo_a/EMAIL.jpg'  alt='Franchise Chocolate Australia' width='183' height='21' border='0'/></td></tr>";
}
else
{
str+="<tr>";
str+="<td align='left' valign='top'><a href='contact-email.php' title='Franchise Mobile' onmouseover=mouseon_contact('EMAIL'); onmouseout=mouseOff_contact('EMAIL');><img name='EMAIL' src='australia/yello_b/EMAIL.jpg'  alt='Franchise Chocolate Australia' width='183' height='21' border='0'/></a></td>";
str+="</tr>";
}
if(pageName=='iphone.php')
{ 
str+="<tr><td align='left' valign='top'><img src='australia/yelllo_a/IPHONE.jpg'  alt='Franchise Mobile Australia' width='183' height='21' border='0'/></td></tr>";
}
else
{
str+="<tr>";
str+="<td align='left' valign='top'><a href='iphone.php' title='Franchise Mobile Australia' onmouseover=mouseon_contact('IPHONE'); onmouseout=mouseOff_contact('IPHONE');><img name='IPHONE' src='australia/yello_b/IPHONE.jpg'  alt='Franchise Mobile Australia' width='183' height='21' border='0'/></a></td>";
str+="</tr>";
}
if(pageName=='contact-confidential.php')
{ 
str+="<tr><td align='left' valign='top'><img src='australia/yelllo_a/CONFIDENTIALITY-STATMENT.jpg' alt='Franchise Mobile' width='183' height='21' border='0'/></td></tr>";
}
else
{
str+="<tr>";
str+="<td align='left' valign='top'><a href='contact-confidential.php' title='Franchise Mobile' onmouseover=mouseon_contact('CONFIDENTIALITY-STATMENT'); onmouseout=mouseOff_contact('CONFIDENTIALITY-STATMENT');><img name='CONFIDENTIALITY-STATMENT' src='australia/yello_b/CONFIDENTIALITY-STATMENT.jpg' alt='Franchise Mobile' width='183' height='21' border='0'/></a></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='Franchising Confectionery' border='0' align='top' hspace='0' vspace='0'></td>";
str+="</table>";
document.write(str);
}	
