/* Author: 

*/

//$('.portfolio').bxSlider();
$(":text,textarea").labelify();
$(".haschild").hoverIntent(function() {
	var thistag = $(this);
	thistag.find('a span').addClass('white');
	thistag.addClass('nobotborder');
	thistag.find("ul").slideDown("slow");
}, function() {
	var thistag = $(this);
	thistag.find("ul").slideUp("fast");
	thistag.removeClass('nobotborder');
	tthistag.find('a span').removeClass('white');
}); 


$('.grid_6 p.apply a.view').live('click',function(event){
    event.preventDefault();
    $(this).css('display','none');
    $(this).parents('.grid_6').find('.slide').slideDown();
});

	$('#slider-one').movingBoxes({
		startPanel   : 1,      // start with this panel
		width        : 910,    // overall width of movingBoxes (not including navigation arrows)
		panelWidth   : 1,
		wrap         : true,   // if true, the panel will "wrap" (it really rewinds/fast forwards) at the ends
		buildNav     : false,   // if true, navigation links will be added
		navFormatter : function(){ return "&#9679;"; } // function which returns the navigation text for each panel
	});
	
	var initialwidth;
	
	$('#openings dt').hoverIntent(function() {
		winwidth = $(window).width();
		initialwidth = $(this).width();
		winwidth = winwidth-140;
		thisele = $(this);
		$(this).animate({ width: winwidth + "px" }, 500, function() { thisele.children('span').css("display", "block"); });
	}, function() {
		thisele = $(this);
		$(this).children('span').css('display','none');
		$(this).animate({ width: initialwidth + "px" }, 500, function() { thisele.children('span').css("display", "none"); });
	});

	$('#openings dt').click(function() {
		$('#openings dd').slideUp(1000);
		$(this).next().slideDown(1000);
	});



















