//function click() {
//if (event.button==2||event.button==3) {
//alert("Artigos copiados podem prejudicar seu blog pois o Google identifica quem publicou primeiro e pode derrubar posicionamento de quem copia. O blog que copia artigos apenas perde tempo e sera prejudicado nas buscas por ter conteudo duplicado copiado.") 
//oncontextmenu='return false';
//}
//}

//document.onmousedown=click
//document.oncontextmenu = new Function("return false;")




// PMSN

if (screen.width>1100)
{





function messengerWindow2()

{
	if (document.readyState == undefined || document.readyState == "complete" || document.readyState == "interactive")
	{
		var mybody = document.body;
		if (mybody)
			mybody.appendChild(messengerBox());
	}
	else {
		setTimeout ('messengerWindow2();', 1000);
	}
}

function messengerBox()
{
	var mydiv = document.createElement("div");
	mydiv.setAttribute("id","coMessengerWindow");
	mydiv.style.position = "absolute";
	mydiv.style.display = "block";
	mydiv.style.zIndex = "99999";
	mydiv.style.width = "120px";
	mydiv.style.height = "240px";
	mydiv.style.margin = "0px";
	mydiv.style.padding = "0px";
        mydiv.style.left = (f_clientWidth() + f_scrollLeft() - 1270) + "px";
	mydiv.style.top = (f_clientHeight() + f_scrollTop() + 20) + "px";

	//mydiv.style.left = (f_clientWidth() + f_scrollLeft()) + "px";
	//mydiv.style.top = (f_clientHeight() + f_scrollTop() + 630) + "px";


	var innerdiv = '<div style="position:relative; width: 120px; height: 240px; margin: 0; padding: 0; display: table;">';
	innerdiv += '<iframe scrolling="no" height="240" frameborder="0" width="120" onload="setWindowPosition();" src="http://smartad.mercadolivre.com.br/jm/SmartAd?tool=5738916&creativity=483808&new=Y&ovr=N&bgcol=FFFFFF&brdcol=000000&txtcol=006600&lnkcol=0000FF&hvrcol=FF0000&prccol=FF0000&word=Celular Mp10&word=Camera Sony&word=Notebook&site=MLB" style="visibility: visible; z-index: 0;" id="coMessengerContent"></iframe>';
	innerdiv += '<div style="position: absolute; top: 5px; right: 5px; margin: 0; padding: 0; width: 10px; height: 10px; display: block; font-size: 6px; cursor: pointer; z-index: 999999;" onClick="closeMessengerWindow();"><img src="http://www.mercadolivre.com.br/org-img/MLB/code/popmsn/coMesWin_close.gif" border="0"/></div>';
	innerdiv += '</div>';

	mydiv.innerHTML = innerdiv;

	return mydiv;
}
function closeMessengerWindow( node )
{
	var mydiv = document.getElementById("coMessengerWindow");
	mydiv.parentNode.removeChild(mydiv);
}

function setWindowPosition()
{
	var mycontent = document.getElementById("coMessengerContent")
	if (mycontent)
		mycontent.style.visibility = "visible";

	var mydiv = document.getElementById("coMessengerWindow");
	
	if (mydiv)
	{
		var leftFinal = (f_clientWidth() + f_scrollLeft()) -120;
		var topFinal = (f_clientHeight() + f_scrollTop()) - 240;

//                var leftFinal = (f_clientWidth() + f_scrollLeft());
//		var topFinal = (f_clientHeight() + f_scrollTop()) +630;
		
		var leftNow = parseInt(mydiv.style.left.toString().split("px")[0]);
		var topNow = parseInt(mydiv.style.top.toString().split("px")[0]);
		
		var leftSize = leftFinal - leftNow;
		var topSize = topFinal - topNow;
	
		if (leftSize)
			mydiv.style.left = ( leftNow + (leftSize / 5) ) + "px";
		
		if (topSize)
			mydiv.style.top = ( topNow + (topSize / 5) ) + "px";

		setTimeout("setWindowPosition();", 40);
	}
}


function f_clientWidth() {
	return f_filterResults (
		window.innerWidth ? window.innerWidth : 0,
		document.documentElement ? document.documentElement.clientWidth : 0,
		0
	);
//		document.body ? document.body.clientWidth : 0
}
function f_clientHeight() {
	return f_filterResults (
		window.innerHeight ? window.innerHeight : 0,
		document.documentElement ? document.documentElement.clientHeight : 0,
		0
	);
//		document.body ? document.body.clientHeight : 0
}
function f_scrollLeft() {
	return f_filterResults (
		window.pageXOffset ? window.pageXOffset : 0,
		document.documentElement ? document.documentElement.scrollLeft : 0,
		document.body ? document.body.scrollLeft : 0
	);
}
function f_scrollTop() {
	return f_filterResults (
		window.pageYOffset ? window.pageYOffset : 0,
		document.documentElement ? document.documentElement.scrollTop : 0,
		document.body ? document.body.scrollTop : 0
	);
}
function f_filterResults(n_win, n_docel, n_body) {
	var n_result = n_win ? n_win : 0;
	if (n_docel && (!n_result || (n_result > n_docel)))
		n_result = n_docel;
	return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result;
}

//setTimeout ('messengerWindow2();', 8000);



}
