




function showoverlay(obj){
    inputContent(obj);
	var arVersion = navigator.appVersion.split("MSIE")
    var version = parseFloat(arVersion[1])
	if (version < 7)
	 document.getElementById("overlay").style.backgroundImage = "none";
     $('#overlay').fadeIn(500);
 

}



function hideoverlay(obj){
	if (obj == 0)
	{
		 if(bgchk == 0)
       $('#overlay').fadeOut(500);
	}
	else
		 $('#overlay').fadeOut(500);

 }



function inputContent(obj){
 document.getElementById("overlay-panel").style.display = "block";
  document.getElementById("flashvideoPlayer").style.display = "none";
	var imgele = document.getElementById("PanelImg");
    var headele = document.getElementById("headTxt");
    var contentele = document.getElementById("PanelContent");

	if (obj == 1)
	{
		  imgele.src = "images/img_home_"+obj+"_big.jpg";
          headele.innerHTML = "Embraced by a Crystalline Ocean";
		  contentele.innerHTML = "<p>Encircling Norfolk Island is possibly the clearest, cleanest water you'll ever enjoy. Diving below or paddling a kayak will take your breath away. Just offshore, the ocean floor descends more than a kilometer below the surface. And you'll soon realise why we don't just go 'fishing' - we go 'catching'!</p>"
   }
   	if (obj == 2)
	{
		  imgele.src = "images/img_home_"+obj+"_big.jpg";
          headele.innerHTML = "Feasting on Nature's Bounty";
		  contentele.innerHTML = "<p>Remember Jack and his Beanstalk? How the stalk just grew and grew towards the sky? Norfolk Island's soil is rather like that. Being of volcanic origin, it's so rich we just throw down a seed and it bursts forth as Mother Nature intended</p>"
   }
   	if (obj == 3)
	{
		  imgele.src = "images/img_home_"+obj+"_big.jpg";
          headele.innerHTML = "Stellar by Starlight";
		  contentele.innerHTML = "<p>At night your eyes will drink the liquid brilliance of the heavens. The skies above Norfolk Island have remained uniquely untainted by the modern world. With a mere handful of streetlights, there's zero light pollution. Someone's probably written a song about it.</p>"
   }
   
    if (obj == 4)
	{
		  imgele.src = "images/img_home_"+obj+"_big.jpg";
          headele.innerHTML = "A Perfect Sub-Tropical Natural Temperature";
		  contentele.innerHTML = "<p>Never dropping below 10 degrees or above 28. In a word: comfortable. One of Norfolk Island's many blessings is a subtropical climate. Average maximums from 18C in Winter; 24C in Summer - surely the perfect temperature to explore our world in!</p>"
   }
    if (obj == 5)
	{
		  imgele.src = "images/img_home_"+obj+"_big.jpg";
          headele.innerHTML = "The Bounty Crew";
		  contentele.innerHTML = "<p>Around a third of islanders descend from the rebellious Bounty crew and their Tahitian partners. There are eight common surnames, including Quintal, McCoy and Christian and the island's telephone book is the only one in the world to be listed by nicknames including \"Tarzan\", \"Lettuce Leaf\", \"Diddles\" and \"Shagsy\".</p>"
   }

    if (obj == 6)
	{
		  imgele.src = "images/img_home_"+obj+"_big.jpg";
          headele.innerHTML = "Seaside Golf";
		  contentele.innerHTML = "<p>Norfolk's seaside golf course is one of the world's most scenic courses - with one hole voted the best in the South Pacific! It is only 9 holes (18-tee PGA rating) and isn't a long walk around. The main challenge is not being distracted by the views of Norfolk Island from our fairways.  The price of 9 holes is only about $20!</p>"
   }
 }

 function movepre(){
	counter--;
	if (counter <= 0)
	 counter = 6;
   inputContent(counter);
 }

  function movenxt(){
	counter++;
	if (counter > 6)
	 counter = 1;
   inputContent(counter);
}




 
