// tabs - jQuery plugin for accessible, unobtrusive tabs by Klaus Hartl
// v 1.2
// http://stilbuero.de/tabs/
// Free beer and free speech. Enjoy!
$.fn.tabs = function(options) {
    // basic stuff
    var ON_CLASS = 'on';
    var OFF_CLASS = 'tabs-hide';
    // options
    var on = options && options.on && (typeof options.on == 'number' && options.on > 0) ? options.on - 1 : 0;
    return this.each(function() {
        var re = /([_\-\w]+$)/i;
        // retrieve active tab from hash in url
        if (location.hash) {
            var hashId = location.hash.replace('#', '');
            $(this).find('>ul>li>a').each(function(i) {
                if (re.exec(this.href)[1] == hashId) {
                    on = i;
                    var unFocus = function() { // required to not scroll to fragment
                        scrollTo(0, 0);
                    }
                    // be nice to IE via Conditional Compilation
                    // this needs to preceed call to unFocus for other browsers
                    /*@cc_on
                    //location.replace('#'); // required to not scroll to fragment
                    setTimeout(unFocus, 150); // IE needs a little timeout here
                    @*/
                    unFocus();
                    setTimeout(unFocus, 100); // be nice to Opera
                }
            });
        }
        $(this).find('>div').not(':eq(' + on + ')').addClass(OFF_CLASS);
        $(this).find('>ul>li:eq(' + on + ')').addClass(ON_CLASS);
        var container = this;
        var undefined;
        $(this).find('>ul>li>a').click(function() {
            if (!$(this.parentNode).is('.' + ON_CLASS)) {
                var target = $('#' + re.exec(this.href)[1]);
                if (target.size() > 0) {
                    var self = this;
                    var visible = $(container).find('>div:visible');
                    if (options && options.slide && options.fade) {
                        visible.animate({height: 'hide', opacity: 'hide'}, options.slide, function() {
                            // TODO check accessibility for fade
                            //$(this).addClass(OFF_CLASS).css({display: '', height: 'auto'}); // retain acccessibility for print and other media types
                            $(container).find('>ul>li').removeClass(ON_CLASS);
                            $(self.parentNode).addClass(ON_CLASS);
                            //target.css('display', 'none').removeClass(OFF_CLASS).animate({height: 'show', opacity: 'show'}, options.slide);
                            target.animate({height: 'show', opacity: 'show'}, options.slide);
                        });
                    } else if (options && options.slide) {
                        visible.slideUp(options.slide, function() {
                            //$(this).addClass(OFF_CLASS).css({display: '', height: 'auto'}); // retain acccessibility for print and other media types
                            $(container).find('>ul>li').removeClass(ON_CLASS);
                            $(self.parentNode).addClass(ON_CLASS);
                            //target.css('display', 'none').removeClass(OFF_CLASS).slideDown(options.slide);
                            target.slideDown(options.slide);
                        });
                    } else if (options && options.fade) {
                        visible.fadeOut(options.fade, function() {
                            // TODO check accessibility for fade
                            //$(this).addClass(OFF_CLASS).css({display: '', opacity: '1'}); // retain acccessibility for print and other media types
                            $(container).find('>ul>li').removeClass(ON_CLASS);
                            $(self.parentNode).addClass(ON_CLASS);
                            //target.css('display', 'none').removeClass(OFF_CLASS).fadeIn(options.fade);
                            target.fadeIn(options.fade);
                        });
                    } else {
                        visible.addClass(OFF_CLASS);
                        $(container).find('>ul>li').removeClass(ON_CLASS);
                        $(this.parentNode).addClass(ON_CLASS);
                        target.removeClass(OFF_CLASS);
                    }
                } else {
                    alert('There is no such container.');
                }
            }
            return false;
        });
    });
};

// start the activetab function

function activateTab(i) {
	jQuery('#container-1>ul>li:eq(' + (i - 1) + ')').find('a').trigger('click');
}

jQuery(document).ready(function() {
	jQuery('#container-1').tabs({on: 2});
	jQuery('#container-2').tabs({on: 2});
	jQuery('#container-3').tabs({slide: 'normal'});
	jQuery('#container-4').tabs({fade: 'normal'});
	jQuery('#container-5').tabs({slide: 'normal', fade: 'normal'});
	jQuery('#trigger-tab').before('<p><a href="#" onclick="activateTab(3); return false;">Activate third tab</a></p>');
});


