// JavaScript Document
function addEvent(obj, evType, fn){
	var w3DOM = obj.addEventListener;
	var ieDOM = obj.attachEvent;
	
	if(w3DOM) obj.addEventListener(evType, fn, true);
	if(ieDOM) obj.attachEvent("on"+evType, fn);
}

function insertFlash(movie, width, height, transparent, flashvars) {
    document.write('<object type="application/x-shockwave-flash" data="http://www.heloperadora.com.br/pt-br/flash/' + movie + '" width=' + width + '" height="' + height + '">');
    document.write('<param name="allowscriptaccess" value="always" />');
	document.write('<param name="movie" value="http://www.heloperadora.com.br/pt-br/flash/' + movie + '" />');
    document.write('<param name="quality" value="high" />');
if (transparent) {
	document.write('<param name="wmode" value="transparent" />');
}
if (flashvars) {
    document.write('<param name="FlashVars" value="arquivo=http://www.heloperadora.com.br/pt-br/flash/' + flashvars + '" />');
}
    document.write('</object>');
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
