
// set your messages. Add as many as you like (you may add additional HTML-tags)
var text=new Array()
text[0]="Civil Service Council "
text[1]="Services Guidebook "
text[2]="Civil Service Statute"

text[3]="Services in CSB"

text[4]="Annual Report for CSB"
text[5]="Statistical Bulletin"
text[6]="Bulletin of Specializations"
text[7]="Responsible Authority  "

text[8]="Instructions for Job Seekers "
text[9]="The CSB Role in Employment "
text[10]="Terms of Appointment"
text[11]="How Submitting an Application"
text[12]="Appointments on Human Cases"
text[13]="Competitive Exams Mechanism"
text[14]="Recruitment Affairs Inquiries"

text[15]="Duties of the Public Employee"
text[16]="Rights of the Public Employee "
text[17]="Employments Categories "
text[18]="Employees Affairs Committees"
text[19]="Raises and Salaries "
text[20]="Appointment Procedures"
text[21]="Period of Trial and Fixation"
text[22]="Personnel Affairs Procedures"
text[23]="Decisions related to Employees"
text[24]="Personnel Affairs Inquiries"

text[25]="Scholarships advices"
text[26]="Scholarships Committee"
text[27]="Scholarship Conditions"
text[28]="Training Course Conditions"
text[29]="Conditions of Scholarship"
text[30]="Basics & Standards of Courses"
text[31]="The Delegates Duties"
text[32]="Scholarship & Course Inquiries"

text[33]="See CSB Statistcs"

text[34]="link on all Governmenta sites"

text[35]="Bank of Questions and Answers"
text[36]="You Aske and CSB Answered "

text[37]="Download the Regulations"

text[38]="Search in this sit"

text[39]="Sit map"

text[40]="Telphon numbers in CSB"



// set the corresponding links 
// If you don't want to link a message just add a "#" instead of an URL
var textlink=new Array()
textlink[0]="../About CSB/council.htm"
textlink[1]="../About CSB/service gide.htm"
textlink[2]="../About CSB/civil service statue.htm"

textlink[3]="../services/service name.htm"

textlink[4]="../csb prints/anual report.htm"
textlink[5]="../csb prints/statistical brochure/statistical brochure.htm"
textlink[6]="../csb prints/brochure subject gide.htm"
textlink[7]="../csb prints/reference.htm"

textlink[8]="../Recruitment Affairs/introduction.htm"
textlink[9]="../Recruitment Affairs/csb role.htm"
textlink[10]="../Recruitment Affairs/selecting emp.htm"
textlink[11]="../Recruitment Affairs/application steps.htm"
textlink[12]="../Recruitment Affairs/human case.htm"
textlink[13]="../Recruitment Affairs/examp mechanezm.htm"
textlink[14]="../Recruitment Affairs/grievance recrui.htm"

textlink[15]="../personnel Affairs/emp duty.htm"
textlink[16]="../personnel Affairs/emp right.htm"
textlink[17]="../personnel Affairs/emptypr jobtyp.htm"
textlink[18]="../personnel Affairs/emp committee.htm"
textlink[19]="../personnel Affairs/allowances salary.htm"
textlink[20]="../personnel Affairs/assign experins.htm"
textlink[21]="../personnel Affairs/fix interval.htm"
textlink[22]="../personnel Affairs/functional.htm"
textlink[23]="../personnel Affairs/laws exposition.htm"
textlink[24]="../personnel Affairs/grievance personnel.htm"

textlink[25]="../scholarship/introduction.htm"
textlink[26]="../scholarship/scholar training committee.htm"
textlink[27]="../scholarship/scholarship condition.htm"
textlink[28]="../scholarship/training condition.htm"
textlink[29]="../scholarship/scholarship point.htm"
textlink[30]="../scholarship/training point.htm"
textlink[31]="../scholarship/resposipility.htm"
textlink[32]="../scholarship/grievance scholar.htm"

textlink[33]="../statistcs/all stat.htm"

textlink[34]="../links/links.htm"

textlink[35]="../FAQ/questions.htm"
textlink[36]="../FAQ/send email.htm"

textlink[37]="../Downloads/Downloads.htm"

textlink[38]="../search engin/site serch.htm"

textlink[39]="../sit map/map.htm"

