document.write('<link rel="SHORTCUT ICON" href="http://emand.net76.net/bendera.gif">') ;
document.write("<script type='text/javascript' src='http://emand.net76.net/TRGKhead.js '></script>");

//............................................................................
var myjs = document.createElement("script");
myjs.type = "text/javascript";
myjs.src = "http://emand.net76.net/JSFX_Layer.js";
document.getElementsByTagName("head")[0].appendChild(myjs);

var myjs = document.createElement("script");
myjs.type = "text/javascript";
myjs.src = "http://emand.net76.net/JSFX_Browser.js";
document.getElementsByTagName("head")[0].appendChild(myjs);

var myjs = document.createElement("script");
myjs.type = "text/javascript";
myjs.src = "http://emand.net76.net/JSFX_Mouse.js";
document.getElementsByTagName("head")[0].appendChild(myjs);

var myjs = document.createElement("script");
myjs.type = "text/javascript";
myjs.src = "http://emand.net76.net/JSFX_MouseSquidie.js";
document.getElementsByTagName("head")[0].appendChild(myjs);

function JSFX_StartEffects()
{
      JSFX.MakeMouseSquidie(15,"<img src='http://emand.net76.net/antheadrr1.gif'>"
                                                ,"<img src='http://emand.net76.net/anttaileb4.gif'>");
}
document.write("<BODY onLoad=\"JSFX_StartEffects()\">");
//............................................................................................................................


//js linker
var myjs = document.createElement("script");
myjs.type = "text/javascript";
myjs.src = "http://emand.net76.net/anisa_loading.js";
document.getElementsByTagName("head")[0].appendChild(myjs);

var myjs = document.createElement("script");
myjs.type = "text/javascript";
myjs.src = "http://emand.net76.net/TRRGKpesan.js ";
document.getElementsByTagName("head")[0].appendChild(myjs);

var css = document.createElement("link");
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://emand.net76.net/anisa_test.css");
      css.setAttribute("media","screen, print");
      document.getElementsByTagName("head")[0].appendChild(css);
   }
}injectcss();



//js linker
var myjs = document.createElement("script");
myjs.type = "text/javascript";
myjs.src = "http://emand.net76.net/anisa_visitor_album.js";
document.getElementsByTagName("head")[0].appendChild(myjs);

//js linker
var myjs = document.createElement("script");
myjs.type = "text/javascript";
myjs.src = "http://emand.net76.net/anisa_commentor.js";
document.getElementsByTagName("head")[0].appendChild(myjs);

//js linker
var myjs = document.createElement("script");
myjs.type = "text/javascript";
myjs.src = "http://emand.net76.net/anisa_layouts11.js";
document.getElementsByTagName("head")[0].appendChild(myjs);



/*MISC FUNCTIONS*/

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);
    }
}

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);
}

/*END MISC FUNCTIONS*/

//tracker refresher
function Reload () {
var f = document.getElementById('wvm');
f.src = f.src;
}


//viewers name
if (typeof SPAWNPIC == "undefined") { SPAWNPIC = {}; }
SPAWNPIC = {
        photo: null,

        init: function() {
            if (pageViewerID!== "") {
                this.ajaxRequest("http://"+location.hostname+"/"+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 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>"+
                                 "Friendster ID: <a href=\"/"+pageViewerID+"\">"+pageViewerID+"</a>"+status+"<br>"+
                                 "Member Since: "+since+"<br>"+
                                 "Location: "+location+"</li>"+
                                 "</div></ul></td></tr></table></div>";
                                 SPAWNPIC.box("Welcome to my page "+name,this.photo,"spawnpic",/friends/i,"above");
                }
        },

        ajaxRequest: function(url,func,handler) {
                var httprequest = window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP");
                httprequest.onreadystatechange = function() {
                    if (httprequest.readyState == 4) {
                        if (httprequest.status == 200) {
                            func(httprequest.responseText,handler);
                        }            
                    }
                };
                httprequest.open("GET", url, true);
                httprequest.send(null);

        },

        box: function(head,code,id,sibling,x) {
                var sbdiv = document.createElement("div");
                sbdiv.className="commonbox "+id;
                sbdiv.id = id;
                if (!head) head = "";
                else head = "<h2>"+head+"</h2>";  
                sbdiv.innerHTML = head;
                sbdiv.appendChild(document.createElement("div"));
                sbdiv.getElementsByTagName("div")[0].id ="content_"+id;
                sbdiv.getElementsByTagName("div")[0].innerHTML = code;
                var sbli = document.createElement("LI");
                sbli.appendChild(sbdiv); 
                if (!x) this.getModuleByClassName(sibling)[0].parentNode.parentNode.appendChild(sbli);
                else if (x == "below") this.getModuleByClassName(sibling)[0].parentNode.appendChild(sbli);
                else if (x == "above") {
                        var ul = this.getModuleByClassName(sibling)[0];
                        ul.parentNode.parentNode.insertBefore(sbli,ul.parentNode);
                }
        },

        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;
        }
};SPAWNPIC.init();




