//Input the IDs of the IFRAMES you wish to dynamically resize to match its content height://Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none:var iframeids=["datamain"]//Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended):var iframehide="yes"var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsersfunction dyniframesize() {var dyniframe=new Array()for (i=0; i<iframeids.length; i++){if (document.getElementById){ //begin resizing iframe proceduredyniframe[dyniframe.length] = document.getElementById(iframeids[i]);if (dyniframe[i] && !window.opera){dyniframe[i].style.display="block"if (dyniframe[i].contentDocument && dyniframe[i].contentDocument.body.offsetHeight) //ns6 syntaxdyniframe[i].height = dyniframe[i].contentDocument.body.offsetHeight+FFextraHeight; else if (dyniframe[i].Document && dyniframe[i].Document.body.scrollHeight) //ie5+ syntaxdyniframe[i].height = dyniframe[i].Document.body.scrollHeight;}}//reveal iframe for lower end browsers? (see var above):if ((document.all || document.getElementById) && iframehide=="no"){var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])tempobj.style.display="block"}}}if (window.addEventListener)window.addEventListener("load", dyniframesize, false)else if (window.attachEvent)window.attachEvent("onload", dyniframesize)elsewindow.onload=dyniframesize

function writeJS(){
var str='';
str='<iframe id="myframe" src="http:\/\/urbanread.com\/dis\/eve\/urbanreadwidget.php?r=';
str1='&colb=';
str2='&colt=';
incaff='&inraff=';
str3='&MAXITEMS=3" width=150 heigth=180 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no style="overflow:visible"><\/iframe>';
str3i='&MAXITEMS=5" width=210 heigth=210 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no><\/iframe>';
str3z='&MAXITEMS=1" width=210 heigth=60 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no style="overflow:visible"><\/iframe>';
str4='<layer visibility=hide>';
str5='<div style="width:150px;background-color:#';
str6='" align="right">';
str7='<a href="#" onMouseover="scrollspeed=-1" onMouseout="scrollspeed=0"><font color="#';
str8='">Up<\/font><\/a> | <a href="#" onMouseover="scrollspeed=1" onMouseout="scrollspeed=0"><font color="#';
str9='">Down<\/font><\/a>';
str10='<\/div>';
str11='<\/layer>';
str12='<div style="width:150px;background-color:#';
str13='" align="center"><a href="http:\/\/urbanread.com\/referral\/';
str14='"><font style="font-size: 9pt" color="#';
str15='" align="center">Grab this widget<\/font><\/a></div>';

if (inc_bak== ""){inc_bak="ffff" }if (inc_txt == ""){  	inc_bak="0000" }if (inc_size=="150n180"){document.write(str+inc_ref+str1+inc_bak+str2+inc_txt+incaff+inc_aff+str3);}if (inc_size=="210n210"){document.write(str+inc_ref+str1+inc_bak+str2+inc_txt+incaff+inc_aff+str3i);}if (inc_size=="210n60"){document.write(str+inc_ref+str1+inc_bak+str2+inc_txt+incaff+inc_aff+str3z);}}

writeJS();