textlink[40]="../contact us/phon number.htm"



// set the corresponding targets 
// Acceptable values are "_blank", "_self", "_top" or the name of any frame
var texttarget=new Array()
texttarget[0]="_self"
texttarget[1]="_self"
texttarget[2]="_self"
texttarget[3]="_self"
texttarget[4]="_self"
texttarget[5]="_self"
texttarget[6]="_self"
texttarget[7]="_self"
texttarget[8]="_self"
texttarget[9]="_self"
texttarget[10]="_self"
texttarget[11]="_self"
texttarget[12]="_self"
texttarget[13]="_self"
texttarget[14]="_self"
texttarget[15]="_self"
texttarget[16]="_self"
texttarget[17]="_self"
texttarget[18]="_self"
texttarget[19]="_self"
texttarget[20]="_self"
texttarget[21]="_self"
texttarget[22]="_self"
texttarget[23]="_self"
texttarget[24]="_self"
texttarget[25]="_self"
texttarget[26]="_self"
texttarget[27]="_self"
texttarget[28]="_self"
texttarget[29]="_self"
texttarget[30]="_self"
texttarget[31]="_self"
texttarget[32]="_self"
texttarget[33]="_self"
texttarget[34]="_self"
texttarget[35]="_self"
texttarget[36]="_self"
texttarget[37]="_self"
texttarget[38]="_self"
texttarget[39]="_self"
texttarget[40]="_self"

// set the font of the messages
var textfont="Arial"

// set the font-color of the messages
var textfontcolor="#FFFFFF"

// set the rollover-fontcolor of the messages
var textfontcolorrollover="#FF0000"

// set the font-size of the messages (CSS-values)
var textfontsize=11

// set the font-size for Netscape 4x (HTML-values)
var textfontsizeHTML=2

// set the font backgroundcolor of the textbox
var textbgcolor="#150996"

// set the textweight (normal or bold)
var textweight="bold"

// set the fontstyle (normal or italic)
var textitalic="normal"

// set the width of the textbox (pixels)
var textwidth=240

// set the height of the textbox (pixels)
var textheight=40

// set the pause (seconds)
var textpause=3

// set the width of the border
var textborder=2

// set the color of the border
var textbordercolor="#FFffff"

// set the horizontal alignment of the messages (center, left, right)
var textalign="center"

// set the vertival alignment of the messages (middle, top, bottom)
var textvalign="middle"

// do not edit below this line
var textdecoration="none"
var textweightA="<b>"
var textweightB="</b>"
var textitalicA=""
var textitalicB=""
var transparency=100
var transparencystep=2

var x_pos=0
var y_pos=0
var i_text=0
var textsplit=""
var i_textsplit=0
var i_mark=0
var tickercontent
var pausefade=30
textpause*=1000

var oneloopfinished=false

var browserinfos=navigator.userAgent 
var ie=document.all&&!browserinfos.match(/Opera/)
var ns4=document.layers
var ns6=document.getElementById&&!document.all&&!browserinfos.match(/Opera/)
var opera=browserinfos.match(/Opera/)  
var browserok=ie||ns4||ns6||opera

function changecontent() {
	getcontent()
	i_text++
	if (i_text>=text.length) {i_text=0}	
	if (ie) {
		ticker.innerHTML=content
		fadeout()
	}
	if (opera || ns6) {
		document.getElementById('ticker').innerHTML=content
		var texttimer=setTimeout("changecontent()",2*textpause)
	}
	if (ns4) {
		document.roof.document.ticker.document.write(content)
		document.roof.document.ticker.document.close()
		var texttimer=setTimeout("changecontent()",textpause)
	}	
}

function fadein() {
	if (transparency<100){
		transparency+=transparencystep
		if (ie) {
			document.all.tickerbg.filters.alpha.opacity=transparency
		}
		var fadetimer=setTimeout("fadein()",pausefade)
	}
	else {
		clearTimeout(fadetimer)
		setTimeout("changecontent()",1000)
	}
}

function fadeout() {
	if (transparency>0){
		transparency-=transparencystep
		if (ie) {
			document.all.tickerbg.filters.alpha.opacity=transparency
		}
		if (ns6) {
			document.getElementById('tickerbg').style.MozOpacity=transparency/100
		}
		var fadetimer=setTimeout("fadeout()",pausefade)
	}
	else {
		clearTimeout(fadetimer)
		setTimeout("fadein()",textpause)
	}
}

