// ********************************************************* //
// TRANSLATE WEB PAGE using either Google or AppLang
// Javascript courtesy of Graham Beynon, BrightPlanet Corp.
// Version 0.3 8/25/06
// as: changed AL links to newer version., 12/2006
function translate(form) {
	form.u.value = window.location;
	form.url.value = window.location;
	var selectedIndex = form.hl.selectedIndex;
	var selectedValue = form.hl.options[selectedIndex].value;
	if (selectedValue != '') { if (selectedValue.length > 2) {
		form.lpair.value = selectedValue;
		form.action = "http://www.appliedlanguage.com/trans/translate.aspx";
		form.method = "get";
	} else {
		form.action = "http://translate.google.com/translate";
		form.method = "get";
	}}
	form.submit();
}
// ********************************************************* //


//********************************************************* //
// jQuery customizations
// 
jQuery(document).ready(function() {
	
	// Scroll page to top using jQuery
	jQuery('a[href=#top]').click(function(){
		jQuery('html, body').animate({scrollTop:0}, 'slow');
		return false;
	});
	
	// Attach jQuery masonry to objects
	jQuery('#masonry-list').masonry({ 
		itemSelector : '.masonry-item'
	});
	
});

 

