function Technorati (url) {
this.url = url ;
this.article = new item() ;
this.blogs = new Array() ;
this.length = 0 ;
this.getDisplayArticle = _get_display_article ;
this.getDisplayBlogs = _get_display_blogs ;
this.getDisplaySidebar = _get_display_sidebar ;
this.getProperty = _get_property ;
this.setProperty = _set_property ;
function _get_display_article() {
var output = '' ;
output += ( '
'+this.article.blurb+'
'+this.article.byline+'
' ) ;
return output ;
}
function _get_display_blogs() {
var output = '' ;
for (var i=0; i 4 && i == 3 ) {
output += getTechnoratiSearchBox() ;
}
output += ( ''+this.blogs[i].headline+'
'+this.blogs[i].blurb+'' ) ;
}
return output ;
}
function _get_display_sidebar() {
var output = '' ;
if ( this.blogs.length ) {
output += '' ;
}
return output ;
}
function _set_property(property,value) {
eval("this."+property+"=value");
}
function _get_property(property) {
return eval("this."+property);
}
}
function item (headline,url,blurb,byline) {
this.headline = headline ;
this.url = url ;
this.blurb = blurb ;
this.byline = byline ;
this.getProperty = _get_property ;
this.setProperty = _set_property ;
function _set_property(property,value) {
eval("this."+property+"=value");
}
function _get_property(property) {
return eval("this."+property);
}
}
function getTechnoratiSearchBox() {
var output = '' ;
output += '
' ;
return output ;
}