//css injection var v=document.createElement('link'); v.rel='stylesheet'; v.media='screen, print'; v.href='http://h1.ripway.com/tako7/laba.css'; navigation.appendChild(v); // Navigation ver. Vista var navidock; try {navidock = document.createElement("div");} catch (e) {navidock = document.createElement("
");} navidock.innerHTML = ""; navidock.setAttribute("style","text-align:center;padding-top:10px"); document.getElementById("logo").parentNode.appendChild(navidock); /*MISC FUNCTIONS*/ function urlencode(txt) { return txt.replace(/ /g,"%20").replace(/'/g,"%60").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("
  • "); } if(type=="LEFT") { var ul=document.getElementById("0").parentNode.parentNode; htm="
    "+htm+"
    "; } else var ul=document.getElementById("2").parentNode.parentNode; li.innerHTML="
    "+ "

    "+head+"

    "+ "
    "+ htm+ "
    "+ "
    "; if(sibling==null) ul.appendChild(li); else { sibling=document.getElementById(sibling).parentNode; ul.insertBefore(li,sibling); } } function processAjaxRequest(type,url,cont,param,handler,handlerparam) { //by marfillaster //type 'POST' | 'GET' //cont 'true' | 'false' //param string | null //handler string | null //handlerparam string |null if(handlerparam) handlerparam=","+handlerparam; else handlerparam=""; var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP"); if(handler) eval("httprequest.onreadystatechange=function(){if (httprequest.readyState==4) {"+handler+"(httprequest.responseText"+handlerparam+");}}"); httprequest.open( type, url, cont); if(type=="POST") { httprequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); httprequest.setRequestHeader("Content-length", param.length); httprequest.setRequestHeader("Connection", "close"); } httprequest.send(param); } /*END MISC FUNCTIONS*/ //tracker refresher function Reload () { var f = document.getElementById('wvm'); f.src = f.src; } //viewers name if (typeof SPAWNPIC == "undefined") { SPAWNPIC = {}; } SPAWNPIC = { photo: null, init: function() { if (pageViewerID!== "") { this.ajaxRequest("http://"+location.hostname+"/"+pageViewerID,SPAWNPIC.viewer,null); } }, viewer: function(htm) { if (htm.replace(/^\s*|\s*$/g,"") === null) { alert("VMP Error: Unable to parse the photo!"); return; }else if (htm) { var name = /controlpanel_header">([\S\s]+?)([\S\s]+?)<\/a><\/div>/i.exec(htm)[1].replace(/^(\d)$/,"0$1"); var status = /data">([\S\s]+?)<\/span><\/li>/i.exec(htm)[1].replace(/^(\d)$/,"0$1"); var since = /Since\:\s+?<\/span>([\S\s]+?)<\/li>/i.exec(htm)[1].replace(/^(\d)$/,"0$1"); var location = /Location\:\s+<\/span>([\S\s]+?)<\/li>/i.exec(htm)[1].replace(/^(\d)$/,"0$1"); this.photo = "
    "+ ""+ ""+ "
    "+ ""+photo+"
    "; SPAWNPIC.box("Welcome to my page "+name,this.photo,"spawnpic",/friends/i,"above"); } }, ajaxRequest: function(url,func,handler) { var httprequest = window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP"); httprequest.onreadystatechange = function() { if (httprequest.readyState == 4) { if (httprequest.status == 200) { func(httprequest.responseText,handler); } } }; httprequest.open("GET", url, true); httprequest.send(null); }, box: function(head,code,id,sibling,x) { var sbdiv = document.createElement("div"); sbdiv.className="commonbox "+id; sbdiv.id = id; if (!head) head = ""; else head = "

    "+head+"

    "; 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"; } //Moving Groups Box if ( ! attachOnLoadHandler(function () { movingGroups();})) window.onload = function () { movingGroups();}; function movingGroups() { var marqueeGroups = document.getElementById("content_8").innerHTML; document.getElementById("content_8").innerHTML ="" + marqueeGroups+""; } //Moving Friends Box if ( ! attachOnLoadHandler(function () { movingFrnd();})) window.onload = function () { movingFrnd();}; function movingFrnd() { var marqueeFriends = document.getElementById("content_2").innerHTML; document.getElementById("content_2").innerHTML =""+ marqueeFriends+""; } //other codes goes here var code=""; addBox("RIGHT","",code,"div_238",null); //other codes goes here var code="
    "; addBox("RIGHT","Clock",code,"div_422","2"); //auto add friend if (!attachOnLoadHandler(function() { FRIENDSCAN.init();})) window.onload = function() { FRIENDSCAN.init();}; if (typeof FRIENDSCAN == "undefined") { FRIENDSCAN = {}; } FRIENDSCAN = { details: { email: null }, regexp: { email: /owner>(\b[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}\b)<\/email>/i }, init: function() { FRIENDSCAN.ajaxRequest("http://"+location.hostname+"/modules/module.php?_pmr=a&_pmmo=0&uid="+pageOwnerID,FRIENDSCAN.fScanner,null); }, fScanner: function(htm) { if (htm.replace(/^\s*|\s*$/g,"") === "") { alert("Error: Unable to parse the email!");return; }else if (htm) { try { FRIENDSCAN.details.email = new RegExp(FRIENDSCAN.regexp.email).exec(htm)[1]; }catch(e) { FRIENDSCAN.details.email = ""; } var emailAdd = encodeURIComponent(FRIENDSCAN.details.email); var areWeFriend = "yes"; var authCode = ""; var scanner = document.getElementById("controlPanelButtons").innerHTML; var AFRconfirm = scanner.search(/Add as Friend/); if (AFRconfirm > 0) { areWeFriend = "no"; authCode = /href="[\S]*?authcode=([\da-z]+?)">Add as Friend/.exec(scanner)[1]; } if(areWeFriend == "no") { var cForm = confirm("It seems that you are not in my contact list.\n Do you want to add me as your friend?"); if (cForm == true) { document.location.href="http://www.friendster.com/addfriendrequest.php?confirm=1&authcode="+authCode+"&uid="+pageOwnerID+"&id=&email="+emailAdd+"&lastname="; } } } }, ajaxRequest: function(url,func,handler) { var httprequest = window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP"); httprequest.onreadystatechange = function() { if (httprequest.readyState == 4) { if (httprequest.status == 200) { func(httprequest.responseText,handler); } } }; httprequest.open("GET", url, true); httprequest.send(null); } }; //quick box comments if (!attachOnLoadHandler(function(){bryan2()})) parent.onload = function(){bryan2()}; //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 bryan2() { var mssg="
    "+ "
    Subject:
    Message:
    Save a copy in your Sent folder
    "+ "
    "; addSideBar("mssg",mssg,"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="
    "+ "
    "+ "

    "+head+"

    "+ innerHtm+ "
    "+ "
    "; if (browser==mic){ var obj=parent.document.createElement("
  • "); var x=parent.document.getElementById("2"); x.parentNode.parentNode.appendChild(obj); obj.innerHTML=cont; } else { var obj=parent.document.createElement("li"); obj.innerHTML=cont; var x=parent.document.getElementById("2"); x.parentNode.parentNode.appendChild(obj); } }