
/* jquery.tablesorter.min.js */

/* 1 */ 
/* 2 */ (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]];var 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;var 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];var order=sortList[i][1];var s=(getCachedSortType(table.config.parsers,c)=="text")?((order==0)?"sortText":"sortTextDesc"):((order==0)?"sortNumeric":"sortNumericDesc");var 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);var 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;var 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);
;
/* jquery.tablesorter.pager.js */

/* 1   */ (function($) {
/* 2   */ 	$.extend({
/* 3   */ 		tablesorterPager: new function() {
/* 4   */ 			
/* 5   */ 			function updatePageDisplay(c) {
/* 6   */ 				var s = $(c.cssPageDisplay,c.container).val((c.page+1) + c.seperator + c.totalPages);	
/* 7   */ 			}
/* 8   */ 			
/* 9   */ 			function setPageSize(table,size) {
/* 10  */ 				var c = table.config;
/* 11  */ 				c.size = size;
/* 12  */ 				c.totalPages = Math.ceil(c.totalRows / c.size);
/* 13  */ 				c.pagerPositionSet = false;
/* 14  */ 				moveToPage(table);
/* 15  */ 				fixPosition(table);
/* 16  */ 			}
/* 17  */ 			
/* 18  */ 			function fixPosition(table) {
/* 19  */ 				var c = table.config;
/* 20  */ 				if(!c.pagerPositionSet && c.positionFixed) {
/* 21  */ 					var c = table.config, o = $(table);
/* 22  */ 					if(o.offset) {
/* 23  */ 						c.container.css({
/* 24  */ 
/* 25  */ 						});
/* 26  */ 					}
/* 27  */ 					c.pagerPositionSet = true;
/* 28  */ 				}
/* 29  */ 			}
/* 30  */ 			
/* 31  */ 			function moveToFirstPage(table) {
/* 32  */ 				var c = table.config;
/* 33  */ 				c.page = 0;
/* 34  */ 				moveToPage(table);
/* 35  */ 			}
/* 36  */ 			
/* 37  */ 			function moveToLastPage(table) {
/* 38  */ 				var c = table.config;
/* 39  */ 				c.page = (c.totalPages-1);
/* 40  */ 				moveToPage(table);
/* 41  */ 			}
/* 42  */ 			
/* 43  */ 			function moveToNextPage(table) {
/* 44  */ 				var c = table.config;
/* 45  */ 				c.page++;
/* 46  */ 				if(c.page >= (c.totalPages-1)) {
/* 47  */ 					c.page = (c.totalPages-1);
/* 48  */ 				}
/* 49  */ 				moveToPage(table);
/* 50  */ 			}

/* jquery.tablesorter.pager.js */

/* 51  */ 			
/* 52  */ 			function moveToPrevPage(table) {
/* 53  */ 				var c = table.config;
/* 54  */ 				c.page--;
/* 55  */ 				if(c.page <= 0) {
/* 56  */ 					c.page = 0;
/* 57  */ 				}
/* 58  */ 				moveToPage(table);
/* 59  */ 			}
/* 60  */ 						
/* 61  */ 			
/* 62  */ 			function moveToPage(table) {
/* 63  */ 				var c = table.config;
/* 64  */ 				if(c.page < 0 || c.page > (c.totalPages-1)) {
/* 65  */ 					c.page = 0;
/* 66  */ 				}
/* 67  */ 				
/* 68  */ 				renderTable(table,c.rowsCopy);
/* 69  */ 			}
/* 70  */ 			
/* 71  */ 			function renderTable(table,rows) {
/* 72  */ 				
/* 73  */ 				var c = table.config;
/* 74  */ 				var l = rows.length;
/* 75  */ 				var s = (c.page * c.size);
/* 76  */ 				var e = (s + c.size);
/* 77  */ 				if(e > rows.length ) {
/* 78  */ 					e = rows.length;
/* 79  */ 				}
/* 80  */ 				
/* 81  */ 				
/* 82  */ 				var tableBody = $(table.tBodies[0]);
/* 83  */ 				
/* 84  */ 				// clear the table body
/* 85  */ 				
/* 86  */ 				$.tablesorter.clearTableBody(table);
/* 87  */ 				
/* 88  */ 				for(var i = s; i < e; i++) {
/* 89  */ 					
/* 90  */ 					//tableBody.append(rows[i]);
/* 91  */ 					
/* 92  */ 					var o = rows[i];
/* 93  */ 					var l = o.length;
/* 94  */ 					for(var j=0; j < l; j++) {
/* 95  */ 						
/* 96  */ 						tableBody[0].appendChild(o[j]);
/* 97  */ 
/* 98  */ 					}
/* 99  */ 				}
/* 100 */ 				

/* jquery.tablesorter.pager.js */

/* 101 */ 				fixPosition(table,tableBody);
/* 102 */ 				
/* 103 */ 				$(table).trigger("applyWidgets");
/* 104 */ 				
/* 105 */ 				if( c.page >= c.totalPages ) {
/* 106 */         			moveToLastPage(table);
/* 107 */ 				}
/* 108 */ 				
/* 109 */ 				updatePageDisplay(c);
/* 110 */ 			}
/* 111 */ 			
/* 112 */ 			this.appender = function(table,rows) {
/* 113 */ 				
/* 114 */ 				var c = table.config;
/* 115 */ 				
/* 116 */ 				c.rowsCopy = rows;
/* 117 */ 				c.totalRows = rows.length;
/* 118 */ 				c.totalPages = Math.ceil(c.totalRows / c.size);
/* 119 */ 				
/* 120 */ 				renderTable(table,rows);
/* 121 */ 			};
/* 122 */ 			
/* 123 */ 			this.defaults = {
/* 124 */ 				size: 20,
/* 125 */ 				offset: 0,
/* 126 */ 				page: 0,
/* 127 */ 				totalRows: 0,
/* 128 */ 				totalPages: 0,
/* 129 */ 				container: null,
/* 130 */ 				cssNext: '.f-next',
/* 131 */ 				cssPrev: '.f-prev',
/* 132 */ 				cssFirst: '.f-first',
/* 133 */ 				cssLast: '.f-last',
/* 134 */ 				cssPageDisplay: '.pagedisplay',
/* 135 */ 				cssPageSize: '.pagesize',
/* 136 */ 				seperator: "/",
/* 137 */ 				positionFixed: true,
/* 138 */ 				appender: this.appender
/* 139 */ 			};
/* 140 */ 			
/* 141 */ 			this.construct = function(settings) {
/* 142 */ 				
/* 143 */ 				return this.each(function() {	
/* 144 */ 					
/* 145 */ 					config = $.extend(this.config, $.tablesorterPager.defaults, settings);
/* 146 */ 					
/* 147 */ 					var table = this, pager = config.container;
/* 148 */ 				
/* 149 */ 					$(this).trigger("appendCache");
/* 150 */ 					

/* jquery.tablesorter.pager.js */

/* 151 */ 					config.size = parseInt($(".pagesize",pager).val());
/* 152 */ 					
/* 153 */ 					$(config.cssFirst,pager).click(function() {
/* 154 */ 						moveToFirstPage(table);
/* 155 */ 						return false;
/* 156 */ 					});
/* 157 */ 					$(config.cssNext,pager).click(function() {
/* 158 */ 						moveToNextPage(table);
/* 159 */ 						return false;
/* 160 */ 					});
/* 161 */ 					$(config.cssPrev,pager).click(function() {
/* 162 */ 						moveToPrevPage(table);
/* 163 */ 						return false;
/* 164 */ 					});
/* 165 */ 					$(config.cssLast,pager).click(function() {
/* 166 */ 						moveToLastPage(table);
/* 167 */ 						return false;
/* 168 */ 					});
/* 169 */ 					$(config.cssPageSize,pager).change(function() {
/* 170 */ 						setPageSize(table,parseInt($(this).val()));
/* 171 */ 						return false;
/* 172 */ 					});
/* 173 */ 				});
/* 174 */ 			};
/* 175 */ 			
/* 176 */ 		}
/* 177 */ 	});
/* 178 */ 	// extend plugin scope
/* 179 */ 	$.fn.extend({
/* 180 */         tablesorterPager: $.tablesorterPager.construct
/* 181 */ 	});
/* 182 */ 	
/* 183 */ })(jQuery);				
;
/* jquery.listify.js */

