var msg=new Array();
var LoadNewsTicker = false;

msg[0]="<span class='left_nav_nb'>Sepember 8, 2004</span><br><a class='news_main' HREF='news.php?article_id=757' title='Changes to the Skilled Occupations List and New MODL Occupations'>Changes to the Skilled Occupations List and New MODL Occupations</a>";
msg[1]="<span class='left_nav_nb'>June 28, 2004</span><br><a class='news_main' HREF='news.php?article_id=756' title='Skilled Independent Regional (Provisional) Visa'>Skilled Independent Regional (Provisional) Visa</a>";
msg[2]="<span class='left_nav_nb'>May 20, 2004</span><br><a class='news_main' HREF='news.php?article_id=755' title='Medical practitioners are included on the Skilled Occupations List'>Medical practitioners are included on the Skilled Occupations List</a>";
msg[3]="<span class='left_nav_nb'>April 9, 2004</span><br><a class='news_main' HREF='news.php?article_id=754' title='Australia's Skills and Migrants to Increase'>Australia's Skills and Migrants to Increase</a>";
msg[4]="<span class='left_nav_nb'>April 5, 2004</span><br><a class='news_main' HREF='news.php?article_id=753' title='Changes to the Passmark for General Skilled Migration'>Changes to the Passmark for General Skilled Migration</a>";
msg[5]="<span class='left_nav_nb'>Feb 6, 2004</span><br><a class='news_main' HREF='news.php?article_id=745' title='Australia's Melbourne Retains Title As World's Most Liveable City'>Australia's Melbourne Retains Title As World's Most Liveable City</a>";
msg[6]="<span class='left_nav_nb'>Dec 25, 2003</span><br><a class='news_main' HREF='news.php?article_id=746' title='Australia and France Sign a Working Holiday Maker Arrangement'>Australia and France Sign a Working Holiday Maker Arrangement</a>";
msg[7]="<span class='left_nav_nb'>Dec 18, 2003</span><br><a class='news_main' HREF='news.php?article_id=747' title='Sydney takes world's best city for travelers, outside the US'>Sydney takes world's best city for travelers, outside the US</a>";
msg[8]="<span class='left_nav_nb'>Oct 3, 2003</span><br><a class='news_main' HREF='news.php?article_id=748' title='New Working Holiday Arrangement with Italy'>New Working Holiday Arrangement with Italy</a>";
msg[9]="<span class='left_nav_nb'>Sep 3, 2003</span><br><a class='news_main' HREF='news.php?article_id=749' title='A billion pairs of eyes on Melbourne 2006'>A billion pairs of eyes on Melbourne 2006</a>";
msg[10]="<span class='left_nav_nb'>Sep 3, 2003</span><br><a class='news_main' HREF='news.php?article_id=750' title='Trends point to strong final quarter'>Trends point to strong final quarter</a>";
msg[11]="<span class='left_nav_nb'>July 11, 2003</span><br><a class='news_main' HREF='news.php?article_id=751' title='Skilled Migrant Numbers Increase'>Skilled Migrant Numbers Increase</a>";
// msg[11]="<span class='left_nav_nb'>July 7, 2003</span><br><a class='news_main' HREF='news.php?article_id=752' title='Australia's impending labour shortage'>Australia's impending labour shortage</a>";

LoadNewsTicker = true;

/* The variables below are the ones you want to change  */

speed=28					// Sets the speed in milliseconds at which the link or text scrolls.
var divwidth=136			// Sets the width of the div or layer in pixels.  You will have to play with this to get it set correctly.
var divheight=68			// Sets the height of the div or layer in pixels.  Same as above.

/*
   The variables divincbt, divinctb, divincrl and divinclr set the increment in pixels that the div that contains the text
   or links is moved.  Which one is used is determined by the direction that you pick in the variable whichscroll.
   The variable divinctb would be used if you set whichscroll to 1, divinctb if you set whichscroll to 2, divincrl if
   you set whichscroll to 3 and divinclr if you set whichscroll to 4.  You can change these variables to speed up
   or slow down the movement of the scroll.
*/

var divincbt=1
var divinctb=-1
var divincrl=10
var divinclr=-10

var divpause=3000			// Sets how long to pause in milliseconds before scrolling the next link or text.

var divtop="0"				// divtop and divleft set the top and left positions of the container div or layer in pixels.
var divleft="0"

