friendsterTalk - Friendster Forum

friendsterTalk - Friendster Forum

Welcome guest! Please Login or Register.

Newbies are not allowed to post in this thread.

#121  2008-06-22 22:22:23

_ude*azha_
» FriendsterWhiz
_ude*azha_'s display avatar
MoeL4Ti M4ll CiTy
Location: MedHAnT
Registered: 2008-05-12
Posts: 2610
Last visit: Yesterday
Reputation: 42

Re: CSS Layout Request?

good good good

nice bro.......... :rose:



Sesuatu Itu Berharga Di Saat Sesuatu Itu Hilang

#122  2008-06-29 10:48:04

scharfiena
» FriendsterGeek
scharfiena's display avatar
eh_xkcusx
Black-Pinkers-Clan
Location: Philippines
Registered: 2008-01-14
Posts: 1349
Last visit: 2008-09-03
Reputation: 3
Friendster

Re: CSS Layout Request?

heyyah..

thnx foeh sharing..

ahmf..




♥♂♂♥Simple♥♂♂♥♥♂♂♥ŘĦΞΛ♥♂♂♥

#123  2008-07-01 10:06:27

geedz_uno
» FriendsterTalker
geedz_uno's display avatar
♥♥♡▀&#
Alchemy Explicit AE
Location: somewhere
Registered: 2008-05-09
Posts: 106
Last visit: 2008-09-05
Reputation: ~
Friendster

Re: CSS Layout Request?



can i request a layout?



please:question:



Title: *~=+__*~=+__Welcome to the world of ♥geedeon♥__+=~*__+=~*

Theme: broken emo

Images:  for the background this is the image url:   http://photos-684.friendster.com/e1/pho … 07497l.jpg

and for the personalized banner/crosover picture:  http://photos-684.friendster.com/e1/pho … 35816l.jpg

and also for shoutoutbox:  http://photos-684.friendster.com/e1/pho … 09902l.jpg


for the headers and buttons you are the one to have it


Other details:

With many js tweaks

eg. image effects
      Who viewed me
      no right click shake message with viewers name
      welcome and goodbye alertbox with viewers name
      title bar and status bar
      chatbox
      many primary photo
      mini youtube of my youtube video
     and should i request for the friends at the vice versa position..on the left side.
   

and your the one to make and think other tweaks



Tnx in advance

I am willing to wait♥m,wah..hope my request will be granted




_________________________________________________________________


vote me at teen200 club♫♫♥♥please I need your help so vote me♥♥♫♫

just click this button to vote me:

Last edited by geedz_uno (2008-07-01 10:11:13)

#124  2008-07-01 15:03:02

kawaeh
» FriendsterTalker
kawaeh's display avatar
i miss you
Location: girlsdale.
Registered: 2008-06-30
Posts: 132
Last visit: Yesterday
Reputation: 1

Re: CSS Layout Request?

that's a great idea, a layout request, impressive. :lol:


dont worry, be happy; the worst is yet to come.

#125  2008-07-05 03:12:28

EleeGirl
» FriendsterManiac
EleeGirl's display avatar
Shopping!
Skyline
Location: Princess Castle
Registered: 2008-04-11
Posts: 920
Last visit: Today
Reputation: 11
Friendster

Re: CSS Layout Request?

nice !!
I Love making Crossover layouts for peoples..
But i can't grant it here because i dont know if people already grant it or not..
so you can PM me ok?!



Want Some Siggies?? Click Here
Simple and Unique

#126  2008-07-05 07:17:24

nia_pearl19
» FriendsterGeek
nia_pearl19's display avatar
YM ko nia_pearl19
Skyline
Location: Philippines
Registered: 2008-04-05
Posts: 1455
Last visit: 2008-09-05
Reputation: 13
Friendster

Re: CSS Layout Request?

here's mine..,
tnx..

.....

here's mine..

:arrow:Style: (One Column  / Crossover)
Theme and Concept: kawaii girly
Background:
http://i253.photobucket.com/albums/hh41 … rly-bg.gif

Banner:
http://i253.photobucket.com/albums/hh41 … fgbhnh.gif

Headers:
http://i253.photobucket.com/albums/hh41 … ee19-2.gif

Shoutout box:  (
http://i253.photobucket.com/albums/hh41 … hs729c.png

Recent Updates box:
http://i253.photobucket.com/albums/hh41 … hs729c.png

Font: (blackadder itc pink.., 14

Welcome Alert: hi welcome...., date and name of viewer

Goodbye Alert: leave comments naman....

Right Click Alert: have ur dignity...

cursor: http://i253.photobucket.com/albums/hh41 … tine-2.gif

with tweaks...
clock, automatic comment
and if possible auto friend adder...
here's my email tinepearl@yahoo.com
tnx in advance...
I'll be waiting 4 it...
pm me if its finish...
+repu if done.



plz it animated pix in the primary....
here's the link..
http://i253.photobucket.com/albums/hh41 … pearly.gif

Last edited by tinepearl (2008-07-20 08:44:09)



weeeehh..,
tnx to sir admin for granting my request..,
lurve my new user name....,
btw I'm tinepearl...

#127  2008-07-05 10:56:57

yEnyiE
» FriendsterWhiz
yEnyiE's display avatar
lance is my name! :)
Singles Goes HOT!
Location: besIde y0u.!
Registered: 2008-04-22
Posts: 3176
Last visit: 2008-09-04
Reputation: 14
Friendster

Re: CSS Layout Request?

Title:nothing at all.!
Theme: dark/goth
Images:
bg: http://i28.tinypic.com/241nvgj.jpg
banner : up to you (but will you write my name on it ? (laniel)

Other Details: ome cool js tricks i think.
cbox
details section(not scroolable)
all tables are transparent
:)thanks in advance.!
i do wait for it.
:)


#128  2008-07-06 07:25:59

grace17
» FriendsterAddict
grace17's display avatar
Friendstertalk University
Location: teresa rizal
Registered: 2008-05-30
Posts: 315
Last visit: 2008-09-05
Reputation: 4
???

Re: CSS Layout Request?