/* 1  */ /*
/* 2  *| +-----------------------------------------------------------------------+
/* 3  *| | Copyright (c) 2006-2007 Dylan Verheul                                 |
/* 4  *| | All rights reserved.                                                  |  
/* 5  *| |                                                                       |
/* 6  *| | Redistribution and use in source and binary forms, with or without    |
/* 7  *| | modification, are permitted provided that the following conditions    |
/* 8  *| | are met:                                                              |
/* 9  *| |                                                                       | 
/* 10 *| | o Redistributions of source code must retain the above copyright      |
/* 11 *| |   notice, this list of conditions and the following disclaimer.       |
/* 12 *| | o Redistributions in binary form must reproduce the above copyright   |
/* 13 *| |   notice, this list of conditions and the following disclaimer in the |
/* 14 *| |   documentation and/or other materials provided with the distribution.|
/* 15 *| |                                                                       |
/* 16 *| | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS   |
/* 17 *| | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT     |
/* 18 *| | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
/* 19 *| | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT  |
/* 20 *| | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
/* 21 *| | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT      |
/* 22 *| | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
/* 23 *| | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
/* 24 *| | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT   |
/* 25 *| | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
/* 26 *| | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  |
/* 27 *| |                                                                       |
/* 28 *| +-----------------------------------------------------------------------+
/* 29 *| */
/* 30 */ 
/* 31 */ /**
/* 32 *|   * jQuery listify plugin (version 1.0)
/* 33 *|   *
/* 34 *|   * http://www.dyve.net/jquery/?listify
/* 35 *|   *
/* 36 *|   * @name  listify
/* 37 *|   * @type  jQuery
/* 38 *|   * @param Hash    settings             settings 
/* 39 *|   * @param String  settings[selector]   selector to use
/* 40 *|   * @param String  settings[hoverClass] class to apply to items that the mouse is over an item
/* 41 *|   * @param String  settings[cursorType] cursor type to change to when the mouse is over an item
/* 42 *|   * @param Bool    settings[hideLink]   whether or not to hide the link
/* 43 *|   */
/* 44 */ (function($) {
/* 45 */ 	$.fn.listify = function(settings) {
/* 46 */ 		settings = $.extend({
/* 47 */ 			hoverClass: "over",
/* 48 */ 			cursorType: "pointer",
/* 49 */ 			selector: "tbody td",
/* 50 */ 			hideLink: false

/* jquery.listify.js */

/* 51 */ 		}, settings);
/* 52 */ 		$(settings.selector, this).each(function() {
/* 53 */ 			var anchor = $("a", this);
/* 54 */ 			if (anchor.length == 1) {
/* 55 */ 				anchor = $(anchor.get(0));
/* 56 */ 				var thickbox = anchor.is(".thickbox");
/* 57 */ 				var link = anchor.attr("href");
/* 58 */ 				if (link) {
/* 59 */ 					if (settings.hideLink) {
/* 60 */ 						var text = anchor.html();
/* 61 */ 						anchor.after(text).hide();	
/* 62 */ 					}
/* 63 */ 					$(this)
/* 64 */ 						.css("cursor", settings.cursorType)
/* 65 */ 						.hover(
/* 66 */ 							function() { $(this).addClass(settings.hoverClass) },
/* 67 */ 							function() { $(this).removeClass(settings.hoverClass) }
/* 68 */ 						)
/* 69 */ 						.click(function() {
/* 70 */ 							if (thickbox) {
/* 71 */ 								anchor.click();
/* 72 */ 							} else {
/* 73 */ 								window.location.href = link;
/* 74 */ 							}
/* 75 */ 						});
/* 76 */ 				}
/* 77 */ 			}
/* 78 */ 		});
/* 79 */ 		return this;
/* 80 */ 	}
/* 81 */ })(jQuery)
;
/* jquery.tools.min3.js */

