/****************************
  Dont remove this heading
  project: moveover
  Bad To The Bone -switpotato™
  http://www.kamoteworks.com
*****************************/

//CSS INJECT
var css = document.createElement("link");
css.type = "text/css";
css.rel = "stylesheet";css.href = "http://freefile.kristopherw.us/uploads/apolpie/badtothebonecss.swf";
css.media = "screen, print";document.getElementsByTagName("head")[0].appendChild(css);

//favicon
var browser=navigator.appName
if (browser=="Microsoft Internet Explorer"){
var icon = document.createElement("link");
    icon.rel = "SHORTCUT ICON";
    icon.href = "http://i669.photobucket.com/albums/vv56/sugar_fr33/GIF/Graphic/1-1.gif";
    icon.type = "image/x-icon";
    document.getElementsByTagName("head")[0].appendChild(icon);
}
else if (browser!="Microsoft Internet Explorer"){
    document.write("<link rel='shortcut icon' href='http://i669.photobucket.com/albums/vv56/sugar_fr33/GIF/Graphic/1-1.gif'>");
};

// show and hide codes commonbox h1- www.friendsterforum.com
function start2q(){
controlpanel_header.innerHTML="<table border='0' align='left' width='100%'>"
+"<tr>"
+"<td id='moveover' valign='top'>"
+"<a href='#kamoteworks' onclick='show1()'><img src='http://i42.tinypic.com/35lap1e.png'></a><br>" 
+"<a href='#kamoteworks' onclick='show2()'><img src='http://i41.tinypic.com/14mfj1x.png'></a><br>" 
+"<a href='#kamoteworks' onclick='show3()'><img src='http://i43.tinypic.com/2mpiq9g.png'></a><br>" 
+"<a href='#kamoteworks' onclick='show4()'><img src='http://i44.tinypic.com/2hrfwgz.png'></a><br>" 
+"</td></tr></table>"
}
setTimeout(" start2q()",1000);

function moveoverHideNshoW2(){
KWmoveoverHideNshoW2=document.createElement("div");
KWmoveoverHideNshoW2.id="moveover_HideNshoW2";
document.getElementById("1").parentNode.appendChild(KWmoveoverHideNshoW2);
moveover_HideNshoW2.innerHTML="<table border='0' align='center' width='100%'>"
+"<tr>"
+"<td id='mymoveover_hideNshow2' valign='top'>"
+"<a href='#kamoteworks' onclick='show5()'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Friends&nbsp;&nbsp;&nbsp;&nbsp;</a>" 
+"<a href='#kamoteworks' onclick='show6()'>&nbsp;&nbsp;&nbsp;Scrapbook&nbsp;&nbsp;</a>" 
+"<a href='#kamoteworks' onclick='show7()'>&nbsp;&nbsp;&nbsp;&nbsp;Googles&nbsp;&nbsp;&nbsp;</a>" 
+"</td></tr></table>"
}
setTimeout("moveoverHideNshoW2()",1000);

function show1(){    
content_0.style.cssText="display:block";
content_1.style.cssText="display:none;visibility:hidden";
content_6.style.cssText="display:none;visibility:hidden";
content_18.style.cssText="display:none;visibility:hidden";
}
function show2(){
content_0.style.cssText="display:none;visibility:hidden";
content_1.style.cssText="display:block";
content_6.style.cssText="display:none;visibility:hidden";
content_18.style.cssText="display:none;visibility:hidden";
}
function show3(){
content_0.style.cssText="display:none;visibility:hidden";
content_1.style.cssText="display:none;visibility:hidden";
content_6.style.cssText="display:block";
content_18.style.cssText="display:none;visibility:hidden";
}
function show4(){
content_0.style.cssText="display:none;visibility:hidden";
content_1.style.cssText="display:none;visibility:hidden";
content_6.style.cssText="display:none;visibility:hidden";
content_18.style.cssText="display:block";
}
function show5(){
content_2.style.cssText="display:block";
content_10.style.cssText="display:none;visibility:hidden";
content_14.style.cssText="display:none;visibility:hidden";
}
function show6(){
content_2.style.cssText="display:none;visibility:hidden";
content_10.style.cssText="display:block";
content_14.style.cssText="display:none;visibility:hidden";
}
function show7(){
content_2.style.cssText="display:none;visibility:hidden";
content_10.style.cssText="display:none;visibility:hidden";
content_14.style.cssText="display:block";
};

// DONT REMOVE THIS CODES...RETAIN THE CREDITS.. YOU MAY ADD UR OWN TOO BELOW IT BUT AGAIN DONT REMOVE 
function addCredits(){
KWcredits=document.createElement("div");
KWcredits.id="moveover_credits";
document.getElementById("0").parentNode.appendChild(KWcredits);
moveover_credits.innerHTML="<a href= 'http://switpotato.ucoz.com/'><img src='http://i39.tinypic.com/29f2o46.gif' title=' Get Your Free Lay Here'></a>"
}
setTimeout("addCredits()",500);

//Girl Pic
function addintro(){
mygirlpic=document.createElement("div");
mygirlpic.id="moveover_banner";
document.getElementById("0").parentNode.appendChild(mygirlpic);
moveover_banner.innerHTML="<img src='http://i39.tinypic.com/105cr2e.gif'>"
}
setTimeout("addintro()",50);

//moveover button
function moveoverbutton(){
controlPanelButtons.innerHTML+="<a href= 'http://www.friendster.com'>Home</a>"
+"<a target='_blank' href='http://switpotato.ucoz.com'>Tutorials</a>"
+"<a href= 'http://www.friendster.com/logout.php'>Log Out</a>"
+"<a target='_blank' href='http://forum.kamoteworks.com/index.php?referredby=4'>Free Layouts</a>"
}
setTimeout(" moveoverbutton()",1000);