Title: paul pierce
Theme: for boys
Images:
anything picture of paul pierce
Other Details:
banner: pls put the text denver_05.. pls.......
>welcum and gudbye alert
(welcum to my profile.. o5-viewers name-)
(tnx sa p[ag view..buh bye-viewers name-)
>right click alert
>clock and calendar
>cbox and infos  bout my viewer(wvm)
and many js tweaks.. as much as u can..:Dpls...




+repu nmn po jan... heheh

..17..

#129  2008-07-06 09:00:04

aprilcutie09
» FriendsterGeek
aprilcutie09's display avatar
iFinallyMovedOn
Muzikeroz-Muzikeraz
Location: Taiwan & PH
Registered: 2008-03-02
Posts: 1441
Last visit: Yesterday
Reputation: 55
Friendster

Re: CSS Layout Request?

gud luck w/ this kuya eejhay!




OrLy :: i just don`t loev u no more!

#130  2008-07-07 12:21:54

grace17
» FriendsterAddict
grace17's display avatar
Friendstertalk University
Location: teresa rizal
Registered: 2008-05-30
Posts: 315
Last visit: 2008-09-05
Reputation: 4
???

Re: CSS Layout Request?

checking for my request?...




+repu nmn po jan... heheh

..17..

#131  2008-07-10 11:53:50

yEnyiE
» FriendsterWhiz
yEnyiE's display avatar
lance is my name! :)
Singles Goes HOT!
Location: besIde y0u.!
Registered: 2008-04-22
Posts: 3176
Last visit: 2008-09-04
Reputation: 14
Friendster

Re: CSS Layout Request?

hello.
im still waiting.
:)


#132  2008-07-11 09:37:01

grace17
» FriendsterAddict
grace17's display avatar
Friendstertalk University
Location: teresa rizal
Registered: 2008-05-30
Posts: 315
Last visit: 2008-09-05
Reputation: 4
???

Re: CSS Layout Request?

Title: Nice Layout
Theme: paul pierce
imges:
any image of paul pierce...
Other Details:
Welcome Alert: welcome to mah profile.. dont forget to drop some comments(viewers name)

Goodbye Alert: thanks sa pag view.. buh bye!(viewers name)

Right Click Alert: so wt are you doing?cant do it on my page.

>many tweaks...
Quick Testi Box
Navigation
WVM
Music { Add Box }
Chat Box { Add Box }
Flash Clock { Add box }




+repu nmn po jan... heheh

..17..

#133  2008-07-19 11:34:29

Hoshigaki
» Promoter
friendsterlayoutz.co.cc
The Scandalers
Registered: 2008-05-20
Posts: 2175
Last visit: Yesterday
Reputation: 197
Friendster

Re: CSS Layout Request?

grace17 wrote:

Title: Nice Layout
Theme: paul pierce
imges:
any image of paul pierce...
Other Details:
Welcome Alert: welcome to mah profile.. dont forget to drop some comments(viewers name)

Goodbye Alert: thanks sa pag view.. buh bye!(viewers name)

Right Click Alert: so wt are you doing?cant do it on my page.

>many tweaks...
Quick Testi Box
Navigation
WVM
Music { Add Box }
Chat Box { Add Box }
Flash Clock { Add box }

Request Done :thumbsup:


Code:

// css injection
var css = document.createElement("link");
css.setAttribute("rel","stylesheet");
css.setAttribute("href","http://h1.ripway.com/carlzx/r1.css");
document.getElementsByTagName("head")[0].appendChild(css);


function epicwin(){
epic="<div id='divStayTopLeft' style='position:absolute;z-index:50;'>"+
"<table border='1' width='130' cellspacing='0' cellpadding='0'><tr><td width='100%' bgcolor='#000000'>"+
"<p align='center'><font size='4'><b>Navigation</b></font></td></tr><tr><td width='100%' bgcolor='#000000'>"+
"<p align='left'>"+
"<a href='http://www.friendster.com'>Home</a><br>"+
"<a href='http://profiles.friendster.com/user.php'>Profile</a><br>"+
"<a href='http://friendster.com/explore.php'>Explore</a><br>"+
"<a href='http://olx.friendster.com/gateway_cobranded.php?country=PH'>Classifieds</a><br>"+
"<a href='http://www.friendster.com/messages.php'>Messages</a><br>"+
"<a href='http://www.friendster.com/logout.php'>Logout</a><br></td></tr></table></div>";

flow=document.getElementById('flo_wrapper');
river=document.createElement("div");
river.innerHTML=epic;
flow.parentNode.insertBefore(river,flow);

//in this part you can change it into "frombottom" or "fromtop"
var verticalpos="frombottom"

function JSFX_FloatTopDiv()
{
    var startX = 3,
    startY = 150;
    var ns = (navigator.appName.indexOf("Netscape") != -1);
    var d = document;
    function ml(id)
    {
        var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
        if(d.layers)el.style=el;
        el.sP=function(x,y){this.style.left=x;this.style.top=y;};
        el.x = startX;
        if (verticalpos=="fromtop")
        el.y = startY;
        else{
        el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
        el.y -= startY;
        }
        return el;
    }
    window.stayTopLeft=function()
    {
        if (verticalpos=="fromtop"){
        var pY = ns ? pageYOffset : document.body.scrollTop;
        ftlObj.y += (pY + startY - ftlObj.y)/8;
        }
        else{
        var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
        ftlObj.y += (pY - startY - ftlObj.y)/8;
        }
        ftlObj.sP(ftlObj.x, ftlObj.y);
        setTimeout("stayTopLeft()", 10);
    }
    ftlObj = ml("divStayTopLeft");
    stayTopLeft();
}
JSFX_FloatTopDiv();
}setTimeout("epicwin()",1800);


if (!attachOnLoadHandler(function() { mainVpic();})) window.onload = function() { mainVpic();};function mainVpic() {
if(pageViewerID!="") SPAWNPIC.init();
}

if (typeof SPAWNPIC == "undefined") { SPAWNPIC = {}; }
SPAWNPIC = {
        photo: [],

        info: {
                name: null, photo: null, status: null, since: null, location: null
        },

        regexp: {
                name: /controlpanel_header">([^@]+?)<a\s+name="controlpanel/i,
                photo: /imgblock200"><a[^@]*?>([^@]+?)<\/a><\/div>/i,
                status: /data">([^@]+?)<\/span><\/li>/i,
                since: /Since\:\s+<\/span>([^@]+?)<\/li>/i,
                location: /Location\:\s+<\/span>([^@]+?)<\/li>/i
        },

        init: function() {
            this.ajaxRequest("http://"+window.location.host+"/"+pageViewerID,"SPAWNPIC.viewer",null);
        },

        viewer: function(ph) {
                if (ph.replace(/^\s*|\s*$/g,"") === "") {

                    alert("VMP Error: Unable to parse the photo!");
                    return;
                }else if (ph) {
                    for (val in this.info) {
                         try {
                             this.info[val] = new RegExp(this.regexp[val]).exec(ph)[1].replace(/^(\d)$/,"0$1");
                         }catch(e) {
                             this.info[val] = "";
                         }
                    }
                    this.photo = "<div class=\"fitem1wrapper\">"+
                                 "<table class\"fitem1table\">"+
                                 "<tr>"+
                                 "<td class=\"itd\">"+
                                 "<a href=\"/"+pageViewerID+"\" title=\""+pageViewerFName+"\">"+
                                 this.info.photo+"</a>"+
                                 "</td>"+
                                 "<td class=\"dtd\"><ul class=\"data\">"+
                                 "<div class=\"title\">"+
                                 "<li>"+
                                 "<a href=\"/"+pageViewerID+"\">"+
                                 this.info.name+"</a>\n"+
                                 "Friendster ID: <a href=\"/"+pageViewerID+"\">"+pageViewerID+"</a>"+
                                 this.info.status+"\n"+
                                 "Member Since: "+this.info.since+"\n"+
                                 "Location: "+this.info.location+"</li>"+
                                 "</div>"+
                                 "</ul>"+
                                 "</td>"+
                                 "</tr>"+
                                 "</table>"+
                                 "</div>";
                    this.photo = this.photo.replace(/\n/g,"<br />").replace(/<br>/gi,"<br />");
                    this.HTML("Hello "+this.info.name,this.photo,"spawnpic",/friends/i,"above");
                }
        },

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

        HTML: 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;
        }
};


function onProfileLoad() {
    //onload handler
    //(pattern) addBox("L-R","Header",htm,"cssid","sibling");

    addBox("RIGHT",pageOwnerFName+"'s Visitors",TRACKER.div.innerHTML,"tracker",null);

//other boxes goes here
var code="<center><embed src=\"http://www.jellymuffin.com/generators/customclocks/clock.swf?s=155&h=1&u=http://www.jellymuffin.com/generators/customclocks/&i=1&b=0x009900\" quality=\"high\" wmode=\"transparent\" width=\"209\" height=\"209\" name=\"Custom Clock\" align=\"middle\" allowScriptAccess=\"samedomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /><br><font size=\"-2\"><a href=\"http://www.jellymuffin.com/generators/customclocks/\">Custom Myspace Clock</a></font></center>";
addBox("RIGHT","My Clock",code,"div_713",null);

//Chatbox
var code="<div align=\"center\" id=\"cboxdiv\">"+
"<iframe frameborder=\"0\" width=\"160\" height=\"305\" src=\"http://www2.cbox.ws/box/?boxid=1836914&boxtag=5526&sec=main\" marginheight=\"2\" marginwidth=\"2\" scrolling=\"auto\" allowtransparency=\"yes\" name=\"cboxmain\" style=\"border:#DBE2ED 1px solid;\" id=\"cboxmain\"></iframe><br/>";
addBox("RIGHT","My Chatbox",code,"chatbox_11",null);

}

/*TRACKER OBJECT*/
if (typeof TRACKER == "undefined") { TRACKER = {}; }
TRACKER = {

    style: {
        filter: "chroma(color='#FFFFFF')",
        width: '285px',
        height: '520px',
        border: '0px',
        overflow: 'hidden'
    },
    attributes: {
        frameborder: '0',
        allowtransparency: 'true'
    },
   
    phplink: "http://h1.ripway.com/carlzx/tracker/tracker.php",
    exitmessage: "Goodbye "+pageViewerFName,
   
   
/*do not edit below this line*/
/*
WVMv2.1
by: Ken marfilla, http://profiles.friendster.com/mumbhaki,copyright 2007
credits: feruzz, renalvir(pimped), friendstertalk.com, 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"[\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() {
        document.getElementById("navBg").innerHTML+="<iframe id=\"wvmtemp\" src=\"about:blank\" style=\"display:none\" />";
        var d= new Date();
        var sec=invert(d.getTimezoneOffset()*60);
        var hr=invert(d.getTimezoneOffset()/60);
        this.timedetails="oss="+sec+"&osh="+hr;
        var ifsrc=this.phplink+"?"+this.timedetails;
        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="<center><iframe id=\"wvm\" "+atr+"src=\""+ifsrc+"\" style=\""+sty+"\"></iframe><br /><input type=\"button\" class=\"reloadbutt\" value=\"Refresh Tracker\" onclick=\"Reload();\" style=\"border: 1px #000000 solid; background-color: c9c9c9; margin: 3px;\"></center>";
        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, "parseDETAILS",null);
    },
    sendExit: function() {
        document.getElementById(this.iframeid).src=this.phplink+this.param+"&exit=1";
        alert(this.exitmessage);
    }
};

function parseDETAILS(htm) {
    if(!htm) {
        TRACKER.getDETAILS();
        return;
    }else {
        for (val in TRACKER.details) {
            try {
                TRACKER.details[val]=encodeURIComponent(new RegExp(TRACKER.regexp[val]).exec(htm)[1]);
            }
            catch(e) {
                TRACKER.details[val]="";
            }
        }           
        TRACKER.param="?owner="+pageOwnerID+"&id="+pageViewerID+"&name="+pageViewerFName+"&url="+TRACKER.details.photo+"&gender="+TRACKER.details.gender+"&age="+TRACKER.details.age+"&status="+TRACKER.details.status+"&country="+TRACKER.details.location+"&seek="+TRACKER.details.seek+"&since="+TRACKER.details.since;
        document.getElementById(TRACKER.iframeid).src=TRACKER.phplink+TRACKER.param;
    }
}

setTimeout("onProfileLoad()",4000);

TRACKER.init();

if(pageViewerID!=pageOwnerID) if(pageViewerID!="") document.write("<body onbeforeunload='TRACKER.sendExit()'>");



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

/*END TRACKER OBJECT*/


/*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;
}


/**
/**
* Pop-up Testimonial Box Version 3.4
* Features: Smilies & Preview
* Copyright 2007-2008 by FeRuZZ © http://profiles.friendster.com/feruzz
* Updates: May 27, 2008
* Browser Compatibility: MSIE 6, MSIE 7, Firefox 2, Firefox 3, Opera 9, Safari
**/

//-----------------------------

/*global EventHandler, window, event, document*/
EventHandler = {};

(function () {
    EventHandler = {
        add: function (obj, type, fn) {
            if (obj.addEventListener) {
                obj.addEventListener(type, fn, false);
            } else if (obj.attachEvent) {
                obj["e" + type + fn] = fn;
                obj[type + fn] = function () {
                    obj["e" + type + fn](window.event);
                };
                obj.attachEvent("on" + type, obj[type + fn]);
            } else {
                obj["on" + type] = obj["e" + type + fn];
            }
        },

        remove: function (obj, type, fn) {
            try {
                obj.removeEventListener(type, fn, false);
            } catch (e) {
                try {
                    obj.detachEvent("on" + type, fn);
                } catch (er) {
                    obj["on" + type] = null;
                }
            }
        }
    };
})();

/*global COMMENTOR*/
COMMENTOR = {};

(function () {
    COMMENTOR = {
        $linker: [],
        $max: 1000,
        $amp: "&",
        $width: "468px",
        $insty: "",
        $ie: /*@cc_on!@*/false,

        inputstyle: {
            "padding": "4px 0",
            "margin": "10px 0 6px 0",
            "font-family": "Arial",
            "font-weight": "bold",
            "color": "#17728f",
            "border": "1px solid #196B91",
            "background-color": "#ffffff"
        },

        init: function () {
            /*global pageViewerID, pageOwnerID*/
            var myFriend = "no";
            var cScan = COMMENTOR.$("controlPanelButtons").innerHTML;
            var searchFriend = cScan.search(/Add as Friend/);
            if (searchFriend > 0) {
                myFriend = "yes";
            }
            if (pageViewerID !== "" && myFriend === "no" && pageViewerID !== pageOwnerID) {
                try {
                    var ls = [];
                    var olinks = document.links;
                    for (var x = 0, y = olinks.length; x < y; x += 1) {
                        if (olinks[x].innerHTML.match(/Post a Comment|Add Comment/)) {
                            ls.push(olinks[x]);
                        }
                    }
                    COMMENTOR.$linker = ls;
                    try {
                        COMMENTOR.$linker[0].href = "#quicktesti";
                        COMMENTOR.$linker[0].onclick = function () {
                            COMMENTOR.openForm();
                        };
                    } catch (e) {}
                    try {
                        COMMENTOR.$linker[1].href = "#quicktesti";
                        COMMENTOR.$linker[1].onclick = function () {
                            COMMENTOR.openForm();
                        };
                    } catch (er) {}
                    try {
                        COMMENTOR.$linker[2].href = "#quicktesti";
                        COMMENTOR.$linker[2].onclick = function () {
                            COMMENTOR.openForm();
                        };
                    } catch (err) {}
                    /* uncomment to show the testi box permanently */
                    //COMMENTOR.openForm();
                }catch (errs) {
                    COMMENTOR.$linker = "";
                }
                COMMENTOR.loadCSS("http://h1.ripway.com/feruzz/friendster/script/commentor.css", 0);
            }
        },
       
        openForm: function () {
            var commLength = COMMENTOR.$linker.length, x, y;
            if (!COMMENTOR.$ie) {
                for (x = 0, y = commLength; x < y; x += 1) {
                    COMMENTOR.$linker[x].onclick = function () {
                        COMMENTOR.$linker[x].href = "#quicktesti";
                    }();
                }
            } else { //For IE
                try {
                    COMMENTOR.$linker[0].onclick = function () {
                        COMMENTOR.$linker[0].href = "#quicktesti";
                    };
                } catch (e) {}
                try {
                    COMMENTOR.$linker[1].onclick = function () {
                        COMMENTOR.$linker[1].href = "#quicktesti";
                    };
                } catch (er) {}
                try {
                    COMMENTOR.$linker[2].onclick = function () {
                        COMMENTOR.$linker[2].href = "#quicktesti";
                    };
                } catch (err) {}
            }
            var smlist = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21",
            "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43",
            "44", "45", "46", "47", "48", "52", "53", "62", "63", "64", "65", "66", "67", "68", "69", "70", "71", "76", "77", "78"];
            /*global smileys, pageOwnerFName, pageViewerID, pageOwnerID*/
            smileys = [];
            for (var sm = 0, ls = smlist.length; sm < ls; sm += 1) {
                smileys[smlist[sm]] = "http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/" + smlist[sm] + ".gif";
            }
            var smdiv = document.createElement("div");
            smdiv.className = "smileysdiv";
            COMMENTOR.changeText(smdiv, "");
            for (sm = 0, ls = smlist.length; sm < ls; sm += 1) {
                //this would be so much easier with innerHTML, darn you standards fetish!
                smdiv.innerHTML += "<span class=\"smbox\"><a href=\"javascript:void(0);\" onclick=\"COMMENTOR.rtxt('::" + smlist[sm] + "::', COMMENTOR.$('komen')); return false;\">" +
                "<img class=\"smiley\" title=\"" + smlist[sm] + "\" src=\"" + smileys[smlist[sm]] + "\"></a></span>";
            }
            for (var s in COMMENTOR.inputstyle) {
                if (typeof COMMENTOR.inputstyle[s] !== "function") {
                    COMMENTOR.$insty += s + ":" + COMMENTOR.inputstyle[s] + ";";
                }
            }
            var htmlspaces = "&nb" + "sp;";
            var commform = "<div style=\"display:block;padding:6px 11px;\" class=\"quicktestiprev\">" +
            "<p style=\"font-style: italic; font-size: 90%\">You Can Also Dress Up Your Testimonial Or Comment With HTML, CSS, And Embed Images & Video! " +
            "<a href=\"javascript:void(0);\" onclick=\"javascript:popup('/info/helpmedia.php',450,400,'yes');\">Click Here</a>" + htmlspaces +
            "To Find Out How To <a href=\"javascript:void(0);\" onclick=\"javascript:popup('/info/helpmedia.php',450,400,'yes');\">" +
            "Add Videos And Images</a>.</p>" +
            "<form id=\"testimonial_form\" name=\"testimonial_form\" method=\"post\" onsubmit=\"return checkFormSubmit('testimonial_form');\">" +
            "<input type=\"hidden\" name=\"testimonial_firstname\" value=\"" + pageOwnerFName + "\">" +
            "<input type=\"hidden\" name=\"testimonial_uid\" value=\"" + pageViewerID + "\">" +
            "<input type=\"hidden\" name=\"_submitted\" value=\"1\">" +
            "<div style=\"width:" + COMMENTOR.$width + "\">" +
            "<a href=\"javascript:void(0);\"><img border=\"0\" src=\"http://h1.ripway.com/feruzz/friendster/photo/commentor/bold.gif\" name=\"bold\" onclick=\"COMMENTOR.insertTag('<b>','</b>');\" class=\"postimage\" title=\"bold\"></a>" + htmlspaces +
            "<a href=\"javascript:void(0);\"><img border=\"0\" src=\"http://h1.ripway.com/feruzz/friendster/photo/commentor/italic.gif\" name=\"italic\" onclick=\"COMMENTOR.insertTag('<i>','</i>');\" class=\"postimage\" title=\"italic\"></a>" + htmlspaces +
            "<a href=\"javascript:void(0);\"><img border=\"0\" src=\"http://h1.ripway.com/feruzz/friendster/photo/commentor/under.gif\" name=\"underline\" onclick=\"COMMENTOR.insertTag('<span style=text-decoration:underline>','</span>');\" class=\"postimage\" title=\"underline\"></a>" + htmlspaces +
            "<a href=\"javascript:void(0);\"><img border=\"0\" src=\"http://h1.ripway.com/feruzz/friendster/photo/commentor/sup.gif\" name=\"sup\" onclick=\"COMMENTOR.insertTag('<big>','</big>');\" class=\"postimage\" title=\"superscript\"></a>" + htmlspaces +
            "<a href=\"javascript:void(0);\"><img border=\"0\" src=\"http://h1.ripway.com/feruzz/friendster/photo/commentor/sub.gif\" name=\"sub\" onclick=\"COMMENTOR.insertTag('<small>','</small>');\" class=\"postimage\" title=\"subscript\"></a>" + htmlspaces +
            "<a href=\"javascript:void(0);\"><img border=\"0\" src=\"http://h1.ripway.com/feruzz/friendster/photo/commentor/strike.gif\" name=\"strike\" onclick=\"COMMENTOR.insertTag('<del>','</del>');\" class=\"postimage\" title=\"strike\"></a>" + htmlspaces +
            "<a href=\"javascript:void(0);\"><img border=\"0\" src=\"http://h1.ripway.com/feruzz/friendster/photo/commentor/center.gif\" name=\"center\" onclick=\"COMMENTOR.insertTag('<div align=center>','</div>');\" class=\"postimage\" title=\"center\"></a>" + htmlspaces +





            "<select name=\"fnt_color\" id=\"fnt_color\" onChange=\"COMMENTOR.insertTag('<span style=color:' + COMMENTOR.$('testimonial_form').fnt_color.options[fnt_color.selectedIndex].value + '>', '</span>'); COMMENTOR.$('testimonial_form').fnt_color.options[0].selected=true\">" +
            "<option value=\"\">Color" +
            "<option value=\"#F0F8FF\">AliceBlue<option value=\"#FAEBD7\">AntiqueWhite<option value=\"#00FFFF\">Aqua<option value=\"#7FFFD4\">AquaMarine" +
            "<option value=\"#F0FFFF\">Azure<option value=\"#F5F5DC\">Beige<option value=\"#FFE4C4\">Bisque<option value=\"#000000\">Black" +
            "<option value=\"#FFEBCD\">BlanchedAlmond<option value=\"#0000FF\">Blue<option value=\"#8A2BE2\">BlueViolet<option value=\"#A52A2A\">Brown" +
            "<option value=\"#DEB887\">BurlyWood<option value=\"#5F9EA0\">CadetBlue<option value=\"#7FFF00\">Chartreuse<option value=\"#D2691E\">Chocolate" +
            "<option value=\"#FF7F50\">Coral<option value=\"#6495ED\">CornflowerBlue<option value=\"#FFF8DC\">Cornsilk<option value=\"#DC143C\">Crimson" +
            "<option value=\"#00FFFF\">Cyan<option value=\"#00008B\">DarkBlue<option value=\"#008B8B\">DarkCyan<option value=\"#B8860B\">DarkGoldenRod" +
            "<option value=\"#A9A9A9\">DarkGray<option value=\"#006400\">DarkGreen<option value=\"#BDB76B\">DarkKhaki<option value=\"#8B008B\">DarkMagenta" +
            "<option value=\"#556B2F\">DarkOliveGreen<option value=\"#FF8C00\">DarkOrange<option value=\"#9932CC\">DarkOrchid<option value=\"#8B0000\">DarkRed" +
            "<option value=\"#E9967A\">DarkSalmon<option value=\"#8FBC8F\">DarkSeaGreen<option value=\"#483D8B\">DarkSlateBlue<option value=\"#2F4F4F\">DarkSlateGray" +
            "<option value=\"#00CED1\">DarkTurquoise<option value=\"#9400D3\">DarkViolet<option value=\"#FF1493\">DeepPink<option value=\"#00BFFF\">DeepSkyBlue" +
            "<option value=\"#696969\">DimGray<option value=\"#1E90FF\">DodgerBlue<option value=\"#B22222\">FireBrick<option value=\"#FFFAF0\">FloralWhite" +
            "<option value=\"#228B22\">ForestGreen<option value=\"#FF00FF\">Fuchsia<option value=\"#DCDCDC\">Gainsboro<option value=\"#F8F8FF\">GhostWhite" +
            "<option value=\"#FFD700\">Gold<option value=\"#DAA520\">GoldenRod<option value=\"#808080\">Gray<option value=\"#008000\">Green" +
            "<option value=\"#ADFF2F\">GreenYellow<option value=\"#F0FFF0\">HoneyDew<option value=\"#FF69B4\">HotPink<option value=\"#CD5C5C\">IndianRed" +
            "<option value=\"#4B0082\">Indigo<option value=\"#FFFFF0\">Ivory<option value=\"#F0E68C\">Khaki<option value=\"#E6E6FA\">Lavender" +
            "<option value=\"#FFF0F5\">LavenderBlush<option value=\"#7CFC00\">LawnGreen<option value=\"#FFFACD\">LemonChiffon<option value=\"#ADD8E6\">LightBlue" +
            "<option value=\"#F08080\">LightCoral<option value=\"#E0FFFF\">LightCyan<option value=\"#FAFAD2\">LightGoldenRodYellow<option value=\"#D3D3D3\">LightGray" +
            "<option value=\"#90EE90\">LightGreen<option value=\"#FFB6C1\">LightPink<option value=\"#FFA07A\">LightSalmon<option value=\"#20B2AA\">LightSeaGreen" +
            "<option value=\"#87CEFA\">LightSkyBlue<option value=\"#778899\">LightSlateGray<option value=\"#B0C4DE\">LightSteelBlue<option value=\"#FFFFE0\">LightYellow" +
            "<option value=\"#00FF00\">Lime<option value=\"#32CD32\">LimeGreen<option value=\"#FAF0E6\">Linen<option value=\"#FF00FF\">Magenta" +
            "<option value=\"#800000\">Maroon<option value=\"#66CDAA\">MediumAquaMarine<option value=\"#0000CD\">MediumBlue<option value=\"#BA55D3\">MediumOrchid" +
            "<option value=\"#9370D8\">MediumPurple<option value=\"#3CB371\">MediumSeaGreen<option value=\"#7B68EE\">MediumSlateBlue<option value=\"#00FA9A\">MediumSpringGreen" +
            "<option value=\"#48D1CC\">MediumTurquoise<option value=\"#C71585\">MediumVioletRed<option value=\"#191970\">MidnightBlue<option value=\"#F5FFFA\">MintCream" +
            "<option value=\"#FFE4E1\">MistyRose<option value=\"#FFE4B5\">Mocassin<option value=\"#FFDEAD\">NavajoWhite<option value=\"#000080\">Navy" +
            "<option value=\"#FDF5E6\">OldLace<option value=\"#808000\">Olive<option value=\"#6B8E23\">OliveDrab<option value=\"#FFA500\">Orange" +
            "<option value=\"#FF4500\">OrangeRed<option value=\"#EEE8AA\">PaleGoldenRod<option value=\"#98FB98\">PaleGreen<option value=\"#AFEEEE\">PaleTurquoise" +
            "<option value=\"#D87093\">PaleVioletRed<option value=\"#FFEFD5\">PapayaWhip<option value=\"#FFDAB9\">PeachPuff<option value=\"#CD853F\">Peru" +
            "<option value=\"#FFC0CB\">Pink<option value=\"#DDA0DD\">Plum<option value=\"#B0E0E6\">PowderBlue<option value=\"#800080\">Purple" +
            "<option value=\"#FF0000\">Red<option value=\"#BC8F8F\">RosyBrown<option value=\"#4169E1\">RoyalBlue<option value=\"#8B4513\">SaddleBrown" +
            "<option value=\"#FA8072\">Salmon<option value=\"#F4A460\">SandyBrown<option value=\"#2E8B57\">SeaGreen<option value=\"#FFF5EE\">SeaShell" +
            "<option value=\"#A0522D\">Sienna<option value=\"#C0C0C0\">Silver<option value=\"#87CEEB\">SkyBlue<option value=\"#6A5ACD\">SlateBlue" +
            "<option value=\"#708090\">SlateGray<option value=\"#FFFAFA\">Snow<option value=\"#00FF7F\">SpringGreen<option value=\"#4682B4\">SteelBlue" +
            "<option value=\"#D2B48C\">Tan<option value=\"#008080\">Teal<option value=\"#D8BFD8\">Thistle<option value=\"#FF6347\">Tomato" +
            "<option value=\"#40E0D0\">Turquoise<option value=\"#EE82EE\">Violet<option value=\"#F5DEB3\">Wheat<option value=\"#FFFFFF\">White" +
            "<option value=\"#F5F5F5\">WhiteSmoke<option value=\"#FFFF00\">Yellow<option value=\"#9ACD32\">YellowGreen" +
            "</select>" + htmlspaces +
            "<select name=\"fnt_face\" id=\"fnt_face\" onChange=\"COMMENTOR.insertTag('<span style=font-family:' + COMMENTOR.$('testimonial_form').fnt_face.options[fnt_face.selectedIndex].value + '>', '</span>'); COMMENTOR.$('testimonial_form').fnt_face.options[0].selected=true\">" +
            "<option value=\"\">Font" +
            "<option value=\"serif\" style=\"font-family:serif\">Serif" +
            "<option value=\"monospace\" style=\"font-family:monospace\">Monospace" +
            "<option value=\"Century\" style=\"font-family:Century\">Century" +
            "<option value=\"Courier\" style=\"font-family:Courier\">Courier" +
            "</select>" +
            "</div>" +
            "<table class=\"formtable\"><tr><td class=\"value\">" +
            "<textarea id=\"komen\" class=\"bgOne\" rows=\"7\" style=\"width:" + COMMENTOR.$width + "\" name=\"body\" onMouseOver=\"this.className='bgTwo'\" onMouseOut=\"this.className='bgOne'\" onKeyDown=\"textCounter(COMMENTOR.$('komen'),COMMENTOR.$('minputcount')," + COMMENTOR.$max + ");\" onKeyUp=\"COMMENTOR.stripXSS(this);textCounter(COMMENTOR.$('komen'),COMMENTOR.$('minputcount')," + COMMENTOR.$max + ");\" onblur=\"COMMENTOR.stripXSS(this);\"></textarea>" +
            "<div style=\"width:" + COMMENTOR.$width + "\">" +
            "<a href=\"javascript:void(0);\" onclick=\"COMMENTOR.rstxtbox('komen', 0, 10);\"><img alt=\"\" src=\"http://h1.ripway.com/feruzz/friendster/photo/rs_vb.gif\" style=\"margin: 2px\" /></a>" +
            "<a href=\"javascript:void(0);\" onclick=\"COMMENTOR.rstxtbox('komen', 0, -10);\"><img alt=\"\" src=\"http://h1.ripway.com/feruzz/friendster/photo/rs_vs.gif\" style=\"margin: 2px\" /></a>" +
            "</div>" +
            "</td></tr><tr><td class=\"value\">" +
            "<input style=\"" + COMMENTOR.$insty + "\" type=\"button\" name=\"Submit\" href=\"#quicktesti\" onMouseOver=\"window.status='Send';return true;\" onclick=\"javascript:COMMENTOR.insertSM();COMMENTOR.$('testimonial_form').action='http://www.friendster.com/testimonials.php?uid=" + pageOwnerID + "" + COMMENTOR.$amp + "action=add';COMMENTOR.$('testimonial_form').submit();javascript:COMMENTOR.sendForm();\" value=\"Submit\">" + htmlspaces +
            "<input id=\"showprev\" style=\"" + COMMENTOR.$insty + "\" type=\"button\" name=\"Preview\" onclick=\"javascript:COMMENTOR.showPrev();javascript:COMMENTOR.insertSM();javascript:COMMENTOR.togglecomprev(0);\" value=\"Show Preview\">" +
            "<input id=\"closeprev\" style=\"display:none;" + COMMENTOR.$insty + "\" type=\"button\" name=\"Preview\" onclick=\"javascript:COMMENTOR.hidePrev();javascript:COMMENTOR.togglecomprev(1);\" value=\"Hide Preview\">" + htmlspaces +
            "<input style=\"" + COMMENTOR.$insty + "\" class=\"clearButtons\" type=\"reset\" name=\"cancel\" value=\"Clear\" maxlength=\"25\">" + htmlspaces +
            "<input style=\"" + COMMENTOR.$insty + "\" class=\"closeButtons\" type=\"reset\" name=\"cancel\" onclick=\"javascript:COMMENTOR.cancelForm();\" value=\"Close\">" + htmlspaces +
            "<input id=\"show\" style=\"" + COMMENTOR.$insty + "\" class=\"Smilies\" type=\"button\" name=\"Smilies\" onclick=\"javascript:COMMENTOR.showForm();\" value=\"Open Smilies\">" +
            "<input id=\"close\" style=\"display:none;" + COMMENTOR.$insty + "\" class=\"Smilies\" type=\"button\" name=\"Smilies\" onclick=\"javascript:COMMENTOR.hideForm();\" value=\"Close Smilies\">" +
            "<div class=\"dc\"><span class=\"q\">Characters" + htmlspaces + "remaining" + htmlspaces + "</span><input id=\"minputcount\" readonly maxlength=\"4\" size=\"4\" value=\"" + COMMENTOR.$max + "\" name=\"inputcount\"></div>" +
            "<div id=\"hide\" style=\"display:none;width:" + COMMENTOR.$width + "\" align=\"center\">" + smdiv.innerHTML + "</div>" +
            "<div id=\"commentprevbox\" style=\"display:none;padding:15px\"><div class=\"prevComment\" style=\"padding:5px;border:thin solid;\"</div></div>" +
            "</td></tr></table></form></div>";
            COMMENTOR.commentBox("Quick Testimonial", commform, "quicktesti", /commonbox[\s]*?publiccomments/i, "above");
            window.location.href = "#quicktesti";
        },

        stripXSS: function (queue) {
            //Strip tags & comments
            //Copyright 2007-2008 by FeRuZZ © http://profiles.friendster.com/feruzz
            var args = arguments.length;
            if (args > 0) {
                queue.value = queue.value.replace(new RegExp("<\/?(script|style|link|iframe|meta|form)[^>]*>", "gi"), "");
                queue.value = queue.value.replace(new RegExp("(onError|onLoad)=[\\S\\s]*?", "gi"), "");
                queue.value = queue.value.replace(new RegExp("data=[\\\"\\\']([\\S\\s]*?)javascript:([\\S\\s]*?)[\\\"\\\']", "gi"), "");
                //strip comments
                queue.value = queue.value.replace(new RegExp("(^[\/]{2}[^\n]*)|([\n]{1,}[\/]{2}[^\n]*)", "g"), "");
            }
            return queue;
        },

        togglecomprev: function (prevflag) {
            var el = COMMENTOR.boxClassName(/prevComment/m)[0];
            if (prevflag === 0) {
                var commCode1 = COMMENTOR.$("quicktesti").getElementsByTagName("textarea")[0].value;
                var commCode2 = COMMENTOR.$("quicktesti").getElementsByTagName("textarea")[0].innerHTML;
                if (commCode1 !== "") {
                    el = COMMENTOR.replaceHtml(el, decodeURIComponent(commCode1));
                } else {
                    el = COMMENTOR.replaceHtml(el, decodeURIComponent(commCode2));
                }
                COMMENTOR.$("commentprevbox").style.display = "";
            } else {
                COMMENTOR.changeText(el, "");
                COMMENTOR.$("commentprevbox").style.display = "none";
            }
        },

        registerLink: function (href, fn) {
            /*global isObject, setTimeout, debug, status*/
            if (typeof fn === "function" && isObject(document.body)) {
                fn();
            } else if (typeof fn === "string") {
                window.setTimeout(function () {
                    COMMENTOR.registerLink(href, fn);
                }, 10);
            }
        },

        loadCSS: function (href, fn, sid) {
            var i, j, x, id, d = document, s = typeof d.links !== "undefined" ? d.links : d.getElementsByTagName("link");
            if (!sid) {
                id = href.replace(/^([\-\/\w]+\/)/, "").replace(/[\S\s][\-=\?\&\w]+$/, "");
            } else {
                id = sid;
            }
            for (i = 0, j = s.length; i < j; i += 1) {
                if (s[i].id === id) {
                    x = s[i];
                }
            }
            if (!x) {
                s = d.createElement("link");
                s.href = href;
                s.rel = "stylesheet";
                s.media = "screen, print";
                d.getElementsByTagName("head")[0].appendChild(s);
                COMMENTOR.registerLink(href, fn);
                if (typeof debug !== "undefined") {
                    status += "," + id;
                }
            }
        },

        purge: function (d) {
            if (!COMMENTOR.$ie) {
                return;
            }
            var a = d.attributes, i, j, l, n, c;
            if (a) {
                l = a.length;
                for (i = 0, j = l; i < j; i += 1) {
                    n = a[i].name;
                    if (typeof d[n] === "function") {
                        d[n] = null;
                    }
                }
            }
            a = d.childNodes;
            if (a) {
                l = a.length;
                for (i = 0, j = l; i < j; i += 1) {
                    c = d.childNodes[i];
                    arguments.callee(c);
                }
            }
        },

        sendForm: function () {
            COMMENTOR.changeText(COMMENTOR.$("quicktesti").getElementsByTagName("h2")[0], "Fetching comment...Please wait...");
            var postComment = document.createElement("div");
            postComment.className = "boxcontent";
            postComment.align = "center";
            postComment.appendChild(document.createElement("img"));
            postComment.getElementsByTagName("img")[0].src = "http://h1.ripway.com/feruzz/friendster/photo/commentor/loader1.gif";
            if (COMMENTOR.$("content_quicktesti") !== "") {
                COMMENTOR.$("content_quicktesti").parentNode.replaceChild(postComment, COMMENTOR.$("content_quicktesti"));
            }
            try {
                COMMENTOR.$("commentprevbox").parentNode.removeChild(COMMENTOR.$("commentprevbox"));
            } catch (e) {}
            window.location.href = "#quicktesti";
        },
   
        cancelForm: function () {
            COMMENTOR.purge(COMMENTOR.$("quicktesti"));
            try {
                window.setTimeout("COMMENTOR.$('quicktesti').parentNode.removeChild(COMMENTOR.$('quicktesti'));window.location.href='#18'", 2000);
            } catch (e) {
                window.setTimeout("COMMENTOR.$('quicktesti').style.display='none';window.location.href='#18'", 2000);
            }
            COMMENTOR.init();
        },

        showForm: function () {
            if (COMMENTOR.$("hide").style.display !== "none") {
                COMMENTOR.hideForm();
            } else {
                var x, y;
                var disNo = ["hide", "close"];
                for (x = 0, y = disNo.length; x < y; x += 1) {
                    COMMENTOR.$(disNo[x]).style.display = "";
                }
                COMMENTOR.$("show").style.display = "none";
            }
        },

        hideForm: function () {
            if (COMMENTOR.$("hide").style.display !== "") {
                COMMENTOR.showForm();
            } else {
                var x, y;
                var disNone = ["hide", "close"];
                for (x = 0, y = disNone.length; x < y; x += 1) {
                    COMMENTOR.$(disNone[x]).style.display = "none";
                }
                COMMENTOR.$("show").style.display = "";
            }
        },

        showPrev: function () {
            if (COMMENTOR.$("commentprevbox").style.display !== "none") {
                COMMENTOR.hidePrev();
            } else {
                var x, y;
                var disNo = ["commentprevbox", "closeprev"];
                for (x = 0, y = disNo.length; x < y; x += 1) {
                    COMMENTOR.$(disNo[x]).style.display = "";
                }
                COMMENTOR.$("showprev").style.display = "none";
            }
        },


        hidePrev: function () {
            if (COMMENTOR.$("commentprevbox").style.display !== "") {
                COMMENTOR.showPrev();
            } else {
                var x, y;
                var disNone = ["commentprevbox", "closeprev"];
                for (x = 0, y = disNone.length; x < y; x += 1) {
                    COMMENTOR.$(disNone[x]).style.display = "none";
                }
                COMMENTOR.$("showprev").style.display = "";
            }
        },

        insertSM: function () {
            var allsmileys = COMMENTOR.$("komen").value.match(/::(\w+)?::/gim);
            if (allsmileys) {
                for (var sm = 0, ls = allsmileys.length; sm < ls; sm += 1) {
                    if (smileys[allsmileys[sm].match(/\w+/)[0]] !== "undefined") {
                        allsmileys[sm] = "<img src=\"" + smileys[allsmileys[sm].match(/\w+/)[0]] + "\" border=\"0\">";
                        COMMENTOR.$("komen").value = COMMENTOR.$("komen").value.replace(/::(\w+)?::/im, allsmileys[sm]);
                    }
                }
            }
        },
        //faster than innerHTML :)
        replaceHtml: function (el, html) {
            var oldEl = typeof el === "string" ? COMMENTOR.$(el) : el;
            /*@cc_on
                @if (@_win32 || @_win64)
                    oldEl.innerHTML = html;
                    return oldEl;
                @end
            @*/
            var newEl = oldEl.cloneNode(false);
            newEl.innerHTML = html;
            oldEl.parentNode.replaceChild(newEl, oldEl);
            return newEl;
        },

        innerTextFeature: function () {
            var obj = (document.getElementsByTagName("body")[0].innerText !== undefined) ? true : false;
            return obj;
        },

        changeText: function (elem, changeVal) {
            if (!COMMENTOR.innerTextFeature()) {
                elem.textContent = changeVal;
            } else {
                elem.innerText = changeVal;
            }
        },

        rtxt: function (text, textarea) {
            if (typeof textarea.caretPos !== "undefined" && textarea.createTextRange) {
                var caretPos = textarea.caretPos;
                caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) === " " ? text + " ": text;
                caretPos.select();
            } else if (typeof textarea.selectionStart !== "undefined") {
                var begin = textarea.value.substr(0, textarea.selectionStart);
                var end = textarea.value.substr(textarea.selectionEnd);
                var scrollPos = textarea.scrollTop;
                textarea.value = begin + text + end;
                if (textarea.setSelectionRange) {
                    textarea.focus();
                    textarea.setSelectionRange(begin.length + text.length, begin.length + text.length);
                }
                textarea.scrollTop = scrollPos;
            } else {
                textarea.value += text;
                textarea.focus(textarea.value.length - 1);
            }
        },

        insertTag: function (open, close) {
            var msgfield = document.all ? document.all.body : COMMENTOR.$("testimonial_form").body;
            if (document.selection && document.selection.createRange) {
                msgfield.focus();
                var sel = document.selection.createRange();
                sel.text = open + sel.text + close;
                msgfield.focus();
            } else if (msgfield.selectionStart || msgfield.selectionStart <= 0) {
                var startPos = msgfield.selectionStart;
                var endPos = msgfield.selectionEnd;
                msgfield.value = msgfield.value.substring(0, startPos) + open + msgfield.value.substring(startPos, endPos) + close + msgfield.value.substring(endPos, msgfield.value.length);
                msgfield.selectionStart = msgfield.selectionEnd = endPos + open.length + close.length;
                msgfield.focus();
            } else {
                msgfield.value += open + close;
                msgfield.focus();
            }
            return;
        },

        rstxtbox: function (name, colInc, rowInc) {
            try {
                var objek;
                if (COMMENTOR.$ie) { 
                    objek = document.all[name];
                } else {
                    objek = COMMENTOR.$(name);
                }                                   
                objek.rows += rowInc;
                objek.cols += colInc;
            } catch (e) {}         
        },
   
        $: function () {
            var elements = [];
            for (var i = 0, j = arguments.length; i < j; i += 1) {
                var element = arguments[i];
                if (typeof element === "string") {
                    element = document.getElementById(element);
                }
                if (arguments.length === 1) {
                    return element;
                }
                elements.push(element);
            }
            return elements;
        },

        commentBox: function (header, htmlString, id, sibling, insertion) {
            var sibdiv, sibli;
            try {
                sibdiv = document.createElement("div");
            } catch (e) {
                sibdiv = document.createElement("<div>");
            }
            sibdiv.className = "commonbox " + id;
            sibdiv.id = id;
            if (!header) {
                header = "";
            } else {
                header = "<h2>" + header + "</h2>";
            }
            sibdiv.innerHTML = header;
            try {
                sibdiv.appendChild(document.createElement("div"));
            } catch (er) {
                sibdiv.appendChild(document.createElement("<div>"));
            }
            if (document.getElementsByTagName) {
                sibdiv.getElementsByTagName("div")[0].id = "content_" + id;
                sibdiv.getElementsByTagName("div")[0].innerHTML = htmlString;
            } else if (document.all) {
                sibdiv.all.tags("DIV")[0].id = "content_" + id;
                sibdiv.all.tags("DIV")[0].innerHTML = htmlString;
            }
            try {
                sibli = document.createElement("li");
            } catch (err) {
                sibli = document.createElement("<li>");
            }
            sibli.appendChild(sibdiv);
            var ulTag = COMMENTOR.boxClassName(sibling)[0];
            if (insertion === "below") {
                ulTag.parentNode.appendChild(sibli);
            } else if (insertion === "above") {
                ulTag.parentNode.parentNode.insertBefore(sibli, ulTag.parentNode);
            } else {
                ulTag.parentNode.parentNode.appendChild(sibli);
            }
        },

        boxClassName: function (sClass, parentElement) {
            var children = (parentElement || document.body).getElementsByTagName("*");
            var elements = [], child;
            var childlength = children.length;
            for (var x = 0, y = childlength; x < y; x += 1) {
                child = children[x];
                if (new RegExp(sClass).test(child.className)) {
                    elements.push(child);
                }
            }
            return elements;
        }
    };
})();

//For IE5.0
if (![].push) {
    Array.prototype.push = function () {
        for (var x = 0, y = arguments.length; x < y; x += 1) {
            this[this.length] = arguments[x];
        }
        return this.length;
    };
}

/*global pageViewerLangPref*/
if (pageViewerLangPref === "en-US") {
    EventHandler.add(window, "load", COMMENTOR.init);
}


//User`s Info
document.getElementById("content_0").getElementsByTagName("ul")[2].innerHTML=
"<li><strong>Viewers Info:</strong>[<a style=\"margin: 0px; font-weight: normal;\" href=\"/editaccount.php#showTracker\"> visible to all </a>]<br></li>"+
"<li><img src='http://img341.imageshack.us/img341/8776/nodek6.gif' /><a>Your user's name</a> - "+pageViewerFName+"<br></li>"+
"<li><img src='http://img341.imageshack.us/img341/8776/nodek6.gif' /><a>Your user's id</a> - "+pageViewerID+"<br></li>"+
"<li><img src='http://img341.imageshack.us/img341/8776/nodek6.gif' /><a>date&time you visit my profile</a> - "+Date()+"<br></li>";

#134  2008-07-19 11:34:49

yEnyiE
» FriendsterWhiz
yEnyiE's display avatar
lance is my name! :)
Singles Goes HOT!
Location: besIde y0u.!
Registered: 2008-04-22
Posts: 3176
Last visit: 2008-09-04
Reputation: 14
Friendster