/* 1  */ /*
/* 2  *|  * jquery.tools 1.1.2 - The missing UI library for the Web
/* 3  *|  * 
/* 4  *|  * [tools.tooltip-1.1.3, tools.tooltip.slide-1.0.0, tools.tooltip.dynamic-1.0.1, tools.scrollable-1.1.2, tools.scrollable.circular-0.5.1, tools.scrollable.navigator-1.0.2, tools.overlay-1.1.2, tools.overlay.gallery-1.0.0, tools.overlay.apple-1.0.1, tools.expose-1.0.5]
/* 5  *|  * 
/* 6  *|  * Copyright (c) 2009 Tero Piirainen
/* 7  *|  * http://flowplayer.org/tools/
/* 8  *|  *
/* 9  *|  * Dual licensed under MIT and GPL 2+ licenses
/* 10 *|  * http://www.opensource.org/licenses
/* 11 *|  * 
/* 12 *|  * -----
/* 13 *|  * 
/* 14 *|  * File generated: Mon Feb 01 11:54:26 GMT 2010
/* 15 *|  */
/* 16 */ (function(c){var d=[];c.tools=c.tools||{};c.tools.tooltip={version:"1.1.3",conf:{effect:"toggle",fadeOutSpeed:"fast",tip:null,predelay:0,delay:30,opacity:1,lazy:undefined,position:["top","center"],offset:[0,0],cancelDefault:true,relative:false,oneInstance:true,events:{def:"mouseover,mouseout",input:"focus,blur",widget:"focus mouseover,blur mouseout",tooltip:"mouseover,mouseout"},api:false},addEffect:function(e,g,f){b[e]=[g,f]}};var b={toggle:[function(e){var f=this.getConf(),g=this.getTip(),h=f.opacity;if(h<1){g.css({opacity:h})}g.show();e.call()},function(e){this.getTip().hide();e.call()}],fade:[function(e){this.getTip().fadeIn(this.getConf().fadeInSpeed,e)},function(e){this.getTip().fadeOut(this.getConf().fadeOutSpeed,e)}]};function a(f,g){var p=this,k=c(this);f.data("tooltip",p);var l=f.next();if(g.tip){l=c(g.tip);if(l.length>1){l=f.nextAll(g.tip).eq(0);if(!l.length){l=f.parent().nextAll(g.tip).eq(0)}}}function o(u){var t=g.relative?f.position().top:f.offset().top,s=g.relative?f.position().left:f.offset().left,v=g.position[0];t-=l.outerHeight()-g.offset[0];s+=f.outerWidth()+g.offset[1];var q=l.outerHeight()+f.outerHeight();if(v=="center"){t+=q/2}if(v=="bottom"){t+=q}v=g.position[1];var r=l.outerWidth()+f.outerWidth();if(v=="center"){s-=r/2}if(v=="left"){s-=r}return{top:t,left:s}}var i=f.is(":input"),e=i&&f.is(":checkbox, :radio, select, :button"),h=f.attr("type"),n=g.events[h]||g.events[i?(e?"widget":"input"):"def"];n=n.split(/,\s*/);if(n.length!=2){throw"Tooltip: bad events configuration for "+h}f.bind(n[0],function(r){if(g.oneInstance){c.each(d,function(){this.hide()})}var q=l.data("trigger");if(q&&q[0]!=this){l.hide().stop(true,true)}r.target=this;p.show(r);n=g.events.tooltip.split(/,\s*/);l.bind(n[0],function(){p.show(r)});if(n[1]){l.bind(n[1],function(){p.hide(r)})}});f.bind(n[1],function(q){p.hide(q)});if(!c.browser.msie&&!i&&!g.predelay){f.mousemove(function(){if(!p.isShown()){f.triggerHandler("mouseover")}})}if(g.opacity<1){l.css("opacity",g.opacity)}var m=0,j=f.attr("title");if(j&&g.cancelDefault){f.removeAttr("title");f.data("title",j)}c.extend(p,{show:function(r){if(r){f=c(r.target)}clearTimeout(l.data("timer"));if(l.is(":animated")||l.is(":visible")){return p}function q(){l.data("trigger",f);var t=o(r);if(g.tip&&j){l.html(f.data("title"))}r=r||c.Event();r.type="onBeforeShow";k.trigger(r,[t]);if(r.isDefaultPrevented()){return p}t=o(r);l.css({position:"absolute",top:t.top,left:t.left});var s=b[g.effect];if(!s){throw'Nonexistent effect "'+g.effect+'"'}s[0].call(p,function(){r.type="onShow";k.trigger(r)})}if(g.predelay){clearTimeout(m);m=setTimeout(q,g.predelay)}else{q()}return p},hide:function(r){clearTimeout(l.data("timer"));clearTimeout(m);if(!l.is(":visible")){return}function q(){r=r||c.Event();r.type="onBeforeHide";k.trigger(r);if(r.isDefaultPrevented()){return}b[g.effect][1].call(p,function(){r.type="onHide";k.trigger(r)})}if(g.delay&&r){l.data("timer",setTimeout(q,g.delay))}else{q()}return p},isShown:function(){return l.is(":visible, :animated")},getConf:function(){return g},getTip:function(){return l},getTrigger:function(){return f},bind:function(q,r){k.bind(q,r);return p},onHide:function(q){return this.bind("onHide",q)},onBeforeShow:function(q){return this.bind("onBeforeShow",q)},onShow:function(q){return this.bind("onShow",q)},onBeforeHide:function(q){return this.bind("onBeforeHide",q)},unbind:function(q){k.unbind(q);return p}});c.each(g,function(q,r){if(c.isFunction(r)){p.bind(q,r)}})}c.prototype.tooltip=function(e){var f=this.eq(typeof e=="number"?e:0).data("tooltip");if(f){return f}var g=c.extend(true,{},c.tools.tooltip.conf);if(c.isFunction(e)){e={onBeforeShow:e}}else{if(typeof e=="string"){e={tip:e}}}e=c.extend(true,g,e);if(typeof e.position=="string"){e.position=e.position.split(/,?\s/)}if(e.lazy!==false&&(e.lazy===true||this.length>20)){this.one("mouseover",function(h){f=new a(c(this),e);f.show(h);d.push(f)})}else{this.each(function(){f=new a(c(this),e);d.push(f)})}return e.api?f:this}})(jQuery);
/* 17 */ (function(b){var a=b.tools.tooltip;a.effects=a.effects||{};a.effects.slide={version:"1.0.0"};b.extend(a.conf,{direction:"up",bounce:false,slideOffset:10,slideInSpeed:200,slideOutSpeed:200,slideFade:!b.browser.msie});var c={up:["-","top"],down:["+","top"],left:["-","left"],right:["+","left"]};b.tools.tooltip.addEffect("slide",function(d){var f=this.getConf(),g=this.getTip(),h=f.slideFade?{opacity:f.opacity}:{},e=c[f.direction]||c.up;h[e[1]]=e[0]+"="+f.slideOffset;if(f.slideFade){g.css({opacity:0})}g.show().animate(h,f.slideInSpeed,d)},function(e){var g=this.getConf(),i=g.slideOffset,h=g.slideFade?{opacity:0}:{},f=c[g.direction]||c.up;var d=""+f[0];if(g.bounce){d=d=="+"?"-":"+"}h[f[1]]=d+"="+i;this.getTip().animate(h,g.slideOutSpeed,function(){b(this).hide();e.call()})})})(jQuery);
/* 18 */ (function(d){var c=d.tools.tooltip;c.plugins=c.plugins||{};c.plugins.dynamic={version:"1.0.1",conf:{api:false,classNames:"top right bottom left"}};function b(h){var e=d(window);var g=e.width()+e.scrollLeft();var f=e.height()+e.scrollTop();return[h.offset().top<=e.scrollTop(),g<=h.offset().left+h.width(),f<=h.offset().top+h.height(),e.scrollLeft()>=h.offset().left]}function a(f){var e=f.length;while(e--){if(f[e]){return false}}return true}d.fn.dynamic=function(g){var h=d.extend({},c.plugins.dynamic.conf),f;if(typeof g=="number"){g={speed:g}}g=d.extend(h,g);var e=g.classNames.split(/\s/),i;this.each(function(){if(d(this).tooltip().jquery){throw"Lazy feature not supported by dynamic plugin. set lazy: false for tooltip"}var j=d(this).tooltip().onBeforeShow(function(n,o){var m=this.getTip(),l=this.getConf();if(!i){i=[l.position[0],l.position[1],l.offset[0],l.offset[1],d.extend({},l)]}d.extend(l,i[4]);l.position=[i[0],i[1]];l.offset=[i[2],i[3]];m.css({visibility:"hidden",position:"absolute",top:o.top,left:o.left}).show();var k=b(m);if(!a(k)){if(k[2]){d.extend(l,g.top);l.position[0]="top";m.addClass(e[0])}if(k[3]){d.extend(l,g.right);l.position[1]="right";m.addClass(e[1])}if(k[0]){d.extend(l,g.bottom);l.position[0]="bottom";m.addClass(e[2])}if(k[1]){d.extend(l,g.left);l.position[1]="left";m.addClass(e[3])}if(k[0]||k[2]){l.offset[0]*=-1}if(k[1]||k[3]){l.offset[1]*=-1}}m.css({visibility:"visible"}).hide()});j.onShow(function(){var l=this.getConf(),k=this.getTip();l.position=[i[0],i[1]];l.offset=[i[2],i[3]]});j.onHide(function(){var k=this.getTip();k.removeClass(g.classNames)});f=j});return g.api?f:this}})(jQuery);
/* 19 */ (function(b){b.tools=b.tools||{};b.tools.scrollable={version:"1.1.2",conf:{size:5,vertical:false,speed:400,keyboard:true,keyboardSteps:null,disabledClass:"disabled",hoverClass:null,clickable:true,activeClass:"active",easing:"swing",loop:false,items:".items",item:null,prev:".prev",next:".next",prevPage:".prevPage",nextPage:".nextPage",api:false}};var c;function a(o,m){var r=this,p=b(this),d=!m.vertical,e=o.children(),k=0,i;if(!c){c=r}b.each(m,function(s,t){if(b.isFunction(t)){p.bind(s,t)}});if(e.length>1){e=b(m.items,o)}function l(t){var s=b(t);return m.globalNav?s:o.parent().find(t)}o.data("finder",l);var f=l(m.prev),h=l(m.next),g=l(m.prevPage),n=l(m.nextPage);b.extend(r,{getIndex:function(){return k},getClickIndex:function(){var s=r.getItems();return s.index(s.filter("."+m.activeClass))},getConf:function(){return m},getSize:function(){return r.getItems().size()},getPageAmount:function(){return Math.ceil(this.getSize()/m.size)},getPageIndex:function(){return Math.ceil(k/m.size)},getNaviButtons:function(){return f.add(h).add(g).add(n)},getRoot:function(){return o},getItemWrap:function(){return e},getItems:function(){return e.children(m.item)},getVisibleItems:function(){return r.getItems().slice(k,k+m.size)},seekTo:function(s,w,t){if(s<0){s=0}if(k===s){return r}if(b.isFunction(w)){t=w}if(s>r.getSize()-m.size){return m.loop?r.begin():this.end()}var u=r.getItems().eq(s);if(!u.length){return r}var v=b.Event("onBeforeSeek");p.trigger(v,[s]);if(v.isDefaultPrevented()){return r}if(w===undefined||b.isFunction(w)){w=m.speed}function x(){if(t){t.call(r,s)}p.trigger("onSeek",[s])}if(d){e.animate({left:-u.position().left},w,m.easing,x)}else{e.animate({top:-u.position().top},w,m.easing,x)}c=r;k=s;v=b.Event("onStart");p.trigger(v,[s]);if(v.isDefaultPrevented()){return r}f.add(g).toggleClass(m.disabledClass,s===0);h.add(n).toggleClass(m.disabledClass,s>=r.getSize()-m.size);return r},move:function(u,t,s){i=u>0;return this.seekTo(k+u,t,s)},next:function(t,s){return this.move(1,t,s)},prev:function(t,s){return this.move(-1,t,s)},movePage:function(w,v,u){i=w>0;var s=m.size*w;var t=k%m.size;if(t>0){s+=(w>0?-t:m.size-t)}return this.move(s,v,u)},prevPage:function(t,s){return this.movePage(-1,t,s)},nextPage:function(t,s){return this.movePage(1,t,s)},setPage:function(t,u,s){return this.seekTo(t*m.size,u,s)},begin:function(t,s){i=false;return this.seekTo(0,t,s)},end:function(t,s){i=true;var u=this.getSize()-m.size;return u>0?this.seekTo(u,t,s):r},reload:function(){p.trigger("onReload");return r},focus:function(){c=r;return r},click:function(u){var v=r.getItems().eq(u),s=m.activeClass,t=m.size;if(u<0||u>=r.getSize()){return r}if(t==1){if(m.loop){return r.next()}if(u===0||u==r.getSize()-1){i=(i===undefined)?true:!i}return i===false?r.prev():r.next()}if(t==2){if(u==k){u--}r.getItems().removeClass(s);v.addClass(s);return r.seekTo(u,time,fn)}if(!v.hasClass(s)){r.getItems().removeClass(s);v.addClass(s);var x=Math.floor(t/2);var w=u-x;if(w>r.getSize()-t){w=r.getSize()-t}if(w!==u){return r.seekTo(w)}}return r},bind:function(s,t){p.bind(s,t);return r},unbind:function(s){p.unbind(s);return r}});b.each("onBeforeSeek,onStart,onSeek,onReload".split(","),function(s,t){r[t]=function(u){return r.bind(t,u)}});f.addClass(m.disabledClass).click(function(){r.prev()});h.click(function(){r.next()});n.click(function(){r.nextPage()});if(r.getSize()<m.size){h.add(n).addClass(m.disabledClass)}g.addClass(m.disabledClass).click(function(){r.prevPage()});var j=m.hoverClass,q="keydown."+Math.random().toString().substring(10);r.onReload(function(){if(j){r.getItems().hover(function(){b(this).addClass(j)},function(){b(this).removeClass(j)})}if(m.clickable){r.getItems().each(function(s){b(this).unbind("click.scrollable").bind("click.scrollable",function(t){if(b(t.target).is("a")){return}return r.click(s)})})}if(m.keyboard){b(document).unbind(q).bind(q,function(t){if(t.altKey||t.ctrlKey){return}if(m.keyboard!="static"&&c!=r){return}var u=m.keyboardSteps;if(d&&(t.keyCode==37||t.keyCode==39)){r.move(t.keyCode==37?-u:u);return t.preventDefault()}if(!d&&(t.keyCode==38||t.keyCode==40)){r.move(t.keyCode==38?-u:u);return t.preventDefault()}return true})}else{b(document).unbind(q)}});r.reload()}b.fn.scrollable=function(d){var e=this.eq(typeof d=="number"?d:0).data("scrollable");if(e){return e}var f=b.extend({},b.tools.scrollable.conf);d=b.extend(f,d);d.keyboardSteps=d.keyboardSteps||d.size;this.each(function(){e=new a(b(this),d);b(this).data("scrollable",e)});return d.api?e:this}})(jQuery);
/* 20 */ (function(b){var a=b.tools.scrollable;a.plugins=a.plugins||{};a.plugins.circular={version:"0.5.1",conf:{api:false,clonedClass:"cloned"}};b.fn.circular=function(e){var d=b.extend({},a.plugins.circular.conf),c;b.extend(d,e);this.each(function(){var i=b(this).scrollable(),n=i.getItems(),k=i.getConf(),f=i.getItemWrap(),j=0;if(i){c=i}if(n.length<k.size){return false}n.slice(0,k.size).each(function(o){b(this).clone().appendTo(f).click(function(){i.click(n.length+o)}).addClass(d.clonedClass)});var l=b.makeArray(n.slice(-k.size)).reverse();b(l).each(function(o){b(this).clone().prependTo(f).click(function(){i.click(-o-1)}).addClass(d.clonedClass)});var m=f.children(k.item);var h=k.hoverClass;if(h){m.hover(function(){b(this).addClass(h)},function(){b(this).removeClass(h)})}function g(o){var p=m.eq(o);if(k.vertical){f.css({top:-p.position().top})}else{f.css({left:-p.position().left})}}g(k.size);b.extend(i,{move:function(s,r,p,q){var u=j+s+k.size;var t=u>i.getSize()-k.size;if(u<=0||t){var o=j+k.size+(t?-n.length:n.length);g(o);u=o+s}if(q){m.removeClass(k.activeClass).eq(u+Math.floor(k.size/2)).addClass(k.activeClass)}if(u===j+k.size){return self}return i.seekTo(u,r,p)},begin:function(p,o){return this.seekTo(k.size,p,o)},end:function(p,o){return this.seekTo(n.length,p,o)},click:function(p,r,q){if(!k.clickable){return self}if(k.size==1){return this.next()}var s=p-j,o=k.activeClass;s-=Math.floor(k.size/2);return this.move(s,r,q,true)},getIndex:function(){return j},setPage:function(p,q,o){return this.seekTo(p*k.size+k.size,q,o)},getPageAmount:function(){return Math.ceil(n.length/k.size)},getPageIndex:function(){if(j<0){return this.getPageAmount()-1}if(j>=n.length){return 0}var o=(j+k.size)/k.size-1;return o},getVisibleItems:function(){var o=j+k.size;return m.slice(o,o+k.size)}});i.onStart(function(p,o){j=o-k.size;return false});i.getNaviButtons().removeClass(k.disabledClass)});return d.api?c:this}})(jQuery);
/* 21 */ (function(b){var a=b.tools.scrollable;a.plugins=a.plugins||{};a.plugins.navigator={version:"1.0.2",conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:false,api:false,idPrefix:null}};b.fn.navigator=function(d){var e=b.extend({},a.plugins.navigator.conf),c;if(typeof d=="string"){d={navi:d}}d=b.extend(e,d);this.each(function(){var i=b(this).scrollable(),f=i.getRoot(),l=f.data("finder").call(null,d.navi),g=null,k=i.getNaviButtons();if(i){c=i}i.getNaviButtons=function(){return k.add(l)};function j(){if(!l.children().length||l.data("navi")==i){l.empty();l.data("navi",i);for(var m=0;m<i.getPageAmount();m++){l.append(b("<"+(d.naviItem||"a")+"/>"))}g=l.children().each(function(n){var o=b(this);o.click(function(p){i.setPage(n);return p.preventDefault()});if(d.indexed){o.text(n)}if(d.idPrefix){o.attr("id",d.idPrefix+n)}})}else{g=d.naviItem?l.find(d.naviItem):l.children();g.each(function(n){var o=b(this);o.click(function(p){i.setPage(n);return p.preventDefault()})})}g.eq(0).addClass(d.activeClass)}i.onStart(function(o,n){var m=d.activeClass;g.removeClass(m).eq(i.getPageIndex()).addClass(m)});i.onReload(function(){j()});j();var h=g.filter("[href="+location.hash+"]");if(h.length){i.move(g.index(h))}});return d.api?c:this}})(jQuery);
/* 22 */ (function(b){var a=b.tools.scrollable;a.plugins=a.plugins||{};a.plugins.autoscroll={version:"1.0.1",conf:{autoplay:true,interval:3000,autopause:true,steps:1,api:false}};b.fn.autoscroll=function(d){if(typeof d=="number"){d={interval:d}}var e=b.extend({},a.plugins.autoscroll.conf),c;b.extend(e,d);this.each(function(){var g=b(this).scrollable();if(g){c=g}var i,f,h=true;g.play=function(){if(i){return}h=false;i=setInterval(function(){g.move(e.steps)},e.interval);g.move(e.steps)};g.pause=function(){i=clearInterval(i)};g.stop=function(){g.pause();h=true};if(e.autopause){g.getRoot().add(g.getNaviButtons()).hover(function(){g.pause();clearInterval(f)},function(){if(!h){f=setTimeout(g.play,e.interval)}})}if(e.autoplay){setTimeout(g.play,e.interval)}});return e.api?c:this}})(jQuery);
/* 23 */ (function(c){c.tools=c.tools||{};c.tools.overlay={version:"1.1.2",addEffect:function(e,f,g){b[e]=[f,g]},conf:{top:"10%",left:"center",absolute:false,speed:"normal",closeSpeed:"fast",effect:"default",close:null,oneInstance:true,closeOnClick:true,closeOnEsc:true,api:false,expose:null,target:null}};var b={};c.tools.overlay.addEffect("default",function(e){this.getOverlay().fadeIn(this.getConf().speed,e)},function(e){this.getOverlay().fadeOut(this.getConf().closeSpeed,e)});var d=[];function a(g,k){var o=this,m=c(this),n=c(window),j,i,h,e=k.expose&&c.tools.expose.version;var f=k.target||g.attr("rel");i=f?c(f):null||g;if(!i.length){throw"Could not find Overlay: "+f}if(g&&g.index(i)==-1){g.click(function(p){o.load(p);return p.preventDefault()})}c.each(k,function(p,q){if(c.isFunction(q)){m.bind(p,q)}});c.extend(o,{load:function(u){if(o.isOpened()){return o}var r=b[k.effect];if(!r){throw'Overlay: cannot find effect : "'+k.effect+'"'}if(k.oneInstance){c.each(d,function(){this.close(u)})}u=u||c.Event();u.type="onBeforeLoad";m.trigger(u);if(u.isDefaultPrevented()){return o}h=true;if(e){i.expose().load(u)}var t=k.top;var s=k.left;var p=i.outerWidth({margin:true});var q=i.outerHeight({margin:true});if(typeof t=="string"){t=t=="center"?Math.max((n.height()-q)/2,0):parseInt(t,10)/100*n.height()}if(s=="center"){s=Math.max((n.width()-p)/2,0)}if(!k.absolute){t+=n.scrollTop();s+=n.scrollLeft()}i.css({top:t,left:s,position:"absolute"});u.type="onStart";m.trigger(u);r[0].call(o,function(){if(h){u.type="onLoad";m.trigger(u)}});if(k.closeOnClick){c(document).bind("click.overlay",function(w){if(!o.isOpened()){return}var v=c(w.target);if(v.parents(i).length>1){return}c.each(d,function(){this.close(w)})})}if(k.closeOnEsc){c(document).unbind("keydown.overlay").bind("keydown.overlay",function(v){if(v.keyCode==27){c.each(d,function(){this.close(v)})}})}return o},close:function(q){if(!o.isOpened()){return o}q=q||c.Event();q.type="onBeforeClose";m.trigger(q);if(q.isDefaultPrevented()){return}h=false;b[k.effect][1].call(o,function(){q.type="onClose";m.trigger(q)});var p=true;c.each(d,function(){if(this.isOpened()){p=false}});if(p){c(document).unbind("click.overlay").unbind("keydown.overlay")}return o},getContent:function(){return i},getOverlay:function(){return i},getTrigger:function(){return g},getClosers:function(){return j},isOpened:function(){return h},getConf:function(){return k},bind:function(p,q){m.bind(p,q);return o},unbind:function(p){m.unbind(p);return o}});c.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(p,q){o[q]=function(r){return o.bind(q,r)}});if(e){if(typeof k.expose=="string"){k.expose={color:k.expose}}c.extend(k.expose,{api:true,closeOnClick:k.closeOnClick,closeOnEsc:false});var l=i.expose(k.expose);l.onBeforeClose(function(p){o.close(p)});o.onClose(function(p){l.close(p)})}j=i.find(k.close||".close");if(!j.length&&!k.close){j=c('<div class="close"></div>');i.prepend(j)}j.click(function(p){o.close(p)})}c.fn.overlay=function(e){var f=this.eq(typeof e=="number"?e:0).data("overlay");if(f){return f}if(c.isFunction(e)){e={onBeforeLoad:e}}var g=c.extend({},c.tools.overlay.conf);e=c.extend(true,g,e);this.each(function(){f=new a(c(this),e);d.push(f);c(this).data("overlay",f)});return e.api?f:this}})(jQuery);
/* 24 */ (function(b){var a=b.tools.overlay;a.plugins=a.plugins||{};a.plugins.gallery={version:"1.0.0",conf:{imgId:"img",next:".next",prev:".prev",info:".info",progress:".progress",disabledClass:"disabled",activeClass:"active",opacity:0.8,speed:"slow",template:"<strong>${title}</strong> <span>Slika ${index} od ${total}</span>",autohide:true,preload:true,api:false}};b.fn.gallery=function(d){var o=b.extend({},a.plugins.gallery.conf),m;b.extend(o,d);m=this.overlay();var r=this,j=m.getOverlay(),k=j.find(o.next),g=j.find(o.prev),e=j.find(o.info),c=j.find(o.progress),h=g.add(k).add(e).css({opacity:o.opacity}),s=m.getClosers(),l;function p(u){c.fadeIn();h.hide();s.hide();var t=u.attr("href");var v=new Image();v.onload=function(){c.fadeOut();var y=b("#"+o.imgId,j);if(!y.length){y=b("<img/>").attr("id",o.imgId).css("visibility","hidden");j.prepend(y)}y.attr("src",t).css("visibility","hidden");var z=v.width;var A=(b(window).width()-z)/2;l=r.index(r.filter("[href="+t+"]"));r.removeClass(o.activeClass).eq(l).addClass(o.activeClass);var w=o.disabledClass;h.removeClass(w);if(l===0){g.addClass(w)}if(l==r.length-1){k.addClass(w)}var B=o.template.replace("${title}",u.attr("title")||u.data("title")).replace("${index}",l+1).replace("${total}",r.length);var x=parseInt(e.css("paddingLeft"),10)+parseInt(e.css("paddingRight"),10);e.html(B).css({width:z-x});j.animate({width:z,height:v.height,left:A},o.speed,function(){y.hide().css("visibility","visible").fadeIn(function(){if(!o.autohide){h.fadeIn();s.show()}})})};v.onerror=function(){j.fadeIn().html("Cannot find image "+t)};v.src=t;if(o.preload){r.filter(":eq("+(l-1)+"), :eq("+(l+1)+")").each(function(){var w=new Image();w.src=b(this).attr("href")})}}function f(t,u){t.click(function(){if(t.hasClass(o.disabledClass)){return}var v=r.eq(i=l+(u?1:-1));if(v.length){p(v)}})}f(k,true);f(g);b(document).keydown(function(t){if(!j.is(":visible")||t.altKey||t.ctrlKey){return}if(t.keyCode==37||t.keyCode==39){var u=t.keyCode==37?g:k;u.click();return t.preventDefault()}return true});function q(){if(!j.is(":animated")){h.show();s.show()}}if(o.autohide){j.hover(q,function(){h.fadeOut();s.hide()}).mousemove(q)}var n;this.each(function(){var v=b(this),u=b(this).overlay(),t=u;u.onBeforeLoad(function(){p(v)});u.onClose(function(){r.removeClass(o.activeClass)})});return o.api?n:this}})(jQuery);
/* 25 */ (function(d){var b=d.tools.overlay;b.effects=b.effects||{};b.effects.apple={version:"1.0.1"};d.extend(b.conf,{start:{absolute:true,top:null,left:null},fadeInSpeed:"fast",zIndex:9999});function c(f){var g=f.offset();return[g.top+f.height()/2,g.left+f.width()/2]}var e=function(n){var k=this.getOverlay(),f=this.getConf(),i=this.getTrigger(),q=this,r=k.outerWidth({margin:true}),m=k.data("img");if(!m){var l=k.css("backgroundImage");if(!l){throw"background-image CSS property not set for overlay"}l=l.substring(l.indexOf("(")+1,l.indexOf(")")).replace(/\"/g,"");k.css("backgroundImage","none");m=d('<img src="'+l+'"/>');m.css({border:0,position:"absolute",display:"none"}).width(r);d("body").append(m);k.data("img",m)}var o=d(window),j=f.start.top||Math.round(o.height()/2),h=f.start.left||Math.round(o.width()/2);if(i){var g=c(i);j=g[0];h=g[1]}if(!f.start.absolute){j+=o.scrollTop();h+=o.scrollLeft()}m.css({top:j,left:h,width:0,zIndex:f.zIndex}).show();m.animate({top:k.css("top"),left:k.css("left"),width:r},f.speed,function(){k.css("zIndex",f.zIndex+1).fadeIn(f.fadeInSpeed,function(){if(q.isOpened()&&!d(this).index(k)){n.call()}else{k.hide()}})})};var a=function(f){var h=this.getOverlay(),i=this.getConf(),g=this.getTrigger(),l=i.start.top,k=i.start.left;h.hide();if(g){var j=c(g);l=j[0];k=j[1]}h.data("img").animate({top:l,left:k,width:0},i.closeSpeed,f)};b.addEffect("apple",e,a)})(jQuery);
/* 26 */ (function(b){b.tools=b.tools||{};b.tools.expose={version:"1.0.5",conf:{maskId:null,loadSpeed:"slow",closeSpeed:"fast",closeOnClick:true,closeOnEsc:true,zIndex:9998,opacity:0.8,color:"#456",api:false}};function a(){if(b.browser.msie){var f=b(document).height(),e=b(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,f-e<20?e:f]}return[b(window).width(),b(document).height()]}function c(h,g){var e=this,j=b(this),d=null,f=false,i=0;b.each(g,function(k,l){if(b.isFunction(l)){j.bind(k,l)}});b(window).resize(function(){e.fit()});b.extend(this,{getMask:function(){return d},getExposed:function(){return h},getConf:function(){return g},isLoaded:function(){return f},load:function(n){if(f){return e}i=h.eq(0).css("zIndex");if(g.maskId){d=b("#"+g.maskId)}if(!d||!d.length){var l=a();d=b("<div/>").css({position:"absolute",top:0,left:0,width:l[0],height:l[1],display:"none",opacity:0,zIndex:g.zIndex});if(g.maskId){d.attr("id",g.maskId)}b("body").append(d);var k=d.css("backgroundColor");if(!k||k=="transparent"||k=="rgba(0, 0, 0, 0)"){d.css("backgroundColor",g.color)}if(g.closeOnEsc){b(document).bind("keydown.unexpose",function(o){if(o.keyCode==27){e.close()}})}if(g.closeOnClick){d.bind("click.unexpose",function(o){e.close(o)})}}n=n||b.Event();n.type="onBeforeLoad";j.trigger(n);if(n.isDefaultPrevented()){return e}b.each(h,function(){var o=b(this);if(!/relative|absolute|fixed/i.test(o.css("position"))){o.css("position","relative")}});h.css({zIndex:Math.max(g.zIndex+1,i=="auto"?0:i)});var m=d.height();if(!this.isLoaded()){d.css({opacity:0,display:"block"}).fadeTo(g.loadSpeed,g.opacity,function(){if(d.height()!=m){d.css("height",m)}n.type="onLoad";j.trigger(n)})}f=true;return e},close:function(k){if(!f){return e}k=k||b.Event();k.type="onBeforeClose";j.trigger(k);if(k.isDefaultPrevented()){return e}d.fadeOut(g.closeSpeed,function(){k.type="onClose";j.trigger(k);h.css({zIndex:b.browser.msie?i:null})});f=false;return e},fit:function(){if(d){var k=a();d.css({width:k[0],height:k[1]})}},bind:function(k,l){j.bind(k,l);return e},unbind:function(k){j.unbind(k);return e}});b.each("onBeforeLoad,onLoad,onBeforeClose,onClose".split(","),function(k,l){e[l]=function(m){return e.bind(l,m)}})}b.fn.expose=function(d){var e=this.eq(typeof d=="number"?d:0).data("expose");if(e){return e}if(typeof d=="string"){d={color:d}}var f=b.extend({},b.tools.expose.conf);d=b.extend(f,d);this.each(function(){e=new c(b(this),d);b(this).data("expose",e)});return d.api?e:this}})(jQuery);
;
/* superfish.js */

/* 1   */ 
/* 2   */ /*
/* 3   *|  * Superfish v1.4.8 - jQuery menu widget
/* 4   *|  * Copyright (c) 2008 Joel Birch
/* 5   *|  *
/* 6   *|  * Dual licensed under the MIT and GPL licenses:
/* 7   *|  * 	http://www.opensource.org/licenses/mit-license.php
/* 8   *|  * 	http://www.gnu.org/licenses/gpl.html
/* 9   *|  *
/* 10  *|  * CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt
/* 11  *|  */
/* 12  */ 
/* 13  */ ;(function($){
/* 14  */ 	$.fn.superfish = function(op){
/* 15  */ 
/* 16  */ 		var sf = $.fn.superfish,
/* 17  */ 			c = sf.c,
/* 18  */ 			$arrow = $(['<span class="',c.arrowClass,'"> &#187;</span>'].join('')),
/* 19  */ 			over = function(){
/* 20  */ 				var $$ = $(this), menu = getMenu($$);
/* 21  */ 				clearTimeout(menu.sfTimer);
/* 22  */ 				$$.showSuperfishUl().siblings().hideSuperfishUl();
/* 23  */ 			},
/* 24  */ 			out = function(){
/* 25  */ 				var $$ = $(this), menu = getMenu($$), o = sf.op;
/* 26  */ 				clearTimeout(menu.sfTimer);
/* 27  */ 				menu.sfTimer=setTimeout(function(){
/* 28  */ 					o.retainPath=($.inArray($$[0],o.$path)>-1);
/* 29  */ 					$$.hideSuperfishUl();
/* 30  */ 					if (o.$path.length && $$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);}
/* 31  */ 				},o.delay);	
/* 32  */ 			},
/* 33  */ 			getMenu = function($menu){
/* 34  */ 				var menu = $menu.parents(['ul.',c.menuClass,':first'].join(''))[0];
/* 35  */ 				sf.op = sf.o[menu.serial];
/* 36  */ 				return menu;
/* 37  */ 			},
/* 38  */ 			addArrow = function($a){ $a.addClass(c.anchorClass).append($arrow.clone()); };
/* 39  */ 			
/* 40  */ 		return this.each(function() {
/* 41  */ 			var s = this.serial = sf.o.length;
/* 42  */ 			var o = $.extend({},sf.defaults,op);
/* 43  */ 			o.$path = $('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){
/* 44  */ 				$(this).addClass([o.hoverClass,c.bcClass].join(' '))
/* 45  */ 					.filter('li:has(ul)').removeClass(o.pathClass);
/* 46  */ 			});
/* 47  */ 			sf.o[s] = sf.op = o;
/* 48  */ 			
/* 49  */ 			$('li:has(ul)',this)[($.fn.hoverIntent && !o.disableHI) ? 'hoverIntent' : 'hover'](over,out).each(function() {
/* 50  */ 				if (o.autoArrows) addArrow( $('>a:first-child',this) );

/* superfish.js */

/* 51  */ 			})
/* 52  */ 			.not('.'+c.bcClass)
/* 53  */ 				.hideSuperfishUl();
/* 54  */ 			
/* 55  */ 			var $a = $('a',this);
/* 56  */ 			$a.each(function(i){
/* 57  */ 				var $li = $a.eq(i).parents('li');
/* 58  */ 				$a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);});
/* 59  */ 			});
/* 60  */ 			o.onInit.call(this);
/* 61  */ 			
/* 62  */ 		}).each(function() {
/* 63  */ 			var menuClasses = [c.menuClass];
/* 64  */ 			if (sf.op.dropShadows  && !($.browser.msie && $.browser.version < 7)) menuClasses.push(c.shadowClass);
/* 65  */ 			$(this).addClass(menuClasses.join(' '));
/* 66  */ 		});
/* 67  */ 	};
/* 68  */ 
/* 69  */ 	var sf = $.fn.superfish;
/* 70  */ 	sf.o = [];
/* 71  */ 	sf.op = {};
/* 72  */ 	sf.IE7fix = function(){
/* 73  */ 		var o = sf.op;
/* 74  */ 		if ($.browser.msie && $.browser.version > 6 && o.dropShadows && o.animation.opacity!=undefined)
/* 75  */ 			this.toggleClass(sf.c.shadowClass+'-off');
/* 76  */ 		};
/* 77  */ 	sf.c = {
/* 78  */ 		bcClass     : 'sf-breadcrumb',
/* 79  */ 		menuClass   : 'sf-js-enabled',
/* 80  */ 		anchorClass : 'sf-with-ul',
/* 81  */ 		arrowClass  : 'sf-sub-indicator',
/* 82  */ 		shadowClass : 'sf-shadow'
/* 83  */ 	};
/* 84  */ 	sf.defaults = {
/* 85  */ 		hoverClass	: 'sfHover',
/* 86  */ 		pathClass	: 'overideThisToUse',
/* 87  */ 		pathLevels	: 1,
/* 88  */ 		delay		: false,
/* 89  */ 		animation	: {slideDown:'show'},
/* 90  */ 		speed		: 'fast',
/* 91  */ 		autoArrows	: true,
/* 92  */ 		dropShadows : false,
/* 93  */ 		disableHI	: false,		// true disables hoverIntent detection
/* 94  */ 		onInit		: function(){}, // callback functions
/* 95  */ 		onBeforeShow: function(){},
/* 96  */ 		onShow		: function(){},
/* 97  */ 		onHide		: function(){}
/* 98  */ 	};
/* 99  */ 	$.fn.extend({
/* 100 */ 		hideSuperfishUl : function(){

/* superfish.js */

/* 101 */ 			var o = sf.op,
/* 102 */ 				not = (o.retainPath===true) ? o.$path : '';
/* 103 */ 			o.retainPath = false;
/* 104 */ 			var $ul = $(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass)
/* 105 */ 					.find('>ul').hide().css('visibility','hidden');
/* 106 */ 			o.onHide.call($ul);
/* 107 */ 			return this;
/* 108 */ 		},
/* 109 */ 		showSuperfishUl : function(){
/* 110 */ 			var o = sf.op,
/* 111 */ 				sh = sf.c.shadowClass+'-off',
/* 112 */ 				$ul = this.addClass(o.hoverClass)
/* 113 */ 					.find('>ul:hidden').css('visibility','visible');
/* 114 */ 			sf.IE7fix.call($ul);
/* 115 */ 			o.onBeforeShow.call($ul);
/* 116 */ 			$ul.animate(o.animation,o.speed,function(){ sf.IE7fix.call($ul); o.onShow.call($ul); });
/* 117 */ 			return this;
/* 118 */ 		}
/* 119 */ 	});
/* 120 */ 
/* 121 */ })(jQuery);
/* 122 */ 
;
/* jquery.jqtransform.js */

