jQuery.noConflict();

jQuery(function() {
	
	//IE6 Fixes
	if (jQuery.browser.msie) {
		if (jQuery.browser.version <= 6){
			
			//Column seprator height
			var $columnSeprator = $('#column-separator');
			$columnSeprator.height($columnSeprator.parent().height());
			
			//Nav
			$('#nav a').hover(
				function(){ $(this).addClass('hover'); },
				function(){ $(this).removeClass('hover'); }
			);
			
			//Subnav
			$('#subnav li').hover(
				function(){ $('>a', this).addClass('hover'); },
				function(){ $('>a', this).removeClass('hover'); }
			);
			
			$('#home-boxes .home-box').hover(
				function(){ $(this).addClass('hover'); },
				function(){ $(this).removeClass('hover'); }
			);
			
			//Project List
			$('.item').hover(
				function(){ $(this).addClass('item-hover'); },
				function(){ $(this).removeClass('item-hover'); }
			);
		}
	}
	
	//EmptyOnFocus
	jQuery('#search_form input').hint();
	
	// last box home
	jQuery("#home-boxes .home-box:last").addClass('last');
	jQuery("#subsections .section:last").addClass('last');
	jQuery("#categories .corner:last").addClass('last');
	
	//Corners on images
	jQuery('#inner .csc-image img, #inner .banner img, #inner .single-image img').each(function(){
		var img = jQuery(this);
		img
			.wrap('<div class="corner"></div>')
			.after('<i class="tl"></i><i class="tr"></i><i class="br"></i><i class="bl"></i>');
	});
	
	//Tables
	jQuery('table tbody tr:odd').addClass('odd');
	
	//Home box
	var yellowBox = jQuery('#home-box-6 h2');
	var oldTextSplit = yellowBox.text().split(' ');
	var newText = '';
	newText = '<span>'+oldTextSplit[0]+'</span>&nbsp;&nbsp;'+oldTextSplit[1];
	yellowBox.html(newText);
	
	//Home Box Tooltip
	jQuery('#home-boxes .home-box')
		.tooltip({
			track: true,
			fixPNG: true,
			top: -60
		});
});

jQuery(document).ready(function(){
    
    jQuery("a.systemShow").click(function () {
      jQuery(this).next('div').toggle("slow");
    });    

  });