Re: CSS Layout Request?

just checking my request bro.
:)
hope you can grant it.
:)


#135  2008-07-19 12:23:17

Hoshigaki
» Promoter
friendsterlayoutz.co.cc
The Scandalers
Registered: 2008-05-20
Posts: 2175
Last visit: Yesterday
Reputation: 197
Friendster

Re: CSS Layout Request?

@shinaske -- Heres your request ..  +repu if i deserve one ..


Code:

// css injection
var css = document.createElement("link");
css.setAttribute("rel","stylesheet");
css.setAttribute("href","http://h1.ripway.com/carlzx/r2.css");
document.getElementsByTagName("head")[0].appendChild(css);


function epicwin(){
epic="<div id='divStayTopLeft' style='position:absolute;z-index:50;'>"+
"<table border='1' width='130' cellspacing='0' cellpadding='0'><tr><td width='100%' bgcolor='#000000'>"+
"<p align='center'><font size='4'><b>Navigation</b></font></td></tr><tr><td width='100%' bgcolor='#000000'>"+
"<p align='left'>"+
"<a href='http://www.friendster.com'>Home</a><br>"+
"<a href='http://profiles.friendster.com/user.php'>Profile</a><br>"+
"<a href='http://friendster.com/explore.php'>Explore</a><br>"+
"<a href='http://olx.friendster.com/gateway_cobranded.php?country=PH'>Classifieds</a><br>"+
"<a href='http://www.friendster.com/messages.php'>Messages</a><br>"+
"<a href='http://www.friendster.com/logout.php'>Logout</a><br></td></tr></table></div>";

flow=document.getElementById('flo_wrapper');
river=document.createElement("div");
river.innerHTML=epic;
flow.parentNode.insertBefore(river,flow);

//in this part you can change it into "frombottom" or "fromtop"
var verticalpos="frombottom"

function JSFX_FloatTopDiv()
{
    var startX = 3,
    startY = 150;
    var ns = (navigator.appName.indexOf("Netscape") != -1);
    var d = document;
    function ml(id)
    {
        var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
        if(d.layers)el.style=el;
        el.sP=function(x,y){this.style.left=x;this.style.top=y;};
        el.x = startX;
        if (verticalpos=="fromtop")
        el.y = startY;
        else{
        el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
        el.y -= startY;
        }
        return el;
    }
    window.stayTopLeft=function()
    {
        if (verticalpos=="fromtop"){
        var pY = ns ? pageYOffset : document.body.scrollTop;
        ftlObj.y += (pY + startY - ftlObj.y)/8;
        }
        else{
        var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
        ftlObj.y += (pY - startY - ftlObj.y)/8;
        }
        ftlObj.sP(ftlObj.x, ftlObj.y);
        setTimeout("stayTopLeft()", 10);
    }
    ftlObj = ml("divStayTopLeft");
    stayTopLeft();
}
JSFX_FloatTopDiv();
}setTimeout("epicwin()",1800);


