$.fn.swapClass=function(c1,c2){return this.each(function(){if($.className.has(this,c1)){$(this).removeClass(c1);$(this).addClass(c2);}else if($.className.has(this,c2)){$(this).removeClass(c2);$(this).addClass(c1);}});};

$(document).ready(function(){
    $('.zebra tr:even').addClass('even');$('.zebra tr:odd').addClass('odd');
	$('.zebra tr').mouseover(function() { $(this).addClass('hover'); });$('.zebra tr').mouseout(function() { $(this).removeClass('hover'); });
    $('.zebra li:even').addClass('even');$('.zebra li:odd').addClass('odd');
	$('.zebra li').mouseover(function() { $(this).addClass('hover'); });$('.zebra li').mouseout(function() { $(this).removeClass('hover'); });
	$('.box-handle.collapsed').toggle(
		function(){ $(this).swapClass("collapsed", "expanded"); $(this).next('.box-content').show("fast"); },
		function(){ $(this).swapClass("collapsed", "expanded"); $(this).next('.box-content').hide("fast"); }
	);
	$('.box-handle.expanded').toggle(
		function(){ $(this).swapClass("expanded", "collapsed"); $(this).next('.box-content').hide("fast"); },
		function(){ $(this).swapClass("expanded", "collapsed"); $(this).next('.box-content').show("fast"); }
	);
});

if (navigator.userAgent.indexOf('Win') >= 0) {
	document.write('<link href="/css/rustines/win.css" rel="Stylesheet" media="all" />');
}

/* IE */
if (navigator.userAgent.indexOf('MSIE') >= 0) {
	/* Win */
	if (navigator.userAgent.indexOf('Win') >= 0) {
		if (navigator.userAgent.indexOf('MSIE 7') >= 0) { /* IE 7x Win */
			document.write('<link href="/css/rustines/iewin7.css" rel="Stylesheet" media="all" />');
		} else if (navigator.userAgent.indexOf('MSIE 6') >= 0) { /* IE 6x Win */
			document.write('<link href="/css/rustines/iewin6.css" rel="Stylesheet" media="all" />');
			document.write('<script type="text/javascript" src="/css/rustines/iewin.js"></script>');
		} else if (navigator.userAgent.indexOf('MSIE 5.5') >= 0) { /* IE 5.5x Win */
			document.write('<link href="/css/rustines/iewin55.css" rel="Stylesheet" media="all" />');
			document.write('<script type="text/javascript" src="/css/rustines/iewin.js"></script>');
		} else if (navigator.userAgent.indexOf('MSIE 5.0') >= 0) { /* IE 5.0x Win */
			document.write('<link href="/css/rustines/iewin5.css" rel="Stylesheet" media="all" />');
			document.write('<script type="text/javascript" src="/css/rustines/iewin.js"></script>');
		}
	/* Mac */
	} else {
		/* IE Mac */
		if (navigator.userAgent.indexOf('MSIE') >= 0 && navigator.userAgent.indexOf('Mac') >= 0) {
			document.write('<link href="/css/rustines/iemac.css" rel="Stylesheet" media="all" />');
		}
	}
} else {
	/* Netscape 7  */
	if (navigator.userAgent.indexOf('Netscape') >= 0) {
		document.write('<link href="/css/rustines/netscape7.css" rel="Stylesheet" media="all" />');
	}
	/* Mozilla... */
	if (navigator.userAgent.indexOf('Gecko') >= 0 && navigator.userAgent.indexOf('Netscape') < 0 && navigator.userAgent.indexOf('Safari') < 0) {
		document.write('<link href="/css/rustines/mozilla.css" rel="Stylesheet" media="all" />');
	}
	/* Safari... */
	if (navigator.userAgent.indexOf('Safari') >= 0) {
		document.write('<link href="/css/rustines/safari.css" rel="Stylesheet" media="all" />');
	}
	/* Opera */
	if (navigator.userAgent.indexOf('Opera') >= 0) {
		document.write('<link href="/css/rustines/opera.css" rel="Stylesheet" media="all" />');
	}
}