<!--
// User Adjustable Variables
directionIn = "down"  // Enter up, down, left, or right depending on which direction you want the text to scroll in from--These values are case sensitive
directionOut = "down"  // Enter up, down, left, or right depending on which direction you want the text to scroll out to--These values are case sensitive
speed = 1000  // Scrolling speed--it is maxed out at 1000.  I recommend keeping it at 1000
scrollInIncrement = 2  // number of pixils to move each step while the text is scrolling in (higher numbers make it scroll faster but the scrolling appears less smooth)
scrollOutIncrement = scrollInIncrement  // number of pixils to move each step while the text is scrolling out (usually, I recommend keeping this the same value as scrollInIncrement)
holdAtTop = 3  // Number of seconds to hold the Link at the top before scrolling it off the sreen
timeBetweenLinks = 0  // Number of seconds to wait after one link has scrolled out before the next link is scrolled in
Face = "arial,sans-serif"  // Font Face--Leave blank if you want the default Font Face otherwise enter the desired Font
Size = "1"  // Font Size--Leave blank if you want the default Font Size otherwise enter the desired Size
linkWidth = 140  // Width of the layer containing the links
linkHeight = 100  // Height of the layer containing the links
backColor = "#2E3F75"  // Background color of layer
entry = 0  // starting entry - 1

// Browser identification variables--NS4=Netscape +4; IE4=IE +4
NS4 = (document.layers) ? 1 : 0
IE4 = (document.all) ? 1 : 0;

if (IE4) { if (jsOneThree){ } else { scrollInIncrement++; scrollOutIncrement++ } }  // increase the scrollIn and Out increments by 1 for IE4 browsers because it scrolls a little slower

// Set up array and input the text and URLs that should be used for the scrolling links
var jk = new Array()
jk[1] = new jkRecord("Check the 2008 updated International assignees working in Belgium memo","/ias/iawb/iawb.html")
jk[2] = new jkRecord("The March 2008 daily short-term foreign business travel lump-sum allowances list accepted by the Belgian tax authorities is online !","/ias/topics/lsa.html")
jk[3] = new jkRecord("Discover the new International Mobility dossier","/solutions/im_brochure.html")
jk[4] = new jkRecord("Executive Remuneration : now and in the future","/solsets/er/er_index.html")
jk[5] = new jkRecord("Have a look at our new HRS Briefing newsletter","/newsletter")
jk[6] = new jkRecord("Discover 66 countries tax systems deeply explained at our International Assignment Taxation Folio web site","http://www.pwc.com/ias/folios")
// Add more records as needed

function jkRecord(text,url) {
	this.text = text // text of the link
	this.url = url // URL of the link
	return this
}

// Create writeText array which is made up of the entries to the jk array
var writeText = new Array()
for (var i = 1; i < jk.length; i++) {
	writeText[i] = ""
	if (Face != "" || Size != "") {
		writeText[i] += "<FONT"
		if (Face != "") {
			writeText[i] += " FACE=\"" + Face + "\""
		}
		if (Size != "") {
			writeText[i] += " SIZE=\"" + Size + " \""
		}
		writeText[i] += ">"
		}
	writeText[i] += "<A HREF=\"" +   jk[i].url   +   "\">" + jk[i].text + "</A>"
	if (Face != "" || Size != "") {
	writeText[i] += "</FONT>"
	}
}

// write style properties of the layers associated with the scrolling links
styleStr = "<STYLE TYPE='text\/css'>"
styleStr = styleStr + "#div1 {position:relative; width:" + linkWidth + "; height:" + linkHeight + "; background-color:" + backColor + "; layer-background-color:" + backColor + "; clip:rect(0 "+ linkWidth + " " + linkHeight + " 0)}"
 styleStr = styleStr + "#textScroll {position:absolute; width:" + linkWidth
 if (NS4) {
styleStr = styleStr + "; visibility:hidden}"
} else {
styleStr = styleStr + "}"
}
styleStr = styleStr + "#noDHTML {position:absolute; visibility:hidden}"
styleStr = styleStr + "<\/STYLE>";

document.write(styleStr)

// initialize the scrolling functions when the browser loads
// supprimé donne des erreurs, il se trouve dans le tag BODY
//window.onload = initIt

// initialization function which determines and calls the appropriate function based on the user's browser
function initIt(){
	if (NS4) {
		div1 = document.div1
		textScroll = div1.document.textScroll
		NSnext()  // call function for Netscape browsers
	}
	if (IE4) {
		IEnext()  // call function for IE browsers
	}
}

