$(document).ready(function(){
//CODE IMMEDIATELY BELOW IS FOR INDEX AND CONTENT PAGES ONLY
$('[class^="aAltBox"]').hover(
    function(){
         $(".textTopHeader").css({color:'black'}); //mouseover
    },
    function(){
         $(".textTopHeader").css({color:'white'}); // mouseout
    }
);

$('[class^="bAltBox"]').hover(
    function(){
         $(".textMidHeader").css({color:'black'}); //mouseover
    },
    function(){
         $(".textMidHeader").css({color:'white'}); // mouseout
    }
);
$('[class^="aBox"]').hover(
    function(){
         $(".school").css({color:'white'}); //mouseover
    },
    function(){
         $(".school").css({color:'black'}); // mouseout
    }
);

$('[class^="bBox"]').hover(
    function(){
         $(".training").css({color:'white'}); //mouseover
    },
    function(){
         $(".training").css({color:'black'}); // mouseout
    }
);

$('[class^="cBox"]').hover(
    function(){
         $(".achievements").css({color:'white'}); //mouseover
    },
    function(){
         $(".achievements").css({color:'black'}); // mouseout
    }
);

//CODE BELOW IS FOR TAG CLOUDS FOUND ON CONTENT PAGES
$(".tag1").fadeTo("slow", 0.75);$(".cloud1").fadeTo("slow", 0.0);$(".tag1").hover(function(){
$(this).fadeTo("slow", 1.0);$(".cloud1").stop().fadeTo("slow", 1.0);},function(){
$(this).fadeTo("slow", 0.75);$(".cloud1").stop().fadeTo("slow", 0.0);
});
$(".tag2").fadeTo("slow", 0.5);$(".cloud2").fadeTo("slow", 0.0);$(".tag2").hover(function(){
$(this).fadeTo("slow", 1.0);$(".cloud2").stop().fadeTo("slow", 1.0);},function(){
$(this).fadeTo("slow", 0.5);$(".cloud2").stop().fadeTo("slow", 0.0);
});
$(".tag3").fadeTo("slow", 0.75);$(".cloud3").fadeTo("slow", 0.0);$(".tag3").hover(function(){
$(this).fadeTo("slow", 1.0);$(".cloud3").stop().fadeTo("slow", 1.0);},function(){
$(this).fadeTo("slow", 0.75);$(".cloud3").stop().fadeTo("slow", 0.0);
});
$(".tag4").fadeTo("slow", 0.6);$(".cloud4").fadeTo("slow", 0.0);$(".tag4").hover(function(){
$(this).fadeTo("slow", 1.0);$(".cloud4").stop().fadeTo("slow", 1.0);},function(){
$(this).fadeTo("slow", 0.6);$(".cloud4").stop().fadeTo("slow", 0.0);
});
$(".tag5").fadeTo("slow", 0.5);$(".cloud5").fadeTo("slow", 0.0);$(".tag5").hover(function(){
$(this).fadeTo("slow", 1.0);$(".cloud5").stop().fadeTo("slow", 1.0);},function(){
$(this).fadeTo("slow", 0.5);$(".cloud5").stop().fadeTo("slow", 0.0);
});
$(".tag6").fadeTo("slow", 0.2);$(".cloud6").fadeTo("slow", 0.0);$(".tag6").hover(function(){
$(this).fadeTo("slow", 1.0);$(".cloud6").stop().fadeTo("slow", 1.0);},function(){
$(this).fadeTo("slow", 0.2);$(".cloud6").stop().fadeTo("slow", 0.0);
});
$(".tag7").fadeTo("slow", 0.75);$(".cloud7").fadeTo("slow", 0.0);$(".tag7").hover(function(){
$(this).fadeTo("slow", 1.0);$(".cloud7").stop().fadeTo("slow", 1.0);},function(){
$(this).fadeTo("slow", 0.75);$(".cloud7").stop().fadeTo("slow", 0.0);
});
$(".tag8").fadeTo("slow", 0.75);$(".cloud8").fadeTo("slow", 0.0);$(".tag8").hover(function(){
$(this).fadeTo("slow", 1.0);$(".cloud8").stop().fadeTo("slow", 1.0);},function(){
$(this).fadeTo("slow", 0.75);$(".cloud8").stop().fadeTo("slow", 0.0);
});
$(".tag9").fadeTo("slow", 0.2);$(".cloud9").fadeTo("slow", 0.0);$(".tag9").hover(function(){
$(this).fadeTo("slow", 1.0);$(".cloud9").stop().fadeTo("slow", 1.0);},function(){
$(this).fadeTo("slow", 0.2);$(".cloud9").stop().fadeTo("slow", 0.0);
});
$(".tag10").fadeTo("slow", 0.75);$(".cloud10").fadeTo("slow", 0.0);$(".tag10").hover(function(){
$(this).fadeTo("slow", 1.0);$(".cloud10").stop().fadeTo("slow", 1.0);},function(){
$(this).fadeTo("slow", 0.75);$(".cloud10").stop().fadeTo("slow", 0.0);
});
$(".tag11").fadeTo("slow", 0.75);$(".cloud11").fadeTo("slow", 0.0);$(".tag11").hover(function(){
$(this).fadeTo("slow", 1.0);$(".cloud11").stop().fadeTo("slow", 1.0);},function(){
$(this).fadeTo("slow", 0.75);$(".cloud11").stop().fadeTo("slow", 0.0);
});
$(".tag12").fadeTo("slow", 0.75);$(".cloud12").fadeTo("slow", 0.0);$(".tag12").hover(function(){
$(this).fadeTo("slow", 1.0);$(".cloud12").stop().fadeTo("slow", 1.0);},function(){
$(this).fadeTo("slow", 0.75);$(".cloud12").stop().fadeTo("slow", 0.0);
});
$(".tag13").fadeTo("slow", 0.75);$(".cloud13").fadeTo("slow", 0.0);$(".tag13").hover(function(){
$(this).fadeTo("slow", 1.0);$(".cloud13").stop().fadeTo("slow", 1.0);},function(){
$(this).fadeTo("slow", 0.75);$(".cloud13").stop().fadeTo("slow", 0.0);
});
$(".tag14").fadeTo("slow", 0.75);$(".cloud14").fadeTo("slow", 0.0);$(".tag14").hover(function(){
$(this).fadeTo("slow", 1.0);$(".cloud14").stop().fadeTo("slow", 1.0);},function(){
$(this).fadeTo("slow", 0.75);$(".cloud14").stop().fadeTo("slow", 0.0);
});
$(".tag15").fadeTo("slow", 0.2);$(".cloud15").fadeTo("slow", 0.0);$(".tag15").hover(function(){
$(this).fadeTo("slow", 1.0);$(".cloud15").stop().fadeTo("slow", 1.0);},function(){
$(this).fadeTo("slow", 0.2);$(".cloud15").stop().fadeTo("slow", 0.0);
});
$(".tag16").fadeTo("slow", 0.75);$(".cloud16").fadeTo("slow", 0.0);$(".tag16").hover(function(){
$(this).fadeTo("slow", 1.0);$(".cloud16").stop().fadeTo("slow", 1.0);},function(){
$(this).fadeTo("slow", 0.75);$(".cloud16").stop().fadeTo("slow", 0.0);
});

//CODE BLOCKS BELOW ARE FOR INDEX/CONTENT/ALTERNATIVE PAGE ROLLOVERS
$(".LeftLinks1").mouseenter(function() {
    $(".castingRollover").css("z-index","3").stop().fadeTo("slow", 1.0);
  });
$(".castingRollover").mouseleave(function() {
    $(".castingRollover").stop().fadeTo("slow", 0.0, function() { $(this).css("z-index","-3")} );
  });
//--
$(".LeftLinks8").mouseenter(function() {
    $(".newsletterRollover").css("z-index","3").stop().fadeTo("slow", 1.0);
  });
$(".newsletterRollover").mouseleave(function() {
    $(".newsletterRollover").stop().fadeTo("slow", 0.0, function() { $(this).css("z-index","-3")} );
  });
//--
$(".RightLinks2").mouseenter(function() {
    $(".calendarRollover").css("z-index","3").stop().fadeTo("slow", 1.0);
  });
$(".calendarRollover").mouseleave(function() {
    $(".calendarRollover").stop().fadeTo("slow", 0.0, function() { $(this).css("z-index","-3")} );
  });
//--
$(".RightLinks9").mouseenter(function() {
    $(".contactRollover").css("z-index","3").stop().fadeTo("slow", 1.0);
  });
$(".contactRollover").mouseleave(function() {
    $(".contactRollover").stop().fadeTo("slow", 0.0, function() { $(this).css("z-index","-3")} );
  });
//----// ----------------------------------------------------------------------------------------------------------------------------------------------

//CODE BELOW IS FOR INDEX AND CONTENT PAGES ONLY
$(".tinkleButton").fadeTo("slow", 0.1);
$(".tinkleButton").hover(function(){
$(this).stop().fadeTo("slow", 1.0);
},function(){
$(this).stop().fadeTo("slow", 0.1);
});
$(".tinkleSitemap").fadeTo("slow", 0.7);
$(".tinkleSitemap").hover(function(){
$(this).stop().fadeTo("slow", 1.0);
},function(){
$(this).stop().fadeTo("slow", 0.7);
});
$(".tinkleEvents").fadeTo("slow", 0.2);
$(".tinkleEvents").hover(function(){
$(this).stop().fadeTo("slow", 0.9);
},function(){
$(this).stop().fadeTo("slow", 0.2);
});
$(".tinkleType1").fadeTo("slow", 0.0);
$(".tinkleType1").hover(function(){
$(this).fadeTo("slow", 0.2);
},function(){
$(this).fadeTo("slow", 0.0);
});
$(".tinkleType2").fadeTo(600, 0.0);
$(".tinkleType2").hover(function(){
$(this).fadeTo(600, 0.3);
},function(){
$(this).fadeTo(600, 0.0);
});
$(".tinkleType3").fadeTo("slow", 0.0);
$(".tinkleType3").hover(function(){
$(this).fadeTo("slow", 0.3);
},function(){
$(this).fadeTo("slow", 0.0);
});
$(".tinkleType4").fadeTo("slow", 0.9);
$(".tinkleType4").hover(function(){
$(this).fadeTo("slow", 0.2);
},function(){
$(this).fadeTo("slow", 0.9);
});
$(".tinkleType5").fadeTo("slow", 0.2);
$(".tinkleType5").hover(function(){
$(this).fadeTo("slow", 0.9);
},function(){
$(this).fadeTo("slow", 0.2);
});
$(".tinkleType6").fadeTo("slow", 0.5);
$(".tinkleType6").hover(function(){
$(this).fadeTo("slow", 1.0);
},function(){
$(this).fadeTo("slow", 0.5);
});
$(".tinkleType7").fadeTo("slow", 0.2);
$(".tinkleType7").hover(function(){
$(this).fadeTo("slow", 0.6);
},function(){
$(this).fadeTo("slow", 0.2);
});
$(".tinkleType8").fadeTo("slow", 0.0);
$(".tinkleType8").hover(function(){
$(this).fadeTo("slow", 0.5);
},function(){
$(this).fadeTo("slow", 0.0);
});
});