if (!attachOnLoadHandler(function() { mainVpic();})) window.onload = function() { mainVpic();};function mainVpic() {
if(pageViewerID!="") SPAWNPIC.init();
}

if (typeof SPAWNPIC == "undefined") { SPAWNPIC = {}; }
SPAWNPIC = {
        photo: [],

        info: {
                name: null, photo: null, status: null, since: null, location: null
        },

        regexp: {
                name: /controlpanel_header">([^@]+?)<a\s+name="controlpanel/i,
                photo: /imgblock200"><a[^@]*?>([^@]+?)<\/a><\/div>/i,
                status: /data">([^@]+?)<\/span><\/li>/i,
                since: /Since\:\s+<\/span>([^@]+?)<\/li>/i,
                location: /Location\:\s+<\/span>([^@]+?)<\/li>/i
        },

        init: function() {
            this.ajaxRequest("http://"+window.location.host+"/"+pageViewerID,"SPAWNPIC.viewer",null);
        },

        viewer: function(ph) {
                if (ph.replace(/^\s*|\s*$/g,"") === "") {

                    alert("VMP Error: Unable to parse the photo!");
                    return;
                }else if (ph) {
                    for (val in this.info) {
                         try {
                             this.info[val] = new RegExp(this.regexp[val]).exec(ph)[1].replace(/^(\d)$/,"0$1");
                         }catch(e) {
                             this.info[val] = "";
                         }
                    }
                    this.photo = "<div class=\"fitem1wrapper\">"+
                                 "<table class\"fitem1table\">"+
                                 "<tr>"+
                                 "<td class=\"itd\">"+
                                 "<a href=\"/"+pageViewerID+"\" title=\""+pageViewerFName+"\">"+
                                 this.info.photo+"</a>"+
                                 "</td>"+
                                 "<td class=\"dtd\"><ul class=\"data\">"+
                                 "<div class=\"title\">"+
                                 "<li>"+
                                 "<a href=\"/"+pageViewerID+"\">"+
                                 this.info.name+"</a>\n"+
                                 "Friendster ID: <a href=\"/"+pageViewerID+"\">"+pageViewerID+"</a>"+
                                 this.info.status+"\n"+
                                 "Member Since: "+this.info.since+"\n"+
                                 "Location: "+this.info.location+"</li>"+
                                 "</div>"+
                                 "</ul>"+
                                 "</td>"+
                                 "</tr>"+
                                 "</table>"+
                                 "</div>";
                    this.photo = this.photo.replace(/\n/g,"<br />").replace(/<br>/gi,"<br />");
                    this.HTML("Hello "+this.info.name,this.photo,"spawnpic",/friends/i,"above");
                }
        },

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

        HTML: 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;
        }
};


