r95591 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95590‎ | r95591 | r95592 >
Date:02:13, 27 August 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
work on survey dialog
Modified paths:
  • /trunk/extensions/Survey/Survey.i18n.php (modified) (history)
  • /trunk/extensions/Survey/Survey.php (modified) (history)
  • /trunk/extensions/Survey/api/ApiQuerySurveys.php (modified) (history)
  • /trunk/extensions/Survey/includes/Survey.class.php (modified) (history)
  • /trunk/extensions/Survey/includes/SurveyAnswer.php (modified) (history)
  • /trunk/extensions/Survey/includes/SurveyCompat.php (modified) (history)
  • /trunk/extensions/Survey/includes/SurveyQuestion.php (modified) (history)
  • /trunk/extensions/Survey/includes/SurveySubmission.php (modified) (history)
  • /trunk/extensions/Survey/includes/SurveyTag.php (modified) (history)
  • /trunk/extensions/Survey/resources/fancybox (added) (history)
  • /trunk/extensions/Survey/resources/fancybox/blank.gif (added) (history)
  • /trunk/extensions/Survey/resources/fancybox/fancy_close.png (added) (history)
  • /trunk/extensions/Survey/resources/fancybox/fancy_loading.png (added) (history)
  • /trunk/extensions/Survey/resources/fancybox/fancy_nav_left.png (added) (history)
  • /trunk/extensions/Survey/resources/fancybox/fancy_nav_right.png (added) (history)
  • /trunk/extensions/Survey/resources/fancybox/fancy_shadow_e.png (added) (history)
  • /trunk/extensions/Survey/resources/fancybox/fancy_shadow_n.png (added) (history)
  • /trunk/extensions/Survey/resources/fancybox/fancy_shadow_ne.png (added) (history)
  • /trunk/extensions/Survey/resources/fancybox/fancy_shadow_nw.png (added) (history)
  • /trunk/extensions/Survey/resources/fancybox/fancy_shadow_s.png (added) (history)
  • /trunk/extensions/Survey/resources/fancybox/fancy_shadow_se.png (added) (history)
  • /trunk/extensions/Survey/resources/fancybox/fancy_shadow_sw.png (added) (history)
  • /trunk/extensions/Survey/resources/fancybox/fancy_shadow_w.png (added) (history)
  • /trunk/extensions/Survey/resources/fancybox/fancy_title_left.png (added) (history)
  • /trunk/extensions/Survey/resources/fancybox/fancy_title_main.png (added) (history)
  • /trunk/extensions/Survey/resources/fancybox/fancy_title_over.png (added) (history)
  • /trunk/extensions/Survey/resources/fancybox/fancy_title_right.png (added) (history)
  • /trunk/extensions/Survey/resources/fancybox/fancybox-x.png (added) (history)
  • /trunk/extensions/Survey/resources/fancybox/fancybox-y.png (added) (history)
  • /trunk/extensions/Survey/resources/fancybox/fancybox.png (added) (history)
  • /trunk/extensions/Survey/resources/fancybox/jquery.easing-1.3.pack.js (added) (history)
  • /trunk/extensions/Survey/resources/fancybox/jquery.fancybox-1.3.4.css (added) (history)
  • /trunk/extensions/Survey/resources/fancybox/jquery.fancybox-1.3.4.js (added) (history)
  • /trunk/extensions/Survey/resources/fancybox/jquery.fancybox-1.3.4.pack.js (added) (history)
  • /trunk/extensions/Survey/resources/fancybox/jquery.mousewheel-3.0.4.pack.js (added) (history)
  • /trunk/extensions/Survey/resources/jquery.survey.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Survey/Survey.php
@@ -137,8 +137,12 @@
138138
139139 $wgResourceModules['ext.survey.jquery'] = $moduleTemplate + array(
140140 'scripts' => array(
 141+ 'fancybox/jquery.fancybox-1.3.4.js',
141142 'jquery.survey.js'
142143 ),
 144+ 'styles' => array(
 145+ 'fancybox/jquery.fancybox-1.3.4.css',
 146+ ),
143147 'dependencies' => array( 'ext.survey' ),
144148 'messages' => $egSurveyMessages['jquery.survey']
145149 );
Index: trunk/extensions/Survey/Survey.i18n.php
@@ -34,6 +34,7 @@
3535 'survey-err-id-xor-name' => 'You need to provide either the id or the name of the survey to submit',
3636 'survey-err-survey-name-unknown' => 'There is no survey with the name "$1"',
3737 'survey-err-duplicate-name' => 'There already is a survey with name "$1"',
 38+ 'survey-err-ids-xor-names' => 'You need to provide either the ids or the names of the surveys to query',
3839
3940 // Special:Surveys
4041 'surveys-special-addnew' => 'Add a new survey',
Index: trunk/extensions/Survey/includes/SurveySubmission.php
@@ -58,10 +58,10 @@
5959 * @param string $timeStamp
6060 */
6161 public function __construct( $id, $surveyId, $userName, $pageId, $timeStamp ) {
62 - $this->id = $id;
63 - $this->surveyId = $surveyId;
 62+ $this->id = is_null( $id ) ? $id : (int)$id;
 63+ $this->surveyId = (int)$surveyId;
6464 $this->userName = $userName;
65 - $this->pageId = $pageId;
 65+ $this->pageId = (int)$pageId;
6666 $this->timeStamp = $timeStamp;
6767 }
6868
Index: trunk/extensions/Survey/includes/SurveyTag.php
@@ -45,6 +45,8 @@
4646 $this->parameters['survey-data-' . $name] = $value;
4747 }
4848 }
 49+
 50+ $this->parameters['class'] = 'surveytag';
