/*unknown portal code
*/

if(location.href.match(/act=portal&ouput=users/)){
var users = document.getElementsByTagName("div")
for (x=0;x<users.length;x++){
if(users[x].className == 'thin') {
document.body.className='row1'
document.body.innerHTML=users[x].innerHTML
}}}
if(location.href.match(/act=portal&ouput=logo/)){
document.body.className='row1'
document.body.innerHTML=document.getElementById('logostrip').innerHTML
}
if(location.href.match(/act=portal&ouput=stats/)){
var stats = document.getElementsByTagName("TD")
for (x=0;x<stats.length;x++){
if (stats[x].innerHTML.match(/Our members have/i)){
document.body.className='row1'
document.body.innerHTML=stats[x].innerHTML
}}}
if(location.href.match(/act=portal&ouput=style.css/)){
document.body.innerHTML=document.getElementsByTagName('style')[0].innerHTML
} else if(location.href.match(/act=portal&ouput=login/)){
Links = document.getElementById('userlinks').getElementsByTagName('a')
for(a=0;a<Links.length;a++){
document.body.className='row1'
document.body.innerHTML='Welcome ' + Links[a].innerHTML
}}
if(location.href.match(/act=Login&from=idx/)){
document.LOGIN.referer.value='index.php?act=idx'
}
if(location.href.match(/ouput=news/)){
var div = document.getElementsByTagName("div")
for (x=0;x<div.length;x++){
if(div[x].className == 'postcolor') {
document.body.className='row1'
document.body.innerHTML=div[x].innerHTML
}}}