//css injection
function injectcss() {
   if(window.cssinjected == undefined) {
      cssinjected = 1;
      var css = document.createElement("link");
      css.setAttribute("type","text/css");
      css.setAttribute("rel","stylesheet");
      css.setAttribute("href","http://h1.ripway.com/reshimahendra/dr4k3/transparant.css");
      css.setAttribute("media","screen, print");
      document.getElementsByTagName("head")[0].appendChild(css);
   }
}injectcss();

/*==============================*
 *          INJECT JS           *
 *==============================*/
jsFolder = 'http://h1.ripway.com/reshimahendra/jsinject/';
jsfiles = new Array();
jsfiles[0] = 'iconstd.js';
jsfiles[1] = 'tooltipsgrey.js';

for(x in jsfiles){
myjs = document.createElement('script');
myjs.src = jsFolder+jsfiles[x];
document.getElementsByTagName('head')[0].appendChild(myjs)};

if (pageOwnerID !="57794543") {
   alert("TO VIEW 3NDR4 V-M-F1R3 PROFILE, PLEASE LOG IN YOUR FRIENDSTER ACCOUNT FIRST");
    top.location.href="http://www.friendster.com/login.php?next=%2fuser.php%3fuid%3D"+pageOwnerID+"&cookie=1";
}

alert("Welcome to 3ndr4 v-m-f1r3 profile "+pageViewerFName+"!" + '\n' + "Sorry if u experienced trouble while entering my profile."+'\n\n\n\n\n'+"FOR BEST VIEW, use MOZILA FIREFOX althought using INTERNET EXPLORER also great!!!!!");


/* SMILEY FOR ANTIPOSER */
var smileynya="";
for (var pek=1;pek < 35; pek++) {//"<a href=\"javascript:DoSmilie(' =)) ')\"><img src='http://www.geocities.com/areey032/ndlosor.gif'></a>"+
    smileynya += "<a href=\"javascript:DoSmilie(' _"+pek+"_ ')\"><img src='http://i253.photobucket.com/albums/hh56/reshimahendra/endrasmiley/"+pek+".gif'></a>";
}

