function healthInit()
{
	if (!document.getElementById("dynamicFeatures"))
	{
		$("#main_content").children("div").filter(".hrShadow").show();
	}
	
	if(typeof sIFR == "function"){
		/* Landing Page */
		sIFR.replaceElement(named({sSelector:"#loginForm legend .interstate", sWmode:"transparent", sFlashSrc:getHostName() + "/MBFSystem/Flashfiles/interstate.swf", sColor:"#ffffff" }));
		sIFR.replaceElement(named({sSelector:"#staticFeatures h3 .interstate", sWmode:"transparent", sFlashSrc:getHostName() + "/MBFSystem/Flashfiles/interstate.swf", sColor:"#593870" }));
		sIFR.replaceElement(named({sSelector:"#dynamicFeatures h3 .interstate", sWmode:"transparent", sFlashSrc:getHostName() + "/MBFSystem/Flashfiles/interstate.swf", sColor:"#0078c1" }));

		/* General Page */
		sIFR.replaceElement(named({sSelector:"#main_content h2 .interstate", sWmode:"transparent", sFlashSrc:getHostName() + "/MBFSystem/Flashfiles/interstate.swf", sColor:"#593870" }));
		sIFR.replaceElement(named({sSelector:"#main_content h3 .interstate", sWmode:"transparent", sFlashSrc:getHostName() + "/MBFSystem/Flashfiles/interstate.swf", sColor:"#593870" }));
	}
	
}

$(document).ready(healthInit);

var ids=new Array('ADP', 'LCPP', 'EL', 'TLI', 'IP', 'EC');

function showallids(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids.length;i++){
		showdiv(ids[i]);
	}		  
}

function showdiv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById ) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
		document.getElementById(id).style.display = 'block';		
	}

	else {
		document.getElementById(id).style.display = 'block';
		document.getElementById(id).style.display = 'none';		
	}
}

function hideallids(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids.length;i++){
		hidediv(ids[i]);
	}		  
}

function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById ) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}

	else {
		document.getElementById(id).style.display = 'block';
		document.getElementById(id).style.display = 'none';		
	}
}


function showButton() {
var now =  new  Date();
var day = now.getDay();
var hours = now.getHours();
var minutes = now.getMinutes();


	if (day > 0 && day < 6) {
		if (hours >= 8 && hours <= 18) {
			if (hours == 8) {
				if (minutes >= 30) {
					document.write("<p align=\"center\"><a href=\"http:\/\/click-calls.messagestick.com.au\/custom\/mbflife\/\"><img src=\"/MBF/Life%20Insurance/Images/life_click_to_call.gif\" alt=\"Click here and we will call you now\" width=\"165\" height=\"55\" border=\"0\" \/><\/a>");
				}
			}
			else if (hours == 18) {
				if (minutes == 0 )  {
					document.write("<p align=\"center\"><a href=\"http:\/\/click-calls.messagestick.com.au\/custom\/mbflife\/\"><img src=\"/MBF/Life%20Insurance/Images/life_click_to_call.gif\" alt=\"Click here and we will call you now\" width=\"165\" height=\"55\" border=\"0\" \/><\/a>");
				}

			} else {
				document.write("<p align=\"center\"><a href=\"http:\/\/click-calls.messagestick.com.au\/custom\/mbflife\/\"><img src=\"/MBF/Life%20Insurance/Images/life_click_to_call.gif\" alt=\"Click here and we will call you now\" width=\"165\" height=\"55\" border=\"0\" \/><\/a>");
			}

		}
	}

}


/* ########################################################################### *
/* ***** MBF LIFE UPDATES Jan 2008 ******************************************* *
/* ########################################################################### *
 * ##### DOCUMENT NAME:  life_Jan2008.js
 * ##### DOCUMENT INFO: 
 * ##### MBF Life Insurance - Life Sales Pathways
 * ##### Original v1.0: 25/01/07 (Eclipse Group)
/* ########################################################################### */
/* ##### CONFIG & INITIALISATION
/* ##### APPLY NOW
/* ##### PREMIUM TABLE EXPAND COLLAPSE
/* ##### QUICK PRODUCT COMPARISON TOOL
/* ##### MISC FUNCTIONS
/* ########################################################################### */

/* ########################################################################### *
/* ##### CONFIG & INITIALISATION
/* ########################################################################### */

var SHOW_TEXT = "Compare product benefits";
var HIDE_TEXT = "Hide product benefits";

$(document).ready(init_ecl_quickprodcomptool);
$(document).ready(init_ecl_applynow);
$(document).ready(ecl_life_premiumexpandocollapso);




/* ########################################################################### *
/* ##### APPLY NOW
/* ##### Enables the Apply Now page to highlight specific products
/* ########################################################################### */

// FUNCTION: init_ecl_applynow
function init_ecl_applynow()
{
	var href = document.location.href;

	// Setup apply now buttons
	ecl_quickprodcomptool_btnapplynowlink_init();


	// Get the product ID from the href GET
	var queryStrIndex = href.lastIndexOf("applynowprod=product_");
	if (queryStrIndex > 0)
	{
		if ($(".applynowproducts").length > 0)
		{
			
			$(".applynowproducts").after('<label><input type="checkbox" class="ecl_applynowshowall"/> Show all</label>');
		}
		if ($(".ecl_applynowshowall").length > 0)
		{
			$(".ecl_applynowshowall").click(ecl_applynowshowall);
			if (!$(".ecl_applynowshowall").attr("checked"))
			{
				ecl_applynow_showoverlay();
			}
		}
	}
}

