jQuery(document).ready(function(){	

// Index main runner links
$(".index-hoverimages").hide();

$("#web-design-link").hover(function(){
	$(".index-hoverimages").hide();
	$("p#main-runner-changer").fadeIn().text("A Presence");
	$("img#main-runner-index-links-wd").fadeIn()},
	function (){
	$(".index-hoverimages").hide();
	$("p#main-runner-changer").hide();
});

$("#internet-marketing-link").hover(function(){
	$(".index-hoverimages").hide();
	$("p#main-runner-changer").fadeIn().text("Growth");
	$("img#main-runner-index-links-im").fadeIn()},
	function (){
	$(".index-hoverimages").hide();
	$("p#main-runner-changer").hide();
});

$("#graphic-design-link").hover(function(){
	$(".index-hoverimages").hide();
	$("p#main-runner-changer").fadeIn().text("A Brand");
	$("img#main-runner-index-links-gd").fadeIn()},
	function (){
	$(".index-hoverimages").hide();
	$("p#main-runner-changer").hide();
});

$("#copywriting-link").hover(function(){
	$(".index-hoverimages").hide();
	$("p#main-runner-changer").fadeIn().text("Substance");
	$("img#main-runner-index-links-c").fadeIn()},
	function (){
	$(".index-hoverimages").hide();
	$("p#main-runner-changer").hide();
});

$("#telecoms-link").hover(function(){
	$(".index-hoverimages").hide();
	$("p#main-runner-changer").fadeIn().text("Connections");
	$("img#main-runner-index-links-t").fadeIn()},
	function (){
	$(".index-hoverimages").hide();
	$("p#main-runner-changer").hide();
});





$("#index-sidebar-case-study-overlay").hover(function(){
	$("#index-sidebar-case-study-popup").stop().animate({top:'67px'},{queue:false,duration:300});
	}, function (){
	$("#index-sidebar-case-study-popup").stop().animate({top:'-161px'},{queue:false,duration:300});		
});

$("#ie6-pop").fadeIn(2000);

$.getScript('includes/scripts/run-subnavs.js');

$(".showmore").addClass("switchOff").click(function() {
												 
	if($(this).is(".switchOff")) {
		$(this).next().slideDown("slow", function() { 
			$(this).prev().removeClass("switchOff").addClass("switchOn");
		});
		
	} 
	if ($(this).is(".switchOn")) {
		$(this).next().slideUp("slow", function() { 
			$(this).prev().removeClass("switchOn").addClass("switchOff");
		});
	}
	
	return false;
	
}).next().hide();
	
//Hover Events

$("#index-featured-case-study, #securitymetrics").css("opacity","1");
$("#index-featured-case-study, #securitymetrics").hover(function() {
     $(this).css("opacity","0.8"); },
function() {
     $(this).css("opacity","1"); });
	
});

