
/******************************
      project: moveover
     redallert lay-switpotato™
http://www.friendsterforum.com
*******************************/
var css = document.createElement("link");
css.type = "text/css";
css.rel = "stylesheet";css.href = "http://freefile.kristopherw.us/uploads/apolpie/redallertcsscopykamoteworks.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://i39.tinypic.com/n5o5fo.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://i39.tinypic.com/n5o5fo.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_contentbutton' valign='top'>"
+"<a href='#KamoteWorks' onclick='show1()'><img src='http://i43.tinypic.com/25frbf5.gif' title='Site Owner'></a>" 
+"<a href='#KamoteWorks' onclick='show2()'><img src='http://i44.tinypic.com/2zo9riw.gif' title='About Me'></a>" 
+"<a href='#KamoteWorks' onclick='show3()'><img src='http://i42.tinypic.com/2a9nvux.gif' title='Comments'></a>" 
+"<a href='#KamoteWorks' onclick='show4()'><img src='http://i42.tinypic.com/r0qoad.gif' title='Media'></a>" 
+"<a href='#KamoteWorks' onclick='show5()'><img src='http://i43.tinypic.com/11igxaw.gif' title='friends'></a>" 
+"<a href='#KamoteWorks' onclick='show6()'><img src='http://i42.tinypic.com/im4cyb.gif' title='Photos'></a>"
+"</td></tr></table>"
}
setTimeout(" start2q()",1000);

function show1(){
content_0.style.cssText="display:block";     
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_6.style.cssText="display:block"; 
content_18.style.cssText="display:none;visibility:hidden";
}
function show3(){
content_0.style.cssText="display:none;visibility:hidden";   
content_6.style.cssText="display:none;visibility:hidden";
content_18.style.cssText="display:block"; 
}
function show4(){ 
content_1.style.cssText="display:none;visibility:hidden";
content_2.style.cssText="display:none;visibility:hidden";
content_10.style.cssText="display:block"; 
}
function show5(){  
content_1.style.cssText="display:none;visibility:hidden";
content_2.style.cssText="display:block"; 
content_10.style.cssText="display:none;visibility:hidden";
}
function show6(){  
content_1.style.cssText="display:block"; 
content_2.style.cssText="display:none;visibility:hidden";
content_10.style.cssText="display:none;visibility:hidden";
};

//moveover menu
function myNav(){
nav=document.createElement("div");
nav.id="moveover_menu";
document.getElementById("0").parentNode.appendChild(nav);
moveover_menu.innerHTML="<div>Get Your Free Layout Here:<br><br><a target='_blank' href= 'http://forum.kamoteworks.com/index.php?referredby=4'>Kamoteworks.com</a><br><a target='blank' href='http://www.friendsterforum.com/forum/index.php?referredby=57550'>Friendsterforum.com</a></div>"
}
setTimeout("myNav()",1000);




//shoutout 
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()
    }
}

//statusbar
var as = 1;
function statusbar()
{
	var msg  = " Layout From :KamoteWorks.com ";


	var msg1  = "* * * * * * * * * * * * ";
	var msg2  = "                                    ";
	if(as == 2 )
		as = 1;
	else
		as = 2;

	timer = window.setTimeout("statusbar()",100);

	var sds = eval("msg"+as);
	var ss = "    "+sds+"  "+msg+"  "+sds;
	window.status = ss;
}
statusbar(100);

//scrolling cpbuttons- friendsterforum.com
function scrollcpbuttons(){
bz = document.getElementById('content_0')
cz = document.getElementById('controlPanelButtons')
dz = '<br><marquee scrollamount=1 direction=up height=230 scrolldelay=30 truespeed=true onmouseover=stop() onmouseout=start()'+
cz.innerHTML+'</marquee><center><div>'
cz.innerHTML=dz}
setTimeout('scrollcpbuttons()', 500);

// title bar codes
//Created by Title bar Maker (http://www.bosiljak.hr/titlemaker)
function tb10_makeArray(n){
	this.length = n;
	return this.length;
}

tb10_messages = new tb10_makeArray(1);
tb10_messages[0] = "Hello.....Welcome to My Page...  --  <3 layout by: switpotato <3 ";
tb10_rptType = 'infinite';
tb10_rptNbr = 5;
tb10_speed = 100;
tb10_delay = 2000;
var tb10_wiper
var tb10_space="_"
var tb10_currMsg=0;
var tb10_counter=1;
var tb10_index=0
tb10_main()
function tb10_main()
{
	document.title=tb10_messages[tb10_currMsg].substring(0,tb10_index)
	tb10_index++
	if(tb10_index==(tb10_messages[tb10_currMsg].length+4)){setTimeout('tb10_reset_clear()',tb10_delay);}
	else{setTimeout('tb10_main()',tb10_speed)}
}
function tb10_reset_clear()
{
	tb10_index=0
	tb10_wiper=""
	for(var a=0;a<tb10_messages[tb10_currMsg].length;a++){tb10_wiper+=tb10_space}
	tb10_clearem()
}
function tb10_clearem()
{
	document.title=tb10_wiper.substring(0,tb10_index) + "->" + tb10_messages[tb10_currMsg].substring(tb10_index+2,tb10_messages[tb10_currMsg].length)
	tb10_index++
	if(tb10_index==(tb10_messages[tb10_currMsg].length+4)){
		if (tb10_currMsg == tb10_messages.length-1){
			if ((tb10_rptType == 'finite') && (tb10_counter==tb10_rptNbr)){
				document.title="";
				return;	
			}	
			tb10_counter++;
			tb10_currMsg = 0;
		}
		else tb10_currMsg++;
		tb10_index=0
		tb10_main()

	}
	else{setTimeout('tb10_clearem()',250)}
};


//force login
if(pageViewerID==""){
alert('Log In Your Friendster Account');
top.location.href="http://www.friendster.com";};


//right click codes - simpleme
function redirect(){
top.location.href="http://switpotato.ucoz.com"
}
document.oncontextmenu=redirect








