r71373 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71372‎ | r71373 | r71374 >
Date:19:48, 20 August 2010
Author:ialex
Status:ok
Tags:
Comment:
svn:eol-style native
Modified paths:
  • /trunk/extensions/SemanticDrilldown/libs/SemanticDrilldown.js (modified) (history)
  • /trunk/extensions/SemanticDrilldown/libs/jquery-1.4.2.min.js (modified) (history)
  • /trunk/extensions/SemanticDrilldown/libs/jquery-ui/jquery-ui-i18n.js (modified) (history)
  • /trunk/extensions/SemanticDrilldown/libs/jquery-ui/jquery.ui.autocomplete.min.js (modified) (history)
  • /trunk/extensions/SemanticDrilldown/libs/jquery-ui/jquery.ui.button.min.js (modified) (history)
  • /trunk/extensions/SemanticDrilldown/libs/jquery-ui/jquery.ui.core.min.js (modified) (history)
  • /trunk/extensions/SemanticDrilldown/libs/jquery-ui/jquery.ui.position.min.js (modified) (history)
  • /trunk/extensions/SemanticDrilldown/libs/jquery-ui/jquery.ui.widget.min.js (modified) (history)
  • /trunk/extensions/SemanticDrilldown/skins/jquery-ui/base/jquery.ui.all.css (modified) (history)
  • /trunk/extensions/SemanticDrilldown/skins/jquery-ui/base/jquery.ui.autocomplete.css (modified) (history)
  • /trunk/extensions/SemanticDrilldown/skins/jquery-ui/base/jquery.ui.base.css (modified) (history)
  • /trunk/extensions/SemanticDrilldown/skins/jquery-ui/base/jquery.ui.button.css (modified) (history)
  • /trunk/extensions/SemanticDrilldown/skins/jquery-ui/base/jquery.ui.core.css (modified) (history)
  • /trunk/extensions/SemanticDrilldown/skins/jquery-ui/base/jquery.ui.theme.css (modified) (history)
  • /trunk/extensions/SemanticForms/libs/SF_autogrow.js (modified) (history)
  • /trunk/extensions/SemanticForms/libs/jquery-1.4.2.min.js (modified) (history)
  • /trunk/extensions/SemanticForms/libs/jquery-ui/jquery-ui-i18n.js (modified) (history)
  • /trunk/extensions/SemanticForms/libs/jquery-ui/jquery.ui.autocomplete.min.js (modified) (history)
  • /trunk/extensions/SemanticForms/libs/jquery-ui/jquery.ui.button.min.js (modified) (history)
  • /trunk/extensions/SemanticForms/libs/jquery-ui/jquery.ui.core.min.js (modified) (history)
  • /trunk/extensions/SemanticForms/libs/jquery-ui/jquery.ui.datepicker.min.js (modified) (history)
  • /trunk/extensions/SemanticForms/libs/jquery-ui/jquery.ui.position.min.js (modified) (history)
  • /trunk/extensions/SemanticForms/libs/jquery-ui/jquery.ui.widget.min.js (modified) (history)
  • /trunk/extensions/SemanticForms/libs/jquery.fancybox-1.3.1.js (modified) (history)
  • /trunk/extensions/SemanticForms/skins/jquery.fancybox-1.3.1.css (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/libs/jquery-ui/jquery-ui-i18n.js (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/libs/jquery-ui/jquery.ui.autocomplete.min.js (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/libs/jquery-ui/jquery.ui.button.min.js (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/libs/jquery-ui/jquery.ui.core.min.js (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/libs/jquery-ui/jquery.ui.datepicker.min.js (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/libs/jquery-ui/jquery.ui.position.min.js (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/libs/jquery-ui/jquery.ui.widget.min.js (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/demos.css (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.accordion.css (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.all.css (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.autocomplete.css (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.base.css (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.button.css (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.core.css (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.datepicker.css (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.dialog.css (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.progressbar.css (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.resizable.css (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.selectable.css (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.slider.css (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.tabs.css (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.theme.css (modified) (history)
  • /trunk/extensions/SemanticResultFormats/jqPlot/README (modified) (history)
  • /trunk/extensions/SemanticResultFormats/jqPlot/SRF_jqPlotBar.php (modified) (history)
  • /trunk/extensions/SemanticResultFormats/jqPlot/SRF_jqPlotPie.php (modified) (history)
  • /trunk/extensions/SemanticResultFormats/jqPlot/jqplot.barRenderer.min.js (modified) (history)
  • /trunk/extensions/SemanticResultFormats/jqPlot/jqplot.canvasAxisTickRenderer.min.js (modified) (history)
  • /trunk/extensions/SemanticResultFormats/jqPlot/jqplot.canvasTextRenderer.min.js (modified) (history)
  • /trunk/extensions/SemanticResultFormats/jqPlot/jqplot.categoryAxisRenderer.min.js (modified) (history)
  • /trunk/extensions/SemanticResultFormats/jqPlot/jqplot.pieRenderer.min.js (modified) (history)
  • /trunk/extensions/SemanticResultFormats/jqPlot/jqplot.trendline.min.js (modified) (history)
  • /trunk/extensions/SemanticResultFormats/jqPlot/jquery-1.4.2.min.js (modified) (history)
  • /trunk/extensions/SemanticResultFormats/jqPlot/jquery.jqplot.css (modified) (history)
  • /trunk/extensions/SemanticResultFormats/jqPlot/jquery.jqplot.min.js (modified) (history)

Diff [purge]

Property changes on: trunk/extensions/SemanticDrilldown/skins/jquery-ui/base/jquery.ui.theme.css
___________________________________________________________________
Added: svn:eol-style
11 + native
Property changes on: trunk/extensions/SemanticDrilldown/skins/jquery-ui/base/jquery.ui.all.css
___________________________________________________________________
Added: svn:eol-style
22 + native
Property changes on: trunk/extensions/SemanticDrilldown/skins/jquery-ui/base/jquery.ui.core.css
___________________________________________________________________
Added: svn:eol-style
33 + native
Property changes on: trunk/extensions/SemanticDrilldown/skins/jquery-ui/base/jquery.ui.base.css
___________________________________________________________________
Added: svn:eol-style
44 + native
Property changes on: trunk/extensions/SemanticDrilldown/skins/jquery-ui/base/jquery.ui.button.css
___________________________________________________________________
Added: svn:eol-style
55 + native
Property changes on: trunk/extensions/SemanticDrilldown/skins/jquery-ui/base/jquery.ui.autocomplete.css
___________________________________________________________________
Added: svn:eol-style
66 + native
Property changes on: trunk/extensions/SemanticDrilldown/libs/jquery-ui/jquery.ui.core.min.js
___________________________________________________________________
Added: svn:eol-style
77 + native
Property changes on: trunk/extensions/SemanticDrilldown/libs/jquery-ui/jquery-ui-i18n.js
___________________________________________________________________
Added: svn:eol-style
88 + native
Property changes on: trunk/extensions/SemanticDrilldown/libs/jquery-ui/jquery.ui.button.min.js
___________________________________________________________________
Added: svn:eol-style
99 + native
Property changes on: trunk/extensions/SemanticDrilldown/libs/jquery-ui/jquery.ui.autocomplete.min.js
___________________________________________________________________
Added: svn:eol-style
1010 + native
Property changes on: trunk/extensions/SemanticDrilldown/libs/jquery-ui/jquery.ui.widget.min.js
___________________________________________________________________
Added: svn:eol-style
1111 + native
Property changes on: trunk/extensions/SemanticDrilldown/libs/jquery-ui/jquery.ui.position.min.js
___________________________________________________________________
Added: svn:eol-style
1212 + native
Property changes on: trunk/extensions/SemanticDrilldown/libs/jquery-1.4.2.min.js
___________________________________________________________________
Added: svn:eol-style
1313 + native
Index: trunk/extensions/SemanticDrilldown/libs/SemanticDrilldown.js
@@ -1,70 +1,70 @@
2 -/**
3 - * SemanticDrilldown.js
4 - *
5 - * Javascript code for use by the Semantic Drilldown extension.
6 - *
7 - * @author Sanyam Goyal
8 - */
9 -(function(jQuery) {
10 - jQuery.widget("ui.combobox", {
11 - _create: function() {
12 - var self = this;
13 - var select = this.element.hide();
14 - var inp_id = select[0].options[0].value;
15 - var curval = select[0].name;
16 - var input = jQuery("<input id = \""+inp_id+"\" type=\"text\" name=\""+inp_id+"\" value=\""+curval+"\">")
17 - .insertAfter(select)
18 - .autocomplete({
19 - source: function(request, response) {
20 - var matcher = new RegExp("\\b" + request.term, "i" );
21 - response(select.children("option").map(function() {
22 - var text = jQuery(this).text();
23 - if (this.value && (!request.term || matcher.test(text)))
24 - return {
25 - id: this.value,
26 - label: text.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + jQuery.ui.autocomplete.escapeRegex(request.term) + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<strong>$1</strong>"),
27 - value: text
28 - };
29 - }));
30 - },
31 - delay: 0,
32 - change: function(event, ui) {
33 - if (!ui.item) {
34 - // if it didn't match anything,
35 - // just leave it as it is
36 - return false;
37 - }
38 - select.val(ui.item.id);
39 - self._trigger("selected", event, {
40 - item: select.find("[value='" + ui.item.id + "']")
41 - });
42 -
43 - },
44 - minLength: 0
45 - })
46 - .addClass("ui-widget ui-widget-content ui-corner-left");
47 - jQuery("<button type=\"button\">&nbsp;</button>")
48 - .attr("tabIndex", -1)
49 - .attr("title", "Show All Items")
50 - .insertAfter(input)
51 - .button({
52 - icons: {
53 - primary: "ui-icon-triangle-1-s"
54 - },
55 - text: false
56 - }).removeClass("ui-corner-all")
57 - .addClass("ui-corner-right ui-button-icon")
58 - .click(function() {
59 - // close if already visible
60 - if (input.autocomplete("widget").is(":visible")) {
61 - input.autocomplete("close");
62 - return;
63 - }
64 - // pass empty string as value to search for, displaying all results
65 - input.autocomplete("search", "");
66 - input.focus();
67 - });
68 - }
69 - });
70 -
71 -})(jQuery);
 2+/**
 3+ * SemanticDrilldown.js
 4+ *
 5+ * Javascript code for use by the Semantic Drilldown extension.
 6+ *
 7+ * @author Sanyam Goyal
 8+ */
 9+(function(jQuery) {
 10+ jQuery.widget("ui.combobox", {
 11+ _create: function() {
 12+ var self = this;
 13+ var select = this.element.hide();
 14+ var inp_id = select[0].options[0].value;
 15+ var curval = select[0].name;
 16+ var input = jQuery("<input id = \""+inp_id+"\" type=\"text\" name=\""+inp_id+"\" value=\""+curval+"\">")
 17+ .insertAfter(select)
 18+ .autocomplete({
 19+ source: function(request, response) {
 20+ var matcher = new RegExp("\\b" + request.term, "i" );
 21+ response(select.children("option").map(function() {
 22+ var text = jQuery(this).text();
 23+ if (this.value && (!request.term || matcher.test(text)))
 24+ return {
 25+ id: this.value,
 26+ label: text.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + jQuery.ui.autocomplete.escapeRegex(request.term) + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<strong>$1</strong>"),
 27+ value: text
 28+ };
 29+ }));
 30+ },
 31+ delay: 0,
 32+ change: function(event, ui) {
 33+ if (!ui.item) {
 34+ // if it didn't match anything,
 35+ // just leave it as it is
 36+ return false;
 37+ }
 38+ select.val(ui.item.id);
 39+ self._trigger("selected", event, {
 40+ item: select.find("[value='" + ui.item.id + "']")
 41+ });
 42+
 43+ },
 44+ minLength: 0
 45+ })
 46+ .addClass("ui-widget ui-widget-content ui-corner-left");
 47+ jQuery("<button type=\"button\">&nbsp;</button>")
 48+ .attr("tabIndex", -1)
 49+ .attr("title", "Show All Items")
 50+ .insertAfter(input)
 51+ .button({
 52+ icons: {
 53+ primary: "ui-icon-triangle-1-s"
 54+ },
 55+ text: false
 56+ }).removeClass("ui-corner-all")
 57+ .addClass("ui-corner-right ui-button-icon")
 58+ .click(function() {
 59+ // close if already visible
 60+ if (input.autocomplete("widget").is(":visible")) {
 61+ input.autocomplete("close");
 62+ return;
 63+ }
 64+ // pass empty string as value to search for, displaying all results
 65+ input.autocomplete("search", "");
 66+ input.focus();
 67+ });
 68+ }
 69+ });
 70+
 71+})(jQuery);
Property changes on: trunk/extensions/SemanticDrilldown/libs/SemanticDrilldown.js
___________________________________________________________________
Added: svn:eol-style
7272 + native
Property changes on: trunk/extensions/SemanticResultFormats/jqPlot/jquery.jqplot.min.js
___________________________________________________________________
Added: svn:eol-style
7373 + native
Index: trunk/extensions/SemanticResultFormats/jqPlot/SRF_jqPlotPie.php
@@ -1,123 +1,123 @@
2 -<?php
3 -/**
4 - * A query printer for pie charts using the jqPlot JavaScript library.
5 - *
6 - * @author Sanyam Goyal
7 - */
8 -
9 -if ( !defined( 'MEDIAWIKI' ) ) {
10 - die( 'Not an entry point.' );
11 -}
12 -
13 -class SRFjqPlotPie extends SMWResultPrinter {
14 - protected $m_width = 400;
15 - protected $m_height = 400;
16 - protected $m_charttitle = " ";
17 - static protected $m_piechartnum = 1;
18 -
19 - protected function readParameters( $params, $outputmode ) {
20 - SMWResultPrinter::readParameters( $params, $outputmode );
21 - if ( array_key_exists( 'width', $this->m_params ) ) {
22 - $this->m_width = $this->m_params['width'];
23 - }
24 - if ( array_key_exists( 'height', $this->m_params ) ) {
25 - $this->m_height = $this->m_params['height'];
26 - }
27 - if ( array_key_exists( 'charttitle', $this->m_params ) ) {
28 - $this->m_charttitle = $this->m_params['charttitle'];
29 - }
30 - }
31 -
32 - public function getName() {
33 - return wfMsg( 'srf_printername_jqplotpie' );
34 - }
35 -
36 - protected function getResultText( $res, $outputmode ) {
37 - global $smwgIQRunningNumber, $wgOut, $srfgScriptPath, $smwgScriptPath;
38 - global $wgParser;
39 - global $smwgJQueryIncluded, $srfgJQPlotIncluded;
40 -
41 - $wgParser->disableCache();
42 -
43 - if ( !$smwgJQueryIncluded ) {
44 - if ( method_exists( 'OutputPage', 'includeJQuery' ) ) {
45 - $wgOut->includeJQuery();
46 - } else {
47 - $scripts[] = "$srfgScriptPath/jqPlot/jquery-1.4.2.min.js";
48 - }
49 - $smwgJQueryIncluded = true;
50 - }
51 -
52 - if ( !$srfgJQPlotIncluded ) {
53 - $srfgJQPlotIncluded = true;
54 - $wgOut->addScriptFile( "$srfgScriptPath/jqPlot/jquery.jqplot.min.js" );
55 - }
56 -
57 - if ( self::$m_piechartnum == 1 ) {
58 - $wgOut->addScriptFile( "$srfgScriptPath/jqPlot/jqplot.pieRenderer.min.js" );
59 - }
60 -
61 - // CSS file
62 - $wgOut->addExtensionStyle( "$srfgScriptPath/jqPlot/jquery.jqplot.css" );
63 - $this->isHTML = true;
64 -
65 - $t = "";
66 - $pie_data = array();
67 - // print all result rows
68 - while ( $row = $res->getNext() ) {
69 - $name = $row[0]->getNextObject()->getShortWikiText();
70 - foreach ( $row as $field ) {
71 - while ( ( $object = $field->getNextObject() ) !== false ) {
72 - if ( $object->isNumeric() ) { // use numeric sortkey
73 - if ( method_exists( $object, 'getValueKey' ) ) {
74 - $nr = $object->getValueKey();
75 - } else {
76 - $nr = $object->getNumericValue();
77 - }
78 - $jqplot_data[] .= "['$name', $nr]";
79 - }
80 - }
81 - }
82 - }
83 - $jqplot_data_str = "[[" . implode( ', ', $jqplot_data ) . "]]";
84 - $pieID = 'pie' . self::$m_piechartnum;
85 - self::$m_piechartnum++;
86 -
87 - $js_pie =<<<END
88 -<script type="text/javascript">
89 -jQuery.noConflict();
90 -jQuery(document).ready(function(){
91 - jQuery.jqplot.config.enablePlugins = true;
92 - plot1 = jQuery.jqplot('$pieID', $jqplot_data_str, {
93 - title: '$this->m_charttitle',
94 - seriesDefaults: {
95 - renderer: jQuery.jqplot.PieRenderer,
96 - rendererOptions: {
97 - sliceMargin:2
98 - }
99 - },
100 - legend: { show:true }
101 - });
102 -});
103 -</script>
104 -
105 -END;
106 - $wgOut->addScript($js_pie);
107 -
108 - $text =<<<END
109 -<div id="$pieID" style="margin-top: 20px; margin-left: 20px; width: {$this->m_width}px; height: {$this->m_height}px;"></div>
110 -
111 -END;
112 - return $text;
113 - }
114 -
115 - public function getParameters() {
116 - return array(
117 - array( 'name' => 'limit', 'type' => 'int', 'description' => wfMsg( 'smw_paramdesc_limit' ) ),
118 - array( 'name' => 'height', 'type' => 'int', 'description' => wfMsg( 'srf_paramdesc_chartheight' ) ),
119 - array( 'name' => 'charttitle', 'type' => 'string', 'description' => wfMsg( 'srf_paramdesc_charttitle' ) ),
120 - array( 'name' => 'width', 'type' => 'int', 'description' => wfMsg( 'srf_paramdesc_chartwidth' ) ),
121 - );
122 - }
123 -
124 -}
 2+<?php
 3+/**
 4+ * A query printer for pie charts using the jqPlot JavaScript library.
 5+ *
 6+ * @author Sanyam Goyal
 7+ */
 8+
 9+if ( !defined( 'MEDIAWIKI' ) ) {
 10+ die( 'Not an entry point.' );
 11+}
 12+
 13+class SRFjqPlotPie extends SMWResultPrinter {
 14+ protected $m_width = 400;
 15+ protected $m_height = 400;
 16+ protected $m_charttitle = " ";
 17+ static protected $m_piechartnum = 1;
 18+
 19+ protected function readParameters( $params, $outputmode ) {
 20+ SMWResultPrinter::readParameters( $params, $outputmode );
 21+ if ( array_key_exists( 'width', $this->m_params ) ) {
 22+ $this->m_width = $this->m_params['width'];
 23+ }
 24+ if ( array_key_exists( 'height', $this->m_params ) ) {
 25+ $this->m_height = $this->m_params['height'];
 26+ }
 27+ if ( array_key_exists( 'charttitle', $this->m_params ) ) {
 28+ $this->m_charttitle = $this->m_params['charttitle'];
 29+ }
 30+ }
 31+
 32+ public function getName() {
 33+ return wfMsg( 'srf_printername_jqplotpie' );
 34+ }
 35+
 36+ protected function getResultText( $res, $outputmode ) {
 37+ global $smwgIQRunningNumber, $wgOut, $srfgScriptPath, $smwgScriptPath;
 38+ global $wgParser;
 39+ global $smwgJQueryIncluded, $srfgJQPlotIncluded;
 40+
 41+ $wgParser->disableCache();
 42+
 43+ if ( !$smwgJQueryIncluded ) {
 44+ if ( method_exists( 'OutputPage', 'includeJQuery' ) ) {
 45+ $wgOut->includeJQuery();
 46+ } else {
 47+ $scripts[] = "$srfgScriptPath/jqPlot/jquery-1.4.2.min.js";
 48+ }
 49+ $smwgJQueryIncluded = true;
 50+ }
 51+
 52+ if ( !$srfgJQPlotIncluded ) {
 53+ $srfgJQPlotIncluded = true;
 54+ $wgOut->addScriptFile( "$srfgScriptPath/jqPlot/jquery.jqplot.min.js" );
 55+ }
 56+
 57+ if ( self::$m_piechartnum == 1 ) {
 58+ $wgOut->addScriptFile( "$srfgScriptPath/jqPlot/jqplot.pieRenderer.min.js" );
 59+ }
 60+
 61+ // CSS file
 62+ $wgOut->addExtensionStyle( "$srfgScriptPath/jqPlot/jquery.jqplot.css" );
 63+ $this->isHTML = true;
 64+
 65+ $t = "";
 66+ $pie_data = array();
 67+ // print all result rows
 68+ while ( $row = $res->getNext() ) {
 69+ $name = $row[0]->getNextObject()->getShortWikiText();
 70+ foreach ( $row as $field ) {
 71+ while ( ( $object = $field->getNextObject() ) !== false ) {
 72+ if ( $object->isNumeric() ) { // use numeric sortkey
 73+ if ( method_exists( $object, 'getValueKey' ) ) {
 74+ $nr = $object->getValueKey();
 75+ } else {
 76+ $nr = $object->getNumericValue();
 77+ }
 78+ $jqplot_data[] .= "['$name', $nr]";
 79+ }
 80+ }
 81+ }
 82+ }
 83+ $jqplot_data_str = "[[" . implode( ', ', $jqplot_data ) . "]]";
 84+ $pieID = 'pie' . self::$m_piechartnum;
 85+ self::$m_piechartnum++;
 86+
 87+ $js_pie =<<<END
 88+<script type="text/javascript">
 89+jQuery.noConflict();
 90+jQuery(document).ready(function(){
 91+ jQuery.jqplot.config.enablePlugins = true;
 92+ plot1 = jQuery.jqplot('$pieID', $jqplot_data_str, {
 93+ title: '$this->m_charttitle',
 94+ seriesDefaults: {
 95+ renderer: jQuery.jqplot.PieRenderer,
 96+ rendererOptions: {
 97+ sliceMargin:2
 98+ }
 99+ },
 100+ legend: { show:true }
 101+ });
 102+});
 103+</script>
 104+
 105+END;
 106+ $wgOut->addScript($js_pie);
 107+
 108+ $text =<<<END
 109+<div id="$pieID" style="margin-top: 20px; margin-left: 20px; width: {$this->m_width}px; height: {$this->m_height}px;"></div>
 110+
 111+END;
 112+ return $text;
 113+ }
 114+
 115+ public function getParameters() {
 116+ return array(
 117+ array( 'name' => 'limit', 'type' => 'int', 'description' => wfMsg( 'smw_paramdesc_limit' ) ),
 118+ array( 'name' => 'height', 'type' => 'int', 'description' => wfMsg( 'srf_paramdesc_chartheight' ) ),
 119+ array( 'name' => 'charttitle', 'type' => 'string', 'description' => wfMsg( 'srf_paramdesc_charttitle' ) ),
 120+ array( 'name' => 'width', 'type' => 'int', 'description' => wfMsg( 'srf_paramdesc_chartwidth' ) ),
 121+ );
 122+ }
 123+
 124+}
Property changes on: trunk/extensions/SemanticResultFormats/jqPlot/SRF_jqPlotPie.php
___________________________________________________________________
Added: svn:eol-style
125125 + native
Property changes on: trunk/extensions/SemanticResultFormats/jqPlot/jqplot.canvasAxisTickRenderer.min.js
___________________________________________________________________
Added: svn:eol-style
126126 + native
Property changes on: trunk/extensions/SemanticResultFormats/jqPlot/jqplot.pieRenderer.min.js
___________________________________________________________________
Added: svn:eol-style
127127 + native
Property changes on: trunk/extensions/SemanticResultFormats/jqPlot/jqplot.trendline.min.js
___________________________________________________________________
Added: svn:eol-style
128128 + native
Property changes on: trunk/extensions/SemanticResultFormats/jqPlot/jqplot.canvasTextRenderer.min.js
___________________________________________________________________
Added: svn:eol-style
129129 + native
Property changes on: trunk/extensions/SemanticResultFormats/jqPlot/jquery-1.4.2.min.js
___________________________________________________________________
Added: svn:eol-style
130130 + native
Index: trunk/extensions/SemanticResultFormats/jqPlot/README
@@ -1,12 +1,12 @@
2 -The result formats contained in this directory are query printers for
3 -Semantic MediaWiki that display charts using the jqPlot Javascript library:
4 -
5 -http://www.jqplot.com/
6 -
7 -jqPlot itself uses the jQuery Javascript library.
8 -
9 -Currently the directory holds two query printers, for bar and pie charts.
10 -
11 -For more information about the jqPlot result formats, see:
12 -
13 -http://www.mediawiki.org/wiki/Extension:Semantic_Result_Formats/jqplotbar_and_jqplotpie_formats
 2+The result formats contained in this directory are query printers for
 3+Semantic MediaWiki that display charts using the jqPlot Javascript library:
 4+
 5+http://www.jqplot.com/
 6+
 7+jqPlot itself uses the jQuery Javascript library.
 8+
 9+Currently the directory holds two query printers, for bar and pie charts.
 10+
 11+For more information about the jqPlot result formats, see:
 12+
 13+http://www.mediawiki.org/wiki/Extension:Semantic_Result_Formats/jqplotbar_and_jqplotpie_formats
Property changes on: trunk/extensions/SemanticResultFormats/jqPlot/README
___________________________________________________________________
Added: svn:eol-style
1414 + native
Index: trunk/extensions/SemanticResultFormats/jqPlot/SRF_jqPlotBar.php
@@ -1,188 +1,188 @@
2 -<?php
3 -/**
4 -* A query printer for bar charts using the jqPlot JavaScript library.
5 - *
6 - * @author Sanyam Goyal
7 - * @author Yaron Koren
8 - */
9 -
10 -if ( !defined( 'MEDIAWIKI' ) ) {
11 - die( 'Not an entry point.' );
12 -}
13 -
14 -class SRFjqPlotBar extends SMWResultPrinter {
15 - protected $m_width = '150';
16 - protected $m_height = '400';
17 - protected $m_charttitle = ' ';
18 - protected $m_barcolor = '#85802b' ;
19 - protected $m_bardirection = 'vertical';
20 - protected $m_numbersaxislabel = ' ';
21 - static protected $m_barchartnum = 1;
22 -
23 - protected function readParameters( $params, $outputmode ) {
24 - SMWResultPrinter::readParameters( $params, $outputmode );
25 - if ( array_key_exists( 'width', $this->m_params ) ) {
26 - $this->m_width = $this->m_params['width'];
27 - }
28 - if ( array_key_exists( 'height', $this->m_params ) ) {
29 - $this->m_height = $this->m_params['height'];
30 - }
31 - if ( array_key_exists( 'charttitle', $this->m_params ) ) {
32 - $this->m_charttitle = $this->m_params['charttitle'];
33 - }
34 - if ( array_key_exists( 'barcolor', $this->m_params ) ) {
35 - $this->m_barcolor = $this->m_params['barcolor'];
36 - }
37 - if ( array_key_exists( 'bardirection', $this->m_params ) ) {
38 - // keep it simple - only 'horizontal' makes sense as
39 - // an alternate value
40 - if ( $this->m_params['bardirection'] == 'horizontal' ) {
41 - $this->m_bardirection = $this->m_params['bardirection'];
42 - }
43 - }
44 - else{
45 - $this->m_bardirection = 'vertical';
46 - }
47 - if ( array_key_exists( 'numbersaxislabel', $this->m_params ) ) {
48 - $this->m_numbersaxislabel = $this->m_params['numbersaxislabel'];
49 - }
50 - }
51 -
52 - public function getName() {
53 - return wfMsg( 'srf_printername_jqplotbar' );
54 - }
55 -
56 - protected function getResultText( $res, $outputmode ) {
57 - global $smwgIQRunningNumber, $wgOut, $srfgScriptPath;
58 - global $srfgJQPlotIncluded, $smwgJQueryIncluded;
59 - global $wgParser;
60 - $wgParser->disableCache();
61 -
62 - //adding scripts - this code may be moved to some other location
63 - $scripts = array();
64 - if ( !$smwgJQueryIncluded ) {
65 - if ( method_exists( 'OutputPage', 'includeJQuery' ) ) {
66 - $wgOut->includeJQuery();
67 - } else {
68 - $scripts[] = "$srfgScriptPath/jqPlot/jquery-1.4.2.min.js";
69 - }
70 - $smwgJQueryIncluded = true;
71 - }
72 -
73 - if ( !$srfgJQPlotIncluded ) {
74 - $scripts[] = "$srfgScriptPath/jqPlot/jquery.jqplot.min.js";
75 - $srfgJQPlotIncluded = true;
76 - }
77 -
78 - if ( self::$m_barchartnum == 1 ) {
79 - $scripts[] = "$srfgScriptPath/jqPlot/jqplot.categoryAxisRenderer.min.js";
80 - $scripts[] = "$srfgScriptPath/jqPlot/jqplot.barRenderer.min.js";
81 - $scripts[] = "$srfgScriptPath/jqPlot/jqplot.canvasAxisTickRenderer.min.js";
82 - $scripts[] = "$srfgScriptPath/jqPlot/jqplot.canvasTextRenderer.min.js";
83 - }
84 -
85 - foreach ( $scripts as $script ) {
86 - $wgOut->addScriptFile( $script );
87 - }
88 -
89 - // CSS file
90 - $wgOut->addExtensionStyle( "$srfgScriptPath/jqPlot/jquery.jqplot.css" );
91 - $this->isHTML = true;
92 -
93 - $numbers = array();
94 - $labels = array();
95 - // print all result rows
96 - $count = 0;
97 - while ( $row = $res->getNext() ) {
98 - $name = $row[0]->getNextObject()->getShortWikiText();
99 - foreach ( $row as $field ) {
100 - while ( ( $object = $field->getNextObject() ) !== false ) {
101 - if ( $object->isNumeric() ) { // use numeric sortkey
102 - if ( method_exists( $object, 'getValueKey' ) ) {
103 - $nr = $object->getValueKey();
104 - } else {
105 - $nr = $object->getNumericValue();
106 - }
107 - $count++;
108 -
109 - if ( $this->m_bardirection == 'horizontal' ) {
110 - $numbers[] = "[$nr, $count]";
111 - } else {
112 - $numbers[] = "$nr";
113 - }
114 - $labels[] = "'$name'";
115 - }
116 - }
117 - }
118 - }
119 - $barID = 'bar' . self::$m_barchartnum;
120 - self::$m_barchartnum++;
121 -
122 - $labels_str = implode( ', ', $labels );
123 - $numbers_str = implode( ', ', $numbers );
124 - $labels_axis ="xaxis";
125 - $numbers_axis = "yaxis";
126 - $angle_val = -40;
127 - $barmargin= 30;
128 - if ( $this->m_bardirection == 'horizontal' ) {
129 - $labels_axis ="yaxis";
130 - $numbers_axis ="xaxis";
131 - $angle_val = 0;
132 - $barmargin = 8 ;
133 - }
134 - $barwidth = 20; // width of each bar
135 - $bardistance = 4; // distance between two bars
136 - $js_bar =<<<END
137 -<script type="text/javascript">
138 -jQuery.noConflict();
139 -jQuery(document).ready(function(){
140 - jQuery.jqplot.config.enablePlugins = true;
141 - plot1 = jQuery.jqplot('$barID', [[$numbers_str]], {
142 - title: '{$this->m_charttitle}',
143 - seriesColors: ['$this->m_barcolor'],
144 - series: [ {
145 - renderer: jQuery.jqplot.BarRenderer, rendererOptions: {
146 - barDirection: '{$this->m_bardirection}',
147 - barPadding: 6,
148 - barMargin: $barmargin
149 - }
150 - }],
151 - axes: {
152 - $labels_axis: {
153 - renderer: jQuery.jqplot.CategoryAxisRenderer,
154 - ticks: [$labels_str],
155 - tickRenderer: jQuery.jqplot.CanvasAxisTickRenderer,
156 - tickOptions: {
157 - angle: $angle_val
158 - }
159 - },
160 - $numbers_axis: {
161 - autoscale: true,
162 - label: '{$this->m_numbersaxislabel}'
163 - }
164 - }
165 - });
166 -});
167 -</script>
168 -
169 -END;
170 - $wgOut->addScript($js_bar);
171 - $text =<<<END
172 -<div id="$barID" style="margin-top: 20px; margin-left: 20px; width: {$this->m_width}px; height: {$this->m_height}px;"></div>
173 -
174 -END;
175 - return $text;
176 - }
177 -
178 - public function getParameters() {
179 - return array(
180 - array( 'name' => 'limit', 'type' => 'int', 'description' => wfMsg( 'smw_paramdesc_limit' ) ),
181 - array( 'name' => 'height', 'type' => 'int', 'description' => wfMsg( 'srf_paramdesc_chartheight' ) ),
182 - array( 'name' => 'charttitle', 'type' => 'string', 'description' => wfMsg( 'srf_paramdesc_charttitle' ) ),
183 - array( 'name' => 'barcolor', 'type' => 'string', 'description' => wfMsg( 'srf_paramdesc_barcolor' ) ),
184 - array( 'name' => 'bardirection', 'type' => 'enumeration', 'description' => wfMsg( 'srf_paramdesc_bardirection' ),'values' => array('horizontal', 'vertical')),
185 - array( 'name' => 'numbersaxislabel', 'type' => 'string', 'description' => wfMsg( 'srf_paramdesc_barnumbersaxislabel' ) ),
186 - array( 'name' => 'width', 'type' => 'int', 'description' => wfMsg( 'srf_paramdesc_chartwidth' ) ),
187 - );
188 - }
189 -}
 2+<?php
 3+/**
 4+* A query printer for bar charts using the jqPlot JavaScript library.
 5+ *
 6+ * @author Sanyam Goyal
 7+ * @author Yaron Koren
 8+ */
 9+
 10+if ( !defined( 'MEDIAWIKI' ) ) {
 11+ die( 'Not an entry point.' );
 12+}
 13+
 14+class SRFjqPlotBar extends SMWResultPrinter {
 15+ protected $m_width = '150';
 16+ protected $m_height = '400';
 17+ protected $m_charttitle = ' ';
 18+ protected $m_barcolor = '#85802b' ;
 19+ protected $m_bardirection = 'vertical';
 20+ protected $m_numbersaxislabel = ' ';
 21+ static protected $m_barchartnum = 1;
 22+
 23+ protected function readParameters( $params, $outputmode ) {
 24+ SMWResultPrinter::readParameters( $params, $outputmode );
 25+ if ( array_key_exists( 'width', $this->m_params ) ) {
 26+ $this->m_width = $this->m_params['width'];
 27+ }
 28+ if ( array_key_exists( 'height', $this->m_params ) ) {
 29+ $this->m_height = $this->m_params['height'];
 30+ }
 31+ if ( array_key_exists( 'charttitle', $this->m_params ) ) {
 32+ $this->m_charttitle = $this->m_params['charttitle'];
 33+ }
 34+ if ( array_key_exists( 'barcolor', $this->m_params ) ) {
 35+ $this->m_barcolor = $this->m_params['barcolor'];
 36+ }
 37+ if ( array_key_exists( 'bardirection', $this->m_params ) ) {
 38+ // keep it simple - only 'horizontal' makes sense as
 39+ // an alternate value
 40+ if ( $this->m_params['bardirection'] == 'horizontal' ) {
 41+ $this->m_bardirection = $this->m_params['bardirection'];
 42+ }
 43+ }
 44+ else{
 45+ $this->m_bardirection = 'vertical';
 46+ }
 47+ if ( array_key_exists( 'numbersaxislabel', $this->m_params ) ) {
 48+ $this->m_numbersaxislabel = $this->m_params['numbersaxislabel'];
 49+ }
 50+ }
 51+
 52+ public function getName() {
 53+ return wfMsg( 'srf_printername_jqplotbar' );
 54+ }
 55+
 56+ protected function getResultText( $res, $outputmode ) {
 57+ global $smwgIQRunningNumber, $wgOut, $srfgScriptPath;
 58+ global $srfgJQPlotIncluded, $smwgJQueryIncluded;
 59+ global $wgParser;
 60+ $wgParser->disableCache();
 61+
 62+ //adding scripts - this code may be moved to some other location
 63+ $scripts = array();
 64+ if ( !$smwgJQueryIncluded ) {
 65+ if ( method_exists( 'OutputPage', 'includeJQuery' ) ) {
 66+ $wgOut->includeJQuery();
 67+ } else {
 68+ $scripts[] = "$srfgScriptPath/jqPlot/jquery-1.4.2.min.js";
 69+ }
 70+ $smwgJQueryIncluded = true;
 71+ }
 72+
 73+ if ( !$srfgJQPlotIncluded ) {
 74+ $scripts[] = "$srfgScriptPath/jqPlot/jquery.jqplot.min.js";
 75+ $srfgJQPlotIncluded = true;
 76+ }
 77+
 78+ if ( self::$m_barchartnum == 1 ) {
 79+ $scripts[] = "$srfgScriptPath/jqPlot/jqplot.categoryAxisRenderer.min.js";
 80+ $scripts[] = "$srfgScriptPath/jqPlot/jqplot.barRenderer.min.js";
 81+ $scripts[] = "$srfgScriptPath/jqPlot/jqplot.canvasAxisTickRenderer.min.js";
 82+ $scripts[] = "$srfgScriptPath/jqPlot/jqplot.canvasTextRenderer.min.js";
 83+ }
 84+
 85+ foreach ( $scripts as $script ) {
 86+ $wgOut->addScriptFile( $script );
 87+ }
 88+
 89+ // CSS file
 90+ $wgOut->addExtensionStyle( "$srfgScriptPath/jqPlot/jquery.jqplot.css" );
 91+ $this->isHTML = true;
 92+
 93+ $numbers = array();
 94+ $labels = array();
 95+ // print all result rows
 96+ $count = 0;
 97+ while ( $row = $res->getNext() ) {
 98+ $name = $row[0]->getNextObject()->getShortWikiText();
 99+ foreach ( $row as $field ) {
 100+ while ( ( $object = $field->getNextObject() ) !== false ) {
 101+ if ( $object->isNumeric() ) { // use numeric sortkey
 102+ if ( method_exists( $object, 'getValueKey' ) ) {
 103+ $nr = $object->getValueKey();
 104+ } else {
 105+ $nr = $object->getNumericValue();
 106+ }
 107+ $count++;
 108+
 109+ if ( $this->m_bardirection == 'horizontal' ) {
 110+ $numbers[] = "[$nr, $count]";
 111+ } else {
 112+ $numbers[] = "$nr";
 113+ }
 114+ $labels[] = "'$name'";
 115+ }
 116+ }
 117+ }
 118+ }
 119+ $barID = 'bar' . self::$m_barchartnum;
 120+ self::$m_barchartnum++;
 121+
 122+ $labels_str = implode( ', ', $labels );
 123+ $numbers_str = implode( ', ', $numbers );
 124+ $labels_axis ="xaxis";
 125+ $numbers_axis = "yaxis";
 126+ $angle_val = -40;
 127+ $barmargin= 30;
 128+ if ( $this->m_bardirection == 'horizontal' ) {
 129+ $labels_axis ="yaxis";
 130+ $numbers_axis ="xaxis";
 131+ $angle_val = 0;
 132+ $barmargin = 8 ;
 133+ }
 134+ $barwidth = 20; // width of each bar
 135+ $bardistance = 4; // distance between two bars
 136+ $js_bar =<<<END
 137+<script type="text/javascript">
 138+jQuery.noConflict();
 139+jQuery(document).ready(function(){
 140+ jQuery.jqplot.config.enablePlugins = true;
 141+ plot1 = jQuery.jqplot('$barID', [[$numbers_str]], {
 142+ title: '{$this->m_charttitle}',
 143+ seriesColors: ['$this->m_barcolor'],
 144+ series: [ {
 145+ renderer: jQuery.jqplot.BarRenderer, rendererOptions: {
 146+ barDirection: '{$this->m_bardirection}',
 147+ barPadding: 6,
 148+ barMargin: $barmargin
 149+ }
 150+ }],
 151+ axes: {
 152+ $labels_axis: {
 153+ renderer: jQuery.jqplot.CategoryAxisRenderer,
 154+ ticks: [$labels_str],
 155+ tickRenderer: jQuery.jqplot.CanvasAxisTickRenderer,
 156+ tickOptions: {
 157+ angle: $angle_val
 158+ }
 159+ },
 160+ $numbers_axis: {
 161+ autoscale: true,
 162+ label: '{$this->m_numbersaxislabel}'
 163+ }
 164+ }
 165+ });
 166+});
 167+</script>
 168+
 169+END;
 170+ $wgOut->addScript($js_bar);
 171+ $text =<<<END
 172+<div id="$barID" style="margin-top: 20px; margin-left: 20px; width: {$this->m_width}px; height: {$this->m_height}px;"></div>
 173+
 174+END;
 175+ return $text;
 176+ }
 177+
 178+ public function getParameters() {
 179+ return array(
 180+ array( 'name' => 'limit', 'type' => 'int', 'description' => wfMsg( 'smw_paramdesc_limit' ) ),
 181+ array( 'name' => 'height', 'type' => 'int', 'description' => wfMsg( 'srf_paramdesc_chartheight' ) ),
 182+ array( 'name' => 'charttitle', 'type' => 'string', 'description' => wfMsg( 'srf_paramdesc_charttitle' ) ),
 183+ array( 'name' => 'barcolor', 'type' => 'string', 'description' => wfMsg( 'srf_paramdesc_barcolor' ) ),
 184+ array( 'name' => 'bardirection', 'type' => 'enumeration', 'description' => wfMsg( 'srf_paramdesc_bardirection' ),'values' => array('horizontal', 'vertical')),
 185+ array( 'name' => 'numbersaxislabel', 'type' => 'string', 'description' => wfMsg( 'srf_paramdesc_barnumbersaxislabel' ) ),
 186+ array( 'name' => 'width', 'type' => 'int', 'description' => wfMsg( 'srf_paramdesc_chartwidth' ) ),
 187+ );
 188+ }
 189+}
Property changes on: trunk/extensions/SemanticResultFormats/jqPlot/SRF_jqPlotBar.php
___________________________________________________________________
Added: svn:eol-style
190190 + native
Property changes on: trunk/extensions/SemanticResultFormats/jqPlot/jqplot.categoryAxisRenderer.min.js
___________________________________________________________________
Added: svn:eol-style
191191 + native
Property changes on: trunk/extensions/SemanticResultFormats/jqPlot/jquery.jqplot.css
___________________________________________________________________
Added: svn:eol-style
192192 + native
Property changes on: trunk/extensions/SemanticResultFormats/jqPlot/jqplot.barRenderer.min.js
___________________________________________________________________
Added: svn:eol-style
193193 + native
Property changes on: trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.theme.css
___________________________________________________________________
Added: svn:eol-style
194194 + native
Property changes on: trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.selectable.css
___________________________________________________________________
Added: svn:eol-style
195195 + native
Property changes on: trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.all.css
___________________________________________________________________
Added: svn:eol-style
196196 + native
Property changes on: trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.base.css
___________________________________________________________________
Added: svn:eol-style
197197 + native
Property changes on: trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.button.css
___________________________________________________________________
Added: svn:eol-style
198198 + native
Property changes on: trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.datepicker.css
___________________________________________________________________
Added: svn:eol-style
199199 + native
Property changes on: trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/demos.css
___________________________________________________________________
Added: svn:eol-style
200200 + native
Property changes on: trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.resizable.css
___________________________________________________________________
Added: svn:eol-style
201201 + native
Property changes on: trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.slider.css
___________________________________________________________________
Added: svn:eol-style
202202 + native
Property changes on: trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.core.css
___________________________________________________________________
Added: svn:eol-style
203203 + native
Property changes on: trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.progressbar.css
___________________________________________________________________
Added: svn:eol-style
204204 + native
Property changes on: trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.tabs.css
___________________________________________________________________
Added: svn:eol-style
205205 + native
Property changes on: trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.dialog.css
___________________________________________________________________
Added: svn:eol-style
206206 + native
Property changes on: trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.accordion.css
___________________________________________________________________
Added: svn:eol-style
207207 + native
Property changes on: trunk/extensions/SemanticMediaWiki/skins/jquery-ui/base/jquery.ui.autocomplete.css
___________________________________________________________________
Added: svn:eol-style
208208 + native
Property changes on: trunk/extensions/SemanticMediaWiki/libs/jquery-ui/jquery.ui.autocomplete.min.js
___________________________________________________________________
Added: svn:eol-style
209209 + native
Property changes on: trunk/extensions/SemanticMediaWiki/libs/jquery-ui/jquery.ui.widget.min.js
___________________________________________________________________
Added: svn:eol-style
210210 + native
Property changes on: trunk/extensions/SemanticMediaWiki/libs/jquery-ui/jquery.ui.position.min.js
___________________________________________________________________
Added: svn:eol-style
211211 + native
Property changes on: trunk/extensions/SemanticMediaWiki/libs/jquery-ui/jquery.ui.core.min.js
___________________________________________________________________
Added: svn:eol-style
212212 + native
Property changes on: trunk/extensions/SemanticMediaWiki/libs/jquery-ui/jquery-ui-i18n.js
___________________________________________________________________
Added: svn:eol-style
213213 + native
Property changes on: trunk/extensions/SemanticMediaWiki/libs/jquery-ui/jquery.ui.button.min.js
___________________________________________________________________
Added: svn:eol-style
214214 + native
Property changes on: trunk/extensions/SemanticMediaWiki/libs/jquery-ui/jquery.ui.datepicker.min.js
___________________________________________________________________
Added: svn:eol-style
215215 + native
Index: trunk/extensions/SemanticForms/skins/jquery.fancybox-1.3.1.css
@@ -1,363 +1,363 @@
2 -/*
3 - * FancyBox - jQuery Plugin
4 - * Simple and fancy lightbox alternative
5 - *
6 - * Examples and documentation at: http://fancybox.net
7 - *
8 - * Copyright (c) 2008 - 2010 Janis Skarnelis
9 - *
10 - * Version: 1.3.1 (05/03/2010)
11 - * Requires: jQuery v1.3+
12 - *
13 - * Dual licensed under the MIT and GPL licenses:
14 - * http://www.opensource.org/licenses/mit-license.php
15 - * http://www.gnu.org/licenses/gpl.html
16 - */
17 -
18 -#fancybox-loading {
19 - position: fixed;
20 - top: 50%;
21 - left: 50%;
22 - height: 40px;
23 - width: 40px;
24 - margin-top: -20px;
25 - margin-left: -20px;
26 - cursor: pointer;
27 - overflow: hidden;
28 - z-index: 1104;
29 - display: none;
30 -}
31 -
32 -* html #fancybox-loading { /* IE6 */
33 - position: absolute;
34 - margin-top: 0;
35 -}
36 -
37 -#fancybox-loading div {
38 - position: absolute;
39 - top: 0;
40 - left: 0;
41 - width: 40px;
42 - height: 480px;
43 - background-image: url('fancybox.png');
44 -}
45 -
46 -#fancybox-overlay {
47 - position: fixed;
48 - top: 0;
49 - left: 0;
50 - bottom: 0;
51 - right: 0;
52 - background: #000;
53 - z-index: 1100;
54 - display: none;
55 -}
56 -
57 -* html #fancybox-overlay { /* IE6 */
58 - position: absolute;
59 - width: 100%;
60 -}
61 -
62 -#fancybox-tmp {
63 - padding: 0;
64 - margin: 0;
65 - border: 0;
66 - overflow: auto;
67 - display: none;
68 -}
69 -
70 -#fancybox-wrap {
71 - position: absolute;
72 - top: 0;
73 - left: 0;
74 - margin: 0;
75 - padding: 20px;
76 - z-index: 1101;
77 - display: none;
78 -}
79 -
80 -#fancybox-outer {
81 - position: relative;
82 - width: 100%;
83 - height: 100%;
84 - background: #FFF;
85 -}
86 -
87 -#fancybox-inner {
88 - position: absolute;
89 - top: 0;
90 - left: 0;
91 - width: 1px;
92 - height: 1px;
93 - padding: 0;
94 - margin: 0;
95 - outline: none;
96 - overflow: hidden;
97 -}
98 -
99 -#fancybox-hide-sel-frame {
100 - position: absolute;
101 - top: 0;
102 - left: 0;
103 - width: 100%;
104 - height: 100%;
105 - background: transparent;
106 -}
107 -
108 -#fancybox-close {
109 - position: absolute;
110 - top: -15px;
111 - right: -15px;
112 - width: 27px;
113 - height: 30px;
114 - background-image: url('../skins/fancy_close.png');
115 - background-position: -34px 0px;
116 - cursor: pointer;
117 - z-index: 1103;
118 - display: none;
119 -}
120 -
121 -#fancybox_error {
122 - color: #444;
123 - font: normal 12px/20px Arial;
124 - padding: 7px;
125 - margin: 0;
126 -}
127 -
128 -#fancybox-content {
129 - height: auto;
130 - width: auto;
131 - padding: 0;
132 - margin: 0;
133 -}
134 -
135 -#fancybox-img {
136 - width: 100%;
137 - height: 100%;
138 - padding: 0;
139 - margin: 0;
140 - border: none;
141 - outline: none;
142 - line-height: 0;
143 - vertical-align: top;
144 - -ms-interpolation-mode: bicubic;
145 -}
146 -
147 -#fancybox-frame {
148 - position: relative;
149 - width: 100%;
150 - height: 100%;
151 - border: none;
152 - display: block;
153 -}
154 -
155 -#fancybox-title {
156 - position: absolute;
157 - bottom: 0;
158 - left: 0;
159 - font-family: Arial;
160 - font-size: 12px;
161 - z-index: 1102;
162 -}
163 -
164 -.fancybox-title-inside {
165 - padding: 10px 0;
166 - text-align: center;
167 - color: #333;
168 -}
169 -
170 -.fancybox-title-outside {
171 - padding-top: 5px;
172 - color: #FFF;
173 - text-align: center;
174 - font-weight: bold;
175 -}
176 -
177 -.fancybox-title-over {
178 - color: #FFF;
179 - text-align: left;
180 -}
181 -
182 -#fancybox-title-over {
183 - padding: 10px;
184 - background-image: url('fancy_title_over.png');
185 - display: block;
186 -}
187 -
188 -#fancybox-title-wrap {
189 - display: inline-block;
190 -}
191 -
192 -#fancybox-title-wrap span {
193 - height: 32px;
194 - float: left;
195 -}
196 -
197 -#fancybox-title-left {
198 - padding-left: 15px;
199 - background-image: url('fancybox.png');
200 - background-position: -40px -90px;
201 - background-repeat: no-repeat;
202 -}
203 -
204 -#fancybox-title-main {
205 - font-weight: bold;
206 - line-height: 29px;
207 - background-image: url('fancybox-x.png');
208 - background-position: 0px -40px;
209 - color: #FFF;
210 -}
211 -
212 -#fancybox-title-right {
213 - padding-left: 15px;
214 - background-image: url('fancybox.png');
215 - background-position: -55px -90px;
216 - background-repeat: no-repeat;
217 -}
218 -
219 -#fancybox-left, #fancybox-right {
220 - position: absolute;
221 - bottom: 0px;
222 - height: 100%;
223 - width: 35%;
224 - cursor: pointer;
225 - outline: none;
226 - background-image: url('blank.gif');
227 - z-index: 1102;
228 - display: none;
229 -}
230 -
231 -#fancybox-left {
232 - left: 0px;
233 -}
234 -
235 -#fancybox-right {
236 - right: 0px;
237 -}
238 -
239 -#fancybox-left-ico, #fancybox-right-ico {
240 - position: absolute;
241 - top: 50%;
242 - left: -9999px;
243 - width: 30px;
244 - height: 30px;
245 - margin-top: -15px;
246 - cursor: pointer;
247 - z-index: 1102;
248 - display: block;
249 -}
250 -
251 -#fancybox-left-ico {
252 - background-image: url('fancybox.png');
253 - background-position: -40px -30px;
254 -}
255 -
256 -#fancybox-right-ico {
257 - background-image: url('fancybox.png');
258 - background-position: -40px -60px;
259 -}
260 -
261 -#fancybox-left:hover, #fancybox-right:hover {
262 - visibility: visible; /* IE6 */
263 -}
264 -
265 -#fancybox-left:hover span {
266 - left: 20px;
267 -}
268 -
269 -#fancybox-right:hover span {
270 - left: auto;
271 - right: 20px;
272 -}
273 -
274 -.fancy-bg {
275 - position: absolute;
276 - padding: 0;
277 - margin: 0;
278 - border: 0;
279 - width: 20px;
280 - height: 20px;
281 - z-index: 1001;
282 -}
283 -
284 -#fancy-bg-n {
285 - top: -20px;
286 - left: 0;
287 - width: 100%;
288 - background-image: url('fancybox-x.png');
289 -}
290 -
291 -#fancy-bg-ne {
292 - top: -20px;
293 - right: -20px;
294 - background-image: url('fancybox.png');
295 - background-position: -40px -162px;
296 -}
297 -
298 -#fancy-bg-e {
299 - top: 0;
300 - right: -20px;
301 - height: 100%;
302 - background-image: url('fancybox-y.png');
303 - background-position: -20px 0px;
304 -}
305 -
306 -#fancy-bg-se {
307 - bottom: -20px;
308 - right: -20px;
309 - background-image: url('fancybox.png');
310 - background-position: -40px -182px;
311 -}
312 -
313 -#fancy-bg-s {
314 - bottom: -20px;
315 - left: 0;
316 - width: 100%;
317 - background-image: url('fancybox-x.png');
318 - background-position: 0px -20px;
319 -}
320 -
321 -#fancy-bg-sw {
322 - bottom: -20px;
323 - left: -20px;
324 - background-image: url('fancybox.png');
325 - background-position: -40px -142px;
326 -}
327 -
328 -#fancy-bg-w {
329 - top: 0;
330 - left: -20px;
331 - height: 100%;
332 - background-image: url('fancybox-y.png');
333 -}
334 -
335 -#fancy-bg-nw {
336 - top: -20px;
337 - left: -20px;
338 - background-image: url('fancybox.png');
339 - background-position: -40px -122px;
340 -}
341 -
342 -/* IE */
343 -
344 -#fancybox-loading.fancybox-ie div { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/loading.gif', sizingMethod='scale'); }
345 -.fancybox-ie #fancybox-close { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancy_close.png', sizingMethod='scale'); }
346 -
347 -.fancybox-ie #fancybox-title-over { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_title_over.png', sizingMethod='scale'); zoom: 1; }
348 -.fancybox-ie #fancybox-title-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_title_left.png', sizingMethod='scale'); }
349 -.fancybox-ie #fancybox-title-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_title_main.png', sizingMethod='scale'); }
350 -.fancybox-ie #fancybox-title-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_title_right.png', sizingMethod='scale'); }
351 -
352 -.fancybox-ie #fancybox-left-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_nav_left.png', sizingMethod='scale'); }
353 -.fancybox-ie #fancybox-right-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_nav_right.png', sizingMethod='scale'); }
354 -
355 -.fancybox-ie .fancy-bg { background: transparent !important; }
356 -
357 -.fancybox-ie #fancy-bg-n { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_shadow_n.png', sizingMethod='scale'); }
358 -.fancybox-ie #fancy-bg-ne { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_shadow_ne.png', sizingMethod='scale'); }
359 -.fancybox-ie #fancy-bg-e { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_shadow_e.png', sizingMethod='scale'); }
360 -.fancybox-ie #fancy-bg-se { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_shadow_se.png', sizingMethod='scale'); }
361 -.fancybox-ie #fancy-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_shadow_s.png', sizingMethod='scale'); }
362 -.fancybox-ie #fancy-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_shadow_sw.png', sizingMethod='scale'); }
363 -.fancybox-ie #fancy-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_shadow_w.png', sizingMethod='scale'); }
364 -.fancybox-ie #fancy-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_shadow_nw.png', sizingMethod='scale'); }
 2+/*
 3+ * FancyBox - jQuery Plugin
 4+ * Simple and fancy lightbox alternative
 5+ *
 6+ * Examples and documentation at: http://fancybox.net
 7+ *
 8+ * Copyright (c) 2008 - 2010 Janis Skarnelis
 9+ *
 10+ * Version: 1.3.1 (05/03/2010)
 11+ * Requires: jQuery v1.3+
 12+ *
 13+ * Dual licensed under the MIT and GPL licenses:
 14+ * http://www.opensource.org/licenses/mit-license.php
 15+ * http://www.gnu.org/licenses/gpl.html
 16+ */
 17+
 18+#fancybox-loading {
 19+ position: fixed;
 20+ top: 50%;
 21+ left: 50%;
 22+ height: 40px;
 23+ width: 40px;
 24+ margin-top: -20px;
 25+ margin-left: -20px;
 26+ cursor: pointer;
 27+ overflow: hidden;
 28+ z-index: 1104;
 29+ display: none;
 30+}
 31+
 32+* html #fancybox-loading { /* IE6 */
 33+ position: absolute;
 34+ margin-top: 0;
 35+}
 36+
 37+#fancybox-loading div {
 38+ position: absolute;
 39+ top: 0;
 40+ left: 0;
 41+ width: 40px;
 42+ height: 480px;
 43+ background-image: url('fancybox.png');
 44+}
 45+
 46+#fancybox-overlay {
 47+ position: fixed;
 48+ top: 0;
 49+ left: 0;
 50+ bottom: 0;
 51+ right: 0;
 52+ background: #000;
 53+ z-index: 1100;
 54+ display: none;
 55+}
 56+
 57+* html #fancybox-overlay { /* IE6 */
 58+ position: absolute;
 59+ width: 100%;
 60+}
 61+
 62+#fancybox-tmp {
 63+ padding: 0;
 64+ margin: 0;
 65+ border: 0;
 66+ overflow: auto;
 67+ display: none;
 68+}
 69+
 70+#fancybox-wrap {
 71+ position: absolute;
 72+ top: 0;
 73+ left: 0;
 74+ margin: 0;
 75+ padding: 20px;
 76+ z-index: 1101;
 77+ display: none;
 78+}
 79+
 80+#fancybox-outer {
 81+ position: relative;
 82+ width: 100%;
 83+ height: 100%;
 84+ background: #FFF;
 85+}
 86+
 87+#fancybox-inner {
 88+ position: absolute;
 89+ top: 0;
 90+ left: 0;
 91+ width: 1px;
 92+ height: 1px;
 93+ padding: 0;
 94+ margin: 0;
 95+ outline: none;
 96+ overflow: hidden;
 97+}
 98+
 99+#fancybox-hide-sel-frame {
 100+ position: absolute;
 101+ top: 0;
 102+ left: 0;
 103+ width: 100%;
 104+ height: 100%;
 105+ background: transparent;
 106+}
 107+
 108+#fancybox-close {
 109+ position: absolute;
 110+ top: -15px;
 111+ right: -15px;
 112+ width: 27px;
 113+ height: 30px;
 114+ background-image: url('../skins/fancy_close.png');
 115+ background-position: -34px 0px;
 116+ cursor: pointer;
 117+ z-index: 1103;
 118+ display: none;
 119+}
 120+
 121+#fancybox_error {
 122+ color: #444;
 123+ font: normal 12px/20px Arial;
 124+ padding: 7px;
 125+ margin: 0;
 126+}
 127+
 128+#fancybox-content {
 129+ height: auto;
 130+ width: auto;
 131+ padding: 0;
 132+ margin: 0;
 133+}
 134+
 135+#fancybox-img {
 136+ width: 100%;
 137+ height: 100%;
 138+ padding: 0;
 139+ margin: 0;
 140+ border: none;
 141+ outline: none;
 142+ line-height: 0;
 143+ vertical-align: top;
 144+ -ms-interpolation-mode: bicubic;
 145+}
 146+
 147+#fancybox-frame {
 148+ position: relative;
 149+ width: 100%;
 150+ height: 100%;
 151+ border: none;
 152+ display: block;
 153+}
 154+
 155+#fancybox-title {
 156+ position: absolute;
 157+ bottom: 0;
 158+ left: 0;
 159+ font-family: Arial;
 160+ font-size: 12px;
 161+ z-index: 1102;
 162+}
 163+
 164+.fancybox-title-inside {
 165+ padding: 10px 0;
 166+ text-align: center;
 167+ color: #333;
 168+}
 169+
 170+.fancybox-title-outside {
 171+ padding-top: 5px;
 172+ color: #FFF;
 173+ text-align: center;
 174+ font-weight: bold;
 175+}
 176+
 177+.fancybox-title-over {
 178+ color: #FFF;
 179+ text-align: left;
 180+}
 181+
 182+#fancybox-title-over {
 183+ padding: 10px;
 184+ background-image: url('fancy_title_over.png');
 185+ display: block;
 186+}
 187+
 188+#fancybox-title-wrap {
 189+ display: inline-block;
 190+}
 191+
 192+#fancybox-title-wrap span {
 193+ height: 32px;
 194+ float: left;
 195+}
 196+
 197+#fancybox-title-left {
 198+ padding-left: 15px;
 199+ background-image: url('fancybox.png');
 200+ background-position: -40px -90px;
 201+ background-repeat: no-repeat;
 202+}
 203+
 204+#fancybox-title-main {
 205+ font-weight: bold;
 206+ line-height: 29px;
 207+ background-image: url('fancybox-x.png');
 208+ background-position: 0px -40px;
 209+ color: #FFF;
 210+}
 211+
 212+#fancybox-title-right {
 213+ padding-left: 15px;
 214+ background-image: url('fancybox.png');
 215+ background-position: -55px -90px;
 216+ background-repeat: no-repeat;
 217+}
 218+
 219+#fancybox-left, #fancybox-right {
 220+ position: absolute;
 221+ bottom: 0px;
 222+ height: 100%;
 223+ width: 35%;
 224+ cursor: pointer;
 225+ outline: none;
 226+ background-image: url('blank.gif');
 227+ z-index: 1102;
 228+ display: none;
 229+}
 230+
 231+#fancybox-left {
 232+ left: 0px;
 233+}
 234+
 235+#fancybox-right {
 236+ right: 0px;
 237+}
 238+
 239+#fancybox-left-ico, #fancybox-right-ico {
 240+ position: absolute;
 241+ top: 50%;
 242+ left: -9999px;
 243+ width: 30px;
 244+ height: 30px;
 245+ margin-top: -15px;
 246+ cursor: pointer;
 247+ z-index: 1102;
 248+ display: block;
 249+}
 250+
 251+#fancybox-left-ico {
 252+ background-image: url('fancybox.png');
 253+ background-position: -40px -30px;
 254+}
 255+
 256+#fancybox-right-ico {
 257+ background-image: url('fancybox.png');
 258+ background-position: -40px -60px;
 259+}
 260+
 261+#fancybox-left:hover, #fancybox-right:hover {
 262+ visibility: visible; /* IE6 */
 263+}
 264+
 265+#fancybox-left:hover span {
 266+ left: 20px;
 267+}
 268+
 269+#fancybox-right:hover span {
 270+ left: auto;
 271+ right: 20px;
 272+}
 273+
 274+.fancy-bg {
 275+ position: absolute;
 276+ padding: 0;
 277+ margin: 0;
 278+ border: 0;
 279+ width: 20px;
 280+ height: 20px;
 281+ z-index: 1001;
 282+}
 283+
 284+#fancy-bg-n {
 285+ top: -20px;
 286+ left: 0;
 287+ width: 100%;
 288+ background-image: url('fancybox-x.png');
 289+}
 290+
 291+#fancy-bg-ne {
 292+ top: -20px;
 293+ right: -20px;
 294+ background-image: url('fancybox.png');
 295+ background-position: -40px -162px;
 296+}
 297+
 298+#fancy-bg-e {
 299+ top: 0;
 300+ right: -20px;
 301+ height: 100%;
 302+ background-image: url('fancybox-y.png');
 303+ background-position: -20px 0px;
 304+}
 305+
 306+#fancy-bg-se {
 307+ bottom: -20px;
 308+ right: -20px;
 309+ background-image: url('fancybox.png');
 310+ background-position: -40px -182px;
 311+}
 312+
 313+#fancy-bg-s {
 314+ bottom: -20px;
 315+ left: 0;
 316+ width: 100%;
 317+ background-image: url('fancybox-x.png');
 318+ background-position: 0px -20px;
 319+}
 320+
 321+#fancy-bg-sw {
 322+ bottom: -20px;
 323+ left: -20px;
 324+ background-image: url('fancybox.png');
 325+ background-position: -40px -142px;
 326+}
 327+
 328+#fancy-bg-w {
 329+ top: 0;
 330+ left: -20px;
 331+ height: 100%;
 332+ background-image: url('fancybox-y.png');
 333+}
 334+
 335+#fancy-bg-nw {
 336+ top: -20px;
 337+ left: -20px;
 338+ background-image: url('fancybox.png');
 339+ background-position: -40px -122px;
 340+}
 341+
 342+/* IE */
 343+
 344+#fancybox-loading.fancybox-ie div { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/loading.gif', sizingMethod='scale'); }
 345+.fancybox-ie #fancybox-close { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancy_close.png', sizingMethod='scale'); }
 346+
 347+.fancybox-ie #fancybox-title-over { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_title_over.png', sizingMethod='scale'); zoom: 1; }
 348+.fancybox-ie #fancybox-title-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_title_left.png', sizingMethod='scale'); }
 349+.fancybox-ie #fancybox-title-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_title_main.png', sizingMethod='scale'); }
 350+.fancybox-ie #fancybox-title-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_title_right.png', sizingMethod='scale'); }
 351+
 352+.fancybox-ie #fancybox-left-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_nav_left.png', sizingMethod='scale'); }
 353+.fancybox-ie #fancybox-right-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_nav_right.png', sizingMethod='scale'); }
 354+
 355+.fancybox-ie .fancy-bg { background: transparent !important; }
 356+
 357+.fancybox-ie #fancy-bg-n { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_shadow_n.png', sizingMethod='scale'); }
 358+.fancybox-ie #fancy-bg-ne { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_shadow_ne.png', sizingMethod='scale'); }
 359+.fancybox-ie #fancy-bg-e { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_shadow_e.png', sizingMethod='scale'); }
 360+.fancybox-ie #fancy-bg-se { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_shadow_se.png', sizingMethod='scale'); }
 361+.fancybox-ie #fancy-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_shadow_s.png', sizingMethod='scale'); }
 362+.fancybox-ie #fancy-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_shadow_sw.png', sizingMethod='scale'); }
 363+.fancybox-ie #fancy-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_shadow_w.png', sizingMethod='scale'); }
 364+.fancybox-ie #fancy-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../skins/fancybox/fancy_shadow_nw.png', sizingMethod='scale'); }
