//new preload imgs
//$(document).ready(function(){
//  $.preloadCssImages();
//});

//$(document).ready(function(){ 
//	$(document).pngFix(); 
//});

//accordion
//nice version
$(document).ready(function() {
	$("ul.nav li ul").prev("a").addClass("header");
	$("ul.nav li ul").removeClass("display-none");
	//$("ul.nav1 li ul").prev("a").addClass("header");
	$("ul.nav li ul").accordion({autoHeight: false, active: false, alwaysOpen: false, header: '.header', navigation: true});
});

//new display function
$(document).ready(function(){
	
	//$("ul.nav1 li.second ul").hide();


	//$("ul.nav1 li.second .header").toggle(function(){
//		$("ul.nav li ul").accordion("activate", -1);
//		}, function () {
//		$("ul.nav li ul").accordion("activate", -1);
//	});
	
	//$("ul.nav1 li.second .header").click(function(){
//		$(this).next("ul").slideToggle("slow,");
//		
//	});
//	
//	$("ul.nav li.first .header").click(function(){
//		$("ul.nav1 li.second ul").slideUp();
//	});

	//$("ul.nav li.first .header").click(function(){
//		$("ul.nav1 li.second ul").slideToggle("slow,");
//	});
});

//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;
}

