function quranflash(t,lg) { if(!lg) lg="ar"; var ifrm = document.createElement("iframe"); ifrm.setAttribute("src", "http://www.quranflash.com/affiliate?"+lg); ifrm.style.width = "100%"; ifrm.style.height = "100%"; ifrm.frameBorder = 0; document.getElementById(t).innerHTML = ""; document.getElementById(t).appendChild(ifrm); if(t!="body") { var style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = '.qfIframe { border: solid 1px #e8caba; }'; document.getElementsByTagName('head')[0].appendChild(style); ifrm.className = 'qfIframe'; } }