/***************************************************
Author: Brian Dausman
URL:	mybridgepoint.com
email:  bdausman@mybridgepoint.com
***************************************************/

jQuery.noConflict();
jQuery(document).ready(function(){

/////////////////////////////////////////
//dropdowns
/////////////////////////////////////////
jQuery('.TopMenu').hover(function(){
   jQuery(this).find('.children').fadeIn('fast');
},function(){
    jQuery(this).find('.children').fadeOut('fast');
});

jQuery('.children li').hover(function(){
   jQuery(this).find('.children1').fadeIn('fast');
},function(){
    jQuery(this).find('.children1').fadeOut('fast');
});

/////////////////////////////////////////
//sidebar height
/////////////////////////////////////////
var bodyHeight = jQuery('.content').height();
jQuery('.sideNav').css({ 'height' : bodyHeight });

jQuery('.sideNav ul:not(:has(> li))').parent().hide();  //if not child items hide it

if(jQuery('.sideNav').is(':hidden')){ 
    jQuery('.innerContent').css({ 'width' : 920 });
}

/////////////////////////////////////////
//sliders
/////////////////////////////////////////
jQuery('#slider-wrapper #slider').nivoSlider({
    effect:'fade',
    slices:12,
    animSpeed:550
});


jQuery('#gallery-wrapper #slider').nivoSlider({
    effect:'fade',
    controlNavThumbs:true,
    animSpeed:200
});
    

/////////////////////////////////////////
//nav remove borders
/////////////////////////////////////////

    jQuery('.TopMenu:first').css({ 'border-left' : 'none' });
    jQuery('.TopMenu:last').css({ 'border-right' : 'none' });
    
/////////////////////////////////////////    
}); //end (document).ready
/////////////////////////////////////////

jQuery(window).load(function(){
/////////////////////////////////////////
//gallery height
/////////////////////////////////////////
var galleryHeight = jQuery('.carousel').height();

if(galleryHeight > 0){ 
     var bodyHeight = jQuery('.innerContent').height();
     var adjustedHeight = galleryHeight + bodyHeight - 20;
     
     jQuery('.innerContent').css({ 'height' : adjustedHeight });
}
});




/////////////////////////////////////////
////////// Please Upgrade IE ////////////
/////////////////////////////////////////
jQuery(document).ready(function(){
	
	jQuerybrowser = navigator.appName;
	if (jQuery.browser.msie && jQuery.browser.version.substr(0, 1) < 8) {
		jQuery('#upgrade').animate({bottom: "0", opacity: ".7"}, "slow");
		jQuery('#upgrade').hover(function(){
		jQuery(this).stop(true,true).animate({opacity: "1", bottom: "0"}, "slow");
	}, function() {
	  jQuery(this).stop(true,true).animate({opacity: ".3", bottom: "-30"}, "slow");
	});
	}
});



































