// Shows and hides the two panels on the home page
function showPanel(panel) {
	if (panel == 'products') {
		document.getElementById('mortgagepanel').style.display = "none";
		document.getElementById('insurancepanel').style.display = "none";
		document.getElementById('productpanel').style.display = "block";
	}
	else if (panel == 'mortgages') {
		document.getElementById('productpanel').style.display = "none";
		document.getElementById('insurancepanel').style.display = "none";
		document.getElementById('mortgagepanel').style.display = "block";
	}
	else if (panel == 'insurance') {
		document.getElementById('productpanel').style.display = "none";
		document.getElementById('insurancepanel').style.display = "block";
		document.getElementById('mortgagepanel').style.display = "none";	
	}
}
// function random_flashlink() {
// var randomNumber = parseInt(getCookie('RandomNumber'));
//     if (randomNumber=="0") {
//         document.write('<object type=\"application/x-shockwave-flash\" width=\"325\" height=\"290\" data=\"/swf/Clock_banner.swf\" id=\"homebannerflash\">');
//         document.write('<param name=\"movie\" value=\"/swf/Clock_banner.swf\" />');
//         document.write('<param name=\"quality\" value=\"high\" />');
//         document.write('<param name=\"scale\" value=\"exactfit\" />');
//         document.write('<param name=\"wmode\" value=\"transparent\" />');
//         document.write('<img src=\"/img/flashalts/Clock_banner_nonflash.jpg\" width=\"322\" height=\"290\" alt=\"Time is precious... and it\'s running out. Activate your new online system now.\" usemap=\"#Map\" border=\"0\" />');
//         document.write('</object>');
//         setCookie('1');
//     }
//     else if (randomNumber=="1") {
//         document.write('<object type=\"application/x-shockwave-flash\" width=\"325\" height=\"290\" data=\"/swf/building_banner.swf\" id=\"homebannerflash\">');
//         document.write('<param name=\"movie\" value=\"/swf/building_banner.swf\" />');
//         document.write('<param name=\"quality\" value=\"high\" />');
//         document.write('<param name=\"scale\" value=\"exactfit\" />');
//         document.write('<param name=\"wmode\" value=\"transparent\" />');
//         document.write('<img src=\"/img/flashalts/building_banner_nonflash.gif\" width=\"322\" height=\"290\" alt=\"Time is precious... and it\'s running out. Activate your new online system now.\" usemap=\"#Map\" border=\"0\" />');
//         document.write('</object>');
//         setCookie('0');
//     }
//     else { 
//         document.write('<object type=\"application/x-shockwave-flash\" width=\"325\" height=\"290\" data=\"/swf/Clock_banner.swf\" id=\"homebannerflash\">');
//         document.write('<param name=\"movie\" value=\"/swf/Clock_banner.swf\" />');
//         document.write('<param name=\"quality\" value=\"high\" />');
//         document.write('<param name=\"scale\" value=\"exactfit\" />');
//         document.write('<param name=\"wmode\" value=\"transparent\" />');
//         document.write('<img src=\"/img/flashalts/Clock_banner_nonflash.jpg\" width=\"322\" height=\"290\" alt=\"Time is precious... and it\'s running out. Activate your new online system now.\" usemap=\"#Map\" border=\"0\" />');
//         document.write('</object>');
//         setCookie('0');
//     }
// }
// function setCookie(value)
// {
// var exdate=new Date();
// exdate.setDate(exdate.getDate());
// document.cookie="RandomNumber =" + value + (exdate.toUTCString());
// }
// 
// function getCookie(randomNumber)
// {
// if (document.cookie.length>0)
//   {
//   c_start=document.cookie.indexOf(randomNumber + "=");
//   if (c_start!=-1)
//     {
//     c_start=c_start + randomNumber.length+1;
//     c_end=document.cookie.indexOf(";",c_start);
//     if (c_end==-1) c_end=document.cookie.length;
//     return unescape(document.cookie.substring(c_start,c_end));
//     }
//   }
// return "";
// }