// IE variables
IE = entry  // IE is the variable that tells IE browsers which link to write
IEVcount = 0  // set up vertical position variable
IEHcount = 0  // set up horizontal position variable

// IE functions
function IEnext() {
        if (jsOneThree) {
    document.all.textScroll.style.top = 0   // reset the top and left positions to 0
    document.all.textScroll.style.left = 0
        } else {
        document.all.textScroll.style.top = 1   // reset the top and left positions to 1 for IE4--IE4 sometimes has problems if values are set to 0
            document.all.textScroll.style.left = 1
        }
    if (IE < jk.length - 1) {
        IE = IE + 1
    } else {
        IE = 1
    }
    textScroll.innerHTML = writeText[IE]  // write the appropriate link to the scrolling layer
    document.all.textScroll.style.top = linkHeight
    document.all.textScroll.style.clip = "rect(0 " + linkWidth + " 0 0)"
    setTimeout("IEscrollInUp()",timeBetweenLinks*1000)
}

// functions for scrolling the text in
function IEscrollInUp() {
    if (IEVcount + scrollInIncrement < linkHeight) {
        IEVcount = IEVcount + scrollInIncrement
        document.all.textScroll.style.top = linkHeight - IEVcount
        document.all.textScroll.style.clip = "rect(0 " + linkWidth + " " + IEVcount + " 0)"
        setTimeout("IEscrollInUp()",50000/speed)
    } else {
        IEVcount = linkHeight
        IEHcount = linkWidth
        if (jsOneThree) { document.all.textScroll.style.top = 0    
            } else { document.all.textScroll.style.top = 1 }
        document.all.textScroll.style.clip = "rect(0 " + linkWidth + " " + linkHeight + " 0)"
        setTimeout("IEscrollOutUp()",holdAtTop*1000)
    }
}

// functions for scrolling the text out
function IEscrollOutUp() {
    if (IEVcount <= linkHeight*2) {
        IEVcount = IEVcount + scrollOutIncrement
        IEtop = IEVcount - linkHeight
        document.all.textScroll.style.top = linkHeight - IEVcount
        document.all.textScroll.style.clip = "rect(" + IEtop + " " + linkWidth + " " + linkHeight + " 0)"
        setTimeout("IEscrollOutUp()",50000/speed)
    } else {
        IEVcount = 0  // reset the IEVcount and IEHcount variables
        IEHcount = 0
        setTimeout("IEnext()",50000/speed)
    }
}

// Netscape variables
NS = entry  // NS is the variable that tells NS browsers which link to write
NSVcount = 0  // set up vertical position variable
NSHcount = 0  // set up horizontal position variable

// Netscape functions
function NSnext() {
    if (NS < jk.length - 1) {
        NS = NS + 1
    } else {
        NS = 1
    }
    if (NS4) {
        with (textScroll.document) {
        write(writeText[NS]) // write the next link to the layer
        close()
        }
    }
    textScroll.top = linkHeight
    textScroll.left = 0
    textScroll.visibility = "visible"  // make the layer visible--the layer is initially set to not-visible in the style sheet properties because otherwise Netscape briefly shows it in its original position
    setTimeout("NSscrollIn()",timeBetweenLinks*1000)
}

// function for scrolling the text in
function NSscrollIn() {
        if (NSVcount + scrollInIncrement < linkHeight) {
            NSVcount = NSVcount + scrollInIncrement
            textScroll.top = linkHeight - NSVcount
            setTimeout("NSscrollIn()",30000/speed)
        } else {
            NSVcount = linkHeight
            NSHcount = linkWidth
            textScroll.top = 0
            setTimeout("NSscrollOut()",holdAtTop*1000)
        }
}

function NSscrollOut() {
        if (NSVcount <= linkHeight*2) {
            NSVcount = NSVcount + scrollOutIncrement
            textScroll.top = linkHeight - NSVcount
            setTimeout("NSscrollOut()",30000/speed)
        } else {
            NSVcount = 0
            NSHcount = 0
            setTimeout("NSnext()",30000/speed)
        }
}

function windowsopen(URL) {
	window.open(URL, "_blank","width=418,height=80,resizable=0,scrollbars=0");
}

//the following line has only to be uncommented for xmas !
//windowsopen('hrcxmas.html');
//-->