function ecl_applynowshowall(prodId)
{
	// if now checked then remove highlighting from the product table.
	// else show highlighting
	if (this.checked)
	{
		$(".applynowprodoverlay").remove();
		$(".applynowprodtdbg").removeClass("applynowprodtdbg");
	} else {
		ecl_applynow_showoverlay();
	}
}

function ecl_applynow_showoverlay()
{
	var href = document.location.href;
	var prodId;
	
	// Get the product ID from the href GET
	var queryStrIndex = href.lastIndexOf("applynowprod=product_");
	if (queryStrIndex > 0)
	{
		var nameVal = href.substr(queryStrIndex);
		prodId = nameVal.substr(nameVal.indexOf("=") + 1);
	}	

	// Add the overlay grey to all products except the selected product
	var tdNodes = $(".applynowproducts td");
	jQuery.each($(".applynowproducts td"), function()
	{

		var currentClass = $(this).attr("class");
		if (currentClass != undefined)
		{
			if((currentClass.indexOf("product_") >= 0) && (currentClass.indexOf(prodId) == -1) && ($(this).html().indexOf("img") >= 0))
			{
				$(this).prepend('<div class="applynowprodoverlay"></div>');
			}
			else if (currentClass.indexOf(prodId) == -1)
			{
				$(this).addClass('applynowprodtdbg');
			}
		}
	});

	// Add the overlay grey to all products except the selected product
	var tdNodes = $(".applynowproducts td");
	jQuery.each($(".applynowproducts td"), function()
	{
		var currentClass = $(this).attr("class");
		if (currentClass != undefined)
		{
			if((currentClass.indexOf("product_") >= 0) && (currentClass.indexOf(prodId) == -1) && ($(this).html().indexOf("img") >= 0))
			{
				$(this).prepend('<div class="applynowprodoverlay"></div>');
			}
			else if (currentClass.indexOf(prodId) == -1)
			{
				$(this).addClass('applynowprodtdbg');
			}
		}
	});
			
	// Tweak the styles on the overlay layer DIV
	jQuery.each($(".applynowprodoverlay"), function()
	{
		
		var td = $(this).parent("td");
		var tr = $(this).parents("tr");
		
		$(td).css("vertical-align", "top");
		
		// Check if this is IE
		if ($(this).css("left") == "auto")
		{
			$(this).css("left", "0px");
			$(this).css("top", "0px");
			$(".applynowproducts td").addClass("noBorder");
		} 
		else
		{
			$(this).css("margin-left", "-10px");
			$(this).css("margin-top", "-7px");					
		}

		$(this).height($(tr).height());
		$(this).width($(td).width());
		
	});
	
}

// FUNCTION: 	ecl_quickprodcomptool_btnapplynowlink_init()
// PURPOSE:   Modify the HREF on the apply now links to pass the product name
function ecl_quickprodcomptool_btnapplynowlink_init()
{
	if ($(".ecl_quickprodcomptool").length > 0)
	{
		jQuery.each($(".ecl_quickprodcomptool a.btn_applynowlink"), function() 
		{
			var newHref = $(this).attr("href") + "?applynowprod=" + $(this).parents("tr").attr("class");
			$(this).attr("href", newHref)
		});
	} 
	else 
	{
		jQuery.each($("a.btn_applynowlink"), function() 
		{
			var newHref = $(this).attr("href") + "?applynowprod=" + $(this).attr("id");
			$(this).attr("href", newHref)
		});
	}
}





/* ########################################################################### *
/* ##### PREMIUM TABLE EXPAND COLLAPSE
/* ##### Enables the premium tables to expand and collapse when user clicks category heading
/* ##### including the product suggestion matrix used to generate product suggestions.
/* ########################################################################### */

// FUNCTION: ecl_life_premiumexpandocollapso
// PURPOSE:  Handle the expanding and collapsing of premium tables for the applicable Life Insurance products
function ecl_life_premiumexpandocollapso()
{
	if ($(".ecl_life_premiumexpandocollapso").length > 0)
	{
		$(".ecl_life_premiumexpandocollapso h3").click(ecl_hideShowPremTableBtn);
		$(".ecl_life_premiumexpandocollapso h3").hover(hoverover, hoverout);		
		$(".ecl_life_premiumexpandocollapso h3").addClass("collapsed");
		$(".ecl_life_premiumexpandocollapso h3").next("table").hide();
	}
}

function ecl_hideShowPremTableBtn()
{
	// Check if it is collapsed
	if($(this).attr("class").indexOf("collapsed") > -1)
	{
		$(this).addClass("expanded");
		$(this).removeClass("collapsed");
		ecl_hideShowPremTable(this);
	} 
	else
	{
		$(this).addClass("collapsed");
		$(this).removeClass("expanded");
		ecl_hideShowPremTable(this);
	}
}

function ecl_hideShowPremTable(node)
{
	
	var hide = false;
	if($(node).attr("class").indexOf("collapsed") > -1)
	{
		hide = true;
	} 

	// Hide all
	$(".ecl_life_premiumexpandocollapso h3").addClass("collapsed");
	$(".ecl_life_premiumexpandocollapso h3").removeClass("expanded");	
	$(".ecl_life_premiumexpandocollapso h3").next("table").hide();	

	// Show or hide clicked node
	if(hide == true)
	{
		$(node).addClass("collapsed");
		$(node).removeClass("expanded");			
		$(node).next("table").hide();
	} 
	else
	{
		$(node).addClass("expanded");
		$(node).removeClass("collapsed");			
		$(node).next("table").show();				
	}
}






