/* Home page Javascript - use for both Standard browsers and IE 9 or greater browsers */
$(document).ready(function() {
   /**/ $('#slideshow').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	}); 
	$("#mainheader a img").hover(
function() {
$(this).stop().animate({"opacity": "0.6"}, "fast");
},
function() {
$(this).stop().animate({"opacity": "1"}, "fast");
});

$("#homepagelinks a").stop().animate({"opacity": "1"}, "fast");

$("#homepagelinks a").hover(
function() {
$(this).stop().animate({"opacity": "0.8"}, "fast");
},
function() {
$(this).stop().animate({"opacity": "1"}, "fast");
});
/*
$("#sidecontent").stop().animate({"opacity": "0.6"}, "fast");
$("#sidecontent").hover(
function() {
$(this).stop().animate({"opacity": "1"}, "fast");
},
function() {
$(this).stop().animate({"opacity": "0.6"}, "fast");
});*/
if ((screen.width>=800)) {
$("#mainnavigation #about a").hover(function () {$(this).append($('<div class="big">Our mission &amp; people; video, alumni voices &amp; community presence; media center; employment</div>'));}, function () {$(this).find("div:last").remove();});

$("#mainnavigation #programs a").hover(function () {$(this).append($('<div class="big">How we can help you, your family and our communities. The &quot;Continuum of Care" for patients, referral sources and other partners</div>'));}, function () {$(this).find("div:last").remove();});

$("#mainnavigation #admissions a").hover(function () {$(this).append($('<div class="big">What to expect and how to prepare; insurance and finances; online intake form saves time</div>'));}, function () {$(this).find("div:last").remove();});

$("#mainnavigation #calendar a").hover(function () {$(this).append($('<div>Regular and special events</div>'));}, function () {$(this).find("div:last").remove();});

$("#mainnavigation #support a").hover(function () {$(this).append($('<div class="small">100% of your contribution in our mission goes to patient needs</div>'));}, function () {$(this).find("div:last").remove();});

$("#mainnavigation #contact a").hover(function () {$(this).append($('<div>The Livengrin network with maps, phones, email. Join our postal and email lists</div>'));}, function () {$(this).find("div:last").remove();});
}

//latestnews
$("#latestnews a").stop().animate({"opacity": "1"}, "fast");
$("#latestnews a").hover(
function() {
$(this).stop().animate({"opacity": "0.8"}, "fast");
},
function() {
$(this).stop().animate({"opacity": "1"}, "fast");
});

$("#mainfooter a img").stop().animate({"opacity": "0.4"}, "fast");
$("#mainfooter a img").hover(
function() {
$(this).stop().animate({"opacity": "1"}, "fast");
},
function() {
$(this).stop().animate({"opacity": "0.4"}, "fast");
});
});
