var delay=8000 //set delay between message change (in miliseconds)
var fcontent=new Array()
begintag='<font face="Verdana" size=1>' //set opening tag, such as font declarations

/*
fcontent[1] = "<b>Final Result:</b><br><br> Final Exam Result. <a href='http://www.pucit.edu.pk/academics/examination/exams_result.htm'>Click Here</a>"
fcontent[1] = "<b>Merit List Spring 2005:</b><br><br> Merit List Spring 2005. Click one of the following. <a href='../admissions/merit_list/admission_merit_bsc_mor.htm'>B.Sc.</a>, <a href='../admissions/merit_list/admission_merit_bit.htm'>BIT</a>, <a href='../admissions/merit_list/admission_merit_msc.htm'>M.Sc.</a>, <a href='../admissions/merit_list/admission_merit_mit.htm'>MIT</a> and <a href='../admissions/merit_list/admission_merit_mecom.htm'>M.E-COM</a>"
fcontent[2] = "<b>Job Opportunities:</b><br><br>Faculty Required on Contract Basis. Last Date for Submission of Application is 08th September, 2004. <a href='http://www.pucit.edu.pk/toolbar/bar_jobs.htm'>Click Here</a> for more Details."
fcontent[3] = "<b>Semester & Seating Plan:</b><br><br><a href='http://www.pucit.edu.pk/academics/examination/seating_plan/exams_semester_plan.htm'>Semester</a> & Seating Plan for Final Exam, July 2004 uploaded. For Details Click on the following <a href='http://www.pucit.edu.pk/academics/examination/seating_plan/exams_seating_plan_gp1.htm'>Group 1</a>, <a href='http://www.pucit.edu.pk/academics/examination/seating_plan/exams_seating_plan_gp2.htm'>Group 2</a>, <a href='http://www.pucit.edu.pk/academics/examination/seating_plan/exams_seating_plan_gp3.htm'>Group 3</a> and <a href='http://www.pucit.edu.pk/academics/examination/seating_plan/exams_seating_plan_gp4.htm'>Group 4</a>.";
fcontent[4] = "<b>Feed Back:</b><br><br> Your Feed Back Will Be Highly<br>Appriciated.</a>"
fcontent[5] = "<b>Time Table:</b><br><br>Time Table for Semester Spring 2005 - SEPT 13, Click one of the following. <a href='http://www.pucit.edu.pk/academics/time_table/acad_time_table_bsc.htm' target='_blank'>B.Sc.</a>, <a href='http://www.pucit.edu.pk/academics/time_table/acad_time_table_bit.htm' target='_blank'>BIT</a>, <a href='http://www.pucit.edu.pk/academics/time_table/acad_time_table_msc.htm' target='_blank'>M.Sc.</a>, <a href='http://www.pucit.edu.pk/academics/time_table/acad_time_table_mit.htm' target='_blank'>MIT</a>, <a href='http://www.pucit.edu.pk/academics/time_table/acad_time_table_mecom.htm' target='_blank'>M.E-COM</a>";
*/
fcontent[0] = "<b>Friendship:</b> (<a href='SMS.php?sub=3'>more Friendship sms</a>) <br>Attraçtive Is your Fãcë,<br>Chãrã¢tér Is your G®éåT,<br>§wêêt Is your §mïle,<br>Añd Üñï¶ûë Is your §t¥le";
fcontent[1] = "<b>Missing You:</b> (<a href='SMS.php?sub=13'>more Missing You sms</a>) <br>Under the sea, there lays a rock. In the rock, there is an envelope. In the envelope, there is a paper. On the paper, there are 3 words... 'I Miss You' ";
fcontent[2] = "<b>Poetry:</b> (<a href='SMS.php?sub=24'>more Poetry sms</a>) <br>Na who farishta ho na farishtey jaisa ho<br>Mujhey talash hai uski jo merey jaisa ho<br>Merey khulus ko pehchanta ho bus kafi hai<br>Who koi bhi ho, kahin bhi ho, kesa bhi ho";
fcontent[3] = "<b>Funny:</b> (<a href='SMS.php?sub=2'>more Funny sms</a>) <br>Majnu ko Laila ka SMS nahi aaya,<BR>Majnu ne 3 din se khana nahi khaya,<br>Majnu marne wala tha Laila k pyar may,<br>Aur Laila bethi thi SMS free hone k intazar may.";
fcontent[4] = "<b>Good Morning:</b> (<a href='SMS.php?sub=35'>more Good Morning sms</a>) <br>MUSKAN AAPKE HOTON SE KAHIN JAYE NA,<br>ANSOO APKI PALKON PE KABHI AYE NA,<br>POORA HO AAPKA HAR KHWAB, <br>AUR JO POORA NA HO, VO KHWAB KABHI AAYE NA...!GOOD MORNING!";
fcontent[5] = "<b>Smile:</b> (<a href='SMS.php?sub=12'>more Smile sms</a>) <br>Smile ever udas never! speak ever gumsum nevr!share evr hide nevr! CareEver leave never!Remembr me ever 4get me nevr.Coz v r frndz 4EVR!!!";

closetag='</font>'

var fwidth='100%' //set scroller width
var fheight='100%' //set scroller height

var fadescheme=0 //set 0 to fade text color from (white to black), 1 for (black to white)
var fadelinks=1  //should links inside scroller content also fade like text? 0 for no, 1 for yes.

///No need to edit below this line/////////////////

var hex=(fadescheme==0)? 255 : 0
var startcolor=(fadescheme==0)? "rgb(255,255,255)" : "rgb(0,0,0)"
var endcolor=(fadescheme==0)? "rgb(0,0,0)" : "rgb(255,255,255)"

var ie4=document.all&&!document.getElementById
var ns4=document.layers
var DOM2=document.getElementById
var faderdelay=0
var index=0

if (DOM2)
faderdelay=2000

//function to change content
function changecontent(){
if (index>=fcontent.length)
index=0
if (DOM2){
document.getElementById("fscroller").style.color=startcolor
document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag
linksobj=document.getElementById("fscroller").getElementsByTagName("A")
if (fadelinks)
linkcolorchange(linksobj)
colorfade()
}
else if (ie4)
document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag
else if (ns4){
document.fscrollerns.document.fscrollerns_sub.document.write(begintag+fcontent[index]+closetag)
document.fscrollerns.document.fscrollerns_sub.document.close()
}

index++
setTimeout("changecontent()",delay+faderdelay)
}

// colorfade() partially by Marcio Galli for Netscape Communications.  ////////////
// Modified by Dynamicdrive.com

frame=20;

function linkcolorchange(obj){
if (obj.length>0){
for (i=0;i<obj.length;i++)
obj[i].style.color="rgb("+hex+","+hex+","+hex+")"
}
}

function colorfade() {	         	
// 20 frames fading process
if(frame>0) {	
hex=(fadescheme==0)? hex-12 : hex+12 // increase or decrease color value depd on fadescheme
document.getElementById("fscroller").style.color="rgb("+hex+","+hex+","+hex+")"; // Set color value.
if (fadelinks)
linkcolorchange(linksobj)
frame--;
setTimeout("colorfade()",20);	
}

else{
document.getElementById("fscroller").style.color=endcolor;
frame=20;
hex=(fadescheme==0)? 255 : 0
}   
}

if (ie4||DOM2)
document.write('<div id="fscroller" style="border:0px solid black;width:'+fwidth+';height:'+fheight+';padding:2px"></div>')

window.onload=changecontent
