	//cufon
	Cufon.replace('.replace-cuf',  {hover: true});
	Cufon.replace('.replace-cuf2',  {textShadow: '#2c5203 1px 1px', hover: true});



/*********************** tabs for slane-farm-hostel.asp   ***********************/


$(document).ready(function() {


			/**********************************************************************************************/
			
			/*   ATTENTION, FOR THIS SCRIPT TO WORK YOU MUST SET THE HREF WITHIN THE LINK TO A FULL URL    */
			/*   FOR INSTANCE http://mydomain.com/page1.html AS OPPOSED TO  page1.html                     */
		//set the ID of the menu
			
				//current location
			var href = jQuery(location).attr('href');
		$('#top_nav li a').each(function(index) {
   				
						if ($(this).attr('href')== href)
						{
						
							$(this).addClass('top_nav_on');
							//$(this).css('color', 'blue');
						$(this).parent().addClass('top_nav_li_on');
						//$(this).parent().css('background-color', 'red');
						
						
						
						}//end if
							
	  			});//end loop
		
		
		$('#left_nav li a').each(function(index) {
   				
						if ($(this).attr('href')== href)
						{
						
							$(this).addClass('left_nav_on');
							//$(this).css('color', 'blue');
						$(this).parent().addClass('left_nav_li_on');
						//$(this).parent().css('background-color', 'red');
						
						
						
						}//end if
							
	  			});//end loop
		
		
		
		$('#quick_links li a').each(function(index) {
   				//alert($(this).attr('href'))
						if ($(this).attr('href')== href)
						{
						
							$(this).addClass('quick_links_on');
							//$(this).css('color', 'blue');
						$(this).parent().addClass('quick_links_on');
						//$(this).parent().css('background-color', 'red');
						
						
						
						}//end if
							
	  			});//end loop
		
					
});




/*************************** out put IS 6 message  ******************/

function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}


function removeBrMess()
	{
		
		createCookie('browsermess1','1',1);
		
		$('#IE6_message').fadeOut(500);
		
	}
	
	
	
	$(document).ready(function() {
	
	var donotshowmessage = readCookie('browsermess1');	
	if (navigator.appName == 'Microsoft Internet Explorer' && navigator.appVersion.indexOf("MSIE 6.")!=-1 && donotshowmessage!=1)
	{
		
		//don't forget to upload the images!!!!
		var url = 'http://' + window.location.hostname + '/';
		
		$('body').append('<div id="IE6_message"><br /><p><strong>Did you know that your version of Internet Explorer is out of date?</strong></p><br /><br /><p>To get the best possible experience using our website we recommend that you upgrade to a newer version or another web browser. </p><p>A list of the most popular web browsers can be found below.<br />Just click on the icons to get to the download page.</p><p><a href="http://www.mozilla.com/firefox/" target="_blank"><img src="'+url+'library/browsers/browser_firefox.gif" alt="Firefos" width="100" height="100" border="0" /></a>&nbsp;&nbsp;&nbsp;<a href="http://www.google.com/chrome" target="_blank"><img src="'+url+'library/browsers/browser_chrome.gif" alt="Google Chrome" width="100" height="100" border="0" /></a>&nbsp;&nbsp;&nbsp;<a href="http://www.microsoft.com/windows/Internet-explorer/default.aspx" target="_blank"><img src="'+url+'library/browsers/browser_ie.gif" alt="Internet Explorer" width="100" height="100" border="0" /></a>&nbsp;&nbsp;&nbsp;<a href="http://www.apple.com/safari/download/" target="_blank"><img src="'+url+'library/browsers/browser_safari.gif" alt="Safari" width="100" height="100" border="0" /></a></p><p><strong>Important:</strong> Some of the functionalities / layout on this website may not render as expected on your current browser.</p><p>&nbsp;</p><p>Upgrading is FREE!<br />Why not select a new browser now.</p><p>&nbsp;</p><p><a href="javascript:removeBrMess();">Dismiss this message</a></p><p>&nbsp;</p></div>') 
		
	}
	
		});

/*
$(function () {
			$('#slider2').anythingSlider({
				
				width           : 710,  // Override the default CSS width
				height          : 210,
				theme           : 'metallic',
				onSlideComplete : function(slider){
					//alert('Welcome to Slide #' + slider.currentPage);
				}
			});

	});
*/
$(document).ready(function() {
    $('#newsticker').cycle({
	delay:  500,
		fx:  'scrollUp' /*pickEffect()*/ // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
});

