
//Chama flash no site (correção do IE)
function exibeFash(swf, width, height, wmode, cache)
{
noCache = cache || cache == undefined ? "" : "?" + new Date();
wmode = wmode || wmode == undefined ? "opaque" : "transparent";

monta_swf = "";
monta_swf += "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0\" width=\""+ width +"\" height=\""+ height +"\" title=\"\">";
monta_swf += "<param name=\"movie\" value=\""+ swf + noCache +"\" />";
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 + noCache +"\" quality=\"high\" wmode=\""+ wmode +"\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+ width +"\" height=\""+ height +"\"></embed>";
monta_swf += "</object>";

document.write(monta_swf);
}


function _uFlash() {
 var f="-",n=navigator;
 if (n.plugins && n.plugins.length) {
  for (var ii=0;ii<n.plugins.length;ii++) {
   if (n.plugins[ii].name.indexOf('Shockwave Flash')!=-1) {
    f=n.plugins[ii].description.split('Shockwave Flash ')[1];
    break;
   }
  }
 } else if (window.ActiveXObject) {
  for (var ii=10;ii>=2;ii--) {
   try {
    var fl=eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+ii+"');");
    if (fl) { f=ii + '.0'; break; }
   }
   catch(e) {}
  }
 }
 return f;
}

function doPost(formName, actionName)
{
    var hiddenControl = document.getElementById('action');
    var theForm = document.getElementById(formName);
    
    hiddenControl.value = actionName;
    theForm.submit();
}


var newwindow;
function poptastic(url)
{ 
    //alert("Modelo: " + document.formulario.Modelo.value); 
    //alert("RetiradaDia" + document.formulario.RetiradaDia.value); 

	newwindow=window.open(url,'name','height=530,width=450,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,top=150%,left=100%');
	//newwindow=window.open(url,'name','width='+w+',height='+h+',scrollbars='+scrolling+',toolbar=no,location=no,status=no,menubar=no,resizable=no,left=0,top=5');
	
	if (window.focus) {newwindow.focus()}
	
	
	//var hiddenControl = document.getElementById('action');
    //var theForm = document.getElementById('formulario');
    
    //hiddenControl.value = 'salvar';
    //theForm.submit();
	
    

}

/** Exemplo 1 */
var nome_1='Carlos';
function exemplo_1(vOpcao){
  IJSS(vOpcao);
  alert(vOpcao);	
  
}

function IJSS(op){
  var head 	= document.getElementsByTagName('head').item(0);
  var eScript = document.createElement("script");
  eScript.setAttribute('src','insert.php?opcao='+op);
  //eScript.setAttribute('src','insert.php');
  
  head.appendChild(eScript);
 
}

function Esconde(){
document.getElementById('flash').style.visibility="hidden";
}