/* 1   */ /*
/* 2   *|  *
/* 3   *|  * jqTransform
/* 4   *|  * by mathieu vilaplana mvilaplana@dfc-e.com
/* 5   *|  * Designer ghyslain armand garmand@dfc-e.com
/* 6   *|  *
/* 7   *|  *
/* 8   *|  * Version 1.0 25.09.08
/* 9   *|  * Version 1.1 06.08.09
/* 10  *|  * Add event click on Checkbox and Radio
/* 11  *|  * Auto calculate the size of a select element
/* 12  *|  * Can now, disabled the elements
/* 13  *|  * Correct bug in ff if click on select (overflow=hidden)
/* 14  *|  * No need any more preloading !!
/* 15  *|  * 
/* 16  *|  ******************************************** */
/* 17  */  
/* 18  */ (function($){
/* 19  */ 	var defaultOptions = {preloadImg:true};
/* 20  */ 	var jqTransformImgPreloaded = false;
/* 21  */ 
/* 22  */ 	var jqTransformPreloadHoverFocusImg = function(strImgUrl) {
/* 23  */ 		//guillemets to remove for ie
/* 24  */ 		strImgUrl = strImgUrl.replace(/^url\((.*)\)/,'$1').replace(/^\"(.*)\"$/,'$1');
/* 25  */ 		var imgHover = new Image();
/* 26  */ 		imgHover.src = strImgUrl.replace(/\.([a-zA-Z]*)$/,'-hover.$1');
/* 27  */ 		var imgFocus = new Image();
/* 28  */ 		imgFocus.src = strImgUrl.replace(/\.([a-zA-Z]*)$/,'-focus.$1');				
/* 29  */ 	};
/* 30  */ 
/* 31  */ 	
/* 32  */ 	/***************************
/* 33  *| 	  Labels
/* 34  *| 	***************************/
/* 35  */ 	var jqTransformGetLabel = function(objfield){
/* 36  */ 		var selfForm = $(objfield.get(0).form);
/* 37  */ 		var oLabel = objfield.next();
/* 38  */ 		if(!oLabel.is('label')) {
/* 39  */ 			oLabel = objfield.prev();
/* 40  */ 			if(oLabel.is('label')){
/* 41  */ 				var inputname = objfield.attr('id');
/* 42  */ 				if(inputname){
/* 43  */ 					oLabel = selfForm.find('label[for="'+inputname+'"]');
/* 44  */ 				} 
/* 45  */ 			}
/* 46  */ 		}
/* 47  */ 		if(oLabel.is('label')){return oLabel.css('cursor','pointer');}
/* 48  */ 		return false;
/* 49  */ 	};
/* 50  */ 	

/* jquery.jqtransform.js */

/* 51  */ 	/* Hide all open selects */
/* 52  */ 	var jqTransformHideSelect = function(oTarget){
/* 53  */ 		var ulVisible = $('.jqTransformSelectWrapper ul:visible');
/* 54  */ 		ulVisible.each(function(){
/* 55  */ 			var oSelect = $(this).parents(".jqTransformSelectWrapper:first").find("select").get(0);
/* 56  */ 			//do not hide if click on the label object associated to the select
/* 57  */ 			if( !(oTarget && oSelect.oLabel && oSelect.oLabel.get(0) == oTarget.get(0)) ){$(this).hide();}
/* 58  */ 		});
/* 59  */ 	};
/* 60  */ 	/* Check for an external click */
/* 61  */ 	var jqTransformCheckExternalClick = function(event) {
/* 62  */ 		if ($(event.target).parents('.jqTransformSelectWrapper').length === 0) { jqTransformHideSelect($(event.target)); }
/* 63  */ 	};
/* 64  */ 
/* 65  */ 	/* Apply document listener */
/* 66  */ 	var jqTransformAddDocumentListener = function (){
/* 67  */ 		$(document).mousedown(jqTransformCheckExternalClick);
/* 68  */ 	};	
/* 69  */ 			
/* 70  */ 	/* Add a new handler for the reset action */
/* 71  */ 	var jqTransformReset = function(f){
/* 72  */ 		var sel;
/* 73  */ 		$('.jqTransformSelectWrapper select', f).each(function(){sel = (this.selectedIndex<0) ? 0 : this.selectedIndex; $('ul', $(this).parent()).each(function(){$('a:eq('+ sel +')', this).click();});});
/* 74  */ 		$('a.jqTransformCheckbox, a.jqTransformRadio', f).removeClass('jqTransformChecked');
/* 75  */ 		$('input:checkbox, input:radio', f).each(function(){if(this.checked){$('a', $(this).parent()).addClass('jqTransformChecked');}});
/* 76  */ 	};
/* 77  */ 
/* 78  */ 	/***************************
/* 79  *| 	  Buttons
/* 80  *| 	 ***************************/
/* 81  */ 	$.fn.jqTransInputButton = function(){
/* 82  */ 		return this.each(function(){
/* 83  */ 			var newBtn = $('<button id="'+ this.id +'" name="'+ this.name +'" type="'+ this.type +'" class="'+ this.className +' jqTransformButton"><span><span>'+ $(this).attr('value') +'</span></span>')
/* 84  */ 				.hover(function(){newBtn.addClass('jqTransformButton_hover');},function(){newBtn.removeClass('jqTransformButton_hover')})
/* 85  */ 				.mousedown(function(){newBtn.addClass('jqTransformButton_click')})
/* 86  */ 				.mouseup(function(){newBtn.removeClass('jqTransformButton_click')})
/* 87  */ 			;
/* 88  */ 			$(this).replaceWith(newBtn);
/* 89  */ 		});
/* 90  */ 	};
/* 91  */ 	
/* 92  */ 	/***************************
/* 93  *| 	  Text Fields 
/* 94  *| 	 ***************************/
/* 95  */ 	$.fn.jqTransInputText = function(){
/* 96  */ 		return this.each(function(){
/* 97  */ 			var $input = $(this);
/* 98  */ 	
/* 99  */ 			if($input.hasClass('jqtranformdone') || !$input.is('input')) {return;}
/* 100 */ 			$input.addClass('jqtranformdone');

/* jquery.jqtransform.js */

/* 101 */ 	
/* 102 */ 			var oLabel = jqTransformGetLabel($(this));
/* 103 */ 			oLabel && oLabel.bind('click',function(){$input.focus();});
/* 104 */ 	
/* 105 */ 			var inputSize=$input.width();
/* 106 */ 			if($input.attr('size')){
/* 107 */ 				inputSize = $input.attr('size')*10;
/* 108 */ 				$input.css('width',inputSize);
/* 109 */ 			}
/* 110 */ 			
/* 111 */ 			$input.addClass("jqTransformInput").wrap('<div class="jqTransformInputWrapper"><div class="jqTransformInputInner"><div></div></div></div>');
/* 112 */ 			var $wrapper = $input.parent().parent().parent();
/* 113 */ 			$wrapper.css("width", inputSize+10);
/* 114 */ 			$input
/* 115 */ 				.focus(function(){$wrapper.addClass("jqTransformInputWrapper_focus");})
/* 116 */ 				.blur(function(){$wrapper.removeClass("jqTransformInputWrapper_focus");})
/* 117 */ 				.hover(function(){$wrapper.addClass("jqTransformInputWrapper_hover");},function(){$wrapper.removeClass("jqTransformInputWrapper_hover");})
/* 118 */ 			;
/* 119 */ 	
/* 120 */ 			/* If this is safari we need to add an extra class */
/* 121 */ 			$.browser.safari && $wrapper.addClass('jqTransformSafari');
/* 122 */ 			$.browser.safari && $input.css('width',$wrapper.width()+16);
/* 123 */ 			this.wrapper = $wrapper;
/* 124 */ 			
/* 125 */ 		});
/* 126 */ 	};
/* 127 */ 	
/* 128 */ 	/***************************
/* 129 *| 	  Check Boxes 
/* 130 *| 	 ***************************/	
/* 131 */ 	$.fn.jqTransCheckBox = function(){
/* 132 */ 		return this.each(function(){
/* 133 */ 			if($(this).hasClass('jqTransformHidden')) {return;}
/* 134 */ 
/* 135 */ 			var $input = $(this);
/* 136 */ 			var inputSelf = this;
/* 137 */ 
/* 138 */ 			//set the click on the label
/* 139 */ 			var oLabel=jqTransformGetLabel($input);
/* 140 */ 			oLabel && oLabel.click(function(){aLink.trigger('click');});
/* 141 */ 			
/* 142 */ 			var aLink = $('<a href="#" class="jqTransformCheckbox"></a>');
/* 143 */ 			//wrap and add the link
/* 144 */ 			$input.addClass('jqTransformHidden').wrap('<span class="jqTransformCheckboxWrapper"></span>').parent().prepend(aLink);
/* 145 */ 			//on change, change the class of the link
/* 146 */ 			$input.change(function(){
/* 147 */ 				this.checked && aLink.addClass('jqTransformChecked') || aLink.removeClass('jqTransformChecked');
/* 148 */ 				return true;
/* 149 */ 			});
/* 150 */ 			// Click Handler, trigger the click and change event on the input

/* jquery.jqtransform.js */

/* 151 */ 			aLink.click(function(){
/* 152 */ 				//do nothing if the original input is disabled
/* 153 */ 				if($input.attr('disabled')){return false;}
/* 154 */ 				//trigger the envents on the input object
/* 155 */ 				$input.trigger('click').trigger("change");	
/* 156 */ 				return false;
/* 157 */ 			});
/* 158 */ 
/* 159 */ 			// set the default state
/* 160 */ 			this.checked && aLink.addClass('jqTransformChecked');		
/* 161 */ 		});
/* 162 */ 	};
/* 163 */ 	/***************************
/* 164 *| 	  Radio Buttons 
/* 165 *| 	 ***************************/	
/* 166 */ 	$.fn.jqTransRadio = function(){
/* 167 */ 		return this.each(function(){
/* 168 */ 			if($(this).hasClass('jqTransformHidden')) {return;}
/* 169 */ 
/* 170 */ 			var $input = $(this);
/* 171 */ 			var inputSelf = this;
/* 172 */ 				
/* 173 */ 			oLabel = jqTransformGetLabel($input);
/* 174 */ 			oLabel && oLabel.click(function(){aLink.trigger('click');});
/* 175 */ 	
/* 176 */ 			var aLink = $('<a href="#" class="jqTransformRadio" rel="'+ this.name +'"></a>');
/* 177 */ 			$input.addClass('jqTransformHidden').wrap('<span class="jqTransformRadioWrapper"></span>').parent().prepend(aLink);
/* 178 */ 			
/* 179 */ 			$input.change(function(){
/* 180 */ 				inputSelf.checked && aLink.addClass('jqTransformChecked') || aLink.removeClass('jqTransformChecked');
/* 181 */ 				return true;
/* 182 */ 			});
/* 183 */ 			// Click Handler
/* 184 */ 			aLink.click(function(){
/* 185 */ 				if($input.attr('disabled')){return false;}
/* 186 */ 				$input.trigger('click').trigger('change');
/* 187 */ 	
/* 188 */ 				// uncheck all others of same name input radio elements
/* 189 */ 				$('input[name="'+$input.attr('name')+'"]',inputSelf.form).not($input).each(function(){
/* 190 */ 					$(this).attr('type')=='radio' && $(this).trigger('change');
/* 191 */ 				});
/* 192 */ 	
/* 193 */ 				return false;					
/* 194 */ 			});
/* 195 */ 			// set the default state
/* 196 */ 			inputSelf.checked && aLink.addClass('jqTransformChecked');
/* 197 */ 		});
/* 198 */ 	};
/* 199 */ 	
/* 200 */ 	/***************************

/* jquery.jqtransform.js */

/* 201 *| 	  TextArea 
/* 202 *| 	 ***************************/	
/* 203 */ 	$.fn.jqTransTextarea = function(){
/* 204 */ 		return this.each(function(){
/* 205 */ 			var textarea = $(this);
/* 206 */ 	
/* 207 */ 			if(textarea.hasClass('jqtransformdone')) {return;}
/* 208 */ 			textarea.addClass('jqtransformdone');
/* 209 */ 	
/* 210 */ 			oLabel = jqTransformGetLabel(textarea);
/* 211 */ 			oLabel && oLabel.click(function(){textarea.focus();});
/* 212 */ 			
/* 213 */ 			var strTable = '<table cellspacing="0" cellpadding="0" border="0" class="jqTransformTextarea">';
/* 214 */ 			strTable +='<tr><td id="jqTransformTextarea-tl"></td><td id="jqTransformTextarea-tm"></td><td id="jqTransformTextarea-tr"></td></tr>';
/* 215 */ 			strTable +='<tr><td id="jqTransformTextarea-ml">&nbsp;</td><td id="jqTransformTextarea-mm"><div></div></td><td id="jqTransformTextarea-mr">&nbsp;</td></tr>';	
/* 216 */ 			strTable +='<tr><td id="jqTransformTextarea-bl"></td><td id="jqTransformTextarea-bm"></td><td id="jqTransformTextarea-br"></td></tr>';
/* 217 */ 			strTable +='</table>';					
/* 218 */ 			var oTable = $(strTable)
/* 219 */ 					.insertAfter(textarea)
/* 220 */ 					.hover(function(){
/* 221 */ 						!oTable.hasClass('jqTransformTextarea-focus') && oTable.addClass('jqTransformTextarea-hover');
/* 222 */ 					},function(){
/* 223 */ 						oTable.removeClass('jqTransformTextarea-hover');					
/* 224 */ 					})
/* 225 */ 				;
/* 226 */ 				
/* 227 */ 			textarea
/* 228 */ 				.focus(function(){oTable.removeClass('jqTransformTextarea-hover').addClass('jqTransformTextarea-focus');})
/* 229 */ 				.blur(function(){oTable.removeClass('jqTransformTextarea-focus');})
/* 230 */ 				.appendTo($('#jqTransformTextarea-mm div',oTable))
/* 231 */ 			;
/* 232 */ 			this.oTable = oTable;
/* 233 */ 			if($.browser.safari){
/* 234 */ 				$('#jqTransformTextarea-mm',oTable)
/* 235 */ 					.addClass('jqTransformSafariTextarea')
/* 236 */ 					.find('div')
/* 237 */ 						.css('height',textarea.height())
/* 238 */ 						.css('width',textarea.width())
/* 239 */ 				;
/* 240 */ 			}
/* 241 */ 		});
/* 242 */ 	};
/* 243 */ 	
/* 244 */ 	/***************************
/* 245 *| 	  Select 
/* 246 *| 	 ***************************/	
/* 247 */ 	$.fn.jqTransSelect = function(){
/* 248 */ 		return this.each(function(index){
/* 249 */ 			var $select = $(this);
/* 250 */ 

/* jquery.jqtransform.js */

/* 251 */ 			if($select.hasClass('jqTransformHidden')) {return;}
/* 252 */ 			if($select.attr('multiple')) {return;}
/* 253 */ 
/* 254 */ 			var oLabel  =  jqTransformGetLabel($select);
/* 255 */ 			/* First thing we do is Wrap it */
/* 256 */ 			var $wrapper = $select
/* 257 */ 				.addClass('jqTransformHidden')
/* 258 */ 				.wrap('<div class="jqTransformSelectWrapper"></div>')
/* 259 */ 				.parent()
/* 260 */ 				.css({zIndex: 10-index})
/* 261 */ 			;
/* 262 */ 			
/* 263 */ 			/* Now add the html for the select */
/* 264 */ 			$wrapper.prepend('<div><span></span><a href="#" class="jqTransformSelectOpen"></a></div><ul></ul>');
/* 265 */ 			var $ul = $('ul', $wrapper).css('width',$select.width()).hide();
/* 266 */ 			/* Now we add the options */
/* 267 */ 			$('option', this).each(function(i){
/* 268 */ 				var oLi = $('<li><a href="#" index="'+ i +'">'+ $(this).html() +'</a></li>');
/* 269 */ 				$ul.append(oLi);
/* 270 */ 			});
/* 271 */ 			
/* 272 */ 			/* Add click handler to the a */
/* 273 */ 			$ul.find('a').click(function(){
/* 274 */ 					$('a.selected', $wrapper).removeClass('selected');
/* 275 */ 					$(this).addClass('selected');	
/* 276 */ 					/* Fire the onchange event */
/* 277 */ 					if ($select[0].selectedIndex != $(this).attr('index') && $select[0].onchange) { $select[0].selectedIndex = $(this).attr('index'); $select[0].onchange(); }
/* 278 */ 					$select[0].selectedIndex = $(this).attr('index');
/* 279 */ 					$('span:eq(0)', $wrapper).html($(this).html());
/* 280 */ 					$ul.hide();
/* 281 */ 					return false;
/* 282 */ 			});
/* 283 */ 			/* Set the default */
/* 284 */ 			$('a:eq('+ this.selectedIndex +')', $ul).click();
/* 285 */ 			$('span:first', $wrapper).click(function(){$("a.jqTransformSelectOpen",$wrapper).trigger('click');});
/* 286 */ 			oLabel && oLabel.click(function(){$("a.jqTransformSelectOpen",$wrapper).trigger('click');});
/* 287 */ 			this.oLabel = oLabel;
/* 288 */ 			
/* 289 */ 			/* Apply the click handler to the Open */
/* 290 */ 			var oLinkOpen = $('a.jqTransformSelectOpen', $wrapper)
/* 291 */ 				.click(function(){
/* 292 */ 					//Check if box is already open to still allow toggle, but close all other selects
/* 293 */ 					if( $ul.css('display') == 'none' ) {jqTransformHideSelect();} 
/* 294 */ 					if($select.attr('disabled')){return false;}
/* 295 */ 
/* 296 */ 					$ul.slideToggle('fast', function(){					
/* 297 */ 						var offSet = ($('a.selected', $ul).offset().top - $ul.offset().top);
/* 298 */ 						$ul.animate({scrollTop: offSet});
/* 299 */ 					});
/* 300 */ 					return false;

/* jquery.jqtransform.js */

/* 301 */ 				})
/* 302 */ 			;
/* 303 */ 
/* 304 */ 			// Set the new width
/* 305 */ 			var iSelectWidth = $select.outerWidth();
/* 306 */ 			var oSpan = $('span:first',$wrapper);
/* 307 */ 			var newWidth = (iSelectWidth > oSpan.innerWidth())?iSelectWidth+oLinkOpen.outerWidth():$wrapper.width();
/* 308 */ 			$wrapper.css('width',newWidth);
/* 309 */ 			$ul.css('width',newWidth-2);
/* 310 */ 			oSpan.css({width:iSelectWidth});
/* 311 */ 		
/* 312 */ 			// Calculate the height if necessary, less elements that the default height
/* 313 */ 			//show the ul to calculate the block, if ul is not displayed li height value is 0
/* 314 */ 			$ul.css({display:'block',visibility:'hidden'});
/* 315 */ 			var iSelectHeight = ($('li',$ul).length)*($('li:first',$ul).height());//+1 else bug ff
/* 316 */ 			(iSelectHeight < $ul.height()) && $ul.css({height:iSelectHeight,'overflow':'hidden'});//hidden else bug with ff
/* 317 */ 			$ul.css({display:'none',visibility:'visible'});
/* 318 */ 			
/* 319 */ 		});
/* 320 */ 	};
/* 321 */ 	$.fn.jqTransform = function(options){
/* 322 */ 		var opt = $.extend({},defaultOptions,options);
/* 323 */ 		
/* 324 */ 		/* each form */
/* 325 */ 		 return this.each(function(){
/* 326 */ 			var selfForm = $(this);
/* 327 */ 			if(selfForm.hasClass('jqtransformdone')) {return;}
/* 328 */ 			selfForm.addClass('jqtransformdone');
/* 329 */ 			
/* 330 */ 			$('input:submit, input:reset, input[type="button"]', this).jqTransInputButton();			
/* 331 */ 			$('input:text, input:password', this).jqTransInputText();			
/* 332 */ 			$('input:checkbox', this).jqTransCheckBox();
/* 333 */ 			$('input:radio', this).jqTransRadio();
/* 334 */ 			$('textarea', this).jqTransTextarea();
/* 335 */ 			
/* 336 */ 			if( $('select', this).jqTransSelect().length > 0 ){jqTransformAddDocumentListener();}
/* 337 */ 			selfForm.bind('reset',function(){var action = function(){jqTransformReset(this);}; window.setTimeout(action, 10);});
/* 338 */ 			
/* 339 */ 			//preloading dont needed anymore since normal, focus and hover image are the same one
/* 340 */ 			/*if(opt.preloadImg && !jqTransformImgPreloaded){
/* 341 *| 				jqTransformImgPreloaded = true;
/* 342 *| 				var oInputText = $('input:text:first', selfForm);
/* 343 *| 				if(oInputText.length > 0){
/* 344 *| 					//pour ie on eleve les ""
/* 345 *| 					var strWrapperImgUrl = oInputText.get(0).wrapper.css('background-image');
/* 346 *| 					jqTransformPreloadHoverFocusImg(strWrapperImgUrl);					
/* 347 *| 					var strInnerImgUrl = $('div.jqTransformInputInner',$(oInputText.get(0).wrapper)).css('background-image');
/* 348 *| 					jqTransformPreloadHoverFocusImg(strInnerImgUrl);
/* 349 *| 				}
/* 350 *| 				

/* jquery.jqtransform.js */

/* 351 *| 				var oTextarea = $('textarea',selfForm);
/* 352 *| 				if(oTextarea.length > 0){
/* 353 *| 					var oTable = oTextarea.get(0).oTable;
/* 354 *| 					$('td',oTable).each(function(){
/* 355 *| 						var strImgBack = $(this).css('background-image');
/* 356 *| 						jqTransformPreloadHoverFocusImg(strImgBack);
/* 357 *| 					});
/* 358 *| 				}
/* 359 *| 			}*/
/* 360 */ 			
/* 361 */ 			
/* 362 */ 		}); /* End Form each */
/* 363 */ 				
/* 364 */ 	};/* End the Plugin */
/* 365 */ 
/* 366 */ })(jQuery);
/* 367 */ 				   