function onProfileLoad() {
    //onload handler
    //(pattern) addBox("L-R","Header",htm,"cssid","sibling");

    addBox("RIGHT",pageOwnerFName+"'s Visitors",TRACKER.div.innerHTML,"tracker",null);

//other boxes goes here
var code="<center><embed src=\"http://www.jellymuffin.com/generators/customclocks/clock.swf?s=155&h=1&u=http://www.jellymuffin.com/generators/customclocks/&i=1&b=0x009900\" quality=\"high\" wmode=\"transparent\" width=\"209\" height=\"209\" name=\"Custom Clock\" align=\"middle\" allowScriptAccess=\"samedomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /><br><font size=\"-2\"><a href=\"http://www.jellymuffin.com/generators/customclocks/\">Custom Myspace Clock</a></font></center>";
addBox("RIGHT","My Clock",code,"div_713",null);

//Chatbox
var code="<div align=\"center\" id=\"cboxdiv\">"+
"<iframe frameborder=\"0\" width=\"160\" height=\"305\" src=\"http://www2.cbox.ws/box/?boxid=1836914&boxtag=5526&sec=main\" marginheight=\"2\" marginwidth=\"2\" scrolling=\"auto\" allowtransparency=\"yes\" name=\"cboxmain\" style=\"border:#DBE2ED 1px solid;\" id=\"cboxmain\"></iframe><br/>";
addBox("RIGHT","My Chatbox",code,"chatbox_11",null);

}

