function make_zoomable()
	{
	jQuery("a.image_zoomable").fancybox({
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	true,
		'overlayOpacity' : .8,
		'titlePosition' : 'inside',
		'transitionIn':'elastic',
		'easingIn':'swing'
	});

	
	}
jQuery(document).ready(function()
{
	
	
if(tts==1)
{
jQuery("#body_content a[title]:not(:has(>img))").tooltip({ position: "top center",  layout:'<div></div>',delay:0, offset: [-2, 0], predelay:100, opacity: 0.95,effect:"fade"});
}

//// domready... nice forms...
jQuery('.custom_form>table').css({'padding':'13px','background':sidebarbackgroundcolour});
jQuery('.custom_form_table h2').css({'padding':'5px','background':headcolour,'color':sidebarbackgroundcolour});

jQuery('.custom_form input:text, .custom_form textarea, .custom_form input:email').css({'width':'100%'});
jQuery('.custom_form_table>table>td').css({'valign':'top'});

jQuery('.custom_form select').css({'width':'100%'});
jQuery('.custom_form').validator({ 
	position: 'center right', 
	offset: [0, 0],
	message: '<div><em/></div>',
	messageClass:'input_error' // em element is the arrow
});
make_zoomable();
}); /// END of JQUERY firing...


function submittheform()
	{
	//need to get the search form content...
	searchValue=$('search_data').value;
	if(searchValue=='' || searchValue=='Search...') { alert("enter a proper search term"); return false; }
	  document.form1.submit();
	}

  
function changeText(el,txt){
var textContent = document.getElementById(el);
textContent.firstChild.data=txt;
}

function PXzoom(imageFile,imageCaption,picurl,picurltext){
					Milkbox.showThisImage("resizer.php?imgfile="+imageFile+"&amp;max_width=600",imageCaption,'');

	}

function showdiv(thediv) { 
if (document.getElementById) { // DOM3 = IE5, NS6 
document.getElementById(thediv).style.visibility = 'visible'; 
} 
} 
	// more headerscripts
