////=====Function to change the state and stores within that state ////////

///// NSW ////
function change_state1(thevalue)
{
	var passed=thevalue;
	document.getElementById("a_style").innerHTML=""
	document.getElementById("first").innerHTML=""
	document.getElementById("third").innerHTML=""
	if (passed='../images/state_nsw.jpg')
		{
		
		document.getElementById("a_style").innerHTML='New South Wales'	
		//document.getElementById("nsw_img").src='state_nsw_o.jpg';	
		document.getElementById("first").innerHTML='<span id="store_loc" onclick="get_times(this.innerHTML)">ALBURY</span><BR><span id="store_loc" onclick="get_times(this.innerHTML)">ALEXANDRIA</span><BR><span id="store_loc" onclick="get_times(this.innerHTML)">NEWCASTLE</span><BR><span id="store_loc" onclick="get_times(this.innerHTML)">BANKSTOWN</span><BR /><span id="store_loc" onclick="get_times(this.innerHTML)">BLACKTOWN</span><BR /><span id="store_loc" onclick="get_times(this.innerHTML)">BROOKVALE</span><BR /><span id="store_loc" onclick="get_times(this.innerHTML)">PENRITH</span><BR /><span id="store_loc" onclick="get_times(this.innerHTML)">HORNSBY</span><BR /><span id="store_loc" onclick="get_times(this.innerHTML)">LIVERPOOL</span><BR /><span id="store_loc" onclick="get_times(this.innerHTML)">ERINA</span><BR /><span id="store_loc" onclick="get_times(this.innerHTML)">GORE HILL</span><BR /><span id="store_loc" onclick="get_times(this.innerHTML)">CAMPBELLTOWN</span><BR /><span id="store_loc" onclick="get_times(this.innerHTML)">BONDI JUNCTION</span><BR><span id="store_loc" onclick="get_times(this.innerHTML)">RYDALMERE</span><BR><span id="store_loc" onclick="get_times(this.innerHTML)">BROOKVALE</span><BR /><span id="store_loc" onclick="get_times(this.innerHTML)">TAREN POINT</span><BR /><span id="store_loc" onclick="get_times(this.innerHTML)">WOLLONGONG</span><BR /><span id="store_loc" onclick="get_times(this.innerHTML)">SYDNEY CITY</span>';
		}
}
	
	///// VIC ////	
function change_state2(thevalue)
{
	if (passed='../images/state_vic.jpg')
	document.getElementById("a_style").innerHTML=""
	document.getElementById("first").innerHTML=""
	document.getElementById("third").innerHTML=""
		{		
		document.getElementById("a_style").innerHTML='Victoria'	
		
		document.getElementById("first").innerHTML='<span id="store_loc" onclick="get_times(this.innerHTML)">GEELONG</span><BR /><span id="store_loc" onclick="get_times(this.innerHTML)">MELBOURNE CITY</span><BR /><span id="store_loc" onclick="get_times(this.innerHTML)">RINGWOOD</span><BR/><span id="store_loc" onclick="get_times(this.innerHTML)">FRANKSTON</span><BR /><span id="store_loc" onclick="get_times(this.innerHTML)">SPRINGVALE</span><BR/><span id="store_loc" onclick="get_times(this.innerHTML)">THOMASTOWN</span><BR /><span id="store_loc" onclick="get_times(this.innerHTML)">COBURG</span><BR><span id="store_loc" onclick="get_times(this.innerHTML)">SUNSHINE</span><BR><span id="store_loc" onclick="get_times(this.innerHTML)">HALLAM</span>';	
		}
}
	
///// SA ////
function change_state3(thevalue)
{
	if (passed='../images/state_sa.jpg')
	document.getElementById("first").innerHTML=""
	document.getElementById("third").innerHTML=""
		{		
		document.getElementById("a_style").innerHTML='South Australia'
		document.getElementById("first").innerHTML='<span id="store_loc" onclick="get_times(this.innerHTML)">GEPPS CROSS</span><BR /><span id="store_loc" onclick="get_times(this.innerHTML)">ADELAIDE CITY</span><BR /><span id="store_loc" onclick="get_times(this.innerHTML)">CLOVELLY PARK</span><BR />'
		}
}

///// QLD ////
function change_state4(thevalue)
{
	if (passed='../images/state_qld.jpg')
	document.getElementById("first").innerHTML=""
	document.getElementById("third").innerHTML=""
		{		
		document.getElementById("a_style").innerHTML='Queensland'
		document.getElementById("first").innerHTML='<span id="store_loc" onclick="get_times(this.innerHTML)">WOOLLOONGABBA</span><BR /><span id="store_loc" onclick="get_times(this.innerHTML)">CAIRNS</span><BR /><span id="store_loc" onclick="get_times(this.innerHTML)" >ASPLEY</span> <BR /><span id="store_loc" onclick="get_times(this.innerHTML)">IPSWICH</span><BR /><span id="store_loc" onclick="get_times(this.innerHTML)">GOLD COAST</span><BR /><span id="store_loc" onclick="get_times(this.innerHTML)">TOWNSVILLE</span><BR /><span id="store_loc" onclick="get_times(this.innerHTML)">UNDERWOOD</span><BR /><span id="store_loc" onclick="get_times(this.innerHTML)">MAROOCHYDORE</span><BR />'			
		}
}

