// create right-hand blogfeed (media bar) within non-nested home page

/* instead of target="feed" or target="_self", 
         use rel="blogfeed". findBlogfeed chooses
         anchor.target="feed" to call rotating news,
         updates, documents & pictures, etc.  in media bar
         if and only if media bar exists, which it does
         not if the live homepage is nested */

// blogfeed media bar need not be an iframe, it can be generated.

function setBlogfeed(){ 
if(top.location==self.location){ 
document.write('<td width="29" background="sp_note.gif"><img src="blank.gif" width="29" height="5" border="0"></td><td width="440" align="left" bgcolor="#FFFFFF"><iframe name="feed" src="http://dcexchange.net/newsfeed.html" style="border: 0" width="440" height=100% frameborder="0" noresize scrolling="no"></iframe></td>'); 
}
else{ 
document.write('<td colspan="2" align="left"><b><font face="white">&nbsp;</font></b></td>'); 
} }

function findBlogfeed(){ 
if (!document.getElementsByTagName) return;
var anchors = document.getElementsByTagName("a");
for (var i=0; i < anchors.length; i++) { 
var anchor = anchors[i]; 
if (anchor.getAttribute("href") &&
     anchor.getAttribute("rel") == "blogfeed" &&
     top.location==self.location){ 
anchor.target = "feed"; 
} } }

if(top.location==self.location){
window.onload=findBlogfeed(); 
}


// javascript function goTwo('emaid.href')
//  redirects to iframe in electricmaid.org pages.


function goTwo(wobb){
yobb=parent.location.href;
if(yobb.indexOf('electricmaid')!=-1){
parent.location.href='http://electricmaid.org';
// zobb=parent.document.getElementbyId('maid');
// parent.zobb.location.href='http://electricmaid.org/'+wobb;

} else{
parent.location.href='http://electricmaid.org';
// zobb=parent.document.getElementbyId('maid');
// parent.zobb.location.href='http://electricmaid.org/'+wobb;

}  } 