/* -----------------------------------------------------------------------
 	JQUERY CHANNELS: version 0.1
   * Copyright (c) 2007-Present. See LICENSE for more info.
   * See README for instructions on how to use Blueprint.
   * For credits and origins, see AUTHORS.
----------------------------------------------------------------------- */
	$(document).ready(function() {
		$(".hideit").click(function() {	
		$(this).fadeOut(700);
		});
	});
//end of notification hide	
	$(document).ready(function() {
		$(".tab_content").hide(); 
		$("ul.tabs li:first").addClass("active").show(); 
		$(".tab_content:first").show();
	
		$("ul.tabs li").click(function() {
		$("ul.tabs li").removeClass("active");
		$(this).addClass("active");
		$(".tab_content").hide(); 
		var activeTab = $(this).find("a").attr("href");
			$(activeTab).fadeIn();
			return false;
		});
	});
//end of simple tabs

	$(document).ready(function () {
		$('#toggle-view li').click(function () {
		var text = $(this).children('p');

			if (text.is(':hidden')) {
				text.slideDown('200');
				$(this).children('span').html('-');		
			} else {
				text.slideUp('200');
				$(this).children('span').html('+');		
			}		
		});
	});
//end of toogle-view
		
	$(document).ready(function(){
		$('#toggleButton').click(function(){
			$('.toggle-data').toggle();
			
			if($('.toggle-data').is(':visible')){
				$(this).val('Hide');
			} else {
				$(this).val('Show');
			}
		});
	});
//end of toggle-data

	$(document).ready(function(){
		$('.fader').hover(function() {
  		$(this).find('img:eq(1)').stop(true,true).fadeIn();
		}, function() {
  			$(this).find('img:eq(1)').fadeOut();
		})
	});
//end of rollover icons, images	
	
	$(document).ready(function() {
		$('#news ul').innerfade({
			animationtype: 'slide',
			speed: 750,
			timeout: 3000,
			type: 'random'
		});
		$('#slideshow').innerfade({
			speed: 'slow',
			timeout: 4000,
			type: 'sequence',
			containerheight: '168px'
		});
	});
//end of innerfade
	
	$(document).ready(function() {
		$('a[rel=celeb]').colorbox({
			transition: 'fade',
			speed: 500,
			current: "{current} of {total} Photos"
		})
	})
//end of colorbox

	$(document).ready(function(){
  			$('tbody tr:even').addClass('zebra');
  			$('tbody tr:odd').addClass('oddzebra');
  			$('tbody tr').mouseover(function () {
    		$(this).addClass('zebraHover');
  		});
        $('tbody tr').mouseout(function () {
    		$(this).removeClass('zebraHover');
  		});
	});
	jQuery.fn.topLink = function(settings){
		settings = jQuery.extend({
			min: 1,
			fadeSpeed: 200,
			ieOffset: 50
		},settings);
		return this.each(function() {
			var el = $(this);
			el.css('display','none');
			$(window).scroll(function() {
				if(!jQuery.support.hrefNormalized) {
					el.css({
						'position': 'absolute',
						'top': $(window).scrollTop() + $(window).height() - settings.ieOffset
					});
				}
				if($(window).scrollTop() >= settings.min)
				{
					el.fadeIn(settings.fadeSpeed);
				}
				else
				{
					el.fadeOut(settings.fadeSpeed);
				}
			});
		});
	};
	
	$(document).ready(function(){
		$('#top-link').topLink({
			min: 400,
			fadeSpeed: 500
		});
		$('#top-link').click(function(e) {
			e.preventDefault();
			$.scrollTo(0,300);
		}); 
	});
//end of top link

	$(document).ready(function(){
  		$("textarea").resizable({
    		grid : [20, 20],
    		minWidth : 153,
    		minHeight : 30,
    		maxHeight : 220,
    		containment: 'parent'
  		});
	});
//end of textArea Resizing// returning error on IE







