/* --------------------------------- */ /* SOPHIAKNOWS v3.0 */ /* --------------------------------- */ /* RSS OBJECTS */ /* --------------------------------- */ /* Created: 2001-01-01 */ /* Issued: 2001-01-01 */ /* Modified: 2004-09-13 */ /* Component: SKv3.0 RSS OBJECTS */ /* Copyright (c) 2001-2004 */ /* Tony Pisarra, SophiaKnows */ /* --------------------------------- */ /* --------------------------------- */ /* RELATED FILES */ /*---------------------------------- */ /* 1. rss.obj.php */ /*---------------------------------- */ /*---------------------------------- */ /*---------------------------------- *\ \*---------------------------------- */ var LocalFile=document.location.href.replace(/\?.*$/,""); LocalFile=LocalFile.replace(/http:\/\/[\w-\.\/]+\/([^\/]+\.\w\w\w)/,"$1"); /////////////////////////////////////// // RSS Channel Constructor: /////////////////////////////////////// function ChannelObject(n,title,description,link,pubDate,lastBuildDate,language,image,copyright,managingEditor,webMaster,rating,skipHours,skipDays,textinput,docs) { this.size=n; this.title=title; this.description=description; this.link=link; this.pubDate=pubDate; this.lastBuildDate=lastBuildDate; this.language=language; this.image=image; this.copyright=copyright; this.managingEditor=managingEditor; this.webMaster=webMaster; this.rating=rating; this.skipHours=skipHours; this.skipDays=skipDays; this.textinput=textinput; this.docs=docs; this.item=new InitArray(n); } /////////////////////////////////////// // RSS Item Constructor: /////////////////////////////////////// function ItemObject(title,pubDate,author,description,category,link,source,guid,enclosure) { this.title=title; this.pubDate=pubDate; this.author=author; this.description=description; this.category=category; this.link=link; this.source=source; this.guid=guid; this.enclosure=enclosure; this.xhtml=ReturnXhtmlItem(this.title,this.pubDate,this.author,this.description,this.category,this.link,this.source,this.guid,this.enclosure); } /////////////////////////////////////// // Build 0 Array: /////////////////////////////////////// function InitArray(n){ this.size = n; for(i=0; i<=n; i++){ this[i] = 0; } return(this); } /////////////////////////////////////// // Return XHTML Item: /////////////////////////////////////// function ReturnXhtmlItem(x_title,x_pubDate,x_author,x_description,x_category,x_link,x_source,x_guid,x_enclosure) { var xhtmlItem=""; xhtmlItem+="