// ***** global ******* //
// ************ //
function RodarFlash(path,variaveis,_width,_height)
{
        if (_width != "0") {
            document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="' + _width + '" height="' + _height + '">')
        } else {
            document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0">')
        } 
		document.write('<param name="movie" value="'+path+'?varurl='+location.href+'&'+variaveis+'">')
		document.write('<param name="quality" value="high">')
		document.write('<param name="wmode" value="transparent">')
		if (_width!= "0") {
		    document.write('<embed src="' + path + '?varurl=' + location.href + '&' + variaveis + '" width="' + _width + '" height="' + _height + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>')
		} else {
		    document.write('<embed src="' + path + '?varurl=' + location.href + '&' + variaveis + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>')
		}
	document.write('</object>')
}

function RodarFlash2(path,variaveis,_width,_height,div)
{
		gE(div).innerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+_width+'" height="'+_height+'">'
		gE(div).innerHTML += '<param name="movie" value="'+path+'?varurl='+location.href+'&'+variaveis+'">'
		gE(div).innerHTML += '<param name="quality" value="high">'
		gE(div).innerHTML += '<param name="wmode" value="transparent">'
		gE(div).innerHTML += '<embed src="'+path+'?varurl='+location.href+'&'+variaveis+'" width="'+_width+'" height="'+_height+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>'
		gE(div).innerHTML += '</object>'
}
function RodarImagem(path,_width,_height){	
	document.write ('<a href="#" onclick="javascript:abreURL();"><img src=' + path + ' border=0 widtht='+_width + ' height=' + _height + '></a>');
}
function RodarImagemNEW(path,_width,_height){	
	document.write ('<a href="#" onclick="javascript:abreURL();"><img src=' + path + ' border=0 widtht='+_width + ' height=' + _height + '></a>');
}

/*var mm_id;
var mm_id_canal; 
var mm_criterio; 
var mm_width; 
var mm_height;*/
try{
    var html;
    var chave;
    var hoje = new Date();
    var hrs = hoje.getHours();
    var min = hoje.getMinutes();
    var sec = hoje.getSeconds();

    chave = hrs + min + sec;
    
    url = 'http://adservermm.mundomedia.com.br/i.asp?h=' + mm_height + '&w=' + mm_width + '&idCanal=' + mm_id_canal + '&Criterio=' + mm_criterio + '&page=' + location.href + '&session='+ chave +'mobile=';
    html = '<iframe src="'+url+'" ';
    html += 'marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" frameborder="0" scrolling="no"';
    html += 'height="'+mm_height+'" width="'+mm_width+'"></iframe>';
    document.write(html);
}catch(e){
    void(null) 
}
function a(url){
	alert('olá');
}