4951 }
5052 else {
5153 throw new MWException( 'Invalid parameters for survey tag.' );
@@ -64,13 +66,15 @@
6567 static $loadedJs = false;
6668
6769 if ( !$loadedJs ) {
 70+ $po /* ParserOutput */ = $parser->getOutput();
 71+
6872 // For backward compatibility with MW < 1.17.
69 - if ( is_callable( array( $parser, 'addModules' ) ) ) {
70 - $parser->addModules( 'ext.survey.jquery' );
71 - }
72 - else {
73 - SurveyCompat::addResourceModules( $parser->getOutput(), 'ext.survey.jquery' );
74 - }
 73+// if ( is_callable( array( $po, 'addModules' ) ) ) {
 74+// $po->addModules( 'ext.survey.jquery' );
 75+// }
 76+// else {
 77+ SurveyCompat::addResourceModules( $po, 'ext.survey.jquery' );
 78+// }
7579 }
7680
7781 return Html::element(
Index: trunk/extensions/Survey/includes/SurveyAnswer.php
@@ -48,9 +48,9 @@
4949 * @param string $text
5050 */
5151 public function __construct( $id, $submissionId, $questionId, $text ) {
52 - $this->id = $id;
53 - $this->submissionId = $submissionId;
54 - $this->questionId = $questionId;
 52+ $this->id = is_null( $id ) ? $id : (int)$id;
 53+ $this->submissionId = (int)$submissionId;
 54+ $this->questionId = (int)$questionId;
5555 $this->text = $text;
5656 }
5757
Index: trunk/extensions/Survey/includes/Survey.class.php
@@ -123,9 +123,9 @@
124124 }
125125
126126 $survey = new self(
127 - $survey->survey_id,
 127+ (int)$survey->survey_id,
128128 $survey->survey_name,
129 - $survey->survey_enabled
 129+ (int)$survey->survey_enabled == 1
130130 );
131131
132132 if ( $loadQuestions ) {
Index: trunk/extensions/Survey/includes/SurveyCompat.php
@@ -49,6 +49,8 @@
5050 break;
5151 case 'ext.survey.jquery':
5252 $out->addHeadItem(
 53+ Html::linkedStyle( $egSurveyScriptPath . '/fancybox/jquery.fancybox-1.3.4.css' ) .
 54+ Html::linkedScript( $egSurveyScriptPath . '/fancybox/jquery.fancybox-1.3.4.js' ) .
5355 Html::linkedScript( $egSurveyScriptPath . '/jquery.survey.js' ),
5456 $module
5557 );
Index: trunk/extensions/Survey/includes/SurveyQuestion.php
@@ -84,8 +84,8 @@
8585 * @param boolean $removed
8686 */
8787 public function __construct( $id, $surveyId, $text, $type, $required, array $answers = array(), $removed = false ) {
88 - $this->id = $id;
89 - $this->surveyId = $surveyId;
 88+ $this->id = is_null( $id ) ? $id : (int)$id;
 89+ $this->surveyId = (int)$surveyId;
9090 $this->text = $text;
9191 $this->type = $type;
9292 $this->required = $required;
Index: trunk/extensions/Survey/api/ApiQuerySurveys.php
@@ -26,26 +26,35 @@
2727
2828 if ( $wgUser->isBlocked() ) {
2929 $this->dieUsageMsg( array( 'badaccess-groups' ) );
30 - }
31 -
 30+ }
 31+
3232 // Get the requests parameters.
3333 $params = $this->extractRequestParams();
3434
 35+ if ( !( isset( $params['ids'] ) XOR isset( $params['names'] ) ) ) {
 36+ $this->dieUsage( wfMsgExt( 'survey-err-ids-xor-names' ), 'ids-xor-names' );
 37+ }
 38+
3539 $surveys = array();
3640
37 - foreach ( $params['ids'] as $surveyId ) {
38 - $survey = Survey::newFromId( $surveyId, $params['incquestions'] == 1 );
39 -
40 - if ( $survey !== false ) {
41 - $survey = $survey->toArray();
 41+ if ( isset( $params['ids'] ) ) {
 42+ foreach ( $params['ids'] as $surveyId ) {
 43+ $survey = Survey::newFromId( $surveyId, $params['incquestions'] == 1 );
4244
43 - foreach ( $survey['questions'] as $nr => $question ) {
44 - $this->getResult()->setIndexedTagName( $survey['questions'][$nr], 'answer' );
 45+ if ( $survey !== false ) {
 46+ $surveys[] = $this->getSurveyData( $survey );
4547 }
 48+ }
 49+ }
 50+
 51+ if ( isset( $params['names'] ) ) {
 52+ foreach ( $params['names'] as $surveyName ) {
 53+ $survey = Survey::newFromName( $surveyName, $params['incquestions'] == 1 );
4654
47 - $this->getResult()->setIndexedTagName( $survey['questions'], 'question' );
48 - $surveys[] = $survey;
49 - }
 55+ if ( $survey !== false ) {
 56+ $surveys[] = $this->getSurveyData( $survey );
 57+ }
 58+ }
5059 }
5160
5261 $this->getResult()->setIndexedTagName( $surveys, 'survey' );
@@ -57,6 +66,18 @@
5867 );
5968 }
6069
 70+ function getSurveyData( Survey $survey ) {
 71+ $survey = $survey->toArray();
 72+
 73+ foreach ( $survey['questions'] as $nr => $question ) {
 74+ $this->getResult()->setIndexedTagName( $survey['questions'][$nr], 'answer' );
 75+ }
 76+
 77+ $this->getResult()->setIndexedTagName( $survey['questions'], 'question' );
 78+
 79+ return $survey;
 80+ }
 81+
6182 /**
6283 * (non-PHPdoc)
6384 * @see includes/api/ApiBase#getAllowedParams()
@@ -65,9 +86,12 @@
6687 return array (
6788 'ids' => array(
6889 ApiBase::PARAM_TYPE => 'integer',
69 - ApiBase::PARAM_REQUIRED => true,
7090 ApiBase::PARAM_ISMULTI => true,
7191 ),
 92+ 'names' => array(
 93+ ApiBase::PARAM_TYPE => 'string',
 94+ ApiBase::PARAM_ISMULTI => true,
 95+ ),
7296 'incquestions' => array(
7397 ApiBase::PARAM_TYPE => 'integer',
7498 ApiBase::PARAM_DFLT => '0',
@@ -91,6 +115,7 @@
92116 public function getParamDescription() {
93117 return array (
94118 'ids' => 'The IDs of the surveys to return',
 119+ 'names' => 'The names of the surveys to return',
95120 'incquestions' => 'Include the questions of the surveys or not',
96121 'continue' => 'Offset number from where to continue the query',
97122 'limit' => 'Max amount of words to return',
Index: trunk/extensions/Survey/resources/jquery.survey.js
@@ -0,0 +1,77 @@
 2+/**
 3+ * JavasSript for the Survey MediaWiki extension.
 4+ * @see https://secure.wikimedia.org/wikipedia/mediawiki/wiki/Extension:Survey
 5+ *
 6+ * @licence GNU GPL v3 or later
 7+ * @author Jeroen De Dauw <jeroendedauw at gmail dot com>
 8+ */
 9+
 10+(function( $ ) { $( document ).ready( function() {
 11+
 12+ var _this = this;
 13+
 14+ this.getSurveyData = function( options, callback ) {
 15+ $.getJSON(
 16+ wgScriptPath + '/api.php',
 17+ {
 18+ 'action': 'query',
 19+ 'list': 'surveys',
 20+ 'format': 'json',
 21+ 'sunames': options.names.join( '|' )
 22+ },
 23+ function( data ) {
 24+ if ( data.surveys ) {
 25+ callback( data.surveys );
 26+ }
 27+ else if ( data.error ) {
 28+ debugger;
 29+ // TODO
 30+ }
 31+ else {
 32+ debugger;
 33+ // TODO
 34+ }
 35+ }
 36+ );
 37+ };
 38+
 39+ this.submitSurvey = function() {
 40+
 41+ };
 42+
 43+ this.initSurvey = function( surveyElement, surveyData ) {
 44+ // TODO
 45+ $div = $( '<div />' ).attr( { 'style': 'display:none' } ).html( $( '<div />' ).attr( { 'id': 'data' } ).html( JSON.stringify( surveyData ) ) );
 46+ $link = $( '<a />' ).attr( { 'href': '#data', 'id': 'inline' } ).html( $div ).append( $('<p />') );
 47+ surveyElement.html( $link );
 48+ $link.fancybox();
 49+ $link.click();
 50+ };
 51+
 52+ this.init = function() {
 53+ var surveyNames = [];
 54+ var surveys = [];
 55+
 56+ $( '.surveytag' ).each( function( index, domElement ) {
 57+ $survey = $( domElement );
 58+ surveyNames.push( $survey.attr( 'survey-data-name' ) );
 59+ surveys[$survey.attr( 'survey-data-name' )] = $survey;
 60+ } );
 61+
 62+ if ( surveyNames.length > 0 ) {
 63+ this.getSurveyData(
 64+ {
 65+ 'names': surveyNames
 66+ },
 67+ function( surveyData ) {
 68+ for ( i in surveyData ) {
 69+ _this.initSurvey( surveys[surveyData[i].name], surveyData[i] );
 70+ }
 71+ }
 72+ );
 73+ }
 74+ };
 75+
 76+ this.init();
 77+
 78+} ); })( jQuery );
\ No newline at end of file
Index: trunk/extensions/Survey/resources/fancybox/jquery.fancybox-1.3.4.css
@@ -0,0 +1,359 @@
 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+ * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
 10+ *
 11+ * Version: 1.3.4 (11/11/2010)
 12+ * Requires: jQuery v1.3+
 13+ *
 14+ * Dual licensed under the MIT and GPL licenses:
 15+ * http://www.opensource.org/licenses/mit-license.php
 16+ * http://www.gnu.org/licenses/gpl.html
 17+ */
 18+
 19+#fancybox-loading {
 20+ position: fixed;
 21+ top: 50%;
 22+ left: 50%;
 23+ width: 40px;
 24+ height: 40px;
 25+ margin-top: -20px;
 26+ margin-left: -20px;
 27+ cursor: pointer;
 28+ overflow: hidden;
 29+ z-index: 1104;
 30+ display: none;
 31+}
 32+
 33+#fancybox-loading div {
 34+ position: absolute;
 35+ top: 0;
 36+ left: 0;
 37+ width: 40px;
 38+ height: 480px;
 39+ background-image: url('fancybox.png');
 40+}
 41+
 42+#fancybox-overlay {
 43+ position: absolute;
 44+ top: 0;
 45+ left: 0;
 46+ width: 100%;
 47+ z-index: 1100;
 48+ display: none;
 49+}
 50+
 51+#fancybox-tmp {
 52+ padding: 0;
 53+ margin: 0;
 54+ border: 0;
 55+ overflow: auto;
 56+ display: none;
 57+}
 58+
 59+#fancybox-wrap {
 60+ position: absolute;
 61+ top: 0;
 62+ left: 0;
 63+ padding: 20px;
 64+ z-index: 1101;
 65+ outline: none;
 66+ display: none;
 67+}
 68+
 69+#fancybox-outer {
 70+ position: relative;
 71+ width: 100%;
 72+ height: 100%;
 73+ background: #fff;
 74+}
 75+
 76+#fancybox-content {
 77+ width: 0;
 78+ height: 0;
 79+ padding: 0;
 80+ outline: none;
 81+ position: relative;
 82+ overflow: hidden;
 83+ z-index: 1102;
 84+ border: 0px solid #fff;
 85+}
 86+
 87+#fancybox-hide-sel-frame {
 88+ position: absolute;
 89+ top: 0;
 90+ left: 0;
 91+ width: 100%;
 92+ height: 100%;
 93+ background: transparent;
 94+ z-index: 1101;
 95+}
 96+
 97+#fancybox-close {
 98+ position: absolute;
 99+ top: -15px;
 100+ right: -15px;
 101+ width: 30px;
 102+ height: 30px;
 103+ background: transparent url('fancybox.png') -40px 0px;
 104+ cursor: pointer;
 105+ z-index: 1103;
 106+ display: none;
 107+}
 108+
 109+#fancybox-error {
 110+ color: #444;
 111+ font: normal 12px/20px Arial;
 112+ padding: 14px;
 113+ margin: 0;
 114+}
 115+
 116+#fancybox-img {
 117+ width: 100%;
 118+ height: 100%;
 119+ padding: 0;
 120+ margin: 0;
 121+ border: none;
 122+ outline: none;
 123+ line-height: 0;
 124+ vertical-align: top;
 125+}
 126+
 127+#fancybox-frame {
 128+ width: 100%;
 129+ height: 100%;
 130+ border: none;
 131+ display: block;
 132+}
 133+
 134+#fancybox-left, #fancybox-right {
 135+ position: absolute;
 136+ bottom: 0px;
 137+ height: 100%;
 138+ width: 35%;
 139+ cursor: pointer;
 140+ outline: none;
 141+ background: transparent url('blank.gif');
 142+ z-index: 1102;
 143+ display: none;
 144+}
 145+
 146+#fancybox-left {
 147+ left: 0px;
 148+}
 149+
 150+#fancybox-right {
 151+ right: 0px;
 152+}
 153+
 154+#fancybox-left-ico, #fancybox-right-ico {
 155+ position: absolute;
 156+ top: 50%;
 157+ left: -9999px;
 158+ width: 30px;
 159+ height: 30px;
 160+ margin-top: -15px;
 161+ cursor: pointer;
 162+ z-index: 1102;
 163+ display: block;
 164+}
 165+
 166+#fancybox-left-ico {
 167+ background-image: url('fancybox.png');
 168+ background-position: -40px -30px;
 169+}
 170+
 171+#fancybox-right-ico {
 172+ background-image: url('fancybox.png');
 173+ background-position: -40px -60px;
 174+}
 175+
 176+#fancybox-left:hover, #fancybox-right:hover {
 177+ visibility: visible; /* IE6 */
 178+}
 179+
 180+#fancybox-left:hover span {
 181+ left: 20px;
 182+}
 183+
 184+#fancybox-right:hover span {
 185+ left: auto;
 186+ right: 20px;
 187+}
 188+
 189+.fancybox-bg {
 190+ position: absolute;
 191+ padding: 0;
 192+ margin: 0;
 193+ border: 0;
 194+ width: 20px;
 195+ height: 20px;
 196+ z-index: 1001;
 197+}
 198+
 199+#fancybox-bg-n {
 200+ top: -20px;
 201+ left: 0;
 202+ width: 100%;
 203+ background-image: url('fancybox-x.png');
 204+}
 205+
 206+#fancybox-bg-ne {
 207+ top: -20px;
 208+ right: -20px;
 209+ background-image: url('fancybox.png');
 210+ background-position: -40px -162px;
 211+}
 212+
 213+#fancybox-bg-e {
 214+ top: 0;
 215+ right: -20px;
 216+ height: 100%;
 217+ background-image: url('fancybox-y.png');
 218+ background-position: -20px 0px;
 219+}
 220+
 221+#fancybox-bg-se {
 222+ bottom: -20px;
 223+ right: -20px;
 224+ background-image: url('fancybox.png');
 225+ background-position: -40px -182px;
 226+}
 227+
 228+#fancybox-bg-s {
 229+ bottom: -20px;
 230+ left: 0;
 231+ width: 100%;
 232+ background-image: url('fancybox-x.png');
 233+ background-position: 0px -20px;
 234+}
 235+
 236+#fancybox-bg-sw {
 237+ bottom: -20px;
 238+ left: -20px;
 239+ background-image: url('fancybox.png');
 240+ background-position: -40px -142px;
 241+}
 242+
 243+#fancybox-bg-w {
 244+ top: 0;
 245+ left: -20px;
 246+ height: 100%;
 247+ background-image: url('fancybox-y.png');
 248+}
 249+
 250+#fancybox-bg-nw {
 251+ top: -20px;
 252+ left: -20px;
 253+ background-image: url('fancybox.png');
 254+ background-position: -40px -122px;
 255+}
 256+
 257+#fancybox-title {
 258+ font-family: Helvetica;
 259+ font-size: 12px;
 260+ z-index: 1102;
 261+}
 262+
 263+.fancybox-title-inside {
 264+ padding-bottom: 10px;
 265+ text-align: center;
 266+ color: #333;
 267+ background: #fff;
 268+ position: relative;
 269+}
 270+
 271+.fancybox-title-outside {
 272+ padding-top: 10px;
 273+ color: #fff;
 274+}
 275+
 276+.fancybox-title-over {
 277+ position: absolute;
 278+ bottom: 0;
 279+ left: 0;
 280+ color: #FFF;
 281+ text-align: left;
 282+}
 283+
 284+#fancybox-title-over {
 285+ padding: 10px;
 286+ background-image: url('fancy_title_over.png');
 287+ display: block;
 288+}
 289+
 290+.fancybox-title-float {
 291+ position: absolute;
 292+ left: 0;
 293+ bottom: -20px;
 294+ height: 32px;
 295+}
 296+
 297+#fancybox-title-float-wrap {
 298+ border: none;
 299+ border-collapse: collapse;
 300+ width: auto;
 301+}
 302+
 303+#fancybox-title-float-wrap td {
 304+ border: none;
 305+ white-space: nowrap;
 306+}
 307+
 308+#fancybox-title-float-left {
 309+ padding: 0 0 0 15px;
 310+ background: url('fancybox.png') -40px -90px no-repeat;
 311+}
 312+
 313+#fancybox-title-float-main {
 314+ color: #FFF;
 315+ line-height: 29px;
 316+ font-weight: bold;
 317+ padding: 0 0 3px 0;
 318+ background: url('fancybox-x.png') 0px -40px;
 319+}
 320+
 321+#fancybox-title-float-right {
 322+ padding: 0 0 0 15px;
 323+ background: url('fancybox.png') -55px -90px no-repeat;
 324+}
 325+
 326+/* IE6 */
 327+
 328+.fancybox-ie6 #fancybox-close { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_close.png', sizingMethod='scale'); }
 329+
 330+.fancybox-ie6 #fancybox-left-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_left.png', sizingMethod='scale'); }
 331+.fancybox-ie6 #fancybox-right-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_right.png', sizingMethod='scale'); }
 332+
 333+.fancybox-ie6 #fancybox-title-over { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_over.png', sizingMethod='scale'); zoom: 1; }
 334+.fancybox-ie6 #fancybox-title-float-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_left.png', sizingMethod='scale'); }
 335+.fancybox-ie6 #fancybox-title-float-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_main.png', sizingMethod='scale'); }
 336+.fancybox-ie6 #fancybox-title-float-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_right.png', sizingMethod='scale'); }
 337+
 338+.fancybox-ie6 #fancybox-bg-w, .fancybox-ie6 #fancybox-bg-e, .fancybox-ie6 #fancybox-left, .fancybox-ie6 #fancybox-right, #fancybox-hide-sel-frame {
 339+ height: expression(this.parentNode.clientHeight + "px");
 340+}
 341+
 342+#fancybox-loading.fancybox-ie6 {
 343+ position: absolute; margin-top: 0;
 344+ top: expression( (-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop )) + 'px');
 345+}
 346+
 347+#fancybox-loading.fancybox-ie6 div { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_loading.png', sizingMethod='scale'); }
 348+
 349+/* IE6, IE7, IE8 */
 350+
 351+.fancybox-ie .fancybox-bg { background: transparent !important; }
 352+
 353+.fancybox-ie #fancybox-bg-n { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_n.png', sizingMethod='scale'); }
 354+.fancybox-ie #fancybox-bg-ne { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_ne.png', sizingMethod='scale'); }
 355+.fancybox-ie #fancybox-bg-e { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_e.png', sizingMethod='scale'); }
 356+.fancybox-ie #fancybox-bg-se { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_se.png', sizingMethod='scale'); }
 357+.fancybox-ie #fancybox-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_s.png', sizingMethod='scale'); }
 358+.fancybox-ie #fancybox-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_sw.png', sizingMethod='scale'); }
 359+.fancybox-ie #fancybox-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_w.png', sizingMethod='scale'); }
 360+.fancybox-ie #fancybox-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_nw.png', sizingMethod='scale'); }
