// BRANDUP GENERAL JS FUNCTIONS



$(document).ready(function(){

		$("#testimoniale, #resurse").equalHeights();
  		//packages animation
		$('#pack1, #pack2, #pack3').mouseover(function() {
			  $(this).animate({top: "5px"}, 300);

			});
		$('#pack1, #pack2, #pack3').mouseout(function() {
			  $(this).animate({top: "40px"}, 300);
			});
		$('#packdesc3').fadeIn(1000);
		
		$('#pack1').mouseover(function() {
			$('#packdesc3,#packdesc2').fadeOut(300);					   
			$('#packdesc1').fadeIn(1300);

			});
		$('#pack2').mouseover(function() {
			$('#packdesc1,#packdesc3').fadeOut(300);					   
			$('#packdesc2').fadeIn(1300);

			});
		$('#pack3').mouseover(function() {
			$('#packdesc1,#packdesc2').fadeOut(300);					   
			$('#packdesc3').fadeIn(1300);
	
			});
		
		$("a[rel=1],a[rel=2],a[rel=3]").fancybox({
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'autoScale'     :   false,
		'titlePosition' :   'inside',
		'transitionIn'  :   'elastic',
		'transitionOut' :   'elastic',
		'overlayOpacity':   0.2,
		'overlayShow'	:	true
	});
		
		$("a.iframe").fancybox({
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'height'        :   460,
		'width'         :   430,
		'titleShow'		:	false,
		'scrolling'     :   'no',
		'autoScale'     :   false,
		'autoDimensions':	true,
		'transitionIn'  :   'fade',
		'transitionOut' :   'fade',
		'overlayOpacity':   0.2,
		'overlayShow'	:	false
	});	

		

  
});


		Cufon.replace('#menu a, #packdesc1 h2, #packdesc2 h2, #packdesc3 h2, .packdesc, .sportofoliu p, .sportofoliu a, .pportofoliu p, .pportofoliu a, .stitle p, .footercol p, .newsletter h4, .sidecontent h4, .sidecontent ul li, .features, .shortdesc, fieldset label', {
			hover: true,
			fontFamily: 'Gotham Book'
		});
		
		Cufon.replace('#packdesc1 h3, #packdesc2 h3, #packdesc3 h3, #packdesc1 strong, #packdesc2 strong, #packdesc3 strong, .footercol h5, #resurse h4, #testimoniale h4, .price, .resurse h4', {
			hover: true,
			fontFamily: 'Gotham Medium'
		});
		
		Cufon.replace('.stitle h2, .sportofoliu h4, .pportofoliu h4, #testimoniale h3, #resurse h3, #content h1, #content h2, #content h3, .usp, fieldset legend, #content h5', {
			hover: true,
			fontFamily: 'Gotham Rounded Medium'
		});

var addthis_config = {
     ui_language: "ro",
	 ui_cobrand: "Brandup",
     ui_header_color: "#0073bd",
     ui_header_background: "#fafafa"

}