(function($){$.fn.ajaxContent=function(options){var defaults=$.extend({},$.fn.ajaxContent.defaults,options);if(defaults.debug=='true')debug(this);return this.each(function(){var $obj=$(this),href=$obj.attr('href'),o=$.metadata?$.extend({},defaults,$obj.metadata()):defaults;if(o.bind!=''){var binds=o.bind.split(',');for(var i=0;i<binds.length;i++){var queryString=setQueryString(binds),url=href+queryString;$obj.attr({href:url});if($(binds[i]).attr('type')=="radio"||$(binds[i]).attr('type')=="checkbox"){$('input[name='+$(binds[i]).attr("name")+']').change(function(){var queryString=setQueryString(binds),url=href+queryString;$obj.attr({href:url})})}else $(binds[i]).change(function(){var queryString=setQueryString(binds),url=href+queryString;$obj.attr({href:url})})}};var $target=$(o.target);$obj.bind(o.event,function(ev){if(o.loader=='true')if(o.loaderType=='img'){$target.html('<img src="'+o.loadingMsg+'"/>')}else $target.html(o.loadingMsg);$('a.'+o.currentClass).removeClass(o.currentClass);$obj.addClass(o.currentClass);$.ajax({type:o.type,url:$obj.attr('href'),cache:'false',beforeSend:function(){if(typeof o.beforeSend=='function')o.beforeSend($obj,$target,ev)},success:function(msg){$target.html(msg);if(o.extend=='true')$(o.filter,$target).ajaxContent({target:o.ex_target,type:o.ex_type,event:o.ex_event,loader:o.ex_loader,loaderType:o.ex_loaderType,loadingMsg:o.ex_loadingMsg,errorMsg:o.ex_errorMsg,currentClass:o.ex_currentClass,success:o.ex_success,beforeSend:o.ex_beforeSend,error:o.ex_error,bind:o.ex_bind});if(typeof o.success=='function')o.success($obj,$target,msg)},error:function(){$target.html("<p>"+o.errorMsg+"</p>");if(typeof o.error=='function')o.error($target)}});return false})})}
function debug($obj){if(window.console&&window.console.log)window.console.log('selection count: '+$obj.size()+'  with class:'+$obj.attr('class'))}
function setQueryString(binds){var queryString='&';for(var i=0;i<binds.length;i++){if($(binds[i]).attr('type')=="radio"){queryString+=$('input[name='+$(binds[i]).attr("name")+']').fieldSerialize()}else if($(binds[i]).attr('type')=="checkbox"){queryString+=$(binds[i]).attr("name")+'='+$('input[name='+$(binds[i]).attr("name")+']').fieldValue()}else queryString+=$(binds[i]).fieldSerialize();if(i!=binds.length-1)queryString+='&'};return queryString}})(jQuery);$.fn.ajaxContent.defaults={target:'#ajaxContent',type:'get',event:'click',loader:'true',loaderType:'text',loadingMsg:'Loading...',errorMsg:'An error occured durign the page requesting process!',currentClass:'selected',success:'',beforeSend:'',error:'',bind:'',debug:'false',extend:'false',filter:'',ex_target:'',ex_type:'get',ex_event:'click',ex_loader:'true',ex_loaderType:'text',ex_loadingMsg:'Loading...',ex_errorMsg:'An error occured durign the page requesting process!',ex_currentClass:'selected',ex_success:'',ex_beforeSend:'',ex_error:'',ex_bind:''};(function($){$.ifixpng=function(customPixel){$.ifixpng.pixel=customPixel};$.ifixpng.getPixel=function(){return $.ifixpng.pixel||'images/pixel.gif'};var hack={ltie7:$.browser.msie&&$.browser.version<7,filter:function(src){return"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='"+src+"')"}};$.fn.ifixpng=hack.ltie7?function(){return this.each(function(){var $$=$(this),base=$('base').attr('href');if(base)base=base.replace(/\/[^\/]+$/,'/');if($$.is('img')||$$.is('input')){if($$.attr('src'))if($$.attr('src').match(/.*\.png([?].*)?$/i)){var source=(base&&$$.attr('src').search(/^(\/|http:)/i))?base+$$.attr('src'):$$.attr('src');$$.css({filter:hack.filter(source),width:$$.width(),height:$$.height()}).attr({src:$.ifixpng.getPixel()}).positionFix()}}else{var image=$$.css('backgroundImage');if(image.match(/^url\(["']?(.*\.png([?].*)?)["']?\)$/i)){image=RegExp.$1;image=(base&&image.substring(0,1)!='/')?base+image:image;$$.css({backgroundImage:'none',filter:hack.filter(image)}).children().children().positionFix()}}})}:function(){return this};$.fn.iunfixpng=hack.ltie7?function(){return this.each(function(){var $$=$(this),src=$$.css('filter');if(src.match(/src=["']?(.*\.png([?].*)?)["']?/i)){src=RegExp.$1;if($$.is('img')||$$.is('input')){$$.attr({src:src}).css({filter:''})}else $$.css({filter:'',background:'url('+src+')'})}})}:function(){return this};$.fn.positionFix=function(){return this.each(function(){var $$=$(this),position=$$.css('position');if(position!='absolute'&&position!='relative')$$.css({position:'relative'})})}})(jQuery);(function($){$.extend($.fn,{livequery:function(type,fn,fn2){var self=this,q;if($.isFunction(type))fn2=fn,fn=type,type=undefined;$.each($.livequery.queries,function(i,query){if(self.selector==query.selector&&self.context==query.context&&type==query.type&&(!fn||fn.$lqguid==query.fn.$lqguid)&&(!fn2||fn2.$lqguid==query.fn2.$lqguid))return(q=query)&&false});q=q||new $.livequery(this.selector,this.context,type,fn,fn2);q.stopped=false;q.run();return this},expire:function(type,fn,fn2){var self=this;if($.isFunction(type))fn2=fn,fn=type,type=undefined;$.each($.livequery.queries,function(i,query){if(self.selector==query.selector&&self.context==query.context&&(!type||type==query.type)&&(!fn||fn.$lqguid==query.fn.$lqguid)&&(!fn2||fn2.$lqguid==query.fn2.$lqguid)&&!this.stopped)$.livequery.stop(query.id)});return this}});$.livequery=function(selector,context,type,fn,fn2){this.selector=selector;this.context=context||document;this.type=type;this.fn=fn;this.fn2=fn2;this.elements=[];this.stopped=false;this.id=$.livequery.queries.push(this)-1;fn.$lqguid=fn.$lqguid||$.livequery.guid++;if(fn2)fn2.$lqguid=fn2.$lqguid||$.livequery.guid++;return this};$.livequery.prototype={stop:function(){var query=this;if(this.type){this.elements.unbind(this.type,this.fn)}else if(this.fn2)this.elements.each(function(i,el){query.fn2.apply(el)});this.elements=[];this.stopped=true},run:function(){if(this.stopped)return;var query=this,oEls=this.elements,els=$(this.selector,this.context),nEls=els.not(oEls);this.elements=els;if(this.type){nEls.bind(this.type,this.fn);if(oEls.length>0)$.each(oEls,function(i,el){if($.inArray(el,els)<0)$.event.remove(el,query.type,query.fn)})}else{nEls.each(function(){query.fn.apply(this)});if(this.fn2&&oEls.length>0)$.each(oEls,function(i,el){if($.inArray(el,els)<0)query.fn2.apply(el)})}}};$.extend($.livequery,{guid:0,queries:[],queue:[],running:false,timeout:null,checkQueue:function(){if($.livequery.running&&$.livequery.queue.length){var length=$.livequery.queue.length;while(length--)$.livequery.queries[$.livequery.queue.shift()].run()}},pause:function(){$.livequery.running=false},play:function(){$.livequery.running=true;$.livequery.run()},registerPlugin:function(){$.each(arguments,function(i,n){if(!$.fn[n])return;var old=$.fn[n];$.fn[n]=function(){var r=old.apply(this,arguments);$.livequery.run();return r}})},run:function(id){if(id!=undefined){if($.inArray(id,$.livequery.queue)<0)$.livequery.queue.push(id)}else $.each($.livequery.queries,function(id){if($.inArray(id,$.livequery.queue)<0)$.livequery.queue.push(id)});if($.livequery.timeout)clearTimeout($.livequery.timeout);$.livequery.timeout=setTimeout($.livequery.checkQueue,20)},stop:function(id){if(id!=undefined){$.livequery.queries[id].stop()}else $.each($.livequery.queries,function(id){$.livequery.queries[id].stop()})}});$.livequery.registerPlugin('append','prepend','after','before','wrap','attr','removeAttr','addClass','removeClass','toggleClass','empty','remove');$(function(){$.livequery.play()});var init=$.prototype.init;$.prototype.init=function(a,c){var r=init.apply(this,arguments);if(a&&a.selector)r.context=a.context,r.selector=a.selector;if(typeof a=='string')r.context=c||document,r.selector=a;return r};$.prototype.init.prototype=$.prototype})(jQuery);(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)if(settings.newsLinks[currentItem].length>0){$(settings.newsList).empty().append('<li><a href="'+settings.newsLinks[currentItem]+'"></a></li>')}else $(settings.newsList).empty().append('<li></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);if(settings.newsLinks[currentItem].length>0){$(settings.newsList+' li a').text(tickerText+placeHolder)}else $(settings.newsList+' li').text(tickerText+placeHolder);currentLength++;setTimeout(function(){runTicker(settings);settings=null},settings.tickerRate)}else{if(settings.newsLinks[currentItem].length>0){$(settings.newsList+' li a').text(settings.newsItems[currentItem])}else $(settings.newsList+' li').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(),newsLinks=new Array(),newsItemCounter=0;$(settings.newsList+' li').hide();$(settings.newsList+' li').each(function(){if($(this).children('a').length){newsItems[newsItemCounter]=$(this).children('a').text();newsLinks[newsItemCounter]=$(this).children('a').attr('href')}else{newsItems[newsItemCounter]=$(this).text();newsLinks[newsItemCounter]=''};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);(function($){$.extend({tablesorter:new function(){var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:"us",decimal:'.',debug:false}
function benchmark(s,d){log(s+","+(new Date().getTime()-d.getTime())+"ms")};this.benchmark=benchmark
function log(s){if(typeof console!="undefined"&&typeof console.debug!="undefined"){console.log(s)}else alert(s)}
function buildParserCache(table,$headers){if(table.config.debug)var parsersDebug="";var rows=table.tBodies[0].rows;if(table.tBodies[0].rows[0]){var list=[],cells=rows[0].cells,l=cells.length;for(var i=0;i<l;i++){var p=false;if($.metadata&&($($headers[i]).metadata()&&$($headers[i]).metadata().sorter)){p=getParserById($($headers[i]).metadata().sorter)}else if((table.config.headers[i]&&table.config.headers[i].sorter))p=getParserById(table.config.headers[i].sorter);if(!p)p=detectParserForColumn(table,cells[i]);if(table.config.debug)parsersDebug+="column:"+i+" parser:"+p.id+"\n";list.push(p)}};if(table.config.debug)log(parsersDebug);return list}
function detectParserForColumn(table,node){var l=parsers.length;for(var i=1;i<l;i++)if(parsers[i].is($.trim(getElementText(table.config,node)),table,node))return parsers[i];return parsers[0]}
function getParserById(name){var l=parsers.length;for(var i=0;i<l;i++)if(parsers[i].id.toLowerCase()==name.toLowerCase())return parsers[i];return false}
function buildCache(table){if(table.config.debug)var cacheTime=new Date();var totalRows=(table.tBodies[0]&&table.tBodies[0].rows.length)||0,totalCells=(table.tBodies[0].rows[0]&&table.tBodies[0].rows[0].cells.length)||0,parsers=table.config.parsers,cache={row:[],normalized:[]};for(var i=0;i<totalRows;++i){var c=table.tBodies[0].rows[i],cols=[];cache.row.push($(c));for(var j=0;j<totalCells;++j)cols.push(parsers[j].format(getElementText(table.config,c.cells[j]),table,c.cells[j]));cols.push(i);cache.normalized.push(cols);cols=null};if(table.config.debug)benchmark("Building cache for "+totalRows+" rows:",cacheTime);return cache}
function getElementText(config,node){if(!node)return"";var t="";if(config.textExtraction=="simple"){if(node.childNodes[0]&&node.childNodes[0].hasChildNodes()){t=node.childNodes[0].innerHTML}else t=node.innerHTML}else if(typeof (config.textExtraction)=="function"){t=config.textExtraction(node)}else t=$(node).text();return t}
function appendToTable(table,cache){if(table.config.debug)var appendTime=new Date();var c=cache,r=c.row,n=c.normalized,totalRows=n.length,checkCell=(n[0].length-1),tableBody=$(table.tBodies[0]),rows=[];for(var i=0;i<totalRows;i++){rows.push(r[n[i][checkCell]]);if(!table.config.appender){var o=r[n[i][checkCell]],l=o.length;for(var j=0;j<l;j++)tableBody[0].appendChild(o[j])}};if(table.config.appender)table.config.appender(table,rows);rows=null;if(table.config.debug)benchmark("Rebuilt table:",appendTime);applyWidget(table);setTimeout(function(){$(table).trigger("sortEnd")},0)}
function buildHeaders(table){if(table.config.debug)var time=new Date();var meta=($.metadata)?true:false,tableHeadersRows=[];for(var i=0;i<table.tHead.rows.length;i++)tableHeadersRows[i]=0;$tableHeaders=$("thead th",table);$tableHeaders.each(function(index){this.count=0;this.column=index;this.order=formatSortingOrder(table.config.sortInitialOrder);if(checkHeaderMetadata(this)||checkHeaderOptions(table,index))this.sortDisabled=true;if(!this.sortDisabled)$(this).addClass(table.config.cssHeader);table.config.headerList[index]=this});if(table.config.debug){benchmark("Built headers:",time);log($tableHeaders)};return $tableHeaders}
function checkCellColSpan(table,rows,row){var arr=[],r=table.tHead.rows,c=r[row].cells;for(var i=0;i<c.length;i++){var cell=c[i];if(cell.colSpan>1){arr=arr.concat(checkCellColSpan(table,headerArr,row++))}else if(table.tHead.length==1||(cell.rowSpan>1||!r[row+1]))arr.push(cell)};return arr}
function checkHeaderMetadata(cell){if(($.metadata)&&($(cell).metadata().sorter===false))return true;return false}
function checkHeaderOptions(table,i){if((table.config.headers[i])&&(table.config.headers[i].sorter===false))return true;return false}
function applyWidget(table){var c=table.config.widgets,l=c.length;for(var i=0;i<l;i++)getWidgetById(c[i]).format(table)}
function getWidgetById(name){var l=widgets.length;for(var i=0;i<l;i++)if(widgets[i].id.toLowerCase()==name.toLowerCase())return widgets[i]}
function formatSortingOrder(v){if(typeof (v)!="Number"){i=(v.toLowerCase()=="desc")?1:0}else i=(v==(0||1))?v:0;return i}
function isValueInArray(v,a){var l=a.length;for(var i=0;i<l;i++)if(a[i][0]==v)return true;return false}
function setHeadersCss(table,$headers,list,css){$headers.removeClass(css[0]).removeClass(css[1]);var h=[];$headers.each(function(offset){if(!this.sortDisabled)h[this.column]=$(this)});var l=list.length;for(var i=0;i<l;i++)h[list[i][0]].addClass(css[list[i][1]])}
function fixColumnWidth(table,$headers){var c=table.config;if(c.widthFixed){var colgroup=$('<colgroup>');$("tr:first td",table.tBodies[0]).each(function(){colgroup.append($('<col>').css('width',$(this).width()))});$(table).prepend(colgroup)}}
function updateHeaderSortCount(table,sortList){var c=table.config,l=sortList.length;for(var i=0;i<l;i++){var s=sortList[i],o=c.headerList[s[0]];o.count=s[1];o.count++}}
function multisort(table,sortList,cache){if(table.config.debug)var sortTime=new Date();var dynamicExp="var sortWrapper = function(a,b) {",l=sortList.length;for(var i=0;i<l;i++){var c=sortList[i][0],order=sortList[i][1],s=(getCachedSortType(table.config.parsers,c)=="text")?((order==0)?"sortText":"sortTextDesc"):((order==0)?"sortNumeric":"sortNumericDesc"),e="e"+i;dynamicExp+="var "+e+" = "+s+"(a["+c+"],b["+c+"]); ";dynamicExp+="if("+e+") { return "+e+"; } ";dynamicExp+="else { "};var orgOrderCol=cache.normalized[0].length-1;dynamicExp+="return a["+orgOrderCol+"]-b["+orgOrderCol+"];";for(var i=0;i<l;i++)dynamicExp+="}; ";dynamicExp+="return 0; ";dynamicExp+="}; ";eval(dynamicExp);cache.normalized.sort(sortWrapper);if(table.config.debug)benchmark("Sorting on "+sortList.toString()+" and dir "+order+" time:",sortTime);return cache}
function sortText(a,b){return((a<b)?-1:((a>b)?1:0))}
function sortTextDesc(a,b){return((b<a)?-1:((b>a)?1:0))}
function sortNumeric(a,b){return a-b}
function sortNumericDesc(a,b){return b-a}
function getCachedSortType(parsers,i){return parsers[i].type};this.construct=function(settings){return this.each(function(){if(!this.tHead||!this.tBodies)return;var $this,$document,$headers,cache,config,shiftDown=0,sortOrder;this.config={};config=$.extend(this.config,$.tablesorter.defaults,settings);$this=$(this);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);$headers.click(function(e){$this.trigger("sortStart");var totalRows=($this[0].tBodies[0]&&$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&&totalRows>0){var $cell=$(this),i=this.column;this.order=this.count++%2;if(!e[config.sortMultiSortKey]){config.sortList=[];if(config.sortForce!=null){var a=config.sortForce;for(var j=0;j<a.length;j++)if(a[j][0]!=i)config.sortList.push(a[j])};config.sortList.push([i,this.order])}else if(isValueInArray(i,config.sortList)){for(var j=0;j<config.sortList.length;j++){var s=config.sortList[j],o=config.headerList[s[0]];if(s[0]==i){o.count=s[1];o.count++;s[1]=o.count%2}}}else config.sortList.push([i,this.order]);setTimeout(function(){setHeadersCss($this[0],$headers,config.sortList,sortCSS);appendToTable($this[0],multisort($this[0],config.sortList,cache))},1);return false}}).mousedown(function(){if(config.cancelSelection){this.onselectstart=function(){return false};return false}});$this.bind("update",function(){this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this)}).bind("sorton",function(e,list){$(this).trigger("sortStart");config.sortList=list;var sortList=config.sortList;updateHeaderSortCount(this,sortList);setHeadersCss(this,$headers,sortList,sortCSS);appendToTable(this,multisort(this,sortList,cache))}).bind("appendCache",function(){appendToTable(this,cache)}).bind("applyWidgetId",function(e,id){getWidgetById(id).format(this)}).bind("applyWidgets",function(){applyWidget(this)});if($.metadata&&($(this).metadata()&&$(this).metadata().sortlist))config.sortList=$(this).metadata().sortlist;if(config.sortList.length>0)$this.trigger("sorton",[config.sortList]);applyWidget(this)})};this.addParser=function(parser){var l=parsers.length,a=true;for(var i=0;i<l;i++)if(parsers[i].id.toLowerCase()==parser.id.toLowerCase())a=false;if(a)parsers.push(parser)};this.addWidget=function(widget){widgets.push(widget)};this.formatFloat=function(s){var i=parseFloat(s);return(isNaN(i))?0:i};this.formatInt=function(s){var i=parseInt(s);return(isNaN(i))?0:i};this.isDigit=function(s,config){var DECIMAL='\\'+config.decimal,exp='/(^[+]?0('+DECIMAL+'0+)?$)|(^([-+]?[1-9][0-9]*)$)|(^([-+]?((0?|[1-9][0-9]*)'+DECIMAL+'(0*[1-9][0-9]*)))$)|(^[-+]?[1-9]+[0-9]*'+DECIMAL+'0+$)/';return RegExp(exp).test($.trim(s))};this.clearTableBody=function(table){if($.browser.msie){function empty(){while(this.firstChild)this.removeChild(this.firstChild)};empty.apply(table.tBodies[0])}else table.tBodies[0].innerHTML=""}}()});$.fn.extend({tablesorter:$.tablesorter.construct});var ts=$.tablesorter;ts.addParser({id:"text",is:function(s){return true},format:function(s){return $.trim(s.toLowerCase())},type:"text"});ts.addParser({id:"digit",is:function(s,table){var c=table.config;return $.tablesorter.isDigit(s,c)},format:function(s){return $.tablesorter.formatFloat(s)},type:"numeric"});ts.addParser({id:"currency",is:function(s){return/^[£$€?.]/.test(s)},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/[^0-9.]/g),""))},type:"numeric"});ts.addParser({id:"ipAddress",is:function(s){return/^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(s)},format:function(s){var a=s.split("."),r="",l=a.length;for(var i=0;i<l;i++){var item=a[i];if(item.length==2){r+="0"+item}else r+=item};return $.tablesorter.formatFloat(r)},type:"numeric"});ts.addParser({id:"url",is:function(s){return/^(https?|ftp|file):\/\/$/.test(s)},format:function(s){return jQuery.trim(s.replace(new RegExp(/(https?|ftp|file):\/\//),''))},type:"text"});ts.addParser({id:"isoDate",is:function(s){return/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(s)},format:function(s){return $.tablesorter.formatFloat((s!="")?new Date(s.replace(new RegExp(/-/g),"/")).getTime():"0")},type:"numeric"});ts.addParser({id:"percent",is:function(s){return/\%$/.test($.trim(s))},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/%/g),""))},type:"numeric"});ts.addParser({id:"usLongDate",is:function(s){return s.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/))},format:function(s){return $.tablesorter.formatFloat(new Date(s).getTime())},type:"numeric"});ts.addParser({id:"shortDate",is:function(s){return/\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(s)},format:function(s,table){var c=table.config;s=s.replace(/\-/g,"/");if(c.dateFormat=="us"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$1/$2")}else if(c.dateFormat=="uk"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$2/$1")}else if(c.dateFormat=="dd/mm/yy"||c.dateFormat=="dd-mm-yy")s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/,"$1/$2/$3");return $.tablesorter.formatFloat(new Date(s).getTime())},type:"numeric"});ts.addParser({id:"time",is:function(s){return/^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(s)},format:function(s){return $.tablesorter.formatFloat(new Date("2000/01/01 "+s).getTime())},type:"numeric"});ts.addParser({id:"metadata",is:function(s){return false},format:function(s,table,cell){var c=table.config,p=(!c.parserMetadataName)?'sortValue':c.parserMetadataName;return $(cell).metadata()[p]},type:"numeric"});ts.addWidget({id:"zebra",format:function(table){if(table.config.debug)var time=new Date();$("tr:visible",table.tBodies[0]).filter(':even').removeClass(table.config.widgetZebra.css[1]).addClass(table.config.widgetZebra.css[0]).end().filter(':odd').removeClass(table.config.widgetZebra.css[0]).addClass(table.config.widgetZebra.css[1]);if(table.config.debug)$.tablesorter.benchmark("Applying Zebra widget",time)}})})(jQuery);(function($){var helper={},current,title,tID,IE=$.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),track=false;$.tooltip={blocked:false,defaults:{delay:200,fade:false,showURL:true,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){$.tooltip.blocked=!$.tooltip.blocked}};$.fn.extend({tooltip:function(settings){settings=$.extend({},$.tooltip.defaults,settings);createHelper(settings);return this.each(function(){$.data(this,"tooltip",settings);this.tOpacity=helper.parent.css("opacity");this.tooltipText=this.title;$(this).removeAttr("title");this.alt=""}).mouseover(save).mouseout(hide).click(hide)},fixPNG:IE?function(){return this.each(function(){var image=$(this).css('backgroundImage');if(image.match(/^url\(["']?(.*\.png)["']?\)$/i)){image=RegExp.$1;$(this).css({backgroundImage:'none',filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+image+"')"}).each(function(){var position=$(this).css('position');if(position!='absolute'&&position!='relative')$(this).css('position','relative')})}})}:function(){return this},unfixPNG:IE?function(){return this.each(function(){$(this).css({filter:'',backgroundImage:''})})}:function(){return this},hideWhenEmpty:function(){return this.each(function(){$(this)[$(this).html()?"show":"hide"]()})},url:function(){return this.attr('href')||this.attr('src')}})
function createHelper(settings){if(helper.parent)return;helper.parent=$('<div id="'+settings.id+'"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide();if($.fn.bgiframe)helper.parent.bgiframe();helper.title=$('h3',helper.parent);helper.body=$('div.body',helper.parent);helper.url=$('div.url',helper.parent)}
function settings(element){return $.data(element,"tooltip")}
function handle(event){if(settings(this).delay){tID=setTimeout(show,settings(this).delay)}else show();track=!!settings(this).track;$(document.body).bind('mousemove',update);update(event)}
function save(){if($.tooltip.blocked||this==current||(!this.tooltipText&&!settings(this).bodyHandler))return;current=this;title=this.tooltipText;if(settings(this).bodyHandler){helper.title.hide();var bodyContent=settings(this).bodyHandler.call(this);if(bodyContent.nodeType||bodyContent.jquery){helper.body.empty().append(bodyContent)}else helper.body.html(bodyContent);helper.body.show()}else if(settings(this).showBody){var parts=title.split(settings(this).showBody);helper.title.html(parts.shift()).show();helper.body.empty();for(var i=0,part;(part=parts[i]);i++){if(i>0)helper.body.append("<br/>");helper.body.append(part)};helper.body.hideWhenEmpty()}else{helper.title.html(title).show();helper.body.hide()};if(settings(this).showURL&&$(this).url()){helper.url.html($(this).url().replace('http://','')).show()}else helper.url.hide();helper.parent.addClass(settings(this).extraClass);if(settings(this).fixPNG)helper.parent.fixPNG();handle.apply(this,arguments)}
function show(){tID=null;if((!IE||!$.fn.bgiframe)&&settings(current).fade){if(helper.parent.is(":animated")){helper.parent.stop().show().fadeTo(settings(current).fade,current.tOpacity)}else helper.parent.is(':visible')?helper.parent.fadeTo(settings(current).fade,current.tOpacity):helper.parent.fadeIn(settings(current).fade)}else helper.parent.show();update()}
function update(event){if($.tooltip.blocked)return;if(event&&event.target.tagName=="OPTION")return;if(!track&&helper.parent.is(":visible"))$(document.body).unbind('mousemove',update);if(current==null){$(document.body).unbind('mousemove',update);return};helper.parent.removeClass("viewport-right").removeClass("viewport-bottom");var left=helper.parent[0].offsetLeft,top=helper.parent[0].offsetTop;if(event){left=event.pageX+settings(current).left;top=event.pageY+settings(current).top;var right='auto';if(settings(current).positionLeft){right=$(window).width()-left;left='auto'};helper.parent.css({left:left,right:right,top:top})};var v=viewport(),h=helper.parent[0];if(v.x+v.cx<h.offsetLeft+h.offsetWidth){left-=h.offsetWidth+20+settings(current).left;helper.parent.css({left:left+'px'}).addClass("viewport-right")};if(v.y+v.cy<h.offsetTop+h.offsetHeight){top-=h.offsetHeight+20+settings(current).top;helper.parent.css({top:top+'px'}).addClass("viewport-bottom")}}
function viewport(){return{x:$(window).scrollLeft(),y:$(window).scrollTop(),cx:$(window).width(),cy:$(window).height()}}
function hide(event){if($.tooltip.blocked)return;if(tID)clearTimeout(tID);current=null;var tsettings=settings(this)
function complete(){helper.parent.removeClass(tsettings.extraClass).hide().css("opacity","")};if((!IE||!$.fn.bgiframe)&&tsettings.fade){if(helper.parent.is(':animated')){helper.parent.stop().fadeTo(tsettings.fade,0,complete)}else helper.parent.stop().fadeOut(tsettings.fade,complete)}else complete();if(settings(this).fixPNG)helper.parent.unfixPNG()}})(jQuery);$(document).ready(JT_init)
function JT_init(){$("a.jTip").hover(function(){JT_show(this.href,this.id,this.name)},function(){$('#JT').remove()}).click(function(){return false})}
function JT_show(url,linkId,title){if(title==false)title="&nbsp;";var de=document.documentElement,w=self.innerWidth||(de&&de.clientWidth)||document.body.clientWidth,hasArea=w-getAbsoluteLeft(linkId),clickElementy=getAbsoluteTop(linkId)-3,queryString=url.replace(/^[^\?]+\??/,''),params=parseQuery(queryString);if(params.width===undefined)params.width=250;if(params.link!==undefined){$('#'+linkId).bind('click',function(){window.location=params.link});$('#'+linkId).css('cursor','pointer')};if(hasArea>((params.width*1)+75)){$("body").append("<div id='JT' style='width:"+params.width*1+"px'><div id='JT_arrow_left'></div><div id='JT_close_left'>"+title+"</div><div id='JT_copy'><div class='JT_loader'><div></div></div>");var arrowOffset=getElementWidth(linkId)+11,clickElementx=getAbsoluteLeft(linkId)+arrowOffset}else{$("body").append("<div id='JT' style='width:"+params.width*1+"px'><div id='JT_arrow_right' style='left:"+((params.width*1)+1)+"px'></div><div id='JT_close_right'>"+title+"</div><div id='JT_copy'><div class='JT_loader'><div></div></div>");var clickElementx=getAbsoluteLeft(linkId)-((params.width*1)+15)};$('#JT').css({left:clickElementx+"px",top:clickElementy+"px"});$('#JT').show();$('#JT_copy').load(url)}
function getElementWidth(objectId){x=document.getElementById(objectId);return x.offsetWidth}
function getAbsoluteLeft(objectId){o=document.getElementById(objectId);oLeft=o.offsetLeft;while(o.offsetParent!=null){oParent=o.offsetParent;oLeft+=oParent.offsetLeft;o=oParent};return oLeft}
function getAbsoluteTop(objectId){o=document.getElementById(objectId);oTop=o.offsetTop;while(o.offsetParent!=null){oParent=o.offsetParent;oTop+=oParent.offsetTop;o=oParent};return oTop}
function parseQuery(query){var Params=new Object();if(!query)return Params;var Pairs=query.split(/[;&]/);for(var i=0;i<Pairs.length;i++){var KeyVal=Pairs[i].split('=');if(!KeyVal||KeyVal.length!=2)continue;var key=unescape(KeyVal[0]),val=unescape(KeyVal[1]);val=val.replace(/\+/g,' ');Params[key]=val};return Params}
function blockEvents(evt){if(evt.target){evt.preventDefault()}else evt.returnValue=false};(function($){$.ui=$.ui||{};$.fn.tabs=function(initial,options){if(initial&&initial.constructor==Object){options=initial;initial=null};options=options||{};initial=initial&&initial.constructor==Number&&--initial||0;return this.each(function(){new $.ui.tabs(this,$.extend(options,{initial:initial}))})};$.each(['Add','Remove','Enable','Disable','Click','Load','Href'],function(i,method){$.fn['tabs'+method]=function(){var args=arguments;return this.each(function(){var instance=$.ui.tabs.getInstance(this);instance[method.toLowerCase()].apply(instance,args)})}});$.fn.tabsSelected=function(){var selected=-1;if(this[0]){var instance=$.ui.tabs.getInstance(this[0]),$lis=$('li',this);selected=$lis.index($lis.filter('.'+instance.options.selectedClass)[0])};return selected>=0?++selected:-1};$.ui.tabs=function(el,options){this.source=el;this.options=$.extend({initial:0,event:'click',disabled:[],cookie:null,unselected:false,unselect:options.unselected?true:false,spinner:'Loading&#8230;',cache:false,idPrefix:'ui-tabs-',ajaxOptions:{},fxSpeed:'normal',add:function(){},remove:function(){},enable:function(){},disable:function(){},click:function(){},hide:function(){},show:function(){},load:function(){},tabTemplate:'<li><a href="#{href}"><span>#{text}</span></a></li>',panelTemplate:'<div></div>',navClass:'ui-tabs-nav',selectedClass:'ui-tabs-selected',unselectClass:'ui-tabs-unselect',disabledClass:'ui-tabs-disabled',panelClass:'ui-tabs-panel',hideClass:'ui-tabs-hide',loadingClass:'ui-tabs-loading'},options);this.options.event+='.ui-tabs';this.options.cookie=$.cookie&&$.cookie.constructor==Function&&this.options.cookie;$.data(el,$.ui.tabs.INSTANCE_KEY,this);this.tabify(true)};$.ui.tabs.INSTANCE_KEY='ui_tabs_instance';$.ui.tabs.getInstance=function(el){return $.data(el,$.ui.tabs.INSTANCE_KEY)};$.extend($.ui.tabs.prototype,{tabId:function(a){return a.title?a.title.replace(/\s/g,'_'):this.options.idPrefix+$.data(a)},tabify:function(init){this.$tabs=$('a:first-child',this.source);this.$panels=$([]);var self=this,o=this.options;this.$tabs.each(function(i,a){if(a.hash&&a.hash.replace('#','')){self.$panels=self.$panels.add(a.hash)}else if($(a).attr('href')!='#'){$.data(a,'href',a.href);var id=self.tabId(a);a.href='#'+id;self.$panels=self.$panels.add($('#'+id)[0]||$(o.panelTemplate).attr('id',id).addClass(o.panelClass).insertAfter(self.$panels[i-1]||self.source))}else o.disabled.push(i+1)});if(init){$(this.source).hasClass(o.navClass)||$(this.source).addClass(o.navClass);this.$panels.each(function(){var $this=$(this);$this.hasClass(o.panelClass)||$this.addClass(o.panelClass)});for(var i=0,position;position=o.disabled[i];i++)this.disable(position);this.$tabs.each(function(i,a){if(location.hash){if(a.hash==location.hash){o.initial=i;if($.browser.msie||$.browser.opera){var $toShow=$(location.hash),toShowId=$toShow.attr('id');$toShow.attr('id','');setTimeout(function(){$toShow.attr('id',toShowId)},500)};scrollTo(0,0);return false}}else if(o.cookie){o.initial=parseInt($.cookie($.ui.tabs.INSTANCE_KEY+$.data(self.source)))||0;return false}else if($(a).parent('li').hasClass(o.selectedClass)){o.initial=i;return false}});var n=this.$tabs.length;while(this.$tabs.eq(o.initial).parent('li').hasClass(o.disabledClass)&&n){o.initial=++o.initial<this.$tabs.length?o.initial:0;n--};if(!n)o.unselected=o.unselect=true;var $lis=this.$tabs.parent('li');this.$panels.addClass(o.hideClass);$lis.removeClass(o.selectedClass);if(!o.unselected){this.$panels.eq(o.initial).show().removeClass(o.hideClass);$lis.eq(o.initial).addClass(o.selectedClass)};var href=!o.unselected&&$.data(this.$tabs[o.initial],'href');if(href)this.load(o.initial+1,href)};var showAnim={},showSpeed=o.fxShowSpeed||o.fxSpeed,hideAnim={},hideSpeed=o.fxHideSpeed||o.fxSpeed;if(o.fxSlide||o.fxFade){if(o.fxSlide){showAnim.height='show';hideAnim.height='hide'};if(o.fxFade){showAnim.opacity='show';hideAnim.opacity='hide'}}else{if(o.fxShow){showAnim=o.fxShow}else{showAnim['min-width']=0;showSpeed=1};if(o.fxHide){hideAnim=o.fxHide}else{hideAnim['min-width']=0;hideSpeed=1}};var resetCSS={display:'',overflow:'',height:''};if(!$.browser.msie)resetCSS.opacity=''
function hideTab(clicked,$hide,$show){$hide.animate(hideAnim,hideSpeed,function(){$hide.addClass(o.hideClass).css(resetCSS);if($.browser.msie&&hideAnim.opacity)$hide[0].style.filter='';o.hide(clicked,$hide[0],$show&&$show[0]||null);if($show)showTab(clicked,$show,$hide)})}
function showTab(clicked,$show,$hide){if(!(o.fxSlide||o.fxFade||o.fxShow))$show.css('display','block');$show.animate(showAnim,showSpeed,function(){$show.removeClass(o.hideClass).css(resetCSS);if($.browser.msie&&showAnim.opacity)$show[0].style.filter='';o.show(clicked,$show[0],$hide&&$hide[0]||null)})}
function switchTab(clicked,$hide,$show){$(clicked).parents('li:eq(0)').addClass(o.selectedClass).siblings().removeClass(o.selectedClass);hideTab(clicked,$hide,$show)};this.$tabs.unbind(o.event).bind(o.event,function(){var $li=$(this).parent('li'),$hide=self.$panels.filter(':visible'),$show=$(this.hash);if(($li.hasClass(o.selectedClass)&&!o.unselect)||$li.hasClass(o.disabledClass)||o.click(this,$show[0],$hide[0])===false){this.blur();return false};if(o.cookie)$.cookie($.ui.tabs.INSTANCE_KEY+$.data(self.source),self.$tabs.index(this),o.cookie);if(o.unselect)if($li.hasClass(o.selectedClass)){$li.removeClass(o.selectedClass);self.$panels.stop();hideTab(this,$hide);this.blur();return false}else if(!$hide.length){self.$panels.stop();if($.data(this,'href')){var a=this;self.load(self.$tabs.index(this)+1,$.data(this,'href'),function(){$li.addClass(o.selectedClass).addClass(o.unselectClass);showTab(a,$show)})}else{$li.addClass(o.selectedClass).addClass(o.unselectClass);showTab(this,$show)};this.blur();return false};self.$panels.stop();if($show.length){if($.data(this,'href')){var a=this;self.load(self.$tabs.index(this)+1,$.data(this,'href'),function(){switchTab(a,$hide,$show)})}else switchTab(this,$hide,$show)}else throw 'jQuery UI Tabs: Mismatching fragment identifier.';this.blur();return false})},add:function(url,text,position){if(url&&text){position=position||this.$tabs.length;var o=this.options,$li=$(o.tabTemplate.replace(/#\{href\}/,url).replace(/#\{text\}/,text)),id=url.indexOf('#')==0?url.replace('#',''):this.tabId($('a:first-child',$li)[0]),$panel=$('#'+id);$panel=$panel.length&&$panel||$(o.panelTemplate).attr('id',id).addClass(o.panelClass).addClass(o.hideClass);if(position>=this.$tabs.length){$li.appendTo(this.source);$panel.appendTo(this.source.parentNode)}else{$li.insertBefore(this.$tabs.eq(position-1).parent('li'));$panel.insertBefore(this.$panels[position-1])};this.tabify();if(this.$tabs.length==1){$li.addClass(o.selectedClass);$panel.removeClass(o.hideClass);var href=$.data(this.$tabs[0],'href');if(href)this.load(position+1,href)};o.add(this.$tabs[position],this.$panels[position])}else throw 'jQuery UI Tabs: Not enough arguments to add tab.'},remove:function(position){if(position&&position.constructor==Number){var o=this.options,$li=this.$tabs.eq(position-1).parent('li').remove(),$panel=this.$panels.eq(position-1).remove();if($li.hasClass(o.selectedClass)&&this.$tabs.length>1)this.click(position+(position<this.$tabs.length?1:-1));this.tabify();o.remove($li.end()[0],$panel[0])}},enable:function(position){var o=this.options,$li=this.$tabs.eq(position-1).parent('li');$li.removeClass(o.disabledClass);if($.browser.safari){$li.css('display','inline-block');setTimeout(function(){$li.css('display','block')},0)};o.enable(this.$tabs[position-1],this.$panels[position-1])},disable:function(position){var o=this.options;this.$tabs.eq(position-1).parent('li').addClass(o.disabledClass);o.disable(this.$tabs[position-1],this.$panels[position-1])},click:function(position){this.$tabs.eq(position-1).trigger(this.options.event)},load:function(position,url,callback){var self=this,o=this.options,$a=this.$tabs.eq(position-1),a=$a[0],$span=$('span',a);if(url&&url.constructor==Function){callback=url;url=null};if(url){$.data(a,'href',url)}else url=$.data(a,'href');if(o.spinner){$.data(a,'title',$span.html());$span.html('<em>'+o.spinner+'</em>')};var finish=function(){self.$tabs.filter('.'+o.loadingClass).each(function(){$(this).removeClass(o.loadingClass);if(o.spinner)$('span',this).html($.data(this,'title'))});self.xhr=null},ajaxOptions=$.extend(o.ajaxOptions,{url:url,success:function(r){$(a.hash).html(r);finish();if(callback&&callback.constructor==Function)callback();if(o.cache)$.removeData(a,'href');o.load(self.$tabs[position-1],self.$panels[position-1])}});if(this.xhr){this.xhr.abort();finish()};$a.addClass(o.loadingClass);setTimeout(function(){self.xhr=$.ajax(ajaxOptions)},0)},href:function(position,href){$.data(this.$tabs.eq(position-1)[0],'href',href)}})})(jQuery);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}('(5($){$.19={P:\'1.2\'};$.u([\'j\',\'w\'],5(i,d){$.q[\'O\'+d]=5(){p(!3[0])6;g a=d==\'j\'?\'s\':\'m\',e=d==\'j\'?\'D\':\'C\';6 3.B(\':y\')?3[0][\'L\'+d]:4(3,d.x())+4(3,\'n\'+a)+4(3,\'n\'+e)};$.q[\'I\'+d]=5(b){p(!3[0])6;g c=d==\'j\'?\'s\':\'m\',e=d==\'j\'?\'D\':\'C\';b=$.F({t:Z},b||{});g a=3.B(\':y\')?3[0][\'8\'+d]:4(3,d.x())+4(3,\'E\'+c+\'w\')+4(3,\'E\'+e+\'w\')+4(3,\'n\'+c)+4(3,\'n\'+e);6 a+(b.t?(4(3,\'t\'+c)+4(3,\'t\'+e)):0)}});$.u([\'m\',\'s\'],5(i,b){$.q[\'l\'+b]=5(a){p(!3[0])6;6 a!=W?3.u(5(){3==h||3==r?h.V(b==\'m\'?a:$(h)[\'U\'](),b==\'s\'?a:$(h)[\'T\']()):3[\'l\'+b]=a}):3[0]==h||3[0]==r?S[(b==\'m\'?\'R\':\'Q\')]||$.N&&r.M[\'l\'+b]||r.A[\'l\'+b]:3[0][\'l\'+b]}});$.q.F({z:5(){g a=0,f=0,o=3[0],8,9,7,v;p(o){7=3.7();8=3.8();9=7.8();8.f-=4(o,\'K\');8.k-=4(o,\'J\');9.f+=4(7,\'H\');9.k+=4(7,\'Y\');v={f:8.f-9.f,k:8.k-9.k}}6 v},7:5(){g a=3[0].7;G(a&&(!/^A|10$/i.16(a.15)&&$.14(a,\'z\')==\'13\'))a=a.7;6 $(a)}});5 4(a,b){6 12($.11(a.17?a[0]:a,b,18))||0}})(X);',62,72,'|||this|num|function|return|offsetParent|offset|parentOffset|||||borr|top|var|window||Height|left|scroll|Left|padding|elem|if|fn|document|Top|margin|each|results|Width|toLowerCase|visible|position|body|is|Right|Bottom|border|extend|while|borderTopWidth|outer|marginLeft|marginTop|client|documentElement|boxModel|inner|version|pageYOffset|pageXOffset|self|scrollTop|scrollLeft|scrollTo|undefined|jQuery|borderLeftWidth|false|html|curCSS|parseInt|static|css|tagName|test|jquery|true|dimensions'.split('|'),0,{}));if(typeof deconcept=="undefined")var deconcept=new Object();if(typeof deconcept.util=="undefined")deconcept.util=new Object();if(typeof deconcept.SWFObjectUtil=="undefined")deconcept.SWFObjectUtil=new Object();deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById)return;this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1)this.setAttribute("swf",_1);if(id)this.setAttribute("id",id);if(w)this.setAttribute("width",w);if(h)this.setAttribute("height",h);if(_5)this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7)deconcept.SWFObject.doPrepUnload=true;if(c)this.addParam("bgcolor",c);var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9)this.setAttribute("redirectUrl",_9)};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true)},setAttribute:function(_e,_f){this.attributes[_e]=_f},getAttribute:function(_10){return this.attributes[_10]},addParam:function(_11,_12){this.params[_11]=_12},getParams:function(){return this.params},addVariable:function(_13,_14){this.variables[_13]=_14},getVariable:function(_15){return this.variables[_15]},getVariables:function(){return this.variables},getVariablePairs:function(){var _16=new Array(),key,_18=this.getVariables();for(key in _18)_16[_16.length]=key+"="+_18[key];return _16},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)};_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a)_19+=[key]+"=\""+_1a[key]+"\" ";var _1c=this.getVariablePairs().join("&");if(_1c.length>0)_19+="flashvars=\""+_1c+"\"";_19+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)};_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d)_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";var _1f=this.getVariablePairs().join("&");if(_1f.length>0)_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";_19+="</object>"};return _19},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}};if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true}else if(this.getAttribute("redirectUrl")!="")document.location.replace(this.getAttribute("redirectUrl"));return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description)_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}else if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1,_26=3;while(axo)try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0])}catch(e){axo=null}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always"}catch(e){if(_23.major==6)return _23};try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}};if(axo!=null)_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","))};return _23};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major)return false;if(this.major>fv.major)return true;if(this.minor<fv.minor)return false;if(this.minor>fv.minor)return true;if(this.rev<fv.rev)return false;return true};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null)return q;if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++)if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b)return _2d[i].substring((_2d[i].indexOf("=")+1))};return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i])if(typeof _2f[i][x]=="function")_2f[i][x]=function(){}}};if(deconcept.SWFObject.doPrepUnload)if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true};if(!document.getElementById&&document.all)document.getElementById=function(id){return document.all[id]};var getQueryParamValue=deconcept.util.getRequestParameter,FlashObject=deconcept.SWFObject,SWFObject=deconcept.SWFObject
function validateFields(_1,_2){for(var i=0;i<_2.length;i++){var _4=_2[i].split(","),_5=true;while(_4[0].match("^if:")){var _6=_4[0];_6=_6.replace("if:","");var _7="equal",_8=new Array();if(_6.search("!=")!=-1){_8=_6.split("!=");_7="not_equal"}else _8=_6.split("=");var _9=_8[0],_a=_8[1],_b="";if(_1[_9].type==undefined){for(var j=0;j<_1[_9].length;j++)if(_1[_9][j].checked)_b=_1[_9][j].value}else if(_1[_9].type=="checkbox"){if(_1[_9].checked)_b=_1[_8[0]].value}else _b=_1[_8[0]].value;if(_7=="equal"&&_b!=_a){_5=false;break}else if(_7=="not_equal"&&_b==_a){_5=false;break}else _4.shift()};if(!_5)continue;var _d=_4[0],_e=_4[1];if(_4.length==6){var _f=_4[2],_10=_4[3],_11=_4[4],_12=_4[5]}else if(_4.length==5){var _13=_4[2],_14=_4[3],_15=_4[4]}else if(_4.length==4){var _16=_4[2],_17=_4[3]}else var _18=_4[2];if(_d.match("^length")){var _19=_d;_d="length"};if(_d.match("^range")){var _1a=_d;_d="range"};switch(_d){case"required":if(_1[_e].type==undefined){var _1b=false;for(var j=0;j<_1[_e].length;j++)if(_1[_e][j].checked)_1b=true;if(!_1b){alertMessage(_1[_e],_18);return false}}else if(_1[_e].type=="select-multiple"){var _1d=false;for(k=0;k<_1[_e].length;k++)if(_1[_e][k].selected)_1d=true;if(!_1d||_1[_e].length==0){alertMessage(_1[_e],_18);return false}}else if(_1[_e].type=="checkbox"){if(!_1[_e].checked){alertMessage(_1[_e],_18);return false}}else if(!_1[_e].value){alertMessage(_1[_e],_18);return false};break;case"digits_only":if(_1[_e].value&&_1[_e].value.match(/\D/)){alertMessage(_1[_e],_18);return false};break;case"letters_only":if(_1[_e].value&&_1[_e].value.match(/[^a-zA-Z]/)){alertMessage(_1[_e],_18);return false};break;case"is_alpha":if(_1[_e].value&&_1[_e].value.match(/\W/)){alertMessage(_1[_e],_18);return false};break;case"custom_alpha":var _1e={L:"[A-Z]",V:"[AEIOU]",l:"[a-z]",v:"[aeiou]",D:"[a-zA-Z]",F:"[aeiouAEIOU]",C:"[BCDFGHJKLMNPQRSTVWXYZ]",x:"[0-9]",c:"[bcdfghjklmnpqrstvwxyz]",X:"[1-9]",E:"[bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ]"},_1f="";for(j=0;j<_16.length;j++)if(_1e[_16.charAt(j)]){_1f+=_1e[_16.charAt(j)]}else _1f+=_16.charAt(j);var _20=new RegExp(_1f);if(_1[_e].value&&_20.exec(_1[_e].value)==null){alertMessage(_1[_e],_18);return false};break;case"reg_exp":var _21=_16;if(_4.length==5){var _22=new RegExp(_21,_14)}else var _23=new RegExp(_21);if(_1[_e].value&&_23.exec(_1[_e].value)==null){alertMessage(_1[_e],_18);return false};break;case"length":comparison_rule="";rule_string="";if(_19.match(/length=/)){comparison_rule="equal";rule_string=_19.replace("length=","")}else if(_19.match(/length>=/)){comparison_rule="greater_than_or_equal";rule_string=_19.replace("length>=","")}else if(_19.match(/length>/)){comparison_rule="greater_than";rule_string=_19.replace("length>","")}else if(_19.match(/length<=/)){comparison_rule="less_than_or_equal";rule_string=_19.replace("length<=","")}else if(_19.match(/length</)){comparison_rule="less_than";rule_string=_19.replace("length<","")};switch(comparison_rule){case"greater_than_or_equal":if(!(_1[_e].value.length>=parseInt(rule_string))){alertMessage(_1[_e],_18);return false};break;case"greater_than":if(!(_1[_e].value.length>parseInt(rule_string))){alertMessage(_1[_e],_18);return false};break;case"less_than_or_equal":if(!(_1[_e].value.length<=parseInt(rule_string))){alertMessage(_1[_e],_18);return false};break;case"less_than":if(!(_1[_e].value.length<parseInt(rule_string))){alertMessage(_1[_e],_18);return false};break;case"equal":var _24=rule_string.match(/[^_]+/),_25=_24[0].split("-");if(_25.length==2){if(_1[_e].value.length<_25[0]||_1[_e].value.length>_25[1]){alertMessage(_1[_e],_18);return false}}else if(_1[_e].value.length!=_25[0]){alertMessage(_1[_e],_18);return false};break};break;case"valid_email":if(_1[_e].value&&!isValidEmail(_1[_e].value)){alertMessage(_1[_e],_18);return false};break;case"valid_date":var _26=false;if(_11=="later_date"){_26=true}else if(_11=="any_date")_26=false;if(!isValidDate(_1[_e].value,_1[_16].value,_1[_14].value,_26)){alertMessage(_1[_e],_18);return false};break;case"same_as":if(_1[_e].value!=_1[_16].value){alertMessage(_1[_e],_18);return false};break;case"range":comparison_rule="";rule_string="";if(_1a.match(/range=/)){comparison_rule="equal";rule_string=_1a.replace("range=","")}else if(_1a.match(/range>=/)){comparison_rule="greater_than_or_equal";rule_string=_1a.replace("range>=","")}else if(_1a.match(/range>/)){comparison_rule="greater_than";rule_string=_1a.replace("range>","")}else if(_1a.match(/range<=/)){comparison_rule="less_than_or_equal";rule_string=_1a.replace("range<=","")}else if(_1a.match(/range</)){comparison_rule="less_than";rule_string=_1a.replace("range<","")};switch(comparison_rule){case"greater_than_or_equal":if(!(_1[_e].value>=Number(rule_string))){alertMessage(_1[_e],_18);return false};break;case"greater_than":if(!(_1[_e].value>Number(rule_string))){alertMessage(_1[_e],_18);return false};break;case"less_than_or_equal":if(!(_1[_e].value<=Number(rule_string))){alertMessage(_1[_e],_18);return false};break;case"less_than":if(!(_1[_e].value<Number(rule_string))){alertMessage(_1[_e],_18);return false};break;case"equal":var _27=rule_string.split("-");if((_1[_e].value<Number(_27[0]))||(_1[_e].value>Number(_27[1]))){alertMessage(_1[_e],_18);return false};break};break;case"function":custom_function=_e;if(!(eval(custom_function+"()")))return false;break;default:alert("Unknown requirement flag in validateFields(): "+_d);return false}};return true}
function alertMessage(obj,_29){var _2a="#F2F9FF";alert(_29);if(obj.type==undefined){obj[0].focus()}else{obj.style.background=_2a;obj.focus()};return false}
function isValidEmail(str){str=str.replace(/^\s*/,"");str=str.replace(/\s*$/,"");var at="@",dot=".",lat=str.indexOf(at),_2f=str.length,_30=str.indexOf(dot);if(str.indexOf(at)==-1)return false;if(str.indexOf(at)==-1||str.indexOf(at)==0||str.indexOf(at)==_2f)return false;if(str.indexOf(dot)==-1||str.indexOf(dot)==0||str.indexOf(dot)==_2f)return false;if(str.indexOf(at,(lat+1))!=-1)return false;if(str.substring(lat-1,lat)==dot||str.substring(lat+1,lat+2)==dot)return false;if(str.indexOf(dot,(lat+2))==-1)return false;if(str.indexOf(" ")!=-1)return false;return true}
function isEmpty(str){return((str==null)||(str.length==0))}
function isWhitespace(s){var i;if(isEmpty(s))return true;for(var i=0;i<s.length;i++){var c=s.charAt(i);if(whitespace.indexOf(c)==-1)return false};return true}
function isValidDate(_36,day,_38,_39){if(_38%4==0){var _3a=new Array(31,29,31,30,31,30,31,31,30,31,30,31)}else var _3b=new Array(31,28,31,30,31,30,31,31,30,31,30,31);if(!_36||!day||!_38)return false;if(1>_36||_36>12)return false;if(_38<0)return false;if(1>day||day>_3b[_36-1])return false;if(_39){var _3c=new Date(),_3d=_3c.getMonth()+1,_3e=_3c.getDate(),_3f=_3c.getFullYear();if(String(_3d).length==1)_3d="0"+_3d;if(String(_3e).length==1)_3e="0"+_3e;currDate=String(_3f)+String(_3d)+String(_3e);if(String(_36).length==1)_36="0"+_36;if(String(day).length==1)day="0"+day;incomingDate=String(_38)+String(_36)+String(day);if(Number(currDate)>Number(incomingDate))return false};return true}
