var domain ='';
var domainRef ='';
function init(d, dr) {
	domain = d;
	$(document).ready(function(){
		// fix breadcrumbs
		$("#breadcrumbs li:last").removeAttr('class');
		$("#breadcrumbs li").each(function(){
			if ($(this).attr('class')) {
				$(this).wrapInner('<a href="'+$(this).attr('class')+'"></a>');
			}
		});
		stripeTable();
		$("ul.sf-menu").superfish();
	});
}
jQuery.preloadImages = function() {
  for(var i = 0; i<arguments.length; i++) {
    jQuery("<img>").attr("src", arguments[i]);
  }
}
function stripeTable() {
	$("table.stripe tr:even").addClass("even");
	$("table.stripe tr:odd").addClass("odd");
}