function gup( name )
{
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var tmpURL = window.location.href;
  var results = regex.exec( tmpURL );
  if( results == null )
    return "";
  else
    return results[1];
}

function indice(){
	var so = new SWFObject("open-flash-chart.swf", "ofc", "250", "200", "9", "#FFFFFF");
	var url="EvolucaoIndiceFutex.aspx";
	
	so.addVariable("data", url);
	//so.addVariable("data", "../data-files/data-30.txt");
	
	so.addVariable("variables","true");
	so.addVariable("title","Indice Futex,{font-size: 12;}");
	so.addVariable("y_legend","Pontos,10,#736AFF");
	so.addVariable("x_legend","Dia,10,#736AFF");
	so.addVariable("y_label_size","15");
	so.addVariable("y_ticks","5,10,4");
	
	//Fundo dos dados do grafico
	so.addVariable("area_hollow","2,3,25,#C11B01,Times,10");
	so.addVariable("values","9,6,7,9,5,7,6,9,9");
	so.addVariable("x_labels","01,&nbsp;,03,&nbsp;,05,&nbsp;,07,&nbsp;,09");
	so.addVariable("x_axis_steps","2");
	so.addVariable("y_max","20");
	
	//so.addParam("allowScriptAccess", "always" );//"sameDomain");
	so.addParam("allowScriptAccess", "sameDomain" );//"always");
	
	document.getElementById("indiceFutex").style.visibility="visible";
	document.getElementById("indiceFutex").style.width = "250px"; 
	document.getElementById("indiceFutex").style.height = "200px";
	document.getElementById("indiceFutex").style.background = "#FFFFFF";
	document.getElementById("indiceFutex").style.padding= "2px"; 
	document.getElementById("indiceFutex").style.border= "1px solid #99b168";
	so.write("indiceFutex");
}