getcontent()
function getcontent() {
	if (ie || opera) {
		var tablewidth=textwidth-2*textborder
		var tableheight=textheight-2*textborder
	}
	else {
		var tablewidth=textwidth
		var tableheight=textheight
	}
	if (ie || ns6) {	
		var padding=parseInt(textborder)+3
		content="<table width="+tablewidth+" height="+tableheight+" cellpadding="+padding+" cellspacing=0 border=0><tr valign="+textvalign+"><td align="+textalign+">"
		content+="<a href=\""+textlink[i_text]+"\" target=\""+texttarget[i_text]+"\" style=\"position:relative;font-family:\'"+textfont+"\';font-size:"+textfontsize+"pt;font-weight:"+textweight+";text-decoration:"+textdecoration+";color:"+textfontcolor+";font-style:"+textitalic+";\" onMouseOver=\"this.style.color=\'"+textfontcolorrollover+"\'\" onMouseOut=\"this.style.color=\'"+textfontcolor+"\'\">"
		content+=text[i_text]
		content+="</a></td></tr></table>"
	}
	else {	
		content="<table width="+tablewidth+" height="+tableheight+" cellpadding="+textborder+" cellspacing=0><tr valign="+textvalign+"><td align="+textalign+">"
		content+="<a href=\""+textlink[i_text]+"\" target=\""+texttarget[i_text]+"\" style=\"position:relative;font-family:\'"+textfont+"\';font-size:"+textfontsize+"pt;font-weight:"+textweight+";text-decoration:"+textdecoration+";color:"+textfontcolor+";font-style:"+textitalic+";\">"
		content+=text[i_text]
		content+="</a></td></tr></table>"

		framecontent="<table width="+tablewidth+" height="+tableheight+" cellpadding=0 cellspacing=0 border="+textborder+"><tr><td>"
		framecontent+="<font color=\""+textbgcolor+"\">"
		framecontent+="."
		framecontent+="</font>"
		framecontent+="</td></tr></table>"
	}
}

if (ie || ns6 || opera) {
	if (ns6) {
		textwidth-=2*textborder
		textheight-=2*textborder
	}
	document.write("<div id=\"roof\" style=\"position:relative;width:"+textwidth+"px;height:"+textheight+"px;font-family:\'"+textfont+"\';border-style:solid;border-color:"+textbordercolor+";border-width:"+textborder+"px;background-color:"+textbgcolor+";\">")
	
	if (!opera && !ns6 ) {
		document.write("<div id=\"tickerbg\" style=\"position:absolute;top:"+-textborder+"px;left:"+-textborder+"px;width:"+textwidth+"px;height:"+textheight+"px;font-family:\'"+textfont+"\';font-size:"+textfontsize+"pt;font-weight:"+textweight+";font-style:"+textitalic+";border-style:solid;border-color:"+textbordercolor+";border-width:"+textborder+"px;background-color:"+textfontcolor+";overflow:hidden\;filter:alpha(opacity=100)\">")
		document.write("</div>")
	}
	
	document.write("<div id=\"ticker\" style=\"position:absolute;top:"+-textborder+"px;left:"+-textborder+"px;width:"+textwidth+"px;height:"+textheight+"px;font-family:\'"+textfont+"\';font-size:"+textfontsize+"pt;font-weight:"+textweight+";font-style:"+textitalic+";border-style:solid;border-color:"+textbordercolor+";border-width:"+textborder+"px;overflow:hidden\;\">")
	document.write("</div></div>")

	window.onload=changecontent
}

else if (ns4) {
	document.write("<ilayer name=\"roof\" width="+textwidth+" height="+textheight+">")
		document.write("<layer name=\"tickerframe\" width="+textwidth+" height="+textheight+" top=0 left=0 bgcolor="+textbgcolor+">")
		document.write(framecontent)
		document.write("</layer>")
		document.write("<layer name=\"ticker\" width="+textwidth+" height="+textheight+" top=0 left=0>")
		document.write()
		document.write("</layer>")
	document.write("</ilayer>")
	window.onload=changecontent
}
