/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
var FLVfilename = "";
var FLVfilepath = "/flv/";
var JSfilepath  = "/js/";

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* - Inclusione dinamica di JS e CSS - - - - - - - - - - - - - */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

function include_js(script_filename) {
	var html_doc = document.getElementsByTagName('head').item(0);
	var jsNode = document.createElement('script');
	jsNode.setAttribute('language', 'javascript');
	jsNode.setAttribute('type', 'text/javascript');
	jsNode.setAttribute('src', script_filename);
	html_doc.appendChild(jsNode);
	return false;
}
function include_css(css_filename) {
	var html_doc = document.getElementsByTagName('head').item(0);
	var cssNode = document.createElement('link');
	cssNode.type = 'text/css';
	cssNode.rel = 'stylesheet';
	cssNode.href = css_filename;
	html_doc.appendChild(cssNode);
	return false;
}

var included_files = new Array();

function IncludeJavaScript(script_filename) {
    if (!in_array(script_filename, included_files)) {
        included_files[included_files.length] = script_filename;
        include_js(script_filename);
    }
}
function IncludeCSS(css_filename) {
    if (!in_array(css_filename, included_files)) {
        included_files[included_files.length] = css_filename;
        include_css(css_filename);
    }
}

function in_array(needle, haystack) {
    for (var i = 0; i < haystack.length; i++) {
        if (haystack[i] == needle) {
            return true;
        }
    }
    return false;
}
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* - Inizializzazione del player , modificare qui- - - - - - - */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

//Init_Playing();
function Init_Playing() {
//IncludeJavaScript(JSfilepath +"swfobject22.js");
//IncludeJavaScript(JSfilepath +"wp.js");
setTimeout("Start_Playing()" ,500);
}

function Start_Playing() {
//FlvBoxWidth  = 625 ;
//FlvBoxHeight = 350 ;
//FlvPosition = "BOX" ;

flvPath = FLVfilepath; // percorso assoluto del File FLV 
swfPath = FLVfilepath; // percorso assoluto del player SWF
//flv_onCompleted = "NONE" ; // NONE , LINK , CLOSE , CUSTOM , CUSTOMCLOSE , FRAME , CUSTOMFRAME , MINIMIZE
//flv_onPaused    = "NONE" ; // NONE , LINK , CLOSE , CUSTOM , CUSTOMCLOSE , FRAME , CUSTOMFRAME , MINIMIZE
flv_onPlaying   = "NONE" ; // NONE , CUSTOM 

if(FLVfilename=='') return;
//FlvBoxReposition( 'FlvBox' , FlvPosition);
FlvPlayer( 'FlvBox' , FLVfilename , FLVfilename +'.flv' , FlvBoxWidth , FlvBoxHeight , FLVfilename +'.png' , null);
}
function fnc__onPlaying(){}
function fnc__onCompleted(){}
function fnc__onPaused(){}
function fnc__showFrame(){}
