

function PageQuery(q) 
{
	if(q.length > 1) this.q = q.substring(1, q.length);
	else this.q = null;
	
	this.keyValuePairs = new Array();
	if(q) 
	{
		for(var i=0; i < this.q.split("&").length; i++) 
		{
			this.keyValuePairs[i] = this.q.split("&")[i];
		}
	}
	this.getKeyValuePairs = function() { return this.keyValuePairs; }
	this.getValue = function(s) {
	for(var j=0; j < this.keyValuePairs.length; j++) {
	if(this.keyValuePairs[j].split("=")[0] == s)
	return this.keyValuePairs[j].split("=")[1];
	}
	return '';
}
this.getParameters = function() {
var a = new Array(this.getLength());
for(var j=0; j < this.keyValuePairs.length; j++) {
a[j] = this.keyValuePairs[j].split("=")[0];
}
return a;
}
this.getLength = function() { return this.keyValuePairs.length; } 
}


function queryString(key)
{
var page = new PageQuery(window.location.search); 
return unescape(page.getValue(key)); 
}
 
ip=queryString("mylotblog_ip"); 
lanid=queryString("mylotblog_lanid");



 if (this.mylotblog_feedid==null)mylotblog_feedid=-1;
 if (this.mylotblog_backcolor==null)mylotblog_backcolor="none";
 if (this.mylotblog_forcolor==null)mylotblog_forcolor="none";
 if (this.mylotblog_hovercolor==null)mylotblog_hovercolor="none";
 if (this.mylotblog_linkcolor==null)mylotblog_linkcolor="none";
 if (this.mylotblog_bordercolor==null)mylotblog_bordercolor="none";
 if (this.mylotblog_borderwidth==null)mylotblog_borderwidth="none";
 if (this.mylotblog_width==null)mylotblog_width="800";  
 if (this.mylotblog_font==null)mylotblog_font="verdana"; 
 if (this.mylotblog_maxrows==null)mylotblog_maxrows="5"; 
 if (this.mylotblog_headertext==null)mylotblog_headertext=""; 
 if (this.mylotblog_subscribetext==null)mylotblog_subscribetext=""; 
 if (this.mylotblog_allsubscriberstext==null)mylotblog_allsubscriberstext=""; 
  
 mylotblog_parentcolor=document.bgColor;

mylotblog_w=screen.width
mylotblog_h=screen.height
mylotblog_c=screen.colorDepth
mylotblog_p=screen.pixelDepth

mylotblog_s=mylotblog_w+','+mylotblog_h+','+mylotblog_c+','+mylotblog_p; 
 
mylotblog_parentcolor=mylotblog_parentcolor.replace('#','~'); 
mylotblog_backcolor=mylotblog_backcolor.replace('#','~'); 
mylotblog_forcolor=mylotblog_forcolor.replace('#','~'); 
mylotblog_hovercolor=mylotblog_hovercolor.replace('#','~'); 
mylotblog_linkcolor=mylotblog_linkcolor.replace('#','~'); 
mylotblog_bordercolor=mylotblog_bordercolor.replace('#','~'); 

 
document.write('<script id="mylot_script"  language="javascript" src="http://blogs.mylot.com/index.aspx?mylotblog_fid='+mylotblog_feedid+
'&mylotblog_backcolor='+mylotblog_backcolor+
'&mylotblog_forcolor='+mylotblog_forcolor+
'&mylotblog_hovercolor='+mylotblog_hovercolor+
'&mylotblog_linkcolor='+mylotblog_linkcolor+
'&mylotblog_bordercolor='+mylotblog_bordercolor+
'&mylotblog_borderwidth='+mylotblog_borderwidth+
'&mylotblog_width='+mylotblog_width+
'&mylotblog_parentcolor='+mylotblog_parentcolor+
'&mylotblog_font='+mylotblog_font+
'&mylotblog_headertext='+mylotblog_headertext+
'&mylotblog_subscribetext='+mylotblog_subscribetext+
'&mylotblog_maxrows='+mylotblog_maxrows+
'&mylotblog_allsubscriberstext='+mylotblog_allsubscriberstext+
'"></script>');

window.setTimeout("rewrite();",2000);



function rewrite()
{
      var srob = document.getElementById('mylot_01');  
      
      if(srob==null)
      {       
        flush();
      }
    
}

function flush()
{
   var srob = document.getElementById('mylot_script');    
   
    if(srob!=null)
      {   
            srob.setAttribute('src',null); 
       }
    
}





