// JavaScript Document


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function movebar()
{
	//alert(document.getElementById('pos').style.width);
	document.getElementById('pos').style.width=693 + ((alertSize()-850)/2)+'px';
	//alert(document.getElementById('pos').style.width);
}

function alertSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
  } else if( document.documentElement && ( document.documentElement.clientWidth) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
  }
	return  myWidth;
}


function flicker(x)
{
	var myname;
	var functname;

	myname = x.id;

		x.style.color="#67985C";
	functname = "go('" + myname+ "')";
	setTimeout(functname,300);

}


function go(x)
{
	document.getElementById(x).style.color="#fff";;
}

function openWindow()
{
	window.open("contact.php","Contact","height=500, width=520, scrollbars=no, toolbar=no, menubar=no, status=no");	
	return false;
}

function openFFC()
{
	window.open("http://www.firstclasscars.com.au","First Class Cars","scrollbars=yes, toolbar=yes, menubar=yes, status=yes,location=yes,resizable=yes");	
	return false;
}
