
function hidejstext()
{
	document.getElementById("turnonjs").style.width=0;
	document.getElementById("turnonjs").style.height=0;
	document.getElementById("turnonjs").style.display="none";
	document.getElementById("turnonjs").style.visibility="hidden";
	
	document.getElementById("qqcbutton").style.width=0;
	document.getElementById("qqcbutton").style.height=0;
	document.getElementById("qqcbutton").style.display="none";
	document.getElementById("qqcbutton").style.visibility="hidden";
	
	document.getElementById("selectnote").style.width=0;
	document.getElementById("selectnote").style.height=0;
	document.getElementById("selectnote").style.display="none";
	document.getElementById("selectnote").style.visibility="hidden";
	
	document.selecttype.elements['quotetype'][0].checked = true;
}

function hidedelivery()
{
	document.getElementById("turnonjs").style.width=0;
	document.getElementById("turnonjs").style.height=0;
	document.getElementById("turnonjs").style.display="none";
	document.getElementById("turnonjs").style.visibility="hidden";
	
	document.getElementById("deliverybox").style.width=0;
	document.getElementById("deliverybox").style.height=0;
	document.getElementById("deliverybox").style.display="none";
	document.getElementById("deliverybox").style.visibility="hidden";
	
	document.getElementById("ruraldeliveryhead").style.width=0;
	document.getElementById("ruraldeliveryhead").style.height=0;
	document.getElementById("ruraldeliveryhead").style.display="none";
	document.getElementById("ruraldeliveryhead").style.visibility="hidden";
	
	document.getElementById("deliverysuburbhead").style.width=0;
	document.getElementById("deliverysuburbhead").style.height=0;
	document.getElementById("deliverysuburbhead").style.display="none";
	document.getElementById("deliverysuburbhead").style.visibility="hidden";
	
	document.getElementById("quotebutton").style.width=0;
	document.getElementById("quotebutton").style.height=0;
	document.getElementById("quotebutton").style.display="none";
	document.getElementById("quotebutton").style.visibility="hidden";
	
	document.getElementById("qqcbutton").style.display="inline";
	document.getElementById("qqcbutton").style.visibility="visible";
	
	document.getElementById("selectnote").style.display="inline";
	document.getElementById("selectnote").style.visibility="visible";
	
	document.selecttype.elements['quotetype'][1].checked = true;
}

function showdelivery()
{
	document.getElementById("selectnote").style.width=0;
	document.getElementById("selectnote").style.height=0;
	document.getElementById("selectnote").style.display="none";
	document.getElementById("selectnote").style.visibility="hidden";
	
	document.getElementById("deliverybox").style.display="inline";
	document.getElementById("deliverybox").style.visibility="visible";
	
	document.getElementById("ruraldeliveryhead").style.display="inline";
	document.getElementById("ruraldeliveryhead").style.visibility="visible";
	
	document.getElementById("deliverysuburbhead").style.display="inline";
	document.getElementById("deliverysuburbhead").style.visibility="visible";
	
	document.getElementById("qqcbutton").style.width=0;
	document.getElementById("qqcbutton").style.height=0;
	document.getElementById("qqcbutton").style.display="none";
	document.getElementById("qqcbutton").style.visibility="hidden";
	
	document.getElementById("quotebutton").style.display="inline";
	document.getElementById("quotebutton").style.visibility="visible";
}

function selectbox()
{
	document.SmallQuoteForm.elements['First_item_Box_or_Cylinder'][0].checked = true;
	document.SmallQuoteForm.elements['Second_item_Box_or_Cylinder'][0].checked = true;
	document.SmallQuoteForm.elements['Third_item_Box_or_Cylinder'][0].checked = true;
	document.SmallQuoteForm.elements['Forth_item_Box_or_Cylinder'][0].checked = true;
	document.SmallQuoteForm.elements['Fifth_item_Box_or_Cylinder'][0].checked = true;
}

function cylinderlabel(sItem)
{
	if (sItem == 'first') 
	{
		document.SmallQuoteForm.First_item_width.style.display="none";
		document.SmallQuoteForm.First_item_width.style.visibility="hidden";
		//document.SmallQuoteForm.First_item_width.style.display="inline";
		//document.SmallQuoteForm.First_item_width.style.visibility="visible";
		document.SmallQuoteForm.First_item_height.value = '';
		document.SmallQuoteForm.First_item_length.value = '';  
		document.SmallQuoteForm.First_item_total_size.value = '';
		document.SmallQuoteForm.First_item_description.value = '';  
	}
	
	if (sItem == 'second') 
	{
		document.SmallQuoteForm.Second_item_width.style.display="none";
		document.SmallQuoteForm.Second_item_width.style.visibility="hidden";
		//document.SmallQuoteForm.Second_item_width.style.display="inline";
		//document.SmallQuoteForm.Second_item_width.style.visibility="visible";
		document.SmallQuoteForm.Second_item_height.value = '';
		document.SmallQuoteForm.Second_item_length.value = '';   
		document.SmallQuoteForm.Second_item_total_size.value = '';
		document.SmallQuoteForm.Second_item_description.value = '';  
	}
	
	if (sItem == 'third') 
	{
		document.SmallQuoteForm.Third_item_width.style.display="none";
		document.SmallQuoteForm.Third_item_width.style.visibility="hidden";
		//document.SmallQuoteForm.Third_item_width.style.display="inline";
		//document.SmallQuoteForm.Third_item_width.style.visibility="visible";
		document.SmallQuoteForm.Third_item_height.value = '';
		document.SmallQuoteForm.Third_item_length.value = '';   
		document.SmallQuoteForm.Third_item_total_size.value = '';
		document.SmallQuoteForm.Third_item_description.value = '';  
	}
	
	if (sItem == 'forth') 
	{
		document.SmallQuoteForm.Forth_item_width.style.display="none";
		document.SmallQuoteForm.Forth_item_width.style.visibility="hidden";
		//document.SmallQuoteForm.Forth_item_width.style.display="inline";
		//document.SmallQuoteForm.Forth_item_width.style.visibility="visible";
		document.SmallQuoteForm.Forth_item_height.value = '';
		document.SmallQuoteForm.Forth_item_length.value = '';   
		document.SmallQuoteForm.Forth_item_total_size.value = '';
		document.SmallQuoteForm.Forth_item_description.value = '';  
	}
	
	if (sItem == 'fifth') 
	{
		document.SmallQuoteForm.Fifth_item_width.style.display="none";
		document.SmallQuoteForm.Fifth_item_width.style.visibility="hidden";
		//document.SmallQuoteForm.Fifth_item_width.style.display="inline";
		//document.SmallQuoteForm.Fifth_item_width.style.visibility="visible";
		document.SmallQuoteForm.Fifth_item_height.value = '';
		document.SmallQuoteForm.Fifth_item_length.value = '';   
		document.SmallQuoteForm.Fifth_item_total_size.value = '';
		document.SmallQuoteForm.Fifth_item_description.value = '';  
	}

}//end function cylinderlabel(sItem)

