// limpar campos se o valor for padrao
$('input:text').each(function() {
    var defaultValue = this.value;
    $(this).focus(function() {
        if(this.value == defaultValue) {
            this.value = '';
        }
    });
    $(this).blur(function() {
        if(this.value == '') {
            this.value = defaultValue;
        }
    });
});

// fancybox
//$('.fancybox').fancybox();

// swfobject example
var flashvars = {};

var params = {
	"menu": "false",
	"allowscriptaccess": "always",
	"allowfullscreen": "true",
	"wmode" : "opaque",
	"movie" : "PATH"
};

var attributes = {};



// swfobject.embedSWF(sitePath + "FILE.swf", "id", "360", "240", "10.0.0", "expressInstall.swf", flashvars, params, attributes);
// 
// 
$('a.flip').click(function(event) {
	event.preventDefault();
	
	$('#modal-flip').fadeIn('slow');
});
$('#modal-flip').click(function(event) {
	event.preventDefault();
	
	$('#modal-flip').fadeOut('slow');
});

$('a.altocontraste').click(function(event) {
	event.preventDefault();
	
	$('#modal-altocontraste').fadeIn('slow');
});
$('#modal-altocontraste').click(function(event) {
	event.preventDefault();
	
	$('#modal-altocontraste').fadeOut('slow');
});

$('#modal-sugestaodepreparo').click(function(event) {
	event.preventDefault();
	
	$('#modal-sugestaodepreparo').fadeOut('slow');
});

// swfobject.embedSWF(sitePath + "hotsite/landing/motion/video3.swf", "video-toddy", "366", "187", "10.0.0", "expressInstall.swf", flashvars, params, attributes);
swfobject.embedSWF(sitePath + "hotsite/landing/motion/video1.swf", "video-comercial", "652", "269", "10.0.0", "expressInstall.swf", flashvars, params, attributes);
swfobject.embedSWF(sitePath + "hotsite/landing/motion/video2.swf", "video-novasembalagens", "438", "229", "10.0.0", "expressInstall.swf", flashvars, params, attributes);
