

/** 
 *
 * REGIONAL LAYOUTS
 *
**/
jQuery(document).ready( function() {
	if(jQuery.browser.msie && parseInt(jQuery.browser.version, 10) < 7)
	{
		jQuery("#text-size a").textresizer({
	        target: "div#content",
	        type: "fontSize",
			selectedIndex: 0,
	        sizes: [ 
	           "100%", 
	           "120%" 
	        ]
	     });		
	}
	else
	{
		jQuery("#text-size a").textresizer({
	        target: "div#content",
	        type: "cssClass",
			selectedIndex: 0,
	        sizes: [ 
	           "small-text", 
	           "large-text" 
	        ]
	     });				
	}
	
	// Placeholder text
	jQuery('input[type=text]').bind('focus', function() {
		if ( $(this).attr('placeholder') && $(this).val() == $(this).attr('placeholder') ) $(this).val('');
	}).bind('blur', function() {
		if ( $(this).attr('placeholder') && !$(this).val() ) $(this).val( $(this).attr('placeholder') );
	}).each( function() {
		if ( !$(this).attr('placeholder') && $(this).val() != "" ) $(this).attr('placeholder', $(this).val() );
	});

	var check;

	jQuery('a#disclaimerPopup').click(function () {

		if (!check) {

			var answer = confirm('This report has been prepared by the Administrators ("LDD"), for creditors (including unit holders) of Australian Property Custodian Holdings Ltd. ("APCHL") in its capacity as responsible entity ("RE") for the Prime Retirement and Aged Care Property Trust ("Prime Trust") (Administrators appointed) (Receivers and Managers Appointed) (Controllers Appointed) ACN: 095 474 436. In order to view the report you must make the following declaration:\n\nI hereby declare that I am either, a creditor or unit holder of APCHL, or authorised by LDD to access this report. I understand that receipt of this report is under a seal of confidentiality and I will not disclose any details contained in this report to any person other than my professional advisor. \n\nTo make this declaration and access the report, please click "OK" below.\n\nAlternatively, click "Cancel" to exit this screen.\n\nIf you wish to discuss this matter or otherwise are a stakeholder wishing to receive a copy of the report, please contact this office on (03) 9679 2222.');

			// make it open in new tab, need to assign the link with target=_blank
			if (answer) {
				check = true;
				$(this).click();
				
			} else return false;	

		} else check = false;
	});

});



