function teaser() { var style = document.createElement('style'); style.type = 'text/css'; style.innerHTML ='#my-rich-media{ position:fixed; bottom:30px; right:30px; height:277px; width:200px; border:2px solid red; text-align:center; border-radius: 10px; line-height: 1em} #my-rich-media img { border:0;} #rich-wrapper { position:relative; width:100%; height:100%;} #rich-close{ width:22px; height:22px; background-image:url(close.png); position:absolute; top:0; left:100%; margin-left:-22px;}'; document.getElementsByTagName('head')[0].appendChild(style);var r_media = document.createElement("div");r_media.id = "r_media-infolines"; document.getElementsByTagName("body")[0].appendChild(r_media); document.getElementById('r_media-infolines').innerHTML = '
x
'; } function kill(){document.getElementById("my-rich-media").style.display="none";} teaser();