///// WA ////
function change_state5(thevalue)
{
	if (passed='../images/state_wa.jpg')
	document.getElementById("first").innerHTML=""
	document.getElementById("third").innerHTML=""
		{		
		document.getElementById("a_style").innerHTML='Western Australia'	
		document.getElementById("first").innerHTML='<span id="store_loc" onclick="get_times(this.innerHTML)">NORTHBRIDGE</span><BR /><span id="store_loc" onclick="get_times(this.innerHTML)">MADDINGTON</span><BR /><span id="store_loc" onclick="get_times(this.innerHTML)">MIDLAND</span><BR /><span id="store_loc" onclick="get_times(this.innerHTML)">ROCKINGHAM</span>';
				}
}

///// NT ////
function change_state6(thevalue)
{
	if (passed='../images/state_nt.jpg')
	document.getElementById("first").innerHTML=""
	document.getElementById("third").innerHTML=""
		{		
		document.getElementById("a_style").innerHTML='Northern Territory'	
		document.getElementById("first").innerHTML='<span id="store_loc" onclick="get_times(this.innerHTML)">DARWIN</span><BR />'		
		}
}


///// TAS ////

function change_state7(thevalue)
{
	if (passed='../images/state_tas.jpg')
	document.getElementById("first").innerHTML=""
	document.getElementById("third").innerHTML=""
		{		
		document.getElementById("a_style").innerHTML='Tasmania'	
		document.getElementById("first").innerHTML='<span id="store_loc" onclick="get_times(this.innerHTML)">HOBART</span>'	;	
		}
}


///// ACT ////
function change_state8(thevalue)
{
	if (passed='../images/state_act.jpg')
	document.getElementById("first").innerHTML=""
	document.getElementById("third").innerHTML=""
		{		
		document.getElementById("a_style").innerHTML='ACT'	
		document.getElementById("first").innerHTML='<span id="store_loc" onclick="get_times(this.innerHTML)">FYSHWICK</span><BR><span id="store_loc" onclick="get_times(this.innerHTML)">BELCONNEN</span>';		
		}
}


//// NEW ZEALAND

function change_state9(thevalue)
{
	if (passed='../images/state_nz.jpg')
	document.getElementById("first").innerHTML=""
	document.getElementById("third").innerHTML=""
		{		
		document.getElementById("a_style").innerHTML='New Zealand'	
		document.getElementById("first").innerHTML='<span id="store_loc" onclick="get_times(this.innerHTML)">GLENFIELD</span><BR><span id="store_loc" onclick="get_times(this.innerHTML)">MANUKAU</span><BR><span id="store_loc" onclick="get_times(this.innerHTML)">NEWMARKET</span><BR><span id="store_loc" onclick="get_times(this.innerHTML)">HAMILTON</span><BR><span id="store_loc" onclick="get_times(this.innerHTML)">HASTINGS</span><BR><span id="store_loc" onclick="get_times(this.innerHTML)">PALMERSTON NORTH</span><BR><span id="store_loc" onclick="get_times(this.innerHTML)">WELLINGTON</span><BR><span id="store_loc" onclick="get_times(this.innerHTML)">CHRISTCHURCH</span><BR><span id="store_loc" onclick="get_times(this.innerHTML)">DUNEDIN</span><BR><span id="store_loc" onclick="get_times(this.innerHTML)">HASTINGS</span>';		
		}
}
	