Property changes on: trunk/extensions/SemanticForms/skins/jquery.fancybox-1.3.1.css
___________________________________________________________________
Added: svn:eol-style
365365 + native
Property changes on: trunk/extensions/SemanticForms/libs/SF_autogrow.js
___________________________________________________________________
Added: svn:eol-style
366366 + native
Property changes on: trunk/extensions/SemanticForms/libs/jquery-ui/jquery.ui.autocomplete.min.js
___________________________________________________________________
Added: svn:eol-style
367367 + native
Property changes on: trunk/extensions/SemanticForms/libs/jquery-ui/jquery.ui.widget.min.js
___________________________________________________________________
Added: svn:eol-style
368368 + native
Property changes on: trunk/extensions/SemanticForms/libs/jquery-ui/jquery.ui.position.min.js
___________________________________________________________________
Added: svn:eol-style
369369 + native
Property changes on: trunk/extensions/SemanticForms/libs/jquery-ui/jquery.ui.core.min.js
___________________________________________________________________
Added: svn:eol-style
370370 + native
Property changes on: trunk/extensions/SemanticForms/libs/jquery-ui/jquery-ui-i18n.js
___________________________________________________________________
Added: svn:eol-style
371371 + native
Property changes on: trunk/extensions/SemanticForms/libs/jquery-ui/jquery.ui.button.min.js
___________________________________________________________________
Added: svn:eol-style
372372 + native
Property changes on: trunk/extensions/SemanticForms/libs/jquery-ui/jquery.ui.datepicker.min.js
___________________________________________________________________
Added: svn:eol-style
373373 + native
Property changes on: trunk/extensions/SemanticForms/libs/jquery-1.4.2.min.js
___________________________________________________________________
Added: svn:eol-style
374374 + native
Index: trunk/extensions/SemanticForms/libs/jquery.fancybox-1.3.1.js
@@ -1,1077 +1,1077 @@
2 -/*
3 - * FancyBox - jQuery Plugin
4 - * Simple and fancy lightbox alternative
5 - *
6 - * Examples and documentation at: http://fancybox.net
7 - *
8 - * Copyright (c) 2008 - 2010 Janis Skarnelis
9 - *
10 - * Version: 1.3.1 (05/03/2010)
11 - * Requires: jQuery v1.3+
12 - *
13 - * Dual licensed under the MIT and GPL licenses:
14 - * http://www.opensource.org/licenses/mit-license.php
15 - * http://www.gnu.org/licenses/gpl.html
16 - */
17 -
18 -(function($) {
19 -
20 - var tmp, loading, overlay, wrap, outer, inner, close, nav_left, nav_right,
21 -
22 - selectedIndex = 0, selectedOpts = {}, selectedArray = [], currentIndex = 0, currentOpts = {}, currentArray = [],
23 -
24 - ajaxLoader = null, imgPreloader = new Image(), imgRegExp = /\.(jpg|gif|png|bmp|jpeg)(.*)?$/i, swfRegExp = /[^\.]\.(swf)\s*$/i,
25 -
26 - loadingTimer, loadingFrame = 1,
27 -
28 - start_pos, final_pos, busy = false, shadow = 20, fx = $.extend($('<div/>')[0], { prop: 0 }), titleh = 0,
29 -
30 - isIE6 = !$.support.opacity && !window.XMLHttpRequest,
31 -
32 - /*
33 - * Private methods
34 - */
35 -
36 - fancybox_abort = function() {
37 - loading.hide();
38 -
39 - imgPreloader.onerror = imgPreloader.onload = null;
40 -
41 - if (ajaxLoader) {
42 - ajaxLoader.abort();
43 - }
44 -
45 - tmp.empty();
46 - },
47 -
48 - fancybox_error = function() {
49 - $.fancybox('<p id="fancybox_error">The requested content cannot be loaded.<br />Please try again later.</p>', {
50 - 'scrolling' : 'no',
51 - 'padding' : 20,
52 - 'transitionIn' : 'none',
53 - 'transitionOut' : 'none'
54 - });
55 - },
56 -
57 - fancybox_get_viewport = function() {
58 - return [ $(window).width(), $(window).height(), $(document).scrollLeft(), $(document).scrollTop() ];
59 - },
60 -
61 - fancybox_get_zoom_to = function () {
62 - var view = fancybox_get_viewport(),
63 - to = {},
64 -
65 - margin = currentOpts.margin,
66 - resize = currentOpts.autoScale,
67 -
68 - horizontal_space = (shadow + margin) * 2,
69 - vertical_space = (shadow + margin) * 2,
70 - double_padding = (currentOpts.padding * 2),
71 -
72 - ratio;
73 -
74 - if (currentOpts.width.toString().indexOf('%') > -1) {
75 - to.width = ((view[0] * parseFloat(currentOpts.width)) / 100) - (shadow * 2) ;
76 - resize = false;
77 -
78 - } else {
79 - to.width = currentOpts.width + double_padding;
80 - }
81 -
82 - if (currentOpts.height.toString().indexOf('%') > -1) {
83 - to.height = ((view[1] * parseFloat(currentOpts.height)) / 100) - (shadow * 2);
84 - resize = false;
85 -
86 - } else {
87 - to.height = currentOpts.height + double_padding;
88 - }
89 -
90 - if (resize && (to.width > (view[0] - horizontal_space) || to.height > (view[1] - vertical_space))) {
91 - if (selectedOpts.type == 'image' || selectedOpts.type == 'swf') {
92 - horizontal_space += double_padding;
93 - vertical_space += double_padding;
94 -
95 - ratio = Math.min(Math.min( view[0] - horizontal_space, currentOpts.width) / currentOpts.width, Math.min( view[1] - vertical_space, currentOpts.height) / currentOpts.height);
96 -
97 - to.width = Math.round(ratio * (to.width - double_padding)) + double_padding;
98 - to.height = Math.round(ratio * (to.height - double_padding)) + double_padding;
99 -
100 - } else {
101 - to.width = Math.min(to.width, (view[0] - horizontal_space));
102 - to.height = Math.min(to.height, (view[1] - vertical_space));
103 - }
104 - }
105 -
106 - to.top = view[3] + ((view[1] - (to.height + (shadow * 2 ))) * 0.5);
107 - to.left = view[2] + ((view[0] - (to.width + (shadow * 2 ))) * 0.5);
108 -
109 - if (currentOpts.autoScale === false) {
110 - to.top = Math.max(view[3] + margin, to.top);
111 - to.left = Math.max(view[2] + margin, to.left);
112 - }
113 -
114 - return to;
115 - },
116 -
117 - fancybox_format_title = function(title) {
118 - if (title && title.length) {
119 - switch (currentOpts.titlePosition) {
120 - case 'inside':
121 - return title;
122 - case 'over':
123 - return '<span id="fancybox-title-over">' + title + '</span>';
124 - default:
125 - return '<span id="fancybox-title-wrap"><span id="fancybox-title-left"></span><span id="fancybox-title-main">' + title + '</span><span id="fancybox-title-right"></span></span>';
126 - }
127 - }
128 -
129 - return false;
130 - },
131 -
132 - fancybox_process_title = function() {
133 - var title = currentOpts.title,
134 - width = final_pos.width - (currentOpts.padding * 2),
135 - titlec = 'fancybox-title-' + currentOpts.titlePosition;
136 -
137 - $('#fancybox-title').remove();
138 -
139 - titleh = 0;
140 -
141 - if (currentOpts.titleShow === false) {
142 - return;
143 - }
144 -
145 - title = $.isFunction(currentOpts.titleFormat) ? currentOpts.titleFormat(title, currentArray, currentIndex, currentOpts) : fancybox_format_title(title);
146 -
147 - if (!title || title === '') {
148 - return;
149 - }
150 -
151 - $('<div id="fancybox-title" class="' + titlec + '" />').css({
152 - 'width' : width,
153 - 'paddingLeft' : currentOpts.padding,
154 - 'paddingRight' : currentOpts.padding
155 - }).html(title).appendTo('body');
156 -
157 - switch (currentOpts.titlePosition) {
158 - case 'inside':
159 - titleh = $("#fancybox-title").outerHeight(true) - currentOpts.padding;
160 - final_pos.height += titleh;
161 - break;
162 -
163 - case 'over':
164 - $('#fancybox-title').css('bottom', currentOpts.padding);
165 - break;
166 -
167 - default:
168 - $('#fancybox-title').css('bottom', $("#fancybox-title").outerHeight(true) * -1);
169 - break;
170 - }
171 -
172 - $('#fancybox-title').appendTo( outer ).hide();
173 - },
174 -
175 - fancybox_set_navigation = function() {
176 - $(document).unbind('keydown.fb').bind('keydown.fb', function(e) {
177 - if (e.keyCode == 27 && currentOpts.enableEscapeButton) {
178 - e.preventDefault();
179 - $.fancybox.close();
180 -
181 - } else if (e.keyCode == 37) {
182 - e.preventDefault();
183 - $.fancybox.prev();
184 -
185 - } else if (e.keyCode == 39) {
186 - e.preventDefault();
187 - $.fancybox.next();
188 - }
189 - });
190 -
191 - if ($.fn.mousewheel) {
192 - wrap.unbind('mousewheel.fb');
193 -
194 - if (currentArray.length > 1) {
195 - wrap.bind('mousewheel.fb', function(e, delta) {
196 - e.preventDefault();
197 -
198 - if (busy || delta === 0) {
199 - return;
200 - }
201 -
202 - if (delta > 0) {
203 - $.fancybox.prev();
204 - } else {
205 - $.fancybox.next();
206 - }
207 - });
208 - }
209 - }
210 -
211 - if (!currentOpts.showNavArrows) { return; }
212 -
213 - if ((currentOpts.cyclic && currentArray.length > 1) || currentIndex !== 0) {
214 - nav_left.show();
215 - }
216 -
217 - if ((currentOpts.cyclic && currentArray.length > 1) || currentIndex != (currentArray.length -1)) {
218 - nav_right.show();
219 - }
220 - },
221 -
222 - fancybox_preload_images = function() {
223 - var href,
224 - objNext;
225 -
226 - if ((currentArray.length -1) > currentIndex) {
227 - href = currentArray[ currentIndex + 1 ].href;
228 -
229 - if (typeof href !== 'undefined' && href.match(imgRegExp)) {
230 - objNext = new Image();
231 - objNext.src = href;
232 - }
233 - }
234 -
235 - if (currentIndex > 0) {
236 - href = currentArray[ currentIndex - 1 ].href;
237 -
238 - if (typeof href !== 'undefined' && href.match(imgRegExp)) {
239 - objNext = new Image();
240 - objNext.src = href;
241 - }
242 - }
243 - },
244 -
245 - _finish = function () {
246 - inner.css('overflow', (currentOpts.scrolling == 'auto' ? (currentOpts.type == 'image' || currentOpts.type == 'iframe' || currentOpts.type == 'swf' ? 'hidden' : 'auto') : (currentOpts.scrolling == 'yes' ? 'auto' : 'visible')));
247 -
248 - if (!$.support.opacity) {
249 - inner.get(0).style.removeAttribute('filter');
250 - wrap.get(0).style.removeAttribute('filter');
251 - }
252 -
253 - $('#fancybox-title').show();
254 -
255 - if (currentOpts.hideOnContentClick) {
256 - inner.one('click', $.fancybox.close);
257 - }
258 - if (currentOpts.hideOnOverlayClick) {
259 - overlay.one('click', $.fancybox.close);
260 - }
261 -
262 - if (currentOpts.showCloseButton) {
263 - close.show();
264 - }
265 -
266 - fancybox_set_navigation();
267 -
268 - $(window).bind("resize.fb", $.fancybox.center);
269 -
270 - if (currentOpts.centerOnScroll) {
271 - $(window).bind("scroll.fb", $.fancybox.center);
272 - } else {
273 - $(window).unbind("scroll.fb");
274 - }
275 -
276 - if ($.isFunction(currentOpts.onComplete)) {
277 - currentOpts.onComplete(currentArray, currentIndex, currentOpts);
278 - }
279 -
280 - busy = false;
281 -
282 - fancybox_preload_images();
283 - },
284 -
285 - fancybox_draw = function(pos) {
286 - var width = Math.round(start_pos.width + (final_pos.width - start_pos.width) * pos),
287 - height = Math.round(start_pos.height + (final_pos.height - start_pos.height) * pos),
288 -
289 - top = Math.round(start_pos.top + (final_pos.top - start_pos.top) * pos),
290 - left = Math.round(start_pos.left + (final_pos.left - start_pos.left) * pos);
291 -
292 - wrap.css({
293 - 'width' : width + 'px',
294 - 'height' : height + 'px',
295 - 'top' : top + 'px',
296 - 'left' : left + 'px'
297 - });
298 -
299 - width = Math.max(width - currentOpts.padding * 2, 0);
300 - height = Math.max(height - (currentOpts.padding * 2 + (titleh * pos)), 0);
301 -
302 - inner.css({
303 - 'width' : width + 'px',
304 - 'height' : height + 'px'
305 - });
306 -
307 - if (typeof final_pos.opacity !== 'undefined') {
308 - wrap.css('opacity', (pos < 0.5 ? 0.5 : pos));
309 - }
310 - },
311 -
312 - fancybox_get_obj_pos = function(obj) {
313 - var pos = obj.offset();
314 -
315 - pos.top += parseFloat( obj.css('paddingTop') ) || 0;
316 - pos.left += parseFloat( obj.css('paddingLeft') ) || 0;
317 -
318 - pos.top += parseFloat( obj.css('border-top-width') ) || 0;
319 - pos.left += parseFloat( obj.css('border-left-width') ) || 0;
320 -
321 - pos.width = obj.width();
322 - pos.height = obj.height();
323 -
324 - return pos;
325 - },
326 -
327 - fancybox_get_zoom_from = function() {
328 - var orig = selectedOpts.orig ? $(selectedOpts.orig) : false,
329 - from = {},
330 - pos,
331 - view;
332 -
333 - if (orig && orig.length) {
334 - pos = fancybox_get_obj_pos(orig);
335 -
336 - from = {
337 - width : (pos.width + (currentOpts.padding * 2)),
338 - height : (pos.height + (currentOpts.padding * 2)),
339 - top : (pos.top - currentOpts.padding - shadow),
340 - left : (pos.left - currentOpts.padding - shadow)
341 - };
342 -
343 - } else {
344 - view = fancybox_get_viewport();
345 -
346 - from = {
347 - width : 1,
348 - height : 1,
349 - top : view[3] + view[1] * 0.5,
350 - left : view[2] + view[0] * 0.5
351 - };
352 - }
353 -
354 - return from;
355 - },
356 -
357 - fancybox_show = function() {
358 - loading.hide();
359 -
360 - if (wrap.is(":visible") && $.isFunction(currentOpts.onCleanup)) {
361 - if (currentOpts.onCleanup(currentArray, currentIndex, currentOpts) === false) {
362 - $.event.trigger('fancybox-cancel');
363 -
364 - busy = false;
365 - return;
366 - }
367 - }
368 -
369 - currentArray = selectedArray;
370 - currentIndex = selectedIndex;
371 - currentOpts = selectedOpts;
372 -
373 - inner.get(0).scrollTop = 0;
374 - inner.get(0).scrollLeft = 0;
375 -
376 - if (currentOpts.overlayShow) {
377 - if (isIE6) {
378 - $('select:not(#fancybox-tmp select)').filter(function() {
379 - return this.style.visibility !== 'hidden';
380 - }).css({'visibility':'hidden'}).one('fancybox-cleanup', function() {
381 - this.style.visibility = 'inherit';
382 - });
383 - }
384 -
385 - overlay.css({
386 - 'background-color' : currentOpts.overlayColor,
387 - 'opacity' : currentOpts.overlayOpacity
388 - }).unbind().show();
389 - }
390 -
391 - final_pos = fancybox_get_zoom_to();
392 -
393 - fancybox_process_title();
394 -
395 - if (wrap.is(":visible")) {
396 - $( close.add( nav_left ).add( nav_right ) ).hide();
397 -
398 - var pos = wrap.position(),
399 - equal;
400 -
401 - start_pos = {
402 - top : pos.top ,
403 - left : pos.left,
404 - width : wrap.width(),
405 - height : wrap.height()
406 - };
407 -
408 - equal = (start_pos.width == final_pos.width && start_pos.height == final_pos.height);
409 -
410 - inner.fadeOut(currentOpts.changeFade, function() {
411 - var finish_resizing = function() {
412 - inner.html( tmp.contents() ).fadeIn(currentOpts.changeFade, _finish);
413 - };
414 -
415 - $.event.trigger('fancybox-change');
416 -
417 - inner.empty().css('overflow', 'hidden');
418 -
419 - if (equal) {
420 - inner.css({
421 - top : currentOpts.padding,
422 - left : currentOpts.padding,
423 - width : Math.max(final_pos.width - (currentOpts.padding * 2), 1),
424 - height : Math.max(final_pos.height - (currentOpts.padding * 2) - titleh, 1)
425 - });
426 -
427 - finish_resizing();
428 -
429 - } else {
430 - inner.css({
431 - top : currentOpts.padding,
432 - left : currentOpts.padding,
433 - width : Math.max(start_pos.width - (currentOpts.padding * 2), 1),
434 - height : Math.max(start_pos.height - (currentOpts.padding * 2), 1)
435 - });
436 -
437 - fx.prop = 0;
438 -
439 - $(fx).animate({ prop: 1 }, {
440 - duration : currentOpts.changeSpeed,
441 - easing : currentOpts.easingChange,
442 - step : fancybox_draw,
443 - complete : finish_resizing
444 - });
445 - }
446 - });
447 -
448 - return;
449 - }
450 -
451 - wrap.css('opacity', 1);
452 -
453 - if (currentOpts.transitionIn == 'elastic') {
454 - start_pos = fancybox_get_zoom_from();
455 -
456 - inner.css({
457 - top : currentOpts.padding,
458 - left : currentOpts.padding,
459 - width : Math.max(start_pos.width - (currentOpts.padding * 2), 1),
460 - height : Math.max(start_pos.height - (currentOpts.padding * 2), 1)
461 - })
462 - .html( tmp.contents() );
463 -
464 - wrap.css(start_pos).show();
465 -
466 - if (currentOpts.opacity) {
467 - final_pos.opacity = 0;
468 - }
469 -
470 - fx.prop = 0;
471 -
472 - $(fx).animate({ prop: 1 }, {
473 - duration : currentOpts.speedIn,
474 - easing : currentOpts.easingIn,
475 - step : fancybox_draw,
476 - complete : _finish
477 - });
478 -
479 - } else {
480 - inner.css({
481 - top : currentOpts.padding,
482 - left : currentOpts.padding,
483 - width : Math.max(final_pos.width - (currentOpts.padding * 2), 1),
484 - height : Math.max(final_pos.height - (currentOpts.padding * 2) - titleh, 1)
485 - })
486 - .html( tmp.contents() );
487 -
488 - wrap.css( final_pos ).fadeIn( currentOpts.transitionIn == 'none' ? 0 : currentOpts.speedIn, _finish );
489 - }
490 - },
491 -
492 - fancybox_process_inline = function() {
493 - tmp.width( selectedOpts.width );
494 - tmp.height( selectedOpts.height );
495 -
496 - if (selectedOpts.width == 'auto') {
497 - selectedOpts.width = tmp.width();
498 - }
499 - if (selectedOpts.height == 'auto') {
500 - selectedOpts.height = tmp.height();
501 - }
502 -
503 - fancybox_show();
504 - },
505 -
506 - fancybox_process_image = function() {
507 - busy = true;
508 -
509 - selectedOpts.width = imgPreloader.width;
510 - selectedOpts.height = imgPreloader.height;
511 -
512 - $("<img />").attr({
513 - 'id' : 'fancybox-img',
514 - 'src' : imgPreloader.src,
515 - 'alt' : selectedOpts.title
516 - }).appendTo( tmp );
517 -
518 - fancybox_show();
519 - },
520 -
521 - fancybox_start = function() {
522 - fancybox_abort();
523 -
524 - var obj = selectedArray[ selectedIndex ],
525 - href,
526 - type,
527 - title,
528 - str,
529 - emb,
530 - selector,
531 - data;
532 -
533 - selectedOpts = $.extend({}, $.fn.fancybox.defaults, (typeof $(obj).data('fancybox') == 'undefined' ? selectedOpts : $(obj).data('fancybox')));
534 - title = obj.title || $(obj).title || selectedOpts.title || '';
535 -
536 - if (obj.nodeName && !selectedOpts.orig) {
537 - selectedOpts.orig = $(obj).children("img:first").length ? $(obj).children("img:first") : $(obj);
538 - }
539 -
540 - if (title === '' && selectedOpts.orig) {
541 - title = selectedOpts.orig.attr('alt');
542 - }
543 -
544 - if (obj.nodeName && (/^(?:javascript|#)/i).test(obj.href)) {
545 - href = selectedOpts.href || null;
546 - } else {
547 - href = selectedOpts.href || obj.href || null;
548 - }
549 -
550 - if (selectedOpts.type) {
551 - type = selectedOpts.type;
552 -
553 - if (!href) {
554 - href = selectedOpts.content;
555 - }
556 -
557 - } else if (selectedOpts.content) {
558 - type = 'html';
559 -
560 - } else if (href) {
561 - if (href.match(imgRegExp)) {
562 - type = 'image';
563 -
564 - } else if (href.match(swfRegExp)) {
565 - type = 'swf';
566 -
567 - } else if ($(obj).hasClass("iframe")) {
568 - type = 'iframe';
569 -
570 - } else if (href.match(/#/)) {
571 - obj = href.substr(href.indexOf("#"));
572 -
573 - type = $(obj).length > 0 ? 'inline' : 'ajax';
574 - } else {
575 - type = 'ajax';
576 - }
577 - } else {
578 - type = 'inline';
579 - }
580 -
581 - selectedOpts.type = type;
582 - selectedOpts.href = href;
583 - selectedOpts.title = title;
584 -
585 - if (selectedOpts.autoDimensions && selectedOpts.type !== 'iframe' && selectedOpts.type !== 'swf') {
586 - selectedOpts.width = 'auto';
587 - selectedOpts.height = 'auto';
588 - }
589 -
590 - if (selectedOpts.modal) {
591 - selectedOpts.overlayShow = true;
592 - selectedOpts.hideOnOverlayClick = false;
593 - selectedOpts.hideOnContentClick = false;
594 - selectedOpts.enableEscapeButton = false;
595 - selectedOpts.showCloseButton = false;
596 - }
597 -
598 - if ($.isFunction(selectedOpts.onStart)) {
599 - if (selectedOpts.onStart(selectedArray, selectedIndex, selectedOpts) === false) {
600 - busy = false;
601 - return;
602 - }
603 - }
604 -
605 - tmp.css('padding', (shadow + selectedOpts.padding + selectedOpts.margin));
606 -
607 - $('.fancybox-inline-tmp').unbind('fancybox-cancel').bind('fancybox-change', function() {
608 - $(this).replaceWith(inner.children());
609 - });
610 -
611 - switch (type) {
612 - case 'html' :
613 - tmp.html( selectedOpts.content );
614 - fancybox_process_inline();
615 - break;
616 -
617 - case 'inline' :
618 - $('<div class="fancybox-inline-tmp" />').hide().insertBefore( $(obj) ).bind('fancybox-cleanup', function() {
619 - $(this).replaceWith(inner.children());
620 - }).bind('fancybox-cancel', function() {
621 - $(this).replaceWith(tmp.children());
622 - });
623 -
624 - $(obj).appendTo(tmp);
625 -
626 - fancybox_process_inline();
627 - break;
628 -
629 - case 'image':
630 - busy = false;
631 -
632 - $.fancybox.showActivity();
633 -
634 - imgPreloader = new Image();
635 -
636 - imgPreloader.onerror = function() {
637 - fancybox_error();
638 - };
639 -
640 - imgPreloader.onload = function() {
641 - imgPreloader.onerror = null;
642 - imgPreloader.onload = null;
643 - fancybox_process_image();
644 - };
645 -
646 - imgPreloader.src = href;
647 -
648 - break;
649 -
650 - case 'swf':
651 - str = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' + selectedOpts.width + '" height="' + selectedOpts.height + '"><param name="movie" value="' + href + '"></param>';
652 - emb = '';
653 -
654 - $.each(selectedOpts.swf, function(name, val) {
655 - str += '<param name="' + name + '" value="' + val + '"></param>';
656 - emb += ' ' + name + '="' + val + '"';
657 - });
658 -
659 - str += '<embed src="' + href + '" type="application/x-shockwave-flash" width="' + selectedOpts.width + '" height="' + selectedOpts.height + '"' + emb + '></embed></object>';
660 -
661 - tmp.html(str);
662 -
663 - fancybox_process_inline();
664 - break;
665 -
666 - case 'ajax':
667 - selector = href.split('#', 2);
668 - data = selectedOpts.ajax.data || {};
669 -
670 - if (selector.length > 1) {
671 - href = selector[0];
672 -
673 - if (typeof data == "string") {
674 - data += '&selector=' + selector[1];
675 - } else {
676 - data.selector = selector[1];
677 - }
678 - }
679 -
680 - busy = false;
681 - $.fancybox.showActivity();
682 -
683 - ajaxLoader = $.ajax($.extend(selectedOpts.ajax, {
684 - url : href,
685 - data : data,
686 - error : fancybox_error,
687 - success : function(data, textStatus, XMLHttpRequest) {
688 - if (ajaxLoader.status == 200) {
689 - tmp.html( data );
690 - fancybox_process_inline();
691 - }
692 - }
693 - }));
694 -
695 - break;
696 -
697 - case 'iframe' :
698 - $('<iframe id="fancybox-frame" name="fancybox-frame' + new Date().getTime() + '" frameborder="0" hspace="0" scrolling="' + selectedOpts.scrolling + '" src="' + selectedOpts.href + '"></iframe>').appendTo(tmp);
699 - fancybox_show();
700 - break;
701 - }
702 - },
703 -
704 - fancybox_animate_loading = function() {
705 - if (!loading.is(':visible')){
706 - clearInterval(loadingTimer);
707 - return;
708 - }
709 -
710 - $('div', loading).css('top', (loadingFrame * -40) + 'px');
711 -
712 - loadingFrame = (loadingFrame + 1) % 12;
713 - },
714 -
715 - fancybox_init = function() {
716 - if ($("#fancybox-wrap").length) {
717 - return;
718 - }
719 -
720 - $('body').append(
721 - tmp = $('<div id="fancybox-tmp"></div>'),
722 - loading = $('<div id="fancybox-loading"><div></div></div>'),
723 - overlay = $('<div id="fancybox-overlay"></div>'),
724 - wrap = $('<div id="fancybox-wrap"></div>')
725 - );
726 -
727 - if (!$.support.opacity) {
728 - wrap.addClass('fancybox-ie');
729 - loading.addClass('fancybox-ie');
730 - }
731 -
732 - outer = $('<div id="fancybox-outer"></div>')
733 - .append('<div class="fancy-bg" id="fancy-bg-n"></div><div class="fancy-bg" id="fancy-bg-ne"></div><div class="fancy-bg" id="fancy-bg-e"></div><div class="fancy-bg" id="fancy-bg-se"></div><div class="fancy-bg" id="fancy-bg-s"></div><div class="fancy-bg" id="fancy-bg-sw"></div><div class="fancy-bg" id="fancy-bg-w"></div><div class="fancy-bg" id="fancy-bg-nw"></div>')
734 - .appendTo( wrap );
735 -
736 - outer.append(
737 - inner = $('<div id="fancybox-inner"></div>'),
738 - close = $('<a id="fancybox-close"></a>'),
739 -
740 - nav_left = $('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),
741 - nav_right = $('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>')
742 - );
743 -
744 - close.click($.fancybox.close);
745 - loading.click($.fancybox.cancel);
746 -
747 - nav_left.click(function(e) {
748 - e.preventDefault();
749 - $.fancybox.prev();
750 - });
751 -
752 - nav_right.click(function(e) {
753 - e.preventDefault();
754 - $.fancybox.next();
755 - });
756 -
757 - if (isIE6) {
758 - overlay.get(0).style.setExpression('height', "document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'");
759 - loading.get(0).style.setExpression('top', "(-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop )) + 'px'");
760 -
761 - outer.prepend('<iframe id="fancybox-hide-sel-frame" src="javascript:\'\';" scrolling="no" frameborder="0" ></iframe>');
762 - }
763 - };
764 -
765 - /*
766 - * Public methods
767 - */
768 -
769 - $.fn.fancybox = function(options) {
770 - $(this)
771 - .data('fancybox', $.extend({}, options, ($.metadata ? $(this).metadata() : {})))
772 - .unbind('click.fb').bind('click.fb', function(e) {
773 - e.preventDefault();
774 -
775 - if (busy) {
776 - return;
777 - }
778 -
779 - busy = true;
780 -
781 - $(this).blur();
782 -
783 - selectedArray = [];
784 - selectedIndex = 0;
785 -
786 - var rel = $(this).attr('rel') || '';
787 -
788 - if (!rel || rel == '' || rel === 'nofollow') {
789 - selectedArray.push(this);
790 -
791 - } else {
792 - selectedArray = $("a[rel=" + rel + "], area[rel=" + rel + "]");
793 - selectedIndex = selectedArray.index( this );
794 - }
795 -
796 - fancybox_start();
797 -
798 - return false;
799 - });
800 -
801 - return this;
802 - };
803 -
804 - $.fancybox = function(obj) {
805 - if (busy) {
806 - return;
807 - }
808 -
809 - busy = true;
810 -
811 - var opts = typeof arguments[1] !== 'undefined' ? arguments[1] : {};
812 -
813 - selectedArray = [];
814 - selectedIndex = opts.index || 0;
815 -
816 - if ($.isArray(obj)) {
817 - for (var i = 0, j = obj.length; i < j; i++) {
818 - if (typeof obj[i] == 'object') {
819 - $(obj[i]).data('fancybox', $.extend({}, opts, obj[i]));
820 - } else {
821 - obj[i] = $({}).data('fancybox', $.extend({content : obj[i]}, opts));
822 - }
823 - }
824 -
825 - selectedArray = jQuery.merge(selectedArray, obj);
826 -
827 - } else {
828 - if (typeof obj == 'object') {
829 - $(obj).data('fancybox', $.extend({}, opts, obj));
830 - } else {
831 - obj = $({}).data('fancybox', $.extend({content : obj}, opts));
832 - }
833 -
834 - selectedArray.push(obj);
835 - }
836 -
837 - if (selectedIndex > selectedArray.length || selectedIndex < 0) {
838 - selectedIndex = 0;
839 - }
840 -
841 - fancybox_start();
842 - };
843 -
844 - $.fancybox.showActivity = function() {
845 - clearInterval(loadingTimer);
846 -
847 - loading.show();
848 - loadingTimer = setInterval(fancybox_animate_loading, 66);
849 - };
850 -
851 - $.fancybox.hideActivity = function() {
852 - loading.hide();
853 - };
854 -
855 - $.fancybox.next = function() {
856 - return $.fancybox.pos( currentIndex + 1);
857 - };
858 -
859 - $.fancybox.prev = function() {
860 - return $.fancybox.pos( currentIndex - 1);
861 - };
862 -
863 - $.fancybox.pos = function(pos) {
864 - if (busy) {
865 - return;
866 - }
867 -
868 - pos = parseInt(pos, 10);
869 -
870 - if (pos > -1 && currentArray.length > pos) {
871 - selectedIndex = pos;
872 - fancybox_start();
873 - }
874 -
875 - if (currentOpts.cyclic && currentArray.length > 1 && pos < 0) {
876 - selectedIndex = currentArray.length - 1;
877 - fancybox_start();
878 - }
879 -
880 - if (currentOpts.cyclic && currentArray.length > 1 && pos >= currentArray.length) {
881 - selectedIndex = 0;
882 - fancybox_start();
883 - }
884 -
885 - return;
886 - };
887 -
888 - $.fancybox.cancel = function() {
889 - if (busy) {
890 - return;
891 - }
892 -
893 - busy = true;
894 -
895 - $.event.trigger('fancybox-cancel');
896 -
897 - fancybox_abort();
898 -
899 - if (selectedOpts && $.isFunction(selectedOpts.onCancel)) {
900 - selectedOpts.onCancel(selectedArray, selectedIndex, selectedOpts);
901 - }
902 -
903 - busy = false;
904 - };
905 -
906 - // Note: within an iframe use - parent.$.fancybox.close();
907 - $.fancybox.close = function() {
908 - if (busy || wrap.is(':hidden')) {
909 - return;
910 - }
911 -
912 - busy = true;
913 -
914 - if (currentOpts && $.isFunction(currentOpts.onCleanup)) {
915 - if (currentOpts.onCleanup(currentArray, currentIndex, currentOpts) === false) {
916 - busy = false;
917 - return;
918 - }
919 - }
920 -
921 - fancybox_abort();
922 -
923 - $(close.add( nav_left ).add( nav_right )).hide();
924 -
925 - $('#fancybox-title').remove();
926 -
927 - wrap.add(inner).add(overlay).unbind();
928 -
929 - $(window).unbind("resize.fb scroll.fb");
930 - $(document).unbind('keydown.fb');
931 -
932 - function _cleanup() {
933 - overlay.fadeOut('fast');
934 -
935 - wrap.hide();
936 -
937 - $.event.trigger('fancybox-cleanup');
938 -
939 - inner.empty();
940 -
941 - if ($.isFunction(currentOpts.onClosed)) {
942 - currentOpts.onClosed(currentArray, currentIndex, currentOpts);
943 - }
944 -
945 - currentArray = selectedOpts = [];
946 - currentIndex = selectedIndex = 0;
947 - currentOpts = selectedOpts = {};
948 -
949 - busy = false;
950 - }
951 -
952 - inner.css('overflow', 'hidden');
953 -
954 - if (currentOpts.transitionOut == 'elastic') {
955 - start_pos = fancybox_get_zoom_from();
956 -
957 - var pos = wrap.position();
958 -
959 - final_pos = {
960 - top : pos.top ,
961 - left : pos.left,
962 - width : wrap.width(),
963 - height : wrap.height()
964 - };
965 -
966 - if (currentOpts.opacity) {
967 - final_pos.opacity = 1;
968 - }
969 -
970 - fx.prop = 1;
971 -
972 - $(fx).animate({ prop: 0 }, {
973 - duration : currentOpts.speedOut,
974 - easing : currentOpts.easingOut,
975 - step : fancybox_draw,
976 - complete : _cleanup
977 - });
978 -
979 - } else {
980 - wrap.fadeOut( currentOpts.transitionOut == 'none' ? 0 : currentOpts.speedOut, _cleanup);
981 - }
982 - };
983 -
984 - $.fancybox.resize = function() {
985 - var c, h;
986 -
987 - if (busy || wrap.is(':hidden')) {
988 - return;
989 - }
990 -
991 - busy = true;
992 -
993 - c = inner.wrapInner("<div style='overflow:auto'></div>").children();
994 - h = c.height();
995 -
996 - wrap.css({height: h + (currentOpts.padding * 2) + titleh});
997 - inner.css({height: h});
998 -
999 - c.replaceWith(c.children());
1000 -
1001 - $.fancybox.center();
1002 - };
1003 -
1004 - $.fancybox.center = function() {
1005 - busy = true;
1006 -
1007 - var view = fancybox_get_viewport(),
1008 - margin = currentOpts.margin,
1009 - to = {};
1010 -
1011 - to.top = view[3] + ((view[1] - ((wrap.height() - titleh) + (shadow * 2 ))) * 0.5);
1012 - to.left = view[2] + ((view[0] - (wrap.width() + (shadow * 2 ))) * 0.5);
1013 -
1014 - to.top = Math.max(view[3] + margin, to.top);
1015 - to.left = Math.max(view[2] + margin, to.left);
1016 -
1017 - wrap.css(to);
1018 -
1019 - busy = false;
1020 - };
1021 -
1022 - $.fn.fancybox.defaults = {
1023 - padding : 10,
1024 - margin : 20,
1025 - opacity : false,
1026 - modal : false,
1027 - cyclic : false,
1028 - scrolling : 'auto', // 'auto', 'yes' or 'no'
1029 -
1030 - width : 560,
1031 - height : 340,
1032 -
1033 - autoScale : true,
1034 - autoDimensions : true,
1035 - centerOnScroll : false,
1036 -
1037 - ajax : {},
1038 - swf : { wmode: 'transparent' },
1039 -
1040 - hideOnOverlayClick : true,
1041 - hideOnContentClick : false,
1042 -
1043 - overlayShow : true,
1044 - overlayOpacity : 0.3,
1045 - overlayColor : '#666',
1046 -
1047 - titleShow : true,
1048 - titlePosition : 'outside', // 'outside', 'inside' or 'over'
1049 - titleFormat : null,
1050 -
1051 - transitionIn : 'fade', // 'elastic', 'fade' or 'none'
1052 - transitionOut : 'fade', // 'elastic', 'fade' or 'none'
1053 -
1054 - speedIn : 300,
1055 - speedOut : 300,
1056 -
1057 - changeSpeed : 300,
1058 - changeFade : 'fast',
1059 -
1060 - easingIn : 'swing',
1061 - easingOut : 'swing',
1062 -
1063 - showCloseButton : true,
1064 - showNavArrows : true,
1065 - enableEscapeButton : true,
1066 -
1067 - onStart : null,
1068 - onCancel : null,
1069 - onComplete : null,
1070 - onCleanup : null,
1071 - onClosed : null
1072 - };
1073 -
1074 - $(document).ready(function() {
1075 - fancybox_init();
1076 - });
1077 -
 2+/*
 3+ * FancyBox - jQuery Plugin
 4+ * Simple and fancy lightbox alternative
 5+ *
 6+ * Examples and documentation at: http://fancybox.net
 7+ *
 8+ * Copyright (c) 2008 - 2010 Janis Skarnelis
 9+ *
 10+ * Version: 1.3.1 (05/03/2010)
 11+ * Requires: jQuery v1.3+
 12+ *
 13+ * Dual licensed under the MIT and GPL licenses:
 14+ * http://www.opensource.org/licenses/mit-license.php
 15+ * http://www.gnu.org/licenses/gpl.html
 16+ */
 17+
 18+(function($) {
 19+
 20+ var tmp, loading, overlay, wrap, outer, inner, close, nav_left, nav_right,
 21+
 22+ selectedIndex = 0, selectedOpts = {}, selectedArray = [], currentIndex = 0, currentOpts = {}, currentArray = [],
 23+
 24+ ajaxLoader = null, imgPreloader = new Image(), imgRegExp = /\.(jpg|gif|png|bmp|jpeg)(.*)?$/i, swfRegExp = /[^\.]\.(swf)\s*$/i,
 25+
 26+ loadingTimer, loadingFrame = 1,
 27+
 28+ start_pos, final_pos, busy = false, shadow = 20, fx = $.extend($('<div/>')[0], { prop: 0 }), titleh = 0,
 29+
 30+ isIE6 = !$.support.opacity && !window.XMLHttpRequest,
 31+
 32+ /*
 33+ * Private methods
 34+ */
 35+
 36+ fancybox_abort = function() {
 37+ loading.hide();
 38+
 39+ imgPreloader.onerror = imgPreloader.onload = null;
 40+
 41+ if (ajaxLoader) {
 42+ ajaxLoader.abort();
 43+ }
 44+
 45+ tmp.empty();
 46+ },
 47+
 48+ fancybox_error = function() {
 49+ $.fancybox('<p id="fancybox_error">The requested content cannot be loaded.<br />Please try again later.</p>', {
 50+ 'scrolling' : 'no',
 51+ 'padding' : 20,
 52+ 'transitionIn' : 'none',
 53+ 'transitionOut' : 'none'
 54+ });
 55+ },
 56+
 57+ fancybox_get_viewport = function() {
 58+ return [ $(window).width(), $(window).height(), $(document).scrollLeft(), $(document).scrollTop() ];
 59+ },
 60+
 61+ fancybox_get_zoom_to = function () {
 62+ var view = fancybox_get_viewport(),
 63+ to = {},
 64+
 65+ margin = currentOpts.margin,
 66+ resize = currentOpts.autoScale,
 67+
 68+ horizontal_space = (shadow + margin) * 2,
 69+ vertical_space = (shadow + margin) * 2,
 70+ double_padding = (currentOpts.padding * 2),
 71+
 72+ ratio;
 73+
 74+ if (currentOpts.width.toString().indexOf('%') > -1) {
 75+ to.width = ((view[0] * parseFloat(currentOpts.width)) / 100) - (shadow * 2) ;
 76+ resize = false;
 77+
 78+ } else {
 79+ to.width = currentOpts.width + double_padding;
 80+ }
 81+
 82+ if (currentOpts.height.toString().indexOf('%') > -1) {
 83+ to.height = ((view[1] * parseFloat(currentOpts.height)) / 100) - (shadow * 2);
 84+ resize = false;
 85+
 86+ } else {
 87+ to.height = currentOpts.height + double_padding;
 88+ }
 89+
 90+ if (resize && (to.width > (view[0] - horizontal_space) || to.height > (view[1] - vertical_space))) {
 91+ if (selectedOpts.type == 'image' || selectedOpts.type == 'swf') {
 92+ horizontal_space += double_padding;
 93+ vertical_space += double_padding;
 94+
 95+ ratio = Math.min(Math.min( view[0] - horizontal_space, currentOpts.width) / currentOpts.width, Math.min( view[1] - vertical_space, currentOpts.height) / currentOpts.height);
 96+
 97+ to.width = Math.round(ratio * (to.width - double_padding)) + double_padding;
 98+ to.height = Math.round(ratio * (to.height - double_padding)) + double_padding;
 99+
 100+ } else {
 101+ to.width = Math.min(to.width, (view[0] - horizontal_space));
 102+ to.height = Math.min(to.height, (view[1] - vertical_space));
 103+ }
 104+ }
 105+
 106+ to.top = view[3] + ((view[1] - (to.height + (shadow * 2 ))) * 0.5);
 107+ to.left = view[2] + ((view[0] - (to.width + (shadow * 2 ))) * 0.5);
 108+
 109+ if (currentOpts.autoScale === false) {
 110+ to.top = Math.max(view[3] + margin, to.top);
 111+ to.left = Math.max(view[2] + margin, to.left);
 112+ }
 113+
 114+ return to;
 115+ },
 116+
 117+ fancybox_format_title = function(title) {
 118+ if (title && title.length) {
 119+ switch (currentOpts.titlePosition) {
 120+ case 'inside':
 121+ return title;
 122+ case 'over':
 123+ return '<span id="fancybox-title-over">' + title + '</span>';
 124+ default:
 125+ return '<span id="fancybox-title-wrap"><span id="fancybox-title-left"></span><span id="fancybox-title-main">' + title + '</span><span id="fancybox-title-right"></span></span>';
 126+ }
 127+ }
 128+
 129+ return false;
 130+ },
 131+
 132+ fancybox_process_title = function() {
 133+ var title = currentOpts.title,
 134+ width = final_pos.width - (currentOpts.padding * 2),
 135+ titlec = 'fancybox-title-' + currentOpts.titlePosition;
 136+
 137+ $('#fancybox-title').remove();
 138+
 139+ titleh = 0;
 140+
 141+ if (currentOpts.titleShow === false) {
 142+ return;
 143+ }
 144+
 145+ title = $.isFunction(currentOpts.titleFormat) ? currentOpts.titleFormat(title, currentArray, currentIndex, currentOpts) : fancybox_format_title(title);
 146+
 147+ if (!title || title === '') {
 148+ return;
 149+ }
 150+
 151+ $('<div id="fancybox-title" class="' + titlec + '" />').css({
 152+ 'width' : width,
 153+ 'paddingLeft' : currentOpts.padding,
 154+ 'paddingRight' : currentOpts.padding
 155+ }).html(title).appendTo('body');
 156+
 157+ switch (currentOpts.titlePosition) {
 158+ case 'inside':
 159+ titleh = $("#fancybox-title").outerHeight(true) - currentOpts.padding;
 160+ final_pos.height += titleh;
 161+ break;
 162+
 163+ case 'over':
 164+ $('#fancybox-title').css('bottom', currentOpts.padding);
 165+ break;
 166+
 167+ default:
 168+ $('#fancybox-title').css('bottom', $("#fancybox-title").outerHeight(true) * -1);
 169+ break;
 170+ }
 171+
 172+ $('#fancybox-title').appendTo( outer ).hide();
 173+ },
 174+
 175+ fancybox_set_navigation = function() {
 176+ $(document).unbind('keydown.fb').bind('keydown.fb', function(e) {
 177+ if (e.keyCode == 27 && currentOpts.enableEscapeButton) {
 178+ e.preventDefault();
 179+ $.fancybox.close();
 180+
 181+ } else if (e.keyCode == 37) {
 182+ e.preventDefault();
 183+ $.fancybox.prev();
 184+
 185+ } else if (e.keyCode == 39) {
 186+ e.preventDefault();
 187+ $.fancybox.next();
 188+ }
 189+ });
 190+
 191+ if ($.fn.mousewheel) {
 192+ wrap.unbind('mousewheel.fb');
 193+
 194+ if (currentArray.length > 1) {
 195+ wrap.bind('mousewheel.fb', function(e, delta) {
 196+ e.preventDefault();
 197+
 198+ if (busy || delta === 0) {
 199+ return;
 200+ }
 201+
 202+ if (delta > 0) {
 203+ $.fancybox.prev();
 204+ } else {
 205+ $.fancybox.next();
 206+ }
 207+ });
 208+ }
 209+ }
 210+
 211+ if (!currentOpts.showNavArrows) { return; }
 212+
 213+ if ((currentOpts.cyclic && currentArray.length > 1) || currentIndex !== 0) {
 214+ nav_left.show();
 215+ }
 216+
 217+ if ((currentOpts.cyclic && currentArray.length > 1) || currentIndex != (currentArray.length -1)) {
 218+ nav_right.show();
 219+ }
 220+ },
 221+
 222+ fancybox_preload_images = function() {
 223+ var href,
 224+ objNext;
 225+
 226+ if ((currentArray.length -1) > currentIndex) {
 227+ href = currentArray[ currentIndex + 1 ].href;
 228+
 229+ if (typeof href !== 'undefined' && href.match(imgRegExp)) {
 230+ objNext = new Image();
 231+ objNext.src = href;
 232+ }
 233+ }
 234+
 235+ if (currentIndex > 0) {
 236+ href = currentArray[ currentIndex - 1 ].href;
 237+
 238+ if (typeof href !== 'undefined' && href.match(imgRegExp)) {
 239+ objNext = new Image();
 240+ objNext.src = href;
 241+ }
 242+ }
 243+ },
 244+
 245+ _finish = function () {
 246+ inner.css('overflow', (currentOpts.scrolling == 'auto' ? (currentOpts.type == 'image' || currentOpts.type == 'iframe' || currentOpts.type == 'swf' ? 'hidden' : 'auto') : (currentOpts.scrolling == 'yes' ? 'auto' : 'visible')));
 247+
 248+ if (!$.support.opacity) {
 249+ inner.get(0).style.removeAttribute('filter');
 250+ wrap.get(0).style.removeAttribute('filter');
 251+ }
 252+
 253+ $('#fancybox-title').show();
 254+
 255+ if (currentOpts.hideOnContentClick) {
 256+ inner.one('click', $.fancybox.close);
 257+ }
 258+ if (currentOpts.hideOnOverlayClick) {
 259+ overlay.one('click', $.fancybox.close);
 260+ }
 261+
 262+ if (currentOpts.showCloseButton) {
 263+ close.show();
 264+ }
 265+
 266+ fancybox_set_navigation();
 267+
 268+ $(window).bind("resize.fb", $.fancybox.center);
 269+
 270+ if (currentOpts.centerOnScroll) {
 271+ $(window).bind("scroll.fb", $.fancybox.center);
 272+ } else {
 273+ $(window).unbind("scroll.fb");
 274+ }
 275+
 276+ if ($.isFunction(currentOpts.onComplete)) {
 277+ currentOpts.onComplete(currentArray, currentIndex, currentOpts);
 278+ }
 279+
 280+ busy = false;
 281+
 282+ fancybox_preload_images();
 283+ },
 284+
 285+ fancybox_draw = function(pos) {
 286+ var width = Math.round(start_pos.width + (final_pos.width - start_pos.width) * pos),
 287+ height = Math.round(start_pos.height + (final_pos.height - start_pos.height) * pos),
 288+
 289+ top = Math.round(start_pos.top + (final_pos.top - start_pos.top) * pos),
 290+ left = Math.round(start_pos.left + (final_pos.left - start_pos.left) * pos);
 291+
 292+ wrap.css({
 293+ 'width' : width + 'px',
 294+ 'height' : height + 'px',
 295+ 'top' : top + 'px',
 296+ 'left' : left + 'px'
 297+ });
 298+
 299+ width = Math.max(width - currentOpts.padding * 2, 0);
 300+ height = Math.max(height - (currentOpts.padding * 2 + (titleh * pos)), 0);
 301+
 302+ inner.css({
 303+ 'width' : width + 'px',
 304+ 'height' : height + 'px'
 305+ });
 306+
 307+ if (typeof final_pos.opacity !== 'undefined') {
 308+ wrap.css('opacity', (pos < 0.5 ? 0.5 : pos));
 309+ }
 310+ },
 311+
 312+ fancybox_get_obj_pos = function(obj) {
 313+ var pos = obj.offset();
 314+
 315+ pos.top += parseFloat( obj.css('paddingTop') ) || 0;
 316+ pos.left += parseFloat( obj.css('paddingLeft') ) || 0;
 317+
 318+ pos.top += parseFloat( obj.css('border-top-width') ) || 0;
 319+ pos.left += parseFloat( obj.css('border-left-width') ) || 0;
 320+
 321+ pos.width = obj.width();
 322+ pos.height = obj.height();
 323+
 324+ return pos;
 325+ },
 326+
 327+ fancybox_get_zoom_from = function() {
 328+ var orig = selectedOpts.orig ? $(selectedOpts.orig) : false,
 329+ from = {},
 330+ pos,
 331+ view;
 332+
 333+ if (orig && orig.length) {
 334+ pos = fancybox_get_obj_pos(orig);
 335+
 336+ from = {
 337+ width : (pos.width + (currentOpts.padding * 2)),
 338+ height : (pos.height + (currentOpts.padding * 2)),
 339+ top : (pos.top - currentOpts.padding - shadow),
 340+ left : (pos.left - currentOpts.padding - shadow)
 341+ };
 342+
 343+ } else {
 344+ view = fancybox_get_viewport();
 345+
 346+ from = {
 347+ width : 1,
 348+ height : 1,
 349+ top : view[3] + view[1] * 0.5,
 350+ left : view[2] + view[0] * 0.5
 351+ };
 352+ }
 353+
 354+ return from;
 355+ },
 356+
 357+ fancybox_show = function() {
 358+ loading.hide();
 359+
 360+ if (wrap.is(":visible") && $.isFunction(currentOpts.onCleanup)) {
 361+ if (currentOpts.onCleanup(currentArray, currentIndex, currentOpts) === false) {
 362+ $.event.trigger('fancybox-cancel');
 363+
 364+ busy = false;
 365+ return;
 366+ }
 367+ }
 368+
 369+ currentArray = selectedArray;
 370+ currentIndex = selectedIndex;
 371+ currentOpts = selectedOpts;
 372+
 373+ inner.get(0).scrollTop = 0;
 374+ inner.get(0).scrollLeft = 0;
 375+
 376+ if (currentOpts.overlayShow) {
 377+ if (isIE6) {
 378+ $('select:not(#fancybox-tmp select)').filter(function() {
 379+ return this.style.visibility !== 'hidden';
 380+ }).css({'visibility':'hidden'}).one('fancybox-cleanup', function() {
 381+ this.style.visibility = 'inherit';
 382+ });
 383+ }
 384+
 385+ overlay.css({
 386+ 'background-color' : currentOpts.overlayColor,
 387+ 'opacity' : currentOpts.overlayOpacity
 388+ }).unbind().show();
 389+ }
 390+
 391+ final_pos = fancybox_get_zoom_to();
 392+
 393+ fancybox_process_title();
 394+
 395+ if (wrap.is(":visible")) {
 396+ $( close.add( nav_left ).add( nav_right ) ).hide();
 397+
 398+ var pos = wrap.position(),
 399+ equal;
 400+
 401+ start_pos = {
 402+ top : pos.top ,
 403+ left : pos.left,
 404+ width : wrap.width(),
 405+ height : wrap.height()
 406+ };
 407+
 408+ equal = (start_pos.width == final_pos.width && start_pos.height == final_pos.height);
 409+
 410+ inner.fadeOut(currentOpts.changeFade, function() {
 411+ var finish_resizing = function() {
 412+ inner.html( tmp.contents() ).fadeIn(currentOpts.changeFade, _finish);
 413+ };
 414+
 415+ $.event.trigger('fancybox-change');
 416+
 417+ inner.empty().css('overflow', 'hidden');
 418+
 419+ if (equal) {
 420+ inner.css({
 421+ top : currentOpts.padding,
 422+ left : currentOpts.padding,
 423+ width : Math.max(final_pos.width - (currentOpts.padding * 2), 1),
 424+ height : Math.max(final_pos.height - (currentOpts.padding * 2) - titleh, 1)
 425+ });
 426+
 427+ finish_resizing();
 428+
 429+ } else {
 430+ inner.css({
 431+ top : currentOpts.padding,
 432+ left : currentOpts.padding,
 433+ width : Math.max(start_pos.width - (currentOpts.padding * 2), 1),
 434+ height : Math.max(start_pos.height - (currentOpts.padding * 2), 1)
 435+ });
 436+
 437+ fx.prop = 0;
 438+
 439+ $(fx).animate({ prop: 1 }, {
 440+ duration : currentOpts.changeSpeed,
 441+ easing : currentOpts.easingChange,
 442+ step : fancybox_draw,
 443+ complete : finish_resizing
 444+ });
 445+ }
 446+ });
 447+
 448+ return;
 449+ }
 450+
 451+ wrap.css('opacity', 1);
 452+
 453+ if (currentOpts.transitionIn == 'elastic') {
 454+ start_pos = fancybox_get_zoom_from();
 455+
 456+ inner.css({
 457+ top : currentOpts.padding,
 458+ left : currentOpts.padding,
 459+ width : Math.max(start_pos.width - (currentOpts.padding * 2), 1),
 460+ height : Math.max(start_pos.height - (currentOpts.padding * 2), 1)
 461+ })
 462+ .html( tmp.contents() );
 463+
 464+ wrap.css(start_pos).show();
 465+
 466+ if (currentOpts.opacity) {
 467+ final_pos.opacity = 0;
 468+ }
 469+
 470+ fx.prop = 0;
 471+
 472+ $(fx).animate({ prop: 1 }, {
 473+ duration : currentOpts.speedIn,
 474+ easing : currentOpts.easingIn,
 475+ step : fancybox_draw,
 476+ complete : _finish
 477+ });
 478+
 479+ } else {
 480+ inner.css({
 481+ top : currentOpts.padding,
 482+ left : currentOpts.padding,
 483+ width : Math.max(final_pos.width - (currentOpts.padding * 2), 1),
 484+ height : Math.max(final_pos.height - (currentOpts.padding * 2) - titleh, 1)
 485+ })
 486+ .html( tmp.contents() );
 487+
 488+ wrap.css( final_pos ).fadeIn( currentOpts.transitionIn == 'none' ? 0 : currentOpts.speedIn, _finish );
 489+ }
 490+ },
 491+
 492+ fancybox_process_inline = function() {
 493+ tmp.width( selectedOpts.width );
 494+ tmp.height( selectedOpts.height );
 495+
 496+ if (selectedOpts.width == 'auto') {
 497+ selectedOpts.width = tmp.width();
 498+ }
 499+ if (selectedOpts.height == 'auto') {
 500+ selectedOpts.height = tmp.height();
 501+ }
 502+
 503+ fancybox_show();
 504+ },
 505+
 506+ fancybox_process_image = function() {
 507+ busy = true;
 508+
 509+ selectedOpts.width = imgPreloader.width;
 510+ selectedOpts.height = imgPreloader.height;
 511+
 512+ $("<img />").attr({
 513+ 'id' : 'fancybox-img',
 514+ 'src' : imgPreloader.src,
 515+ 'alt' : selectedOpts.title
 516+ }).appendTo( tmp );
 517+
 518+ fancybox_show();
 519+ },
 520+
 521+ fancybox_start = function() {
 522+ fancybox_abort();
 523+
 524+ var obj = selectedArray[ selectedIndex ],
 525+ href,
 526+ type,
 527+ title,
 528+ str,
 529+ emb,
 530+ selector,
 531+ data;
 532+
 533+ selectedOpts = $.extend({}, $.fn.fancybox.defaults, (typeof $(obj).data('fancybox') == 'undefined' ? selectedOpts : $(obj).data('fancybox')));
 534+ title = obj.title || $(obj).title || selectedOpts.title || '';
 535+
 536+ if (obj.nodeName && !selectedOpts.orig) {
 537+ selectedOpts.orig = $(obj).children("img:first").length ? $(obj).children("img:first") : $(obj);
 538+ }
 539+
 540+ if (title === '' && selectedOpts.orig) {
 541+ title = selectedOpts.orig.attr('alt');
 542+ }
 543+
 544+ if (obj.nodeName && (/^(?:javascript|#)/i).test(obj.href)) {
 545+ href = selectedOpts.href || null;
 546+ } else {
 547+ href = selectedOpts.href || obj.href || null;
 548+ }
 549+
 550+ if (selectedOpts.type) {
 551+ type = selectedOpts.type;
 552+
 553+ if (!href) {
 554+ href = selectedOpts.content;
 555+ }
 556+
 557+ } else if (selectedOpts.content) {
 558+ type = 'html';
 559+
 560+ } else if (href) {
 561+ if (href.match(imgRegExp)) {
 562+ type = 'image';
 563+
 564+ } else if (href.match(swfRegExp)) {
 565+ type = 'swf';
 566+
 567+ } else if ($(obj).hasClass("iframe")) {
 568+ type = 'iframe';
 569+
 570+ } else if (href.match(/#/)) {
 571+ obj = href.substr(href.indexOf("#"));
 572+
 573+ type = $(obj).length > 0 ? 'inline' : 'ajax';
 574+ } else {
 575+ type = 'ajax';
 576+ }
 577+ } else {
 578+ type = 'inline';
 579+ }
 580+
 581+ selectedOpts.type = type;
 582+ selectedOpts.href = href;
 583+ selectedOpts.title = title;
 584+
 585+ if (selectedOpts.autoDimensions && selectedOpts.type !== 'iframe' && selectedOpts.type !== 'swf') {
 586+ selectedOpts.width = 'auto';
 587+ selectedOpts.height = 'auto';
 588+ }
 589+
 590+ if (selectedOpts.modal) {
 591+ selectedOpts.overlayShow = true;
 592+ selectedOpts.hideOnOverlayClick = false;
 593+ selectedOpts.hideOnContentClick = false;
 594+ selectedOpts.enableEscapeButton = false;
 595+ selectedOpts.showCloseButton = false;
 596+ }
 597+
 598+ if ($.isFunction(selectedOpts.onStart)) {
 599+ if (selectedOpts.onStart(selectedArray, selectedIndex, selectedOpts) === false) {
 600+ busy = false;
 601+ return;
 602+ }
 603+ }
 604+
 605+ tmp.css('padding', (shadow + selectedOpts.padding + selectedOpts.margin));
 606+
 607+ $('.fancybox-inline-tmp').unbind('fancybox-cancel').bind('fancybox-change', function() {
 608+ $(this).replaceWith(inner.children());
 609+ });
 610+
 611+ switch (type) {
 612+ case 'html' :
 613+ tmp.html( selectedOpts.content );
 614+ fancybox_process_inline();
 615+ break;
 616+
 617+ case 'inline' :
 618+ $('<div class="fancybox-inline-tmp" />').hide().insertBefore( $(obj) ).bind('fancybox-cleanup', function() {
 619+ $(this).replaceWith(inner.children());
 620+ }).bind('fancybox-cancel', function() {
 621+ $(this).replaceWith(tmp.children());
 622+ });
 623+
 624+ $(obj).appendTo(tmp);
 625+
 626+ fancybox_process_inline();
 627+ break;
 628+
 629+ case 'image':
 630+ busy = false;
 631+
 632+ $.fancybox.showActivity();
 633+
 634+ imgPreloader = new Image();
 635+
 636+ imgPreloader.onerror = function() {
 637+ fancybox_error();
 638+ };
 639+
 640+ imgPreloader.onload = function() {
 641+ imgPreloader.onerror = null;
 642+ imgPreloader.onload = null;
 643+ fancybox_process_image();
 644+ };
 645+
 646+ imgPreloader.src = href;
 647+
 648+ break;
 649+
 650+ case 'swf':
 651+ str = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' + selectedOpts.width + '" height="' + selectedOpts.height + '"><param name="movie" value="' + href + '"></param>';
 652+ emb = '';
 653+
 654+ $.each(selectedOpts.swf, function(name, val) {
 655+ str += '<param name="' + name + '" value="' + val + '"></param>';
 656+ emb += ' ' + name + '="' + val + '"';
 657+ });
 658+
 659+ str += '<embed src="' + href + '" type="application/x-shockwave-flash" width="' + selectedOpts.width + '" height="' + selectedOpts.height + '"' + emb + '></embed></object>';
 660+
 661+ tmp.html(str);
 662+
 663+ fancybox_process_inline();
 664+ break;
 665+
 666+ case 'ajax':
 667+ selector = href.split('#', 2);
 668+ data = selectedOpts.ajax.data || {};
 669+
 670+ if (selector.length > 1) {
 671+ href = selector[0];
 672+
 673+ if (typeof data == "string") {
 674+ data += '&selector=' + selector[1];
 675+ } else {
 676+ data.selector = selector[1];
 677+ }
 678+ }
 679+
 680+ busy = false;
 681+ $.fancybox.showActivity();
 682+
 683+ ajaxLoader = $.ajax($.extend(selectedOpts.ajax, {
 684+ url : href,
 685+ data : data,
 686+ error : fancybox_error,
 687+ success : function(data, textStatus, XMLHttpRequest) {
 688+ if (ajaxLoader.status == 200) {
 689+ tmp.html( data );
 690+ fancybox_process_inline();
 691+ }
 692+ }
 693+ }));
 694+
 695+ break;
 696+
 697+ case 'iframe' :
 698+ $('<iframe id="fancybox-frame" name="fancybox-frame' + new Date().getTime() + '" frameborder="0" hspace="0" scrolling="' + selectedOpts.scrolling + '" src="' + selectedOpts.href + '"></iframe>').appendTo(tmp);
 699+ fancybox_show();
 700+ break;
 701+ }
 702+ },
 703+
 704+ fancybox_animate_loading = function() {
 705+ if (!loading.is(':visible')){
 706+ clearInterval(loadingTimer);
 707+ return;
 708+ }
 709+
 710+ $('div', loading).css('top', (loadingFrame * -40) + 'px');
 711+
 712+ loadingFrame = (loadingFrame + 1) % 12;
 713+ },
 714+
 715+ fancybox_init = function() {
 716+ if ($("#fancybox-wrap").length) {
 717+ return;
 718+ }
 719+
 720+ $('body').append(
 721+ tmp = $('<div id="fancybox-tmp"></div>'),
 722+ loading = $('<div id="fancybox-loading"><div></div></div>'),
 723+ overlay = $('<div id="fancybox-overlay"></div>'),
 724+ wrap = $('<div id="fancybox-wrap"></div>')
 725+ );
 726+
 727+ if (!$.support.opacity) {
 728+ wrap.addClass('fancybox-ie');
 729+ loading.addClass('fancybox-ie');
 730+ }
 731+
 732+ outer = $('<div id="fancybox-outer"></div>')
 733+ .append('<div class="fancy-bg" id="fancy-bg-n"></div><div class="fancy-bg" id="fancy-bg-ne"></div><div class="fancy-bg" id="fancy-bg-e"></div><div class="fancy-bg" id="fancy-bg-se"></div><div class="fancy-bg" id="fancy-bg-s"></div><div class="fancy-bg" id="fancy-bg-sw"></div><div class="fancy-bg" id="fancy-bg-w"></div><div class="fancy-bg" id="fancy-bg-nw"></div>')
 734+ .appendTo( wrap );
 735+
 736+ outer.append(
 737+ inner = $('<div id="fancybox-inner"></div>'),
 738+ close = $('<a id="fancybox-close"></a>'),
 739+
 740+ nav_left = $('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),
 741+ nav_right = $('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>')
 742+ );
 743+
 744+ close.click($.fancybox.close);
 745+ loading.click($.fancybox.cancel);
 746+
 747+ nav_left.click(function(e) {
 748+ e.preventDefault();
 749+ $.fancybox.prev();
 750+ });
 751+
 752+ nav_right.click(function(e) {
 753+ e.preventDefault();
 754+ $.fancybox.next();
 755+ });
 756+
 757+ if (isIE6) {
 758+ overlay.get(0).style.setExpression('height', "document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'");
 759+ loading.get(0).style.setExpression('top', "(-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop )) + 'px'");
 760+
 761+ outer.prepend('<iframe id="fancybox-hide-sel-frame" src="javascript:\'\';" scrolling="no" frameborder="0" ></iframe>');
 762+ }
 763+ };
 764+
 765+ /*
 766+ * Public methods
 767+ */
 768+
 769+ $.fn.fancybox = function(options) {
 770+ $(this)
 771+ .data('fancybox', $.extend({}, options, ($.metadata ? $(this).metadata() : {})))
 772+ .unbind('click.fb').bind('click.fb', function(e) {
 773+ e.preventDefault();
 774+
 775+ if (busy) {
 776+ return;
 777+ }
 778+
 779+ busy = true;
 780+
 781+ $(this).blur();
 782+
 783+ selectedArray = [];
 784+ selectedIndex = 0;
 785+
 786+ var rel = $(this).attr('rel') || '';
 787+
 788+ if (!rel || rel == '' || rel === 'nofollow') {
 789+ selectedArray.push(this);
 790+
 791+ } else {
 792+ selectedArray = $("a[rel=" + rel + "], area[rel=" + rel + "]");
 793+ selectedIndex = selectedArray.index( this );
 794+ }
 795+
 796+ fancybox_start();
 797+
 798+ return false;
 799+ });
 800+
 801+ return this;
 802+ };
 803+
 804+ $.fancybox = function(obj) {
 805+ if (busy) {
 806+ return;
 807+ }
 808+
 809+ busy = true;
 810+
 811+ var opts = typeof arguments[1] !== 'undefined' ? arguments[1] : {};
 812+
 813+ selectedArray = [];
 814+ selectedIndex = opts.index || 0;
 815+
 816+ if ($.isArray(obj)) {
 817+ for (var i = 0, j = obj.length; i < j; i++) {
 818+ if (typeof obj[i] == 'object') {
 819+ $(obj[i]).data('fancybox', $.extend({}, opts, obj[i]));
 820+ } else {
 821+ obj[i] = $({}).data('fancybox', $.extend({content : obj[i]}, opts));
 822+ }
 823+ }
 824+
 825+ selectedArray = jQuery.merge(selectedArray, obj);
 826+
 827+ } else {
 828+ if (typeof obj == 'object') {
 829+ $(obj).data('fancybox', $.extend({}, opts, obj));
 830+ } else {
 831+ obj = $({}).data('fancybox', $.extend({content : obj}, opts));
 832+ }
 833+
 834+ selectedArray.push(obj);
 835+ }
 836+
 837+ if (selectedIndex > selectedArray.length || selectedIndex < 0) {
 838+ selectedIndex = 0;
 839+ }
 840+
 841+ fancybox_start();
 842+ };
 843+
 844+ $.fancybox.showActivity = function() {
 845+ clearInterval(loadingTimer);
 846+
 847+ loading.show();
 848+ loadingTimer = setInterval(fancybox_animate_loading, 66);
 849+ };
 850+
 851+ $.fancybox.hideActivity = function() {
 852+ loading.hide();
 853+ };
 854+
 855+ $.fancybox.next = function() {
 856+ return $.fancybox.pos( currentIndex + 1);
 857+ };
 858+
 859+ $.fancybox.prev = function() {
 860+ return $.fancybox.pos( currentIndex - 1);
 861+ };
 862+
 863+ $.fancybox.pos = function(pos) {
 864+ if (busy) {
 865+ return;
 866+ }
 867+
 868+ pos = parseInt(pos, 10);
 869+
 870+ if (pos > -1 && currentArray.length > pos) {
 871+ selectedIndex = pos;
 872+ fancybox_start();
 873+ }
 874+
 875+ if (currentOpts.cyclic && currentArray.length > 1 && pos < 0) {
 876+ selectedIndex = currentArray.length - 1;
 877+ fancybox_start();
 878+ }
 879+
 880+ if (currentOpts.cyclic && currentArray.length > 1 && pos >= currentArray.length) {
 881+ selectedIndex = 0;
 882+ fancybox_start();
 883+ }
 884+
 885+ return;
 886+ };
 887+
 888+ $.fancybox.cancel = function() {
 889+ if (busy) {
 890+ return;
 891+ }
 892+
 893+ busy = true;
 894+
 895+ $.event.trigger('fancybox-cancel');
 896+
 897+ fancybox_abort();
 898+
 899+ if (selectedOpts && $.isFunction(selectedOpts.onCancel)) {
 900+ selectedOpts.onCancel(selectedArray, selectedIndex, selectedOpts);
 901+ }
 902+
 903+ busy = false;
 904+ };
 905+
 906+ // Note: within an iframe use - parent.$.fancybox.close();
 907+ $.fancybox.close = function() {
 908+ if (busy || wrap.is(':hidden')) {
 909+ return;
 910+ }
 911+
 912+ busy = true;
 913+
 914+ if (currentOpts && $.isFunction(currentOpts.onCleanup)) {
 915+ if (currentOpts.onCleanup(currentArray, currentIndex, currentOpts) === false) {
 916+ busy = false;
 917+ return;
 918+ }
 919+ }
 920+
 921+ fancybox_abort();
 922+
 923+ $(close.add( nav_left ).add( nav_right )).hide();
 924+
 925+ $('#fancybox-title').remove();
 926+
 927+ wrap.add(inner).add(overlay).unbind();
 928+
 929+ $(window).unbind("resize.fb scroll.fb");
 930+ $(document).unbind('keydown.fb');
 931+
 932+ function _cleanup() {
 933+ overlay.fadeOut('fast');
 934+
 935+ wrap.hide();
 936+
 937+ $.event.trigger('fancybox-cleanup');
 938+
 939+ inner.empty();
 940+
 941+ if ($.isFunction(currentOpts.onClosed)) {
 942+ currentOpts.onClosed(currentArray, currentIndex, currentOpts);
 943+ }
 944+
 945+ currentArray = selectedOpts = [];
 946+ currentIndex = selectedIndex = 0;
 947+ currentOpts = selectedOpts = {};
 948+
 949+ busy = false;
 950+ }
 951+
 952+ inner.css('overflow', 'hidden');
 953+
 954+ if (currentOpts.transitionOut == 'elastic') {
 955+ start_pos = fancybox_get_zoom_from();
 956+
 957+ var pos = wrap.position();
 958+
 959+ final_pos = {
 960+ top : pos.top ,
 961+ left : pos.left,
 962+ width : wrap.width(),
 963+ height : wrap.height()
 964+ };
 965+
 966+ if (currentOpts.opacity) {
 967+ final_pos.opacity = 1;
 968+ }
 969+
 970+ fx.prop = 1;
 971+
 972+ $(fx).animate({ prop: 0 }, {
 973+ duration : currentOpts.speedOut,
 974+ easing : currentOpts.easingOut,
 975+ step : fancybox_draw,
 976+ complete : _cleanup
 977+ });
 978+
 979+ } else {
 980+ wrap.fadeOut( currentOpts.transitionOut == 'none' ? 0 : currentOpts.speedOut, _cleanup);
 981+ }
 982+ };
 983+
 984+ $.fancybox.resize = function() {
 985+ var c, h;
 986+
 987+ if (busy || wrap.is(':hidden')) {
 988+ return;
 989+ }
 990+
 991+ busy = true;
 992+
 993+ c = inner.wrapInner("<div style='overflow:auto'></div>").children();
 994+ h = c.height();
 995+
 996+ wrap.css({height: h + (currentOpts.padding * 2) + titleh});
 997+ inner.css({height: h});
 998+
 999+ c.replaceWith(c.children());
 1000+
 1001+ $.fancybox.center();
 1002+ };
 1003+
 1004+ $.fancybox.center = function() {
 1005+ busy = true;
 1006+
 1007+ var view = fancybox_get_viewport(),
 1008+ margin = currentOpts.margin,
 1009+ to = {};
 1010+
 1011+ to.top = view[3] + ((view[1] - ((wrap.height() - titleh) + (shadow * 2 ))) * 0.5);
 1012+ to.left = view[2] + ((view[0] - (wrap.width() + (shadow * 2 ))) * 0.5);
 1013+
 1014+ to.top = Math.max(view[3] + margin, to.top);
 1015+ to.left = Math.max(view[2] + margin, to.left);
 1016+
 1017+ wrap.css(to);
 1018+
 1019+ busy = false;
 1020+ };
 1021+
 1022+ $.fn.fancybox.defaults = {
 1023+ padding : 10,
 1024+ margin : 20,
 1025+ opacity : false,
 1026+ modal : false,
 1027+ cyclic : false,
 1028+ scrolling : 'auto', // 'auto', 'yes' or 'no'
 1029+
 1030+ width : 560,
 1031+ height : 340,
 1032+
 1033+ autoScale : true,
 1034+ autoDimensions : true,
 1035+ centerOnScroll : false,
 1036+
 1037+ ajax : {},
 1038+ swf : { wmode: 'transparent' },
 1039+
 1040+ hideOnOverlayClick : true,
 1041+ hideOnContentClick : false,
 1042+
 1043+ overlayShow : true,
 1044+ overlayOpacity : 0.3,
 1045+ overlayColor : '#666',
 1046+
 1047+ titleShow : true,
 1048+ titlePosition : 'outside', // 'outside', 'inside' or 'over'
 1049+ titleFormat : null,
 1050+
 1051+ transitionIn : 'fade', // 'elastic', 'fade' or 'none'
 1052+ transitionOut : 'fade', // 'elastic', 'fade' or 'none'
 1053+
 1054+ speedIn : 300,
 1055+ speedOut : 300,
 1056+
 1057+ changeSpeed : 300,
 1058+ changeFade : 'fast',
 1059+
 1060+ easingIn : 'swing',
 1061+ easingOut : 'swing',
 1062+
 1063+ showCloseButton : true,
 1064+ showNavArrows : true,
 1065+ enableEscapeButton : true,
 1066+
 1067+ onStart : null,
 1068+ onCancel : null,
 1069+ onComplete : null,
 1070+ onCleanup : null,
 1071+ onClosed : null
 1072+ };
 1073+
 1074+ $(document).ready(function() {
 1075+ fancybox_init();
 1076+ });
 1077+
10781078 })(jQuery);
\ No newline at end of file
Property changes on: trunk/extensions/SemanticForms/libs/jquery.fancybox-1.3.1.js
___________________________________________________________________
Added: svn:eol-style
10791079 + native

Follow-up revisions

RevisionCommit summaryAuthorDate
r71374Hmm, I forgot this file with r71373ialex19:49, 20 August 2010

Status & tagging log