// JavaScript Document
$(document).ready(function() {
//Menu Principal
$('.menu ul li').each(function(index) {
	$(this).find('a').wrapInner('<span class="center"/>');
	Cufon.replace($(this).find('a span.center'),{hover: true});
	$(this).find('a').prepend('<span class="left">left</span>');
	$(this).find('a').append('<span class="right">right</span>');
});
$('.menu ul li a').hover(
  function () {
    $(this).addClass('hover');
  },
  function () {
    $(this).removeClass('hover');
  }
);

//Meu Caderno Form
$('.container-form-bottom').toggle(function() {
 	$('.top-box-form').animate({ 
    top: "-10px"
  }, 600 );

}, function() {
   $('.top-box-form').animate({ 
    top: "-145px"
  }, 600 );
});

//Fonts
Cufon.replace(('h2'));
Cufon.replace(('a.see-more'),{hover: true});
Cufon.replace(('a.back'),{hover: true});
Cufon.replace(('button'));
Cufon.replace(('.button'));
Cufon.replace(('label.style'));
Cufon.replace(('label.text_area'));
});

//Funções
function RodarFlash(path,variaveis,_width,_height)
{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+_width+'" height="'+_height+'">')
		document.write('<param name="movie" value="'+path+'?'+variaveis+'">')
		document.write('<param name="quality" value="high">')
		document.write('<param name="wmode" value="transparent">')
		document.write('<embed src="'+path+'?'+variaveis+'" width="'+_width+'" height="'+_height+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>')
	document.write('</object>')
}