function get_times(pass_innerhtml)
{
var locations=pass_innerhtml;
//alert(locations)
   if (locations=='RINGWOOD' || locations=='MELBOURNE CITY' ||  locations=='COBURG' ||  locations=='SPRINGVALE' || locations=='FRANKSTON' || locations=='FRANKSTON' || locations=='GEELONG' || locations=='SUNSHINE' || locations=='DARWIN' || locations=='FYSHWICK' || locations=='BELCONNEN' || locations=='NEWCASTLE' || locations=='HALLAM' || locations=='THOMASTOWN' )
		{
		document.getElementById("third").innerHTML='<B>' + locations + '</B>' + '<BR>Good Friday	10/4/09	: Closed<BR>Saturday	11/4/09	: 8.30am-5.00pm<BR>Sunday 12/4/09 : 10.00am-4.00pm<BR>Monday 13/4/09 : 10.00am-4.00pm<BR> Anzac Day 25/4/09 : 1.00pm-5.00pm';
		}
		
		 if (locations=='GOLD COAST' || locations=='UNDERWOOD' )
			{
		document.getElementById("third").innerHTML='<B>' + locations + '</B>' + '<BR>Good Friday	10/4/09	: Closed<BR>Saturday	11/4/09	: 8.30am-5.00pm<BR>Sunday 12/4/09 : 10.00am-4.00pm<BR>Monday 13/4/09 : 10.00am-4.00pm<BR> Anzac Day 25/4/09 : Closed';
		}
		
		   if (locations=='ASPLEY' || locations=='TOWNSVILLE' || locations=='TWEED HEADS' || locations=='IPSWICH' || locations=='CAIRNS' || locations=='MAROOCHYDORE' || locations=='WOOLLOONGABBA')
		{
		document.getElementById("third").innerHTML='<B>' + locations + '</B>' + '<BR>Good Friday	10/4/09	: Closed<BR>Saturday	11/4/09	: 8.30am-5.00pm<BR>Sunday 12/4/09 : 10.00am-4.00pm<BR>Monday 13/4/09 : 10.00am-4.00pm<BR> Anzac Day 25/4/09 : Closed';
		}
		
		  if (locations=='NORTHBRIDGE')
		{
		document.getElementById("third").innerHTML='<B>' + locations + '</B>' + '<BR>Good Friday	10/4/09	: Closed<BR>Saturday	11/4/09	: 8.30am-5.00pm<BR>Sunday 12/4/09 : 10.00am-4.00pm<BR>Monday 13/4/09 : Closed<BR> Anzac Day 25/4/09 : Closed <BR>Monday 27/4/09: 10.00am-4.00pm';
		}
		
		if (locations=='MIDLAND' ||locations=='MADDINGTON' || locations=='ROCKINGHAM')
		{
		document.getElementById("third").innerHTML='<B>' + locations + '</B>' + '<BR>Good Friday	10/4/09	: Closed<BR>Saturday	11/4/09	: 8.30am-5.00pm<BR>Sunday 12/4/09 : 10.00am-4.00pm<BR>Monday 13/4/09 : Closed<BR> Anzac Day 25/4/09 : Closed <BR>Monday 27/4/09: 10.00am-4.00pm';
		}
		
			  if (locations=='ADELAIDE CITY' || locations=='CLOVELLY PARK' || locations=='GEPPS CROSS' )
		{
		document.getElementById("third").innerHTML='<B>' + locations + '</B>' + '<BR>Good Friday	10/4/09	: Closed<BR>Saturday	11/4/09	: 8.30am-5.00pm<BR>Sunday 12/4/09 : Closed<BR>Monday 13/4/09 : Closed<BR> Anzac Day 25/4/09 : Closed';
		}
		
				  if (locations=='HOBART' || locations=='SYDNEY CITY' || locations=='BONDI JUNCTION' || locations=='BROOKVALE' || locations=='BANKSTOWN' || locations=='GORE HILL' || locations=='PENRITH' || locations=='WOLLONGONG' || locations=='CAMPBELLTOWN' || locations=='TAREN POINT' || locations=='HORNSBY' || locations=='ALEXANDRIA' || locations=='BLACKTOWN' || locations=='RYDALMERE' || locations=='LIVERPOOL' )
		{
		document.getElementById("third").innerHTML='<B>' + locations + '</B>' + '<BR>Good Friday	10/4/09	: Closed<BR>Saturday	11/4/09	: 8.30am-5.00pm<BR>Sunday 12/4/09 : Closed<BR>Monday 13/4/09 : 10.00am-4.00pm<BR> Anzac Day 25/4/09 : 1.00pm-5.00pm';
		}
		
				  if (locations=='ERINA' || locations=='ALBURY' )
		{
		document.getElementById("third").innerHTML='<B>' + locations + '</B>' + '<BR>Good Friday	10/4/09	: Closed<BR>Saturday	11/4/09	: 8.30am-5.00pm<BR>Sunday 12/4/09 : 10.00am-4.00pm<BR>Monday 13/4/09 : 10.00am-4.00pm<BR> Anzac Day 25/4/09 : Closed';
		}
		
				  if (locations=='NEWMARKET' || locations=='GLENFIELD' || locations=='DUNEDIN' || locations=='PALMERSTON NORTH' || locations=='MANUKAU' || locations=='WELLINGTON' || locations=='CHRISTCHURCH' || locations=='HASTINGS' || locations=='HAMILTON' )
		{
		document.getElementById("third").innerHTML='<B>' + locations + '</B>' + '<BR>Good Friday	10/4/09	: Closed<BR>Saturday	11/4/09	: 9.00am-5.30pm<BR>Sunday 12/4/09 : Closed<BR>Monday 13/4/09 : 10.00am-4.00pm<BR> Anzac Day 25/4/09 : 1.00pm-5.30pm';
		}
		
		
	
}	
