//we use $j to avoid conflicts with other libraries
//var $j = jQuery.noConflict();

//target=_blank for all links that point outside our website
$(document).ready(function() {
    $("a").filter(function() {
    	//alert(this.hostname.substr(this.hostname.length-6,this.hostname.length));
        return this.hostname && this.hostname.substr(this.hostname.length-6,this.hostname.length) !== location.hostname.substr(location.hostname.length-6,location.hostname.length);
    }).attr('target', '_blank');
	
});

//image generic rollover. add "ro" as class for those images and follow the naming convention
$(
	function()
	{
		// set up rollover
		$("img.ro").hover(
			function()
			{
				this.src = this.src.replace("-off","-on");
			},
			function()
			{
				this.src = this.src.replace("-on","-off");
			}
		);
	}
)