

var objRSS=document.getElementById("rss");

window.setInterval('getElementPosition(objRSS)', '500');
window.setInterval('posiciona()', '500');

function posiciona(){
    var obj=document.getElementById("socialMediaIframe");
	var posY=getElementPosition(document.getElementById("rss")).y;
	var posX=getElementPosition(document.getElementById("rss")).x;
	obj.style.top = (posY-2) + "px";
	obj.style.left = (posX-350) + "px";
}

function getElementPosition(el){ var x=0; var y=0; while(el.offsetParent){ x+=el.offsetLeft; y+=el.offsetTop; el=el.offsetParent; } x+=el.offsetLeft; y+=el.offsetTop; return { x:x, y:y }; }


document.write("<iframe id=\"socialMediaIframe\" allowtransparency=\"true\" name=\"socialMediaIframe\" style=\"border: solid 0px #969A99; position: absolute; left: 87px; zIndex: 999; display: none;\" width=\"411\" height=\"196\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\" scrolling=\"no\" onMouseOver=\"showSocialMedia(true);\" onMouseOut=\"showSocialMedia(false);\"></iframe>");

//var boxHTML="<html><head><title></title></head><script>function showSocialMedia(abrir){if(abrir){var obj=document.getElementById('socialMediaIframe');obj.style.display = 'block';}else{var obj=parent.document.getElementById('socialMediaIframe');obj.style.display = 'none';}}</script><body style='background-color:transparent; font-family: Tahoma, Verdana, Arial;color: #222121; font-size: 11px;'><div id='rssAberto' style='background-image:url(../_images/home/bgr_rss.png); background-repeat:no-repeat; width:411px; height:196px; text-decoration:none;'><div id='rss' style='float:left; width:405px; margin-top:2px; text-decoration:none;'><a href='#' onclick='showSocialMedia(false); return false;'><img style='float:left; margin-top:4px; margin-left:8px;' src='../_images/home/btnfechar.png' width='18' height='18' border='0' /></a><img style='float:right; margin-left:330px;' src='../_images/home/btn_rssaberto.png' width='36' height='14' border='0' /><span style='font-size:9px; width:55px; margin-top:1px; float:left; font-family:tahoma; color:#222121; text-decoration:none; margin-left:324px;'>o que &eacute; isso?</span></div><div style='background-color:#DDDDDD; height:1px; margin-left:6px; margin-top:6px; line-height:1px; width:397px; float:left;'>&nbsp;</div><span style='float:left; margin-left:15px; margin-top:10px; tahoma #222121 11px;'><span style='font-weight:bold'>RSS</span> (Really Simple Syndication - Acesso F&aacute;cil a Not&iacute;cias) &eacute; um formato de distribui&ccedil;&atilde;o de informa&ccedil;&otilde;es pela Internet, como por exemplo as Not&iacute;cias e Comunicados da <span style='font-weight:bold'>Kepler Weber</span>. Ao usar o RSS, voc&ecirc; fica sabendo imediatamente quando uma informa&ccedil;&atilde;o do seu interesse &eacute; publicada.<p>Para receber as informa&ccedil;&otilde;es divulgadas pela <span style='font-weight:bold'>Kepler Weber</span> &eacute; preciso ter um leitor de RSS. <a href='http://servidor/keplerweber/view/v1/rss.aspx' style='font-weight:bold; text-decoration:none; color:#222121;' target='_blank'>Clique aqui</a> com o bot&atilde;o direito do mouse e em &quot;Copiar link&quot;. Em seguida adicione o link em seu leitor de RSS que pode ser <a href='http://sourceforge.net/project/showfiles.php?group_id=70179' style='font-weight:bold; text-decoration:none; color:#222121;' target='_blank'>baixado aqui</a>. H&aacute; v&aacute;rios leitores, gratuitos e n&atilde;o gratuitos, dispon&iacute;veis na Internet. Indicamos o leitor <a href='http://www.feedreader.com' style='font-weight:bold; color: #222121; text-decoration:none;'  target='_blank'>FeedReader</a> que &eacute; gratuito. <a href='http://sourceforge.net/project/showfiles.php?group_id=70179' style='font-weight:bold; color: #222121; text-decoration:none;' target='_blank'>Clique aqui</a> para acessar a p&aacute;gina e fazer download do software.</p></span></div></body></html>";
var boxHTML="<html><head><title></title></head><script>function showSocialMedia(abrir){if(abrir){var obj=document.getElementById('socialMediaIframe');obj.style.display = 'block';}else{var obj=parent.document.getElementById('socialMediaIframe');obj.style.display = 'none';}}</script><body style='background-color:transparent; font-family: Tahoma, Verdana, Arial;color: #222121; font-size: 11px;'><div id='rssAberto' style='background-image:url(../_images/home/bgr_rss.png); background-repeat:no-repeat; width:411px; height:196px; text-decoration:none;'><div id='rss' style='float:left; width:405px; margin-top:2px; text-decoration:none;'><a href='#' onclick='showSocialMedia(false); return false;'><img style='float:left; margin-top:4px; margin-left:8px;' src='../_images/home/btnfechar.png' width='18' height='18' border='0' /></a><img style='float:right; margin-left:330px;' src='../_images/home/btn_rssaberto.png' width='36' height='14' border='0' /></div><div style='background-color:#DDDDDD; height:1px; margin-left:6px; margin-top:6px; line-height:1px; width:397px; float:left;'>&nbsp;</div><span style='float:left; margin-left:15px; margin-top:10px; tahoma #222121 11px;'><span style='font-weight:bold'>RSS</span> (Really Simple Syndication - Acesso F&aacute;cil a Not&iacute;cias) &eacute; um formato de distribui&ccedil;&atilde;o de informa&ccedil;&otilde;es pela Internet, como por exemplo as Not&iacute;cias e Comunicados da <span style='font-weight:bold'>Kepler Weber</span>. Ao usar o RSS, voc&ecirc; fica sabendo imediatamente quando uma informa&ccedil;&atilde;o do seu interesse &eacute; publicada.<p>Para receber as informa&ccedil;&otilde;es divulgadas pela <span style='font-weight:bold'>Kepler Weber</span> &eacute; preciso ter um leitor de RSS. <a href='http://servidor/keplerweber/view/v1/rss.aspx' style='font-weight:bold; text-decoration:none; color:#222121;' target='_blank'>Clique aqui</a> com o bot&atilde;o direito do mouse e em &quot;Copiar link&quot;. Em seguida adicione o link em seu leitor de RSS que pode ser <a href='http://sourceforge.net/project/showfiles.php?group_id=70179' style='font-weight:bold; text-decoration:none; color:#222121;' target='_blank'>baixado aqui</a>. H&aacute; v&aacute;rios leitores, gratuitos e n&atilde;o gratuitos, dispon&iacute;veis na Internet. Indicamos o leitor <a href='http://www.feedreader.com' style='font-weight:bold; color: #222121; text-decoration:none;'  target='_blank'>FeedReader</a> que &eacute; gratuito. <a href='http://sourceforge.net/project/showfiles.php?group_id=70179' style='font-weight:bold; color: #222121; text-decoration:none;' target='_blank'>Clique aqui</a> para acessar a p&aacute;gina e fazer download do software.</p></span></div></body></html>";

try{
	var win=document.frames.socialMediaIframe;
}catch(e){
	var win=window.socialMediaIframe;
}
win.document.open();
win.document.write(boxHTML);
win.document.close();
