//new display function
$(document).ready(function(){
	
	$(".toggle_container").hide();

	$("h2.trigger").toggle(function(){
		$(this).addClass("active"); 
		}, function () {
		$(this).removeClass("active");
	});
	
	$("h2.trigger").click(function(){
		$(this).next(".toggle_container").slideToggle("slow,");
	});

});

//accordion
//nice version
//$(document).ready(function() {
//	$(".accord").accordion({autoHeight: false});
//});



//text in inputBox
function clearBox(str) {
  if(document.searchForm.zoom_query.value == str) {document.searchForm.zoom_query.value = "";}
}


//////AJAX PAGE CALLS/////////
$(document).ready(function(){
	$('.class').live("click",function()
	{
		//var $id = $(this).attr('mcid');

		//$.post("script.php",  
//				   function(data){
//					   //alert( "Data Saved: " + data );
//						$("div#toupdate").html(data);
//			});
		
		return false;
		
	});
});	

//submit form
function submitForm(formid, acionurl){
		document.getElementById(formid).action = acionurl;
		document.getElementById(formid).submit();
}

//submit form
function goToURL(url){
		window.location = url;
}

//
$(document).ready(function(){
	if($('#strapline2 p:not(:first)').length != 0){
		$('#strapline2 p:first').addClass('left-align');
		$('#strapline2 p:not(:first)').addClass('right-align');	
	}
});

$(document).ready(function(){
  $('input[value=dd-mm-yyyy]').click(function(){
    $(this).val("");
  });
});
