/* Author: 

*/

$(document).ready(function(){
   // Basic DOM Triggers
	$("ul li:first-child, .col:first-child, table tr:first-child").addClass("first");
  	$("ul li:last-child, .col:last-child, table tr:last-child").addClass("last");
   	//$("a[href*=.pdf], a[href*=.doc]").attr("target", "_blank"); // Opens external websites, pdf, and doc files in a new window/tab
   	
	$(".stripe tr:nth-child(2n)").addClass("alt");
   	$(".stripe tr").mouseover(function() {
		$(this).addClass("over"); }).mouseout(function() {
			$(this).removeClass("over"); });


// Makes Image Links fade when on :hover
// 	$("a img").fadeTo("slow", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
// 	$("a img").hover(function(){
// 		$(this).fadeTo("medium", 0.6); // This should set the opacity to 100% on hover
// 			},function(){
// 				$(this).fadeTo("medium", 1.0); // This should set the opacity back to 30% on mouseout
// 		});
			
// Opens a "pop up Window" to a specific size.
	$('a.popup').live('click', function(){
		newwindow=window.open($(this).attr('href'),'','height=400,width=600,scrollbars=1');
		if (window.focus) {newwindow.focus()}
		return false;
	});

// JQuery Tools Slideshow
	$(".slidetabs").tabs(".images > div", {
			// enable "cross-fading" effect
			effect: 'fade',
			fadeOutSpeed: "slow",
			// start from the beginning after the last tab
			rotate: true
		// use the slideshow plugin. It accepts its own configuration
		}).slideshow( {autoplay: true,interval: 5000});

// JQuery Tools Form Validator
	$("#myform").validator();


// JQuery Tools Overlay
	$("img[rel]").overlay();

 });











