function boxlabel(sItem)
{
	if (sItem == 'first') 
	{
		document.SmallQuoteForm.First_item_width.style.display="inline";
		document.SmallQuoteForm.First_item_width.style.visibility="visible";
		document.SmallQuoteForm.First_item_height.value = '';
		document.SmallQuoteForm.First_item_width.value = '';
		document.SmallQuoteForm.First_item_length.value = ''; 
		document.SmallQuoteForm.First_item_total_size.value = '';  
		document.SmallQuoteForm.First_item_description.value = '';  
	}
	
	if (sItem == 'second') 
	{
		document.SmallQuoteForm.Second_item_width.style.display="inline";
		document.SmallQuoteForm.Second_item_width.style.visibility="visible";
		document.SmallQuoteForm.Second_item_height.value = '';
		document.SmallQuoteForm.Second_item_width.value = '';
		document.SmallQuoteForm.Second_item_length.value = '';   
		document.SmallQuoteForm.Second_item_total_size.value = '';
		document.SmallQuoteForm.Second_item_description.value = '';  
	}
	
	if (sItem == 'third') 
	{
		document.SmallQuoteForm.Third_item_width.style.display="inline";
		document.SmallQuoteForm.Third_item_width.style.visibility="visible";
		document.SmallQuoteForm.Third_item_height.value = '';
		document.SmallQuoteForm.Third_item_width.value = '';
		document.SmallQuoteForm.Third_item_length.value = '';   
		document.SmallQuoteForm.Third_item_total_size.value = '';
		document.SmallQuoteForm.Third_item_description.value = '';  
	}
	
	if (sItem == 'forth') 
	{
		document.SmallQuoteForm.Forth_item_width.style.display="inline";
		document.SmallQuoteForm.Forth_item_width.style.visibility="visible";
		document.SmallQuoteForm.Forth_item_height.value = '';
		document.SmallQuoteForm.Forth_item_width.value = '';
		document.SmallQuoteForm.Forth_item_length.value = '';   
		document.SmallQuoteForm.Forth_item_total_size.value = '';
		document.SmallQuoteForm.Forth_item_description.value = '';  
	}
	
	if (sItem == 'fifth') 
	{
		document.SmallQuoteForm.Fifth_item_width.style.display="inline";
		document.SmallQuoteForm.Fifth_item_width.style.visibility="visible";
		document.SmallQuoteForm.Fifth_item_height.value = '';
		document.SmallQuoteForm.Fifth_item_width.value = '';
		document.SmallQuoteForm.Fifth_item_length.value = '';  
		document.SmallQuoteForm.Fifth_item_total_size.value = ''; 
		document.SmallQuoteForm.Fifth_item_description.value = '';  
	}
}//end function cylinderlabel(sItem)

function popup()
{
	window.open('ruralnote.html','','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=1,top=180,left=250,width=230,height=230');
}

function go(url) {
	if (url != "") {
		window.location = url;
	}
}

$(document).ready(function() {
    $('#slideshow1').cycle({
		fx: 'fade',
		timeout: delay,
		before: slide1
	});
});
$(document).ready(function() {
    $('#slideshow2').cycle({
		fx: 'fade',
		timeout: delay,
		before: slide2
	});
});
$(document).ready(function() {
    $('#slideshow3').cycle({
		fx: 'fade',
		timeout: delay,
		before: slide3
	});
});
$(document).ready(function() {
    $('#slideshow4').cycle({
		fx: 'fade',
		timeout: delay,
		before: slide4
	});
});
$(document).ready(function() {
    $('#slideshow5').cycle({
		fx: 'fade',
		timeout: delay
	});
});
$(document).ready(function() {
    $('#slideshow6').cycle({
		fx: 'fade',
		timeout: delay
	});
});

function slide1() {
	$('#slide1caption').html(this.title);
}

function slide2() {
	$('#slide2caption').html(this.title);
}
function slide3() {
	$('#slide3caption').html(this.title);
}
function slide4() {
	$('#slide4caption').html(this.title);
}