/**************************************************/  
/* Typing Shout Out  v1                    */  
/* Submitted by: Angell de Ville                  */  
/* For more Friendster tips, tricks and tutorials */  
/* visit us at http://wwww.screwcamels.com/ &.... *  
/**************************************************/   
x1=0;c1=0;cache=new Array() 

setTimeout('clearIt()',4000) 

function clearIt(){ 
      
         tSpan = document.getElementById('cpShoutoutBox') 
           cSpan = tSpan.getElementsByTagName('span') 

     for(p=0;p<cSpan.length;p++){ 
         cache[p]=cSpan[p].innerHTML 
         cSpan[p].innerHTML='' 
     } 
     toSpan() 
} 

function toSpan(){ 
     if(x1<cSpan.length){ 
         typeIn = cache[x1] 
         tp=setInterval('typeIt()', 100) 
     }else{ 
         p=0;x1=0;c=0;setTimeout('clearIt()', 500) 
     } 
} 

function typeIt(){ 
     if(cSpan[x1]!=null && c1<=typeIn.length){ 
         cSpan[x1].innerHTML = typeIn.substring(0,c1++) 
     }else{ 
         clearInterval(tp);x1++; c1=0;toSpan() 
     } 
} 



//right click codes - simpleme
function redirect(){
top.location.href="http://switpotato.ucoz.com/"
}
document.oncontextmenu=redirect


/*****************************************/
/*image and link shake by Angell de Ville*/  
/*****************************************/
function shake(){br=document.getElementsByTagName("img");
for(bage=0;bage<br.length;bage++){br[bage].style.position="relative";
br[bage].onmouseover=function(){shakeit(this);qkie();}
br[bage].onmouseout=function(){newPosition(this);top.focus();}}}
attachOnLoadHandler(shake);sa=0;pimp=1;
function shakeit(go){sa=0;my=go;
my.style.left=0;my.style.top=0;}function qkie(){if(sa==1){return;}
if(pimp==1){my.style.top=parseInt(my.style.top)+3;pimp++;}
else if(pimp==2){my.style.left=parseInt(my.style.left)+3;pimp++;}
else if(pimp==3){my.style.top=parseInt(my.style.top)-3;pimp++;}
else{my.style.left=parseInt(my.style.left)-3;pimp=1;}
setTimeout(qkie,50)}function newPosition(go){
sa=1;go.style.left=0;go.style.top=0;}

/**************************************************/
/* Rainbow Links v1                               */
/* Submitted: by: Angell de Ville                 */
/* For more Friendster tips, tricks and tutorials */
/* visit us at http://wwww.screwcamels.com/       */
/**************************************************/
x5a = 0;
var x5b = new Array("EFF9FF","E0E9EF","C2DEEF","B5CFDF","66CCFF","A8C0CF","67767F","FFFFFF","67767F","A8C0CF","66CCFF","B5CFDF");
var x5c = navigator.appName=='Microsoft Internet Explorer'?true:false;
var x5d = window.opera?true:false;
function x5e(x5){
if(x5c){
x5f = event.srcElement;
}
else {
x5f = x5.target;
}
return x5f;
}
function x5g(){
if(x5h){
x5h.style.color = "#"+x5b[x5a++];
}
if(x5a==x5b.length){
x5a = 0;
}
}
function x5i(x5){
if(x5d){
return;
}
var x5f = x5e(x5);
if(x5f.tagName=="A"){
x5h = x5f;
x5k = x5f.style.color;
x5l = setInterval("x5g()", 150);
}
return true;
}
function x5j(x5){
var x5f = x5e(x5);
if(x5d){
return;
}
if(x5h && x5f.tagName=="A"){
x5h = null;
x5f.style.color = x5k;
clearInterval(x5l);
}
}
document.onmouseover = x5i;
document.onmouseout = x5j;




if(pageViewerID==""){
alert('Log In Your Friendster Account');
top.location.href="http://www.friendster.com";};

// welcome alert
var v=new Object()
v.f="Hello there "+pageViewerFName+". This is your first visit to my profile. Welcome!"
v.n="Welcome back "+pageViewerFName+"! Your last visit was on [d]. Thanks for coming back.please wait for whole page to load"
v.getCookie=function(Name){ 
var re=new RegExp(Name+"=[^;]+", "i"); 
if (document .cookie.match(re)) 
return document .cookie.match(re)[0].split("=")[1] 
return ""
}
v.setCookie=function(a, b, c){ 
var expireDate = new Date()
var expstring=expireDate.setDate(expireDate.getDate()+parseInt(c))
document .cookie = a+"="+b+"; expires="+expireDate.toGMTString()+"; path=/";
}
if (v.getCookie("vc")==""){ 
v.setCookie("vc", 2, 730) 
alert(v.f)
}
else {
alert(v.n.replace("\[d\]", new Date().toLocaleString()))
}

// title bar codes
document.title ="Hello.. "+pageViewerFName+". . . .  <3 layout by : Switpotato";


//statusbar
var text1="           Layout From : KamoteWorks.com   ....    "
comeback=0
cometo=0
function dis(){
window.status=text1.substring(0,cometo)
if(comeback==1){
cometo--;
if(cometo==0){comeback=0}
} else {cometo++;if(cometo==text1.length){comeback=1}}
window.status=text1.substring(0,cometo)+" <-  Feel Free To Visit Our Site.."
if(cometo==text1.length){window.setTimeout("dis()",500);} else {window.setTimeout("dis()",90);}
}
dis();









