jQuery(document).ready(function() {
    document.getElementById('readMoreLink').style.display = 'inline-block';
	 document.getElementById('readMoreText').style.display = 'none';
	 document.getElementById('sliderText').style.top = '341px';
	 document.getElementById('sliderText').style.height = '198px';
	 
	 jQuery('#readMoreLink').click(function() {
	 document.getElementById('readMoreText').style.display = 'block';
	 document.getElementById('readLessLink').style.display = 'block';
	 document.getElementById('readMoreLink').style.display = 'none';
  	 jQuery('#sliderText').animate({
    top: '121px',
    height: '418px'
  }, 2000, function() {
    // Animation complete.
  });
});
	 
	  jQuery('#readLessLink').click(function() {
	 document.getElementById('readMoreText').style.display = 'none';
	 document.getElementById('readLessLink').style.display = 'none';
	 document.getElementById('readMoreLink').style.display = 'inline-block';
  	 jQuery('#sliderText').animate({
    top: '341px',
    height: '198px'
  }, 1000, function() {
    // Animation complete.
  });
});
	  
	 
});

jQuery(document).ready(function(){
    jQuery('#slider').bxSlider({
				infiniteLoop: true,
				auto: true,
				pager: false,
				pause: 3000,
			});
  });



jQuery(document).ready(function(){
										  
	jQuery('.linkBox.slideup').hover(function(){
		jQuery(".cover", this).stop().animate({top:'144px'},{queue:false,duration:300});
		jQuery("img", this).stop().animate({opacity: 0}, 'slow');
		},
		function() {
		jQuery(".cover", this).stop().animate({top:'194px'},{queue:false,duration:300});
		jQuery("img", this).stop().animate({opacity: 1}, 'slow');
	});

});



function noSpam() {
	 if (document.getElementById) {
		var at = "@";
	  	var links = document.getElementsByTagName('a');
	  
	  	for (var i = 0; i < links.length; i++) {
		  	var linkElem = links[i];
			
		  	if (linkElem.className == 'escape') {
		  		var mail = linkElem.firstChild; var domain = linkElem.lastChild;
		  		mail.nextSibling.firstChild.innerHTML = at;
		  		linkElem.href = "mailto:" + mail.data + at + domain.data;
		  	}
			if (linkElem.className == 'escape noStyle') {
		  		var mail = linkElem.firstChild; var domain = linkElem.lastChild;
		  		mail.nextSibling.firstChild.innerHTML = at;
		  		linkElem.href = "mailto:" + mail.data + at + domain.data;
		  	}
			
	  	} // End for
	  
    } // End if
}



window.onload = noSpam;