/* ########################################################################### *
/* ##### QUICK PRODUCT COMPARISON TOOL
/* ##### JavaScript required for the Quick Product Comparison Tool
/* ########################################################################### */

function init_ecl_quickprodcomptool()
{
	if ($(".ecl_quickprodcomptool").length > 0)
	{
		$(".ecl_quickprodcomptool").addClass("ecl_quickprodcomptool");
	}
	
	if ($(".ecl_quickprodcomptool_compareresults").length > 0)
	{
		$(".ecl_quickprodcomptool_compareresults").addClass("ecl_quickprodcomptool_compareresults");
	}	
	
	if ($(".ecl_quickprodcomptool").length > 0)
	{
		// Wire events for returning results
		$(".ecl_quickprodcomptool input").add(".ecl_quickprodcomptool select").click(ecl_quickprodcomptool_refreshresults);
		ecl_quickprodcomptool_hidecomparetable();
		ecl_quickprodcomptool_refreshresults();

		// Setup product comparison table
		$(".ecl_quickprodcomptool_viewcomparetable").html(SHOW_TEXT);		
		$(".ecl_quickprodcomptool_viewcomparetable").click(ecl_quickprodcomptool_viewcomparetable);

	}
}

// FUNCTION: ecl_quickprodcomptool_viewcomparetable
// PURPOSE:  Display & Hide the product comparison table
function ecl_quickprodcomptool_viewcomparetable()
{
	
	if ($(this).html() == SHOW_TEXT)
	{
		$(this).html(HIDE_TEXT);
		$(".ecl_quickprodcomptool_compareresults").show();
		$(this).removeClass("btn_expandcollapse_expanded");
		$(this).removeClass("btn_expandcollapse_collapsed");
		$(this).addClass("btn_expandcollapse_expanded");		
	} 
	else
	{
		$(this).html(SHOW_TEXT);		
		$(".ecl_quickprodcomptool_compareresults").hide();		
		$(this).removeClass("btn_expandcollapse_expanded");
		$(this).removeClass("btn_expandcollapse_collapsed");
		$(this).addClass("btn_expandcollapse_collapsed");
	}
	
	$(this).trigger("blur");
}

function ecl_quickprodcomptool_refreshresults()
{
	// Grab the select element
	var ageSelectNode = $("#quickprodcomp_age");
	var ageIndex = parseInt(ageSelectNode[0].selectedIndex);

	// Hide all products first
	$(".ecl_quickprodcomptool_results tr").hide();
	$(".ecl_quickprodcomptool_results").removeClass("hidden");

	// Disable the checkbox for 'protect salary' benefit if the age group doesn't support it
	ecl_quickprodcomptool_viewhidecheckboxes(ageIndex);


	// Check if the age has been selected
	if (ageIndex == 0)
	{
		// No age has been selected
		
		// Hide the compare results table
		ecl_quickprodcomptool_hidecomparetable();

	} else {
	
		// Retreive the product suggestion matrix
		var matrix = ecl_quickprodcomptool_getmatrix();
		var NUM_PRODUCTS = matrix[0][0].length;		// Store the total number of products

		// Get the checked input items / benefits
		var benefitsChecked = new Array(matrix.length);
		for (var i = 0; i < matrix.length; i++)
		{
			var benefitCheckbox = $("#benefit_" + i);
			if ($(benefitCheckbox).attr("checked") == true)
			{
				benefitsChecked[i] = true;
			}
		}

		// BUSINESS RULES
		// 1. If ACC DEATH is checked then get product list from AD product matrix then,
		// 2. If ANY CAUSE is checked then clear the results and get product suggestions from ANY CAUSE matrix, then
		// 3. If TRAUMA is checked, clear the results and get product suggestions from the trauma matrix, then
		// 4. If TPD is checked, clear the results and get product suggestions from the TPD matrix, then
		// 5. If PROTECT SALARY is checked, add the product to the results if it applies to the age bracket.

		//  Product ID reference
		//  (these names correlate with product_# class name on the relevant TR)
		//	product_0 = Acc Death; 
		//	product_1 = Estate Cover; 
		//	product_2 = EasyLife; 
		//	product_3 = LifeCover Plus; 
		//	product_4 = Term Life; 
		//	product_5 = Income Protection;		

		//  Store product results
		var productstoshow = new Array();
		
		// EXECUTE BIZ RULES 1 to 4
		
		// For each product benefit excluding SALARY PROTECT
		for (var i = 0; i < (benefitsChecked.length - 1); i++)
		{
			// If the benefit is required (ie. checkbox is checked)
			if (benefitsChecked[i] == true) 
			{
				// Clear any previous results
				productstoshow = new Array();
				
				// For each available product
				for (var j = 0; j < NUM_PRODUCTS; j++)
				{
					// If the [benefit(i)],[age group],[product(j)] 
					// is marked as true (meaning it is recommended or available)
					if (matrix[i][ageIndex - 1][j] == true)
					{
						// Add the product to the results (nb: j represents product ID)
						productstoshow.push(j);	
					}	
				}
			}
		} 
					
		// Business rule 5
		if ((benefitsChecked[4] == true) && (matrix[4][ageIndex - 1][5]))
		{
			productstoshow.push(5);
		} 
		
			
		// DISPLAY SUGGESTED PRODUCTS //
		// Show products if there is more than one, else hide all result information
		if (productstoshow.length > 0) 
		{
			// Show the products header
			$(".product_header").show();
			$(".product_viewcomparetable").show();

			// If 1 product AND it is the IP product then need to hide the other products table etc
			if ((productstoshow.length == 1) && (productstoshow[0] == 5))
			{
				// HIDE the products header
				$(".product_0to4").hide();
			} 
			else 
			{
				$(".product_0to4").show();
			}

			// Hide all products (ie. reset visibility of products before then showing the new results)
			$(".ecl_quickprodcomptool_compareresults tbody tr").hide();
			$(".ecl_quickprodcomptool_compareresults .product_5").hide();			
			
			// Show the applicable products
			for (var i = 0; i < productstoshow.length; i++)
			{
				$(".product_" + productstoshow[i]).show();
			}
		} 
		else 
		{
			// No product results so hide result information
			$(".ecl_quickprodcomptool_viewcomparetable").html(SHOW_TEXT);
			$(".ecl_quickprodcomptool_viewcomparetable").removeClass("btn_expandcollapse_expanded");
			$(".ecl_quickprodcomptool_viewcomparetable").removeClass("btn_expandcollapse_collapsed");
			$(".ecl_quickprodcomptool_viewcomparetable").addClass("btn_expandcollapse_collapsed");
			
			$(".product_header").hide();			
			$(".product_invalid").hide();
			ecl_quickprodcomptool_hidecomparetable();
		}		
	}
}

