$(function(){$('#content .cont-area h1').livequery(function(){Cufon.replace(this,{fontFamily:'Futura Lt BT',textShadow:'#fff 1px 1px'});});$('#content .cont-area h2').livequery(function(){Cufon.replace(this,{fontFamily:'Microsoft New Tai Lue',textShadow:'#fff 1px 1px'});});$('.tab-content h3').livequery(function(){Cufon.replace(this,{fontFamily:'Microsoft New Tai Lue',textShadow:'#fff 1px 1px'});});$('.el-table').livequery(function(){$('tr:odd').addClass('odd');$('tr:even').addClass('even');$('td:last-child').addClass('tc');$('th:first-child').addClass('tl');});if($.browser.msie&&(parseFloat($.browser.version)<=8)){var shd1={x:1,y:1,radius:2,color:"#202020"}
var shd2={x:1,y:1,radius:1,color:"#ffffff"}
var shd3={x:1,y:-3,radius:2,color:"#202020"}
if($.browser.msie&&(parseFloat($.browser.version)==7)){$('#slide-text h1').textShadow(shd3);}else{$('#slide-text h1').textShadow(shd1);}
$('#top-nav a, #navigation li a').not('#navigation li div a').textShadow(shd1);$('#top-nav a, #navigation li a').not('#navigation li div a, #navigation .current a').hover(function(){$(this).textShadow(shd2);},function(){$(this).textShadow(shd1);})}
$('#navigation li div:visible').hide();$('#navigation li:last-child').addClass('last');$('#navigation li').hover(function(){$('#navigation li').not($('div',this)).stop();$('div',this).stop(true,true).animate({top:'-=0',height:'toggle',opacity:'toggle'},300,'easeOutQuad',function(){if($.browser.msie){this.style.removeAttribute('filter');}});},function(){$('div',this).stop(true,true).animate({top:'+=0',height:'toggle',opacity:'toggle'},300,'easeInSine'),function(){if($.browser.msie){this.style.removeAttribute('filter');}};});if($.browser.msie&&(parseFloat($.browser.version)<7)){}else{$("#navigation li div ul li").hover(function(){$(this).children().not('.active').stop().animate({marginLeft:"20px"},400);},function(){$(this).children().stop().animate({marginLeft:"0px"},400);});}
$('#image-links .anti-ragging')
.mouseover(function(){$(this).stop().animate({backgroundPosition:"(right top)"},{duration:500,easing:'easeOutSine'})})
.mouseout(function(){$(this).stop().animate({backgroundPosition:"(left top)"},{duration:500,easing:'easeOutBounce'})})
$('#image-links .download-center')
.mouseover(function(){$(this).stop().animate({backgroundPosition:"(-200px -43px)"},{duration:500,easing:'easeOutSine'})})
.mouseout(function(){$(this).stop().animate({backgroundPosition:"(left -43px)"},{duration:500,easing:'easeOutBounce'})})
$('#image-links .picture-gallery')
.mouseover(function(){$(this).stop().animate({backgroundPosition:"(right bottom)"},{duration:500,easing:'easeOutSine'})})
.mouseout(function(){$(this).stop().animate({backgroundPosition:"(left bottom)"},{duration:500,easing:'easeOutBounce'})})
jQuery(".tab:not(:first)").hide();jQuery(".tab:first").show();$('.etabs li:first a').addClass("active");jQuery(".etabs a").click(function(){stringref=jQuery(this).attr("href").split('#')[1];elem=$(".etabs a");if(elem.is(".active")){jQuery(".etabs a").removeClass("active");}
jQuery(this).addClass("active");jQuery('.tab:not(#'+stringref+')').hide();if(jQuery.browser.msie&&jQuery.browser.version.substr(0,3)=="6.0"){jQuery('.tab#'+stringref).show();}
else
jQuery('.tab#'+stringref).fadeIn('slow',function(){if($.browser.msie){this.style.removeAttribute('filter');}});return false;});$("#slide-image").jCarouselLite({btnNext:"#slider-nav-holder .next",btnPrev:"#slider-nav-holder .prev",visible:1,easing:"easeInOutExpo",speed:1000,auto:5000});$("#slide-text").jCarouselLite({btnNext:"#slider-nav-holder .next",btnPrev:"#slider-nav-holder .prev",visible:1,easing:"easeInOutExpo",speed:1000,auto:5000,vertical:true});$("#course-box").jCarouselLite({btnNext:"#c-control .2",btnPrev:"#c-control .1",visible:1,easing:"easeOutBounce",speed:600,beforeStart:function(a){$('#c-control a').toggleClass('active')}});$('#sb-nav li').has('ul').addClass('open');$('#sb-nav li ul').hide();$('#sb-nav li:has(ul) li a').each(function(){if(this.href==window.location){$(this).parent().parent().slideToggle('normal');$(this).parent().parent().parent().removeClass('open').toggleClass('opened');}})
$('#sb-nav li:has(ul) a').mouseover(function(){$(this).not('#sb-nav li ul li a').toggleClass('dd-link');$(this).next().slideToggle('normal');$(this).parent().not('#sb-nav li ul li').toggleClass('open').toggleClass('opened');});$("#sb-nav li a").livequery(function(){$(this).each(function(){var ats=$(this).attr('rel');var anc=window.location.href.split("#")[0]+'#'+ats;if(this.href==window.location||window.location==anc){$(this).parent("li").addClass("current")
$(this).addClass("active")};});});$("#sb-nav a").click(function(){$("#sb-nav a").removeClass("active").parent("li").removeClass("current");$(this).addClass("active").parent("li").addClass("current");});$('#sb-nav li a:not(.base)').livequery(function(){$(this).ajaxify({target:'.cont-area',tagToload:'.inner-area',loadHash:'attr:rel',loading_txt:'<br>Please wait loading...',loading_img:"images/loading.gif",onSuccess:function(op){},onStart:function(op){$.validationEngine.closePrompt(".formError",true);}});});function scrollToDiv(id){var op=jQuery.browser.opera?jQuery("html"):jQuery("html, body");op.animate({scrollTop:jQuery(id).offset().top},1500,'easeOutSine');}
$('#faculty-dpt-menu li a:not(.base)').livequery(function(){$(this).ajaxify({target:'.get-fac-details',tagToload:'.inner-area',loading_txt:'<br>Please wait loading...',loading_img:"images/loading.gif",onSuccess:function(op){},onStart:function(op){scrollToDiv(".get-fac-details");}});});$($('ul[id*="tabInt"]')).livequery(function(){$(this).tabify();});$("a[href*='.pdf']").livequery(function(){$(this).addClass("pop");});$(".pop").livequery(function(){$(this).colorbox({width:"60%",height:"70%",iframe:true});});$(".news-more-link").colorbox({width:"500px",height:"300px",iframe:true});$("#page-counter").livequery(function(){itemsPerPage=6;$(this).pagination();});$('.acc_container').livequery(function(){$(this).hide();})
$('.acc_trigger').livequery(function(){$(this).click(function(){if($(this).next().is(':hidden')){$('.acc_trigger').removeClass('active').next().slideUp().prev().find('.last').html("View");$(this).toggleClass('active').next().slideDown().prev().find('.last').html("Close");}else{$(this).removeClass('active').next().slideUp();$(".fac-table-cell .last",this).html("View");}
return false});});$(".faculty-table .acc_trigger:odd").livequery(function(){$(this).addClass("even")});$('.el-acc-trigger').livequery(function(){$(this).append("<span>View</span>");});$('.el-acc-cont').livequery(function(){$(this).hide();})
$('.el-acc-trigger:first').livequery(function(){$(this).addClass('active').next().show();$(this).find('span').html('Close');})
$('.el-acc-trigger').livequery(function(){$(this).click(function(){if($(this).next().is(':hidden')){$('.el-acc-trigger').removeClass('active').next().slideUp();$(this).toggleClass('active').next().slideDown();$(this).find('span').html('Close');}else{$(this).removeClass('active').next().slideUp();$(this).find('span').html('View');}
return false;});});});
