<!--

/*
JQUERY ONREADY EVENTS
*/
$(document).ready(function(){
	
	// Fix IE6 PNG support using jQuery supersleight plugin
	$('#latestproductsStar').supersleight({shim: '/img/transparent.gif'});

	// Any links with rel="external" attribute will open in new window
	$('A[rel="external"]').click( function() {
        window.open( $(this).attr('href') );
        return false;
    });
	
	// Defuscate any hrefs in format you(replace with 'at' symbol)domain.com. Replaces the mailto and the link text.
	// Note that emails are being encrypted in the CMS via the cleanup_rich_text function
	$('p').defuscate({link: true});
	//$('a').defuscate({link: false});
	
 });

/*
POPUPS
*/
var newWindow = null;
function popup(theURL, winName, features) { 
	closePopup(winName);
	newWindow=window.open(theURL,winName,features);
	newWindow.focus();
}
function closePopup(winName) {
	if (newWindow && newWindow.open && !newWindow.closed) newWindow.close();
}

-->