function ecl_quickprodcomptool_hidecomparetable()
{
	$(".ecl_quickprodcomptool_compareresults").hide();
	$(".ecl_quickprodcomptool_compareresults tbody tr").hide();	
	$(".product_viewcomparetable").hide();
}

// FUNCTION: ecl_quickprodcomptool_viewhidecheckboxes
function ecl_quickprodcomptool_viewhidecheckboxes(ageIndex)
{
	// if this age index does not support income protection, hide the 'protect salary' checkbox
	var matrix = ecl_quickprodcomptool_getmatrix();
	
	// Disable any checkboxes for products not available for this age group
	
	// If an age group is selected
	if (ageIndex > 0)
	{
		
		var availablebenefitsarr = new Array(false, false, false, false, false);

		// For each benefit
		for (var i = 0; i < matrix.length; i++)
		{
			// For each available product
			for (var j = 0; j < matrix[i][ageIndex - 1].length; j++)
			{
				// If the [benefit(i)],[age group],[product(j)] 
				// is marked as true (meaning it is recommended or available)
				if (matrix[i][ageIndex - 1][j] == true)
				{
					availablebenefitsarr[i] = true;
				}
			}
		}
		
		// For each true benefit show the checkbox
		for (var k = 0; k < availablebenefitsarr.length; k++)
		{
			if (availablebenefitsarr[k])
			{
				$("#benefit_" + k).attr("disabled", "");
			} else {
				$("#benefit_" + k).attr("disabled", "disabled");	
				$("#benefit_" + k).attr("checked", "");				
			}				
		}
	}
	else 
	{
		// Enable all benefit checkboxes if no age group is selected
		// For each benefit
		for (var i = 0; i < matrix.length; i++)
		{
			$("#benefit_" + i).attr("disabled", "");
		}
	}
}

