
(function(){var dep={"jQuery":"http://code.jquery.com/jquery-latest.min.js"};var init=function(){(function($){$.fn.idTabs=function(){var s={};for(var i=0;i<arguments.length;++i){var a=arguments[i];switch(a.constructor){case Object:$.extend(s,a);break;case Boolean:s.change=a;break;case Number:s.start=a;break;case Function:s.click=a;break;case String:if(a.charAt(0)=='.')s.selected=a;else if(a.charAt(0)=='!')s.event=a;else s.start=a;break;}}if(typeof s['return']=="function")s.change=s['return'];return this.each(function(){$.idTabs(this,s);});};$.idTabs=function(tabs,options){var meta=($.metadata)?$(tabs).metadata():{};var s=$.extend({},$.idTabs.settings,meta,options);if(s.selected.charAt(0)=='.')s.selected=s.selected.substr(1);if(s.event.charAt(0)=='!')s.event=s.event.substr(1);if(s.start==null)s.start=-1;var showId=function(){if($(this).is('.'+s.selected))return s.change;var id="#"+this.href.split('#')[1];var aList=[];var idList=[];$("a",tabs).each(function(){if(this.href.match(/#/)){aList.push(this);idList.push("#"+this.href.split('#')[1]);}});if(s.click&&!s.click.apply(this,[id,idList,tabs,s]))return s.change;for(i in aList)$(aList[i]).removeClass(s.selected);for(i in idList)$(idList[i]).hide();$(this).addClass(s.selected);$(id).show();return s.change;};var list=$("a[href*='#']",tabs).unbind(s.event,showId).bind(s.event,showId);list.each(function(){$("#"+this.href.split('#')[1]).hide();});var test=false;if((test=list.filter('.'+s.selected)).length);else if(typeof s.start=="number"&&(test=list.eq(s.start)).length);else if(typeof s.start=="string"&&(test=list.filter("[href*='#"+s.start+"']")).length);if(test){test.removeClass(s.selected);test.trigger(s.event);}return s;};$.idTabs.settings={start:0,change:false,click:null,selected:".selected",event:"!click"};$.idTabs.version="2.2";$(function(){$(".idTabs").idTabs();});})(jQuery);};var check=function(o,s){s=s.split('.');while(o&&s.length)o=o[s.shift()];return o;};var head=document.getElementsByTagName("head")[0];var add=function(url){var s=document.createElement("script");s.type="text/javascript";s.src=url;head.appendChild(s);};var s=document.getElementsByTagName('script');var src=s[s.length-1].src;var ok=true;for(d in dep){if(check(this,d))continue;ok=false;add(dep[d]);}if(ok)return init();add(src);})();(function($){function runTicker(settings){if(settings.firstRun==1){currentLength=settings.currentLength;currentItem=settings.currentItem;settings.firstRun=0}if(currentItem==settings.newsItemCounter+1){currentItem=0}if(currentLength==0){$(settings.newsList).empty().append('<li><a href="'+settings.newsLinks[currentItem]+'"></a></li>')}if(currentLength%2==0){placeHolder=settings.placeHolder1}else{placeHolder=settings.placeHolder2}if(currentLength<=settings.newsItems[currentItem].length+1){var tickerText=settings.newsItems[currentItem].substring(0,currentLength);$(settings.newsList+' li a').text(tickerText+placeHolder);currentLength++;setTimeout(function(){runTicker(settings);settings=null},settings.tickerRate)}else{$(settings.newsList+' li a').text(settings.newsItems[currentItem]);currentLength=0;currentItem++;setTimeout(function(){runTicker(settings);settings=null},settings.loopDelay)}}$.fn.extend({newsTicker:function(settings){settings=jQuery.extend({newsList:"#news",tickerRate:80,startDelay:100,loopDelay:3000,placeHolder1:" |",placeHolder2:"_"},settings);var newsItems=new Array();var newsLinks=new Array();var newsItemCounter=0;$(settings.newsList+' li a').each(function(){newsItems[newsItemCounter]=$(this).text();newsLinks[newsItemCounter]=$(this).attr('href');newsItemCounter++});settings=jQuery.extend(settings,{newsItems:newsItems,newsLinks:newsLinks,newsItemCounter:newsItemCounter-1,currentItem:0,currentLength:0,firstRun:1});setTimeout(function(){runTicker(settings);settings=null},settings.startDelay)}})})(jQuery);jQuery.fn.labelOver=function(overClass){return this.each(function(){var label=jQuery(this);var f=label.attr('for');if(f){var input=jQuery('#'+f);this.hide=function(){label.css({textIndent:-10000})};this.show=function(){if(input.val()=='')label.css({textIndent:0})};input.focus(this.hide);input.blur(this.show);label.addClass(overClass).click(function(){input.focus()});if(input.val()!='')this.hide();}})}
function makeSublist(parent,child,isSubselectOptional){$("body").append("<select style='display:none' id='"+parent+child+"'></select>");$('#'+parent+child).html($("#"+child+" option"));$('#'+child).html("<option> --- </option>");$('#'+parent).change(function(){var parentValue=$('#'+parent).attr('value');$('#'+child).html($("#"+parent+child+" .sub_"+parentValue).clone());if(isSubselectOptional)$('#'+child).prepend("<option> -- Select -- </option>");});}
$.fn.pager=function(clas,options){var settings={navId:'nav',navClass:'nav',navAttach:'append',highlightClass:'highlight',prevText:'&laquo;',nextText:'&raquo;',linkText:null,linkWrap:null,height:null};if(options)$.extend(settings,options);return this.each(function(){var me=$(this);var size;var i=0;var navid='#'+settings.navId;function init(){size=$(clas,me).not(navid).size();if(settings.height==null){settings.height=getHighest();}if(size>1){makeNav();show();highlight();}sizePanel();if(settings.linkWrap!=null){linkWrap();}}function makeNav(){var str='<div id="'+settings.navId+'" class="'+settings.navClass+'">';str+='<a href="#" rel="prev">'+settings.prevText+'</a>';for(var i=0;i<size;i++){var j=i+1;str+='<a href="#" rel="'+j+'">';str+=(settings.linkText==null)?j:settings.linkText[j-1];str+='</a>';}str+='<a href="#" rel="next">'+settings.nextText+'</a>';str+='</div>';switch(settings.navAttach){case'before':$(me).before(str);break;case'after':$(me).after(str);break;case'prepend':$(me).prepend(str);break;default:$(me).append(str);break;}}function show(){$(me).find(clas).not(navid).hide();var show=$(me).find(clas).not(navid).get(i);$(show).show();}function highlight(){$(me).find(navid).find('a').removeClass(settings.highlightClass);var show=$(me).find(navid).find('a').get(i+1);$(show).addClass(settings.highlightClass);}function sizePanel(){if($.browser.msie){$(me).find(clas).not(navid).css({height:settings.height});}else{$(me).find(clas).not(navid).css({minHeight:settings.height});}}function getHighest(){var highest=0;$(me).find(clas).not(navid).each(function(){if(this.offsetHeight>highest){highest=this.offsetHeight;}});highest=highest+"px";return highest;}function getNavHeight(){var nav=$(navid).get(0);return nav.offsetHeight;}function linkWrap(){$(me).find(navid).find("a").wrap(settings.linkWrap);}init();$(this).find(navid).find("a").click(function(){if($(this).attr('rel')=='next'){if(i+1<size){i=i+1;}}else if($(this).attr('rel')=='prev'){if(i>0){i=i-1;}}else{var j=$(this).attr('rel');i=j-1;}show();highlight();return false;});});};(function(C){var A,B,I,J,K,G,E,D,F,H;A=document.namespaces;has_canvas=document.createElement("canvas");has_canvas=has_canvas&&has_canvas.getContext;if(!(has_canvas||A)){C.fn.maphilight=function(){return this};return}if(has_canvas){E=function(M,N,L){if(N<=1){M.style.opacity=N;window.setTimeout(E,10,M,N+0.1,10)}};D=function(L){return Math.max(0,Math.min(parseInt(L,16),255))};F=function(L,M){return"rgba("+D(L.substr(0,2))+","+D(L.substr(2,2))+","+D(L.substr(4,2))+","+M+")"};B=function(L){var M=C('<canvas style="width:'+L.width+"px;height:"+L.height+'px;"></canvas>').get(0);M.getContext("2d").clearRect(0,0,M.width,M.height);return M};I=function(Q,M,L,P){var O,N=Q.getContext("2d");N.beginPath();if(M=="rect"){N.rect(L[0],L[1],L[2]-L[0],L[3]-L[1])}else{if(M=="poly"){N.moveTo(L[0],L[1]);for(O=2;O<L.length;O+=2){N.lineTo(L[O],L[O+1])}}else{if(M=="circ"){N.arc(L[0],L[1],L[2],0,Math.PI*2,false)}}}N.closePath();if(P.fill){N.fillStyle=F(P.fillColor,P.fillOpacity);N.fill()}if(P.stroke){N.strokeStyle=F(P.strokeColor,P.strokeOpacity);N.lineWidth=P.strokeWidth;N.stroke()}if(P.fade){E(Q,0)}};J=function(L,M){L.getContext("2d").clearRect(0,0,L.width,L.height)}}else{document.createStyleSheet().addRule("v\\:*","behavior: url(#default#VML); antialias: true;");document.namespaces.add("v","urn:schemas-microsoft-com:vml");B=function(L){return C('<var style="zoom:1;overflow:hidden;display:block;width:'+L.width+"px;height:"+L.height+'px;"></var>').get(0)};I=function(P,M,L,O){var R,S,N,Q;R='<v:fill color="#'+O.fillColor+'" opacity="'+(O.fill?O.fillOpacity:0)+'" />';S=(O.stroke?'strokeweight="'+O.strokeWidth+'" stroked="t" strokecolor="#'+O.strokeColor+'"':'stroked="f"');N='<v:stroke opacity="'+O.strokeOpacity+'"/>';if(M=="rect"){Q=C('<v:rect filled="t" '+S+' style="zoom:1;margin:0;padding:0;display:block;position:absolute;left:'+L[0]+"px;top:"+L[1]+"px;width:"+(L[2]-L[0])+"px;height:"+(L[3]-L[1])+'px;"></v:rect>')}else{if(M=="poly"){Q=C('<v:shape filled="t" '+S+' coordorigin="0,0" coordsize="'+P.width+","+P.height+'" path="m '+L[0]+","+L[1]+" l "+L.join(",")+' x e" style="zoom:1;margin:0;padding:0;display:block;position:absolute;top:0px;left:0px;width:'+P.width+"px;height:"+P.height+'px;"></v:shape>')}else{if(M=="circ"){Q=C('<v:oval filled="t" '+S+' style="zoom:1;margin:0;padding:0;display:block;position:absolute;left:'+(L[0]-L[2])+"px;top:"+(L[1]-L[2])+"px;width:"+(L[2]*2)+"px;height:"+(L[2]*2)+'px;"></v:oval>')}}}Q.get(0).innerHTML=R+N;C(P).append(Q)};J=function(L){C(L).empty()}}K=function(N){var M,L=N.getAttribute("coords").split(",");for(M=0;M<L.length;M++){L[M]=parseFloat(L[M])}return[N.getAttribute("shape").toLowerCase().substr(0,4),L]};H=function(L){if(!L.complete){return false}if(typeof L.naturalWidth!="undefined"&&L.naturalWidth==0){return false}return true};G={position:"absolute",left:0,top:0,padding:0,border:0};C.fn.maphilight=function(L){L=C.extend({},C.fn.maphilight.defaults,L);return this.each(function(){var N,Q,P,R,O,M;N=C(this);if(!H(this)){return window.setTimeout(function(){N.maphilight()},200)}P=C.metadata?C.extend({},L,N.metadata()):L;R=C('map[name="'+N.attr("usemap").substr(1)+'"]');if(!(N.is("img")&&N.attr("usemap")&&R.size()>0&&!N.hasClass("maphilighted"))){return}Q=C("<div>").css({display:"block",background:"url("+this.src+")",position:"relative",padding:0,width:this.width,height:this.height});N.before(Q).css("opacity",0).css(G).remove();if(C.browser.msie){N.css("filter","Alpha(opacity=0)")}Q.append(N);O=B(this);C(O).css(G);O.height=this.height;O.width=this.width;M=function(T){var S=K(this);I(O,S[0],S[1],C.metadata?C.extend({},P,C(this).metadata()):P)};if(P.alwaysOn){C(R).find("area[coords]").each(M)}else{C(R).find("area[coords]").mouseover(M).mouseout(function(S){J(O)})}N.before(O);N.addClass("maphilighted")})};C.fn.maphilight.defaults={fill:true,fillColor:"000000",fillOpacity:0.2,stroke:true,strokeColor:"ff0000",strokeOpacity:1,strokeWidth:1,fade:true,alwaysOn:false}})(jQuery);