Cufon.replace('#featured-area h1, #pagetop h1', { textShadow: '#133d9f 2px 2px 2px',  fontFamily: 'Gautami' });
Cufon.replace('#featured-area-wp h1', { color: '-linear-gradient(white,white, #93b8cc)'
, textShadow: '#ff6600 2px 2px 2px',  fontFamily: 'Gautami' });
		

	
	//Cufon.replace(', .sub-content h2, .theme-gallery h4', { hover: true,  fontFamily: 'Gautami' 
 //});
	
	//Cufon.replace('#sort h4', { fontFamily: 'Gautami' });
	//Cufon.replace('.post h2', { fontFamily: 'Gotham Medium' } )	

jQuery(document).ready(function() {

// iPhone Slider


    jQuery('#iphone-slider').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
	
	jQuery.noConflict();
	
		
		  //Back to top slider
		  
		  	//ToolTip

    
    jQuery('.north').tipsy({gravity: 'n', fade: true});
    jQuery('.south').tipsy({gravity: 's', fade: true});
    jQuery('.east').tipsy({gravity: 'e', fade: true});
    jQuery('.west').tipsy({gravity: 'w', fade: true});
    
    jQuery('.auto-gravity').tipsy({gravity: jQuery.fn.tipsy.autoNS});
    
    jQuery('.example-fade').tipsy({fade: true});
    
    jQuery('.example-custom-attribute').tipsy({title: 'id'});
    jQuery('.example-callback').tipsy({title: function() { return this.getAttribute('title').toUpperCase(); } });
    jQuery('.example-fallback').tipsy({fallback: "Where's my tooltip yo'?" });

	jQuery('.head.services').click(function(){
		jQuery(this).next('.txt').slideToggle();
		jQuery(this).find('a.readmore.s').toggle('fast');
	});

	jQuery('#go').click(function(){
		jQuery('#go').hide('slow');
	});

   
    jQuery('a[href=#top]').click(function(){
        jQuery('html, body').animate({scrollTop:0}, 600);
        return false;
    });


			
	//When page loads...
	jQuery(".tab_content").hide(); //Hide all content
	jQuery("ul.tabs li:first").addClass("active").show(); //Activate first tab
	jQuery(".tab_content:first").show(); //Show first tab content

	//On Click Event
	jQuery("ul.tabs li").click(function() {

		jQuery("ul.tabs li").removeClass("active"); //Remove any "active" class
		jQuery(this).addClass("active"); //Add "active" class to selected tab
		jQuery(".tab_content").hide(); //Hide all tab content

		var activeTab = jQuery(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		jQuery(activeTab).fadeIn(300); //Fade in the active ID content
			return false;

	});
	

// iPhone Slider


    jQuery('#iphone-slider').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
	
	
		
		  //Back to top slider
		  
		  	//ToolTip

    
    jQuery('.north').tipsy({gravity: 'n', fade: true});
    jQuery('.south').tipsy({gravity: 's', fade: true});
    jQuery('.east').tipsy({gravity: 'e', fade: true});
    jQuery('.west').tipsy({gravity: 'w', fade: true});
    
    jQuery('.auto-gravity').tipsy({gravity: jQuery.fn.tipsy.autoNS});
    
    jQuery('.example-fade').tipsy({fade: true});
    
    jQuery('.example-custom-attribute').tipsy({title: 'id'});
    jQuery('.example-callback').tipsy({title: function() { return this.getAttribute('title').toUpperCase(); } });
    jQuery('.example-fallback').tipsy({fallback: "Where's my tooltip yo'?" });


   jQuery('#resend_password_link').click(function(){
		jQuery('#pass').slideDown();
	});
    jQuery('a[href=#top]').click(function(){
        jQuery('html, body').animate({scrollTop:0}, 600);
        return false;
    });
		
	            //hide the all of the element with class msg_body
           // jQuery(".faq-body").hide();
            //toggle the componenet with class msg_body
            jQuery(".faq-head").click(function(){
                jQuery(this).parent(".faq-body").slideToggle(200);
            });	
			
	//When page loads...
	jQuery(".tab_content").hide(); //Hide all content
	jQuery("ul.tabs li:first").addClass("active").show(); //Activate first tab
	jQuery(".tab_content:first").show(); //Show first tab content

	//On Click Event
	jQuery("ul.tabs li").click(function() {

		jQuery("ul.tabs li").removeClass("active"); //Remove any "active" class
		jQuery(this).addClass("active"); //Add "active" class to selected tab
		jQuery(".tab_content").hide(); //Hide all tab content

		var activeTab = jQuery(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		jQuery(activeTab).fadeIn(300); //Fade in the active ID content
			return false;

	});


    jQuery('.featitem').cycle({
        fx:      'fade',
        timeout:  0,
        prev:    '#prev',
        next:    '#next'
    });
	
	jQuery('#slider-go').cycle({
		fx: 'scrollLeft',
	    prev: '.prev-go',
        next: '.next-go'
	});
	
	jQuery('#content-go .theme-gallery .theme-item ul.tour-slide1').cycle({
		fx:'scrollHorz',
		timeout:0,
		speed:2500,
		slideExpr:'li',
		pager:'.pager1',
			pagerAnchorBuilder:function(idx, slide){
			return '<a href="#">&nbsp;</a>';
		}
	});	
	
	jQuery('#content-go .theme-gallery .theme-item ul.tour-slide2').cycle({
		fx:'scrollHorz',
		timeout:0,
		speed:2500,
		slideExpr:'li',
		pager:'.pager2',
			pagerAnchorBuilder:function(idx, slide){
			return '<a href="#">&nbsp;</a>';
		}
	});
	
	jQuery('#content-go .theme-gallery .theme-item ul.tour-slide3').cycle({
		fx:'scrollHorz',
		timeout:0,
		speed:2500,
		slideExpr:'li',
		pager:'.pager3',
			pagerAnchorBuilder:function(idx, slide){
			return '<a href="#">&nbsp;</a>';
		}
	});
	jQuery('.featitem').hover(
	  function(){
		jQuery(this).addClass('hover');
	  });

    
    jQuery('#screenshots').jcarousel();
	
	
	// Facebox
	// jQuery('a[rel*=openbox]').facebox()
	

	jQuery('#price').click(function() {
    jQuery('.pricing-small').lightbox_me({
        centered: true, 
        onLoad: function() { 
            jQuery('.pricing-small').focus()
            }
        });
    return false;
	
});





		 jQuery(".signin").click(function(e) {
                e.preventDefault();
                jQuery("fieldset#signin_menu").toggle(0);
				jQuery("div#signin_menu").toggle(0);
                jQuery(".signin").toggleClass("menu-open");
            });

            jQuery("fieldset#signin_menu").mouseup(function() {
                return false
            });
            jQuery("div#signin_menu").mouseup(function() {
                return false
            });
            jQuery(document).mouseup(function(e) {
                if(jQuery(e.target).parent("a.signin").length==0) {
                    jQuery(".signin").removeClass("menu-open");
                    jQuery("fieldset#signin_menu").hide();
					jQuery("div#signin_menu").hide();
                }
            });       //hide the all of the element with class msg_body
            jQuery(".faq-body").hide();
            //toggle the componenet with class msg_body
            jQuery(".faq-head").click(function(){
                jQuery(this).next(".faq-body").slideToggle(200);
            });	
			
			
				
			//Examples of how to assign the ColorBox event to elements
			jQuery("a[rel='screenshot']").colorbox();
		
			
			//Example of preserving a JavaScript event for inline calls.
			jQuery("#click").click(function(){ 
				jQuery('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
				return false;
			});
			
			//FORM DE CUSTOM SERVICES
			jQuery(".open, .gbt").click(function(){ 
				//jQuery('html, body').animate({scrollTop:0}, 600);
				jQuery('html, body').animate({ scrollTop: jQuery('html, body').attr("scrollHeight") }, 1000);
				return false;
			});
	
			jQuery("#custom-form").submit(function() {
				jQuery.ajax({
					url: "http://www.hellothemes.com/wp-content/themes/HelloThemes/custom-contact.php",
					type: "POST",
					data: jQuery("#custom-form").serialize(),
					dataType: "json",
					success: function(data) {
						jQuery("#custom-form").hide();
						jQuery(".custom-contact").html(data.msj);
					}
				});
				return false;
			});
	
			// Submit
			jQuery('#contactsubmit').click(function(){
				jQuery("#custom-form").submit();
			});
});