// FUNCTION: ecl_quickprodcomptool_getmatrix
// Compile a result matrix for each available benefit (ie. check box) 
function ecl_quickprodcomptool_getmatrix()
{
	//
	// NOTES REGARDING OPTIONS MATRIX
	//
	// Arrays represent the 5 available benefits, explicitly:
	// 	benefit_0 is Death by Accident;
	// 	benefit_1 is Death by any cause;
	// 	benefit_2 is Trauma;
	// 	benefit_3 is Total and permanent disablement;
	// 	benefit_4 is Protect Salary;
	// 
	// First dimension of benefit matrix represents age bracket where:
	// 	0 = 16 to 17; 
	//	1 = 18 to 19; 
	//	2 = 20 to 49; 
	//	3 = 50 to 54; 
	//	4 = 55 to 64; 
	//	5 = 64 to 69; 
	//	6 = 70 to 75
	//
	// Second dimension of benefit matrix represents product name where:
	//	0 = Acc Death; 
	//	1 = Estate Cover; 
	//	2 = EasyLife; 
	//	3 = LifeCover Plus; 
	//	4 = Term Life; 
	//	5 = Income Protection;
	//   
	// Example:
	//	benefit_0[0][3] is the same as Accidental Death[Aged 16 to 17][LifeCover Plus] and would result in FALSE
	//

	// Benefit 0: Accidental Death
	var benefit_0 = ecl_quickprodcomptool_getfalsematrix();
	benefit_0[0][0] = true;
	benefit_0[0][2] = true;
	benefit_0[0][4] = true;

	benefit_0[1][0] = true;
	benefit_0[1][1] = true;	
	benefit_0[1][2] = true;
	benefit_0[1][3] = true;
	benefit_0[1][4] = true;

	benefit_0[2][0] = true;	
	benefit_0[2][1] = true;	
	benefit_0[2][2] = true;	
	benefit_0[2][3] = true;
	benefit_0[2][4] = true;
	
	benefit_0[3][0] = true;	
	benefit_0[3][1] = true;	
	benefit_0[3][2] = true;	
	benefit_0[3][4] = true;
	
	benefit_0[4][0] = true;	
	benefit_0[4][1] = true;	
	benefit_0[4][4] = true;	
	
	benefit_0[5][0] = true;	
	benefit_0[5][1] = true;

	benefit_0[6][1] = true;
	

	// Benefit 1: Death by any cause
	var benefit_1 = ecl_quickprodcomptool_getfalsematrix();
	benefit_1[0][2] = true;
	benefit_1[0][4] = true;
	
	benefit_1[1][1] = true;
	benefit_1[1][2] = true;
	benefit_1[1][3] = true;
	benefit_1[1][4] = true;
	
	benefit_1[2][1] = true;
	benefit_1[2][2] = true;
	benefit_1[2][3] = true;
	benefit_1[2][4] = true;

	benefit_1[3][1] = true;
	benefit_1[3][2] = true;
	benefit_1[3][4] = true;

	benefit_1[4][1] = true;
	benefit_1[4][4] = true;
	
	benefit_1[5][1] = true;	
	
	benefit_1[6][1] = true;		
	

	// Benefit 2: Trauma
	var benefit_2 = ecl_quickprodcomptool_getfalsematrix();
	benefit_2[0][4] = true;

	benefit_2[1][3] = true;
	benefit_2[1][4] = true;

	benefit_2[2][3] = true;
	benefit_2[2][4] = true;
	
	benefit_2[3][4] = true;	

	benefit_2[4][4] = true;	


	// Benefit 3: Total & Permanent Disablement
	var benefit_3 = ecl_quickprodcomptool_getfalsematrix();
	benefit_3[0][4] = true;
	benefit_3[1][4] = true;
	benefit_3[2][4] = true;
	benefit_3[3][4] = true;
	benefit_3[4][4] = true;	


	// Benefit 4: Protect Salary
	var benefit_4 = ecl_quickprodcomptool_getfalsematrix();
	benefit_4[2][5] = true;
	benefit_4[3][5] = true;
	
	
	// Compile complete 3 dimenstional matrix
	var matrix = new Array();
	matrix[0] = benefit_0;
	matrix[1] = benefit_1;
	matrix[2] = benefit_2;
	matrix[3] = benefit_3;
	matrix[4] = benefit_4;

	return matrix;
}

// FUNCTION: ecl_quickprodcomptool_getfalsematrix
// Returns a two dimensional matrix representing age and products
function ecl_quickprodcomptool_getfalsematrix()
{
	// Constants
	var TOTAL_AGE_BRACKETS = 7;
	var TOTAL_PRODUCTS = 6;
	
	// Generate the array populated with false values
	var arr = new Array(TOTAL_AGE_BRACKETS);
	for (var i = 0; i < arr.length; i++)
	{
		// Populate age bracket array dimension
		arr[i] = new Array(TOTAL_PRODUCTS);		
		for (var j = 0; j < arr[i].length; j++)
		{
			// Populate product array dimension for each age bracket
			arr[i][j] = false;
		}
	}
	
	return arr;
}





/* ########################################################################### *
/* ##### MISC FUNCTIONS
/* ########################################################################### */

function hoverover()
{
	$(this).addClass("hoverover");
	$(this).removeClass("hoverout");
	$(this).attr("title", "Click to view premiums");
}

function hoverout()
{
	$(this).addClass("hoverout");
	$(this).removeClass("hoverover");
}

/* ########################################################################### *
/* ***** END MBF LIFE UPDATES Jan 2008 ******************************************* *
/* ########################################################################### */



/* ###################################### *
/* ##### Start of Tracking tags for Double Click - February 2008*** *
/* ###################################### */


<!-- Start of DoubleClick Spotlight Tag: Please do not remove-->
<!-- Activity Name for this tag is:Financial Services Guide -->
<!-- Web site URL where tag should be placed: http://www.mbf.com.au/MBF/Life%20Insurance/Forms/financial_services_guide.pdf -->
<!-- This tag must be placed within the opening <body> tag, as close to the beginning of it as possible-->
<!-- Creation Date:2/1/2008 -->
function filedownloadFSG() { 
	var axel = Math.random()+"";
	var a = axel * 10000000000000;
	document.write('<IMG SRC="http://ad.au.doubleclick.net/activity;src=1363972;type=mbfli376;cat=finan125;ord=1;num='+ a + '?" WIDTH=1 HEIGHT=1 BORDER=0>');
	top.location.href="/MBF/Life%20Insurance/Forms/financial_services_guide.pdf"; 
}
<!-- End of DoubleClick Spotlight Tag: Please do not remove-->

<!-- Start of DoubleClick Spotlight Tag: Please do not remove-->
<!-- Activity Name for this tag is:Easy Life Insurance -->
<!-- Web site URL where tag should be placed: http://www.mbf.com.au/LifeInsurance/EasyLife -->
<!-- This tag must be placed within the opening <body> tag, as close to the beginning of it as possible-->
<!-- Creation Date:2/1/2008 -->
function filedownloadPDSEL() {
	var axel = Math.random()+"";
	var a = axel * 10000000000000;
	document.write('<IMG SRC="http://ad.au.doubleclick.net/activity;src=1363972;type=mbfli376;cat=easyl643;ord=1;num='+ a + '?" WIDTH=1 HEIGHT=1 BORDER=0>');
	top.location.href="/MBF/Life%20Insurance/Forms/easylife_insurance_pds.pdf";
}	
<!-- End of DoubleClick Spotlight Tag: Please do not remove-->


