<!-- png --> 
 
 if (document.all && /MSIE (5\.5|6)/.test(navigator.userAgent) &&
  document.styleSheets && document.styleSheets[0] && document.styleSheets[0].addRule)
 {
  document.styleSheets[0].addRule('*', 'behavior: url(http://www.peninsulacottage.co.uk/js/iepngfix.htc)');

 }
 
<!--  slideshow -->
$(document).ready(function() {
    $('#slideshow').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
});

<!-- text hide -->
$(document).ready(function() { 
$('div.view1').hide(); $('div.text1').toggle(function() { $(this).siblings('div.view1').fadeIn('slow'); }, function() { $(this).siblings('div.view1').fadeOut('fast'); return false; 
	}); 
});
$(document).ready(function() { 
$('div.view2').hide(); $('div.text2').toggle(function() { $(this).siblings('div.view2').fadeIn('slow'); }, function() { $(this).siblings('div.view2').fadeOut('fast'); return false; 
	}); 
});
$(document).ready(function() { 
$('div.view3').hide(); $('div.text3').toggle(function() { $(this).siblings('div.view3').fadeIn('slow'); }, function() { $(this).siblings('div.view3').fadeOut('fast'); return false; 
	}); 
});

 function nameDefined(ckie,nme)
{
   var splitValues
   var i
   for (i=0;i<ckie.length;++i)
   {
      splitValues=ckie[i].split("=")
      if (splitValues[0]==nme) return true
   }
   return false
}

function delBlanks(strng)
{
   var result=""
   var i
   var chrn
   for (i=0;i<strng.length;++i) {
      chrn=strng.charAt(i)
      if (chrn!=" ") result += chrn
   }
   return result
}
function getCookieValue(ckie,nme)
{
   var splitValues
   var i
   for(i=0;i<ckie.length;++i) {
      splitValues=ckie[i].split("=")
      if(splitValues[0]==nme) return splitValues[1]
   }
   return ""
}
function insertCounter() {
 readCookie()
 displayCounter()
}
 function displayCounter() {
 document.write('<p ALIGN="CENTER">')
 document.write("You've visited this page ")
 if(counter==1) document.write("the first time.")
 else document.write(counter+" times.")
 document.writeln('</p>')
 }
function readCookie() {
 var cookie=document.cookie
 counter=0
 var chkdCookie=delBlanks(cookie)  //are on the client computer
 var nvpair=chkdCookie.split(";")
 if(nameDefined(nvpair,"pageCount"))
 counter=parseInt(getCookieValue(nvpair,"pageCount"))
 ++counter
 var futdate = new Date()
 var expdate = futdate.getTime()
 expdate += 3600000 * 24 *30  //expires in 1 hour
 futdate.setTime(expdate)

 var newCookie="pageCount="+counter
 newCookie += "; expires=" + futdate.toGMTString()
 window.document.cookie=newCookie
}