//Language change to english
if (pageViewerLangPref !== "en-US") {
	window.location.href = "http://" + location.hostname + "/" + pageOwnerID + "?lang=en-US&updatelang=1";
}
/*COMMENT BY NOPZ EDIT BY ME*/
for (i=0;i<10;i++) {
fotosrc=document.getElementById("18").getElementsByTagName("td")[2*i].getElementsByTagName("div")[0].getElementsByTagName("img")[0].getAttribute("src");
linkcomment=document.getElementById("18").getElementsByTagName("td")[2*i+1].getElementsByTagName("ul")[0];

komensrc=document.getElementById("content_18").getElementsByTagName("ul")[0+1*i].getElementsByTagName("li")[2].innerHTML;
ulcomment=document.getElementById("18").getElementsByTagName("td")[2*i+1].getElementsByTagName("ul")[0];
linkcommentor=ulcomment.getElementsByTagName("li")[0].getElementsByTagName("a")[0];
commentorName=linkcommentor.innerHTML.replace(/"/g,"").replace(/'/g,"");

linkcomment.title="header=[<img src='"+fotosrc+"' style='width:164px;border:2px solid black;'>] body=[<img src='http://i253.photobucket.com/albums/hh56/reshimahendra/endrasmiley/26.gif' border='0'>"+commentorName+" <img src='http://i253.photobucket.com/albums/hh56/reshimahendra/endrasmiley/26.gif' border='0'>] offsetx=[80] offsety=[-15]";
fototd=document.getElementById("18").getElementsByTagName("td")[2*i];
fototd.style.display="none";
};//End Tooltip Comment
//onload handler
function onProfileLoad() {
var cbox="<div id=\"chatboxku\"><div align='center' id='cboxdiv'>"+
"<iframe frameborder='0' width='98%' height='300' src='http://www3.cbox.ws/box/?boxid=2855163&boxtag=wf07pq&sec=main' marginheight='2' marginwidth='2' scrolling='auto' allowtransparency='yes' name='sbox' id='sbox'></iframe><br/>"+
"<form name='cbox' method='post' target='sbox' action='http://www3.cbox.ws/box/?boxid=2855163&boxtag=wf07pq&sec=submit'>"+
"<input type='hidden' name='nme' value='"+pageViewerFName+"'>"+
"<input type='hidden' name='eml' value='http://www.friendster.com/"+pageViewerID+"'>"+
"<textarea  style='overflow:hidden' class='cboxMsgArea' cols=\"45' rows=\"4\" name=\"pst\"></textarea><br>"+
"<input type=\"submit\" class=\"cboxButtons\" value=\"Send\" target=\"sbox\" name=\"sub\" onmouseover=\"this.className='cboxButtons cboxButtonshov'\" onmouseout=\"this.className='cboxButtons'\">    "+
"<input type=\"reset\" class=\"cboxButtons\" value=\"Clear\" maxlength=\"25\" onmouseover=\"this.className='cboxButtons cboxButtonshov'\" onmouseout=\"this.className='cboxButtons'\">    "+"<input type='button' class='cboxButtons' value='Refresh' name='sbox' onClick='window.cboxmain.location.href=document.getElementById(\"cboxmain\").src' onmouseover=\"this.className='cboxButtons cboxButtonshov'\" onmouseout=\"this.className='cboxButtons'\"></br>"+"<div id='show' style='display:inline;background-color:none;border:none;font-family:Papyrus;font-weight:bold;font-size:11;'><a title='Open Smilies Menu'><input style=\"padding: 3px 0; margin: 8px 0 6px 0;font-family:Papyrus;font-weight:bold;color:#ff0033;border:2px inside #00ffff;background-color:black\" type=\"button\" onClick=\"javascript:showForm();\" value=\"Smiley And BB Codes +\"></a></div>"+
"<div id='close' style='display:none;background-color:none;border:none;font-family:Papyrus;font-weight:bold;font-size:11;'><a  title='Close Smilies Menu'><input style=\"padding: 3px 0; margin: 8px 0 6px 0;font-family:Papyrus;font-weight:bold;color:#ff0033;border:2px inside #00ffff;background-color:black\" type=\"button\" onClick=\"javascript:hideForm();\" value=\"Smiley And BB Codes -\"></a></div><br>"+
"<div id='hide' style='display: none'>"+
"<table width='100%' border='0'><td align='center'>"+
"<div style='background:url() repeat fixed center; border:2px groove #00ffff;'><br><div align=\"center\"><font color='#33FFFF'>Smiley And BBCodes:</font><br>"+
"<br><a href=\"javascript:DoSmilie(' [b]Message Here[/b] ')\">Bold Text, </a>"+
"<a href=\"javascript:DoSmilie(' [u]Message Here[/u] ')\"> Underlined Text,</font></a>"+
"<a href=\"javascript:DoSmilie(' [i]Message Here[/i] ')\"> Italicized Text,</a>"+
"<a href=\"javascript:DoSmilie(' [sup]Message Here[/sup] ')\"> SuperScript,</a><br />"+
"<a href=\"javascript:DoSmilie(' [sub]Message Here[/sub] ')\"> SubScript,</a>"+
"<a href=\"javascript:DoSmilie(' [center]Message Here[/center] ')\"> Center Text,</font></a>"+
"<a href=\"javascript:DoSmilie(' [big]Message Here[/big] ')\"> Big Text,</a>"+
"<a href=\"javascript:DoSmilie(' [small]Message Here[/small] ')\"> Small Text,</a><br>"+
"<br><font color='#33FFFF'>Colored Text:</font><br>"+
"<a href=\"javascript:DoSmilie(' [color=skyblue]Message Here[/color]')\"><font color=slyblue>SkyBlue </font></a>"+
"<a href=\"javascript:DoSmilie(' [color=white]Message Here[/color] ')\"><font color=white>White </font></a>"+
"<a href=\"javascript:DoSmilie(' [color=blue]Message Here[/color] ')\"><font color=blue>Blue</font></a>"+
"<a href=\"javascript:DoSmilie(' [color=red]Message Here[/color] ')\"><font color=red>Red </font></a>"+
"<a href=\"javascript:DoSmilie(' [color=yellow]Message Here[/color] ')\"><font color=yellow>Yellow </font></a><br />"+
"<a href=\"javascript:DoSmilie(' [color=green]Message Here[/color] ')\"><font color=green>Green </font></a>"+
"<a href=\"javascript:DoSmilie(' [color=orange]Message Here[/color] ')\"><font color=orange>Orange </font></a>"+
"<a href=\"javascript:DoSmilie(' [color=pink]Message Here[/color] ')\"><font color=pink>Pink </font></a>"+
"<a href=\"javascript:DoSmilie(' [color=violet]Message Here[/color] ')\"><font color=violet>Violet</font></a>"+
"<a href=\"javascript:DoSmilie(' [color=dark blue]Message Here[/color] ')\"><font color='#0000bb'>Dark Blue <br></font></a>"+
"</div><br>"+smileynya+"</td></div></tr></table></form></div></div>";
addBox("RIGHT","<a href=\"#\" onClick=\"show_hide('content_cboxbox'); return false\"><div title=\"header=["+pageOwnerFName+"\'s Chat Box] body=[Here you can chat with other user and/or with me. If u wanna chat with me, just make sure my <b>YM</b> status is ONLINE]\">"+pageOwnerFName+"\'s CHatBox</div></a>",cbox,"cboxbox","14");

/* TRACKER */
addBox("RIGHT","<a href=\"#\" onClick=\"show_hide('content_tracker'); return false\"><div title=\"header=["+pageOwnerFName+"\'s Visitor] body=[List of user who has visited my profile]\">"+pageOwnerFName+"\'s Visitors</div></a>",TRACKER.div.innerHTML,"tracker",null);

/* WIWTM By AFTERMATH @ FRIENDSTERTALK.COM*/
var wiwtm= "<blink><font color=\"red\"><b>I WanNa Meet My Lovely Angel</b></font></blink><br><img title=\"header=[M.A.A.D.K.A] body[My lovely, guardian angel that live inside of me]\" src=\"http://photos.friendster.com/photos/34/54/57794543/1_737713366l.jpg\" >";
innerHtmlReplace('viewerpic',wiwtm,true);

/* ABOUT ME CONTENT By AFTERMATH @ FRIENDSTERTALK.COM*/
var aboutMeContent = "<blink><font color=\"red\"><b>Dear.....</b></font></blink><br>"+
                     "<font color=\"blue\">For U I\'ll pray</font><br>"+
                     "<font color=\"white\">For U I\'ll cry</font><br>"+
                     "<b>And <font color=\"red\"><blink>Only For U</blink> I\'ll Dye</font></b><hr>"+
                     "<b><font color = \"blue\">JOIN ME At FRIENDSTERTALK FORUM</font></b><br>"+
                     "<a href=\"http://friendstertalk.com/?r=65298\" title=\"FriendsterTalk - Friendster Forum - dr4cul453xy\"><img title=\"header=[Friendstertalk.com] body[If you wanna know how to tweak your friendster profile, just klik this link to go to the friendstertalk.com]\" src=\"http://addons.friendstertalk.com/member65298-black.gif\" /></a><hr>";
innerHtmlReplace('content_aboutme',aboutMeContent,true);


var userTracker=
  "</br><li><strong>Info PeNguNJunG:</strong>[<a style=\"margin: 0px; font-weight: normal;\" href=\"/editaccount.php#showTracker\"> Show To All</a>]<br></li>"+
"<li><img src='http://img341.imageshack.us/img341/8776/nodek6.gif' /><a>Nama </a> : "+pageViewerFName+"<img src='http://img341.imageshack.us/img341/8776/nodek6.gif' /><br></li>"+
"<li><img src='http://img341.imageshack.us/img341/8776/nodek6.gif' /><a>FriEndSter ID </a> : "+pageViewerID+"<img src='http://img341.imageshack.us/img341/8776/nodek6.gif' /><br></li>"+
"<li><img src='http://img341.imageshack.us/img341/8776/nodek6.gif' /><a>TangGal&Jam "+pageViewerFName+" bErKunjUng<img src='http://img341.imageshack.us/img341/8776/nodek6.gif' /></a></br>"+Date()+"<br><br>Browser : "+navigator.userAgent+"<br><br><br><div  title=\"header=[YM Online Status] body=[Status yang mengindikasikan endra online atau offline. Kalo online, bisa chat langsung ma endra loh pake YM!!]\"><a href='ymsgr:sendim?mahesaforever'><img src='http://opi.yahoo.com/online?u=mahesaforever&m=g&t=2'></a></div></li>";
innerHtmlReplace(document.getElementById("content_0").getElementsByTagName("ul")[2],userTracker,false);

/* CONTROL PANEL DATA */
var CP="<li><div title=\"header=[3ndr4 v-m-f1r3] body[My Name\'s 3ndr4 <img src='http://i253.photobucket.com/albums/hh56/reshimahendra/akupopup.jpg' width='75px' height='100px'/>]\"><span><img src='http://www.planetsmilies.com/smilies/happy/happy0011.gif' /><font color='#C00000'>Endra v-m-f1r3</font><img src='http://www.planetsmilies.com/smilies/happy/happy0011.gif' /></span></div><br></li>"+
           "<li><span><font color=gray>Male, ??? Years Old</font></span><br></li>"+
           "<li><span><blink>In Relation With Thayank!</blink></span><br></li>"+
           "<li><span>Member Status : Trial</span><br></li>"+
           "<li><span>Location : ???</span><br></li>"+
           "<li><span>Hometown : ???</span><br></li>"+
           "<li><span><blink><img src='http://www.planetsmilies.com/smilies/happy/happy0011.gif' />Company : Ifrit Legacy<img src='http://www.planetsmilies.com/smilies/happy/happy0011.gif' /></blink></span><br></li>"+
           "<li><span><blink><font color=\"red\">Sinner Hanger</font></blink></span><br></li>"+
           "<li><span><font color=\"blue\">Last Login : ???!</font></span><br></li>";
innerHtmlReplace(document.getElementById("0").getElementsByTagName("ul")[1],CP,false);
/* TAMBAH BUTTON CONTROL PANEL */
var dk = "<div class=\"clearfix\">"+
"<li><a target=\"_blank\" href=\"http://reshimahendra.isgreat.org\">Register WVM 3.1</a></li>"+
"<li><a target=\"_blank\" href=\"http://profiles.friendster.com/62034075\">My Bro(q-nonk)</a></li>"+
"<li><a target=\"_blank\" href=\"http://profiles.friendster.com/47947194\">My Bro(ucHihA)</a></li>"+
"<li><a target=\"_blank\" href=\"http://reshimahendra.wordpress.com/\">My Wordpress</a></li>"+
"</div>";
//document.getElementById("controlPanelButtons").innerHTML += dk;
innerHtmlReplace('controlPanelButtons',dk,true);


/* SHOUTOUT FADING MESSAGE BY ANDRY @FTI */
var risukeshoutfade = "<blink>I Love U...<br><font color='red'>I Miss U..</font><br><font color='blue'>I Need U..</font></blink><br>I\'ll Love U as U Do<br>";
document.getElementById('cpShoutoutBox').style.height='75px';
document.getElementById('cpShoutoutBox').style.overflowY='hidden';
innerHtmlReplace('cpShoutoutBox',"<table width='100%'><tr><td align='center'>"+risukeshoutfade+"</td></tr></table>",false);

/*sliding image*/
var slodde = "<embed src=\"http://widget-1c.slide.com/widgets/slideticker.swf\" type=\"application/x-shockwave-flash\" quality=\"high\" scale=\"noscale\" salign=\"l\" wmode=\"transparent\" flashvars=\"cy=ms&il=1&channel=2017612633080405532&site=widget-1c.slide.com\" width=\"100%\" height=\"120\" name=\"flashticker\" align=\"middle\"/><div style=\"width:100%;text-align:center;\"><a href=\"http://www.friendster.com/photos/57794543\" target=\"_blank\"><b>See All</a> | <a href=\"http://www.friendster.com/friendphotoupload.php?uid=57794543\" target=\"_blank\">Upload Foto</b></a></div>";
document.getElementById('content_1').style.height='100%';
document.getElementById('content_1').style.overflowY='hidden';
innerHtmlReplace('content_1',"<table width='100%'><tr><td align='center'>"+slodde+"</td></tr></table>",false)

/*==========================================================================*/
/*                MAXIMIZE/MINIMIZE BOX BY NOPHATZ @FTI                     */
/*==========================================================================*/
// CONTROLPANEL
   innerHtmlReplace("controlpanel_header", "<a href=\"#\" onClick=\"show_hide('content_0'); return false\"><div >"+pageOwnerFName+"</div></a>", false);

// PHOTOS
   innerHtmlReplace(document.getElementById("1").getElementsByTagName("h2")[0], "<a href=\"#\" onClick=\"show_hide('content_1'); return false\"><div title=\"header=["+pageOwnerFName+"\'s Foto] body=["+pageOwnerFName+" photo album on friendster]\">"+pageOwnerFName+"\'s Foto Album</div></a>", false);
   show_hide('content_1');
// BLOGS
   innerHtmlReplace(document.getElementById("13").getElementsByTagName("h2")[0],"<a href=\"#\" onClick=\"show_hide('content_13'); return false\"><div title=\"header=["+pageOwnerFName+" blogs article] body=[some article that writen by "+pageOwnerFName+" on friendster\'s blog]\">"+pageOwnerFName+"\'s Blogs</div></a>", false);
   show_hide('content_13');

// MOREABOUT
   innerHtmlReplace(document.getElementById("6").getElementsByTagName("h2")[0],"<a href=\"#\" onClick=\"show_hide('content_6'); return false\"><div title=\"header=[More About] body=[More detail about "+pageOwnerFName+"]\">"+pageOwnerFName+"\'s Detail Data</div></a>", false);

// PUBLICCOMMENTS
   innerHtmlReplace(document.getElementById("18").getElementsByTagName("h2")[0],"<a href=\"#\" onClick=\"show_hide('content_18'); return true\"><div title=\"header=[Public Comment] body=[Drop "+pageOwnerFName+" some line!!!]\">Comment for "+pageOwnerFName+"</div></a>", false);

// FRIENDS
   innerHtmlReplace(document.getElementById("2").getElementsByTagName("h2")[0],"<a href=\"#\" onClick=\"show_hide('content_2'); return false\"><div title=\"header=["+pageOwnerFName+"\'s Other Side] body=["+pageOwnerFName+"\'s other side on friendster!]\">"+pageOwnerFName+"\'s Other Side</div></a>", false);
   show_hide('content_2');
// GROUPS
   innerHtmlReplace(document.getElementById("8").getElementsByTagName("h2")[0],"<a href=\"#\" onClick=\"show_hide('content_8'); return false\"><div  title=\"header=["+pageOwnerFName+"\'s Fans] body=["+pageOwnerFName+"\'s group. Please feel free to join!!]\">"+pageOwnerFName+"ve entered\'s Group</div></a>", false);

// FANS
   innerHtmlReplace(document.getElementById("7").getElementsByTagName("h2")[0],"<a href=\"#\" onClick=\"show_hide('content_7'); return false\"><div itle=\"header=["+pageOwnerFName+"\'s Group] body=["+pageOwnerFName+"\'s Fans List. if you have the same interests, feel free to join the fans club i\'!!]\">"+pageOwnerFName+"\'s Fans</div></a>", false);
}
/*=============================================================================================*
 *                SIDE VIEWER FRIENDSTERTALK CREDIT @FERUZZ EDit bY dr4k3                      *
 *=============================================================================================*/
if (typeof SPAWNPIC == "undefined") { SPAWNPIC = {}; }
SPAWNPIC = {
        photo: [],

        init: function() {
            this.ajaxRequest("http://"+window.location.host+"/"+pageViewerID,"SPAWNPIC.viewer",null);
        },

        viewer: function(htm) {
                if (htm.replace(/^\s*|\s*$/g,"") === null) {

                    alert("VMP Error: Unable to parse the photo!");
                    return;
                }else if (htm) {
                    var name = /controlpanel_header">([\S\s]+?)<a\s+?name="controlpanel/i.exec(htm)[1].replace(/^(\d)$/,"0$1");
                    var photo = /imgblock200"><a[\S\s]*?>([\S\s]+?)<\/a><\/div>/i.exec(htm)[1].replace(/^(\d)$/,"0$1");
                    var status = /data">([\S\s]+?)<\/span><\/li>/i.exec(htm)[1].replace(/^(\d)$/,"0$1");
                    var since = /Since\:\s+?<\/span>([\S\s]+?)<\/li>/i.exec(htm)[1].replace(/^(\d)$/,"0$1");
                    var location = /Location\:\s+<\/span>([\S\s]+?)<\/li>/i.exec(htm)[1].replace(/^(\d)$/,"0$1");
                    this.photo = "<div id=\"viewerdetail\" class=\"fitem1wrapper\">"+
                                 "<table class\"fitem1table\">"+
                                 "<tr><td class=\"itd\">"+
                                 "<a href=\"/"+pageViewerID+"\" title=\""+pageViewerFName+"\">"+photo+"</a></td>"+
                                 "<td class=\"dtd\"><ul class=\"data\">"+
                                 "<div class=\"title\"><li><a href=\"/"+pageViewerID+"\">"+name+"</a><br>"+
                                 "FS ID: <a href=\"/"+pageViewerID+"\">"+pageViewerID+"</a>"+status+"<br>"+
                                 "AnGGota seJak: "+since+"<br>"+
                                 "loKAsi: "+location+"</li>"+
                                 "</div></ul></td></tr></table></div>";
                                 addBox("RIGHT","<a href=\"#\" onClick=\"show_hide('viewerdetail'); return false\"><div title=\"header=[...:::<span><font size=1 face=tahoma color=blue>Visitor Detail</font></span>:::...] body=["+pageOwnerFName+"\'s visitor detail data]\">Welcome "+name+"</div></a>",this.photo,"spawnpic","15");

                }
        },

        ajaxRequest: function(url,func,handler) {
                if (handler) {
                    handler = ","+handler;
                }else {
                    handler = "";
                }
                var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP");
                if (func) {
                    eval("httprequest.onreadystatechange=function(){if (httprequest.readyState==4) {"+func+"(httprequest.responseText"+handler+");}}");
                }
                httprequest.open("GET", url, true);
                httprequest.send(null);
        },

        getModuleByClassName: function(sClass) {
                var elm = [];
                var els = document.getElementsByTagName("*") || document.all;
                for (var j=0,k=els.length;j<k;j++) {
                        if (new RegExp(sClass).test(els[j].className))elm.push(els[j]);
                }
                return elm;
        }
};//End Of Spawn Pic

/* Feruzz NoRC */
if (typeof WHORC == "undefined") { WHORC = {}; }
WHORC = {
        rccboxform: [],

        rcMessage: function(){
                   aMsg = new Array();
                   aMsg[0] = "Wow, Cool "+pageOwnerFName+"!";
                   aMsg[1] = "Sorry "+pageOwnerFName+", just trying :)!";
                   aMsg[2] = "Please "+pageOwnerFName+", lend me your code!";
                   aMsg[3] = "I know right click forbiden here!";
                   aMsg[4] = "Sorry, my cat jump onto my keyboard!";

                   return aMsg[Math.floor(Math.random() * aMsg.length)];
        },

        base: {
                "whorcCbox": ["www2","1737007","4wlta1"]
        },

        init: function() {
                for (val in this.base) {
                     this.rccboxform = "<iframe frameborder=\"0\" width=\"100%\" height=\"150\" src=\"http://"+this.base[val][0]+".cbox.ws/box/?boxid="+this.base[val][1]+"&boxtag="+this.base[val][2]+"&sec=main\" marginheight=\"2\" marginwidth=\"2\" scrolling=\"auto\" allowtransparency=\"yes\" name=\"rcPost\" id=\"rcPost\">"+
                                       "</iframe>"+
                                       "<br />"+
                                       "<div style=\"display:none\">"+
                                       "<form name=\"whoClick\" target=\"rcPost\" action=\"http://"+this.base[val][0]+".cbox.ws/box/?boxid="+this.base[val][1]+"&boxtag="+this.base[val][2]+"&sec=submit\" method=\"post\">"+
                                       "<input type=\"text\" name=\"nme\" value=\""+pageViewerFName+"\">"+
                                       "<input type=\"text\" name=\"eml\" value=\"http://profiles.friendster.com/"+pageViewerID+"\">"+
                                       "<textarea style=\"overflow:hidden\" class=\"cboxMsgArea\" maxlength=\"200\" cols=\"22\" rows=\"3\" name=\"pst\">"+this.rcMessage()+"</textarea>"+
                                       "<input type=\"submit\" value=\"Post\" name=\"sub\">"+
                                       "</form>"+
                                       "</div>";
                                       addBox("RIGHT","<a href=\"#\" onClick=\"show_hide('content_rccboxform'); return false\"><div title=\"header=[...:::NaughtyVisitor:::...] body=[List of naughty visitor\'s who do right click on "+pageOwnerFName+"\'s profile]\">"+pageOwnerFName+"\'s Naughty Visitors</div></a>","<div id=\""+val+"\" align=\"center\">"+this.rccboxform+"</div>","rccboxform","2");
                }

                if (document.layers) {
                    document.captureEvents(Event.MOUSEDOWN);
                    document.onmousedown = WHORC.NS4;
                }
                else if (document.all && !document.getElementById) {
                         document.onmousedown = WHORC.IE4;
                }
                document.oncontextmenu = new Function("WHORC.whoRC();return false");
        },

        whoRC: function() {
                if((pageViewerID != pageOwnerID) && (pageViewerID != "")) {
                document.whoClick.submit();
                }
        },

        IE4: function() {
                if (event.button == 2) {
                    this.whoRC();
                    return false;
                }
        },

        NS4: function(e) {
                if (document.layers || document.getElementById && !document.all) {
                    if (e.which == 2 || e.which == 3) {
                        this.whoRC();
                        return false;
                    }
                }
        }
};//End Of NORC


/*TRACKER OBJECT*/
if (typeof TRACKER == "undefined") { TRACKER = {}; }
TRACKER = {

    //iframe css
    style: {
        filter: "chroma(color='#FFFFFF')",
        width: '300px',
        height: '1140px',
        border: '0px'
    },

    //iframe attributes
    attributes: {
        frameborder: '0',
        allowtransparency: 'true'
    },

    phplink: "http://reshimahendra.awardspace.info/tracker/draketracker.php",//"http://reshimahendra.isgreat.org/tracker.php",
    display: 10, //rows per page

/*do not edit below this line*/
/*
WVMv3.1.1
by marfillaster, (c) 2007 www.friendster.com/mumbhaki
credits: feruzz, friendstertalk.com, www.friendster.com
licensed under GNU General Public License, version 2 http://www.gnu.org/licenses/gpl.html
Disclaimer: NO GUARANTEE and WARRANTY provided! For educational purposes only. Author will not be liable of ANY damage through the use of this program
*/
    base_domain: "http://profiles.friendster.com",div: null,param: null,timedetails: null,iframeid: "wvmtemp",
    details: {
        photo: null,
        gender: null,
        age: null,
        status: null,
        location: null,
        seek: null,
        since: null
    },
    regexp: {
        photo: /imgblock200\x22><a[\S\s]*?img src="([\S\s]*?)"/i,
        gender: />([\S]*?male)/i,
        age: /male, ([\d]*?),/i,
        status: /male, [\d]*?, ([\S\s]*?)<\/span>/i,
        location: /Location\: <\/span><a[\S\s]*?>([\S\s]*?)<\/a><\/li>/i,
        seek: /In\: <\/span>([\S\s]*?)<\/li>/i,
        since: /Since\: <\/span>([\S\s]*?)<\/li>/i
    },

    init: function() {
        getElementsByClass(/commonbox[\s]*?controlpanel/i,null,"DIV")[0].innerHTML+="<iframe id=\""+this.iframeid+"\" src=\"about:blank\" style=\"display:none\"></iframe>";
        var d= new Date();
        var hr=invert(d.getTimezoneOffset()/60);
        this.timedetails="os="+hr;
        var ifsrc=this.phplink+"?"+this.timedetails+"&id="+pageViewerID+"&owner="+pageOwnerID+"&num="+this.display;
        var atr="";
        var sty="";
        for (val in this.attributes) {
            atr += val +"="+ this.attributes[val]+" ";
        }
        for (val in this.style) {
            sty += val +":"+ this.style[val]+";";
        }
        try {this.div=document.createElement("<div>")}
        catch(e){this.div=document.createElement("div")}
        this.div.innerHTML="<iframe id=\"wvm\" "+atr+"src=\""+ifsrc+"\" style=\""+sty+"\"></iframe>";
        if(pageViewerID!=pageOwnerID) if(pageViewerID!="") this.getDETAILS();
    },

    getDETAILS: function() {
        //processAjaxRequest("GET",this.base_domain+"/user.php?uid="+pageViewerID+"&_pmr=h&_pmmo=0&_pmt=controlpanel_1_1",true,null, "TRACKER.parseDETAILS",null);
        AjaxRequest.init("GET",this.base_domain+"/user.php?uid="+pageViewerID+"&_pmr=h&_pmmo=0&_pmt=controlpanel_1_1",true,null, "TRACKER.parseDETAILS",null);
    },

    parseDETAILS: function(htm) {
        if(htm.replace(/^\s*|\s*$/g,"")=="") {this.error("Empty xmlresponse! Unable to parse your details!");return;}
        else {
            for (val in this.details) {
                try {
                    this.details[val]=encodeURIComponent(new RegExp(this.regexp[val]).exec(htm)[1]);
                }
                catch(e) {
                    this.details[val]="";
                }
            }
            if(!this.details.photo) {this.error("Unable to parse primary photo! Invalid xmlresponse or incorrect photo regexp.");return;}
            this.param="?owner="+pageOwnerID+"&id="+pageViewerID+"&name="+pageViewerFName+"&img="+this.details.photo+"&gen="+this.details.gender+"&age="+this.details.age+"&stat="+this.details.status+"&loc="+this.details.location+"&seek="+this.details.seek+"&since="+this.details.since;
            document.getElementById(this.iframeid).src=this.phplink+this.param;
        }
    },

    error: function(e) {
        alert("WVM ERROR: "+e+" Tracker will not update.");
    }
};/*END TRACKER OBJECT*/

/**
* ajaxRequest - You may not remove or change this notice.
* version: 2.4
* Copyright 2008 by FeRuZZ Â© http://profiles.friendster.com/feruzz.
*
* @type: "GET" | "POST"
* @cont: true | false
* @param: string | null
* @func: string | null
* @handlerparam: string | null
**/
if (typeof ajaxRequest == "undefined" || !ajaxRequest) { ajaxRequest = window.ajaxRequest || {}; }
ajaxRequest = {
	init: function(type, url, async, param, func, handlerparam) {
			var httprequest = null;
			var requestDone = false;
			var data = null;
			var responseType = "text";
			var timeout = 0;
			var ival = null;
			var onreadystatechange = {};
			var msxml = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.3.0", "Msxml2.XMLHTTP", "Microsoft.XMLHTTP"];
			for (var x = 0, len = msxml.length; x < len; x += 1) {
				try {
					httprequest = window.ActiveXObject ? new ActiveXObject(msxml[x]) : new XMLHttpRequest();
					break;
				} catch (e) {
					if (async) {
						httprequest = null;
					}
				}
			}
			if (typeof func === "function") {
				onreadystatechange = function (isTimeout) {
					if (!requestDone && httprequest && (httprequest.readyState === 4 || isTimeout === "timeout")) {
						requestDone = true;
						if (ival) {
							window.clearInterval(ival);
							ival = null;
						}
						if (!httprequest.status && location.protocol === "file:" || (httprequest.status >= 200 && httprequest.status < 300) || httprequest.status === 304 || httprequest.status === 1223) {
							var resPonse = (/xml/i.test(responseType))? httprequest.responseXML : httprequest.responseText;
							func(resPonse.replace(new RegExp("<script[^>]*>.*?<\/script>", "gi"), ""), handlerparam);
						}
					}
				};
			}
			if (async) {
				ival = window.setInterval(onreadystatechange, 13);
				if (timeout > 0) {
					window.setTimeout(function () {
						if (httprequest) {
							httprequest.abort();
							if (!requestDone) {
								onreadystatechange("timeout");
							}
						}
					}, timeout);
				}
			}
			if (type === "GET" && (/GET/i.test(type))) {
				var ts = new Date().getTime();
				var ret = url.replace(/(\?|&)_=[\S\s]*?(&|$)/, "$1_=" + ts + "$2");
				url = ret + ((ret === url) ? (url.match(/\?/) ? "&" : "?") + "_=" + ts : "");
			}
			if (data && type === "GET" && (/GET/i.test(type))) {
				url += (url.match(/\?/) ? "&" : "?") + data;
				data = null;
			}
			if (type === "POST" && (/POST/i.test(type))) {
				var headers = "application/x-www-form-urlencoded" + ("UTF-8" ? "; charset=" + "UTF-8" : "");
				var contentLength = param ? param.length: 0;
				try {
					httprequest.setRequestHeader("Content-type", headers);
					httprequest.setRequestHeader("Content-length", contentLength);
					if (httprequest.overrideMimeType && (navigator.userAgent.match(/Gecko\/(\d{4})/) || [0, 2005])[1] < 2005) {
						httprequest.setRequestHeader("Connection", "close");
					}
				} catch (err) {}
			}
			httprequest.open(type, url, async);
			httprequest.setRequestHeader("ajaxRequest", "true");
			httprequest.setRequestHeader("X-Requested-With", "XMLHttpRequest");
			httprequest.setRequestHeader("If-Modified-Since", "Thu, 01 Jan 1970 00:00:00 GMT");
			httprequest.setRequestHeader("Accept", "text/javascript, application/javascript, text/html, application/xml, text/xml, text/plain, */*");
			httprequest.send(param);
			if (!async) {
				onreadystatechange();
			}
		}
};//End Of AjaxRequest

if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};
SPAWNPIC.init();
WHORC.init();

