﻿$(document).ready(function() {
    
	
	
	
	$('#tweetList').jcarousel({
        auto:3,
        scroll:1,
        vertical:true,
        wrap:'circular'
    });
    
    $('#homeHeroImages').cycle({
		fx:'fade',
		delay: -3500,
		speed: 4000,
		timeout: 5000	
	});
    
    	//When page loads...
	$(".tabContent").hide(); //Hide all content
	$("#tabs li:first").addClass("active").show(); //Activate first tab
	$(".tabContent:first").show(); //Show first tab content
	
	//On Click Event
	$("#tabs li").click(function() {

		$("#tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tabContent").hide(); //Hide all tab content

		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});
	
	
	
	$('.fade').mosaic();
	
	$('.int').mosaic();
	
	
	var strategyRoyalMailToolTip = "Home brought Royal Mail's high-profile strategy to life inside the organisation, generating £8m of revenue opportunities along the way.";
	$('#strategyRoyalMailToolTip').qtip({
   	content: {
      text: (strategyRoyalMailToolTip)},
      position: {
      my: 'bottom left', 
      at: 'top center',
      target: $('#strategyRoyalMailToolTip') 
   	},
   	style: {
      classes: 'ui-tooltip ui-tooltip-shadow ui-tooltip-rounded'
   }
   });
   
  
  var visionValuesLloydsTSBToolTip = "How a fresh start for Lloyd's insurance business led to an inflatable dome and a unique immersion in their vision for employees.";
 $('#visionValuesLloydsTSBToolTip').qtip({
   	content: {
      text: (visionValuesLloydsTSBToolTip)},
      position: {
      my: 'bottom left', 
      at: 'top center',
      target: $('#visionValuesLloydsTSBToolTip') 
   	},
   	style: {
      classes: 'ui-tooltip ui-tooltip-shadow ui-tooltip-rounded'
   }

   });
   
   
   var internalBrandingPrudentialToolTip = "Muddled messages got Home's creative juices flowing, resulting in a beautiful internal brand that helps employees communicate in a fresh and exciting way.";
   $('#internalBrandingPrudentialToolTip').qtip({
   	content: {
      text: (internalBrandingPrudentialToolTip)},
      position: {
      my: 'bottom left', 
      at: 'top center',
      target: $('#internalBrandingPrudentialToolTip') 
   	},
   	style: {
      classes: 'ui-tooltip ui-tooltip-shadow ui-tooltip-rounded'
   }

   });
   
   
   
   var changeManagementLloydsBankingGroupToolTip = "Bringing together two huge brands in Europe's biggest ever financial services integration needed clear, comprehensive, compelling communication - Home stepped up to the plate.";
   $('#changeManagementLloydsBankingGroupToolTip').qtip({
   	content: {
      text: (changeManagementLloydsBankingGroupToolTip)},
      position: {
      my: 'bottom left', 
      at: 'top center',
      target: $('#changeManagementLloydsBankingGroupToolTip') 
   	},
   	style: {
      classes: 'ui-tooltip ui-tooltip-shadow ui-tooltip-rounded'
   }

   });
   
   
   var hrRBSToolTip = "Can a complex and challenging strategy really help engage employees? Yes, with a little bit of Visual Thinking.";
   $('#hrRBSToolTip').qtip({
   	content: {
      text: (hrRBSToolTip)},
      position: {
      my: 'bottom left', 
      at: 'top center',
      target: $('#hrRBSToolTip') 
   	},
   	style: {
      classes: 'ui-tooltip ui-tooltip-shadow ui-tooltip-rounded'
   }

   });
   
   
   
   var operationalRoyalMailToolTip = "Home made a complex product simple, increasing sales and enthusiasm along the way.";
   $('#operationalRoyalMailToolTip').qtip({
   	content: {
      text: (operationalRoyalMailToolTip)},
      position: {
      my: 'bottom left', 
      at: 'top center',
      target: $('#operationalRoyalMailToolTip') 
   	},
   	style: {
      classes: 'ui-tooltip ui-tooltip-shadow ui-tooltip-rounded'
   }

   });
   
   
   
   var operationalLloydsTSBToolTip = "When people are busy, it's hard to find the right balance between information and motivation. At Home, we understand what people need when they are short of time and big on targets.";
   $('#operationalLloydsTSBToolTip').qtip({
   	content: {
      text: (operationalLloydsTSBToolTip)},
      position: {
      my: 'bottom left', 
      at: 'top center',
      target: $('#operationalLloydsTSBToolTip') 
   	},
   	style: {
      classes: 'ui-tooltip ui-tooltip-shadow ui-tooltip-rounded'
   }

   });
   
   
   
   var csrJaguarLandRoverToolTip = "Jaguar Land Rover made a serious commitment to reducing their environmental impact. They turned to Home to help employees understand what had to be done.";
   $('#csrJaguarLandRoverToolTip').qtip({
   	content: {
      text: (csrJaguarLandRoverToolTip)},
      position: {
      my: 'bottom left', 
      at: 'top center',
      target: $('#csrJaguarLandRoverToolTip') 
   	},
   	style: {
      classes: 'ui-tooltip ui-tooltip-shadow ui-tooltip-rounded'
   }

   });
   
   
     var csrNATSToolTip = "When NATS wanted to reduce its carbon footprint, Home's innovative communications campaign brought real results - and external recognition.";
   $('#csrNATSToolTip').qtip({
   	content: {
      text: (csrNATSToolTip)},
      position: {
      my: 'bottom left', 
      at: 'top center',
      target: $('#csrNATSToolTip') 
   	},
   	style: {
      classes: 'ui-tooltip ui-tooltip-shadow ui-tooltip-rounded'
   }

   });
   
   
       var rewardYahooToolTip = "Yahoo is all about delivering amazing digital content and experiences, so they turned to Home to help them bring this to life in their reward communications.";
   $('#rewardYahooToolTip').qtip({
   	content: {
      text: (rewardYahooToolTip)},
      position: {
      my: 'bottom left', 
      at: 'top center',
      target: $('#rewardYahooToolTip') 
   	},
   	style: {
      classes: 'ui-tooltip ui-tooltip-shadow ui-tooltip-rounded'
   }

   });

  var rewardIHGToolTip = "Your people continue to shine even when times are tough. Home's redesign of InterContinental's recognition scheme kept the spotlight on staff and reduced costs to the organisation.";
   $('#rewardIHGToolTip').qtip({
   	content: {
      text: (rewardIHGToolTip)},
      position: {
      my: 'bottom left', 
      at: 'top center',
      target: $('#rewardIHGToolTip') 
   	},
   	style: {
      classes: 'ui-tooltip ui-tooltip-shadow ui-tooltip-rounded'
   }

   });
   
   
   var rewardRoyalMailToolTip = "Watch and Win has made £250m for Royal Mail over the past few years, and Home has been there every step of the way to keep things fresh and relevant for employees.";
   $('#rewardRoyalMailToolTip').qtip({
   	content: {
      text: (rewardRoyalMailToolTip)},
      position: {
      my: 'bottom left', 
      at: 'top center',
      target: $('#rewardRoyalMailToolTip') 
   	},
   	style: {
      classes: 'ui-tooltip ui-tooltip-shadow ui-tooltip-rounded'
   }

   });



 var healthSafetyBPToolTip = "Home's Office Safety campaign delivered fresh, engaging and memorable communications for BP, helping employees manage their own health and safety at work.";
   $('#healthSafetyBPToolTip').qtip({
   	content: {
      text: (healthSafetyBPToolTip)},
      position: {
      my: 'bottom left', 
      at: 'top center',
      target: $('#healthSafetyBPToolTip') 
   	},
   	style: {
      classes: 'ui-tooltip ui-tooltip-shadow ui-tooltip-rounded'
   }

   });


var theMaceGroupToolTip = "As businesses grow and develop, they sometimes need to look at their brand with fresh eyes. Mace asked Home to help.";
   $('#theMaceGroupToolTip').qtip({
   	content: {
      text: (theMaceGroupToolTip)},
      position: {
      my: 'bottom left', 
      at: 'top center',
      target: $('#theMaceGroupToolTip') 
   	},
   	style: {
      classes: 'ui-tooltip ui-tooltip-shadow ui-tooltip-rounded'
   }

   });


var theObamaMovieToolTip = "This was a film made by Home that brings colour, comedy and stats to the event that brought Barak Obama to the White house.";
   $('#theObamaMovieToolTip').qtip({
   	content: {
      text: (theObamaMovieToolTip)},
      position: {
      my: 'bottom left', 
      at: 'top center',
      target: $('#theObamaMovieToolTip') 
   	},
   	style: {
      classes: 'ui-tooltip ui-tooltip-shadow ui-tooltip-rounded'
   }

   });
	

var theCreditCrunchMovieToolTip = "'Visual thinking' is a new technique that we use to create visual explanations of complex messages. It enables you to literally see the various elements & how they all fit together.";
   $('#theCreditCrunchMovieToolTip').qtip({
   	content: {
      text: (theObamaMovieToolTip)},
      position: {
      my: 'bottom left', 
      at: 'top center',
      target: $('#theCreditCrunchMovieToolTip') 
   	},
   	style: {
      classes: 'ui-tooltip ui-tooltip-shadow ui-tooltip-rounded'
   }

   });



var thePalladiumMovieToolTip = "Palladium came to Home to invite us to speak at their 2011 EMEA Summit. We were asked to do a presentation about strategy maps. We both plan to work together in the future in delivering strategy communication.";
   $('#thePalladiumMovieToolTip').qtip({
   	content: {
      text: (thePalladiumMovieToolTip)},
      position: {
      my: 'bottom left', 
      at: 'top center',
      target: $('#thePalladiumMovieToolTip') 
   	},
   	style: {
      classes: 'ui-tooltip ui-tooltip-shadow ui-tooltip-rounded'
   }

   });







});



