var parseCadastro = function( $tgt )
{
	var ele = $tgt.$t('label');
	ele.forEach( function(el)
	{
		$d = el.innerHTML.replace(/:?(<([^>]+)>)/ig,"");
		$inputTgt = $( el.attributes['for'].value );

		$inputTgt.originalValue = $d;
		if( $inputTgt.value=='' ) $inputTgt.value = $d
		addFocusBlur($inputTgt);
		el.style.display = 'none';
	});

}

function addFocusBlur( $tgt )
{
	$tgt.addEvent('focus', function(){ if(this.value==this.originalValue) this.value=''; });
	$tgt.addEvent('blur', function(){ if(this.value=='') this.value=this.originalValue; });
}

onElementLoad( 'formEmails' , parseCadastro );



bodyLoad.add( function() {
	// dando um replace no h1
	var m = $('topo').$t('h1')[0];
	loadSwf( m, 'swf/logo.swf', 186, 147, true );

	if(document.body.id!='bodyCapa') {
		loadSwf( $('movie'), 'swf/internas.swf', 245, 202, true );
	} else {
		loadSwf( $('centro'), 'swf/home.swf', '100%', 293, true );
	}

} );