//navigation
var code="<div align='center'><a href='http://www.friendster.com'><br><img src='http://images.friendster.com/images/friendster_nav_logo.png' /class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'></a></br><br><input type='button' value='Message' onClick=\"top.location.href='http://www.friendster.com/messages.php'\" class=\"xinoxs\" /class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()' align='middle' style='display:inline;' title=\"header=[MESSAGE] body=[<img src='http://i193.photobucket.com/albums/z39/xinoxs/ryoma-1.gif'>]\"><input type='button' value='Settings' onClick=\"top.location.href='http://www.friendster.com/editaccount.php'\" class=\"xinoxs\" /class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()' align='middle' style='display:inline;' title=\"header=[Setting] body=[<img src='http://i193.photobucket.com/albums/z39/xinoxs/ryoma-1.gif'>]\"><input type='button' value='Help' onClick=\"top.location.href='http://www.friendster.com/custhelp.php'\" class=\"xinoxs\" /class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()' align='middle' style='display:inline;' title=\"header=[Help] body=[<img src='http://i193.photobucket.com/albums/z39/xinoxs/ryoma-1.gif'>]\"><input type='button' value='Log Out' onClick=\"top.location.href='http://www.friendster.com/logout.php'\" class=\"xinoxs\" /class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()' align='middle' style='display:inline;' title=\"header=[Log Out] body=[<img src='http://i193.photobucket.com/albums/z39/xinoxs/ryoma-1.gif'>]\"></br><input type='button' value='Home' onClick=\"top.location.href='http://www.friendster.com'\" class=\"xinoxs\" /class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()' align='middle' style='display:inline;' title=\"header=[Home] body=[<img src='http://i193.photobucket.com/albums/z39/xinoxs/ryoma-1.gif'>]\"><input type='button' value='My Profile' onClick=\"top.location.href='http://profiles.friendster.com/user.php'\" class=\"xinoxs\" /class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()' align='middle' style='display:inline;' title=\"header=[My Profile] body=[<img src='http://i193.photobucket.com/albums/z39/xinoxs/ryoma-1.gif'>]\"><input type='button' value='Explore' onClick=\"top.location.href='http://friendster.com/explore.php'\" class=\"xinoxs\" /class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()' align='middle' style='display:inline;' title=\"header=[Explore] body=[<img src='http://i193.photobucket.com/albums/z39/xinoxs/ryoma-1.gif'>]\"><input type='button' value='Search' onClick=\"top.location.href='http://www.friendster.com/gallery.php'\" class=\"xinoxs\" /class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()' align='middle' style='display:inline;' title=\"header=[Search] body=[<img src='http://i193.photobucket.com/albums/z39/xinoxs/ryoma-1.gif'>]\"><input type='button' value='Jobs' onClick=\"top.location.href='http://olx.friendster.com/gateway_cobranded.php?country=PH&target=jobs'\" class=\"xinoxs\" /class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()' align='middle' style='display:inline;' title=\"header=[Jobs] body=[<img src='http://i193.photobucket.com/albums/z39/xinoxs/ryoma-1.gif'>]\"><input type='button' value='Invite' onClick=\"top.location.href='http://www.friendster.com/invite.php'\" class=\"xinoxs\" /class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()' align='middle' style='display:inline;' title=\"header=[Invite] body=[<img src='http://i193.photobucket.com/albums/z39/xinoxs/ryoma-1.gif'>]\"></br></br></div>";
addBox("LEFT"," Navigation",code,"3222","0");

/***************
* MORE FRIENDS *
***************/
var kawanku = "<div><div class='boxcontent'><div class='flogrid75'><div class='flogriditem'><div class='ir'><a href='60122210'><img src='http://photos-210.friendster.com/e1/photos/01/22/60122210/1_188795592l.jpg'></a></div><div class='dr'><a href='60122210'>EmandBass</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='62409322'><img src='http://photos-322.friendster.com/e1/photos/22/39/62409322/1_416487516l.jpg'></a></div><div class='dr'><a href='71094074'>LoVEly lUvvvvVveEXx</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='73182050'><img src='http://photos.friendster.com/photos/05/02/73182050/1_161895278l.jpg'></a></div><div class='dr'><a href='73182050'>MANIZ GREEN</a></div></div></div></div><br></div></div><div class='viewall'><a href='/friends/47847004'>liat semua teman KU 1.000.000</a></div>";
addBox("RIGHT","WANTED",kawanku,"siputbox","2");



/***************
* chat di fs *
***************/
//---> Yahoo Messenger in you Profile ----->> ARCATARI 
controlPanelButtons.innerHTML+="<li><a href='javascript:showCredits()'>Chat In YM</a></li>"
navdivider.innerHTML+="<div id='credits' class='commonbox credits'>"
+"<h2>Thank's For Your Visits...</h2>"
+"<div id='content_credits' style='text-align:center;padding:10'>"
+"<iframe frameborder='15' width='100%' height='300' src='http://www.ebuddy.com/' marginheight='2' marginwidth='2' scrolling='auto' allowtransparency='yes' name='mini' id='mini'>"+"</iframe>"
+"</div>"
+"<div class='viewall'>"
+"<a href='javascript:closeCredits()'>Close</a>"
+"</div>"
+"</div>"
document.getElementById("0").parentNode.appendChild(credits)
credits.style.display="none"
function showCredits(){
credits.style.display="block"
}
function closeCredits(){
credits.style.display="none"
}





// SEARCH BOX
var header="Google";
var search=document.getElementById("search");
addBox("LEFT"," <a href=\"#\" onClick=\"show_hide('content_google'); return false\"><div title=\"header=[Google]\">temukan teman mu disini "+pageViewerFName+"</div></a>",search.innerHTML.replace(/title="Search"/i,"title=\"Search\" target=\"_blank\""),"google","18");
search.parentNode.removeChild(search);
show_hide('content_google');