﻿// JScript File
function aplicaFlash(swf, width, height, wmode, where) {
	var monta_swf = " ";
	monta_swf += "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='"+ width +"' height='"+ height +"' title=''>";
	monta_swf += "<param name='movie' value='"+ swf +"'>";
	monta_swf += "<param name='quality' value='high'>";
	monta_swf += "<param name='menu' value='0'>";
	monta_swf += "<param name='wmode' value='"+ wmode +"'>";
	monta_swf += "<embed src='"+ swf +"' quality='high' wmode='"+ wmode +"' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+ width +"' height='"+ height +"'></embed>";
	monta_swf += "</object>";
	if(where) document.getElementById(where).innerHTML = monta_swf;	
	else document.write(monta_swf);
}

$(document).ready(function() {
    $('.playerVideo').media();
    $.fn.media.defaults = { 
    preferMeta:    1,         // true if markup metadata takes precedence over options object 
    autoplay:      0,         // normalized cross-player setting 
    bgColor:       '#ffffff', // background color 
    params:        {},        // added to object element as param elements; added to embed element as attrs 
    attrs:         {},        // added to object and embed elements as attrs 
    flashvars:     {},        // added to flash content as flashvars param/attr 
    flashVersion:  '7',       // required flash version 
    flvPlayer:     'http://www.ibape-sp.org.br/util/playerVideo/mediaplayer.swf'}
});