<!-- Start of DoubleClick Spotlight Tag: Please do not remove-->
<!-- Activity Name for this tag is:Estate Cover PDS -->
<!-- Web site URL where tag should be placed: http://www.mbf.com.au/MBF/Life%20Insurance/Forms/estate_cover.pds.pdf -->
<!-- This tag must be placed within the opening <body> tag, as close to the beginning of it as possible-->
<!-- Creation Date:2/1/2008 -->
function filedownloadPDSEC() {
	var axel = Math.random()+"";
	var a = axel * 10000000000000;
	document.write('<IMG SRC="http://ad.au.doubleclick.net/activity;src=1363972;type=mbfli376;cat=estat814;ord=1;num='+ a + '?" WIDTH=1 HEIGHT=1 BORDER=0>');
	top.location.href="/MBF/Life%20Insurance/Forms/estate_cover.pds.pdf";
}	
<!-- End of DoubleClick Spotlight Tag: Please do not remove-->

<!-- Start of DoubleClick Spotlight Tag: Please do not remove-->
<!-- Activity Name for this tag is:Income Protection PDS -->
<!-- Web site URL where tag should be placed: http://www.mbf.com.au/MBF/Life%20Insurance/Forms/income_protection_pds.pdf -->
<!-- This tag must be placed within the opening <body> tag, as close to the beginning of it as possible-->
<!-- Creation Date:2/1/2008 -->
function filedownloadPDSIP() {
	var axel = Math.random()+"";
	var a = axel * 10000000000000;
	document.write('<IMG SRC="http://ad.au.doubleclick.net/activity;src=1363972;type=mbfli376;cat=incom392;ord=1;num='+ a + '?" WIDTH=1 HEIGHT=1 BORDER=0>');
	top.location.href="/MBF/Life%20Insurance/Forms/income_protection_pds.pdf";
}	
<!-- End of DoubleClick Spotlight Tag: Please do not remove-->

<!-- Start of DoubleClick Spotlight Tag: Please do not remove-->
<!-- Activity Name for this tag is:Life Cover Plus Plan -->
<!-- Web site URL where tag should be placed: http://www.mbf.com.au/MBF/Life%20Insurance/Forms/life_cover_plus_plan_pds.pdf -->
<!-- This tag must be placed within the opening <body> tag, as close to the beginning of it as possible-->
<!-- Creation Date:2/1/2008 -->
function filedownloadPDSLCPP() {
	var axel = Math.random()+"";
	var a = axel * 10000000000000;
	document.write('<IMG SRC="http://ad.au.doubleclick.net/activity;src=1363972;type=mbfli376;cat=lifec665;ord=1;num='+ a + '?" WIDTH=1 HEIGHT=1 BORDER=0>');
	top.location.href="/MBF/Life%20Insurance/Forms/life_cover_plus_plan_pds.pdf";
}	
<!-- End of DoubleClick Spotlight Tag: Please do not remove-->

<!-- Start of DoubleClick Spotlight Tag: Please do not remove-->
<!-- Activity Name for this tag is:Term Life Insurnace PDS -->
<!-- Web site URL where tag should be placed: http://www.mbf.com.au/MBF/Life%20Insurance/Forms/term_life_insurance_pds.pdf -->
<!-- This tag must be placed within the opening <body> tag, as close to the beginning of it as possible-->
<!-- Creation Date:2/1/2008 -->
function filedownloadPDSTL() {
var axel = Math.random()+"";
var a = axel * 10000000000000;
document.write('<IMG SRC="http://ad.au.doubleclick.net/activity;src=1363972;type=mbfli376;cat=terml669;ord=1;num='+ a + '?" WIDTH=1 HEIGHT=1 BORDER=0>');
top.location.href="/MBF/Life%20Insurance/Forms/term_life_insurance_pds.pdf";
}
<!-- End of DoubleClick Spotlight Tag: Please do not remove-->

<!-- Start of DoubleClick Spotlight Tag: Please do not remove-->
<!-- Activity Name for this tag is:Accidental Death plan PDS -->
<!-- Web site URL where tag should be placed: http://www.mbf.com.au/MBF/Life%20Insurance/Forms/accidental_death_plan_pds.pdf -->
<!-- This tag must be placed within the opening <body> tag, as close to the beginning of it as possible-->
<!-- Creation Date:2/1/2008 -->
function filedownloadPDSAD() {
var axel = Math.random()+"";
var a = axel * 10000000000000;
document.write('<IMG SRC="http://ad.au.doubleclick.net/activity;src=1363972;type=mbfli376;cat=accid382;ord=1;num='+ a + '?" WIDTH=1 HEIGHT=1 BORDER=0>');
top.location.href="/MBF/Life%20Insurance/Forms/accidental_death_plan_pds.pdf";
}
<!-- End of DoubleClick Spotlight Tag: Please do not remove-->