var divcolor="transparent"	// Sets the background color of the div or layer

var divname1="scroll2"		// Sets the name of your div or layer for the first link or text that is displayed
var divname2="scroll3"		// Sets the name of your div or layer for the next link or text to be displayed

/*
   The variable whichscroll is used to set the direction of the scrolling.  It is currently set to 1.
    1 = Bottom to Top
    2 = Top to Bottom
    3 = Right to Left
    4 = Left to Right
*/
var whichscroll="1"

/* END OF CONFIGURATION VARIABLES */

/* THERE IS NO NEED TO CHANGE THE VARIABLES OR SCRIPTS BELOW */

var divinc
var stopposa
var stopposb
var scrollmsga
var scrollmsgb
var thediva
var thedivb
var posa
var posb
var i=msg.length
var firsttime="y"
var divprop
var whichdiv=divname1
if(whichscroll=="1") {
	stopposa=0
	stopposb=divheight*-1
	divprop="top"
	divinc=divincbt
}
if(whichscroll=="2") {
	stopposa=0
	stopposb=divheight
	divprop="top"
	divinc=divinctb
}
if(whichscroll=="3") {
	stopposa=0
	stopposb=divwidth*-1
	divprop="left"
	divinc=divincrl
}
if(whichscroll=="4") {
	stopposa=1
	stopposb=divwidth+2
	divprop="left"
	divinc=divinclr
}

function Scrollboxa(obja) {
	savobja=obja
	posa=posa-divinc
	if(((whichscroll=="1" || whichscroll=="3")&&(posa<=stopposa))||((whichscroll=="2" || whichscroll=="4")&&(posa>=stopposa))) {
		clearTimeout(scrollmsga)
		setTimeout("scrollit()",divpause)
	} else {
		if(document.getElementById) {					// IE5 and NS6 
			eval("elma.style."+divprop+"=posa")
			elma.style.visibility="visible"
		}
		if(document.layers) {							// NS4+
			eval("obja."+divprop+"=posa")
			document.main.visibility="show"
		}
		scrollmsga=setTimeout("Scrollboxa(savobja)",speed)
	}
}

function Scrollboxb(objb) {
	savobjb=objb
	posb=posb-divinc
	if(((whichscroll=="1" || whichscroll=="3")&&(posb<=stopposb))||((whichscroll=="2" || whichscroll=="4")&&(posb>=stopposb))) {
		clearTimeout(scrollmsgb)
	} else {
		if(document.getElementById) {					// IE5 and NS6
			eval("elmb.style."+divprop+"=posb")
		}
		if(document.layers) {							// NS4+
			eval("objb."+divprop+"=posb")
			objb.visibility="show"
		}
		scrollmsgb=setTimeout("Scrollboxb(savobjb)",speed)
	}
}

function scrollit() {
	i++
	if(i>=msg.length){
		i=0
	}
	posa=stopposb*-1
	posb=0
	if(firsttime=="y") {
		firsttime= "n"
		if(document.getElementById) {					// IE5 and NS6
			elma=document.getElementById(divname1)
			elma.innerHTML=msg[i]
		}
		if(document.layers) {							// NS4+
			thediva=eval("document.main.document."+divname1)
			thediva.document.write(msg[i])
			thediva.document.close()
		}
		Scrollboxa(thediva)
	} else {
		if(whichdiv==divname1) {
			if(document.getElementById) {				// IE5 and NS6
				elmb=document.getElementById(divname1)
				elma=document.getElementById(divname2)
				elma.innerHTML=msg[i]
			}
			if(document.layers) {						//  NS4+
				thedivb=eval("document.main.document."+divname1)
				thediva=eval("document.main.document."+divname2)
				thediva.document.write(msg[i])
				thediva.document.close()
			}
			Scrollboxb(thedivb)
			whichdiv=divname2
			Scrollboxa(thediva)
		} else {
			if(document.getElementById) {				// IE5 and NS6
				elmb=document.getElementById(divname2)
				elma=document.getElementById(divname1)
				elma.innerHTML=msg[i]
			}
			if(document.layers) {						// NS4+
				thedivb=eval("document.main.document."+divname2)
				thediva=eval("document.main.document."+divname1)
				thediva.document.write(msg[i])
				thediva.document.close()
			}
			Scrollboxb(thedivb)
			whichdiv=divname1
			Scrollboxa(thediva)
		}
	}
}