$(function(){$("#news-ticker").marquee();if($.browser.msie&&(parseFloat($.browser.version)==6)){$('#slider-ie6').livequery(function(){$(this).cycle({speed:500,easing:'jswing'});})}else{$(".move-slider").peKenburnsSlider();}
$('#sidebar #logo-holder').corner({tl:{radius:0},tr:{radius:0},bl:{radius:12},br:{radius:12},antiAlias:true,autoPad:true});$('#sidebar #sidebar-top').corner({tl:{radius:12},tr:{radius:12},bl:{radius:0},br:{radius:0},antiAlias:true,autoPad:true});$('.round').corner({tl:{radius:4},tr:{radius:4},bl:{radius:4},br:{radius:4},antiAlias:true,autoPad:true});if($.browser.msie&&(parseFloat($.browser.version)==6)){$('#nav li').has('ul').addClass('aero');$("#nav li").hover(function(){$(this).addClass("iehover");},function(){$(this).removeClass("iehover");});}else{$(".nav").slideMenu();}
$("#usefull-links li").hover(function(){$(this).children().stop().animate({marginTop:"10px"},400);},function(){$(this).children().stop().animate({marginTop:"5px"},400);});$('#news-scroll').cycle({speed:500,next:'.next-news',prev:'.perv-news',cleartype:false,easing:'jswing'});$('.pause-news').click(function(){$('#news-scroll').cycle('toggle');$(this).toggleClass('active');});$('#logo_slider div').livequery(function(){$(this).cycle({speed:500,easing:'jswing'});})
$('#apply-form-holder form input').not('#buSub').bind('focus click',function(){if(this.value==this.defaultValue){this.value='';}}).bind('blur',function(){if(this.value==''){this.value=this.defaultValue;}});required=["Phone","Course"];errornotice=$("#error");emptyerror="Required";$("#apply_now").submit(function(){for(i=0;i<required.length;i++){var input=$('#'+required[i]);var dval=required[i];if((input.val()=="")||(input.val()==emptyerror)||(input.val()==dval)){input.addClass("errBdr");input.val(dval);errornotice.fadeIn(750);}else{input.removeClass("errBdr");}}
if($("#apply_now input, #apply_now select").hasClass("errBdr")){return false;}else{errornotice.hide();return true;}});$("#apply_now input, #apply_now select").focus(function(){if($(this).hasClass("errBdr")){$(this).removeClass("errBdr");}});$('.el-table').livequery(function(){$('tr:odd').addClass('odd');$('tr:even').addClass('even');$('td:last-child').addClass('tc');$('th:first-child').addClass('tl');});$($('ul[id*="tabInt"]')).livequery(function(){$(this).tabify();});$('#nav li a:not(.base)').livequery(function(){$(this).ajaxify({target:'#content',tagToload:'#cont-area',loadHash:'attr:rel',loading_txt:'<br>Please wait loading...',loading_img:"images/loading_01.gif",onSuccess:function(op){},onStart:function(op){$.validationEngine.closePrompt(".formError",true);}});});$("#contact-form").livequery(function(){$(this).validationEngine({inlineValidation:true});});$("#reset").livequery(function(){$(this).click(function(){$.validationEngine.closePrompt(".formError",true);});});$(".video1").videopopup({'videoid':'HTN6mozOdwc','videoplayer':'youtube','autoplay':'true'});$("#gallery-holder").livequery(function(){$(this).wtGridGallery({num_col:6,num_row:4,screen_width:690,screen_height:467,item_width:75,item_height:75,item_margin:8,display_number:true,display_playbutton:true,display_dbuttons:true,display_advbuttons:false,display_textbutton:false,display_downloadbutton:false,display_tooltip:false,display_caption:false,display_timer:true,display_gallery_info:false,effect:"h_slide",transition_speed:700,text_effect:"fade",text_sync:true,cpanel_mouseover:false,auto_scale:true,cont_nav:true,auto_rotate:false,delay:9000,initial_open:true,selected_category:1,selected_image:1,no_category:false});});var ops={target:'.server-response',beforeSubmit:busy,success:showResponse};$('#apply_now').livequery(function(){$(this).submit(function(){$(this).ajaxSubmit(ops);return false;});})
function busy(ops){$(".server-response").html('<div class="busy">Please wait sending...</div>').hide().fadeIn('slow');return true;}
function showResponse(){$(".server-response").hide().fadeIn('slow').delay(2000).fadeOut('slow');;}
$("a[href*='.pdf']").livequery(function(){$(this).addClass("pop");});$(".pop").livequery(function(){$(this).colorbox({width:"60%",height:"70%",iframe:true});});$("#newsblock .news-story .news-rmbu").livequery(function(){$("#newsblock .news-story .news-rmbu").colorbox({width:"500px",height:"300px",iframe:true});})
$(".big-list-news li a").livequery(function(){$(".big-list-news li a").colorbox({width:"80%",height:"70%",iframe:true});})});