\ No newline at end of file
Property changes on: trunk/extensions/Survey/resources/fancybox/jquery.fancybox-1.3.4.css
___________________________________________________________________
Added: svn:eol-style
1361 + native
Index: trunk/extensions/Survey/resources/fancybox/fancy_shadow_se.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
Property changes on: trunk/extensions/Survey/resources/fancybox/fancy_shadow_se.png
___________________________________________________________________
Added: svn:mime-type
2362 + image/png
Index: trunk/extensions/Survey/resources/fancybox/fancy_title_over.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
Property changes on: trunk/extensions/Survey/resources/fancybox/fancy_title_over.png
___________________________________________________________________
Added: svn:mime-type
3363 + image/png
Index: trunk/extensions/Survey/resources/fancybox/jquery.fancybox-1.3.4.pack.js
@@ -0,0 +1,46 @@
 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+ * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
 10+ *
 11+ * Version: 1.3.4 (11/11/2010)
 12+ * Requires: jQuery v1.3+
 13+ *
 14+ * Dual licensed under the MIT and GPL licenses:
 15+ * http://www.opensource.org/licenses/mit-license.php
 16+ * http://www.gnu.org/licenses/gpl.html
 17+ */
 18+
 19+;(function(b){var m,t,u,f,D,j,E,n,z,A,q=0,e={},o=[],p=0,d={},l=[],G=null,v=new Image,J=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,W=/[^\.]\.(swf)\s*$/i,K,L=1,y=0,s="",r,i,h=false,B=b.extend(b("<div/>")[0],{prop:0}),M=b.browser.msie&&b.browser.version<7&&!window.XMLHttpRequest,N=function(){t.hide();v.onerror=v.onload=null;G&&G.abort();m.empty()},O=function(){if(false===e.onError(o,q,e)){t.hide();h=false}else{e.titleShow=false;e.width="auto";e.height="auto";m.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>');
 20+F()}},I=function(){var a=o[q],c,g,k,C,P,w;N();e=b.extend({},b.fn.fancybox.defaults,typeof b(a).data("fancybox")=="undefined"?e:b(a).data("fancybox"));w=e.onStart(o,q,e);if(w===false)h=false;else{if(typeof w=="object")e=b.extend(e,w);k=e.title||(a.nodeName?b(a).attr("title"):a.title)||"";if(a.nodeName&&!e.orig)e.orig=b(a).children("img:first").length?b(a).children("img:first"):b(a);if(k===""&&e.orig&&e.titleFromAlt)k=e.orig.attr("alt");c=e.href||(a.nodeName?b(a).attr("href"):a.href)||null;if(/^(?:javascript)/i.test(c)||
 21+c=="#")c=null;if(e.type){g=e.type;if(!c)c=e.content}else if(e.content)g="html";else if(c)g=c.match(J)?"image":c.match(W)?"swf":b(a).hasClass("iframe")?"iframe":c.indexOf("#")===0?"inline":"ajax";if(g){if(g=="inline"){a=c.substr(c.indexOf("#"));g=b(a).length>0?"inline":"ajax"}e.type=g;e.href=c;e.title=k;if(e.autoDimensions)if(e.type=="html"||e.type=="inline"||e.type=="ajax"){e.width="auto";e.height="auto"}else e.autoDimensions=false;if(e.modal){e.overlayShow=true;e.hideOnOverlayClick=false;e.hideOnContentClick=
 22+false;e.enableEscapeButton=false;e.showCloseButton=false}e.padding=parseInt(e.padding,10);e.margin=parseInt(e.margin,10);m.css("padding",e.padding+e.margin);b(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){b(this).replaceWith(j.children())});switch(g){case "html":m.html(e.content);F();break;case "inline":if(b(a).parent().is("#fancybox-content")===true){h=false;break}b('<div class="fancybox-inline-tmp" />').hide().insertBefore(b(a)).bind("fancybox-cleanup",function(){b(this).replaceWith(j.children())}).bind("fancybox-cancel",
 23+function(){b(this).replaceWith(m.children())});b(a).appendTo(m);F();break;case "image":h=false;b.fancybox.showActivity();v=new Image;v.onerror=function(){O()};v.onload=function(){h=true;v.onerror=v.onload=null;e.width=v.width;e.height=v.height;b("<img />").attr({id:"fancybox-img",src:v.src,alt:e.title}).appendTo(m);Q()};v.src=c;break;case "swf":e.scrolling="no";C='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+e.width+'" height="'+e.height+'"><param name="movie" value="'+c+
 24+'"></param>';P="";b.each(e.swf,function(x,H){C+='<param name="'+x+'" value="'+H+'"></param>';P+=" "+x+'="'+H+'"'});C+='<embed src="'+c+'" type="application/x-shockwave-flash" width="'+e.width+'" height="'+e.height+'"'+P+"></embed></object>";m.html(C);F();break;case "ajax":h=false;b.fancybox.showActivity();e.ajax.win=e.ajax.success;G=b.ajax(b.extend({},e.ajax,{url:c,data:e.ajax.data||{},error:function(x){x.status>0&&O()},success:function(x,H,R){if((typeof R=="object"?R:G).status==200){if(typeof e.ajax.win==
 25+"function"){w=e.ajax.win(c,x,H,R);if(w===false){t.hide();return}else if(typeof w=="string"||typeof w=="object")x=w}m.html(x);F()}}}));break;case "iframe":Q()}}else O()}},F=function(){var a=e.width,c=e.height;a=a.toString().indexOf("%")>-1?parseInt((b(window).width()-e.margin*2)*parseFloat(a)/100,10)+"px":a=="auto"?"auto":a+"px";c=c.toString().indexOf("%")>-1?parseInt((b(window).height()-e.margin*2)*parseFloat(c)/100,10)+"px":c=="auto"?"auto":c+"px";m.wrapInner('<div style="width:'+a+";height:"+c+
 26+";overflow: "+(e.scrolling=="auto"?"auto":e.scrolling=="yes"?"scroll":"hidden")+';position:relative;"></div>');e.width=m.width();e.height=m.height();Q()},Q=function(){var a,c;t.hide();if(f.is(":visible")&&false===d.onCleanup(l,p,d)){b.event.trigger("fancybox-cancel");h=false}else{h=true;b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");f.is(":visible")&&d.titlePosition!=="outside"&&f.css("height",f.height());l=o;p=q;d=e;if(d.overlayShow){u.css({"background-color":d.overlayColor,
 27+opacity:d.overlayOpacity,cursor:d.hideOnOverlayClick?"pointer":"auto",height:b(document).height()});if(!u.is(":visible")){M&&b("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"});u.show()}}else u.hide();i=X();s=d.title||"";y=0;n.empty().removeAttr("style").removeClass();if(d.titleShow!==false){if(b.isFunction(d.titleFormat))a=d.titleFormat(s,l,p,d);else a=s&&s.length?
 28+d.titlePosition=="float"?'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+s+'</td><td id="fancybox-title-float-right"></td></tr></table>':'<div id="fancybox-title-'+d.titlePosition+'">'+s+"</div>":false;s=a;if(!(!s||s==="")){n.addClass("fancybox-title-"+d.titlePosition).html(s).appendTo("body").show();switch(d.titlePosition){case "inside":n.css({width:i.width-d.padding*2,marginLeft:d.padding,marginRight:d.padding});
 29+y=n.outerHeight(true);n.appendTo(D);i.height+=y;break;case "over":n.css({marginLeft:d.padding,width:i.width-d.padding*2,bottom:d.padding}).appendTo(D);break;case "float":n.css("left",parseInt((n.width()-i.width-40)/2,10)*-1).appendTo(f);break;default:n.css({width:i.width-d.padding*2,paddingLeft:d.padding,paddingRight:d.padding}).appendTo(f)}}}n.hide();if(f.is(":visible")){b(E.add(z).add(A)).hide();a=f.position();r={top:a.top,left:a.left,width:f.width(),height:f.height()};c=r.width==i.width&&r.height==
 30+i.height;j.fadeTo(d.changeFade,0.3,function(){var g=function(){j.html(m.contents()).fadeTo(d.changeFade,1,S)};b.event.trigger("fancybox-change");j.empty().removeAttr("filter").css({"border-width":d.padding,width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2});if(c)g();else{B.prop=0;b(B).animate({prop:1},{duration:d.changeSpeed,easing:d.easingChange,step:T,complete:g})}})}else{f.removeAttr("style");j.css("border-width",d.padding);if(d.transitionIn=="elastic"){r=V();j.html(m.contents());
 31+f.show();if(d.opacity)i.opacity=0;B.prop=0;b(B).animate({prop:1},{duration:d.speedIn,easing:d.easingIn,step:T,complete:S})}else{d.titlePosition=="inside"&&y>0&&n.show();j.css({width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2}).html(m.contents());f.css(i).fadeIn(d.transitionIn=="none"?0:d.speedIn,S)}}}},Y=function(){if(d.enableEscapeButton||d.enableKeyboardNav)b(document).bind("keydown.fb",function(a){if(a.keyCode==27&&d.enableEscapeButton){a.preventDefault();b.fancybox.close()}else if((a.keyCode==
 32+37||a.keyCode==39)&&d.enableKeyboardNav&&a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.target.tagName!=="SELECT"){a.preventDefault();b.fancybox[a.keyCode==37?"prev":"next"]()}});if(d.showNavArrows){if(d.cyclic&&l.length>1||p!==0)z.show();if(d.cyclic&&l.length>1||p!=l.length-1)A.show()}else{z.hide();A.hide()}},S=function(){if(!b.support.opacity){j.get(0).style.removeAttribute("filter");f.get(0).style.removeAttribute("filter")}e.autoDimensions&&j.css("height","auto");f.css("height","auto");
 33+s&&s.length&&n.show();d.showCloseButton&&E.show();Y();d.hideOnContentClick&&j.bind("click",b.fancybox.close);d.hideOnOverlayClick&&u.bind("click",b.fancybox.close);b(window).bind("resize.fb",b.fancybox.resize);d.centerOnScroll&&b(window).bind("scroll.fb",b.fancybox.center);if(d.type=="iframe")b('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" '+(b.browser.msie?'allowtransparency="true""':"")+' scrolling="'+e.scrolling+'" src="'+d.href+'"></iframe>').appendTo(j);
 34+f.show();h=false;b.fancybox.center();d.onComplete(l,p,d);var a,c;if(l.length-1>p){a=l[p+1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}if(p>0){a=l[p-1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}},T=function(a){var c={width:parseInt(r.width+(i.width-r.width)*a,10),height:parseInt(r.height+(i.height-r.height)*a,10),top:parseInt(r.top+(i.top-r.top)*a,10),left:parseInt(r.left+(i.left-r.left)*a,10)};if(typeof i.opacity!=="undefined")c.opacity=a<0.5?0.5:a;f.css(c);
 35+j.css({width:c.width-d.padding*2,height:c.height-y*a-d.padding*2})},U=function(){return[b(window).width()-d.margin*2,b(window).height()-d.margin*2,b(document).scrollLeft()+d.margin,b(document).scrollTop()+d.margin]},X=function(){var a=U(),c={},g=d.autoScale,k=d.padding*2;c.width=d.width.toString().indexOf("%")>-1?parseInt(a[0]*parseFloat(d.width)/100,10):d.width+k;c.height=d.height.toString().indexOf("%")>-1?parseInt(a[1]*parseFloat(d.height)/100,10):d.height+k;if(g&&(c.width>a[0]||c.height>a[1]))if(e.type==
 36+"image"||e.type=="swf"){g=d.width/d.height;if(c.width>a[0]){c.width=a[0];c.height=parseInt((c.width-k)/g+k,10)}if(c.height>a[1]){c.height=a[1];c.width=parseInt((c.height-k)*g+k,10)}}else{c.width=Math.min(c.width,a[0]);c.height=Math.min(c.height,a[1])}c.top=parseInt(Math.max(a[3]-20,a[3]+(a[1]-c.height-40)*0.5),10);c.left=parseInt(Math.max(a[2]-20,a[2]+(a[0]-c.width-40)*0.5),10);return c},V=function(){var a=e.orig?b(e.orig):false,c={};if(a&&a.length){c=a.offset();c.top+=parseInt(a.css("paddingTop"),
 37+10)||0;c.left+=parseInt(a.css("paddingLeft"),10)||0;c.top+=parseInt(a.css("border-top-width"),10)||0;c.left+=parseInt(a.css("border-left-width"),10)||0;c.width=a.width();c.height=a.height();c={width:c.width+d.padding*2,height:c.height+d.padding*2,top:c.top-d.padding-20,left:c.left-d.padding-20}}else{a=U();c={width:d.padding*2,height:d.padding*2,top:parseInt(a[3]+a[1]*0.5,10),left:parseInt(a[2]+a[0]*0.5,10)}}return c},Z=function(){if(t.is(":visible")){b("div",t).css("top",L*-40+"px");L=(L+1)%12}else clearInterval(K)};
 38+b.fn.fancybox=function(a){if(!b(this).length)return this;b(this).data("fancybox",b.extend({},a,b.metadata?b(this).metadata():{})).unbind("click.fb").bind("click.fb",function(c){c.preventDefault();if(!h){h=true;b(this).blur();o=[];q=0;c=b(this).attr("rel")||"";if(!c||c==""||c==="nofollow")o.push(this);else{o=b("a[rel="+c+"], area[rel="+c+"]");q=o.index(this)}I()}});return this};b.fancybox=function(a,c){var g;if(!h){h=true;g=typeof c!=="undefined"?c:{};o=[];q=parseInt(g.index,10)||0;if(b.isArray(a)){for(var k=
 39+0,C=a.length;k<C;k++)if(typeof a[k]=="object")b(a[k]).data("fancybox",b.extend({},g,a[k]));else a[k]=b({}).data("fancybox",b.extend({content:a[k]},g));o=jQuery.merge(o,a)}else{if(typeof a=="object")b(a).data("fancybox",b.extend({},g,a));else a=b({}).data("fancybox",b.extend({content:a},g));o.push(a)}if(q>o.length||q<0)q=0;I()}};b.fancybox.showActivity=function(){clearInterval(K);t.show();K=setInterval(Z,66)};b.fancybox.hideActivity=function(){t.hide()};b.fancybox.next=function(){return b.fancybox.pos(p+
 40+1)};b.fancybox.prev=function(){return b.fancybox.pos(p-1)};b.fancybox.pos=function(a){if(!h){a=parseInt(a);o=l;if(a>-1&&a<l.length){q=a;I()}else if(d.cyclic&&l.length>1){q=a>=l.length?0:l.length-1;I()}}};b.fancybox.cancel=function(){if(!h){h=true;b.event.trigger("fancybox-cancel");N();e.onCancel(o,q,e);h=false}};b.fancybox.close=function(){function a(){u.fadeOut("fast");n.empty().hide();f.hide();b.event.trigger("fancybox-cleanup");j.empty();d.onClosed(l,p,d);l=e=[];p=q=0;d=e={};h=false}if(!(h||f.is(":hidden"))){h=
 41+true;if(d&&false===d.onCleanup(l,p,d))h=false;else{N();b(E.add(z).add(A)).hide();b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");j.find("iframe").attr("src",M&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");d.titlePosition!=="inside"&&n.empty();f.stop();if(d.transitionOut=="elastic"){r=V();var c=f.position();i={top:c.top,left:c.left,width:f.width(),height:f.height()};if(d.opacity)i.opacity=1;n.empty().hide();B.prop=1;
 42+b(B).animate({prop:0},{duration:d.speedOut,easing:d.easingOut,step:T,complete:a})}else f.fadeOut(d.transitionOut=="none"?0:d.speedOut,a)}}};b.fancybox.resize=function(){u.is(":visible")&&u.css("height",b(document).height());b.fancybox.center(true)};b.fancybox.center=function(a){var c,g;if(!h){g=a===true?1:0;c=U();!g&&(f.width()>c[0]||f.height()>c[1])||f.stop().animate({top:parseInt(Math.max(c[3]-20,c[3]+(c[1]-j.height()-40)*0.5-d.padding)),left:parseInt(Math.max(c[2]-20,c[2]+(c[0]-j.width()-40)*0.5-
 43+d.padding))},typeof a=="number"?a:200)}};b.fancybox.init=function(){if(!b("#fancybox-wrap").length){b("body").append(m=b('<div id="fancybox-tmp"></div>'),t=b('<div id="fancybox-loading"><div></div></div>'),u=b('<div id="fancybox-overlay"></div>'),f=b('<div id="fancybox-wrap"></div>'));D=b('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(f);
 44+D.append(j=b('<div id="fancybox-content"></div>'),E=b('<a id="fancybox-close"></a>'),n=b('<div id="fancybox-title"></div>'),z=b('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),A=b('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));E.click(b.fancybox.close);t.click(b.fancybox.cancel);z.click(function(a){a.preventDefault();b.fancybox.prev()});A.click(function(a){a.preventDefault();b.fancybox.next()});
 45+b.fn.mousewheel&&f.bind("mousewheel.fb",function(a,c){if(h)a.preventDefault();else if(b(a.target).get(0).clientHeight==0||b(a.target).get(0).scrollHeight===b(a.target).get(0).clientHeight){a.preventDefault();b.fancybox[c>0?"prev":"next"]()}});b.support.opacity||f.addClass("fancybox-ie");if(M){t.addClass("fancybox-ie6");f.addClass("fancybox-ie6");b('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(D)}}};
 46+b.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",
 47+easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};b(document).ready(function(){b.fancybox.init()})})(jQuery);
\ No newline at end of file
Property changes on: trunk/extensions/Survey/resources/fancybox/jquery.fancybox-1.3.4.pack.js
___________________________________________________________________
Added: svn:eol-style
148 + native
Index: trunk/extensions/Survey/resources/fancybox/fancy_loading.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
Property changes on: trunk/extensions/Survey/resources/fancybox/fancy_loading.png
___________________________________________________________________
Added: svn:mime-type
249 + image/png
Index: trunk/extensions/Survey/resources/fancybox/fancy_title_right.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
Property changes on: trunk/extensions/Survey/resources/fancybox/fancy_title_right.png
___________________________________________________________________
Added: svn:mime-type
350 + image/png
Index: trunk/extensions/Survey/resources/fancybox/jquery.mousewheel-3.0.4.pack.js
@@ -0,0 +1,14 @@
 2+/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
 3+* Licensed under the MIT License (LICENSE.txt).
 4+*
 5+* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
 6+* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
 7+* Thanks to: Seamus Leahy for adding deltaX and deltaY
 8+*
 9+* Version: 3.0.4
 10+*
 11+* Requires: 1.2.2+
 12+*/
 13+
 14+(function(d){function g(a){var b=a||window.event,i=[].slice.call(arguments,1),c=0,h=0,e=0;a=d.event.fix(b);a.type="mousewheel";if(a.wheelDelta)c=a.wheelDelta/120;if(a.detail)c=-a.detail/3;e=c;if(b.axis!==undefined&&b.axis===b.HORIZONTAL_AXIS){e=0;h=-1*c}if(b.wheelDeltaY!==undefined)e=b.wheelDeltaY/120;if(b.wheelDeltaX!==undefined)h=-1*b.wheelDeltaX/120;i.unshift(a,c,h,e);return d.event.handle.apply(this,i)}var f=["DOMMouseScroll","mousewheel"];d.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=
 15+f.length;a;)this.addEventListener(f[--a],g,false);else this.onmousewheel=g},teardown:function(){if(this.removeEventListener)for(var a=f.length;a;)this.removeEventListener(f[--a],g,false);else this.onmousewheel=null}};d.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);
\ No newline at end of file
Property changes on: trunk/extensions/Survey/resources/fancybox/jquery.mousewheel-3.0.4.pack.js
___________________________________________________________________
Added: svn:eol-style
116 + native
Index: trunk/extensions/Survey/resources/fancybox/fancy_nav_right.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
Property changes on: trunk/extensions/Survey/resources/fancybox/fancy_nav_right.png
___________________________________________________________________
Added: svn:mime-type
217 + image/png
Index: trunk/extensions/Survey/resources/fancybox/fancy_title_main.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
Property changes on: trunk/extensions/Survey/resources/fancybox/fancy_title_main.png
___________________________________________________________________
Added: svn:mime-type
318 + image/png
Index: trunk/extensions/Survey/resources/fancybox/blank.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/Survey/resources/fancybox/blank.gif
___________________________________________________________________
Added: svn:mime-type
419 + application/octet-stream
Index: trunk/extensions/Survey/resources/fancybox/fancybox.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
Property changes on: trunk/extensions/Survey/resources/fancybox/fancybox.png
___________________________________________________________________
Added: svn:mime-type
520 + image/png
Index: trunk/extensions/Survey/resources/fancybox/fancy_shadow_e.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
Property changes on: trunk/extensions/Survey/resources/fancybox/fancy_shadow_e.png
___________________________________________________________________
Added: svn:mime-type
621 + image/png
Index: trunk/extensions/Survey/resources/fancybox/fancy_shadow_nw.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
Property changes on: trunk/extensions/Survey/resources/fancybox/fancy_shadow_nw.png
___________________________________________________________________
Added: svn:mime-type
722 + image/png
Index: trunk/extensions/Survey/resources/fancybox/fancy_title_left.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
Property changes on: trunk/extensions/Survey/resources/fancybox/fancy_title_left.png
___________________________________________________________________
Added: svn:mime-type
823 + image/png
Index: trunk/extensions/Survey/resources/fancybox/fancy_nav_left.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
Property changes on: trunk/extensions/Survey/resources/fancybox/fancy_nav_left.png
___________________________________________________________________
Added: svn:mime-type
924 + image/png
Index: trunk/extensions/Survey/resources/fancybox/fancy_shadow_sw.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
Property changes on: trunk/extensions/Survey/resources/fancybox/fancy_shadow_sw.png
___________________________________________________________________
Added: svn:mime-type
1025 + image/png
Index: trunk/extensions/Survey/resources/fancybox/fancybox-x.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
Property changes on: trunk/extensions/Survey/resources/fancybox/fancybox-x.png
___________________________________________________________________
Added: svn:mime-type
1126 + image/png
Index: trunk/extensions/Survey/resources/fancybox/fancybox-y.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
Property changes on: trunk/extensions/Survey/resources/fancybox/fancybox-y.png
___________________________________________________________________
Added: svn:mime-type
1227 + image/png
Index: trunk/extensions/Survey/resources/fancybox/jquery.fancybox-1.3.4.js
@@ -0,0 +1,1156 @@
 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+ * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
 10+ *
 11+ * Version: 1.3.4 (11/11/2010)
 12+ * Requires: jQuery v1.3+
 13+ *
 14+ * Dual licensed under the MIT and GPL licenses:
 15+ * http://www.opensource.org/licenses/mit-license.php
 16+ * http://www.gnu.org/licenses/gpl.html
 17+ */
 18+
 19+;(function($) {
 20+ var tmp, loading, overlay, wrap, outer, content, close, title, 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+ titleHeight = 0, titleStr = '', start_pos, final_pos, busy = false, fx = $.extend($('<div/>')[0], { prop: 0 }),
 29+
 30+ isIE6 = $.browser.msie && $.browser.version < 7 && !window.XMLHttpRequest,
 31+
 32+ /*
 33+ * Private methods
 34+ */
 35+
 36+ _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+ _error = function() {
 49+ if (false === selectedOpts.onError(selectedArray, selectedIndex, selectedOpts)) {
 50+ loading.hide();
 51+ busy = false;
 52+ return;
 53+ }
 54+
 55+ selectedOpts.titleShow = false;
 56+
 57+ selectedOpts.width = 'auto';
 58+ selectedOpts.height = 'auto';
 59+
 60+ tmp.html( '<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>' );
 61+
 62+ _process_inline();
 63+ },
 64+
 65+ _start = function() {
 66+ var obj = selectedArray[ selectedIndex ],
 67+ href,
 68+ type,
 69+ title,
 70+ str,
 71+ emb,
 72+ ret;
 73+
 74+ _abort();
 75+
 76+ selectedOpts = $.extend({}, $.fn.fancybox.defaults, (typeof $(obj).data('fancybox') == 'undefined' ? selectedOpts : $(obj).data('fancybox')));
 77+
 78+ ret = selectedOpts.onStart(selectedArray, selectedIndex, selectedOpts);
 79+
 80+ if (ret === false) {
 81+ busy = false;
 82+ return;
 83+ } else if (typeof ret == 'object') {
 84+ selectedOpts = $.extend(selectedOpts, ret);
 85+ }
 86+
 87+ title = selectedOpts.title || (obj.nodeName ? $(obj).attr('title') : obj.title) || '';
 88+
 89+ if (obj.nodeName && !selectedOpts.orig) {
 90+ selectedOpts.orig = $(obj).children("img:first").length ? $(obj).children("img:first") : $(obj);
 91+ }
 92+
 93+ if (title === '' && selectedOpts.orig && selectedOpts.titleFromAlt) {
 94+ title = selectedOpts.orig.attr('alt');
 95+ }
 96+
 97+ href = selectedOpts.href || (obj.nodeName ? $(obj).attr('href') : obj.href) || null;
 98+
 99+ if ((/^(?:javascript)/i).test(href) || href == '#') {
 100+ href = null;
 101+ }
 102+
 103+ if (selectedOpts.type) {
 104+ type = selectedOpts.type;
 105+
 106+ if (!href) {
 107+ href = selectedOpts.content;
 108+ }
 109+
 110+ } else if (selectedOpts.content) {
 111+ type = 'html';
 112+
 113+ } else if (href) {
 114+ if (href.match(imgRegExp)) {
 115+ type = 'image';
 116+
 117+ } else if (href.match(swfRegExp)) {
 118+ type = 'swf';
 119+
 120+ } else if ($(obj).hasClass("iframe")) {
 121+ type = 'iframe';
 122+
 123+ } else if (href.indexOf("#") === 0) {
 124+ type = 'inline';
 125+
 126+ } else {
 127+ type = 'ajax';
 128+ }
 129+ }
 130+
 131+ if (!type) {
 132+ _error();
 133+ return;
 134+ }
 135+
 136+ if (type == 'inline') {
 137+ obj = href.substr(href.indexOf("#"));
 138+ type = $(obj).length > 0 ? 'inline' : 'ajax';
 139+ }
 140+
 141+ selectedOpts.type = type;
 142+ selectedOpts.href = href;
 143+ selectedOpts.title = title;
 144+
 145+ if (selectedOpts.autoDimensions) {
 146+ if (selectedOpts.type == 'html' || selectedOpts.type == 'inline' || selectedOpts.type == 'ajax') {
 147+ selectedOpts.width = 'auto';
 148+ selectedOpts.height = 'auto';
 149+ } else {
 150+ selectedOpts.autoDimensions = false;
 151+ }
 152+ }
 153+
 154+ if (selectedOpts.modal) {
 155+ selectedOpts.overlayShow = true;
 156+ selectedOpts.hideOnOverlayClick = false;
 157+ selectedOpts.hideOnContentClick = false;
 158+ selectedOpts.enableEscapeButton = false;
 159+ selectedOpts.showCloseButton = false;
 160+ }
 161+
 162+ selectedOpts.padding = parseInt(selectedOpts.padding, 10);
 163+ selectedOpts.margin = parseInt(selectedOpts.margin, 10);
 164+
 165+ tmp.css('padding', (selectedOpts.padding + selectedOpts.margin));
 166+
 167+ $('.fancybox-inline-tmp').unbind('fancybox-cancel').bind('fancybox-change', function() {
 168+ $(this).replaceWith(content.children());
 169+ });
 170+
 171+ switch (type) {
 172+ case 'html' :
 173+ tmp.html( selectedOpts.content );
 174+ _process_inline();
 175+ break;
 176+
 177+ case 'inline' :
 178+ if ( $(obj).parent().is('#fancybox-content') === true) {
 179+ busy = false;
 180+ return;
 181+ }
 182+
 183+ $('<div class="fancybox-inline-tmp" />')
 184+ .hide()
 185+ .insertBefore( $(obj) )
 186+ .bind('fancybox-cleanup', function() {
 187+ $(this).replaceWith(content.children());
 188+ }).bind('fancybox-cancel', function() {
 189+ $(this).replaceWith(tmp.children());
 190+ });
 191+
 192+ $(obj).appendTo(tmp);
 193+
 194+ _process_inline();
 195+ break;
 196+
 197+ case 'image':
 198+ busy = false;
 199+
 200+ $.fancybox.showActivity();
 201+
 202+ imgPreloader = new Image();
 203+
 204+ imgPreloader.onerror = function() {
 205+ _error();
 206+ };
 207+
 208+ imgPreloader.onload = function() {
 209+ busy = true;
 210+
 211+ imgPreloader.onerror = imgPreloader.onload = null;
 212+
 213+ _process_image();
 214+ };
 215+
 216+ imgPreloader.src = href;
 217+ break;
 218+
 219+ case 'swf':
 220+ selectedOpts.scrolling = 'no';
 221+
 222+ str = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' + selectedOpts.width + '" height="' + selectedOpts.height + '"><param name="movie" value="' + href + '"></param>';
 223+ emb = '';
 224+
 225+ $.each(selectedOpts.swf, function(name, val) {
 226+ str += '<param name="' + name + '" value="' + val + '"></param>';
 227+ emb += ' ' + name + '="' + val + '"';
 228+ });
 229+
 230+ str += '<embed src="' + href + '" type="application/x-shockwave-flash" width="' + selectedOpts.width + '" height="' + selectedOpts.height + '"' + emb + '></embed></object>';
 231+
 232+ tmp.html(str);
 233+
 234+ _process_inline();
 235+ break;
 236+
 237+ case 'ajax':
 238+ busy = false;
 239+
 240+ $.fancybox.showActivity();
 241+
 242+ selectedOpts.ajax.win = selectedOpts.ajax.success;
 243+
 244+ ajaxLoader = $.ajax($.extend({}, selectedOpts.ajax, {
 245+ url : href,
 246+ data : selectedOpts.ajax.data || {},
 247+ error : function(XMLHttpRequest, textStatus, errorThrown) {
 248+ if ( XMLHttpRequest.status > 0 ) {
 249+ _error();
 250+ }
 251+ },
 252+ success : function(data, textStatus, XMLHttpRequest) {
 253+ var o = typeof XMLHttpRequest == 'object' ? XMLHttpRequest : ajaxLoader;
 254+ if (o.status == 200) {
 255+ if ( typeof selectedOpts.ajax.win == 'function' ) {
 256+ ret = selectedOpts.ajax.win(href, data, textStatus, XMLHttpRequest);
 257+
 258+ if (ret === false) {
 259+ loading.hide();
 260+ return;
 261+ } else if (typeof ret == 'string' || typeof ret == 'object') {
 262+ data = ret;
 263+ }
 264+ }
 265+
 266+ tmp.html( data );
 267+ _process_inline();
 268+ }
 269+ }
 270+ }));
 271+
 272+ break;
 273+
 274+ case 'iframe':
 275+ _show();
 276+ break;
 277+ }
 278+ },
 279+
 280+ _process_inline = function() {
 281+ var
 282+ w = selectedOpts.width,
 283+ h = selectedOpts.height;
 284+
 285+ if (w.toString().indexOf('%') > -1) {
 286+ w = parseInt( ($(window).width() - (selectedOpts.margin * 2)) * parseFloat(w) / 100, 10) + 'px';
 287+
 288+ } else {
 289+ w = w == 'auto' ? 'auto' : w + 'px';
 290+ }
 291+
 292+ if (h.toString().indexOf('%') > -1) {
 293+ h = parseInt( ($(window).height() - (selectedOpts.margin * 2)) * parseFloat(h) / 100, 10) + 'px';
 294+
 295+ } else {
 296+ h = h == 'auto' ? 'auto' : h + 'px';
 297+ }
 298+
 299+ tmp.wrapInner('<div style="width:' + w + ';height:' + h + ';overflow: ' + (selectedOpts.scrolling == 'auto' ? 'auto' : (selectedOpts.scrolling == 'yes' ? 'scroll' : 'hidden')) + ';position:relative;"></div>');
 300+
 301+ selectedOpts.width = tmp.width();
 302+ selectedOpts.height = tmp.height();
 303+
 304+ _show();
 305+ },
 306+
 307+ _process_image = function() {
 308+ selectedOpts.width = imgPreloader.width;
 309+ selectedOpts.height = imgPreloader.height;
 310+
 311+ $("<img />").attr({
 312+ 'id' : 'fancybox-img',
 313+ 'src' : imgPreloader.src,
 314+ 'alt' : selectedOpts.title
 315+ }).appendTo( tmp );
 316+
 317+ _show();
 318+ },
 319+
 320+ _show = function() {
 321+ var pos, equal;
 322+
 323+ loading.hide();
 324+
 325+ if (wrap.is(":visible") && false === currentOpts.onCleanup(currentArray, currentIndex, currentOpts)) {
 326+ $.event.trigger('fancybox-cancel');
 327+
 328+ busy = false;
 329+ return;
 330+ }
 331+
 332+ busy = true;
 333+
 334+ $(content.add( overlay )).unbind();
 335+
 336+ $(window).unbind("resize.fb scroll.fb");
 337+ $(document).unbind('keydown.fb');
 338+
 339+ if (wrap.is(":visible") && currentOpts.titlePosition !== 'outside') {
 340+ wrap.css('height', wrap.height());
 341+ }
 342+
 343+ currentArray = selectedArray;
 344+ currentIndex = selectedIndex;
 345+ currentOpts = selectedOpts;
 346+
 347+ if (currentOpts.overlayShow) {
 348+ overlay.css({
 349+ 'background-color' : currentOpts.overlayColor,
 350+ 'opacity' : currentOpts.overlayOpacity,
 351+ 'cursor' : currentOpts.hideOnOverlayClick ? 'pointer' : 'auto',
 352+ 'height' : $(document).height()
 353+ });
 354+
 355+ if (!overlay.is(':visible')) {
 356+ if (isIE6) {
 357+ $('select:not(#fancybox-tmp select)').filter(function() {
 358+ return this.style.visibility !== 'hidden';
 359+ }).css({'visibility' : 'hidden'}).one('fancybox-cleanup', function() {
 360+ this.style.visibility = 'inherit';
 361+ });
 362+ }
 363+
 364+ overlay.show();
 365+ }
 366+ } else {
 367+ overlay.hide();
 368+ }
 369+
 370+ final_pos = _get_zoom_to();
 371+
 372+ _process_title();
 373+
 374+ if (wrap.is(":visible")) {
 375+ $( close.add( nav_left ).add( nav_right ) ).hide();
 376+
 377+ pos = wrap.position(),
 378+
 379+ start_pos = {
 380+ top : pos.top,
 381+ left : pos.left,
 382+ width : wrap.width(),
 383+ height : wrap.height()
 384+ };
 385+
 386+ equal = (start_pos.width == final_pos.width && start_pos.height == final_pos.height);
 387+
 388+ content.fadeTo(currentOpts.changeFade, 0.3, function() {
 389+ var finish_resizing = function() {
 390+ content.html( tmp.contents() ).fadeTo(currentOpts.changeFade, 1, _finish);
 391+ };
 392+
 393+ $.event.trigger('fancybox-change');
 394+
 395+ content
 396+ .empty()
 397+ .removeAttr('filter')
 398+ .css({
 399+ 'border-width' : currentOpts.padding,
 400+ 'width' : final_pos.width - currentOpts.padding * 2,
 401+ 'height' : selectedOpts.autoDimensions ? 'auto' : final_pos.height - titleHeight - currentOpts.padding * 2
 402+ });
 403+
 404+ if (equal) {
 405+ finish_resizing();
 406+
 407+ } else {
 408+ fx.prop = 0;
 409+
 410+ $(fx).animate({prop: 1}, {
 411+ duration : currentOpts.changeSpeed,
 412+ easing : currentOpts.easingChange,
 413+ step : _draw,
 414+ complete : finish_resizing
 415+ });
 416+ }
 417+ });
 418+
 419+ return;
 420+ }
 421+
 422+ wrap.removeAttr("style");
 423+
 424+ content.css('border-width', currentOpts.padding);
 425+
 426+ if (currentOpts.transitionIn == 'elastic') {
 427+ start_pos = _get_zoom_from();
 428+
 429+ content.html( tmp.contents() );
 430+
 431+ wrap.show();
 432+
 433+ if (currentOpts.opacity) {
 434+ final_pos.opacity = 0;
 435+ }
 436+
 437+ fx.prop = 0;
 438+
 439+ $(fx).animate({prop: 1}, {
 440+ duration : currentOpts.speedIn,
 441+ easing : currentOpts.easingIn,
 442+ step : _draw,
 443+ complete : _finish
 444+ });
 445+
 446+ return;
 447+ }
 448+
 449+ if (currentOpts.titlePosition == 'inside' && titleHeight > 0) {
 450+ title.show();
 451+ }
 452+
 453+ content
 454+ .css({
 455+ 'width' : final_pos.width - currentOpts.padding * 2,
 456+ 'height' : selectedOpts.autoDimensions ? 'auto' : final_pos.height - titleHeight - currentOpts.padding * 2
 457+ })
 458+ .html( tmp.contents() );
 459+
 460+ wrap
 461+ .css(final_pos)
 462+ .fadeIn( currentOpts.transitionIn == 'none' ? 0 : currentOpts.speedIn, _finish );
 463+ },
 464+
 465+ _format_title = function(title) {
 466+ if (title && title.length) {
 467+ if (currentOpts.titlePosition == 'float') {
 468+ return '<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">' + title + '</td><td id="fancybox-title-float-right"></td></tr></table>';
 469+ }
 470+
 471+ return '<div id="fancybox-title-' + currentOpts.titlePosition + '">' + title + '</div>';
 472+ }
 473+
 474+ return false;
 475+ },
 476+
 477+ _process_title = function() {
 478+ titleStr = currentOpts.title || '';
 479+ titleHeight = 0;
 480+
 481+ title
 482+ .empty()
 483+ .removeAttr('style')
 484+ .removeClass();
 485+
 486+ if (currentOpts.titleShow === false) {
 487+ title.hide();
 488+ return;
 489+ }
 490+
 491+ titleStr = $.isFunction(currentOpts.titleFormat) ? currentOpts.titleFormat(titleStr, currentArray, currentIndex, currentOpts) : _format_title(titleStr);
 492+
 493+ if (!titleStr || titleStr === '') {
 494+ title.hide();
 495+ return;
 496+ }
 497+
 498+ title
 499+ .addClass('fancybox-title-' + currentOpts.titlePosition)
 500+ .html( titleStr )
 501+ .appendTo( 'body' )
 502+ .show();
 503+
 504+ switch (currentOpts.titlePosition) {
 505+ case 'inside':
 506+ title
 507+ .css({
 508+ 'width' : final_pos.width - (currentOpts.padding * 2),
 509+ 'marginLeft' : currentOpts.padding,
 510+ 'marginRight' : currentOpts.padding
 511+ });
 512+
 513+ titleHeight = title.outerHeight(true);
 514+
 515+ title.appendTo( outer );
 516+
 517+ final_pos.height += titleHeight;
 518+ break;
 519+
 520+ case 'over':
 521+ title
 522+ .css({
 523+ 'marginLeft' : currentOpts.padding,
 524+ 'width' : final_pos.width - (currentOpts.padding * 2),
 525+ 'bottom' : currentOpts.padding
 526+ })
 527+ .appendTo( outer );
 528+ break;
 529+
 530+ case 'float':
 531+ title
 532+ .css('left', parseInt((title.width() - final_pos.width - 40)/ 2, 10) * -1)
 533+ .appendTo( wrap );
 534+ break;
 535+
 536+ default:
 537+ title
 538+ .css({
 539+ 'width' : final_pos.width - (currentOpts.padding * 2),
 540+ 'paddingLeft' : currentOpts.padding,
 541+ 'paddingRight' : currentOpts.padding
 542+ })
 543+ .appendTo( wrap );
 544+ break;
 545+ }
 546+
 547+ title.hide();
 548+ },
 549+
 550+ _set_navigation = function() {
 551+ if (currentOpts.enableEscapeButton || currentOpts.enableKeyboardNav) {
 552+ $(document).bind('keydown.fb', function(e) {
 553+ if (e.keyCode == 27 && currentOpts.enableEscapeButton) {
 554+ e.preventDefault();
 555+ $.fancybox.close();
 556+
 557+ } else if ((e.keyCode == 37 || e.keyCode == 39) && currentOpts.enableKeyboardNav && e.target.tagName !== 'INPUT' && e.target.tagName !== 'TEXTAREA' && e.target.tagName !== 'SELECT') {
 558+ e.preventDefault();
 559+ $.fancybox[ e.keyCode == 37 ? 'prev' : 'next']();
 560+ }
 561+ });
 562+ }
 563+
 564+ if (!currentOpts.showNavArrows) {
 565+ nav_left.hide();
 566+ nav_right.hide();
 567+ return;
 568+ }
 569+
 570+ if ((currentOpts.cyclic && currentArray.length > 1) || currentIndex !== 0) {
 571+ nav_left.show();
 572+ }
 573+
 574+ if ((currentOpts.cyclic && currentArray.length > 1) || currentIndex != (currentArray.length -1)) {
 575+ nav_right.show();
 576+ }
 577+ },
 578+
 579+ _finish = function () {
 580+ if (!$.support.opacity) {
 581+ content.get(0).style.removeAttribute('filter');
 582+ wrap.get(0).style.removeAttribute('filter');
 583+ }
 584+
 585+ if (selectedOpts.autoDimensions) {
 586+ content.css('height', 'auto');
 587+ }
 588+
 589+ wrap.css('height', 'auto');
 590+
 591+ if (titleStr && titleStr.length) {
 592+ title.show();
 593+ }
 594+
 595+ if (currentOpts.showCloseButton) {
 596+ close.show();
 597+ }
 598+
 599+ _set_navigation();
 600+
 601+ if (currentOpts.hideOnContentClick) {
 602+ content.bind('click', $.fancybox.close);
 603+ }
 604+
 605+ if (currentOpts.hideOnOverlayClick) {
 606+ overlay.bind('click', $.fancybox.close);
 607+ }
 608+
 609+ $(window).bind("resize.fb", $.fancybox.resize);
 610+
 611+ if (currentOpts.centerOnScroll) {
 612+ $(window).bind("scroll.fb", $.fancybox.center);
 613+ }
 614+
 615+ if (currentOpts.type == 'iframe') {
 616+ $('<iframe id="fancybox-frame" name="fancybox-frame' + new Date().getTime() + '" frameborder="0" hspace="0" ' + ($.browser.msie ? 'allowtransparency="true""' : '') + ' scrolling="' + selectedOpts.scrolling + '" src="' + currentOpts.href + '"></iframe>').appendTo(content);
 617+ }
 618+
 619+ wrap.show();
 620+
 621+ busy = false;
 622+
 623+ $.fancybox.center();
 624+
 625+ currentOpts.onComplete(currentArray, currentIndex, currentOpts);
 626+
 627+ _preload_images();
 628+ },
 629+
 630+ _preload_images = function() {
 631+ var href,
 632+ objNext;
 633+
 634+ if ((currentArray.length -1) > currentIndex) {
 635+ href = currentArray[ currentIndex + 1 ].href;
 636+
 637+ if (typeof href !== 'undefined' && href.match(imgRegExp)) {
 638+ objNext = new Image();
 639+ objNext.src = href;
 640+ }
 641+ }
 642+
 643+ if (currentIndex > 0) {
 644+ href = currentArray[ currentIndex - 1 ].href;
 645+
 646+ if (typeof href !== 'undefined' && href.match(imgRegExp)) {
 647+ objNext = new Image();
 648+ objNext.src = href;
 649+ }
 650+ }
 651+ },
 652+
 653+ _draw = function(pos) {
 654+ var dim = {
 655+ width : parseInt(start_pos.width + (final_pos.width - start_pos.width) * pos, 10),
 656+ height : parseInt(start_pos.height + (final_pos.height - start_pos.height) * pos, 10),
 657+
 658+ top : parseInt(start_pos.top + (final_pos.top - start_pos.top) * pos, 10),
 659+ left : parseInt(start_pos.left + (final_pos.left - start_pos.left) * pos, 10)
 660+ };
 661+
 662+ if (typeof final_pos.opacity !== 'undefined') {
 663+ dim.opacity = pos < 0.5 ? 0.5 : pos;
 664+ }
 665+
 666+ wrap.css(dim);
 667+
 668+ content.css({
 669+ 'width' : dim.width - currentOpts.padding * 2,
 670+ 'height' : dim.height - (titleHeight * pos) - currentOpts.padding * 2
 671+ });
 672+ },
 673+
 674+ _get_viewport = function() {
 675+ return [
 676+ $(window).width() - (currentOpts.margin * 2),
 677+ $(window).height() - (currentOpts.margin * 2),
 678+ $(document).scrollLeft() + currentOpts.margin,
 679+ $(document).scrollTop() + currentOpts.margin
 680+ ];
 681+ },
 682+
 683+ _get_zoom_to = function () {
 684+ var view = _get_viewport(),
 685+ to = {},
 686+ resize = currentOpts.autoScale,
 687+ double_padding = currentOpts.padding * 2,
 688+ ratio;
 689+
 690+ if (currentOpts.width.toString().indexOf('%') > -1) {
 691+ to.width = parseInt((view[0] * parseFloat(currentOpts.width)) / 100, 10);
 692+ } else {
 693+ to.width = currentOpts.width + double_padding;
 694+ }
 695+
 696+ if (currentOpts.height.toString().indexOf('%') > -1) {
 697+ to.height = parseInt((view[1] * parseFloat(currentOpts.height)) / 100, 10);
 698+ } else {
 699+ to.height = currentOpts.height + double_padding;
 700+ }
 701+
 702+ if (resize && (to.width > view[0] || to.height > view[1])) {
 703+ if (selectedOpts.type == 'image' || selectedOpts.type == 'swf') {
 704+ ratio = (currentOpts.width ) / (currentOpts.height );
 705+
 706+ if ((to.width ) > view[0]) {
 707+ to.width = view[0];
 708+ to.height = parseInt(((to.width - double_padding) / ratio) + double_padding, 10);
 709+ }
 710+
 711+ if ((to.height) > view[1]) {
 712+ to.height = view[1];
 713+ to.width = parseInt(((to.height - double_padding) * ratio) + double_padding, 10);
 714+ }
 715+
 716+ } else {
 717+ to.width = Math.min(to.width, view[0]);
 718+ to.height = Math.min(to.height, view[1]);
 719+ }
 720+ }
 721+
 722+ to.top = parseInt(Math.max(view[3] - 20, view[3] + ((view[1] - to.height - 40) * 0.5)), 10);
 723+ to.left = parseInt(Math.max(view[2] - 20, view[2] + ((view[0] - to.width - 40) * 0.5)), 10);
 724+
 725+ return to;
 726+ },
 727+
 728+ _get_obj_pos = function(obj) {
 729+ var pos = obj.offset();
 730+
 731+ pos.top += parseInt( obj.css('paddingTop'), 10 ) || 0;
 732+ pos.left += parseInt( obj.css('paddingLeft'), 10 ) || 0;
 733+
 734+ pos.top += parseInt( obj.css('border-top-width'), 10 ) || 0;
 735+ pos.left += parseInt( obj.css('border-left-width'), 10 ) || 0;
 736+
 737+ pos.width = obj.width();
 738+ pos.height = obj.height();
 739+
 740+ return pos;
 741+ },
 742+
 743+ _get_zoom_from = function() {
 744+ var orig = selectedOpts.orig ? $(selectedOpts.orig) : false,
 745+ from = {},
 746+ pos,
 747+ view;
 748+
 749+ if (orig && orig.length) {
 750+ pos = _get_obj_pos(orig);
 751+
 752+ from = {
 753+ width : pos.width + (currentOpts.padding * 2),
 754+ height : pos.height + (currentOpts.padding * 2),
 755+ top : pos.top - currentOpts.padding - 20,
 756+ left : pos.left - currentOpts.padding - 20
 757+ };
 758+
 759+ } else {
 760+ view = _get_viewport();
 761+
 762+ from = {
 763+ width : currentOpts.padding * 2,
 764+ height : currentOpts.padding * 2,
 765+ top : parseInt(view[3] + view[1] * 0.5, 10),
 766+ left : parseInt(view[2] + view[0] * 0.5, 10)
 767+ };
 768+ }
 769+
 770+ return from;
 771+ },
 772+
 773+ _animate_loading = function() {
 774+ if (!loading.is(':visible')){
 775+ clearInterval(loadingTimer);
 776+ return;
 777+ }
 778+
 779+ $('div', loading).css('top', (loadingFrame * -40) + 'px');
 780+
 781+ loadingFrame = (loadingFrame + 1) % 12;
 782+ };
 783+
 784+ /*
 785+ * Public methods
 786+ */
 787+
 788+ $.fn.fancybox = function(options) {
 789+ if (!$(this).length) {
 790+ return this;
 791+ }
 792+
 793+ $(this)
 794+ .data('fancybox', $.extend({}, options, ($.metadata ? $(this).metadata() : {})))
 795+ .unbind('click.fb')
 796+ .bind('click.fb', function(e) {
 797+ e.preventDefault();
 798+
 799+ if (busy) {
 800+ return;
 801+ }
 802+
 803+ busy = true;
 804+
 805+ $(this).blur();
 806+
 807+ selectedArray = [];
 808+ selectedIndex = 0;
 809+
 810+ var rel = $(this).attr('rel') || '';
 811+
 812+ if (!rel || rel == '' || rel === 'nofollow') {
 813+ selectedArray.push(this);
 814+
 815+ } else {
 816+ selectedArray = $("a[rel=" + rel + "], area[rel=" + rel + "]");
 817+ selectedIndex = selectedArray.index( this );
 818+ }
 819+
 820+ _start();
 821+
 822+ return;
 823+ });
 824+
 825+ return this;
 826+ };
 827+
 828+ $.fancybox = function(obj) {
 829+ var opts;
 830+
 831+ if (busy) {
 832+ return;
 833+ }
 834+
 835+ busy = true;
 836+ opts = typeof arguments[1] !== 'undefined' ? arguments[1] : {};
 837+
 838+ selectedArray = [];
 839+ selectedIndex = parseInt(opts.index, 10) || 0;
 840+
 841+ if ($.isArray(obj)) {
 842+ for (var i = 0, j = obj.length; i < j; i++) {
 843+ if (typeof obj[i] == 'object') {
 844+ $(obj[i]).data('fancybox', $.extend({}, opts, obj[i]));
 845+ } else {
 846+ obj[i] = $({}).data('fancybox', $.extend({content : obj[i]}, opts));
 847+ }
 848+ }
 849+
 850+ selectedArray = jQuery.merge(selectedArray, obj);
 851+
 852+ } else {
 853+ if (typeof obj == 'object') {
 854+ $(obj).data('fancybox', $.extend({}, opts, obj));
 855+ } else {
 856+ obj = $({}).data('fancybox', $.extend({content : obj}, opts));
 857+ }
 858+
 859+ selectedArray.push(obj);
 860+ }
 861+
 862+ if (selectedIndex > selectedArray.length || selectedIndex < 0) {
 863+ selectedIndex = 0;
 864+ }
 865+
 866+ _start();
 867+ };
 868+
 869+ $.fancybox.showActivity = function() {
 870+ clearInterval(loadingTimer);
 871+
 872+ loading.show();
 873+ loadingTimer = setInterval(_animate_loading, 66);
 874+ };
 875+
 876+ $.fancybox.hideActivity = function() {
 877+ loading.hide();
 878+ };
 879+
 880+ $.fancybox.next = function() {
 881+ return $.fancybox.pos( currentIndex + 1);
 882+ };
 883+
 884+ $.fancybox.prev = function() {
 885+ return $.fancybox.pos( currentIndex - 1);
 886+ };
 887+
 888+ $.fancybox.pos = function(pos) {
 889+ if (busy) {
 890+ return;
 891+ }
 892+
 893+ pos = parseInt(pos);
 894+
 895+ selectedArray = currentArray;
 896+
 897+ if (pos > -1 && pos < currentArray.length) {
 898+ selectedIndex = pos;
 899+ _start();
 900+
 901+ } else if (currentOpts.cyclic && currentArray.length > 1) {
 902+ selectedIndex = pos >= currentArray.length ? 0 : currentArray.length - 1;
 903+ _start();
 904+ }
 905+
 906+ return;
 907+ };
 908+
 909+ $.fancybox.cancel = function() {
 910+ if (busy) {
 911+ return;
 912+ }
 913+
 914+ busy = true;
 915+
 916+ $.event.trigger('fancybox-cancel');
 917+
 918+ _abort();
 919+
 920+ selectedOpts.onCancel(selectedArray, selectedIndex, selectedOpts);
 921+
 922+ busy = false;
 923+ };
 924+
 925+ // Note: within an iframe use - parent.$.fancybox.close();
 926+ $.fancybox.close = function() {
 927+ if (busy || wrap.is(':hidden')) {
 928+ return;
 929+ }
 930+
 931+ busy = true;
 932+
 933+ if (currentOpts && false === currentOpts.onCleanup(currentArray, currentIndex, currentOpts)) {
 934+ busy = false;
 935+ return;
 936+ }
 937+
 938+ _abort();
 939+
 940+ $(close.add( nav_left ).add( nav_right )).hide();
 941+
 942+ $(content.add( overlay )).unbind();
 943+
 944+ $(window).unbind("resize.fb scroll.fb");
 945+ $(document).unbind('keydown.fb');
 946+
 947+ content.find('iframe').attr('src', isIE6 && /^https/i.test(window.location.href || '') ? 'javascript:void(false)' : 'about:blank');
 948+
 949+ if (currentOpts.titlePosition !== 'inside') {
 950+ title.empty();
 951+ }
 952+
 953+ wrap.stop();
 954+
 955+ function _cleanup() {
 956+ overlay.fadeOut('fast');
 957+
 958+ title.empty().hide();
 959+ wrap.hide();
 960+
 961+ $.event.trigger('fancybox-cleanup');
 962+
 963+ content.empty();
 964+
 965+ currentOpts.onClosed(currentArray, currentIndex, currentOpts);
 966+
 967+ currentArray = selectedOpts = [];
 968+ currentIndex = selectedIndex = 0;
 969+ currentOpts = selectedOpts = {};
 970+
 971+ busy = false;
 972+ }
 973+
 974+ if (currentOpts.transitionOut == 'elastic') {
 975+ start_pos = _get_zoom_from();
 976+
 977+ var pos = wrap.position();
 978+
 979+ final_pos = {
 980+ top : pos.top ,
 981+ left : pos.left,
 982+ width : wrap.width(),
 983+ height : wrap.height()
 984+ };
 985+
 986+ if (currentOpts.opacity) {
 987+ final_pos.opacity = 1;
 988+ }
 989+
 990+ title.empty().hide();
 991+
 992+ fx.prop = 1;
 993+
 994+ $(fx).animate({ prop: 0 }, {
 995+ duration : currentOpts.speedOut,
 996+ easing : currentOpts.easingOut,
 997+ step : _draw,
 998+ complete : _cleanup
 999+ });
 1000+
 1001+ } else {
 1002+ wrap.fadeOut( currentOpts.transitionOut == 'none' ? 0 : currentOpts.speedOut, _cleanup);
 1003+ }
 1004+ };
 1005+
 1006+ $.fancybox.resize = function() {
 1007+ if (overlay.is(':visible')) {
 1008+ overlay.css('height', $(document).height());
 1009+ }
 1010+
 1011+ $.fancybox.center(true);
 1012+ };
 1013+
 1014+ $.fancybox.center = function() {
 1015+ var view, align;
 1016+
 1017+ if (busy) {
 1018+ return;
 1019+ }
 1020+
 1021+ align = arguments[0] === true ? 1 : 0;
 1022+ view = _get_viewport();
 1023+
 1024+ if (!align && (wrap.width() > view[0] || wrap.height() > view[1])) {
 1025+ return;
 1026+ }
 1027+
 1028+ wrap
 1029+ .stop()
 1030+ .animate({
 1031+ 'top' : parseInt(Math.max(view[3] - 20, view[3] + ((view[1] - content.height() - 40) * 0.5) - currentOpts.padding)),
 1032+ 'left' : parseInt(Math.max(view[2] - 20, view[2] + ((view[0] - content.width() - 40) * 0.5) - currentOpts.padding))
 1033+ }, typeof arguments[0] == 'number' ? arguments[0] : 200);
 1034+ };
 1035+
 1036+ $.fancybox.init = function() {
 1037+ if ($("#fancybox-wrap").length) {
 1038+ return;
 1039+ }
 1040+
 1041+ $('body').append(
 1042+ tmp = $('<div id="fancybox-tmp"></div>'),
 1043+ loading = $('<div id="fancybox-loading"><div></div></div>'),
 1044+ overlay = $('<div id="fancybox-overlay"></div>'),
 1045+ wrap = $('<div id="fancybox-wrap"></div>')
 1046+ );
 1047+
 1048+ outer = $('<div id="fancybox-outer"></div>')
 1049+ .append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>')
 1050+ .appendTo( wrap );
 1051+
 1052+ outer.append(
 1053+ content = $('<div id="fancybox-content"></div>'),
 1054+ close = $('<a id="fancybox-close"></a>'),
 1055+ title = $('<div id="fancybox-title"></div>'),
 1056+
 1057+ nav_left = $('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),
 1058+ nav_right = $('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>')
 1059+ );
 1060+
 1061+ close.click($.fancybox.close);
 1062+ loading.click($.fancybox.cancel);
 1063+
 1064+ nav_left.click(function(e) {
 1065+ e.preventDefault();
 1066+ $.fancybox.prev();
 1067+ });
 1068+
 1069+ nav_right.click(function(e) {
 1070+ e.preventDefault();
 1071+ $.fancybox.next();
 1072+ });
 1073+
 1074+ if ($.fn.mousewheel) {
 1075+ wrap.bind('mousewheel.fb', function(e, delta) {
 1076+ if (busy) {
 1077+ e.preventDefault();
 1078+
 1079+ } else if ($(e.target).get(0).clientHeight == 0 || $(e.target).get(0).scrollHeight === $(e.target).get(0).clientHeight) {
 1080+ e.preventDefault();
 1081+ $.fancybox[ delta > 0 ? 'prev' : 'next']();
 1082+ }
 1083+ });
 1084+ }
 1085+
 1086+ if (!$.support.opacity) {
 1087+ wrap.addClass('fancybox-ie');
 1088+ }
 1089+
 1090+ if (isIE6) {
 1091+ loading.addClass('fancybox-ie6');
 1092+ wrap.addClass('fancybox-ie6');
 1093+
 1094+ $('<iframe id="fancybox-hide-sel-frame" src="' + (/^https/i.test(window.location.href || '') ? 'javascript:void(false)' : 'about:blank' ) + '" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(outer);
 1095+ }
 1096+ };
 1097+
 1098+ $.fn.fancybox.defaults = {
 1099+ padding : 10,
 1100+ margin : 40,
 1101+ opacity : false,
 1102+ modal : false,
 1103+ cyclic : false,
 1104+ scrolling : 'auto', // 'auto', 'yes' or 'no'
 1105+
 1106+ width : 560,
 1107+ height : 340,
 1108+
 1109+ autoScale : true,
 1110+ autoDimensions : true,
 1111+ centerOnScroll : false,
 1112+
 1113+ ajax : {},
 1114+ swf : { wmode: 'transparent' },
 1115+
 1116+ hideOnOverlayClick : true,
 1117+ hideOnContentClick : false,
 1118+
 1119+ overlayShow : true,
 1120+ overlayOpacity : 0.7,
 1121+ overlayColor : '#777',
 1122+
 1123+ titleShow : true,
 1124+ titlePosition : 'float', // 'float', 'outside', 'inside' or 'over'
 1125+ titleFormat : null,
 1126+ titleFromAlt : false,
 1127+
 1128+ transitionIn : 'fade', // 'elastic', 'fade' or 'none'
 1129+ transitionOut : 'fade', // 'elastic', 'fade' or 'none'
 1130+
 1131+ speedIn : 300,
 1132+ speedOut : 300,
 1133+
 1134+ changeSpeed : 300,
 1135+ changeFade : 'fast',
 1136+
 1137+ easingIn : 'swing',
 1138+ easingOut : 'swing',
 1139+
 1140+ showCloseButton : true,
 1141+ showNavArrows : true,
 1142+ enableEscapeButton : true,
 1143+ enableKeyboardNav : true,
 1144+
 1145+ onStart : function(){},
 1146+ onCancel : function(){},
 1147+ onComplete : function(){},
 1148+ onCleanup : function(){},
 1149+ onClosed : function(){},
 1150+ onError : function(){}
 1151+ };
 1152+
 1153+ $(document).ready(function() {
 1154+ $.fancybox.init();
 1155+ });
 1156+
 1157+})(jQuery);
\ No newline at end of file
Property changes on: trunk/extensions/Survey/resources/fancybox/jquery.fancybox-1.3.4.js
___________________________________________________________________
Added: svn:eol-style
11158 + native
Index: trunk/extensions/Survey/resources/fancybox/fancy_shadow_n.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
Property changes on: trunk/extensions/Survey/resources/fancybox/fancy_shadow_n.png
___________________________________________________________________
Added: svn:mime-type
21159 + image/png
Index: trunk/extensions/Survey/resources/fancybox/fancy_close.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
Property changes on: trunk/extensions/Survey/resources/fancybox/fancy_close.png
___________________________________________________________________
Added: svn:mime-type
31160 + image/png
Index: trunk/extensions/Survey/resources/fancybox/fancy_shadow_s.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
Property changes on: trunk/extensions/Survey/resources/fancybox/fancy_shadow_s.png
___________________________________________________________________
Added: svn:mime-type
41161 + image/png
Index: trunk/extensions/Survey/resources/fancybox/fancy_shadow_ne.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
Property changes on: trunk/extensions/Survey/resources/fancybox/fancy_shadow_ne.png
___________________________________________________________________
Added: svn:mime-type
51162 + image/png
Index: trunk/extensions/Survey/resources/fancybox/jquery.easing-1.3.pack.js
@@ -0,0 +1,72 @@
 2+/*
 3+ * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
 4+ *
 5+ * Uses the built in easing capabilities added In jQuery 1.1
 6+ * to offer multiple easing options
 7+ *
 8+ * TERMS OF USE - jQuery Easing
 9+ *
 10+ * Open source under the BSD License.
 11+ *
 12+ * Copyright © 2008 George McGinley Smith
 13+ * All rights reserved.
 14+ *
 15+ * Redistribution and use in source and binary forms, with or without modification,
 16+ * are permitted provided that the following conditions are met:
 17+ *
 18+ * Redistributions of source code must retain the above copyright notice, this list of
 19+ * conditions and the following disclaimer.
 20+ * Redistributions in binary form must reproduce the above copyright notice, this list
 21+ * of conditions and the following disclaimer in the documentation and/or other materials
 22+ * provided with the distribution.
 23+ *
 24+ * Neither the name of the author nor the names of contributors may be used to endorse
 25+ * or promote products derived from this software without specific prior written permission.
 26+ *
 27+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
 28+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 29+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 30+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 31+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 32+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
 33+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 34+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 35+ * OF THE POSSIBILITY OF SUCH DAMAGE.
 36+ *
 37+*/
 38+
 39+// t: current time, b: begInnIng value, c: change In value, d: duration
 40+eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('h.i[\'1a\']=h.i[\'z\'];h.O(h.i,{y:\'D\',z:9(x,t,b,c,d){6 h.i[h.i.y](x,t,b,c,d)},17:9(x,t,b,c,d){6 c*(t/=d)*t+b},D:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},13:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},X:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},U:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},R:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},N:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},M:9(x,t,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},L:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-=2)*t*t*t-2)+b},K:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},J:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t*t*t+1)+b},I:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((t-=2)*t*t*t*t+2)+b},G:9(x,t,b,c,d){6-c*8.C(t/d*(8.g/2))+c+b},15:9(x,t,b,c,d){6 c*8.n(t/d*(8.g/2))+b},12:9(x,t,b,c,d){6-c/2*(8.C(8.g*t/d)-1)+b},Z:9(x,t,b,c,d){6(t==0)?b:c*8.j(2,10*(t/d-1))+b},Y:9(x,t,b,c,d){6(t==d)?b+c:c*(-8.j(2,-10*t/d)+1)+b},W:9(x,t,b,c,d){e(t==0)6 b;e(t==d)6 b+c;e((t/=d/2)<1)6 c/2*8.j(2,10*(t-1))+b;6 c/2*(-8.j(2,-10*--t)+2)+b},V:9(x,t,b,c,d){6-c*(8.o(1-(t/=d)*t)-1)+b},S:9(x,t,b,c,d){6 c*8.o(1-(t=t/d-1)*t)+b},Q:9(x,t,b,c,d){e((t/=d/2)<1)6-c/2*(8.o(1-t*t)-1)+b;6 c/2*(8.o(1-(t-=2)*t)+1)+b},P:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6-(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b},H:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6 a*8.j(2,-10*t)*8.n((t*d-s)*(2*8.g)/p)+c+b},T:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b;6 a*8.j(2,-10*(t-=1))*8.n((t*d-s)*(2*8.g)/p)*.5+c+b},F:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*(t/=d)*t*((s+1)*t-s)+b},E:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},16:9(x,t,b,c,d,s){e(s==u)s=1.l;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.B))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.B))+1)*t+s)+2)+b},A:9(x,t,b,c,d){6 c-h.i.v(x,d-t,0,c,d)+b},v:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(2/2.k)){6 c*(7.q*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-=(2.14/2.k))*t+.11)+b}m{6 c*(7.q*(t-=(2.18/2.k))*t+.19)+b}},1b:9(x,t,b,c,d){e(t<d/2)6 h.i.A(x,t*2,0,c,d)*.5+b;6 h.i.v(x,t*2-d,0,c,d)*.5+c*.5+b}});',62,74,'||||||return||Math|function|||||if|var|PI|jQuery|easing|pow|75|70158|else|sin|sqrt||5625|asin|||undefined|easeOutBounce|abs||def|swing|easeInBounce|525|cos|easeOutQuad|easeOutBack|easeInBack|easeInSine|easeOutElastic|easeInOutQuint|easeOutQuint|easeInQuint|easeInOutQuart|easeOutQuart|easeInQuart|extend|easeInElastic|easeInOutCirc|easeInOutCubic|easeOutCirc|easeInOutElastic|easeOutCubic|easeInCirc|easeInOutExpo|easeInCubic|easeOutExpo|easeInExpo||9375|easeInOutSine|easeInOutQuad|25|easeOutSine|easeInOutBack|easeInQuad|625|984375|jswing|easeInOutBounce'.split('|'),0,{}))
 41+
 42+/*
 43+ *
 44+ * TERMS OF USE - EASING EQUATIONS
 45+ *
 46+ * Open source under the BSD License.
 47+ *
 48+ * Copyright © 2001 Robert Penner
 49+ * All rights reserved.
 50+ *
 51+ * Redistribution and use in source and binary forms, with or without modification,
 52+ * are permitted provided that the following conditions are met:
 53+ *
 54+ * Redistributions of source code must retain the above copyright notice, this list of
 55+ * conditions and the following disclaimer.
 56+ * Redistributions in binary form must reproduce the above copyright notice, this list
 57+ * of conditions and the following disclaimer in the documentation and/or other materials
 58+ * provided with the distribution.
 59+ *
 60+ * Neither the name of the author nor the names of contributors may be used to endorse
 61+ * or promote products derived from this software without specific prior written permission.
 62+ *
 63+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
 64+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 65+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 66+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 67+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 68+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
 69+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 70+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 71+ * OF THE POSSIBILITY OF SUCH DAMAGE.
 72+ *
 73+ */
Property changes on: trunk/extensions/Survey/resources/fancybox/jquery.easing-1.3.pack.js
___________________________________________________________________
Added: svn:eol-style
174 + native
Index: trunk/extensions/Survey/resources/fancybox/fancy_shadow_w.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
Property changes on: trunk/extensions/Survey/resources/fancybox/fancy_shadow_w.png
___________________________________________________________________
Added: svn:mime-type
275 + image/png

Status & tagging log