<!-- Start of DoubleClick Spotlight Tag: Please do not remove-->
<!-- Activity Name for this tag is:Accidental Death PDF - Thankyou Page -->
<!-- Web site URL where tag should be placed: http://www.mbf.com.au/MBF/Life Insurance/Forms/accidental_death_plan_application_form.pdf -->
<!-- This tag must be placed within the opening <body> tag, as close to the beginning of it as possible-->
<!-- Creation Date:7/27/2007 -->
function filedownloadAD() {
var s=s_gi(s_account);s.linkTrackVars='events'; s.linkTrackEvents='event24'; s.events='event24';s.tl(this,'d','Life Accidental Death Application PDF');
var axel = Math.random()+"";
var a = axel * 10000000000000;
document.write('<iframe src="https://fls.au.doubleclick.net/activityi;src=2413827;type=mbfle756;cat=mbf-l260;ord=' + a + '?" width="1" height="1" frameborder="0"></iframe>');
top.location.href="/MBF/Life%20Insurance/Forms/accidental_death_plan_application_form.pdf";
}
<!-- End of DoubleClick Spotlight Tag: Please do not remove-->


<!-- Start of DoubleClick Spotlight Tag: Please do not remove-->
<!-- Activity Name for this tag is:Life Cover Plus PDF - Thankyou Page -->
<!-- Web site URL where tag should be placed: http://www.mbf.com.au/MBF/Life Insurance/Forms/life_cover_plus_plan_application_form.pdf -->
<!-- This tag must be placed within the opening <body> tag, as close to the beginning of it as possible-->
<!-- Creation Date:7/27/2007 -->
function filedownloadLCPP() {
var s=s_gi(s_account);s.linkTrackVars='events'; s.linkTrackEvents='event27'; s.events='event27';s.tl(this,'d','Life Life Cover Plus Plan Application PDF');
var axel = Math.random()+"";
var a = axel * 10000000000000;
document.write('<iframe src="https://fls.au.doubleclick.net/activityi;src=2413827;type=mbfle756;cat=mbf-l829;ord=' + a + '?" width="1" height="1" frameborder="0"></iframe>');
top.location.href="/MBF/Life%20Insurance/Forms/life_cover_plus_plan_application_form.pdf";
}
<!-- End of DoubleClick Spotlight Tag: Please do not remove-->


<!-- Start of DoubleClick Spotlight Tag: Please do not remove-->
<!-- Activity Name for this tag is:Easylife Insurance PDF - Thankyou Page -->
<!-- Web site URL where tag should be placed: http://www.mbf.com.au/MBF/Life Insurance/Forms/easylife_insurance_application_form.pdf -->
<!-- This tag must be placed within the opening <body> tag, as close to the beginning of it as possible-->
<!-- Creation Date:7/27/2007 -->
function filedownloadEL() {
var s=s_gi(s_account);s.linkTrackVars='events'; s.linkTrackEvents='event25'; s.events='event25';s.tl(this,'d','Life Easy Life Application PDF');
var axel = Math.random()+"";
var a = axel * 10000000000000;
document.write('<iframe src="https://fls.au.doubleclick.net/activityi;src=2413827;type=mbfle756;cat=mbf-l554;ord=' + a + '?" width="1" height="1" frameborder="0"></iframe>');
top.location.href="/MBF/Life%20Insurance/Forms/easylife_insurance_application_form.pdf";
}
<!-- End of DoubleClick Spotlight Tag: Please do not remove-->


<!-- Start of DoubleClick Spotlight Tag: Please do not remove-->
<!-- Activity Name for this tag is:Estate Cover PDF - Thankyou Page -->
<!-- Web site URL where tag should be placed: http://www.mbf.com.au/MBF/Life Insurance/Forms/estate_cover_Application_Form.pdf -->
<!-- This tag must be placed within the opening <body> tag, as close to the beginning of it as possible-->
<!-- Creation Date:7/27/2007 -->
function filedownloadEC() {
var s=s_gi(s_account);s.linkTrackVars='events'; s.linkTrackEvents='event26'; s.events='event26';s.tl(this,'d','Life Estate Cover Application PDF');
var axel = Math.random()+"";
var a = axel * 10000000000000;
document.write('<iframe src="https://fls.au.doubleclick.net/activityi;src=2413827;type=mbfle756;cat=mbf-l265;ord=' + a + '?" width="1" height="1" frameborder="0"></iframe>');
top.location.href="/MBF/Life%20Insurance/Forms/estate_cover_Application_Form.pdf";
}
<!-- End of DoubleClick Spotlight Tag: Please do not remove-->

<!-- Start of DoubleClick Spotlight Tag: Please do not remove-->
<!-- Activity Name for this tag is:Income Protection - PDF Download -->
<!-- Web site URL where tag should be placed: http://mbflife.com.au/forms/income_protection_application_form.pdf -->
<!-- This tag must be placed within the opening <body> tag, as close to the beginning of it as possible-->
<!-- Creation Date:6/13/2007 -->
function filedownloadIP() {
var s=s_gi(s_account);s.linkTrackVars='events'; s.linkTrackEvents='event22'; s.events='event22';s.tl(this,'d','Life Income Protection Application PDF');
var axel = Math.random()+"";
var a = axel * 10000000000000;
document.write('<iframe src="https://fls.au.doubleclick.net/activityi;src=2413827;type=mbfco935;cat=life-282;ord=' + a + '?" width="1" height="1" frameborder="0"></iframe>');
top.location.href="/MBF/Life%20Insurance/Forms/income_protection_application_form.pdf";
}
<!-- End of DoubleClick Spotlight Tag: Please do not remove-->

