
// Navigation

navImg = new Array(2)
navImg[0] = new Array()
navImg[1] = new Array()
navs = new Array('','home','news&awards','gallery','profile','commissions','appointments','charity','contact')

for ( i = 1 ; i <= navs.length; i++ ) {
	navImg[1][i] = new Image()
	navImg[1][i].src = "nav/" + navs[i] + "H.gif"
	navImg[0][i] = new Image()
	navImg[0][i].src = "nav/" + navs[i] + ".gif" }

function nav(o,e) { document.images["nav" + o].src = navImg[e][o].src }


// Fading random Message

fadeColors = new Array("7D7Dff","8484FF","8A8AFF","9090FF","9797FF","9E9EFF","A4A4FF","AAAAFF","B1B1FF","B8B8FF","BEBEFF","C4C4FF","CBCBFF","D2D2FF","D8D8FF","DEDEFF","E5E5FF","ECECFF","F2F2FF","F8F8FF","FFFFFF")
	fadeOn = fadeColors.length-1

mess = new Array()
mess[1] = "There is only one beutiful child in the world... || ...Every mother has one."
mess[2] = "There is nothing in the world... || ...More important than family."
mess[3] = "Before you know it they've all grown up, || ...Capture it! Before it's too late."
mess[4] = "Children love the outdoors, || ...it's natural for them to want to run and play."
mess[5] = "&nbsp; &nbsp; &nbsp; Natural,&nbsp; &nbsp; &nbsp; fun... || ...Innovative photography"
mess[6] = "You keep putting it off having the children's portrait done... || ...but they don't put off growing up!!"
mess[7] = "....Timeless .... Priceless.... || ...BOOK NOW!"
mess[8] = "...Gift Vouchers available... || ...The perfect gift for every occasion."
mess[9] = "...Make over package available!! || ...Feel like a model for a day!!"

del1 = 1 // Delay between each message and its parts
del2 = 8 // Stay Time

function randMess() {
	num = Math.floor(Math.random()*(mess.length-1))+1

	if ( document.all ) {
		document.all['messCont0'].innerHTML = "<font face=\"CASMIRA,Freestyle Script,Script MT Bold\" color=\"#" + fadeColors[fadeOn] + "\" size=\"6\">" + mess[num].split(' || ')[0] + "</font>"
		document.all['messCont1'].innerHTML = "<font face=\"CASMIRA,Freestyle Script,Script MT Bold\" color=\"#" + fadeColors[fadeOn] + "\" size=\"6\">" + mess[num].split(' || ')[1] + "</font>"
	} else {
		document.getElementById('messCont0').innerHTML = "<font face=\"CASMIRA,Freestyle Script,Script MT Bold\" color=\"#" + fadeColors[fadeOn] + "\" size=\"6\">" + mess[num].split(' || ')[0] + "</font>"
		document.getElementById('messCont1').innerHTML = "<font face=\"CASMIRA,Freestyle Script,Script MT Bold\" color=\"#" + fadeColors[fadeOn] + "\" size=\"6\">" + mess[num].split(" || ")[1] + "</font>" }
	setTimeout("fadeIn('0')",(del1*1000)) }

function fadeIn(messOn) {
	if ( document.all ) {
		document.all['messCont'+messOn].innerHTML = "<font face=\"CASMIRA,Freestyle Script,Script MT Bold\" color=\"#" + fadeColors[fadeOn] + "\" size=\"6\">" + mess[num].split(' || ')[messOn] + "</font>"
	} else {
		document.getElementById('messCont'+messOn).innerHTML = "<font face=\"CASMIRA,Freestyle Script,Script MT Bold\" color=\"#" + fadeColors[fadeOn] + "\" size=\"6\">" + mess[num].split(' || ')[messOn] + "</font>" }

	if ( fadeOn == 0 ) {
		if ( messOn == 0 ) {
			fadeOn = fadeColors.length-1
			setTimeout('fadeIn(1)',(del1*1000))
		} else { setTimeout('fadeOut()',(del2*1000)) }
	} else {
		fadeOn --
		repFadeIn = setTimeout('fadeIn(' + messOn + ')',100) } }

function fadeOut() {
	if ( document.all ) {
		document.all['messCont0'].innerHTML = "<font face=\"CASMIRA,Freestyle Script,Script MT Bold\" color=\"#" + fadeColors[fadeOn] + "\" size=\"6\">" + mess[num].split(' || ')[0] + "</font>"
		document.all['messCont1'].innerHTML = "<font face=\"CASMIRA,Freestyle Script,Script MT Bold\" color=\"#" + fadeColors[fadeOn] + "\" size=\"6\">" + mess[num].split(' || ')[1] + "</font>"
	} else {
		document.getElementById('messCont0').innerHTML = "<font face=\"CASMIRA,Freestyle Script,Script MT Bold\" color=\"#" + fadeColors[fadeOn] + "\" size=\"6\">" + mess[num].split(' || ')[0] + "</font>"
		document.getElementById('messCont1').innerHTML = "<font face=\"CASMIRA,Freestyle Script,Script MT Bold\" color=\"#" + fadeColors[fadeOn] + "\" size=\"6\">" + mess[num].split(" || ")[1] + "</font>" }
	if ( fadeOn == fadeColors.length-1 ) {
		setTimeout('randMess()',(del1*1000))
	} else {
		fadeOn ++
		repFadeOut = setTimeout('fadeOut()',100) } }

