var iframetag='<div id="masterdiv" width="400px" height="420px" style="border-left:6px solid #CCCCCC; border-right:6px solid #808080; border-top:6px solid #CCCCCC; border-bottom:6px solid #808080; background-color:#FFFFFF; visibility:hidden; position: fixed; right:50px; bottom:50px;">'
var iframetag= iframetag + '<div align="right"><a href="javascript:closeiframe()"><img border="0" src="http://i197.photobucket.com/albums/aa309/technojuiceblog/closeme.jpg" width="30" height="30"></a></div>'
var iframetag= iframetag + '<div style="background-image: url(\'http://i197.photobucket.com/albums/aa309/technojuiceblog/loading.gif\'); background-repeat: no-repeat; background-position: center; width:400px; height:370px">'
var iframetag= iframetag + '<iframe width="0" height="370px" id="webbrow" marginwidth="0" marginheight="0" hspace="0" vspace="0" onload="this.width=\'400\'" frameborder="0" scrolling="auto" style="background-color: #FFFFFF"></iframe></div>'
var iframetag= iframetag + '<div id="hspacer"><img border="0" src="http://i197.photobucket.com/albums/aa309/technojuiceblog/hspacer.gif" width="400" height="3"></div>'
var iframetag= iframetag + '<div align="right" valign="bottom" height="50" width ="400" style="padding:6px"><font face="Verdana" size="1">Widget by <b><a target="_blank" href="http://technojuice.blogspot.com/2007/08/launching-comment-box-widget-for.html">TechnoJuice</a></b></font></div></div>'
document.write(iframetag)	

if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById('masterdiv').style.visibility = 'hidden';
var browser=navigator.appName
var b_version=navigator.appVersion
var version=parseFloat(b_version)
if ((browser=="Microsoft Internet Explorer" && version<7)){
document.getElementById('masterdiv').style.position = 'absolute';
}
}
else {
if (document.layers) { // Netscape 4
document.masterdiv.visibility = 'hidden';

}
else { // IE 4
document.all.masterdiv.style.visibility = 'hidden';
}
}

function showcom(comurl){
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById("webbrow").width = '0';
document.getElementById('masterdiv').style.visibility = 'visible';
document.getElementById('webbrow').src= comurl;


}
else {
if (document.layers) { // Netscape 4
document.webbrow.src = 'about:blank';
document.masterdiv.visibility = 'visible';
document.webbrow.src = comurl;
}
else { // IE 4
document.all.webbrow.src = 'about:blank';
document.all.masterdiv.style.visibility = 'visible';
document.all.webbrow.src = comurl;
}
}
}

function closeiframe(){
parent.document.getElementById("masterdiv").style.visibility = 'hidden';
parent.document.getElementById("webbrow").src = 'about:blank';
}
