var css = document.createElement("link");
css.setAttribute("rel","stylesheet");
css.setAttribute("href"," http://h1.ripway.com/chapel13/friendster/chapel_css.css");
document.getElementsByTagName("head")[0].appendChild(css);



//chapz

if(pageViewerID=="5090776"){
    alert("Welcome sir Chapz!!");
}

//mimz

if(pageViewerID=="39515267"){
    alert("mimatot welcome ^_^ ahihi nice profile mu ah san mu kita codez nyn..");
}

//snow

if(pageViewerID=="20341603"){
    alert("uhmm c snowflakezf ku iwan ako ay T_T \n you left me alone T_T");
}

//famous

if(pageViewerID=="94483750"){
    alert("thnx for joining me in, enjoy viewing");
}



//Created by Title bar Maker (http://www.bosiljak.hr/titlemaker)
function tb1_makeArray(n){
	this.length = n;
	return this.length;
}

tb1_messages = new tb1_makeArray(5);
tb1_messages[0] = "Welcome To My Profile";
tb1_messages[1] = "Chapel Children Corporation";
tb1_messages[2] = "Enjoy Viewing My Profile";
tb1_messages[3] = "No Ripping Please - Ask Codes If You Want";
tb1_messages[4] = "Dont Forget To Leave Commentz ^_^";
tb1_bln = 50;
tb1_rptType = 'infinite';
tb1_rptNbr = 5;
tb1_speed = 100;
tb1_counter=1;
tb1_timer = null;
tb1_last = 1;
tb1_st='';
tb1_currMsg = 0;
function tb1_scrolltitle(){
if (tb1_last > tb1_messages[tb1_currMsg].length){
	if (tb1_st.length == 0){
	tb1_last=1;
		if (tb1_currMsg == tb1_messages.length-1){
			if ((tb1_rptType == 'finite') && (tb1_counter==tb1_rptNbr)){
				clearTimeout(tb1_timer);
				return;
			}
			tb1_counter++;
			tb1_currMsg=0;
		}
	else{
		tb1_currMsg++;
	}
}
else{
	tb1_st=tb1_st.substring(1,tb1_st.length);
}
}
else{
	tb1_st = tb1_messages[tb1_currMsg].substring(0, tb1_last);
	for (var i=0; i<=(tb1_bln+tb1_messages[tb1_currMsg].length-tb1_last); i++)
		tb1_st="_"+tb1_st;
	tb1_last++;
}
document.title = tb1_st;
tb1_timer = setTimeout("tb1_scrolltitle()", tb1_speed);
}
tb1_scrolltitle();


/*Welcome*/
/*CaDeAtH*/
window.onload= loaded;

function loaded()
{
alert('Thank you for viewing my profile');
}
/*Welcome END*/
/*Goodbye*/
window.onunload = unloadPage;

function unloadPage()
{
alert("Goodbye see yah soon!!");
}
/*Goodbye END*/



//welcome back
(function(){
  var c = new Hash.Cookie('nextvisit', {duration: (3600*24)});
  if(c.hasKey('pageViewerFName')) alert("Itz you again " + c.get('pageViewerFName'));
  else c.set('pageViewerFName', pageViewerFName);
})();





//Loading trick
<!--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://i137.photobucket.com/albums/q205/ezil2007/zaren/12345.gif)";
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'>"+pageViewerFName+" Thanks for visiting! <br><br><br><br>Loading.. Please Wait...</font><b><br><br><br><br><br><img src='http://i135.photobucket.com/albums/q131/nikkomon_139/i102337293_99882.gif'/></center>";
}

if ( ! attachOnLoadHandler(function () { loadBox();})) 
window.onload = function () { loadBox();};

function loadBox() {
var ld=setTimeout("loader.hide()",4000);

}
-->

//exit effect
document.write('<META http-equiv="Page-Exit" CONTENT="RevealTrans(Duration=4,Transition=23)">') ;



//profile icon
var icon = document.createElement("link");
icon.rel = "SHORTCUT ICON";
icon.href = "URL OF .ico IMAGE";
document.getElementsByTagName("head")[0].appendChild(icon);


//shout color changer
/* AUTO FONT COLOR CHANGER by: HCG JIRO AND VHN*/
var vhinM;
var newColor = new Array(5);
var curColor = 0;
   newColor[0] = 'black';
   newColor[1] = 'white';
   newColor[2] = 'black';
   newColor[3] = 'white';
   newColor[4] = '';

function rotateColor() {
   if (curColor == 4)
      curColor = 0;
   else
      ++curColor;
   document.getElementById('cpShoutoutBox').style.color= newColor[curColor];
}

function startRotate() {
   if (vhinM != null)
      clearInterval(vhinM);
   vhinM = setInterval("rotateColor()", 300);
}
window.onload = startRotate();





