<!--

/* ----------------------------------------------------------------------------------------------- //
//////////////////////
// ~~~~~~~~~~~~~~~ // //-> Dados : 
////////////////////
// ----------------------------------------------------------------------------------------------- */

/*
// ~~~~~~~~~~~~ // -> Check Browser :
*/

	// Verifica se o Navegador é o Internet Explorer:
	isIE = ( navigator.userAgent.indexOf('MSIE')    != -1 ) ? true : false ;

	// Verifica se o Navegador é o Mozilla Firefox:
	isMF = ( navigator.userAgent.indexOf('Firefox') != -1 ) ? true : false ;

	// Verifica se o Navegador é o Google Chrome:
	isGC = ( navigator.userAgent.indexOf('Chrome')  != -1 ) ? true : false ;

	// Verifica se o Navegador é o Opera:
	isOP = ( navigator.userAgent.indexOf('Opera')   != -1 ) ? true : false ;

	// Verifica se o Navegador é o Safari:
	isSF = ( navigator.userAgent.indexOf('Safari')  != -1 ) ? true : false ;

/*
// ~~~~~~~~~~~~ //
*/

/* ----------------------------------------------------------------------------------------------- //
//////////////////////
// ~~~~~~~~~~~~~~~ // //-> Funções : 
////////////////////
// ----------------------------------------------------------------------------------------------- */

/*
// ~~~~~~~~~~~~ // -> Check Var :
*/

function checkVar( pVar ){

	if( ( pVar != undefined ) && ( pVar != null ) && ( pVar != false ) && ( pVar != 0 ) && ( pVar != "" ) ){

		return( true ); 

	}
	else{

		return( false ); 

	}

}

/*
// ~~~~~~~~~~~~ // -> Criar SWF :
*/

function swf( pSrc , pWidth , pHeight , pById , pQuality , pWmode , pLoop , pMenu , pScale , pBorder ){

	var vSrc     = checkVar( pSrc     ) ? pSrc    : '' ;
	var vWidth   = checkVar( pWidth   ) ? pWidth  : '' ;
	var vHeight  = checkVar( pHeight  ) ? pHeight : '' ;

	var vQuality = checkVar( pQuality ) ? pQuality : 'high'        ;
	var vWmode   = checkVar( pWmode   ) ? pWmode   : 'transparent' ;
	var vLoop    = checkVar( pLoop    ) ? pLoop    : 'true'        ;
	var vMenu    = checkVar( pMenu    ) ? pMenu    : 'false'       ;
	var vScale   = checkVar( pScale   ) ? pScale   : 'exactfit'    ;
	var vBorder  = checkVar( pBorder  ) ? pBorder  : '0'           ;

	var oSwf     = parent.top.document.createElement( 'embed' );

	oSwf.setAttribute( 'src'     , vSrc     );
	oSwf.setAttribute( 'width'   , vWidth   );
	oSwf.setAttribute( 'height'  , vHeight  );

	oSwf.setAttribute( 'quality' , vQuality );
	oSwf.setAttribute( 'wmode'   , vWmode   );
	oSwf.setAttribute( 'loop'    , vLoop    );
	oSwf.setAttribute( 'menu'    , vMenu    );
	oSwf.setAttribute( 'scale'   , vScale   );
	oSwf.setAttribute( 'border'  , vBorder  );

	oSwf.setAttribute( 'type'        , 'application/x-shockwave-flash' );
	oSwf.setAttribute( 'pluginspage' , '"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' );

	var oById = checkVar( pById ) ? parent.top.document.getElementById( pById ) : parent.top.document.getElementById( 'palco' ) ;

	oById.appendChild( oSwf );

}

/*
// ~~~~~~~~~~~~ // -> Iclude Style Css :
*/

function icludeStyleCss( pHrefStyle ){

	var oStyleCss = parent.top.document.createElement( 'link' );

	oStyleCss.setAttribute( 'rel',   'stylesheet' );
	oStyleCss.setAttribute( 'type',  'text/css'   );
	oStyleCss.setAttribute( 'media', 'all'        );

	oStyleCss.setAttribute( 'href', 'StyleCss/'+ pHrefStyle +'.css' );

	parent.top.document.getElementsByTagName( 'head' )[0].appendChild( oStyleCss );

}

/*
// ~~~~~~~~~~~~ //
*/

/* ----------------------------------------------------------------------------------------------- //
//////////////////////
// ~~~~~~~~~~~~~~~ // //-> Ações : 
////////////////////
// ----------------------------------------------------------------------------------------------- */

/*
// ~~~~~~~~~~~~ // -> Icluir Style Css :
*/

	 window.icludeStyleCss( 'style_ALL' ); 
	 
	 if( isIE ){

		window.icludeStyleCss( 'style_IE' ); 

	 }
	 else if( isMF ){

		window.icludeStyleCss( 'style_MF' ); 

	 }
	 else if( isGC ){

		window.icludeStyleCss( 'style_GC' ); 

	 }
	 else if( isOP ){

		window.icludeStyleCss( 'style_OP' ); 

	 }
	 else if( isSF ){

		window.icludeStyleCss( 'style_SF' ); 

	 }

/*
// ~~~~~~~~~~~~ //
*/

/* ----------------------------------------------------------------------------------------------- */

-->
