	// Student Login Toggle
$(document).ready(function() {
	$("#loginbtn").toggle(function() {
		$("#student_login").slideDown(300);
	}, function() {
		$("#student_login").slideUp(300);
	});
});

  // same height
$(document).ready(function(){
	//set the starting bigestHeight variable
	var biggestHeight = 0;
	//check each of them
	$('.equal_height').each(function(){
		//if the height of the current element is
		//bigger then the current biggestHeight value
		if($(this).height() > biggestHeight){
			//update the biggestHeight with the
			//height of the current elements
			biggestHeight = $(this).height();
		}
	});
	//when checking for biggestHeight is done set that
	//height to all the elements
	$('.equal_height').height(biggestHeight);

});


	// tooltip
$(document).ready(function() {
$(".courses a").hover(function() {
	$(this).next("em").stop(true, true).animate({opacity: "show", top: "-60"}, "slow");
	}, function() {
	$(this).next("em").animate({opacity: "hide", top: "-70"}, "fast");
	});
});

// external
$(document).ready(function() {
$('a[rel="external nofollow"]').attr('target','_blank');
});

//slider
$(document).ready(function(){	
	$("#slider").easySlider({
	auto: true,
	continuous: true,
	nextId: "next",
	prevId: "prev"
});
});


// Closing Divs - used on Notification Boxes
$(document).ready(function() {	
	$(".canhide").append("<div class='close-notification png_bg'></div>").css("position", "relative");
	$(".close-notification").click(function() {
		$(this).hide();
		$(this).parent().fadeOut(700);
	});
});

// dropdown menu
$(document).ready(function() {
         $('.cat-btn').click(function() {
		$('.s-category ul').toggle();
		return false;
	});
});

// enable newsticker
$(document).ready(function() {
  $(".newsbox ul").newsTicker();
});



  // 
$(document).ready(function() {		
		var siteWidth = $(document).width();
		var siteHeight = $(document).height();
		
		$('.general-wrap').css('height', siteHeight);
		
	});



// ==== Newsticker ====
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(1($){$.9.D=$.9.g=1(b){b=b||p;i=1(a){j(a);a.4=$("r",a);a.4.q(":o(0)").l().C();a.5=0;h(a)};h=1(a){a.m=t(1(){f(a)},b)};j=1(a){s(a.m)};8=1(a){a.3=7};d=1(a){a.3=c};f=1(a){e(a.3)6;a.3=7;$(a.4[a.5]).n("k",1(){$(2).l();a.5=++a.5%(a.4.B());$(a.4[a.5]).z("k",1(){a.3=c})})};2.y(1(){e(2.x.w()!="A")6;i(2)}).v("g").u(1(){8(2)},1(){d(2)});6 2}})(E);',41,41,'|function|this|pause|items|currentitem|return|true|pauseTicker|fn|||false|resumeTicker|if|doTick|newsticker|startTicker|initTicker|stopTicker|slow|hide|tickfn|fadeOut|eq|4000|not|li|clearInterval|setInterval|hover|addClass|toLowerCase|nodeName|each|fadeIn|ul|size|end|newsTicker|jQuery'.split('|'),0,{}))


//div click
$(document).ready(function() {
$(".course").click(function(){
     window.location=$(this).find("a").attr("href");
     return false;
});
});

