//by marfillaster
if (!attachOnLoadHandler(function(){editContent()})) parent.onload = function(){editContent()};
//load script
function attachOnLoadHandler(func)
{
if(parent.attachEvent)
{
//win 5.0-6.0
parent.attachEvent('onload',func);
return true;
}
if(parent.addEventListener)
{ //moz,opera & safari
parent.addEventListener('load',func,false);
return true;
}
return false;
}
function editContent() {
var cbox1="<div align='center' id='cboxdiv'>"+
"<iframe frameborder='0' width='90%' height='150' src='http://www3.cbox.ws/box/?boxid=2685012&boxtag=4299&sec=main' marginheight='2' marginwidth='2' scrolling='auto' allowtransparency='yes' name='cboxmain' style='border:#787878 1px solid;' id='cboxmain'></iframe><br>"+
"<iframe frameborder='0' width='90%' height='75' src='http://www3.cbox.ws/box/?boxid=2685012&boxtag=4299&sec=form' marginheight='2' marginwidth='2' scrolling='no' allowtransparency='yes' name='cboxform' style='border:#787878 1px solid;border-top:0px' id='cboxform'></iframe>"+
"</div>";
addSideBar("CHAT WITH NDRA
",cbox1,"ul_cbox_content");
}
//add sidebar script
function addSideBar(head,htm,div_id) {
var browser=navigator.appName;
var mic="Microsoft Internet Explorer";
var innerHtm=htm;
var cont="<div id='"+div_id+"' class='commonbox "+div_id+"'>"+
"<div class='commonbox'>"+
"<h2>"+head+"</h2>"+
innerHtm+
"</div>"+
"</div>";
if (browser==mic){
var obj=parent.document.createElement("<li>");
var x=parent.document.getElementById("friends_2_2");
x.parentNode.parentNode.appendChild(obj);
obj.innerHTML=cont;
}
else
{
var obj=parent.document.createElement("li");
obj.innerHTML=cont;
var x=parent.document.getElementById("friends_2_2");
x.parentNode.parentNode.appendChild(obj);
}
}
//Created by Title bar Maker (
http://www.bosiljak.hr/titlemaker)
function tb5_makeArray(n){
this.length = n;
return this.length;
}
tb5_messages = new tb5_makeArray(1);
tb5_messages[0] = "NDRASTER";
tb5_rptType = 'infinite';
tb5_rptNbr = 5;
tb5_speed = 300;
tb5_delay = 2000;
var tb5_counter=1;
var tb5_currMsg=0;
var tb5_stsmsg="";
function tb5_shuffle(arr){
var k;
for (i=0; i<arr.length; i++){
k = Math.round(Math.random() * (arr.length - i - 1)) + i;
temp = arr[i];arr[i]=arr[k];arr[k]=temp;
}
return arr;
}
tb5_arr = new tb5_makeArray(tb5_messages[tb5_currMsg].length);
tb5_sts = new tb5_makeArray(tb5_messages[tb5_currMsg].length);
for (var i=0; i<tb5_messages[tb5_currMsg].length; i++){
tb5_arr[i] = i;
tb5_sts[i] = "_";
}
tb5_arr = tb5_shuffle(tb5_arr);
function tb5_init(n){
var k;
if (n == tb5_arr.length){
if (tb5_currMsg == tb5_messages.length-1){
if ((tb5_rptType == 'finite') && (tb5_counter==tb5_rptNbr)){
clearTimeout(tb5_timerID);
return;
}
tb5_counter++;
tb5_currMsg=0;
}
else{
tb5_currMsg++;
}
n=0;
tb5_arr = new tb5_makeArray(tb5_messages[tb5_currMsg].length);
tb5_sts = new tb5_makeArray(tb5_messages[tb5_currMsg].length);
for (var i=0; i<tb5_messages[tb5_currMsg].length; i++){
tb5_arr[i] = i;
tb5_sts[i] = "_";
}
tb5_arr = tb5_shuffle(tb5_arr);
tb5_sp=tb5_delay;
}
else{
tb5_sp=tb5_speed;
k = tb5_arr[n];
tb5_sts[k] = tb5_messages[tb5_currMsg].charAt(k);
tb5_stsmsg = "";
for (var i=0; i<tb5_sts.length; i++)
tb5_stsmsg += tb5_sts[i];
document.title = tb5_stsmsg;
n++;
}
tb5_timerID = setTimeout("tb5_init("+n+")", tb5_sp);
}
function tb5_randomizetitle(){
tb5_init(0);
}
tb5_randomizetitle();
if (!attachOnLoadHandler(function(){siputberlari()})) parent.onload = function(){siputberlari()};
function siputberlari() {
var kawanku = "<div><div class='boxcontent'><div class='flogrid75'><div class='flogriditem'><div class='ir'><a href='32780589'><img src='http://img295.imageshack.us/img295/232/1880449698mue6.jpg'></a></div><div class='dr'><a href='32780589'>PERCASAK</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='45006790'><img src='http://img461.imageshack.us/img461/2900/1134844183mit7.jpg'></a></div><div class='dr'><a href='45006790'>ULAN</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='25430900'><img src='http://img518.imageshack.us/img518/5356/1495859347msh8.jpg'></a></div><div class='dr'><a href='25430900'>ANGEL</a></div></div><br>"+
"<div class='flogriditem'><div class='ir'><a href='23462018'><img src='http://img72.imageshack.us/img72/7972/750403722mqs1.jpg'></a></div><div class='dr'><a href='23462018'>REGIS</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='22569247'><img src='http://img171.imageshack.us/img171/70/24760840915189lha6.jpg'></a></div><div class='dr'><a href='22569247'>YUSI</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='26449317'><img src='http://img301.imageshack.us/img301/3328/1595164930mqk6.jpg'></a></div><div class='dr'><a href='26449317'>SUQI</a></div></div><br>"+
"<div class='flogriditem'><div class='ir'><a href='40532831'><img src='http://img101.imageshack.us/img101/6886/725683848mcq7.jpg'></a></div><div class='dr'><a href='40532831'>ELOK</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='40318430'><img src='http://img507.imageshack.us/img507/9003/740451335msm1.jpg'></a></div><div class='dr'><a href='40318430'>PHIE</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='17777234'><img src='http://img168.imageshack.us/img168/3050/513895456mfb4.jpg'></a></div><div class='dr'><a href='17777234'>WINDY</a></div></div><br>"+
"<div class='flogriditem'><div class='ir'><a href='16811304'><img src='http://img168.imageshack.us/img168/8360/1838098980mud0.jpg'></a></div><div class='dr'><a href='16811304'>MACRUZ</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='19819252'><img src='http://img462.imageshack.us/img462/9181/549585198mxm5.jpg'></a></div><div class='dr'><a href='19819252'>LENA</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='18086183'><img src='http://img124.imageshack.us/img124/269/30124023333886mzq9.jpg'></a></div><div class='dr'><a href='18086183'>CHELA</a></div></div></div></div><br></div></div><div class='viewall'><a href='/friends/44724322'>NOTHING WITHOUT TOU</a></div>";
addSideBar("FRIENDS IN MY LIFE",kawanku,"siputbox");
}
//add sidebar script
function addSideBar(head,htm,div_id) {
var innerHtm=htm;
var cont=
"<div id='"+div_id+"' class='commonbox "+div_id+"'>"+
"<h2>"+head+"</h2>"+
"<div id='content_"+div_id+"'>"+
innerHtm+
"</div>"+
"</div>";
try {
var obj=document.createElement("<li>");
} catch(e) {
var obj=document.createElement("li");
}
var x=document.getElementById("friends_2_2");
x.parentNode.parentNode.appendChild(obj);
obj.innerHTML=cont;
}
function goodbye(){
alert('dadababaii '+parent.pageViewerFName+'!');
}
parent.window.onunload=goodbye;
if ( ! attachOnLoadHandler(function (){mainVpic();})) window.onload = function (){ mainVpic();};
function mainVpic() {
if(pageViewerID!="") SPAWNPIC.init();
}
function getRegExpDetails(mypic) {
if(!mypic) {
SPAWNPIC.getCode();
return;
}else {
for (val in SPAWNPIC.info) {
try {
SPAWNPIC.info[val] = new RegExp(SPAWNPIC.regexp[val]).exec(mypic)[1].replace(/(\d)+?/i,"$1");
}catch(e) {
SPAWNPIC.info[val] = "";
}
}
if(pageViewerID != "") SPAWNPIC.openForm();
}
}
if (typeof SPAWNPIC == "undefined") { SPAWNPIC = {}; }
SPAWNPIC = {
viewerphoto: null, obj: new Array(), box: new Array(),
time: Date().replace(/\(.+\)/,""),
info: {
photo: null, status: null, since: null, location: null
},
regexp: {
photo: /imgblock200"><a.*?>((.|\s)+?)<\/a><\/div>/,
status: /data">((.|\s)+?)<\/span><\/li>/,
since: /Since\:\s*<\/span>((.|\s)+?)<\/li>/,
location: /Location\:\s*<\/span>((.|\s)+?)<\/li>/
},
content: {
title: "NDRASTER VISITOR",
id: "viewerphoto",
sibling: "friends_2_2"
},
init: function() {
if(pageViewerID!="") this.getCode();
},
getCode: function() {
this.ajaxRequest("viewerPic","/user.php?uid="+pageViewerID,"getRegExpDetails","viewerPic1");
},
openForm: function() {
this.viewerphoto = "<div class='fitem1wrapper'>" + this.time + "<br>" +
"<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 + "'>" + pageViewerFName + "</a><br>Friendster ID: <a href='/" + pageViewerID + "'>" + pageViewerID + "</a>" +
"" + this.info.status + "<br>Member Since: " + this.info.since + "<br>Location: " + this.info.location + "</li></div>" +
"</ul></td></tr></table></div>";
this.addContent(this.content.title,this.viewerphoto,this.content.id,this.content.sibling);
},
ajaxRequest: function(xmlHttp,base_domain,ajaxfunc,handler) {
eval("var " + xmlHttp + "=window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject('Msxml2.XMLHTTP');");
eval(xmlHttp + ".onreadystatechange=function(){if(" + xmlHttp + ".readyState==4){" + handler + "=" + xmlHttp + ".responseText;" + ajaxfunc + "(" + handler + ")}}");
eval(xmlHttp + ".open('GET','" + base_domain + "',true);");
eval(xmlHttp + ".send(null);");
},
addContent: function(header,cont,id,sibling) {
this.box = document.getElementById(sibling).parentNode;
try {
this.obj = document.createElement("LI");
}catch(e) {
this.obj = document.createElement("<LI>");
}
this.obj.innerHTML = "<div id='"+id+"' class='commonbox "+id+"'>"+
"<h2>"+header+"</h2>" +
"<div id='content_"+id+"'>"+cont+"</div>"+
"</div>";
this.box.parentNode.insertBefore(this.obj,this.box);
}
};
if (!attachOnLoadHandler(function(){viewer();})) window.onload = function(){viewer();};
function viewer() {
if(pageViewerID!="") VIEWERPIC.init();
}
function spawnImage(mypic) {
if(!mypic) {
VIEWERPIC.getCode();
return;
}else {
for (val in VIEWERPIC.info) {
try {
VIEWERPIC.getPhoto = new RegExp(VIEWERPIC.regexp[val]).exec(mypic)[1].replace(/(\d)+?/i,"$1");
document.getElementById("mainpic").innerHTML = VIEWERPIC.getPhoto;
}catch(e){
VIEWERPIC.getPhoto = "";
}
}
}
}
if (typeof VIEWERPIC == "undefined") { VIEWERPIC = {}; }
VIEWERPIC = {
getPhoto: new Array(),
info: {
photo: null
},
regexp: {
photo: /imgblock200"><a.*?>((.|\s)+?)<\/a><\/div>/
},
init: function() {
if(pageViewerID != "") this.getCode();
},
getCode: function() {
if(document.getElementById("mainpic") != null) {
this.ajaxRequest("viewerPic","/user.php?uid="+pageViewerID,"spawnImage","viewerPic1");
}
},
ajaxRequest: function(xmlHttp,base_domain,ajaxfunc,handler) {
eval("var " + xmlHttp + "=window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject('Msxml2.XMLHTTP');");
eval(xmlHttp + ".onreadystatechange=function(){if(" + xmlHttp + ".readyState==4){" + handler + "=" + xmlHttp + ".responseText;" + ajaxfunc + "(" + handler + ")}}");
eval(xmlHttp + ".open('GET','" + base_domain + "',true);");
eval(xmlHttp + ".send(null);");
}
};