$(function()
{
    var strLetter = "Australia has so much to gain in a clean, low carbon economy; it's in our interest to be a leader."+
 
"\n\nWe have abundant renewable energy resources, and huge potential to grow clean energy jobs and investment by grabbing a fair share of the global boom in clean technologies."+
 
"\n\nIn just six of Australia's emerging green industries 112,000 jobs already exist and could grow to 850,000 by 2030. "+

"\n\nA renewable energy installation like a wind farm creates twice as many jobs over its lifetime as a coal-fired power plant does"+
 
"\n\nBy taking strong action on climate change Australia will create thousands of training and re-skilling opportunities for young people by supporting clean energy jobs growth. "+
 
"\n\nBut we have to act now, otherwise we'll miss our chance and other countries will reap the economic rewards of leading the way."+
 
"\n\nWe have the technology, much of it created by Australia's world class scientific community. And we have a highly skilled workforce. But we need strong policies, strong investment and strong political leadership to make it happen. "+

"\n\nI urge you to support strong and urgent action on climate change that will drive the creation of hundreds and thousands of clean energy jobs for Australians."

	$('#btnSend').click(function()
	{ 
		var strVars = $('#frmEmail').serialize();
		$.post('mailer.php', {'strVariables': strVars}, function(data)
		{
			$('#divForm').html(data);
		}, 'html');
	});
	
	$('#selMP').change(function()
	{
		var strNewLetter = "To "+$(this).val()+",\n\n"+strLetter;
		$('#txtContent').val(strNewLetter);
	});
});
function clearDefault(el, def){if(el.value==def)el.value='';}
function setDefault(el,def){if(el.value=='')el.value=def;}
function preload(){var d=document;if(d.images){if(!d.MM_p)d.MM_p=new Array();var i,j=d.MM_p.length,a=preload.arguments;for(i=0; i<a.length;i++)if(a[i].indexOf("#")!=0){d.MM_p[j]=new Image;d.MM_p[j++].src=a[i];}}}
function fO(n,d){var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=fO(n,d.layers[i].document);if(!x&&d.getElementById)x=d.getElementById(n);return x;}
function imgRestore(){var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)x.src=x.oSrc;}
function imgSwap(){var i,j=0,x,a=imgSwap.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3)if((x=fO(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc)x.oSrc=x.src; x.src=a[i+2];}}