<!-- Start of DoubleClick Spotlight Tag: Please do not remove-->
<!-- Activity Name for this tag is:10% Life - PDF Application -->
<!-- Web site URL where tag should be placed: http://greenlighttracking.com/m/e/eRef.phpc=MBF0105&ref=life_prod_termlife_appExt&redto=http://mbflife.com.au/forms/MBFL_Term_Life_Discount_Application_Form.pdf -->
<!-- This tag must be placed within the opening <body> tag, as close to the beginning of it as possible-->
<!-- Creation Date:06/09/07 -->
function filedownloadTL() {
var s=s_gi(s_account);s.linkTrackVars='events'; s.linkTrackEvents='event23'; s.events='event23';s.tl(this,'d','Life Term Life Application PDF');
var axel = Math.random()+"";
var a = axel * 10000000000000;
document.write('<iframe src="https://fls.au.doubleclick.net/activityi;src=2413827;type=mbfco935;cat=life-193;ord=' + a + '?" width="1" height="1" frameborder="0"></iframe>');
top.location.href="/MBF/Life%20Insurance/Forms/MBFL_0130W_Term_Life_App_0105.pdf";
}

<!-- End of DoubleClick Spotlight Tag: Please do not remove-->

<!-- Start of DoubleClick Spotlight Tag: Please do not remove-->
<!-- Activity Name for this tag is:Landing Page -->
<!-- Web site URL where tag should be placed: http://www.lifeonemonthfree.com.au/ -->
<!-- This tag must be placed within the opening <body> tag, as close to the beginning of it as possible-->
<!-- Creation Date:05/15/08 -->
function filedownloadOMF() {
var axel = Math.random()+"";
var a = axel * 10000000000000;
document.write('<IMG SRC=""http://ad.au.doubleclick.net/activity;src=1363972;type=mainw082;cat=landi049;ord='+ a + '?"" WIDTH=1 HEIGHT=1 BORDER=0>');
	top.location.href="/MBF/Life%20Insurance/Campaigns/Onemonthfree";
}

<!-- End of DoubleClick Spotlight Tag: Please do not remove-->


<!-- Start of DoubleClick Spotlight Tag: Please do not remove-->
<!-- Activity Name for this tag is:Click Here Button -->
<!-- Web site URL where tag should be placed: http://click-calls.messagestick.com.au/custom/mbflife/ -->
<!-- This tag must be placed within the opening <body> tag, as close to the beginning of it as possible-->
<!-- Creation Date:05/15/08 -->
function filedownloadLMS() {
var s=s_gi(s_account);s.linkTrackVars='events'; s.linkTrackEvents='event21'; s.events='event21';s.tl(this,'d','Life click to call');
var axel = Math.random()+"";
var a = axel * 10000000000000;
document.write('<iframe src="https://fls.au.doubleclick.net/activityi;src=2413827;type=mbfle756;cat=mbf-l694;ord=' + a + '?" width="1" height="1" frameborder="0"></iframe>');
document.write('<iframe src="https://fls.au.doubleclick.net/activityi;src=2413827;type=mbfco935;cat=mainw785;ord=' + a + '?" width="1" height="1" frameborder="0"></iframe>');
	top.location.href="http://click-calls.messagestick.com.au/custom/mbflife/";
}

<!-- End of DoubleClick Spotlight Tag: Please do not remove-->


<!-- Start of DoubleClick Spotlight Tag: Please do not remove-->
<!-- Activity Name for this tag is:Which Type Of Cover -->
<!-- Web site URL where tag should be placed: http://www.mbf.com.au/LifeInsurance/UsefulTools/Quickcomparisontool -->
<!-- This tag must be placed within the opening <body> tag, as close to the beginning of it as possible-->
<!-- Creation Date:05/15/08 -->
function filedownloadQCT() {
var axel = Math.random()+"";
var a = axel * 10000000000000;
document.write('<IMG SRC=""http://ad.au.doubleclick.net/activity;src=1363972;type=mainw082;cat=which696;ord='+ a + '?"" WIDTH=1 HEIGHT=1 BORDER=0>');
	top.location.href="/MBF/LifeInsurance/UsefulTools/Quickcomparisontool";
}

<!-- End of DoubleClick Spotlight Tag: Please do not remove-->

<!-- Start of DoubleClick Spotlight Tag: Please do not remove-->
<!-- Activity Name for this tag is:How Much Cover -->
<!-- Web site URL where tag should be placed: http://www.mbf.com.au/LifeInsurance/UsefulTools/Self-assessmentcalculator -->
<!-- This tag must be placed within the opening <body> tag, as close to the beginning of it as possible-->
<!-- Creation Date:05/15/08 -->
function filedownloadSAC() {
var axel = Math.random()+"";
var a = axel * 10000000000000;
document.write('<IMG SRC=""http://ad.au.doubleclick.net/activity;src=1363972;type=mainw082;cat=howmu363;ord='+ a + '?"" WIDTH=1 HEIGHT=1 BORDER=0>');
	top.location.href="/MBF/LifeInsurance/UsefulTools/Self-assessmentcalculator";
}

<!-- End of DoubleClick Spotlight Tag: Please do not remove-->


/* ###################################### *
/* ***** END of tracking tags for Double Click - February 2008*** *
/* ###################################### */