// code-lindley show-hide
/*
$(document).ready(function() {
	$("a").toggle(function() {
		$(".stuff").hide('fast');
	}, function() {
		$(".stuff").show('fast');
	});
});*/

jQuery(document).ready(function() {	

	jQuery("a.cover23").toggle(function() {	jQuery(".cover-23").show('fast'); }, function() { jQuery(".cover-23").hide('fast');	});
	jQuery('.tinstructions').click( function() { jQuery('.instructions').toggle(); });
	jQuery('#cstream1').click( function() { jQuery('.cstream1').toggle(); });
	jQuery('#cstream2').click( function() { jQuery('.cstream2').toggle(); });
	jQuery('#cstream3').click( function() { jQuery('.cstream3').toggle(); });
	jQuery('#cstream4').click( function() { jQuery('.cstream4').toggle(); });
	jQuery('#cstream5').click( function() { jQuery('.cstream5').toggle(); });
	jQuery('#cstream6').click( function() { jQuery('.cstream6').toggle(); });
	jQuery('#cstream7').click( function() { jQuery('.cstream7').toggle(); });
	jQuery('#cstream8').click( function() { jQuery('.cstream8').toggle(); });
	jQuery('#cstream9').click( function() { jQuery('.cstream9').toggle(); });
	jQuery('#cstream10').click( function() { jQuery('.cstream10').toggle(); });
	jQuery('#cstream11').click( function() { jQuery('.cstream11').toggle(); });
	jQuery('#cstream12').click( function() { jQuery('.cstream12').toggle(); });
	jQuery('#cstream13').click( function() { jQuery('.cstream13').toggle(); });
	jQuery('#cstream14').click( function() { jQuery('.cstream14').toggle(); });
	jQuery('#cstream15').click( function() { jQuery('.cstream15').toggle(); });
	jQuery('#cstream16').click( function() { jQuery('.cstream16').toggle(); });
	jQuery('#cstream17').click( function() { jQuery('.cstream17').toggle(); });
	jQuery('#cstream18').click( function() { jQuery('.cstream18').toggle(); });
	jQuery('#cstream19').click( function() { jQuery('.cstream19').toggle(); });
	jQuery('#cstream20').click( function() { jQuery('.cstream20').toggle(); });
	jQuery('#cstream21').click( function() { jQuery('.cstream21').toggle(); });
	jQuery('#cstream22').click( function() { jQuery('.cstream22').toggle(); });
	jQuery('#cstream23').click( function() { jQuery('.cstream23').toggle(); });
	jQuery('#cstream24').click( function() { jQuery('.cstream24').toggle(); });
	jQuery('#cstream25').click( function() { jQuery('.cstream25').toggle(); });
	jQuery('#cstream26').click( function() { jQuery('.cstream26').toggle(); });
	jQuery('#cstream27').click( function() { jQuery('.cstream27').toggle(); });
	jQuery('#cstream28').click( function() { jQuery('.cstream28').toggle(); });
	jQuery('#cstream29').click( function() { jQuery('.cstream29').toggle(); });
	jQuery('#cstream30').click( function() { jQuery('.cstream30').toggle(); });
	jQuery('#cstream31').click( function() { jQuery('.cstream31').toggle(); });
	jQuery('#cstream32').click( function() { jQuery('.cstream32').toggle(); });
	jQuery('#cstream33').click( function() { jQuery('.cstream33').toggle(); });
	jQuery('#cstream34').click( function() { jQuery('.cstream34').toggle(); });
	jQuery('#cstream35').click( function() { jQuery('.cstream35').toggle(); });
	jQuery('#cstream36').click( function() { jQuery('.cstream36').toggle(); });
	jQuery('#cstream37').click( function() { jQuery('.cstream37').toggle(); });
	jQuery('#cstream38').click( function() { jQuery('.cstream38').toggle(); });
	jQuery('#cstream39').click( function() { jQuery('.cstream39').toggle(); });
	jQuery('#cstream40').click( function() { jQuery('.cstream40').toggle(); });
	jQuery('#cstream41').click( function() { jQuery('.cstream41').toggle(); });
	jQuery('#cstream42').click( function() { jQuery('.cstream42').toggle(); });
	jQuery('#cstream43').click( function() { jQuery('.cstream43').toggle(); });
	jQuery('#cstream44').click( function() { jQuery('.cstream44').toggle(); });
	jQuery('#cstream45').click( function() { jQuery('.cstream45').toggle(); });
	jQuery('#cstream46').click( function() { jQuery('.cstream46').toggle(); });
	jQuery('#cstream47').click( function() { jQuery('.cstream47').toggle(); });
	jQuery('#cstream48').click( function() { jQuery('.cstream48').toggle(); });
	jQuery('#cstream49').click( function() { jQuery('.cstream49').toggle(); });
	jQuery('#cstream50').click( function() { jQuery('.cstream50').toggle(); });
	jQuery('#cstream51').click( function() { jQuery('.cstream51').toggle(); });
	jQuery('#cstream52').click( function() { jQuery('.cstream52').toggle(); });
	jQuery('#cstream53').click( function() { jQuery('.cstream53').toggle(); });
	jQuery('#cstream54').click( function() { jQuery('.cstream54').toggle(); });
	jQuery('#cstream55').click( function() { jQuery('.cstream55').toggle(); });
	jQuery('#cstream56').click( function() { jQuery('.cstream56').toggle(); });
	jQuery('#cstream57').click( function() { jQuery('.cstream57').toggle(); });
	jQuery('#cstream58').click( function() { jQuery('.cstream58').toggle(); });
	jQuery('#cstream59').click( function() { jQuery('.cstream59').toggle(); });
	jQuery('#cstream60').click( function() { jQuery('.cstream60').toggle(); });
	jQuery('#cstream61').click( function() { jQuery('.cstream61').toggle(); });
	jQuery('#cstream62').click( function() { jQuery('.cstream62').toggle(); });
	jQuery('#cstream63').click( function() { jQuery('.cstream63').toggle(); });
	jQuery('#cstream64').click( function() { jQuery('.cstream64').toggle(); });
	jQuery('#cstream65').click( function() { jQuery('.cstream65').toggle(); });
	jQuery('#cstream66').click( function() { jQuery('.cstream66').toggle(); });
	jQuery('#cstream67').click( function() { jQuery('.cstream67').toggle(); });
	jQuery('#cstream68').click( function() { jQuery('.cstream68').toggle(); });
	jQuery('#cstream69').click( function() { jQuery('.cstream69').toggle(); });
	jQuery('#cstream70').click( function() { jQuery('.cstream70').toggle(); });
	jQuery('#cstream71').click( function() { jQuery('.cstream71').toggle(); });
	jQuery('#cstream72').click( function() { jQuery('.cstream72').toggle(); });
	jQuery('#cstream73').click( function() { jQuery('.cstream73').toggle(); });
	jQuery('#cstream74').click( function() { jQuery('.cstream74').toggle(); });
	jQuery('#cstream75').click( function() { jQuery('.cstream75').toggle(); });
	jQuery('#cstream76').click( function() { jQuery('.cstream76').toggle(); });
	jQuery('#cstream77').click( function() { jQuery('.cstream77').toggle(); });
	jQuery('#cstream78').click( function() { jQuery('.cstream78').toggle(); });
	jQuery('#cstream79').click( function() { jQuery('.cstream79').toggle(); });
	jQuery('#cstream80').click( function() { jQuery('.cstream80').toggle(); });
	jQuery('#cstream81').click( function() { jQuery('.cstream81').toggle(); });
	jQuery('#cstream82').click( function() { jQuery('.cstream82').toggle(); });
	jQuery('#cstream83').click( function() { jQuery('.cstream83').toggle(); });
	jQuery('#cstream84').click( function() { jQuery('.cstream84').toggle(); });
	jQuery('#cstream85').click( function() { jQuery('.cstream85').toggle(); });
	jQuery('#cstream86').click( function() { jQuery('.cstream86').toggle(); });
	jQuery('#cstream87').click( function() { jQuery('.cstream87').toggle(); });
	jQuery('#cstream88').click( function() { jQuery('.cstream88').toggle(); });
	jQuery('#cstream89').click( function() { jQuery('.cstream89').toggle(); });
	jQuery('#cstream90').click( function() { jQuery('.cstream90').toggle(); });
	jQuery('#cstream91').click( function() { jQuery('.cstream91').toggle(); });
	jQuery('#cstream92').click( function() { jQuery('.cstream92').toggle(); });
	jQuery('#cstream93').click( function() { jQuery('.cstream93').toggle(); });
	jQuery('#cstream94').click( function() { jQuery('.cstream94').toggle(); });
	jQuery('#cstream95').click( function() { jQuery('.cstream95').toggle(); });
	jQuery('#cstream96').click( function() { jQuery('.cstream96').toggle(); });
	jQuery('#cstream97').click( function() { jQuery('.cstream97').toggle(); });
	jQuery('#cstream98').click( function() { jQuery('.cstream98').toggle(); });
	jQuery('#cstream99').click( function() { jQuery('.cstream99').toggle(); });
	
	jQuery('#cstream100').click( function() { jQuery('.cstream100').toggle(); });
	jQuery('#cstream101').click( function() { jQuery('.cstream101').toggle(); });
	jQuery('#cstream102').click( function() { jQuery('.cstream102').toggle(); });
	jQuery('#cstream103').click( function() { jQuery('.cstream103').toggle(); });
	jQuery('#cstream104').click( function() { jQuery('.cstream104').toggle(); });
	jQuery('#cstream105').click( function() { jQuery('.cstream105').toggle(); });
	jQuery('#cstream106').click( function() { jQuery('.cstream106').toggle(); });
	jQuery('#cstream107').click( function() { jQuery('.cstream107').toggle(); });
	jQuery('#cstream108').click( function() { jQuery('.cstream108').toggle(); });
	jQuery('#cstream109').click( function() { jQuery('.cstream109').toggle(); });
	jQuery('#cstream110').click( function() { jQuery('.cstream110').toggle(); });
	jQuery('#cstream111').click( function() { jQuery('.cstream111').toggle(); });
	jQuery('#cstream112').click( function() { jQuery('.cstream112').toggle(); });
	jQuery('#cstream113').click( function() { jQuery('.cstream113').toggle(); });
	jQuery('#cstream114').click( function() { jQuery('.cstream114').toggle(); });
	jQuery('#cstream115').click( function() { jQuery('.cstream115').toggle(); });
	jQuery('#cstream116').click( function() { jQuery('.cstream116').toggle(); });
	jQuery('#cstream117').click( function() { jQuery('.cstream117').toggle(); });
	jQuery('#cstream118').click( function() { jQuery('.cstream118').toggle(); });
	jQuery('#cstream119').click( function() { jQuery('.cstream119').toggle(); });
	jQuery('#cstream120').click( function() { jQuery('.cstream120').toggle(); });
	jQuery('#cstream121').click( function() { jQuery('.cstream121').toggle(); });
	jQuery('#cstream122').click( function() { jQuery('.cstream122').toggle(); });
	jQuery('#cstream123').click( function() { jQuery('.cstream123').toggle(); });
	jQuery('#cstream124').click( function() { jQuery('.cstream124').toggle(); });
	jQuery('#cstream125').click( function() { jQuery('.cstream125').toggle(); });
	jQuery('#cstream126').click( function() { jQuery('.cstream126').toggle(); });
	jQuery('#cstream127').click( function() { jQuery('.cstream127').toggle(); });
	jQuery('#cstream128').click( function() { jQuery('.cstream128').toggle(); });
	jQuery('#cstream129').click( function() { jQuery('.cstream129').toggle(); });
	jQuery('#cstream130').click( function() { jQuery('.cstream130').toggle(); });
	jQuery('#cstream131').click( function() { jQuery('.cstream131').toggle(); });
	jQuery('#cstream132').click( function() { jQuery('.cstream132').toggle(); });
	jQuery('#cstream133').click( function() { jQuery('.cstream133').toggle(); });
	jQuery('#cstream134').click( function() { jQuery('.cstream134').toggle(); });
	jQuery('#cstream135').click( function() { jQuery('.cstream135').toggle(); });
	jQuery('#cstream136').click( function() { jQuery('.cstream136').toggle(); });
	jQuery('#cstream137').click( function() { jQuery('.cstream137').toggle(); });
	jQuery('#cstream138').click( function() { jQuery('.cstream138').toggle(); });
	jQuery('#cstream139').click( function() { jQuery('.cstream139').toggle(); });
	jQuery('#cstream140').click( function() { jQuery('.cstream140').toggle(); });
	jQuery('#cstream141').click( function() { jQuery('.cstream141').toggle(); });
	jQuery('#cstream142').click( function() { jQuery('.cstream142').toggle(); });
	jQuery('#cstream143').click( function() { jQuery('.cstream143').toggle(); });
	jQuery('#cstream144').click( function() { jQuery('.cstream144').toggle(); });
	jQuery('#cstream145').click( function() { jQuery('.cstream145').toggle(); });
	jQuery('#cstream146').click( function() { jQuery('.cstream146').toggle(); });
	jQuery('#cstream147').click( function() { jQuery('.cstream147').toggle(); });
	jQuery('#cstream148').click( function() { jQuery('.cstream148').toggle(); });
	jQuery('#cstream149').click( function() { jQuery('.cstream149').toggle(); });
	jQuery('#cstream150').click( function() { jQuery('.cstream150').toggle(); });
	jQuery('#cstream151').click( function() { jQuery('.cstream151').toggle(); });
	jQuery('#cstream152').click( function() { jQuery('.cstream152').toggle(); });
	jQuery('#cstream153').click( function() { jQuery('.cstream153').toggle(); });
	jQuery('#cstream154').click( function() { jQuery('.cstream154').toggle(); });
	jQuery('#cstream155').click( function() { jQuery('.cstream155').toggle(); });
	jQuery('#cstream156').click( function() { jQuery('.cstream156').toggle(); });
	jQuery('#cstream157').click( function() { jQuery('.cstream157').toggle(); });
	jQuery('#cstream158').click( function() { jQuery('.cstream158').toggle(); });
	jQuery('#cstream159').click( function() { jQuery('.cstream159').toggle(); });
	jQuery('#cstream160').click( function() { jQuery('.cstream160').toggle(); });
	jQuery('#cstream161').click( function() { jQuery('.cstream161').toggle(); });
	jQuery('#cstream162').click( function() { jQuery('.cstream162').toggle(); });
	jQuery('#cstream163').click( function() { jQuery('.cstream163').toggle(); });
	jQuery('#cstream164').click( function() { jQuery('.cstream164').toggle(); });
	jQuery('#cstream165').click( function() { jQuery('.cstream165').toggle(); });
	jQuery('#cstream166').click( function() { jQuery('.cstream166').toggle(); });
	jQuery('#cstream167').click( function() { jQuery('.cstream167').toggle(); });
	jQuery('#cstream168').click( function() { jQuery('.cstream168').toggle(); });
	jQuery('#cstream169').click( function() { jQuery('.cstream169').toggle(); });
	jQuery('#cstream170').click( function() { jQuery('.cstream170').toggle(); });
	jQuery('#cstream171').click( function() { jQuery('.cstream171').toggle(); });
	jQuery('#cstream172').click( function() { jQuery('.cstream172').toggle(); });
	jQuery('#cstream173').click( function() { jQuery('.cstream173').toggle(); });
	jQuery('#cstream174').click( function() { jQuery('.cstream174').toggle(); });
	jQuery('#cstream175').click( function() { jQuery('.cstream175').toggle(); });
	jQuery('#cstream176').click( function() { jQuery('.cstream176').toggle(); });
	jQuery('#cstream177').click( function() { jQuery('.cstream177').toggle(); });
	jQuery('#cstream178').click( function() { jQuery('.cstream178').toggle(); });
	jQuery('#cstream179').click( function() { jQuery('.cstream179').toggle(); });
	jQuery('#cstream180').click( function() { jQuery('.cstream180').toggle(); });
	jQuery('#cstream181').click( function() { jQuery('.cstream181').toggle(); });
	jQuery('#cstream182').click( function() { jQuery('.cstream182').toggle(); });
	jQuery('#cstream183').click( function() { jQuery('.cstream183').toggle(); });
	jQuery('#cstream184').click( function() { jQuery('.cstream184').toggle(); });
	jQuery('#cstream185').click( function() { jQuery('.cstream185').toggle(); });
	jQuery('#cstream186').click( function() { jQuery('.cstream186').toggle(); });
	jQuery('#cstream187').click( function() { jQuery('.cstream187').toggle(); });
	jQuery('#cstream188').click( function() { jQuery('.cstream188').toggle(); });
	jQuery('#cstream189').click( function() { jQuery('.cstream189').toggle(); });
	jQuery('#cstream190').click( function() { jQuery('.cstream190').toggle(); });
	jQuery('#cstream191').click( function() { jQuery('.cstream191').toggle(); });
	jQuery('#cstream192').click( function() { jQuery('.cstream192').toggle(); });
	jQuery('#cstream193').click( function() { jQuery('.cstream193').toggle(); });
	jQuery('#cstream194').click( function() { jQuery('.cstream194').toggle(); });
	jQuery('#cstream195').click( function() { jQuery('.cstream195').toggle(); });
	jQuery('#cstream196').click( function() { jQuery('.cstream196').toggle(); });
	jQuery('#cstream197').click( function() { jQuery('.cstream197').toggle(); });
	jQuery('#cstream198').click( function() { jQuery('.cstream198').toggle(); });
	jQuery('#cstream199').click( function() { jQuery('.cstream199').toggle(); });	
	
	jQuery('#cstreamx1').click( function() { jQuery('.cstreamx1').toggle(); });
	jQuery('#cstreamx2').click( function() { jQuery('.cstreamx2').toggle(); });
	jQuery('#cstreamx3').click( function() { jQuery('.cstreamx3').toggle(); });
	jQuery('#cstreamx4').click( function() { jQuery('.cstreamx4').toggle(); });
	jQuery('#cstreamx5').click( function() { jQuery('.cstreamx5').toggle(); });
	jQuery('#cstreamx6').click( function() { jQuery('.cstreamx6').toggle(); });	
	
	
	jQuery('#cstreamy1').click( function() { jQuery('.cstreamy1').toggle(); });	
	jQuery('#cstreamy2').click( function() { jQuery('.cstreamy2').toggle(); });	
	jQuery('#cstreamy3').click( function() { jQuery('.cstreamy3').toggle(); });	
	jQuery('#cstreamy4').click( function() { jQuery('.cstreamy4').toggle(); });	
	jQuery('#cstreamy5').click( function() { jQuery('.cstreamy5').toggle(); });	
	jQuery('#cstreamy6').click( function() { jQuery('.cstreamy6').toggle(); });	
	jQuery('#cstreamy7').click( function() { jQuery('.cstreamy7').toggle(); });	
	jQuery('#cstreamy8').click( function() { jQuery('.cstreamy8').toggle(); });	
	jQuery('#cstreamy9').click( function() { jQuery('.cstreamy9').toggle(); });	
	jQuery('#cstreamy10').click( function() { jQuery('.cstreamy10').toggle(); });	
	jQuery('#cstreamy11').click( function() { jQuery('.cstreamy11').toggle(); });	
	jQuery('#cstreamy12').click( function() { jQuery('.cstreamy12').toggle(); });	
	jQuery('#cstreamy13').click( function() { jQuery('.cstreamy13').toggle(); });	
	jQuery('#cstreamy14').click( function() { jQuery('.cstreamy14').toggle(); });	
	jQuery('#cstreamy15').click( function() { jQuery('.cstreamy15').toggle(); });	
	jQuery('#cstreamy16').click( function() { jQuery('.cstreamy16').toggle(); });	
	jQuery('#cstreamy17').click( function() { jQuery('.cstreamy17').toggle(); });	
	jQuery('#cstreamy18').click( function() { jQuery('.cstreamy18').toggle(); });	
	jQuery('#cstreamy19').click( function() { jQuery('.cstreamy19').toggle(); });	
	jQuery('#cstreamy20').click( function() { jQuery('.cstreamy20').toggle(); });	
	
	
	
	jQuery('#cstreamsss').click( function() { jQuery('.cstreamsss').toggle(); });	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
});