function loadImages() {
	if (document.getElementById) {  // DOM3 = IE5, NS6
	document.getElementById('hidepage').style.visibility = 'hidden';
	}
else {
	if (document.layers) {  // Netscape 4
	document.hidepage.visibility = 'hidden';
	}
	else {  // IE 4
	document.all.hidepage.style.visibility = 'hidden';
      }
   }
}		

var forsta='\<br\>\<br\>\<B\>"When I have Dale on as a guest, I always know that at least one segment will be a winner.\<\/B\>\<br\>\<br\>\<i\>- Bert Newton\<\/i\>';
var andra='\<B\>"In over ten years ...\<br\>I have never seen this group give an entertainer a standing ovation... \<br\>\<br\>They gave Dale two!\<br\> He was an absolute sensation."\<\/B\>\<br\>\<br\>\<i\>- Fiona Styles - Broad Marketing\<\/i\>';
var tredje='\<br\>\<B\>"Dale Burridge is Sensational. \<br\>A voice that sends Chills up your spine. World Class Talent in our own backyard."\<\/B\>\<br\>\<br\>\<i\>- Kevin Jacobsen OAM\<\/i\>';
var fjarde='\<br\>\<br\>\<B\>"Absolutely Amazing Voice - One of Australia\'s finest performers and a load of fun after the show."\<\/B\>\<br\>\<br\>\<i\>- Richard Wilkins\<\/i\>';
var femte='\<br\>\<br\>\<B\>"Can the Man sing or \<br\> can the Man Sing"\<\/B\>\<br\>\<br\>\<i\>- Melbourne Age\<\/i\>';
var sjette='\<br\>\<B\>"..He is a wonderful talent.\<br\>He always delivers.\<br\>Plus he\'s an absolute delight to work with"\<\/B\>\<br\>\<br\>\<i\>- Bert Newton\<\/i\>';
var sjunde='\<br\>\<br\>\<br\>\<B\>"I Loved Dale\'s Performance it was a totally Satisfying evening"\<\/B\>\<br\>\<br\>\<i\>- Jill Perryman\<\/i\>';

var texts = new Array(
"<font  id='message'>" + forsta + "</font>",
"<font  id='message'>" + andra  + "</font>",
"<font  id='message'>" + tredje + "</font>",
"<font  id='message'>" + fjarde + "</font>",
"<font  id='message'>" + femte  + "</font>",
"<font  id='message'>" + sjette + "</font>",
"<font  id='message'>" + sjunde + "</font>"
);

var textStr = new Array(
forsta,
andra,
tredje,
fjarde,
femte,
sjette,
sjunde
);

var bgcolor = "#203B66"; 
var fcolor = "#203B66";  
var steps = 6; 
var show = 4500; 
var sleep = 50; 
var loop = true; 
var colors = new Array(steps);
getFadecolors(bgcolor,fcolor,colors);
var color = 1;
var text = 0;
var step = 1;


function fade() {

var text_out = texts[text].replace("{COLOR}", colors[color]); 

if (document.all) {content.innerHTML = text_out;} 
if (document.getElementById) {document.getElementById("content").innerHTML = text_out;}

color += step; 

if (color >= colors.length-1) {
step = -1;

if (!loop && text >= texts.length-1) return;
}

if (color == 0) {
step = 1;
text += 1;
if (text == texts.length) text = 0;
}

setTimeout("fade()", (color == colors.length-1 && step == -1) ? show : ((color == 1 && step == 1) ? sleep : 50));
}

function getFadecolors(ColorA, ColorB, colors) {
len = colors.length; 

if (ColorA.charAt(0)=='#') ColorA = ColorA.substring(1);
if (ColorB.charAt(0)=='#') ColorB = ColorB.substring(1);

var r = HexToInt(ColorA.substring(0,2));
var g = HexToInt(ColorA.substring(2,4));
var b = HexToInt(ColorA.substring(4,6));
var r2 = HexToInt(ColorB.substring(0,2));
var g2 = HexToInt(ColorB.substring(2,4));
var b2 = HexToInt(ColorB.substring(4,6));

var rStep = Math.round((r2 - r) / len);
var gStep = Math.round((g2 - g) / len);
var bStep = Math.round((b2 - b) / len);

for (i = 0; i < len-1; i++) {
colors[i] = "#" + IntToHex(r) + IntToHex(g) + IntToHex(b);
r += rStep;
g += gStep;
b += bStep;
}
colors[len-1] = ColorB; 
}

function IntToHex(n) {
var result = n.toString(16);
if (result.length==1) result = "0"+result;
return result;
}

function HexToInt(hex) {
return parseInt(hex, 16);
}

//-------------------------------small menue-------------------------------------------		

var origWidth, origHeight;
if (document.layers) {
	origWidth = window.innerWidth; origHeight = window.innerHeight;
	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
}

var cur_content;	
function swap(id) {
  if (cur_content) hideL(cur_content);
  showL(id);
  cur_content = id;
}

function showL(id) {
  var content = getElemRefs(id);
  if (content && content.css) content.css.visibility = "visible";
}

function hideL(id) {
  var content = getElemRefs(id);
  if (content && content.css) content.css.visibility = "hidden";
}

function getElemRefs(id) {
	var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? document.layers[id]: null;
	if (el) el.css = (el.style)? el.style: el;
	return el;
}



