// JavaScript Document

// Photoshow


$(function() {
setInterval ("rotateImages()", 5000);
});

function rotateImages() {
var oCurPhoto = $("#photoshow div.current");
var oNxtPhoto = oCurPhoto.next();
if (oNxtPhoto.length == 0)
	oNxtPhoto = $("#photoshow div:first");	
	
oCurPhoto.removeClass('current').addClass('previous');

oNxtPhoto.css({ opacity:0.0 } ).addClass('current').animate({ opacity: 1.0 }, 2000,
	function() {
	oCurPhoto.removeClass('previous');
});

}

// Tooltips

$(document).ready(function() 
{
   // By suppling no content attribute, the library uses each elements title attribute by default
   $('ul#nav a[href][title]').qtip({
      content: {
         text: false // Use each elements title attribute
      },
      style: { tip: 'topLeft',
   border: {
      width: 2,
      radius: 2,
      color: '#000'
   },
   background: '#3b5998',
   color: '#FFF' }
   });
   
});

	$(document).ready(function() 
{
   // By suppling no content attribute, the library uses each elements title attribute by default
   $('div#left a[href][title]').qtip({
      content: {
         text: false // Use each elements title attribute
      },
      style: { tip: 'topLeft',
   border: {
      width: 2,
      radius: 2,
      color: '#000'
   },
   background: '#3B5998',
   color: '#FFF' }
   });
   
});

$(document).ready(function() 
{
   // By suppling no content attribute, the library uses each elements title attribute by default
   $('div#footer a[href][title]').qtip({
      content: {
         text: false // Use each elements title attribute
      },
      style: { tip: 'topLeft',
   border: {
      width: 2,
      radius: 2,
      color: '#000'
   },
   background: '#3B5998',
   color: '#FFF' }
   });
   
});


$(document).ready(function() 
{
   // By suppling no content attribute, the library uses each elements title attribute by default
   $('div#branding a[href][title]').qtip({
      content: {
         text: false // Use each elements title attribute
      },
      style: { tip: 'topLeft',
   border: {
      width: 2,
      radius: 2,
      color: '#000'
   },
   background: '#3B5998',
   color: '#FFF' }
   });
   
});

$(document).ready(function() 
{
   // By suppling no content attribute, the library uses each elements title attribute by default
   $('div#content a[href][title]').qtip({
      content: {
         text: false // Use each elements title attribute
      },
      style: { tip: 'topLeft',
   border: {
      width: 2,
      radius: 2,
      color: '#000'
   },
   background: '#3B5998',
   color: '#FFF' }
   });
   
});

$(document).ready(function() 
{
   // By suppling no content attribute, the library uses each elements title attribute by default
   $('div#anmal a[href][title]').qtip({
      content: {
         text: false // Use each elements title attribute
      },
      style: { tip: 'topLeft',
   border: {
      width: 2,
      radius: 2,
      color: '#000'
   },
   background: '#3B5998',
   color: '#FFF' }
   });
   
});


// Accordion

	$(function() {
		$( "#tabs" ).tabs();
	});