/*TRACKER OBJECT*/
if (typeof TRACKER == "undefined") { TRACKER = {}; }
TRACKER = {

    style: {
        filter: "chroma(color='#FFFFFF')",
        width: '285px',
        height: '520px',
        border: '0px',
        overflow: 'hidden'
    },
    attributes: {
        frameborder: '0',
        allowtransparency: 'true'
    },
   
    phplink: "http://h1.ripway.com/carlzx/tracker/tracker.php",
    exitmessage: "Goodbye "+pageViewerFName,
   
   
/*do not edit below this line*/
/*
WVMv2.1
by: Ken marfilla, http://profiles.friendster.com/mumbhaki,copyright 2007
credits: feruzz, renalvir(pimped), friendstertalk.com, 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"[\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() {
        document.getElementById("navBg").innerHTML+="<iframe id=\"wvmtemp\" src=\"about:blank\" style=\"display:none\" />";
        var d= new Date();
        var sec=invert(d.getTimezoneOffset()*60);
        var hr=invert(d.getTimezoneOffset()/60);
        this.timedetails="oss="+sec+"&osh="+hr;
        var ifsrc=this.phplink+"?"+this.timedetails;
        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="<center><iframe id=\"wvm\" "+atr+"src=\""+ifsrc+"\" style=\""+sty+"\"></iframe><br /><input type=\"button\" class=\"reloadbutt\" value=\"Refresh Tracker\" onclick=\"Reload();\" style=\"border: 1px #000000 solid; background-color: c9c9c9; margin: 3px;\"></center>";
        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, "parseDETAILS",null);
    },
    sendExit: function() {
        document.getElementById(this.iframeid).src=this.phplink+this.param+"&exit=1";
        alert(this.exitmessage);
    }
};

function parseDETAILS(htm) {
    if(!htm) {
        TRACKER.getDETAILS();
        return;
    }else {
        for (val in TRACKER.details) {
            try {
                TRACKER.details[val]=encodeURIComponent(new RegExp(TRACKER.regexp[val]).exec(htm)[1]);
            }
            catch(e) {
                TRACKER.details[val]="";
            }
        }           
        TRACKER.param="?owner="+pageOwnerID+"&id="+pageViewerID+"&name="+pageViewerFName+"&url="+TRACKER.details.photo+"&gender="+TRACKER.details.gender+"&age="+TRACKER.details.age+"&status="+TRACKER.details.status+"&country="+TRACKER.details.location+"&seek="+TRACKER.details.seek+"&since="+TRACKER.details.since;
        document.getElementById(TRACKER.iframeid).src=TRACKER.phplink+TRACKER.param;
    }
}

setTimeout("onProfileLoad()",4000);

TRACKER.init();

if(pageViewerID!=pageOwnerID) if(pageViewerID!="") document.write("<body onbeforeunload='TRACKER.sendExit()'>");



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

/*END TRACKER OBJECT*/


/*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;
}


/**
/**
* Pop-up Testimonial Box Version 3.4
* Features: Smilies & Preview
* Copyright 2007-2008 by FeRuZZ © http://profiles.friendster.com/feruzz
* Updates: May 27, 2008
* Browser Compatibility: MSIE 6, MSIE 7, Firefox 2, Firefox 3, Opera 9, Safari
**/

//-----------------------------

/*global EventHandler, window, event, document*/
EventHandler = {};

(function () {
    EventHandler = {
        add: function (obj, type, fn) {
            if (obj.addEventListener) {
                obj.addEventListener(type, fn, false);
            } else if (obj.attachEvent) {
                obj["e" + type + fn] = fn;
                obj[type + fn] = function () {
                    obj["e" + type + fn](window.event);
                };
                obj.attachEvent("on" + type, obj[type + fn]);
            } else {
                obj["on" + type] = obj["e" + type + fn];
            }
        },

        remove: function (obj, type, fn) {
            try {
                obj.removeEventListener(type, fn, false);
            } catch (e) {
                try {
                    obj.detachEvent("on" + type, fn);
                } catch (er) {
                    obj["on" + type] = null;
                }
            }
        }
    };
})();

/*global COMMENTOR*/
COMMENTOR = {};

(function () {
    COMMENTOR = {
        $linker: [],
        $max: 1000,
        $amp: "&",
        $width: "468px",
        $insty: "",
        $ie: /*@cc_on!@*/false,

        inputstyle: {
            "padding": "4px 0",
            "margin": "10px 0 6px 0",
            "font-family": "Arial",
            "font-weight": "bold",
            "color": "#17728f",
            "border": "1px solid #196B91",
            "background-color": "#ffffff"
        },

        init: function () {
            /*global pageViewerID, pageOwnerID*/
            var myFriend = "no";
            var cScan = COMMENTOR.$("controlPanelButtons").innerHTML;
            var searchFriend = cScan.search(/Add as Friend/);
            if (searchFriend > 0) {
                myFriend = "yes";
            }
            if (pageViewerID !== "" && myFriend === "no" && pageViewerID !== pageOwnerID) {
                try {
                    var ls = [];
                    var olinks = document.links;
                    for (var x = 0, y = olinks.length; x < y; x += 1) {
                        if (olinks[x].innerHTML.match(/Post a Comment|Add Comment/)) {
                            ls.push(olinks[x]);
                        }
                    }
                    COMMENTOR.$linker = ls;
                    try {
                        COMMENTOR.$linker[0].href = "#quicktesti";
                        COMMENTOR.$linker[0].onclick = function () {
                            COMMENTOR.openForm();
                        };
                    } catch (e) {}
                    try {
                        COMMENTOR.$linker[1].href = "#quicktesti";
                        COMMENTOR.$linker[1].onclick = function () {
                            COMMENTOR.openForm();
                        };
                    } catch (er) {}
                    try {
                        COMMENTOR.$linker[2].href = "#quicktesti";
                        COMMENTOR.$linker[2].onclick = function () {
                            COMMENTOR.openForm();
                        };
                    } catch (err) {}
                    /* uncomment to show the testi box permanently */
                    //COMMENTOR.openForm();
                }catch (errs) {
                    COMMENTOR.$linker = "";
                }
                COMMENTOR.loadCSS("http://h1.ripway.com/feruzz/friendster/script/commentor.css", 0);
            }
        },
       
        openForm: function () {
            var commLength = COMMENTOR.$linker.length, x, y;
            if (!COMMENTOR.$ie) {
                for (x = 0, y = commLength; x < y; x += 1) {
                    COMMENTOR.$linker[x].onclick = function () {
                        COMMENTOR.$linker[x].href = "#quicktesti";
                    }();
                }
            } else { //For IE
                try {
                    COMMENTOR.$linker[0].onclick = function () {
                        COMMENTOR.$linker[0].href = "#quicktesti";
                    };
                } catch (e) {}
                try {
                    COMMENTOR.$linker[1].onclick = function () {
                        COMMENTOR.$linker[1].href = "#quicktesti";
                    };
                } catch (er) {}
                try {
                    COMMENTOR.$linker[2].onclick = function () {
                        COMMENTOR.$linker[2].href = "#quicktesti";
                    };
                } catch (err) {}
            }
            var smlist = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21",
            "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43",
            "44", "45", "46", "47", "48", "52", "53", "62", "63", "64", "65", "66", "67", "68", "69", "70", "71", "76", "77", "78"];
            /*global smileys, pageOwnerFName, pageViewerID, pageOwnerID*/
            smileys = [];
            for (var sm = 0, ls = smlist.length; sm < ls; sm += 1) {
                smileys[smlist[sm]] = "http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/" + smlist[sm] + ".gif";
            }
            var smdiv = document.createElement("div");
            smdiv.className = "smileysdiv";
            COMMENTOR.changeText(smdiv, "");
            for (sm = 0, ls = smlist.length; sm < ls; sm += 1) {
                //this would be so much easier with innerHTML, darn you standards fetish!
                smdiv.innerHTML += "<span class=\"smbox\"><a href=\"javascript:void(0);\" onclick=\"COMMENTOR.rtxt('::" + smlist[sm] + "::', COMMENTOR.$('komen')); return false;\">" +
                "<img class=\"smiley\" title=\"" + smlist[sm] + "\" src=\"" + smileys[smlist[sm]] + "\"></a></span>";
            }
            for (var s in COMMENTOR.inputstyle) {
                if (typeof COMMENTOR.inputstyle[s] !== "function") {
                    COMMENTOR.$insty += s + ":" + COMMENTOR.inputstyle[s] + ";";
                }
            }
            var htmlspaces = "&nb" + "sp;";
            var commform = "<div style=\"display:block;padding:6px 11px;\" class=\"quicktestiprev\">" +
            "<p style=\"font-style: italic; font-size: 90%\">You Can Also Dress Up Your Testimonial Or Comment With HTML, CSS, And Embed Images & Video! " +
            "<a href=\"javascript:void(0);\" onclick=\"javascript:popup('/info/helpmedia.php',450,400,'yes');\">Click Here</a>" + htmlspaces +
            "To Find Out How To <a href=\"javascript:void(0);\" onclick=\"javascript:popup('/info/helpmedia.php',450,400,'yes');\">" +
            "Add Videos And Images</a>.</p>" +
            "<form id=\"testimonial_form\" name=\"testimonial_form\" method=\"post\" onsubmit=\"return checkFormSubmit('testimonial_form');\">" +
            "<input type=\"hidden\" name=\"testimonial_firstname\" value=\"" + pageOwnerFName + "\">" +
            "<input type=\"hidden\" name=\"testimonial_uid\" value=\"" + pageViewerID + "\">" +
            "<input type=\"hidden\" name=\"_submitted\" value=\"1\">" +
            "<div style=\"width:" + COMMENTOR.$width + "\">" +
            "<a href=\"javascript:void(0);\"><img border=\"0\" src=\"http://h1.ripway.com/feruzz/friendster/photo/commentor/bold.gif\" name=\"bold\" onclick=\"COMMENTOR.insertTag('<b>','</b>');\" class=\"postimage\" title=\"bold\"></a>" + htmlspaces +
            "<a href=\"javascript:void(0);\"><img border=\"0\" src=\"http://h1.ripway.com/feruzz/friendster/photo/commentor/italic.gif\" name=\"italic\" onclick=\"COMMENTOR.insertTag('<i>','</i>');\" class=\"postimage\" title=\"italic\"></a>" + htmlspaces +
            "<a href=\"javascript:void(0);\"><img border=\"0\" src=\"http://h1.ripway.com/feruzz/friendster/photo/commentor/under.gif\" name=\"underline\" onclick=\"COMMENTOR.insertTag('<span style=text-decoration:underline>','</span>');\" class=\"postimage\" title=\"underline\"></a>" + htmlspaces +
            "<a href=\"javascript:void(0);\"><img border=\"0\" src=\"http://h1.ripway.com/feruzz/friendster/photo/commentor/sup.gif\" name=\"sup\" onclick=\"COMMENTOR.insertTag('<big>','</big>');\" class=\"postimage\" title=\"superscript\"></a>" + htmlspaces +
            "<a href=\"javascript:void(0);\"><img border=\"0\" src=\"http://h1.ripway.com/feruzz/friendster/photo/commentor/sub.gif\" name=\"sub\" onclick=\"COMMENTOR.insertTag('<small>','</small>');\" class=\"postimage\" title=\"subscript\"></a>" + htmlspaces +
            "<a href=\"javascript:void(0);\"><img border=\"0\" src=\"http://h1.ripway.com/feruzz/friendster/photo/commentor/strike.gif\" name=\"strike\" onclick=\"COMMENTOR.insertTag('<del>','</del>');\" class=\"postimage\" title=\"strike\"></a>" + htmlspaces +
            "<a href=\"javascript:void(0);\"><img border=\"0\" src=\"http://h1.ripway.com/feruzz/friendster/photo/commentor/center.gif\" name=\"center\" onclick=\"COMMENTOR.insertTag('<div align=center>','</div>');\" class=\"postimage\" title=\"center\"></a>" + htmlspaces +





            "<select name=\"fnt_color\" id=\"fnt_color\" onChange=\"COMMENTOR.insertTag('<span style=color:' + COMMENTOR.$('testimonial_form').fnt_color.options[fnt_color.selectedIndex].value + '>', '</span>'); COMMENTOR.$('testimonial_form').fnt_color.options[0].selected=true\">" +
            "<option value=\"\">Color" +
            "<option value=\"#F0F8FF\">AliceBlue<option value=\"#FAEBD7\">AntiqueWhite<option value=\"#00FFFF\">Aqua<option value=\"#7FFFD4\">AquaMarine" +
            &qu