//
// psd2css.js
//
//   This is where all the javascript required by your design is written.
//
//   Originally generated at http://psd2cssonline.com 
//   August 14, 2009, 5:09 am with psd2css Online version 1.44

$(document).ready(function() {
  if( $.fn.pngfix != null )			// This is required for the PNG fix to work.
    $("img[@src$=png]").pngfix();

  // This is some javascript to stop IE from displaying the img alt attributes
  // when you mouse over imagess.  If you would like IE to display the alt attributes,
  // just comment out the following 4 lines.  Don't worry, if you leave this in 
  // place, your ALT attributes are still readable by the search engines.
  var tmpalt;
  $("img").hover( 
    function(){ tmpalt = $(this).attr( "alt" ); $(this).attr( "alt", "" ); },
    function(){ $(this).attr( "alt", tmpalt ); });

	checkVersion();

    $('.slideshow').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
	
//	roundCorners();
});

function roundCorners()
{
	debugger;
	$('#main').corner("round 15px");
}

function showHome()
{
	$('#headers div').hide();
	$('#content div').hide();
	$('#_home').show();
	$('#_homeHdr').show();
	$("#_homeHdr").dropShadow();
}

function showAbout()
{
	$('#headers div').hide();
	$('#content div').hide();
	$('#_about').show();
	$('#_aboutHdr').show();
	$("#_aboutHdr").dropShadow();
}

function showTour()
{
	$('#headers div').hide();
	$('#content div').hide();
	$('#_tourHdr').show();
	$('#_tour').show();
	$("#_tourHdr").dropShadow();
}

function showNews()
{
	$('#headers div').hide();
	$('#content div').hide();
	$('#_newsHdr').show();
	$('#_news').show();
	$("#_newsHdr").dropShadow();
}

function showMedia()
{
	$('#headers div').hide();
	$('#content div').hide();
	$('#_mediaHdr').show();
	$('#_media').show();
	$("#_mediaHdr").dropShadow();

}

function showContact()
{
	$('#headers div').hide();
	$('#content div').hide();
	$('#_contactHdr').show();
	$('#_contact').show();
	$("#_contactHdr").dropShadow();
}

function showLinks()
{
	$('#headers div').hide();
	$('#content div').hide();
	$('#_linksHdr').show();
	$('#_links').show();
	$("#_linksHdr").dropShadow();
	$("#thelinks").dropShadow();
}

function showEPK()
{
	$('#headers div').hide();
	$('#content div').hide();
	$('#_epkHdr').show();
	$('#_epk').show();
	$("#_epkHdr").dropShadow();
}

function getInternetExplorerVersion()
// Returns the version of Windows Internet Explorer or a -1
// (indicating the use of another browser).
{
   var rv = -1; // Return value assumes failure.
   if (navigator.appName == 'Microsoft Internet Explorer')
   {
      var ua = navigator.userAgent;
      var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
      if (re.exec(ua) != null)
         rv = parseFloat( RegExp.$1 );
   }
   return rv;
}
function checkVersion()
{
   var ver = getInternetExplorerVersion();
   $("#browser_error").hide();
   if ( ver > -1 )
   {
      if ( ver>= 8.0 )
         $("#browser_error").hide()
      else
         $("#browser_error").show()
    }
}

