jQuery.easing['jswing']=jQuery.easing['swing'];jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d);},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t + b;},easeOutQuad:function(x,t,b,c,d){return -c*(t/=d)*(t-2)+ b;},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t + b;return -c/2*((--t)*(t-2)- 1)+ b;},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t + b;},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t + 1)+ b;},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t + b;return c/2*((t-=2)*t*t + 2)+ b;},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t + b;},easeOutQuart:function(x,t,b,c,d){return -c*((t=t/d-1)*t*t*t - 1)+ b;},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t + b;return -c/2*((t-=2)*t*t*t - 2)+ b;},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t + b;},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t + 1)+ b;},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t + b;return c/2*((t-=2)*t*t*t*t + 2)+ b;},easeInSine:function(x,t,b,c,d){return -c*Math.cos(t/d*(Math.PI/2))+ c + b;},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+ b;},easeInOutSine:function(x,t,b,c,d){return -c/2*(Math.cos(Math.PI*t/d)- 1)+ b;},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d - 1))+ b;},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+ 1)+ b;},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t - 1))+ b;return c/2*(-Math.pow(2,-10*--t)+ 2)+ b;},easeInCirc:function(x,t,b,c,d){return -c*(Math.sqrt(1 -(t/=d)*t)- 1)+ b;},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1 -(t=t/d-1)*t)+ b;},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return -c/2*(Math.sqrt(1 - t*t)- 1)+ b;return c/2*(Math.sqrt(1 -(t-=2)*t)+ 1)+ b;},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a=x){b.siblings('.cs_wrapper').children('.cs_slider').animate({'left':m+'px'},o.speed,o.easing,function(){inuse=false;});if(b.attr('class')=='cs_leftBtn'){var thisBtn=$('#'+thisInstance+' .cs_leftBtn');var otherBtn=$('#'+thisInstance+' .cs_rightBtn');}else{var thisBtn=$('#'+thisInstance+' .cs_rightBtn');var otherBtn=$('#'+thisInstance+' .cs_leftBtn');} if(m==0||m==x){thisBtn.animate({'opacity':'0'},o.speed,o.easing,function(){thisBtn.hide();});} if(otherBtn.css('opacity')=='0'){otherBtn.show().animate({'opacity':'1'},{duration:o.speed,easing:o.easing});}}} function vCenterBtns(b) {var mid=parseInt(o.height)/0;b.find('.cs_leftBtn img').css({'top':mid+'px','padding':0}).end().find('.cs_rightBtn img').css({'top':mid+'px','padding':0});} return this.each(function(){$(this).css({width:o.width,height:o.height}).prepend('').append('').find('.cs_article').css({width:o.width,height:o.height}).end().find('.cs_leftBtn').css('opacity','0').hide().end().find('.cs_rightBtn').hide().animate({'width':'show'});if(o.textResize===true){var h2FontSize=$(this).find('h2').css('font-size');var pFontSize=$(this).find('p').css('font-size');$.each(jQuery.browser,function(i){if($.browser.msie){h2FontSize=o.IE_h2;pFontSize=o.IE_p;}});$(this).find('h2').css({'font-size':parseFloat(h2FontSize)*p+'px','margin-left':'66%'});$(this).find('p').css({'font-size':parseFloat(pFontSize)*p+'px','margin-left':'66%'});$(this).find('.readmore').css({'font-size':parseFloat(pFontSize)*p+'px','margin-left':'66%'});} var leftBtn=$(this).children('.cs_leftBtn');leftBtn.bind('click',function(){if(inuse===false){inuse=true;moveSlider('right',leftBtn);} return false;});var rightBtn=$(this).children('.cs_rightBtn');rightBtn.bind('click',function(){if(inuse===false){inuse=true;moveSlider('left',rightBtn);} return false;});vCenterBtns($(this));});}})(jQuery);$(function(){function acceptType(){$("#document_upload :file").attr("accept",".xls,.xlsx,.doc,.docx,.txt,.pdf");$("#WordFile").attr("accept",".doc,.docx");$("#DigestFile").attr("accept",".pdf");} acceptType();if($("#AbstractFiles").length>0){var max_num=2000;var left_num=max_num - $("#AbstractFiles").val().length;$("#leftword").text(left_num);$("#AbstractFiles").on('change',function(e){var len=$(this).val().length;if(len>max_num){$(this).val($(this).val().substring(0,max_num));left_num=0;} else{left_num=max_num - len;} $("#leftword").text(left_num);});} $("#ApplyForTravelAward").on('click',function(e){if($(this).attr("checked")){$("#document_upload").show();}else{$("#document_upload").hide();}});$(".delFile").on('click',function(e){var itemName=$(this).val();$("#uploadFileInfo_"+itemName).empty();$("#uploadFileInfo_"+itemName).append("No File");$("#uploadFileInfo_"+itemName).append("");});$(".chaFile").on('click',function(e){var itemName=$(this).val();var aELement=$("#uploadFileInfo_"+itemName+" a");$("#uploadFileInfo_"+itemName).empty();$("#uploadFileInfo_"+itemName).append("Old:("+aELement.prop("outerHTML")+") ");$("#uploadFileInfo_"+itemName).append("");acceptType();});function checkUpload(){var ErrNum=0;var obj={};var filepath="";if(!$("#ApplyForTravelAward").attr("checked")){$("#document_upload :file").remove();} else{$("#document_upload :file").each(function(index,element){filepath=$(this).val();if(filepath!=""&&filepath!=null){var ext=filepath.substring(filepath.lastIndexOf("."),filepath.length).toLowerCase();if(ext!=".xls"&&ext!=".xlsx"&&ext!=".doc"&&ext!=".docx"&&ext!=".txt"&&ext!=".pdf"){obj[$(this).attr("name")]="Only Accept: .xls, .xlsx, .doc, .docx, .txt, .pdf
";ErrNum++;}}});} filepath=$("#WordFile").val();if(filepath!=""&&filepath!=null){var ext=filepath.substring(filepath.lastIndexOf("."),filepath.length).toLowerCase();if(ext!=".doc"&&ext!=".docx"){obj[$("#WordFile").attr("name")]="Only Accept: .doc, .docx
";ErrNum++;}} if(ErrNum>0){var validator=$('#textForm').validate();validator.showErrors(obj);return false;} else{return true;}} function showLoading(){$("body").append("
Waiting...
");$("#box-mask").css({"position":"fixed","top":"0","left":"0","width":"100%","height":"100%","background":"white","opacity":"0.7","filter":"alpha(opacity=70)","z-index":"2000"});$("#Loading").css({"position":"absolute","width":"220px","height":"50px","text-align":"center","font-size":"20px","z-index":"2100"});center($("#Loading"));} function hideLoading(){$("#box-mask").remove();$("#Loading").remove();} function center(obj){var screenWidth=$(window).width(),screenHeigth=$(window).height();var scollTop=$(document).scrollTop();var objLeft=(screenWidth - obj.width())/2;var objTop=(screenHeigth - obj.height())/2 + scollTop;obj.css({left:objLeft +"px",top:objTop +"px"});obj.css({"display":"block"});} var form=$('#textForm').ajaxForm({dataType:'json',type:'post',beforeSerialize:function($form,options){var jsonResultHidden=form.find('input:hidden[name=JsonResult]').val(true);if(!jsonResultHidden.length){jsonResultHidden=$('').appendTo(form);}},beforeSubmit:function(arr,$form,options){if(window.confirm("Are you sure to sumbit this form?")){showLoading();if(!checkUpload()){hideLoading();alert("False !");} return checkUpload();}else{return false;}},success:function(response,textStatus){if(response.Success){alert("Success !");if($("#RedirectUrl").val()){window.location.href=$("#RedirectUrl").val();}else{window.location.reload(true);}}else{var msgStr='';for(var i=0;iCorresponding Author';oTr.appendChild(oTd);oTd=document.createElement('td');oTd.bgColor='#c6ebce';oTd.width='90px;';oTd.innerHTML='Presenting Author';oTr.appendChild(oTd);oTd=document.createElement('td');oTd.bgColor='#c6ebce';oTd.width='40px;';oTd.innerHTML='Order';oTr.appendChild(oTd);oTd=document.createElement('td');oTd.bgColor='#c6ebce';oTd.width='100px;';oTd.innerHTML='Name';oTr.appendChild(oTd);oTd=document.createElement('td');oTd.bgColor='#c6ebce';oTd.width='50px;';oTd.innerHTML='Country';oTr.appendChild(oTd);oTd=document.createElement('td');oTd.bgColor='#c6ebce';oTd.width='150px;';oTd.innerHTML='Institution';oTr.appendChild(oTd);oTd=document.createElement('td');oTd.bgColor='#c6ebce';oTd.width='150px;';oTd.innerHTML='E-mail';oTr.appendChild(oTd);oTd=document.createElement('td');oTd.bgColor='#c6ebce';oTd.width='55px;';oTd.innerHTML='Delete';oTr.appendChild(oTd);} function isEmpty(data) {for(var i=0;i";getObject("editbtn2").innerHTML="";} function authorAdd_AUTO(str) {var arr=str.split("|");var fname2,lname2,title2,country2,affiliation2,email2,pp,dd pp=arr[0];dd=arr[1];fname2=arr[3];lname2=arr[4];title2=arr[2];country2=arr[5];affiliation2=arr[6];email2=arr[7];var namef=fname2;var namel=lname2;fname2=namef.substring(0,1).toUpperCase()+ namef.substring(1);lname2=namel.substring(0,1).toUpperCase()+ namel.substring(1);oRow=document.createElement('tr');oTBody.appendChild(oRow);oCell=document.createElement('td');oCell.bgColor='#ffffff';if(pp=="N") {oCell.innerHTML='';}else {oCell.innerHTML='';} oRow.appendChild(oCell);oCell=document.createElement('td');oCell.bgColor='#ffffff';if(dd=="N") {oCell.innerHTML='';}else {oCell.innerHTML='';} oRow.appendChild(oCell);oCell=document.createElement('td');oCell.bgColor='#ffffff';oCell.innerHTML=' ';oRow.appendChild(oCell);oCell=document.createElement('td');oCell.bgColor='#ffffff';oCell.innerHTML=title2+'| '+fname2 +'|'+ lname2;oRow.appendChild(oCell);oCell=document.createElement('td');oCell.bgColor='#ffffff';oCell.innerHTML=country2;oRow.appendChild(oCell);oCell=document.createElement('td');oCell.bgColor='#ffffff';oCell.innerHTML=affiliation2;oRow.appendChild(oCell);oCell=document.createElement('td');oCell.bgColor='#ffffff';oCell.innerHTML=email2;oRow.appendChild(oCell);oCell=document.createElement('td');oCell.bgColor='#ffffff';oCell.innerHTML='';oRow.appendChild(oCell);} function authorAdd() {var f=document.textForm;if(isEmpty(f.email2.value)) {alert("Please check the E-mail");f.email2.focus();return;} if(isEmpty(f.title2.value)) {alert("Please check the Title");f.title2.focus();return;} if(isEmpty(f.fname2.value)) {alert("Please check the First Name");f.fname2.focus();return;} if(isEmpty(f.lname2.value)) {alert("Please check the Last Name");f.lname2.focus();return;} if(isEmpty(f.affiliation2.value)) {alert("Please check the Affiliation");f.affiliation2.focus();return;} if(isEmpty(f.country2.value)) {alert("Please check the Country");f.country2.focus();return;} var namef=f.fname2.value;var namel=f.lname2.value;f.fname2.value=namef.substring(0,1).toUpperCase()+ namef.substring(1);f.lname2.value=namel.substring(0,1).toUpperCase()+ namel.substring(1);oRow=document.createElement('tr');oTBody.appendChild(oRow);oCell=document.createElement('td');oCell.bgColor='#ffffff';oCell.innerHTML='';oRow.appendChild(oCell);oCell=document.createElement('td');oCell.bgColor='#ffffff';oCell.innerHTML='';oRow.appendChild(oCell);oCell=document.createElement('td');oCell.bgColor='#ffffff';oCell.innerHTML=' ';oRow.appendChild(oCell);oCell=document.createElement('td');oCell.bgColor='#ffffff';oCell.innerHTML=f.title2.value+'|'+f.fname2.value +'|'+ f.lname2.value;oRow.appendChild(oCell);oCell=document.createElement('td');oCell.bgColor='#ffffff';oCell.innerHTML=f.country2.value;oRow.appendChild(oCell);oCell=document.createElement('td');oCell.bgColor='#ffffff';oCell.innerHTML=f.affiliation2.value;oRow.appendChild(oCell);oCell=document.createElement('td');oCell.bgColor='#ffffff';oCell.innerHTML=f.email2.value;oRow.appendChild(oCell);oCell=document.createElement('td');oCell.bgColor='#ffffff';oCell.innerHTML='';oRow.appendChild(oCell);f.email2.value="";f.title2.value="";f.fname2.value="";f.lname2.value="";f.affiliation2.value="";f.country2.value="";f.authorsNum.value=parseInt(f.authorsNum.value)+1} function swapRowUp(chosenRow){if(chosenRow.rowIndex!=1){moveRow(chosenRow,chosenRow.rowIndex-1);}} function swapRowDown(chosenRow){if(chosenRow.rowIndex!=getObject('oTable').rows.length-1){moveRow(chosenRow,chosenRow.rowIndex+1);}} function moveRow(targetRow,newIndex){if(newIndex>targetRow.rowIndex){newIndex++;} var mainTable=document.getElementById('oTable');var theCopiedRow=mainTable.insertRow(newIndex);for(var i=0;iarticle,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}";c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode||"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",version:"3.6.2pre",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f);if(g)return a.createDocumentFragment();for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d")[0],{prop:0}),M=b.browser.msie&&b.browser.version<7&&!window.XMLHttpRequest,N=function(){t.hide();v.onerror=v.onload=null;G&&G.abort();m.empty()},O=function(){if(false===e.onError(o,q,e)){t.hide();h=false}else{e.titleShow=false;e.width="auto";e.height="auto";m.html('

The requested content cannot be loaded.
Please try again later.

');F()}},I=function(){var a=o[q],c,g,k,C,P,w;N();e=b.extend({},b.fn.fancybox.defaults,typeof b(a).data("fancybox")=="undefined"?e:b(a).data("fancybox"));w=e.onStart(o,q,e);if(w===false)h=false;else{if(typeof w=="object")e=b.extend(e,w);k=e.title||(a.nodeName?b(a).attr("title"):a.title)||"";if(a.nodeName&&!e.orig)e.orig=b(a).children("img:first").length?b(a).children("img:first"):b(a);if(k===""&&e.orig&&e.titleFromAlt)k=e.orig.attr("alt");c=e.href||(a.nodeName?b(a).attr("href"):a.href)||null;if(/^(?:javascript)/i.test(c)||c=="#")c=null;if(e.type){g=e.type;if(!c)c=e.content}else if(e.content)g="html";else if(c)g=c.match(J)?"image":c.match(W)?"swf":b(a).hasClass("iframe")?"iframe":c.indexOf("#")===0?"inline":"ajax";if(g){if(g=="inline"){a=c.substr(c.indexOf("#"));g=b(a).length>0?"inline":"ajax"}e.type=g;e.href=c;e.title=k;if(e.autoDimensions)if(e.type=="html"||e.type=="inline"||e.type=="ajax"){e.width="auto";e.height="auto"}else e.autoDimensions=false;if(e.modal){e.overlayShow=true;e.hideOnOverlayClick=false;e.hideOnContentClick=false;e.enableEscapeButton=false;e.showCloseButton=false}e.padding=parseInt(e.padding,10);e.margin=parseInt(e.margin,10);m.css("padding",e.padding+e.margin);b(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){b(this).replaceWith(j.children())});switch(g){case"html":m.html(e.content);F();break;case"inline":if(b(a).parent().is("#fancybox-content")===true){h=false;break}b('
').hide().insertBefore(b(a)).bind("fancybox-cleanup",function(){b(this).replaceWith(j.children())}).bind("fancybox-cancel",function(){b(this).replaceWith(m.children())});b(a).appendTo(m);F();break;case"image":h=false;b.fancybox.showActivity();v=new Image;v.onerror=function(){O()};v.onload=function(){h=true;v.onerror=v.onload=null;e.width=v.width;e.height=v.height;b("").attr({id:"fancybox-img",src:v.src,alt:e.title}).appendTo(m);Q()};v.src=c;break;case"swf":e.scrolling="no";C='';P="";b.each(e.swf,function(x,H){C+='';P+=" "+x+'="'+H+'"'});C+='";m.html(C);F();break;case"ajax":h=false;b.fancybox.showActivity();e.ajax.win=e.ajax.success;G=b.ajax(b.extend({},e.ajax,{url:c,data:e.ajax.data||{},error:function(x){x.status>0&&O()},success:function(x,H,R){if((typeof R=="object"?R:G).status==200){if(typeof e.ajax.win=="function"){w=e.ajax.win(c,x,H,R);if(w===false){t.hide();return}else if(typeof w=="string"||typeof w=="object")x=w}m.html(x);F()}}}));break;case"iframe":Q()}}else O()}},F=function(){var a=e.width,c=e.height;a=a.toString().indexOf("%")>-1?parseInt((b(window).width()-e.margin*2)*parseFloat(a)/100,10)+"px":a=="auto"?"auto":a+"px";c=c.toString().indexOf("%")>-1?parseInt((b(window).height()-e.margin*2)*parseFloat(c)/100,10)+"px":c=="auto"?"auto":c+"px";m.wrapInner('
');e.width=m.width();e.height=m.height();Q()},Q=function(){var a,c;t.hide();if(f.is(":visible")&&false===d.onCleanup(l,p,d)){b.event.trigger("fancybox-cancel");h=false}else{h=true;b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");f.is(":visible")&&d.titlePosition!=="outside"&&f.css("height",f.height());l=o;p=q;d=e;if(d.overlayShow){u.css({"background-color":d.overlayColor,opacity:d.overlayOpacity,cursor:d.hideOnOverlayClick?"pointer":"auto",height:b(document).height()});if(!u.is(":visible")){M&&b("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"});u.show()}}else u.hide();i=X();s=d.title||"";y=0;n.empty().removeAttr("style").removeClass();if(d.titleShow!==false){if(b.isFunction(d.titleFormat))a=d.titleFormat(s,l,p,d);else a=s&&s.length?d.titlePosition=="float"?'
'+s+'
':'
'+s+"
":false;s=a;if(!(!s||s==="")){n.addClass("fancybox-title-"+d.titlePosition).html(s).appendTo("body").show();switch(d.titlePosition){case"inside":n.css({width:i.width-d.padding*2,marginLeft:d.padding,marginRight:d.padding});y=n.outerHeight(true);n.appendTo(D);i.height+=y;break;case"over":n.css({marginLeft:d.padding,width:i.width-d.padding*2,bottom:d.padding}).appendTo(D);break;case"float":n.css("left",parseInt((n.width()-i.width-40)/2,10)*-1).appendTo(f);break;default:n.css({width:i.width-d.padding*2,paddingLeft:d.padding,paddingRight:d.padding}).appendTo(f)}}}n.hide();if(f.is(":visible")){b(E.add(z).add(A)).hide();a=f.position();r={top:a.top,left:a.left,width:f.width(),height:f.height()};c=r.width==i.width&&r.height==i.height;j.fadeTo(d.changeFade,0.3,function(){var g=function(){j.html(m.contents()).fadeTo(d.changeFade,1,S)};b.event.trigger("fancybox-change");j.empty().removeAttr("filter").css({"border-width":d.padding,width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2});if(c)g();else{B.prop=0;b(B).animate({prop:1},{duration:d.changeSpeed,easing:d.easingChange,step:T,complete:g})}})}else{f.removeAttr("style");j.css("border-width",d.padding);if(d.transitionIn=="elastic"){r=V();j.html(m.contents());f.show();if(d.opacity)i.opacity=0;B.prop=0;b(B).animate({prop:1},{duration:d.speedIn,easing:d.easingIn,step:T,complete:S})}else{d.titlePosition=="inside"&&y>0&&n.show();j.css({width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2}).html(m.contents());f.css(i).fadeIn(d.transitionIn=="none"?0:d.speedIn,S)}}}},Y=function(){if(d.enableEscapeButton||d.enableKeyboardNav)b(document).bind("keydown.fb",function(a){if(a.keyCode==27&&d.enableEscapeButton){a.preventDefault();b.fancybox.close()}else if((a.keyCode==37||a.keyCode==39)&&d.enableKeyboardNav&&a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.target.tagName!=="SELECT"){a.preventDefault();b.fancybox[a.keyCode==37?"prev":"next"]()}});if(d.showNavArrows){if(d.cyclic&&l.length>1||p!==0)z.show();if(d.cyclic&&l.length>1||p!=l.length-1)A.show()}else{z.hide();A.hide()}},S=function(){if(!b.support.opacity){j.get(0).style.removeAttribute("filter");f.get(0).style.removeAttribute("filter")}e.autoDimensions&&j.css("height","auto");f.css("height","auto");s&&s.length&&n.show();d.showCloseButton&&E.show();Y();d.hideOnContentClick&&j.bind("click",b.fancybox.close);d.hideOnOverlayClick&&u.bind("click",b.fancybox.close);b(window).bind("resize.fb",b.fancybox.resize);d.centerOnScroll&&b(window).bind("scroll.fb",b.fancybox.center);if(d.type=="iframe")b('').appendTo(j);f.show();h=false;b.fancybox.center();d.onComplete(l,p,d);var a,c;if(l.length-1>p){a=l[p+1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}if(p>0){a=l[p-1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}},T=function(a){var c={width:parseInt(r.width+(i.width-r.width)*a,10),height:parseInt(r.height+(i.height-r.height)*a,10),top:parseInt(r.top+(i.top-r.top)*a,10),left:parseInt(r.left+(i.left-r.left)*a,10)};if(typeof i.opacity!=="undefined")c.opacity=a<0.5?0.5:a;f.css(c);j.css({width:c.width-d.padding*2,height:c.height-y*a-d.padding*2})},U=function(){return[b(window).width()-d.margin*2,b(window).height()-d.margin*2,b(document).scrollLeft()+d.margin,b(document).scrollTop()+d.margin]},X=function(){var a=U(),c={},g=d.autoScale,k=d.padding*2;c.width=d.width.toString().indexOf("%")>-1?parseInt(a[0]*parseFloat(d.width)/100,10):d.width+k;c.height=d.height.toString().indexOf("%")>-1?parseInt(a[1]*parseFloat(d.height)/100,10):d.height+k;if(g&&(c.width>a[0]||c.height>a[1]))if(e.type=="image"||e.type=="swf"){g=d.width/d.height;if(c.width>a[0]){c.width=a[0];c.height=parseInt((c.width-k)/g+k,10)}if(c.height>a[1]){c.height=a[1];c.width=parseInt((c.height-k)*g+k,10)}}else{c.width=Math.min(c.width,a[0]);c.height=Math.min(c.height,a[1])}c.top=parseInt(Math.max(a[3]-20,a[3]+(a[1]-c.height-40)*0.5),10);c.left=parseInt(Math.max(a[2]-20,a[2]+(a[0]-c.width-40)*0.5),10);return c},V=function(){var a=e.orig?b(e.orig):false,c={};if(a&&a.length){c=a.offset();c.top+=parseInt(a.css("paddingTop"),10)||0;c.left+=parseInt(a.css("paddingLeft"),10)||0;c.top+=parseInt(a.css("border-top-width"),10)||0;c.left+=parseInt(a.css("border-left-width"),10)||0;c.width=a.width();c.height=a.height();c={width:c.width+d.padding*2,height:c.height+d.padding*2,top:c.top-d.padding-20,left:c.left-d.padding-20}}else{a=U();c={width:d.padding*2,height:d.padding*2,top:parseInt(a[3]+a[1]*0.5,10),left:parseInt(a[2]+a[0]*0.5,10)}}return c},Z=function(){if(t.is(":visible")){b("div",t).css("top",L*-40+"px");L=(L+1)%12}else clearInterval(K)};b.fn.fancybox=function(a){if(!b(this).length)return this;b(this).data("fancybox",b.extend({},a,b.metadata?b(this).metadata():{})).unbind("click.fb").bind("click.fb",function(c){c.preventDefault();if(!h){h=true;b(this).blur();o=[];q=0;c=b(this).attr("rel")||"";if(!c||c==""||c==="nofollow")o.push(this);else{o=b("a[rel="+c+"], area[rel="+c+"]");q=o.index(this)}I()}});return this};b.fancybox=function(a,c){var g;if(!h){h=true;g=typeof c!=="undefined"?c:{};o=[];q=parseInt(g.index,10)||0;if(b.isArray(a)){for(var k=0,C=a.length;ko.length||q<0)q=0;I()}};b.fancybox.showActivity=function(){clearInterval(K);t.show();K=setInterval(Z,66)};b.fancybox.hideActivity=function(){t.hide()};b.fancybox.next=function(){return b.fancybox.pos(p+ 1)};b.fancybox.prev=function(){return b.fancybox.pos(p-1)};b.fancybox.pos=function(a){if(!h){a=parseInt(a);o=l;if(a>-1&&a1){q=a>=l.length?0:l.length-1;I()}}};b.fancybox.cancel=function(){if(!h){h=true;b.event.trigger("fancybox-cancel");N();e.onCancel(o,q,e);h=false}};b.fancybox.close=function(){function a(){u.fadeOut("fast");n.empty().hide();f.hide();b.event.trigger("fancybox-cleanup");j.empty();d.onClosed(l,p,d);l=e=[];p=q=0;d=e={};h=false}if(!(h||f.is(":hidden"))){h=true;if(d&&false===d.onCleanup(l,p,d))h=false;else{N();b(E.add(z).add(A)).hide();b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");j.find("iframe").attr("src",M&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");d.titlePosition!=="inside"&&n.empty();f.stop();if(d.transitionOut=="elastic"){r=V();var c=f.position();i={top:c.top,left:c.left,width:f.width(),height:f.height()};if(d.opacity)i.opacity=1;n.empty().hide();B.prop=1;b(B).animate({prop:0},{duration:d.speedOut,easing:d.easingOut,step:T,complete:a})}else f.fadeOut(d.transitionOut=="none"?0:d.speedOut,a)}}};b.fancybox.resize=function(){u.is(":visible")&&u.css("height",b(document).height());b.fancybox.center(true)};b.fancybox.center=function(a){var c,g;if(!h){g=a===true?1:0;c=U();!g&&(f.width()>c[0]||f.height()>c[1])||f.stop().animate({top:parseInt(Math.max(c[3]-20,c[3]+(c[1]-j.height()-40)*0.5-d.padding)),left:parseInt(Math.max(c[2]-20,c[2]+(c[0]-j.width()-40)*0.5- d.padding))},typeof a=="number"?a:200)}};b.fancybox.init=function(){if(!b("#fancybox-wrap").length){b("body").append(m=b('
'),t=b('
'),u=b('
'),f=b('
'));D=b('
').append('
').appendTo(f);D.append(j=b('
'),E=b(''),n=b('
'),z=b(''),A=b(''));E.click(b.fancybox.close);t.click(b.fancybox.cancel);z.click(function(a){a.preventDefault();b.fancybox.prev()});A.click(function(a){a.preventDefault();b.fancybox.next()});b.fn.mousewheel&&f.bind("mousewheel.fb",function(a,c){if(h)a.preventDefault();else if(b(a.target).get(0).clientHeight==0||b(a.target).get(0).scrollHeight===b(a.target).get(0).clientHeight){a.preventDefault();b.fancybox[c>0?"prev":"next"]()}});b.support.opacity||f.addClass("fancybox-ie");if(M){t.addClass("fancybox-ie6");f.addClass("fancybox-ie6");b('').prependTo(D)}}};b.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};b(document).ready(function(){b.fancybox.init()})})(jQuery);;(function($){$.fn.piroBox=function(opt){opt=jQuery.extend({my_speed:null,close_speed:300,bg_alpha:0.5,scrollImage:null,pirobox_next:'piro_next_out',pirobox_prev:'piro_prev_out',radius:4,close_all:'.piro_close,.piro_overlay',slideShow:null,slideSpeed:null},opt);function start_pirobox(){var corners=''+''+''+''+''+''+''+''+''+''+'
'+''+''+''+''+''+''+''+''+''+'';var window_height=$(window).height();var bg_overlay=$(jQuery('
').hide().css({'opacity':+opt.bg_alpha,'height':window_height+'px'}));var main_cont=$(jQuery('
'));var caption=$(jQuery('
').css({'opacity':'0.8','-moz-border-radius':opt.radius+'px','-khtml-border-radius':opt.radius+'px','-webkit-border-radius':opt.radius+'px','border-radius':opt.radius+'px'}));var piro_nav=$(jQuery('
'));var piro_close=$(jQuery('
'));var piro_play=$(jQuery(''));var piro_stop=$(jQuery(''));var piro_prev=$(jQuery(''));var piro_next=$(jQuery(''));$('body').append(bg_overlay).append(main_cont);main_cont.append(corners);$('.pirobox_up').append(piro_close);$('.pirobox_down').append(piro_nav);$('.c_c').append(piro_play);piro_play.hide();piro_nav.append(piro_prev).append(piro_next).append(caption);if(piro_prev.is('.piro_prev_out')||piro_next.is('.piro_next_out')){$('body').append(piro_prev).append(piro_next);piro_prev.add(piro_next).hide()}else{piro_nav.append(piro_prev).append(piro_next);} var my_nav_w=piro_prev.width();main_cont.hide();var my_gall_classes=$("a[class^='pirobox_gall']");var map=new Object();for(var i=0;i'+ this_url+'

');}else{caption.html('

'+ descr+'

');} $('.c_c').addClass('unique');piro_next.add(piro_prev).add(piro_close).add(caption).hide();$('.play').remove();});});$(piro_gallery).each(function(array){var item=$(this);item.bind('click',function(c){c.preventDefault();piro_open(item.attr('href'));var this_url=item.attr('href');var descr=item.attr('title');var number=item.attr('rel');if(descr==""){caption.html('

'+ this_url+''+ number +'

');}else{caption.html('

'+ descr+''+ number +'

');} if(item.is('.last')){$('.number').css('text-decoration','underline');}else{$('.number').css('text-decoration','none');} if(item.is('.first')){piro_prev.hide();piro_next.show();}else{piro_next.add(piro_prev).show();} if(item.is('.last')){piro_prev.show();piro_next.hide();} if(item.is('.last')&&item.is('.first')){piro_prev.add(piro_next).hide();$('.number').hide();piro_play.remove();} $(piro_gallery).filter('.item').removeClass('item');item.addClass('item');$('.c_c').removeClass('unique');});});var piro_open=function(my_url){piro_play.add(piro_stop).hide();piro_close.add(caption).add(piro_next).add(piro_prev).css('visibility','hidden');if(main_cont.is(':visible')){$('.c_c div').children().fadeOut(300,function(){$('.c_c div').children().remove();load_img(my_url);});}else{$('.c_c div').children().remove();main_cont.show();bg_overlay.fadeIn(300,function(){load_img(my_url);});}} var load_img=function(my_url){if(main_cont.is('.loading')){return;} main_cont.addClass('loading');var img=new Image();img.onerror=function(){var main_cont_h=$(main_cont).height();main_cont.css({marginTop:parseInt($(document).scrollTop())-(main_cont_h/1.9)});$('.c_c div').append('

There seems to be an Error: Close Pirobox

');$('.close_pirobox').bind('click',function(){$('.err_mess').remove();main_cont.add(bg_overlay).fadeOut(opt.close_speed);main_cont.removeClass('loading');$('.c_c').append(piro_play);return false;});} img.onload=function(){var imgH=img.height;var imgW=img.width;var main_cont_h=$(main_cont).height();var w_H=$(window).height();var w_W=$(window).width();if(imgH+100>w_H||imgW+100>w_W){var new_img_W=imgW;var new_img_H=imgH;var _x=(imgW + 250)/w_W;var _y=(imgH + 250)/w_H;if(_y>_x){new_img_W=Math.round(imgW*(1/_y));new_img_H=Math.round(imgH*(1/_y));}else{new_img_W=Math.round(imgW*(1/_x));new_img_H=Math.round(imgH*(1/_x));} imgH +=new_img_H;imgW +=new_img_W;$(img).height(new_img_H).width(new_img_W).hide();$('.c_c div').animate({height:new_img_H+'px',width:new_img_W+'px'},opt.my_speed);main_cont.animate({height:(new_img_H+20)+'px',width:(new_img_W+20)+'px',marginLeft:'-'+((new_img_W)/2+10)+'px',marginTop:parseInt($(document).scrollTop())-(new_img_H/1.9)-20},opt.my_speed,function(){$('.piro_nav,.caption').css({width:(new_img_W)+'px'});$('.piro_nav').css('margin-left','-'+(new_img_W+5)/2+'px');var caption_height=caption.height();caption.css({'bottom':'-'+(caption_height+5)+'px'});$('.c_c div').append(img);piro_close.css('display','block');piro_next.add(piro_prev).add(piro_close).css('visibility','visible');caption.css({'visibility':'visible','display':'block'});$(img).show().fadeIn(300);main_cont.removeClass('loading');if(opt.slideShow=='slideshow'){piro_play.add(piro_stop).show();}else{piro_play.add(piro_stop).hide();}});}else{$(img).height(imgH).width(imgW).hide();$('.c_c div').animate({height:imgH+'px',width:imgW+'px'},opt.my_speed);main_cont.animate({height:(imgH+20)+'px',width:(imgW+20)+'px',marginLeft:'-'+((imgW)/2+10)+'px',marginTop:parseInt($(document).scrollTop())-(imgH/1.9)-20},opt.my_speed,function(){$('.piro_nav,.caption').css({width:(imgW)+'px'});$('.piro_nav').css('margin-left','-'+(imgW+5)/2+'px');var caption_height=caption.height();caption.css({'bottom':'-'+(caption_height+5)+'px'});$('.c_c div').append(img);piro_close.css('display','block');piro_next.add(piro_prev).add(piro_close).css('visibility','visible');caption.css({'visibility':'visible','display':'block'});$(img).fadeIn(300);main_cont.removeClass('loading');if(opt.slideShow=='slideshow'){piro_play.add(piro_stop).show();}else{piro_play.add(piro_stop).hide();}});}} img.src=my_url;var win_h=$(window).height();var nav_h=$('.piro_prev_out').height();$('.piro_prev_out').add('.piro_next_out').css({marginTop:parseInt($(document).scrollTop())+(win_h/nav_h-125)});$('.caption p').css({'-moz-border-radius':opt.radius+'px','-khtml-border-radius':opt.radius+'px','-webkit-border-radius':opt.radius+'px','border-radius':opt.radius+'px'});piro_stop.bind('click',function(x){x.preventDefault();clearTimeout(timer);$(piro_gallery).children().removeAttr('class');$('.stop').remove();$('.c_c').append(piro_play);piro_next.add(piro_prev).css('width',my_nav_w+'px');});piro_play.bind('click',function(w){w.preventDefault();clearTimeout(timer);if($(img).is(':visible')){$(piro_gallery).children().addClass(opt.slideShow);$('.play').remove();$('.c_c').append(piro_stop);} piro_next.add(piro_prev).css({'width':'0px'});return slideshow();});$(opt.close_all).bind('click',function(c){clearTimeout(timer);if($(img).is(':visible')){c.preventDefault();piro_close.add(bg_overlay).add(main_cont).add(caption).add(piro_next).add(piro_prev).fadeOut(opt.close_speed);main_cont.removeClass('loading');$(piro_gallery).children().removeAttr('class');piro_next.add(piro_prev).css('width',my_nav_w+'px').hide();$('.stop').remove();$('.c_c').append(piro_play);piro_play.hide();}});function slideshow(){clearTimeout(timer);if($(piro_gallery).filter('.item').is('.last')){$(piro_gallery).children().removeAttr('class');piro_next.add(piro_prev).css('width',my_nav_w+'px');$('.stop').remove();$('.c_c').append(piro_play);piro_play.hide();}else if($(piro_gallery).children().is('.'+ opt.slideShow)){piro_next.click();}} var timer=setInterval(slideshow,opt.slideSpeed*1000);$().bind("keydown",function(c){if(c.keyCode===27){c.preventDefault();if($(img).is(':visible')||$('.c_c>div>p>a').is('.close_pirobox')){piro_close.add(bg_overlay).add(main_cont).add(caption).add(piro_next).add(piro_prev).fadeOut(opt.close_speed);main_cont.removeClass('loading');clearTimeout(timer);$(piro_gallery).children().removeAttr('class');$('.stop').remove();$('.c_c').append(piro_play);piro_next.add(piro_prev).css('width',my_nav_w+'px');$(piro_gallery).add(piro_single).children().fadeTo(100,1);}}}).bind("keydown",function(e){if($('.c_c').is('.unique')||$('.item').is('.first')){}else if($('.c_c').is('.c_c')&&(e.keyCode===37)){e.preventDefault();if($(img).is(':visible')){clearTimeout(timer);$(piro_gallery).children().removeAttr('class');$('.stop').remove();$('.c_c').append(piro_play);piro_next.add(piro_prev).css('width',my_nav_w+'px');piro_prev.click();}} if($('.c_c').is('.unique')||$('.item').is('.last')){}else if($('.c_c').is('.c_c')&&(e.keyCode===39)){e.preventDefault();if($(img).is(':visible')){clearTimeout(timer);$(piro_gallery).children().removeAttr('class');$('.stop').remove();$('.c_c').append(piro_play);piro_next.add(piro_prev).css('width',my_nav_w+'px');piro_next.click();}}});$.browser.msie6=($.browser.msie&&/MSIE 6\.0/i.test(window.navigator.userAgent));if($.browser.msie6&&!/MSIE 8\.0/i.test(window.navigator.userAgent)){$('.t_l,.t_c,.t_r,.c_l,.c_r,.b_l,.b_c,.b_r,a.piro_next, a.piro_prev,a.piro_prev_out,a.piro_next_out,.c_c,.piro_close,a.play,a.stop').fixPNG();var ie_w_h=$(document).height();bg_overlay.css('height',ie_w_h+'px');} if($.browser.msie){opt.close_speed=0;} function scrollImage(){if($(main_cont).is(':visible')){window.onscroll=function(){var main_cont_h=$(main_cont).height();main_cont.css({marginTop:parseInt($(this).scrollTop())-(main_cont_h/1.9)-10});var Nwin_h=$(window).height();var Nnav_h=$('.piro_prev_out').height();$('.piro_prev_out').add('.piro_next_out').css({marginTop:parseInt($(document).scrollTop())+(Nwin_h/Nnav_h-125)});}}} if(opt.scrollImage==true){return scrollImage();}}} start_pirobox();}})(jQuery);;$(function(){$(".side-menu li").hover(function(){$(this).find("a").css("color","#FFF");$(this).find("span").stop().animate({width:"100%",opacity:"1"},600,function(){})},function(){$(this).find("a").css("color","#0074c5");$(this).find("span").stop().animate({width:"0%",opacity:"0"},600,function(){})});});