﻿$(document).ready(function () {
	var tabContainers = $('div.tabs > div');
	
	$('div.tabs ul.tabNavigation a').click(function () {
		tabContainers.hide().filter(this.hash).show();
		
		$('div.tabs ul.tabNavigation a').removeClass('active');
		$(this).addClass('active');
		
		return false;
	}).filter(':first').click();
});

 function LoadSlideShow() {
    var feed  = "http://api.flickr.com/services/feeds/photos_public.gne?id=40802917@N06&lang=en-us&format=rss_200";
    var options = {
		displayTime:2000, 
		transistionTime:600,
		scaleImages:true, 
		linkTarget: google.feeds.LINK_TARGET_BLANK,
    	pauseOnHover : false,
    	thumbnailSize : GFslideShow.SMALL
};
    var ss = new GFslideShow(feed, "photo-slideshow", options);
  }
  /**
   * Use google.load() to load the AJAX Feeds API
   * Use google.setOnLoadCallback() to call LoadSlideShow once the page loads
   */
  google.load("feeds", "1");
  google.setOnLoadCallback(LoadSlideShow);
  
  
  
  
  $(document).ready(function () {
	var tabContainers2 = $('div.tabs2 > div');
	
	$('div.mainnavigation a, div.bottomlinks a').click(function () {
		tabContainers2.hide().filter(this.hash).show();
		
		$('div.mainnavigation a, div.bottomlinks a').removeClass('active');
		$(this).addClass('active');

		
		return false;
	}).filter(':first').click();
});
