//##############collection of scripts that need to be condensed into one file



//##################course tabs-- jquery calls

$(document).ready(function(){
//script for tabs plugin
  $("#courseTabs ul.menuthis").tabs();
});


	$(document).ready(function() {
		$('#tabmenu li a').click(function() {
			$('#tabmenu li a.activetab').removeClass('activetab');
		     $(this).toggleClass("activetab");
		     return false;
		     });
		});



///- - - - - - - - - - - Music Production/Ableton Page Stuff- - - - - - - - 

$(document).ready(function() {
$('div.moreInfo').hide();

$('a.toggleButton').click(function() {
        var id = $(this).attr('href');
     $( id + 'Info').toggle(400);
		var butTon= id + "toggleImg";
     $(butTon).toggleClass("closeInf");
	    //alert(butTon);
     return false;
     });

});



$(document).ready(function(){

	    $('a.rollpop').click(function() { 
	      $('a.rollpop span #popupx').toggleClass("popupShow");
			return false;
	    });
});


$(document).ready(function(){

	    $('closePop').click(function() { 
	      $('a.rollpop span #popupx').toggleClass("popupShow");
			return false;
	    });
});



///toggle input

/*
 * ToggleFormText
 *
 * Author:   Grzegorz Frydrychowicz
 * E-mail:   grzegorz.frydrychowicz@gmail.com
 * Date:     16-11-2007
*/

$(document).ready(function(){
    $("input:text, textarea, input:password").each(function(){
        if(this.value == '')
            this.value = this.title;
    });
    $("input:text, textarea, input:password").focus(function(){
        if(this.value == this.title)
            this.value = '';
    });
    $("input:text, textarea, input:password").blur(function(){
        if(this.value == '')
            this.value = this.title;
    });
    $("input:image, input:button, input:submit").click(function(){
        $(this.form.elements).each(function(){
            if(this.type =='text' || this.type =='textarea' || this.type =='password' ){
                if(this.value == this.title && this.title != ''){
                    this.value='';
this.style.backgroundColor = '#d1d1d1';
                }
            }
        });
    });
});



/*<!--VISISTAT SNIPPET//-->

var DID=76650;
var pcheck=(window.location.protocol == "https:") ? "https://sniff.visistat.com/live.js":"http://stats.visistat.com/live.js";
document.writeln('<scr'+'ipt src="'+pcheck+'" type="text\/javascript"><\/scr'+'ipt>');

<!--VISISTAT SNIPPET//-->*/