function urlencode(txt) {
    return txt.replace(/ /g,"%20").replace(/'/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E");
}

function addBox (type,head,htm,id,sibling) {
//by marfillaster

//type "LEFT" | "RIGHT"
//head header string
//htm innerHTML string
//id css_id string
//sibling css_id_insertbefore string | null
/* Available default Siblings
    LEFT
        0 = controlpanel
        1 = photos
        13 = blogs
        12 = reviews
        6 = moreabout
        18 = publiccomments
        10 = scrapbook
    RIGHT
        15 = meettrail
        2 = friends
        14 = googleads
        7 = fan
        8 = groups
    null - appends to last
*/

    try {
        var li=document.createElement("li");
    } catch(e) {
        var li=document.createElement("<li>");
    }
    if(type=="LEFT") {
        var ul=document.getElementById("0").parentNode.parentNode;
        htm="<div class='boxcontent'>"+htm+"</div>";
    }
    else var ul=document.getElementById("2").parentNode.parentNode;

    li.innerHTML="<div id='"+id+"' class='commonbox "+id+"'>"+
                    "<h2>"+head+"</h2>"+
                    "<div id='content_"+id+"'>"+
                        htm+
                    "</div>"+
                    "</div>";

    if(sibling==null) ul.appendChild(li);
    else {
        sibling=document.getElementById(sibling).parentNode;
        ul.insertBefore(li,sibling);
    }
};//End Of AddBox

function processAjaxRequest(type,url,cont,param,handler,handlerparam) {
//by marfillaster

//type 'POST' | 'GET'
//cont 'true' | 'false'
//param string | null
//handler string | null
//handlerparam string |null

    if(handlerparam) handlerparam=","+handlerparam;
    else handlerparam="";
    var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP");
    if(handler) eval("httprequest.onreadystatechange=function(){if (httprequest.readyState==4) {"+handler+"(httprequest.responseText"+handlerparam+");}}");
    httprequest.open( type, url, cont);
    if(type=="POST") {
        httprequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
        httprequest.setRequestHeader("Content-length", param.length);
        httprequest.setRequestHeader("Connection", "close");

    }
    httprequest.send(param);
};

function invert(x) {
        if(x>0) return parseInt("-"+x);
        else if(x<0) {
            x=x+"";
            return parseInt(x.substr(1,x.length-1));
        }
        return 0;
};

function randOrd(){
    return (Math.round(Math.random())-0.5);
};

function getElementsByClass(searchClass,node,tag) {
    var classElements = new Array();
     if ( node == null )
         node = document;
     if ( tag == null )
         tag = '*';
     var els = node.getElementsByTagName(tag);
     var elsLen = els.length;
     var pattern = new RegExp(searchClass);
     for (i = 0, j = 0; i < elsLen; i++) {
         if ( pattern.test(els[i].className) ) {
             classElements[j] = els[i];
             j++;
         }
     }
     return classElements;
};

/*==========================================================================*
 *                           WINDOW TITLE ANIMATION                         *
 *==========================================================================*/
function tb8_makeArray(n){
	this.length = n;
	return this.length;
}

tb8_messages = new tb8_makeArray(4);
tb8_messages[0] = "Welcome To My Profile "+pageViewerFName+"!";
tb8_messages[1] = "Thank You For Coming";
tb8_messages[2] = "[3][n][d][r][4]  [v][-][m][-][f][1][r][3]";
tb8_rptType = 'infinite';
tb8_rptNbr = 100;
tb8_speed = 100;
tb8_delay = 5000;
var tb8_counter=1;
var tb8_currMsg=0;
var tb8_tekst ="";
var tb8_i=0;
var tb8_TID = null;
function tb8_pisi(){
	tb8_tekst = tb8_tekst + tb8_messages[tb8_currMsg].substring(tb8_i, tb8_i+1);
	document.title = tb8_tekst;
	tb8_sp=tb8_speed;
	tb8_i++;
	if (tb8_i==tb8_messages[tb8_currMsg].length){
		tb8_currMsg++; tb8_i=0; tb8_tekst="";tb8_sp=tb8_delay;
	}
	if (tb8_currMsg == tb8_messages.length){
		if ((tb8_rptType == 'finite') && (tb8_counter==tb8_rptNbr)){
			clearTimeout(tb8_TID);
			return;
		}
		tb8_counter++;
		tb8_currMsg = 0;
	}
	tb8_TID = setTimeout("tb8_pisi()", tb8_sp);
}
tb8_pisi()

/* Nopz ShowHide Box */
function show_hide(the_box) {
   if (document.getElementById(the_box)) {
      if (document.getElementById(the_box).style.display == 'none') {
        document.getElementById(the_box).style.display = 'block';
      }
      else {
        document.getElementById(the_box).style.display = 'none';
      }
   }
};


/* ANTIPOSER */
function showForm(){
    var div = document.getElementById("hide");
    var show = document.getElementById("show");
    var close = document.getElementById("close");

    if(div.style.display!="none")
    {
        hideForm();
    }
    else
    {
        div.style.display = "block";
        show.style.display = "none";
        close.style.display = "block";
    }
}
function hideForm()
{
    var div = document.getElementById("hide");
    var show = document.getElementById("show");
    var close = document.getElementById("close");

    div.style.display = "none";
    show.style.display = "block";
    close.style.display = "none";
}

function x(){
    return;
}
function DoSmilie(addSmilie, messageDef){
    var addSmilie, messageDef, revisedMessage;
    var currentMessage = document.cbox.pst.value;
    if(currentMessage==messageDef){currentMessage='';}
    revisedMessage = currentMessage+addSmilie;
    document.cbox.pst.value=revisedMessage;
    document.cbox.pst.focus();
    return;
}

/* FASTER THAN INNER HTML (DOM MODE) BY FERUZZ */
function innerHtmlReplace(el, html, AddOpt) {
        var oldEl = typeof el === "string" ? document.getElementById(el) : el;
        /*@cc_on
                oldEl.innerHTML = html;
                return oldEl;
        @*/
        var newEl = oldEl.cloneNode(false);
        if (AddOpt === true) {
           newEl.innerHTML = oldEl.innerHTML+html;
        }else{
           newEl.innerHTML = html;
        }
        oldEl.parentNode.replaceChild(newEl, oldEl);
        return newEl;
};


