diff --git a/oc454/apps/files_sharing_widget/admin.php b/oc454/apps/files_sharing_widget/admin.php new file mode 100644 index 0000000..781ea9c --- /dev/null +++ b/oc454/apps/files_sharing_widget/admin.php @@ -0,0 +1,23 @@ + + * + * + */ + +OC_Util::checkAdminUser(); +$shareSecret=OCP\Config::getSystemValue('secretword'); +if($shareSecret=='') $shareSecret='mySecretWord'; + +$siteEmail=OCP\Config::getSystemValue('siteemail'); +if($siteEmail=='') $siteEmail=''; + +$tmpl = new OCP\Template( 'files_sharing_widget', 'admin'); +$tmpl->assign('secretword', $shareSecret); +$tmpl->assign('siteemail', $siteEmail); + +return $tmpl->fetchPage(); diff --git a/oc454/apps/files_sharing_widget/ajax/delshare.php b/oc454/apps/files_sharing_widget/ajax/delshare.php new file mode 100644 index 0000000..58e3acb --- /dev/null +++ b/oc454/apps/files_sharing_widget/ajax/delshare.php @@ -0,0 +1,18 @@ + + * + * + */ + + +OCP\JSON::checkLoggedIn(); +OCP\JSON::checkAppEnabled('files_sharing_widget'); +OCP\JSON::callCheck(); + +$delId = isset($_POST["delid"])?$_POST["delid"]:''; +OC_Widget_Helper::delShare($delId); +OCP\JSON::success(array("data" => array( "msg" =>$delId))); \ No newline at end of file diff --git a/oc454/apps/files_sharing_widget/ajax/saveparam.php b/oc454/apps/files_sharing_widget/ajax/saveparam.php new file mode 100644 index 0000000..7642b17 --- /dev/null +++ b/oc454/apps/files_sharing_widget/ajax/saveparam.php @@ -0,0 +1,24 @@ + + * + * + */ + + +OCP\JSON::checkLoggedIn(); +OCP\JSON::checkAppEnabled('files_sharing_widget'); +OCP\JSON::callCheck(); + +$ObjSaveParamter['maxpicsperpage']=intval($_POST['sppics']); +$ObjSaveParamter['imgheight']=intval($_POST['spthumb']); +$ObjSaveParamter['width']=intval($_POST['spwidth']); +$ObjSaveParamter['height']=intval($_POST['spheight']); + +$ObjSaveJson=json_encode($ObjSaveParamter); +OC_Preferences::setValue( OC_User::getUser(), 'files_sharing_widget', 'parameter', $ObjSaveJson); + +OCP\JSON::success(array("data" => array( "msg" =>'success'))); \ No newline at end of file diff --git a/oc454/apps/files_sharing_widget/ajax/sendlink.php b/oc454/apps/files_sharing_widget/ajax/sendlink.php new file mode 100644 index 0000000..178b225 --- /dev/null +++ b/oc454/apps/files_sharing_widget/ajax/sendlink.php @@ -0,0 +1,27 @@ + + * + * + */ + +OCP\JSON::checkLoggedIn(); +OCP\JSON::checkAppEnabled('files_sharing_widget'); +OCP\JSON::callCheck(); + +if( isset( $_POST['email'] ) && filter_var( $_POST['email'], FILTER_VALIDATE_EMAIL) ) { +$toMail=trim($_POST['email']); +$mailTxt = isset($_POST['mailtxt']) ? strip_tags(nl2br($_POST['mailtxt'])) : false; +$sharelink=$_POST['sharelink']; +//$from = 'info@libasyscloud.de'; +$from=OCP\Config::getSystemValue('siteemail'); +if($from=='') $from=''; +//OC_MAIL::setFooter("\n--\n LibasysCloud - More than a Cloud!"); +OC_MAIL::send($toMail, $toMail, 'Share Link by ' . OCP\USER::getUser(), $mailTxt."\n\nShared Link:\n".$sharelink, $from, 'ownCloud'); + +OCP\JSON::success(array("data" => array( "msg" =>'success'))); +} \ No newline at end of file diff --git a/oc454/apps/files_sharing_widget/ajax/sharesecret.php b/oc454/apps/files_sharing_widget/ajax/sharesecret.php new file mode 100644 index 0000000..5598420 --- /dev/null +++ b/oc454/apps/files_sharing_widget/ajax/sharesecret.php @@ -0,0 +1,29 @@ + + * + * + */ + +OCP\JSON::checkLoggedIn(); +OCP\JSON::checkAppEnabled('files_sharing_widget'); +OCP\JSON::callCheck(); + +// Get data +if(isset( $_POST['mySecretWord'] ) && $_POST['mySecretWord'] != '') { + $secretWord=trim($_POST['mySecretWord']); + OCP\Config::setSystemValue('secretword', $secretWord); + + OC_JSON::success(array("data" => array( "message" => 'Saved'))); +}elseif(isset( $_POST['siteemail'] ) && filter_var( $_POST['siteemail'], FILTER_VALIDATE_EMAIL)) { + $siteEmail=trim($_POST['siteemail']); + OCP\Config::setSystemValue('siteemail', $siteEmail); + OC_JSON::success(array("data" => array( "message" => 'Saved'))); +} +else{ + OC_JSON::error(array("data" => array( "message" => 'Error' ))); +} diff --git a/oc454/apps/files_sharing_widget/appinfo/app.php b/oc454/apps/files_sharing_widget/appinfo/app.php new file mode 100644 index 0000000..3f11e1c --- /dev/null +++ b/oc454/apps/files_sharing_widget/appinfo/app.php @@ -0,0 +1,15 @@ + + * + * + */ + +OCP\App::registerPersonal('files_sharing_widget', 'settings'); +OCP\App::registerAdmin('files_sharing_widget', 'admin'); +OCP\Util::addscript( 'files_sharing_widget', 'settings'); +OCP\Util::addscript( 'files_sharing_widget', 'admin'); +OC::$CLASSPATH['OC_Widget_Helper'] = 'apps/files_sharing_widget/lib/widgethelper.php'; \ No newline at end of file diff --git a/oc454/apps/files_sharing_widget/appinfo/info.xml b/oc454/apps/files_sharing_widget/appinfo/info.xml new file mode 100644 index 0000000..eb63e28 --- /dev/null +++ b/oc454/apps/files_sharing_widget/appinfo/info.xml @@ -0,0 +1,14 @@ + + + files_sharing_widget + Share Gallery Widget + Picture Sharing Gallery Widget for use of implementing on a website or share by a Link + AGPL + S. Doell + 4.9 + true + + + + + \ No newline at end of file diff --git a/oc454/apps/files_sharing_widget/appinfo/version b/oc454/apps/files_sharing_widget/appinfo/version new file mode 100644 index 0000000..b6ee802 --- /dev/null +++ b/oc454/apps/files_sharing_widget/appinfo/version @@ -0,0 +1 @@ +1.0 beta \ No newline at end of file diff --git a/oc454/apps/files_sharing_widget/css/widget.css b/oc454/apps/files_sharing_widget/css/widget.css new file mode 100644 index 0000000..4be6eb2 --- /dev/null +++ b/oc454/apps/files_sharing_widget/css/widget.css @@ -0,0 +1,9 @@ +/** + * ownCloud - Picture Widget + * + * @author Sebastian Doell + * @copyright 2012 Sebastian Doell + * + * + */ +body.widgetbg{background:#fff url('../img/purty_wood.jpg') repeat}#ownWidget-container{position:absolute;margin-left:auto;z-index:200;font-family:arial;font-size:13px;top:10px;left:300px;margin-right:auto;width:700px;height:550px;background:#939393;background:rgba(0,0,0,0.3);border:1px solid #343434;border-radius:8px;-webkit-border-radius:8px;box-shadow:-1px -1px 5px rgba(0,0,0,0.8);-webkit-box-shadow:-1px -1px 5px rgba(0,0,0,0.8);border:0;color:#636363;padding:5px}a.imgLoading{background:#fff url('../img/loading.gif') 50% 50% no-repeat;display:block;float:left;margin-left:2px;margin-bottom:2px}#ownWidget-Loader{position:absolute;left:50%;top:50%;margin-left:-50px;margin-top:-50px;width:100px;height:100px;display:block;background:url('../img/ajax-loader.gif') 50% 50% no-repeat}.ownWidget-isHidden{display:none}#ownWidget-header{width:100%;top:0;position:relative;float:left;margin-top:5px;line-height:26px;font-size:14px;text-align:left;min-height:26px;display:block;background:transparent}#SlideShowButton{position:absolute;right:10px;margin-top:5px;cursor:pointer;line-height:26px}#ownWidget-header a.loadAlbum,#SlideShowButton,#ownWidget-header a.noAlbum{text-decoration:none;color:#fff;display:block;margin-left:10px;float:left;background:#707070;background:rgba(0,0,0,0.8);box-shadow:-1px -1px 5px rgba(0,0,0,0.8);-webkit-box-shadow:-1px -1px 5px rgba(0,0,0,0.8);border:1px solid rgba(0,0,0,0.9);margin-bottom:2px;padding:3px 5px;border-radius:5px;-webkit-border-radius:5px}#ownWidget-header a:hover,#SlideShowButton:hover{background:#323232}#albumPics{clear:both;margin-top:3px;margin-left:-2px}#albumPics a.loadAlbum,#albumPics a.loadAlbum:hover{background:transparent;border:0;box-shadow:none;-webkit-box-shadow:none}#ownWidget-output img.imgshow{margin:5px;background:#fff;padding:5px;box-shadow:-1px -1px 5px rgba(0,0,0,0.8);-webkit-box-shadow:-1px -1px 5px rgba(0,0,0,0.8)}#ownWidget-output{background:transparent;display:block;width:98%;float:left;height:0;position:relative;margin-top:10px;padding:5px;z-index:202}#ownWidget-output form{background:rgba(0,0,0,0.6);width:80%;margin-left:10%;border:1px solid #424242;border-radius:10px;-webkit-border-radius:10px;padding:10px}.ownWidget-scrollMe{margin:0;padding:0;margin-left:20px;float:none;width:670px;height:420px}.ownWidget-row{float:none;margin:0;padding:3px;margin-bottom:5px;width:auto}#ownWidget-slider{width:690px}#ownWidget-slider>div,#ownWidget-slider>li{width:auto}.mb-wrapper{margin:0;position:relative;left:0;background:transparent;top:0;z-index:220;display:block;height:auto}.mb-slider,.mb-scroll{width:auto;display:block;overflow:hidden;margin:0 auto;padding:0;position:relative;left:0;top:0;font-size:18px}.mb-active-slider{border-color:#ccc}.mb-slider .mb-panel{margin:0;display:block;cursor:pointer;float:left;list-style:none}.mb-slider .mb-panel.current{cursor:auto}.mb-inside{background:transparent;height:auto;width:auto;display:block;float:left}a.mb-scrollButtons{display:block;position:absolute;top:50%;margin-top:-20px;width:28px;height:40px;line-height:40px;cursor:pointer;color:#fff;background:#707070;background:rgba(0,0,0,0.8);box-shadow:-1px -1px 5px rgba(0,0,0,0.8);-webkit-box-shadow:-1px -1px 5px rgba(0,0,0,0.8);border:rgba(0,0,0,0.9);border-radius:5px;-webkit-border-radius:5px;font-size:20px;text-align:center;text-decoration:none}a.mb-scrollButtons.mb-left{background-position:left top;left:-28px}a.mb-scrollButtons.mb-right{background-position:right top;right:-28px}a.mb-scrollButtons.mb-left:hover{background-position:left bottom}a.mb-scrollButtons.mb-right:hover{background-position:right bottom}a.mb-scrollButtons.disabled{display:none}.mb-controls{margin:0;margin-top:6px;text-align:center;background:transparent;position:relative;z-index:100}.mb-controls a{color:#666;font:20px/2.2 Georgia,Serif;display:inline-block;text-decoration:none;padding:2px;margin:0 5px 0 0;text-align:center;outline:0}.mb-controls a:hover{color:black}.mb-controls a.current{color:#bbb}.mb-active-slider .mb-controls{background:transparent}#ownWidget-output li a{text-decoration:none;color:#7da9ce}#ownWidget-closeButton{position:absolute;z-index:201;top:-10px;right:-10px;width:24px;height:24px;line-height:24px;border:2px solid #fff;background:#000;color:#fff;font-family:arial;font-weight:bold;font-size:14px;text-align:center;box-shadow:0 1px 8px rgba(0,0,0,0.6);-webkit-box-shadow:0 1px 8px rgba(0,0,0,0.6);border-radius:13px;-webkit-border-radius:13px}#ownWidget-overlayWid{top:0;left:0;position:absolute;background:#000;z-index:199}div#ownWidget-displayButton{text-decoration:none;position:absolute;padding:2px 8px;line-height:14pt;font-size:11pt;cursor:pointer;width:100px;text-align:center;min-width:100px;border:1px solid #bbb;-moz-border-radius:11px;-khtml-border-radius:11px;-webkit-border-radius:11px;border-radius:11px;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;-khtml-box-sizing:content-box;box-sizing:content-box;background:#dad2d2;background:-webkit-gradient(linear,0% 0,0% 100%,from(#fff),to(#ccc));background:-moz-linear-gradient(top,#fff,#ccc);background:-o-linear-gradient(#fff,#ccc);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#cccccc');zoom:1;color:#464646;text-shadow:rgba(255,255,255,1) 0 1px 0}.ownWidget-pageScroller{background:red;width:750px;height:400px;float:left}li.ownWidget-row{width:100%;margin:0;padding:0;display:block;line-height:20px}li.ownWidget-row span{float:left;padding-left:5px;display:block}.mCSB_container{width:auto;margin-right:30px;overflow:hidden}.mCSB_container.mCS_no_scrollbar{margin-right:0}.mCustomScrollBox .mCSB_scrollTools{width:16px;height:100%;top:0;right:0}.mCSB_scrollTools .mCSB_draggerContainer{height:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mCSB_scrollTools .mCSB_buttonUp+.mCSB_draggerContainer{padding-bottom:40px}.mCSB_scrollTools .mCSB_draggerRail{width:2px;height:100%;margin:0 auto;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.mCSB_scrollTools .mCSB_dragger{cursor:pointer;width:100%;height:30px}.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:4px;height:100%;margin:0 auto;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;text-align:center}.mCSB_scrollTools .mCSB_buttonUp,.mCSB_scrollTools .mCSB_buttonDown{height:20px;overflow:hidden;margin:0 auto;cursor:pointer}.mCSB_scrollTools .mCSB_buttonDown{bottom:0;margin-top:-40px}.mCSB_horizontal .mCSB_container{height:auto;margin-right:0;margin-bottom:30px;overflow:hidden}.mCSB_horizontal .mCSB_container.mCS_no_scrollbar{margin-bottom:0}.mCSB_horizontal.mCustomScrollBox .mCSB_scrollTools{width:100%;height:16px;top:auto;right:auto;bottom:0;left:0;overflow:hidden}.mCSB_horizontal .mCSB_scrollTools .mCSB_draggerContainer{height:100%;width:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.mCSB_horizontal .mCSB_scrollTools .mCSB_buttonLeft+.mCSB_draggerContainer{padding-bottom:0;padding-right:20px}.mCSB_horizontal .mCSB_scrollTools .mCSB_draggerRail{width:100%;height:2px;margin:7px 0;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.mCSB_horizontal .mCSB_scrollTools .mCSB_dragger{width:30px;height:100%}.mCSB_horizontal .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:4px;margin:6px auto;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.mCSB_horizontal .mCSB_scrollTools .mCSB_buttonLeft,.mCSB_horizontal .mCSB_scrollTools .mCSB_buttonRight{width:20px;height:100%;overflow:hidden;margin:0 auto;cursor:pointer;float:left}.mCSB_horizontal .mCSB_scrollTools .mCSB_buttonRight{right:0;bottom:auto;margin-left:-40px;margin-top:-16px;float:right}.mCustomScrollBox .mCSB_scrollTools{opacity:.75}.mCustomScrollBox:hover .mCSB_scrollTools{opacity:1}.mCSB_scrollTools .mCSB_draggerRail{background:#000;background:rgba(0,0,0,0.6);filter:"alpha(opacity=60)";-ms-filter:"alpha(opacity=60)"}.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background:#5e667f;background:rgba(94,102,127,0.75);filter:"alpha(opacity=75)";-ms-filter:"alpha(opacity=75)"}.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(94,102,127,0.85);filter:"alpha(opacity=85)";-ms-filter:"alpha(opacity=85)"}.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar,.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{background:rgba(94,102,127,0.9);filter:"alpha(opacity=90)";-ms-filter:"alpha(opacity=90)"}.mCSB_scrollTools .mCSB_buttonUp,.mCSB_scrollTools .mCSB_buttonDown,.mCSB_scrollTools .mCSB_buttonLeft,.mCSB_scrollTools .mCSB_buttonRight{background-image:url(../img/mCSB_buttons.png);background-repeat:no-repeat;opacity:.4;filter:"alpha(opacity=40)";-ms-filter:"alpha(opacity=40)"}.mCSB_scrollTools .mCSB_buttonUp{background-position:0 0}.mCSB_scrollTools .mCSB_buttonDown{background-position:0 -20px}.mCSB_scrollTools .mCSB_buttonLeft{background-position:0 -40px}.mCSB_scrollTools .mCSB_buttonRight{background-position:0 -56px}.mCSB_scrollTools .mCSB_buttonUp:hover,.mCSB_scrollTools .mCSB_buttonDown:hover,.mCSB_scrollTools .mCSB_buttonLeft:hover,.mCSB_scrollTools .mCSB_buttonRight:hover{opacity:.75;filter:"alpha(opacity=75)";-ms-filter:"alpha(opacity=75)"}.mCSB_scrollTools .mCSB_buttonUp:active,.mCSB_scrollTools .mCSB_buttonDown:active,.mCSB_scrollTools .mCSB_buttonLeft:active,.mCSB_scrollTools .mCSB_buttonRight:active{opacity:.9;filter:"alpha(opacity=90)";-ms-filter:"alpha(opacity=90)"}#fancybox-loading{position:fixed;top:50%;left:50%;width:40px;height:40px;margin-top:-20px;margin-left:-20px;cursor:pointer;overflow:hidden;z-index:1104;display:none}#fancybox-loading div{position:absolute;top:0;left:0;width:40px;height:480px;background-image:url('../img/fancy/fancybox.png')}#fancybox-overlay{position:fixed;top:0;left:0;width:100%;z-index:1100;display:none}#fancybox-tmp{padding:0;margin:0;border:0;overflow:auto;display:none}#fancybox-wrap{position:absolute;top:0;left:0;padding:20px;z-index:1101;outline:0;display:none}#fancybox-outer{position:relative;width:100%;height:100%;background:#fff}#fancybox-content{width:0;height:0;padding:0;outline:0;position:relative;overflow:hidden;z-index:1102;border:0 solid #fff}#fancybox-hide-sel-frame{position:absolute;top:0;left:0;width:100%;height:100%;background:transparent;z-index:1101}#fancybox-close{position:absolute;top:-15px;right:-15px;width:30px;height:30px;background:transparent url('../img/fancy/fancybox.png') -40px 0;cursor:pointer;z-index:1103;display:none}#fancybox-error{color:#444;font:normal 12px/20px Arial;padding:14px;margin:0}#fancybox-img{width:100%;height:100%;padding:0;margin:0;border:0;outline:0;line-height:0;vertical-align:top}#fancybox-frame{width:100%;height:100%;border:0;display:block}#fancybox-left,#fancybox-right{position:absolute;bottom:0;height:100%;width:35%;cursor:pointer;outline:0;background:transparent url('../img/fancy/blank.gif');z-index:1102;display:none}#fancybox-left{left:0}#fancybox-right{right:0}#fancybox-left-ico,#fancybox-right-ico{position:absolute;top:50%;left:-9999px;width:30px;height:30px;margin-top:-15px;cursor:pointer;z-index:1102;display:block}#fancybox-left-ico{background-image:url('../img/fancy/fancybox.png');background-position:-40px -30px}#fancybox-right-ico{background-image:url('../img/fancy/fancybox.png');background-position:-40px -60px}#fancybox-left:hover,#fancybox-right:hover{visibility:visible}#fancybox-left:hover span{left:20px}#fancybox-right:hover span{left:auto;right:20px}.fancybox-bg{position:absolute;padding:0;margin:0;border:0;width:20px;height:20px;z-index:1001}#fancybox-bg-n{top:-20px;left:0;width:100%;background-image:url('../img/fancy/fancybox-x.png')}#fancybox-bg-ne{top:-20px;right:-20px;background-image:url('../img/fancy/fancybox.png');background-position:-40px -162px}#fancybox-bg-e{top:0;right:-20px;height:100%;background-image:url('../img/fancy/fancybox-y.png');background-position:-20px 0}#fancybox-bg-se{bottom:-20px;right:-20px;background-image:url('../img/fancy/fancybox.png');background-position:-40px -182px}#fancybox-bg-s{bottom:-20px;left:0;width:100%;background-image:url('../img/fancy/fancybox-x.png');background-position:0 -20px}#fancybox-bg-sw{bottom:-20px;left:-20px;background-image:url('../img/fancy/fancybox.png');background-position:-40px -142px}#fancybox-bg-w{top:0;left:-20px;height:100%;background-image:url('../img/fancy/fancybox-y.png')}#fancybox-bg-nw{top:-20px;left:-20px;background-image:url('../img/fancy/fancybox.png');background-position:-40px -122px}#fancybox-title{font-family:Helvetica;font-size:12px;z-index:1102}.fancybox-title-inside{padding-bottom:10px;text-align:center;color:#333;background:#fff;position:relative}.fancybox-title-outside{padding-top:10px;color:#fff}.fancybox-title-over{position:absolute;bottom:0;left:0;color:#FFF;text-align:left}#fancybox-title-over{padding:10px;background-image:url('../img/fancy/fancy_title_over.png');display:block}.fancybox-title-float{position:absolute;left:0;bottom:-20px;height:32px}#fancybox-title-float-wrap{border:0;border-collapse:collapse;width:auto}#fancybox-title-float-wrap td{border:0;white-space:nowrap}#fancybox-title-float-left{padding:0 0 0 15px;background:url('../img/fancy/fancybox.png') -40px -90px no-repeat}#fancybox-title-float-main{color:#FFF;line-height:29px;font-weight:bold;padding:0 0 3px 0;background:url('../img/fancy/fancybox-x.png') 0 -40px}#fancybox-title-float-right{padding:0 0 0 15px;background:url('../img/fancy/fancybox.png') -55px -90px no-repeat}.fancybox-ie6 #fancybox-close{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_close.png',sizingMethod='scale')}.fancybox-ie6 #fancybox-left-ico{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_nav_left.png',sizingMethod='scale')}.fancybox-ie6 #fancybox-right-ico{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_nav_right.png',sizingMethod='scale')}.fancybox-ie6 #fancybox-title-over{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_title_over.png',sizingMethod='scale');zoom:1}.fancybox-ie6 #fancybox-title-float-left{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_title_left.png',sizingMethod='scale')}.fancybox-ie6 #fancybox-title-float-main{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_title_main.png',sizingMethod='scale')}.fancybox-ie6 #fancybox-title-float-right{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_title_right.png',sizingMethod='scale')}.fancybox-ie6 #fancybox-bg-w,.fancybox-ie6 #fancybox-bg-e,.fancybox-ie6 #fancybox-left,.fancybox-ie6 #fancybox-right,#fancybox-hide-sel-frame{height:expression(this.parentNode.clientHeight+"px")}#fancybox-loading.fancybox-ie6{position:absolute;margin-top:0;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')}#fancybox-loading.fancybox-ie6 div{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_loading.png',sizingMethod='scale')}.fancybox-ie .fancybox-bg{background:transparent!important}.fancybox-ie #fancybox-bg-n{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_n.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-ne{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_ne.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-e{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_e.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-se{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_se.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-s{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_s.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-sw{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_sw.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-w{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_w.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-nw{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_nw.png',sizingMethod='scale')}#slideshow-content{z-index:202}*{margin:0;padding:0}img{border:0}#supersized-loader{position:absolute;top:50%;left:50%;z-index:0;width:60px;height:60px;margin:-30px 0 0 -30px;text-indent:-999em}#supersized{display:block;position:fixed;left:0;top:0;overflow:hidden;z-index:-999;height:100%;width:100%}#supersized img{width:auto;height:auto;position:relative;display:none;outline:0;border:0}#supersized.speed img{-ms-interpolation-mode:nearest-neighbor;image-rendering:-moz-crisp-edges}#supersized.quality img{-ms-interpolation-mode:bicubic;image-rendering:optimizeQuality}#supersized li{display:block;list-style:none;z-index:-30;position:fixed;overflow:hidden;top:0;left:0;width:100%;height:100%;background:#111}#supersized a{width:100%;height:100%;display:block}#supersized li.prevslide{z-index:-20}#supersized li.activeslide{z-index:-10}#supersized li.image-loading{background:#111 url(../img/progress.gif) no-repeat center center;width:100%;height:100%}#supersized li.image-loading img{visibility:hidden}#supersized li.prevslide img,#supersized li.activeslide img{display:inline}#slideshow-content #controls-wrapper{margin:0 auto;height:42px;width:100%;bottom:0;left:0;z-index:204;background:url('../img/nav-bg.png') repeat-x;position:fixed}#slideshow-content #slideshow-controls{overflow:hidden;height:100%;position:relative;text-align:left;z-index:205}#slideshow-content #slidecounter{float:left;color:#999;font:14px "Helvetica Neue",Helvetica,Arial,sans-serif;text-shadow:#000 0 -1px 0;margin:0 10px 0 15px;line-height:42px}#slideshow-content #slidecaption{overflow:hidden;float:left;color:#FFF;font:400 14px "Helvetica Neue",Helvetica,Arial,sans-serif;text-shadow:#000 1px 1px 2px;margin:0 20px 0 0;line-height:42px}#slideshow-content #play-button{float:left;margin-top:1px;border-right:1px solid #333;background:url('../img/bg-hover.png') repeat-x 0 44px}#slideshow-content #play-button:hover{background-position:0 1px;cursor:pointer}#slideshow-content #prevslide,#nextslide{position:fixed;height:43px;width:43px;top:50%;margin-top:-21px;opacity:.6;z-index:204}#slideshow-content #prevslide{left:10px;background:url('../img/back.png')}#slideshow-content #nextslide{right:10px;background:url('../img/forward.png')}#slideshow-content #prevslide:active,#nextslide:active{margin-top:-19px}#slideshow-content #prevslide:hover,#nextslide:hover{cursor:pointer}#slideshow-content ul#slide-list{padding:15px 0;float:left;position:absolute;left:50%}#slideshow-content ul#slide-list li{list-style:none;width:12px;height:12px;float:left;margin:0 5px 0 0}#slideshow-content ul#slide-list li.current-slide a,ul#slide-list li.current-slide a:hover{background-position:0 0}#slideshow-content ul#slide-list li a{display:block;width:12px;height:12px;background:url('../img/nav-dot.png') no-repeat 0 -24px}#slideshow-content ul#slide-list li a:hover{background-position:0 -12px;cursor:pointer}#slideshow-content #tray-button{float:right;margin-top:1px;border-left:1px solid #333;background:url('../img/bg-hover.png') repeat-x 0 44px}#slideshow-content #tray-button:hover{background-position:0 1px;cursor:pointer}#slideshow-content #progress-back{z-index:205;position:fixed;bottom:42px;left:0;height:8px;width:100%;background:url('../img/progress-back.png') repeat-x}#slideshow-content #progress-bar{position:relative;height:8px;width:100%;background:url('../img/progress-bar.png') repeat-x}#slideshow-content #nextthumb,#slideshow-content #prevthumb{z-index:202;display:none;position:fixed;bottom:61px;height:75px;width:100px;overflow:hidden;background:#ddd;border:1px solid #fff;-webkit-box-shadow:0 0 5px #000}#slideshow-content #nextthumb{right:12px}#slideshow-content #prevthumb{left:12px}#slideshow-content #nextthumb img,#slideshow-content #prevthumb img{width:150px;height:auto}#slideshow-content #nextthumb:active,#slideshow-content #prevthumb:active{bottom:59px}#slideshow-content #nextthumb:hover,#slideshow-content #prevthumb:hover{cursor:pointer}#slideshow-content #closeSlideShow{position:fixed;right:10px;top:10px;background:#000;width:30px;height:30px;line-height:30px;border-radius:15px;color:#fff;text-align:center}#slideshow-content #thumb-tray{position:fixed;z-index:203;bottom:0;left:0;background:url('../img/bg-black.png');height:150px;width:100%;overflow:hidden;text-align:center;-moz-box-shadow:0 0 4px #000;-webkit-box-shadow:0 0 4px #000;box-shadow:0 0 4px #000}#slideshow-content #thumb-back,#slideshow-content #thumb-forward{position:absolute;z-index:5;bottom:42px;height:108px;width:40px}#slideshow-content #thumb-back{left:0;background:url('../img/thumb-back.png') no-repeat center center}#slideshow-content #thumb-forward{right:0;background:url('../img/thumb-forward.png') no-repeat center center}#slideshow-content #thumb-back:hover,#slideshow-content #thumb-forward:hover{cursor:pointer;background-color:rgba(256,256,256,0.1)}#slideshow-content #thumb-back:hover{border-right:1px solid rgba(256,256,256,0.2)}#slideshow-content #thumb-forward:hover{border-left:1px solid rgba(256,256,256,0.2)}#slideshow-content ul#thumb-list{display:inline-block;list-style:none;position:relative;left:0;padding:0}#slideshow-content ul#thumb-list li{background:#111;list-style:none;display:inline;width:150px;height:108px;overflow:hidden;float:left;margin:0}#slideshow-content ul#thumb-list li img{width:135px;padding:5px;background-color:#fff;margin-left:5px;height:auto;opacity:.5;-ms-filter:"alpha(opacity=60)";filter:alpha(opacity=60);-webkit-transition:all 100ms ease-in-out;-moz-transition:all 100ms ease-in-out;-o-transition:all 100ms ease-in-out;-ms-transition:all 100ms ease-in-out;transition:all 100ms ease-in-out}#slideshow-content ul#thumb-list li.current-thumb img,#slideshow-content ul#thumb-list li:hover img{opacity:1;-ms-filter:"alpha(opacity=100)";filter:alpha(opacity=100)}#slideshow-content ul#thumb-list li:hover{cursor:pointer}div.rotate{background:rgba(0,0,0,0.6);box-shadow:-1px -1px 5px rgba(0,0,0,0.8);-webkit-box-shadow:-1px -1px 5px rgba(0,0,0,0.8);border:1px solid rgba(0,0,0,0.9);z-index:12;display:block;color:#e5e5e5;padding:10px 10px 20px 10px}div.rotate span{clear:both;position:absolute;bottom:5px}div.rotate img{border:1px solid #323232} \ No newline at end of file diff --git a/oc454/apps/files_sharing_widget/css/widget.full.css b/oc454/apps/files_sharing_widget/css/widget.full.css new file mode 100644 index 0000000..a380edb --- /dev/null +++ b/oc454/apps/files_sharing_widget/css/widget.full.css @@ -0,0 +1,1190 @@ +/** + * ownCloud - Picture Widget + * + * @author Sebastian Doell + * @copyright 2012 Sebastian Doell + * + * + */ + +body.widgetbg { + background: #fff url('../img/purty_wood.jpg') repeat +} +#ownWidget-container { + position: absolute; + margin-left: auto; + z-index: 200; + font-family: arial; + font-size: 13px; + top: 10px; + left: 300px; + margin-right: auto; + width: 700px; + height: 550px; + background:#939393; + background: rgba(0,0,0,0.3); + border: 1px solid #343434; + border-radius: 8px; + -webkit-border-radius: 8px; + box-shadow: -1px -1px 5px rgba(0,0,0,0.8); + -webkit-box-shadow: -1px -1px 5px rgba(0,0,0,0.8); + border: 0; + color: #636363; + padding: 5px +} +a.imgLoading{ + + background:#fff url('../img/loading.gif') 50% 50% no-repeat; + display:block; + float:left; + margin-left:2px; + margin-bottom:2px; +} + +#ownWidget-Loader{ + position:absolute; + left:50%; + top:50%; + margin-left:-50px; + margin-top:-50px; + width:100px; + height:100px; + display:block; + background:url('../img/ajax-loader.gif') 50% 50% no-repeat; +} + +.ownWidget-isHidden { + + display:none; +} + +#ownWidget-header { + width: 100%; + top: 0; + position: relative; + float: left; + margin-top: 5px; + line-height: 26px; + font-size: 14px; + text-align: left; + min-height: 26px; + display: block; + background: transparent +} +#SlideShowButton { + position: absolute; + right: 10px; + margin-top: 5px; + cursor: pointer; + line-height: 26px +} +#ownWidget-header a.loadAlbum, #SlideShowButton, #ownWidget-header a.noAlbum { + text-decoration: none; + color: #fff; + display: block; + margin-left: 10px; + float: left; + background:#707070; + background: rgba(0,0,0,0.8); + box-shadow: -1px -1px 5px rgba(0,0,0,0.8); + -webkit-box-shadow: -1px -1px 5px rgba(0,0,0,0.8); + border: 1px solid rgba(0,0,0,0.9); + margin-bottom: 2px; + padding: 3px 5px; + border-radius: 5px; + -webkit-border-radius: 5px +} +#ownWidget-header a:hover, #SlideShowButton:hover { + background: #323232 +} +#albumPics { + clear: both; + margin-top: 3px; + margin-left: -2px +} +#albumPics a.loadAlbum, #albumPics a.loadAlbum:hover { + background: transparent; + border: 0; + box-shadow: none; + -webkit-box-shadow: none +} +#ownWidget-output img.imgshow { + margin: 5px; + background: #fff; + padding: 5px; + box-shadow: -1px -1px 5px rgba(0,0,0,0.8); + -webkit-box-shadow: -1px -1px 5px rgba(0,0,0,0.8) +} +#ownWidget-output { + background: transparent; + display: block; + width: 98%; + float: left; + height: 0; + position: relative; + margin-top: 10px; + padding: 5px; + z-index: 202 +} +#ownWidget-output form { + background: rgba(0,0,0,0.6); + width: 80%; + margin-left: 10%; + border: 1px solid #424242; + border-radius: 10px; + -webkit-border-radius: 10px; + padding: 10px +} +.ownWidget-scrollMe { + margin: 0; + padding: 0; + margin-left: 20px; + float: none; + width: 670px; + height: 420px +} +.ownWidget-row { + float: none; + margin: 0; + padding: 3px; + margin-bottom: 5px; + width: auto +} +#ownWidget-slider { + width: 690px +} +#ownWidget-slider > div, #ownWidget-slider > li { + width: auto +} +.mb-wrapper { + margin: 0; + position: relative; + left: 0; + background: transparent; + top: 0; + z-index: 220; + display: block; + height: auto +} +.mb-slider, .mb-scroll { + width: auto; + display: block; + overflow: hidden; + margin: 0 auto; + padding: 0; + position: relative; + left: 0; + top: 0; + font-size: 18px +} +.mb-active-slider { + border-color: #ccc +} +.mb-slider .mb-panel { + margin: 0; + display: block; + cursor: pointer; + float: left; + list-style: none +} +.mb-slider .mb-panel.current { + cursor: auto +} +.mb-inside { + background: transparent; + height: auto; + width: auto; + display: block; + float: left +} +a.mb-scrollButtons { + display: block; + position: absolute; + top: 50%; + margin-top: -20px; + width: 28px; + height: 40px; + line-height: 40px; + cursor: pointer; + color: #fff; + background:#707070; + background: rgba(0,0,0,0.8); + box-shadow: -1px -1px 5px rgba(0,0,0,0.8); + -webkit-box-shadow: -1px -1px 5px rgba(0,0,0,0.8); + border: rgba(0,0,0,0.9); + border-radius: 5px; + -webkit-border-radius: 5px; + font-size: 20px; + text-align: center; + text-decoration: none +} +a.mb-scrollButtons.mb-left { + background-position: left top; + left: -28px +} +a.mb-scrollButtons.mb-right { + background-position: right top; + right: -28px +} +a.mb-scrollButtons.mb-left:hover { + background-position: left bottom +} +a.mb-scrollButtons.mb-right:hover { + background-position: right bottom +} +a.mb-scrollButtons.disabled { + display: none +} +.mb-controls { + margin: 0; + margin-top: 6px; + text-align: center; + background: transparent; + position: relative; + z-index: 100 +} +.mb-controls a { + color: #666; + font: 20px/2.2 Georgia, Serif; + display: inline-block; + text-decoration: none; + padding: 2px; + margin: 0 5px 0 0; + text-align: center; + outline: 0 +} +.mb-controls a:hover { + color: black +} +.mb-controls a.current { + color: #bbb +} +.mb-active-slider .mb-controls { + background: transparent +} +#ownWidget-output li a { + text-decoration: none; + color: #7da9ce +} +#ownWidget-closeButton { + position: absolute; + z-index: 201; + top: -10px; + right: -10px; + width: 24px; + height: 24px; + line-height: 24px; + border: 2px solid #fff; + background: #000; + color: #fff; + font-family: arial; + font-weight: bold; + font-size: 14px; + text-align: center; + box-shadow: 0 1px 8px rgba(0,0,0,0.6); + -webkit-box-shadow: 0 1px 8px rgba(0,0,0,0.6); + border-radius: 13px; + -webkit-border-radius: 13px +} + + +#ownWidget-overlayWid { + top: 0; + left: 0; + + position: absolute; + background: #000; + z-index: 199 +} +div#ownWidget-displayButton { + text-decoration: none; + position: absolute; + padding: 2px 8px; + line-height: 14pt; + font-size: 11pt; + cursor: pointer; + width: 100px; + text-align: center; + min-width: 100px; + border: 1px solid #bbb; + -moz-border-radius: 11px; + -khtml-border-radius: 11px; + -webkit-border-radius: 11px; + border-radius: 11px; + -moz-box-sizing: content-box; + -webkit-box-sizing: content-box; + -khtml-box-sizing: content-box; + box-sizing: content-box; + background: #dad2d2; + background: -webkit-gradient(linear,0% 0,0% 100%,from(#fff),to(#ccc)); + background: -moz-linear-gradient(top,#fff,#ccc); + background: -o-linear-gradient(#fff,#ccc); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#cccccc'); + zoom: 1; + color: #464646; + text-shadow: rgba(255,255,255,1) 0 1px 0 +} +.ownWidget-pageScroller { + background: red; + width: 750px; + height: 400px; + float: left +} +li.ownWidget-row { + width: 100%; + margin: 0; + padding: 0; + display: block; + line-height: 20px +} +li.ownWidget-row span { + float: left; + padding-left: 5px; + display: block +} +.mCSB_container { + width: auto; + margin-right: 30px; + overflow: hidden +} +.mCSB_container.mCS_no_scrollbar { + margin-right: 0 +} +.mCustomScrollBox .mCSB_scrollTools { + width: 16px; + height: 100%; + top: 0; + right: 0 +} +.mCSB_scrollTools .mCSB_draggerContainer { + height: 100%; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box +} +.mCSB_scrollTools .mCSB_buttonUp+ .mCSB_draggerContainer { + padding-bottom: 40px +} +.mCSB_scrollTools .mCSB_draggerRail { + width: 2px; + height: 100%; + margin: 0 auto; + -webkit-border-radius: 10px; + -moz-border-radius: 10px; + border-radius: 10px +} +.mCSB_scrollTools .mCSB_dragger { + cursor: pointer; + width: 100%; + height: 30px +} +.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + width: 4px; + height: 100%; + margin: 0 auto; + -webkit-border-radius: 10px; + -moz-border-radius: 10px; + border-radius: 10px; + text-align: center +} +.mCSB_scrollTools .mCSB_buttonUp, .mCSB_scrollTools .mCSB_buttonDown { + height: 20px; + overflow: hidden; + margin: 0 auto; + cursor: pointer +} +.mCSB_scrollTools .mCSB_buttonDown { + bottom: 0; + margin-top: -40px +} +.mCSB_horizontal .mCSB_container { + height: auto; + margin-right: 0; + margin-bottom: 30px; + overflow: hidden +} +.mCSB_horizontal .mCSB_container.mCS_no_scrollbar { + margin-bottom: 0 +} +.mCSB_horizontal.mCustomScrollBox .mCSB_scrollTools { + width: 100%; + height: 16px; + top: auto; + right: auto; + bottom: 0; + left: 0; + overflow: hidden +} +.mCSB_horizontal .mCSB_scrollTools .mCSB_draggerContainer { + height: 100%; + width: auto; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + overflow: hidden +} +.mCSB_horizontal .mCSB_scrollTools .mCSB_buttonLeft+ .mCSB_draggerContainer { + padding-bottom: 0; + padding-right: 20px +} +.mCSB_horizontal .mCSB_scrollTools .mCSB_draggerRail { + width: 100%; + height: 2px; + margin: 7px 0; + -webkit-border-radius: 10px; + -moz-border-radius: 10px; + border-radius: 10px +} +.mCSB_horizontal .mCSB_scrollTools .mCSB_dragger { + width: 30px; + height: 100% +} +.mCSB_horizontal .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + width: 100%; + height: 4px; + margin: 6px auto; + -webkit-border-radius: 10px; + -moz-border-radius: 10px; + border-radius: 10px +} +.mCSB_horizontal .mCSB_scrollTools .mCSB_buttonLeft, .mCSB_horizontal .mCSB_scrollTools .mCSB_buttonRight { + width: 20px; + height: 100%; + overflow: hidden; + margin: 0 auto; + cursor: pointer; + float: left +} +.mCSB_horizontal .mCSB_scrollTools .mCSB_buttonRight { + right: 0; + bottom: auto; + margin-left: -40px; + margin-top: -16px; + float: right +} +.mCustomScrollBox .mCSB_scrollTools { + opacity: .75 +} +.mCustomScrollBox:hover .mCSB_scrollTools { + opacity: 1 +} +.mCSB_scrollTools .mCSB_draggerRail { + background: #000; + background: rgba(0,0,0,0.6); + filter: "alpha(opacity=60)"; + -ms-filter: "alpha(opacity=60)" +} +.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + background: #5e667f; + background: rgba(94,102,127,0.75); + filter: "alpha(opacity=75)"; + -ms-filter: "alpha(opacity=75)" +} +.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar { + background: rgba(94,102,127,0.85); + filter: "alpha(opacity=85)"; + -ms-filter: "alpha(opacity=85)" +} +.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background: rgba(94,102,127,0.9); + filter: "alpha(opacity=90)"; + -ms-filter: "alpha(opacity=90)" +} +.mCSB_scrollTools .mCSB_buttonUp, .mCSB_scrollTools .mCSB_buttonDown, .mCSB_scrollTools .mCSB_buttonLeft, .mCSB_scrollTools .mCSB_buttonRight { + background-image: url(../img/mCSB_buttons.png); + background-repeat: no-repeat; + opacity: .4; + filter: "alpha(opacity=40)"; + -ms-filter: "alpha(opacity=40)" +} +.mCSB_scrollTools .mCSB_buttonUp { + background-position: 0 0 +} +.mCSB_scrollTools .mCSB_buttonDown { + background-position: 0 -20px +} +.mCSB_scrollTools .mCSB_buttonLeft { + background-position: 0 -40px +} +.mCSB_scrollTools .mCSB_buttonRight { + background-position: 0 -56px +} +.mCSB_scrollTools .mCSB_buttonUp:hover, .mCSB_scrollTools .mCSB_buttonDown:hover, .mCSB_scrollTools .mCSB_buttonLeft:hover, .mCSB_scrollTools .mCSB_buttonRight:hover { + opacity: .75; + filter: "alpha(opacity=75)"; + -ms-filter: "alpha(opacity=75)" +} +.mCSB_scrollTools .mCSB_buttonUp:active, .mCSB_scrollTools .mCSB_buttonDown:active, .mCSB_scrollTools .mCSB_buttonLeft:active, .mCSB_scrollTools .mCSB_buttonRight:active { + opacity: .9; + filter: "alpha(opacity=90)"; + -ms-filter: "alpha(opacity=90)" +} +#fancybox-loading { + position: fixed; + top: 50%; + left: 50%; + width: 40px; + height: 40px; + margin-top: -20px; + margin-left: -20px; + cursor: pointer; + overflow: hidden; + z-index: 1104; + display: none +} +#fancybox-loading div { + position: absolute; + top: 0; + left: 0; + width: 40px; + height: 480px; + background-image: url('../img/fancy/fancybox.png') +} +#fancybox-overlay { + position: fixed; + top: 0; + left: 0; + width: 100%; + z-index: 1100; + display: none +} +#fancybox-tmp { + padding: 0; + margin: 0; + border: 0; + overflow: auto; + display: none +} +#fancybox-wrap { + position: absolute; + top: 0; + left: 0; + padding: 20px; + z-index: 1101; + outline: 0; + display: none +} +#fancybox-outer { + position: relative; + width: 100%; + height: 100%; + background: #fff +} +#fancybox-content { + width: 0; + height: 0; + padding: 0; + outline: 0; + position: relative; + overflow: hidden; + z-index: 1102; + border: 0 solid #fff +} +#fancybox-hide-sel-frame { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: transparent; + z-index: 1101 +} +#fancybox-close { + position: absolute; + top: -15px; + right: -15px; + width: 30px; + height: 30px; + background: transparent url('../img/fancy/fancybox.png') -40px 0; + cursor: pointer; + z-index: 1103; + display: none +} +#fancybox-error { + color: #444; + font: normal 12px/20px Arial; + padding: 14px; + margin: 0 +} +#fancybox-img { + width: 100%; + height: 100%; + padding: 0; + margin: 0; + border: 0; + outline: 0; + line-height: 0; + vertical-align: top +} +#fancybox-frame { + width: 100%; + height: 100%; + border: 0; + display: block +} +#fancybox-left, #fancybox-right { + position: absolute; + bottom: 0; + height: 100%; + width: 35%; + cursor: pointer; + outline: 0; + background: transparent url('../img/fancy/blank.gif'); + z-index: 1102; + display: none +} +#fancybox-left { + left: 0 +} +#fancybox-right { + right: 0 +} +#fancybox-left-ico, #fancybox-right-ico { + position: absolute; + top: 50%; + left: -9999px; + width: 30px; + height: 30px; + margin-top: -15px; + cursor: pointer; + z-index: 1102; + display: block +} +#fancybox-left-ico { + background-image: url('../img/fancy/fancybox.png'); + background-position: -40px -30px +} +#fancybox-right-ico { + background-image: url('../img/fancy/fancybox.png'); + background-position: -40px -60px +} +#fancybox-left:hover, #fancybox-right:hover { + visibility: visible +} +#fancybox-left:hover span { + left: 20px +} +#fancybox-right:hover span { + left: auto; + right: 20px +} +.fancybox-bg { + position: absolute; + padding: 0; + margin: 0; + border: 0; + width: 20px; + height: 20px; + z-index: 1001 +} +#fancybox-bg-n { + top: -20px; + left: 0; + width: 100%; + background-image: url('../img/fancy/fancybox-x.png') +} +#fancybox-bg-ne { + top: -20px; + right: -20px; + background-image: url('../img/fancy/fancybox.png'); + background-position: -40px -162px +} +#fancybox-bg-e { + top: 0; + right: -20px; + height: 100%; + background-image: url('../img/fancy/fancybox-y.png'); + background-position: -20px 0 +} +#fancybox-bg-se { + bottom: -20px; + right: -20px; + background-image: url('../img/fancy/fancybox.png'); + background-position: -40px -182px +} +#fancybox-bg-s { + bottom: -20px; + left: 0; + width: 100%; + background-image: url('../img/fancy/fancybox-x.png'); + background-position: 0 -20px +} +#fancybox-bg-sw { + bottom: -20px; + left: -20px; + background-image: url('../img/fancy/fancybox.png'); + background-position: -40px -142px +} +#fancybox-bg-w { + top: 0; + left: -20px; + height: 100%; + background-image: url('../img/fancy/fancybox-y.png') +} +#fancybox-bg-nw { + top: -20px; + left: -20px; + background-image: url('../img/fancy/fancybox.png'); + background-position: -40px -122px +} +#fancybox-title { + font-family: Helvetica; + font-size: 12px; + z-index: 1102 +} +.fancybox-title-inside { + padding-bottom: 10px; + text-align: center; + color: #333; + background: #fff; + position: relative +} +.fancybox-title-outside { + padding-top: 10px; + color: #fff +} +.fancybox-title-over { + position: absolute; + bottom: 0; + left: 0; + color: #FFF; + text-align: left +} +#fancybox-title-over { + padding: 10px; + background-image: url('../img/fancy/fancy_title_over.png'); + display: block +} +.fancybox-title-float { + position: absolute; + left: 0; + bottom: -20px; + height: 32px +} +#fancybox-title-float-wrap { + border: 0; + border-collapse: collapse; + width: auto +} +#fancybox-title-float-wrap td { + border: 0; + white-space: nowrap +} +#fancybox-title-float-left { + padding: 0 0 0 15px; + background: url('../img/fancy/fancybox.png') -40px -90px no-repeat +} +#fancybox-title-float-main { + color: #FFF; + line-height: 29px; + font-weight: bold; + padding: 0 0 3px 0; + background: url('../img/fancy/fancybox-x.png') 0 -40px +} +#fancybox-title-float-right { + padding: 0 0 0 15px; + background: url('../img/fancy/fancybox.png') -55px -90px no-repeat +} +.fancybox-ie6 #fancybox-close { + background: transparent; + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_close.png',sizingMethod='scale') +} +.fancybox-ie6 #fancybox-left-ico { + background: transparent; + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_nav_left.png',sizingMethod='scale') +} +.fancybox-ie6 #fancybox-right-ico { + background: transparent; + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_nav_right.png',sizingMethod='scale') +} +.fancybox-ie6 #fancybox-title-over { + background: transparent; + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_title_over.png',sizingMethod='scale'); + zoom: 1 +} +.fancybox-ie6 #fancybox-title-float-left { + background: transparent; + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_title_left.png',sizingMethod='scale') +} +.fancybox-ie6 #fancybox-title-float-main { + background: transparent; + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_title_main.png',sizingMethod='scale') +} +.fancybox-ie6 #fancybox-title-float-right { + background: transparent; + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_title_right.png',sizingMethod='scale') +} +.fancybox-ie6 #fancybox-bg-w, .fancybox-ie6 #fancybox-bg-e, .fancybox-ie6 #fancybox-left, .fancybox-ie6 #fancybox-right, #fancybox-hide-sel-frame { + height: expression(this.parentNode.clientHeight+"px") +} +#fancybox-loading.fancybox-ie6 { + position: absolute; + margin-top: 0; + 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') +} +#fancybox-loading.fancybox-ie6 div { + background: transparent; + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_loading.png',sizingMethod='scale') +} +.fancybox-ie .fancybox-bg { + background: transparent !important +} +.fancybox-ie #fancybox-bg-n { + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_n.png',sizingMethod='scale') +} +.fancybox-ie #fancybox-bg-ne { + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_ne.png',sizingMethod='scale') +} +.fancybox-ie #fancybox-bg-e { + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_e.png',sizingMethod='scale') +} +.fancybox-ie #fancybox-bg-se { + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_se.png',sizingMethod='scale') +} +.fancybox-ie #fancybox-bg-s { + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_s.png',sizingMethod='scale') +} +.fancybox-ie #fancybox-bg-sw { + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_sw.png',sizingMethod='scale') +} +.fancybox-ie #fancybox-bg-w { + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_w.png',sizingMethod='scale') +} +.fancybox-ie #fancybox-bg-nw { + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/fancy/fancy_shadow_nw.png',sizingMethod='scale') +} +#slideshow-content { + z-index: 202 +} +* { + margin: 0; + padding: 0 +} +img { + border: 0 +} +#supersized-loader { + position: absolute; + top: 50%; + left: 50%; + z-index: 0; + width: 60px; + height: 60px; + margin: -30px 0 0 -30px; + text-indent: -999em +} +#supersized { + display: block; + position: fixed; + left: 0; + top: 0; + overflow: hidden; + z-index: -999; + height: 100%; + width: 100% +} +#supersized img { + width: auto; + height: auto; + position: relative; + display: none; + outline: 0; + border: 0 +} +#supersized.speed img { + -ms-interpolation-mode: nearest-neighbor; + image-rendering: -moz-crisp-edges +} +#supersized.quality img { + -ms-interpolation-mode: bicubic; + image-rendering: optimizeQuality +} +#supersized li { + display: block; + list-style: none; + z-index: -30; + position: fixed; + overflow: hidden; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: #111 +} +#supersized a { + width: 100%; + height: 100%; + display: block +} +#supersized li.prevslide { + z-index: -20 +} +#supersized li.activeslide { + z-index: -10 +} +#supersized li.image-loading { + background: #111 url(../img/progress.gif) no-repeat center center; + width: 100%; + height: 100% +} +#supersized li.image-loading img { + visibility: hidden +} +#supersized li.prevslide img, #supersized li.activeslide img { + display: inline +} +#slideshow-content #controls-wrapper { + margin: 0 auto; + height: 42px; + width: 100%; + bottom: 0; + left: 0; + z-index: 204; + background: url('../img/nav-bg.png') repeat-x; + position: fixed +} +#slideshow-content #slideshow-controls { + overflow: hidden; + height: 100%; + position: relative; + text-align: left; + z-index: 205 +} +#slideshow-content #slidecounter { + float: left; + color: #999; + font: 14px "Helvetica Neue", Helvetica, Arial, sans-serif; + text-shadow: #000 0 -1px 0; + margin: 0 10px 0 15px; + line-height: 42px +} +#slideshow-content #slidecaption { + overflow: hidden; + float: left; + color: #FFF; + font: 400 14px "Helvetica Neue", Helvetica, Arial, sans-serif; + text-shadow: #000 1px 1px 2px; + margin: 0 20px 0 0; + line-height: 42px +} +#slideshow-content #play-button { + float: left; + margin-top: 1px; + border-right: 1px solid #333; + background: url('../img/bg-hover.png') repeat-x 0 44px +} +#slideshow-content #play-button:hover { + background-position: 0 1px; + cursor: pointer +} +#slideshow-content #prevslide, #nextslide { + position: fixed; + height: 43px; + width: 43px; + top: 50%; + margin-top: -21px; + opacity: .6; + z-index: 204 +} +#slideshow-content #prevslide { + left: 10px; + background: url('../img/back.png') +} +#slideshow-content #nextslide { + right: 10px; + background: url('../img/forward.png') +} +#slideshow-content #prevslide:active, #nextslide:active { + margin-top: -19px +} +#slideshow-content #prevslide:hover, #nextslide:hover { + cursor: pointer +} +#slideshow-content ul#slide-list { + padding: 15px 0; + float: left; + position: absolute; + left: 50% +} +#slideshow-content ul#slide-list li { + list-style: none; + width: 12px; + height: 12px; + float: left; + margin: 0 5px 0 0 +} +#slideshow-content ul#slide-list li.current-slide a, ul#slide-list li.current-slide a:hover { + background-position: 0 0 +} +#slideshow-content ul#slide-list li a { + display: block; + width: 12px; + height: 12px; + background: url('../img/nav-dot.png') no-repeat 0 -24px +} +#slideshow-content ul#slide-list li a:hover { + background-position: 0 -12px; + cursor: pointer +} +#slideshow-content #tray-button { + float: right; + margin-top: 1px; + border-left: 1px solid #333; + background: url('../img/bg-hover.png') repeat-x 0 44px +} +#slideshow-content #tray-button:hover { + background-position: 0 1px; + cursor: pointer +} +#slideshow-content #progress-back { + z-index: 205; + position: fixed; + bottom: 42px; + left: 0; + height: 8px; + width: 100%; + background: url('../img/progress-back.png') repeat-x +} +#slideshow-content #progress-bar { + position: relative; + height: 8px; + width: 100%; + background: url('../img/progress-bar.png') repeat-x +} +#slideshow-content #nextthumb, #slideshow-content #prevthumb { + z-index: 202; + display: none; + position: fixed; + bottom: 61px; + height: 75px; + width: 100px; + overflow: hidden; + background: #ddd; + border: 1px solid #fff; + -webkit-box-shadow: 0 0 5px #000 +} +#slideshow-content #nextthumb { + right: 12px +} +#slideshow-content #prevthumb { + left: 12px +} +#slideshow-content #nextthumb img, #slideshow-content #prevthumb img { + width: 150px; + height: auto +} +#slideshow-content #nextthumb:active, #slideshow-content #prevthumb:active { + bottom: 59px +} +#slideshow-content #nextthumb:hover, #slideshow-content #prevthumb:hover { + cursor: pointer +} +#slideshow-content #closeSlideShow { + position: fixed; + right: 10px; + top: 10px; + background: #000; + width: 30px; + height: 30px; + line-height: 30px; + border-radius: 15px; + color: #fff; + text-align: center +} +#slideshow-content #thumb-tray { + position: fixed; + z-index: 203; + bottom: 0; + left: 0; + background: url('../img/bg-black.png'); + height: 150px; + width: 100%; + overflow: hidden; + text-align: center; + -moz-box-shadow: 0 0 4px #000; + -webkit-box-shadow: 0 0 4px #000; + box-shadow: 0 0 4px #000 +} +#slideshow-content #thumb-back, #slideshow-content #thumb-forward { + position: absolute; + z-index: 5; + bottom: 42px; + height: 108px; + width: 40px +} +#slideshow-content #thumb-back { + left: 0; + background: url('../img/thumb-back.png') no-repeat center center +} +#slideshow-content #thumb-forward { + right: 0; + background: url('../img/thumb-forward.png') no-repeat center center +} +#slideshow-content #thumb-back:hover, #slideshow-content #thumb-forward:hover { + cursor: pointer; + background-color: rgba(256,256,256,0.1) +} +#slideshow-content #thumb-back:hover { + border-right: 1px solid rgba(256,256,256,0.2) +} +#slideshow-content #thumb-forward:hover { + border-left: 1px solid rgba(256,256,256,0.2) +} +#slideshow-content ul#thumb-list { + display: inline-block; + list-style: none; + position: relative; + left: 0; + padding: 0 +} +#slideshow-content ul#thumb-list li { + background: #111; + list-style: none; + display: inline; + width: 150px; + height: 108px; + overflow: hidden; + float: left; + margin: 0 +} +#slideshow-content ul#thumb-list li img { + width: 135px; + padding: 5px; + background-color: #fff; + margin-left: 5px; + height: auto; + opacity: .5; + -ms-filter: "alpha(opacity=60)"; + filter: alpha(opacity=60); + -webkit-transition: all 100ms ease-in-out; + -moz-transition: all 100ms ease-in-out; + -o-transition: all 100ms ease-in-out; + -ms-transition: all 100ms ease-in-out; + transition: all 100ms ease-in-out +} +#slideshow-content ul#thumb-list li.current-thumb img, #slideshow-content ul#thumb-list li:hover img { + opacity: 1; + -ms-filter: "alpha(opacity=100)"; + filter: alpha(opacity=100) +} +#slideshow-content ul#thumb-list li:hover { + cursor: pointer +} +div.rotate { + background: rgba(0,0,0,0.6); + box-shadow: -1px -1px 5px rgba(0,0,0,0.8); + -webkit-box-shadow: -1px -1px 5px rgba(0,0,0,0.8); + border: 1px solid rgba(0,0,0,0.9); + z-index: 12; + display: block; + color: #e5e5e5; + padding: 10px 10px 20px 10px +} +div.rotate span { + clear: both; + position: absolute; + bottom: 5px +} +div.rotate img { + border: 1px solid #323232 +} diff --git a/oc454/apps/files_sharing_widget/img/ajax-loader.gif b/oc454/apps/files_sharing_widget/img/ajax-loader.gif new file mode 100644 index 0000000..cc70a7a Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/ajax-loader.gif differ diff --git a/oc454/apps/files_sharing_widget/img/back.png b/oc454/apps/files_sharing_widget/img/back.png new file mode 100644 index 0000000..44cd0ae Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/back.png differ diff --git a/oc454/apps/files_sharing_widget/img/bg-black.png b/oc454/apps/files_sharing_widget/img/bg-black.png new file mode 100644 index 0000000..8c2f001 Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/bg-black.png differ diff --git a/oc454/apps/files_sharing_widget/img/bg-hover.png b/oc454/apps/files_sharing_widget/img/bg-hover.png new file mode 100644 index 0000000..1ca2022 Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/bg-hover.png differ diff --git a/oc454/apps/files_sharing_widget/img/button-tray-down.png b/oc454/apps/files_sharing_widget/img/button-tray-down.png new file mode 100644 index 0000000..99b92ae Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/button-tray-down.png differ diff --git a/oc454/apps/files_sharing_widget/img/button-tray-up.png b/oc454/apps/files_sharing_widget/img/button-tray-up.png new file mode 100644 index 0000000..7cc5778 Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/button-tray-up.png differ diff --git a/oc454/apps/files_sharing_widget/img/fancy/blank.gif b/oc454/apps/files_sharing_widget/img/fancy/blank.gif new file mode 100644 index 0000000..35d42e8 Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/fancy/blank.gif differ diff --git a/oc454/apps/files_sharing_widget/img/fancy/fancy_close.png b/oc454/apps/files_sharing_widget/img/fancy/fancy_close.png new file mode 100644 index 0000000..0703530 Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/fancy/fancy_close.png differ diff --git a/oc454/apps/files_sharing_widget/img/fancy/fancy_loading.png b/oc454/apps/files_sharing_widget/img/fancy/fancy_loading.png new file mode 100644 index 0000000..2503017 Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/fancy/fancy_loading.png differ diff --git a/oc454/apps/files_sharing_widget/img/fancy/fancy_nav_left.png b/oc454/apps/files_sharing_widget/img/fancy/fancy_nav_left.png new file mode 100644 index 0000000..ebaa6a4 Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/fancy/fancy_nav_left.png differ diff --git a/oc454/apps/files_sharing_widget/img/fancy/fancy_nav_right.png b/oc454/apps/files_sharing_widget/img/fancy/fancy_nav_right.png new file mode 100644 index 0000000..873294e Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/fancy/fancy_nav_right.png differ diff --git a/oc454/apps/files_sharing_widget/img/fancy/fancy_shadow_e.png b/oc454/apps/files_sharing_widget/img/fancy/fancy_shadow_e.png new file mode 100644 index 0000000..2eda089 Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/fancy/fancy_shadow_e.png differ diff --git a/oc454/apps/files_sharing_widget/img/fancy/fancy_shadow_n.png b/oc454/apps/files_sharing_widget/img/fancy/fancy_shadow_n.png new file mode 100644 index 0000000..69aa10e Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/fancy/fancy_shadow_n.png differ diff --git a/oc454/apps/files_sharing_widget/img/fancy/fancy_shadow_ne.png b/oc454/apps/files_sharing_widget/img/fancy/fancy_shadow_ne.png new file mode 100644 index 0000000..79f6980 Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/fancy/fancy_shadow_ne.png differ diff --git a/oc454/apps/files_sharing_widget/img/fancy/fancy_shadow_nw.png b/oc454/apps/files_sharing_widget/img/fancy/fancy_shadow_nw.png new file mode 100644 index 0000000..7182cd9 Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/fancy/fancy_shadow_nw.png differ diff --git a/oc454/apps/files_sharing_widget/img/fancy/fancy_shadow_s.png b/oc454/apps/files_sharing_widget/img/fancy/fancy_shadow_s.png new file mode 100644 index 0000000..d8858bf Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/fancy/fancy_shadow_s.png differ diff --git a/oc454/apps/files_sharing_widget/img/fancy/fancy_shadow_se.png b/oc454/apps/files_sharing_widget/img/fancy/fancy_shadow_se.png new file mode 100644 index 0000000..541e3ff Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/fancy/fancy_shadow_se.png differ diff --git a/oc454/apps/files_sharing_widget/img/fancy/fancy_shadow_sw.png b/oc454/apps/files_sharing_widget/img/fancy/fancy_shadow_sw.png new file mode 100644 index 0000000..b451689 Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/fancy/fancy_shadow_sw.png differ diff --git a/oc454/apps/files_sharing_widget/img/fancy/fancy_shadow_w.png b/oc454/apps/files_sharing_widget/img/fancy/fancy_shadow_w.png new file mode 100644 index 0000000..8a4e4a8 Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/fancy/fancy_shadow_w.png differ diff --git a/oc454/apps/files_sharing_widget/img/fancy/fancy_title_left.png b/oc454/apps/files_sharing_widget/img/fancy/fancy_title_left.png new file mode 100644 index 0000000..6049223 Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/fancy/fancy_title_left.png differ diff --git a/oc454/apps/files_sharing_widget/img/fancy/fancy_title_main.png b/oc454/apps/files_sharing_widget/img/fancy/fancy_title_main.png new file mode 100644 index 0000000..8044271 Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/fancy/fancy_title_main.png differ diff --git a/oc454/apps/files_sharing_widget/img/fancy/fancy_title_over.png b/oc454/apps/files_sharing_widget/img/fancy/fancy_title_over.png new file mode 100644 index 0000000..d9f458f Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/fancy/fancy_title_over.png differ diff --git a/oc454/apps/files_sharing_widget/img/fancy/fancy_title_right.png b/oc454/apps/files_sharing_widget/img/fancy/fancy_title_right.png new file mode 100644 index 0000000..e36d9db Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/fancy/fancy_title_right.png differ diff --git a/oc454/apps/files_sharing_widget/img/fancy/fancybox-x.png b/oc454/apps/files_sharing_widget/img/fancy/fancybox-x.png new file mode 100644 index 0000000..c2130f8 Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/fancy/fancybox-x.png differ diff --git a/oc454/apps/files_sharing_widget/img/fancy/fancybox-y.png b/oc454/apps/files_sharing_widget/img/fancy/fancybox-y.png new file mode 100644 index 0000000..62f3176 Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/fancy/fancybox-y.png differ diff --git a/oc454/apps/files_sharing_widget/img/fancy/fancybox.png b/oc454/apps/files_sharing_widget/img/fancy/fancybox.png new file mode 100644 index 0000000..65e14f6 Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/fancy/fancybox.png differ diff --git a/oc454/apps/files_sharing_widget/img/forward.png b/oc454/apps/files_sharing_widget/img/forward.png new file mode 100644 index 0000000..e2084ab Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/forward.png differ diff --git a/oc454/apps/files_sharing_widget/img/homescreen.png b/oc454/apps/files_sharing_widget/img/homescreen.png new file mode 100644 index 0000000..243c58e Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/homescreen.png differ diff --git a/oc454/apps/files_sharing_widget/img/loading-dark.gif b/oc454/apps/files_sharing_widget/img/loading-dark.gif new file mode 100644 index 0000000..5fe86ac Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/loading-dark.gif differ diff --git a/oc454/apps/files_sharing_widget/img/loading.gif b/oc454/apps/files_sharing_widget/img/loading.gif new file mode 100644 index 0000000..5b33f7e Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/loading.gif differ diff --git a/oc454/apps/files_sharing_widget/img/nav-bg.png b/oc454/apps/files_sharing_widget/img/nav-bg.png new file mode 100644 index 0000000..800f904 Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/nav-bg.png differ diff --git a/oc454/apps/files_sharing_widget/img/nav-dot.png b/oc454/apps/files_sharing_widget/img/nav-dot.png new file mode 100644 index 0000000..a28a507 Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/nav-dot.png differ diff --git a/oc454/apps/files_sharing_widget/img/pause.png b/oc454/apps/files_sharing_widget/img/pause.png new file mode 100644 index 0000000..a2c21a5 Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/pause.png differ diff --git a/oc454/apps/files_sharing_widget/img/play.png b/oc454/apps/files_sharing_widget/img/play.png new file mode 100644 index 0000000..16e53f8 Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/play.png differ diff --git a/oc454/apps/files_sharing_widget/img/progress-back.png b/oc454/apps/files_sharing_widget/img/progress-back.png new file mode 100644 index 0000000..68cd45b Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/progress-back.png differ diff --git a/oc454/apps/files_sharing_widget/img/progress-bar.png b/oc454/apps/files_sharing_widget/img/progress-bar.png new file mode 100644 index 0000000..49ebb05 Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/progress-bar.png differ diff --git a/oc454/apps/files_sharing_widget/img/progress.gif b/oc454/apps/files_sharing_widget/img/progress.gif new file mode 100644 index 0000000..f3e45e0 Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/progress.gif differ diff --git a/oc454/apps/files_sharing_widget/img/purty_wood.jpg b/oc454/apps/files_sharing_widget/img/purty_wood.jpg new file mode 100644 index 0000000..3e1eb1a Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/purty_wood.jpg differ diff --git a/oc454/apps/files_sharing_widget/img/purty_wood.png b/oc454/apps/files_sharing_widget/img/purty_wood.png new file mode 100644 index 0000000..37fcd07 Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/purty_wood.png differ diff --git a/oc454/apps/files_sharing_widget/img/startup.png b/oc454/apps/files_sharing_widget/img/startup.png new file mode 100644 index 0000000..832d0aa Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/startup.png differ diff --git a/oc454/apps/files_sharing_widget/img/supersized-logo.png b/oc454/apps/files_sharing_widget/img/supersized-logo.png new file mode 100644 index 0000000..b1243a2 Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/supersized-logo.png differ diff --git a/oc454/apps/files_sharing_widget/img/thumb-back.png b/oc454/apps/files_sharing_widget/img/thumb-back.png new file mode 100644 index 0000000..3c969eb Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/thumb-back.png differ diff --git a/oc454/apps/files_sharing_widget/img/thumb-forward.png b/oc454/apps/files_sharing_widget/img/thumb-forward.png new file mode 100644 index 0000000..afe451c Binary files /dev/null and b/oc454/apps/files_sharing_widget/img/thumb-forward.png differ diff --git a/oc454/apps/files_sharing_widget/js/admin.js b/oc454/apps/files_sharing_widget/js/admin.js new file mode 100644 index 0000000..35d9ddd --- /dev/null +++ b/oc454/apps/files_sharing_widget/js/admin.js @@ -0,0 +1,79 @@ +/** + * ownCloud - Picture Widget + * + * @author Sebastian Doell + * @copyright 2012 Sebastian Doell + * + * + */ + +$(document).ready(function(){ + + +if($('#ShareEntreeForm').length >0){ + +$("#savebutton").click( function(){ + if ($('#mySecretW').val() != '') { + // Serialize the data + //var post = $( "#ShareEntreeForm" ).serialize(); + var post ={mySecretWord:$("#mySecretW").val()}; + OC.msg.startSaving('#ShareEntreeForm .msg'); + $.post( OC.filePath('files_sharing_widget', 'ajax', 'sharesecret.php'), post, function(data){ + if( data.status == "success" ){ + OC.msg.finishedSaving('#ShareEntreeForm .msg', data); + + } + + }); + return false; + } else { + + return false; + } + + }); + $("#saveemailbutton").click( function(){ + if ($('#mySiteEmail').val() != '') { + // Serialize the data + var post ={siteemail:$("#mySiteEmail").val()}; + + OC.msg.startSaving('#ShareEntreeForm .msg'); + $.post( OC.filePath('files_sharing_widget', 'ajax', 'sharesecret.php'), post, function(data){ + if( data.status == "success" ){ + OC.msg.finishedSaving('#ShareEntreeForm .msg', data); + + } + + }); + return false; + } else { + + return false; + } + + }); +} + +}); + +OC.msg={ + startSaving:function(selector){ + $(selector) + .html( t('settings', 'Saving...') ) + .removeClass('success') + .removeClass('error') + .stop(true, true) + .show(); + }, + finishedSaving:function(selector, data){ + if( data.status == "success" ){ + $(selector).html( data.data.message ) + .addClass('success') + .stop(true, true) + .delay(3000) + .fadeOut(600); + }else{ + $(selector).html( data.data.message ).addClass('error'); + } + } +}; diff --git a/oc454/apps/files_sharing_widget/js/jquery-pack.min.js b/oc454/apps/files_sharing_widget/js/jquery-pack.min.js new file mode 100644 index 0000000..e5a0e16 --- /dev/null +++ b/oc454/apps/files_sharing_widget/js/jquery-pack.min.js @@ -0,0 +1,16 @@ +/*! jQuery v1.8.2 jquery.com | jquery.org/license */ +(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:+d+""===d?+d:H.test(d)?p.parseJSON(d):d}catch(f){}p.data(a,c,d)}else d=b}return d}function K(a){var b;for(b in a){if(b==="data"&&p.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function ba(){return!1}function bb(){return!0}function bh(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function bi(a,b){do a=a[b];while(a&&a.nodeType!==1);return a}function bj(a,b,c){b=b||0;if(p.isFunction(b))return p.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return p.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=p.grep(a,function(a){return a.nodeType===1});if(be.test(b))return p.filter(b,d,!c);b=p.filter(b,d)}return p.grep(a,function(a,d){return p.inArray(a,b)>=0===c})}function bk(a){var b=bl.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function bC(a,b){return a.getElementsByTagName(b)[0]||a.appendChild(a.ownerDocument.createElement(b))}function bD(a,b){if(b.nodeType!==1||!p.hasData(a))return;var c,d,e,f=p._data(a),g=p._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;d").appendTo(e.body),c=b.css("display");b.remove();if(c==="none"||c===""){bI=e.body.appendChild(bI||p.extend(e.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!bJ||!bI.createElement)bJ=(bI.contentWindow||bI.contentDocument).document,bJ.write(""),bJ.close();b=bJ.body.appendChild(bJ.createElement(a)),c=bH(b,"display"),e.body.removeChild(bI)}return bS[a]=c,c}function ci(a,b,c,d){var e;if(p.isArray(b))p.each(b,function(b,e){c||ce.test(a)?d(a,e):ci(a+"["+(typeof e=="object"?b:"")+"]",e,c,d)});else if(!c&&p.type(b)==="object")for(e in b)ci(a+"["+e+"]",b[e],c,d);else d(a,b)}function cz(a){return function(b,c){typeof b!="string"&&(c=b,b="*");var d,e,f,g=b.toLowerCase().split(s),h=0,i=g.length;if(p.isFunction(c))for(;h)[^>]*$|#([\w\-]*)$)/,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^[\],:{}\s]*$/,x=/(?:^|:|,)(?:\s*\[)+/g,y=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,z=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,A=/^-ms-/,B=/-([\da-z])/gi,C=function(a,b){return(b+"").toUpperCase()},D=function(){e.addEventListener?(e.removeEventListener("DOMContentLoaded",D,!1),p.ready()):e.readyState==="complete"&&(e.detachEvent("onreadystatechange",D),p.ready())},E={};p.fn=p.prototype={constructor:p,init:function(a,c,d){var f,g,h,i;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(typeof a=="string"){a.charAt(0)==="<"&&a.charAt(a.length-1)===">"&&a.length>=3?f=[null,a,null]:f=u.exec(a);if(f&&(f[1]||!c)){if(f[1])return c=c instanceof p?c[0]:c,i=c&&c.nodeType?c.ownerDocument||c:e,a=p.parseHTML(f[1],i,!0),v.test(f[1])&&p.isPlainObject(c)&&this.attr.call(a,c,!0),p.merge(this,a);g=e.getElementById(f[2]);if(g&&g.parentNode){if(g.id!==f[2])return d.find(a);this.length=1,this[0]=g}return this.context=e,this.selector=a,this}return!c||c.jquery?(c||d).find(a):this.constructor(c).find(a)}return p.isFunction(a)?d.ready(a):(a.selector!==b&&(this.selector=a.selector,this.context=a.context),p.makeArray(a,this))},selector:"",jquery:"1.8.2",length:0,size:function(){return this.length},toArray:function(){return k.call(this)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=p.merge(this.constructor(),a);return d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")"),d},each:function(a,b){return p.each(this,a,b)},ready:function(a){return p.ready.promise().done(a),this},eq:function(a){return a=+a,a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(k.apply(this,arguments),"slice",k.call(arguments).join(","))},map:function(a){return this.pushStack(p.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:j,sort:[].sort,splice:[].splice},p.fn.init.prototype=p.fn,p.extend=p.fn.extend=function(){var a,c,d,e,f,g,h=arguments[0]||{},i=1,j=arguments.length,k=!1;typeof h=="boolean"&&(k=h,h=arguments[1]||{},i=2),typeof h!="object"&&!p.isFunction(h)&&(h={}),j===i&&(h=this,--i);for(;i0)return;d.resolveWith(e,[p]),p.fn.trigger&&p(e).trigger("ready").off("ready")},isFunction:function(a){return p.type(a)==="function"},isArray:Array.isArray||function(a){return p.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):E[m.call(a)]||"object"},isPlainObject:function(a){if(!a||p.type(a)!=="object"||a.nodeType||p.isWindow(a))return!1;try{if(a.constructor&&!n.call(a,"constructor")&&!n.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||n.call(a,d)},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},error:function(a){throw new Error(a)},parseHTML:function(a,b,c){var d;return!a||typeof a!="string"?null:(typeof b=="boolean"&&(c=b,b=0),b=b||e,(d=v.exec(a))?[b.createElement(d[1])]:(d=p.buildFragment([a],b,c?null:[]),p.merge([],(d.cacheable?p.clone(d.fragment):d.fragment).childNodes)))},parseJSON:function(b){if(!b||typeof b!="string")return null;b=p.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(w.test(b.replace(y,"@").replace(z,"]").replace(x,"")))return(new Function("return "+b))();p.error("Invalid JSON: "+b)},parseXML:function(c){var d,e;if(!c||typeof c!="string")return null;try{a.DOMParser?(e=new DOMParser,d=e.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(f){d=b}return(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&p.error("Invalid XML: "+c),d},noop:function(){},globalEval:function(b){b&&r.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(A,"ms-").replace(B,C)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,c,d){var e,f=0,g=a.length,h=g===b||p.isFunction(a);if(d){if(h){for(e in a)if(c.apply(a[e],d)===!1)break}else for(;f0&&a[0]&&a[i-1]||i===0||p.isArray(a));if(j)for(;h-1)i.splice(c,1),e&&(c<=g&&g--,c<=h&&h--)}),this},has:function(a){return p.inArray(a,i)>-1},empty:function(){return i=[],this},disable:function(){return i=j=c=b,this},disabled:function(){return!i},lock:function(){return j=b,c||l.disable(),this},locked:function(){return!j},fireWith:function(a,b){return b=b||[],b=[a,b.slice?b.slice():b],i&&(!d||j)&&(e?j.push(b):k(b)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!d}};return l},p.extend({Deferred:function(a){var b=[["resolve","done",p.Callbacks("once memory"),"resolved"],["reject","fail",p.Callbacks("once memory"),"rejected"],["notify","progress",p.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return p.Deferred(function(c){p.each(b,function(b,d){var f=d[0],g=a[b];e[d[1]](p.isFunction(g)?function(){var a=g.apply(this,arguments);a&&p.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f+"With"](this===e?c:this,[a])}:c[f])}),a=null}).promise()},promise:function(a){return a!=null?p.extend(a,d):d}},e={};return d.pipe=d.then,p.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[a^1][2].disable,b[2][2].lock),e[f[0]]=g.fire,e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=k.call(arguments),d=c.length,e=d!==1||a&&p.isFunction(a.promise)?d:0,f=e===1?a:p.Deferred(),g=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?k.call(arguments):d,c===h?f.notifyWith(b,c):--e||f.resolveWith(b,c)}},h,i,j;if(d>1){h=new Array(d),i=new Array(d),j=new Array(d);for(;b
a",c=n.getElementsByTagName("*"),d=n.getElementsByTagName("a")[0],d.style.cssText="top:1px;float:left;opacity:.5";if(!c||!c.length)return{};f=e.createElement("select"),g=f.appendChild(e.createElement("option")),h=n.getElementsByTagName("input")[0],b={leadingWhitespace:n.firstChild.nodeType===3,tbody:!n.getElementsByTagName("tbody").length,htmlSerialize:!!n.getElementsByTagName("link").length,style:/top/.test(d.getAttribute("style")),hrefNormalized:d.getAttribute("href")==="/a",opacity:/^0.5/.test(d.style.opacity),cssFloat:!!d.style.cssFloat,checkOn:h.value==="on",optSelected:g.selected,getSetAttribute:n.className!=="t",enctype:!!e.createElement("form").enctype,html5Clone:e.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",boxModel:e.compatMode==="CSS1Compat",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},h.checked=!0,b.noCloneChecked=h.cloneNode(!0).checked,f.disabled=!0,b.optDisabled=!g.disabled;try{delete n.test}catch(o){b.deleteExpando=!1}!n.addEventListener&&n.attachEvent&&n.fireEvent&&(n.attachEvent("onclick",m=function(){b.noCloneEvent=!1}),n.cloneNode(!0).fireEvent("onclick"),n.detachEvent("onclick",m)),h=e.createElement("input"),h.value="t",h.setAttribute("type","radio"),b.radioValue=h.value==="t",h.setAttribute("checked","checked"),h.setAttribute("name","t"),n.appendChild(h),i=e.createDocumentFragment(),i.appendChild(n.lastChild),b.checkClone=i.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=h.checked,i.removeChild(h),i.appendChild(n);if(n.attachEvent)for(k in{submit:!0,change:!0,focusin:!0})j="on"+k,l=j in n,l||(n.setAttribute(j,"return;"),l=typeof n[j]=="function"),b[k+"Bubbles"]=l;return p(function(){var c,d,f,g,h="padding:0;margin:0;border:0;display:block;overflow:hidden;",i=e.getElementsByTagName("body")[0];if(!i)return;c=e.createElement("div"),c.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",i.insertBefore(c,i.firstChild),d=e.createElement("div"),c.appendChild(d),d.innerHTML="
t
",f=d.getElementsByTagName("td"),f[0].style.cssText="padding:0;margin:0;border:0;display:none",l=f[0].offsetHeight===0,f[0].style.display="",f[1].style.display="none",b.reliableHiddenOffsets=l&&f[0].offsetHeight===0,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",b.boxSizing=d.offsetWidth===4,b.doesNotIncludeMarginInBodyOffset=i.offsetTop!==1,a.getComputedStyle&&(b.pixelPosition=(a.getComputedStyle(d,null)||{}).top!=="1%",b.boxSizingReliable=(a.getComputedStyle(d,null)||{width:"4px"}).width==="4px",g=e.createElement("div"),g.style.cssText=d.style.cssText=h,g.style.marginRight=g.style.width="0",d.style.width="1px",d.appendChild(g),b.reliableMarginRight=!parseFloat((a.getComputedStyle(g,null)||{}).marginRight)),typeof d.style.zoom!="undefined"&&(d.innerHTML="",d.style.cssText=h+"width:1px;padding:1px;display:inline;zoom:1",b.inlineBlockNeedsLayout=d.offsetWidth===3,d.style.display="block",d.style.overflow="visible",d.innerHTML="
",d.firstChild.style.width="5px",b.shrinkWrapBlocks=d.offsetWidth!==3,c.style.zoom=1),i.removeChild(c),c=d=f=g=null}),i.removeChild(n),c=d=f=g=h=i=n=null,b}();var H=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,I=/([A-Z])/g;p.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(p.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){return a=a.nodeType?p.cache[a[p.expando]]:a[p.expando],!!a&&!K(a)},data:function(a,c,d,e){if(!p.acceptData(a))return;var f,g,h=p.expando,i=typeof c=="string",j=a.nodeType,k=j?p.cache:a,l=j?a[h]:a[h]&&h;if((!l||!k[l]||!e&&!k[l].data)&&i&&d===b)return;l||(j?a[h]=l=p.deletedIds.pop()||p.guid++:l=h),k[l]||(k[l]={},j||(k[l].toJSON=p.noop));if(typeof c=="object"||typeof c=="function")e?k[l]=p.extend(k[l],c):k[l].data=p.extend(k[l].data,c);return f=k[l],e||(f.data||(f.data={}),f=f.data),d!==b&&(f[p.camelCase(c)]=d),i?(g=f[c],g==null&&(g=f[p.camelCase(c)])):g=f,g},removeData:function(a,b,c){if(!p.acceptData(a))return;var d,e,f,g=a.nodeType,h=g?p.cache:a,i=g?a[p.expando]:p.expando;if(!h[i])return;if(b){d=c?h[i]:h[i].data;if(d){p.isArray(b)||(b in d?b=[b]:(b=p.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,f=b.length;e1,null,!1))},removeData:function(a){return this.each(function(){p.removeData(this,a)})}}),p.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=p._data(a,b),c&&(!d||p.isArray(c)?d=p._data(a,b,p.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=p.queue(a,b),d=c.length,e=c.shift(),f=p._queueHooks(a,b),g=function(){p.dequeue(a,b)};e==="inprogress"&&(e=c.shift(),d--),e&&(b==="fx"&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return p._data(a,c)||p._data(a,c,{empty:p.Callbacks("once memory").add(function(){p.removeData(a,b+"queue",!0),p.removeData(a,c,!0)})})}}),p.fn.extend({queue:function(a,c){var d=2;return typeof a!="string"&&(c=a,a="fx",d--),arguments.length1)},removeAttr:function(a){return this.each(function(){p.removeAttr(this,a)})},prop:function(a,b){return p.access(this,p.prop,a,b,arguments.length>1)},removeProp:function(a){return a=p.propFix[a]||a,this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,f,g,h;if(p.isFunction(a))return this.each(function(b){p(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(s);for(c=0,d=this.length;c=0)d=d.replace(" "+c[f]+" "," ");e.className=a?p.trim(d):""}}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";return p.isFunction(a)?this.each(function(c){p(this).toggleClass(a.call(this,c,this.className,b),b)}):this.each(function(){if(c==="string"){var e,f=0,g=p(this),h=b,i=a.split(s);while(e=i[f++])h=d?h:!g.hasClass(e),g[h?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&p._data(this,"__className__",this.className),this.className=this.className||a===!1?"":p._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c=0)return!0;return!1},val:function(a){var c,d,e,f=this[0];if(!arguments.length){if(f)return c=p.valHooks[f.type]||p.valHooks[f.nodeName.toLowerCase()],c&&"get"in c&&(d=c.get(f,"value"))!==b?d:(d=f.value,typeof d=="string"?d.replace(P,""):d==null?"":d);return}return e=p.isFunction(a),this.each(function(d){var f,g=p(this);if(this.nodeType!==1)return;e?f=a.call(this,d,g.val()):f=a,f==null?f="":typeof f=="number"?f+="":p.isArray(f)&&(f=p.map(f,function(a){return a==null?"":a+""})),c=p.valHooks[this.type]||p.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,f,"value")===b)this.value=f})}}),p.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,f=a.selectedIndex,g=[],h=a.options,i=a.type==="select-one";if(f<0)return null;c=i?f:0,d=i?f+1:h.length;for(;c=0}),c.length||(a.selectedIndex=-1),c}}},attrFn:{},attr:function(a,c,d,e){var f,g,h,i=a.nodeType;if(!a||i===3||i===8||i===2)return;if(e&&p.isFunction(p.fn[c]))return p(a)[c](d);if(typeof a.getAttribute=="undefined")return p.prop(a,c,d);h=i!==1||!p.isXMLDoc(a),h&&(c=c.toLowerCase(),g=p.attrHooks[c]||(T.test(c)?M:L));if(d!==b){if(d===null){p.removeAttr(a,c);return}return g&&"set"in g&&h&&(f=g.set(a,d,c))!==b?f:(a.setAttribute(c,d+""),d)}return g&&"get"in g&&h&&(f=g.get(a,c))!==null?f:(f=a.getAttribute(c),f===null?b:f)},removeAttr:function(a,b){var c,d,e,f,g=0;if(b&&a.nodeType===1){d=b.split(s);for(;g=0}})});var V=/^(?:textarea|input|select)$/i,W=/^([^\.]*|)(?:\.(.+)|)$/,X=/(?:^|\s)hover(\.\S+|)\b/,Y=/^key/,Z=/^(?:mouse|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=function(a){return p.event.special.hover?a:a.replace(X,"mouseenter$1 mouseleave$1")};p.event={add:function(a,c,d,e,f){var g,h,i,j,k,l,m,n,o,q,r;if(a.nodeType===3||a.nodeType===8||!c||!d||!(g=p._data(a)))return;d.handler&&(o=d,d=o.handler,f=o.selector),d.guid||(d.guid=p.guid++),i=g.events,i||(g.events=i={}),h=g.handle,h||(g.handle=h=function(a){return typeof p!="undefined"&&(!a||p.event.triggered!==a.type)?p.event.dispatch.apply(h.elem,arguments):b},h.elem=a),c=p.trim(_(c)).split(" ");for(j=0;j=0&&(s=s.slice(0,-1),i=!0),s.indexOf(".")>=0&&(t=s.split("."),s=t.shift(),t.sort());if((!f||p.event.customEvent[s])&&!p.event.global[s])return;c=typeof c=="object"?c[p.expando]?c:new p.Event(s,c):new p.Event(s),c.type=s,c.isTrigger=!0,c.exclusive=i,c.namespace=t.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+t.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,m=s.indexOf(":")<0?"on"+s:"";if(!f){h=p.cache;for(j in h)h[j].events&&h[j].events[s]&&p.event.trigger(c,d,h[j].handle.elem,!0);return}c.result=b,c.target||(c.target=f),d=d!=null?p.makeArray(d):[],d.unshift(c),n=p.event.special[s]||{};if(n.trigger&&n.trigger.apply(f,d)===!1)return;q=[[f,n.bindType||s]];if(!g&&!n.noBubble&&!p.isWindow(f)){r=n.delegateType||s,k=$.test(r+s)?f:f.parentNode;for(l=f;k;k=k.parentNode)q.push([k,r]),l=k;l===(f.ownerDocument||e)&&q.push([l.defaultView||l.parentWindow||a,r])}for(j=0;j=0:p.find(m,this,null,[f]).length),h[m]&&j.push(l);j.length&&u.push({elem:f,matches:j})}o.length>q&&u.push({elem:this,matches:o.slice(q)});for(d=0;d0?this.on(b,null,a,c):this.trigger(b)},Y.test(b)&&(p.event.fixHooks[b]=p.event.keyHooks),Z.test(b)&&(p.event.fixHooks[b]=p.event.mouseHooks)}),function(a,b){function bc(a,b,c,d){c=c||[],b=b||r;var e,f,i,j,k=b.nodeType;if(!a||typeof a!="string")return c;if(k!==1&&k!==9)return[];i=g(b);if(!i&&!d)if(e=P.exec(a))if(j=e[1]){if(k===9){f=b.getElementById(j);if(!f||!f.parentNode)return c;if(f.id===j)return c.push(f),c}else if(b.ownerDocument&&(f=b.ownerDocument.getElementById(j))&&h(b,f)&&f.id===j)return c.push(f),c}else{if(e[2])return w.apply(c,x.call(b.getElementsByTagName(a),0)),c;if((j=e[3])&&_&&b.getElementsByClassName)return w.apply(c,x.call(b.getElementsByClassName(j),0)),c}return bp(a.replace(L,"$1"),b,c,d,i)}function bd(a){return function(b){var c=b.nodeName.toLowerCase();return c==="input"&&b.type===a}}function be(a){return function(b){var c=b.nodeName.toLowerCase();return(c==="input"||c==="button")&&b.type===a}}function bf(a){return z(function(b){return b=+b,z(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function bg(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}function bh(a,b){var c,d,f,g,h,i,j,k=C[o][a];if(k)return b?0:k.slice(0);h=a,i=[],j=e.preFilter;while(h){if(!c||(d=M.exec(h)))d&&(h=h.slice(d[0].length)),i.push(f=[]);c=!1;if(d=N.exec(h))f.push(c=new q(d.shift())),h=h.slice(c.length),c.type=d[0].replace(L," ");for(g in e.filter)(d=W[g].exec(h))&&(!j[g]||(d=j[g](d,r,!0)))&&(f.push(c=new q(d.shift())),h=h.slice(c.length),c.type=g,c.matches=d);if(!c)break}return b?h.length:h?bc.error(a):C(a,i).slice(0)}function bi(a,b,d){var e=b.dir,f=d&&b.dir==="parentNode",g=u++;return b.first?function(b,c,d){while(b=b[e])if(f||b.nodeType===1)return a(b,c,d)}:function(b,d,h){if(!h){var i,j=t+" "+g+" ",k=j+c;while(b=b[e])if(f||b.nodeType===1){if((i=b[o])===k)return b.sizset;if(typeof i=="string"&&i.indexOf(j)===0){if(b.sizset)return b}else{b[o]=k;if(a(b,d,h))return b.sizset=!0,b;b.sizset=!1}}}else while(b=b[e])if(f||b.nodeType===1)if(a(b,d,h))return b}}function bj(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function bk(a,b,c,d,e){var f,g=[],h=0,i=a.length,j=b!=null;for(;h-1},h,!0),m=[function(a,c,d){return!g&&(d||c!==l)||((b=c).nodeType?j(a,c,d):k(a,c,d))}];for(;i1&&bj(m),i>1&&a.slice(0,i-1).join("").replace(L,"$1"),c,i0,f=a.length>0,g=function(h,i,j,k,m){var n,o,p,q=[],s=0,u="0",x=h&&[],y=m!=null,z=l,A=h||f&&e.find.TAG("*",m&&i.parentNode||i),B=t+=z==null?1:Math.E;y&&(l=i!==r&&i,c=g.el);for(;(n=A[u])!=null;u++){if(f&&n){for(o=0;p=a[o];o++)if(p(n,i,j)){k.push(n);break}y&&(t=B,c=++g.el)}d&&((n=!p&&n)&&s--,h&&x.push(n))}s+=u;if(d&&u!==s){for(o=0;p=b[o];o++)p(x,q,i,j);if(h){if(s>0)while(u--)!x[u]&&!q[u]&&(q[u]=v.call(k));q=bk(q)}w.apply(k,q),y&&!h&&q.length>0&&s+b.length>1&&bc.uniqueSort(k)}return y&&(t=B,l=z),x};return g.el=0,d?z(g):g}function bo(a,b,c,d){var e=0,f=b.length;for(;e2&&(j=h[0]).type==="ID"&&b.nodeType===9&&!f&&e.relative[h[1].type]){b=e.find.ID(j.matches[0].replace(V,""),b,f)[0];if(!b)return c;a=a.slice(h.shift().length)}for(g=W.POS.test(a)?-1:h.length-1;g>=0;g--){j=h[g];if(e.relative[k=j.type])break;if(l=e.find[k])if(d=l(j.matches[0].replace(V,""),R.test(h[0].type)&&b.parentNode||b,f)){h.splice(g,1),a=d.length&&h.join("");if(!a)return w.apply(c,x.call(d,0)),c;break}}}return i(a,m)(d,b,f,c,R.test(a)),c}function bq(){}var c,d,e,f,g,h,i,j,k,l,m=!0,n="undefined",o=("sizcache"+Math.random()).replace(".",""),q=String,r=a.document,s=r.documentElement,t=0,u=0,v=[].pop,w=[].push,x=[].slice,y=[].indexOf||function(a){var b=0,c=this.length;for(;be.cacheLength&&delete a[b.shift()],a[c]=d},a)},B=A(),C=A(),D=A(),E="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",G=F.replace("w","w#"),H="([*^$|!~]?=)",I="\\["+E+"*("+F+")"+E+"*(?:"+H+E+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+G+")|)|)"+E+"*\\]",J=":("+F+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+I+")|[^:]|\\\\.)*|.*))\\)|)",K=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+E+"*((?:-\\d)?\\d*)"+E+"*\\)|)(?=[^-]|$)",L=new RegExp("^"+E+"+|((?:^|[^\\\\])(?:\\\\.)*)"+E+"+$","g"),M=new RegExp("^"+E+"*,"+E+"*"),N=new RegExp("^"+E+"*([\\x20\\t\\r\\n\\f>+~])"+E+"*"),O=new RegExp(J),P=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,Q=/^:not/,R=/[\x20\t\r\n\f]*[+~]/,S=/:not\($/,T=/h\d/i,U=/input|select|textarea|button/i,V=/\\(?!\\)/g,W={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),NAME:new RegExp("^\\[name=['\"]?("+F+")['\"]?\\]"),TAG:new RegExp("^("+F.replace("w","w*")+")"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+J),POS:new RegExp(K,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+E+"*(even|odd|(([+-]|)(\\d*)n|)"+E+"*(?:([+-]|)"+E+"*(\\d+)|))"+E+"*\\)|)","i"),needsContext:new RegExp("^"+E+"*[>+~]|"+K,"i")},X=function(a){var b=r.createElement("div");try{return a(b)}catch(c){return!1}finally{b=null}},Y=X(function(a){return a.appendChild(r.createComment("")),!a.getElementsByTagName("*").length}),Z=X(function(a){return a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!==n&&a.firstChild.getAttribute("href")==="#"}),$=X(function(a){a.innerHTML="";var b=typeof a.lastChild.getAttribute("multiple");return b!=="boolean"&&b!=="string"}),_=X(function(a){return a.innerHTML="",!a.getElementsByClassName||!a.getElementsByClassName("e").length?!1:(a.lastChild.className="e",a.getElementsByClassName("e").length===2)}),ba=X(function(a){a.id=o+0,a.innerHTML="
",s.insertBefore(a,s.firstChild);var b=r.getElementsByName&&r.getElementsByName(o).length===2+r.getElementsByName(o+0).length;return d=!r.getElementById(o),s.removeChild(a),b});try{x.call(s.childNodes,0)[0].nodeType}catch(bb){x=function(a){var b,c=[];for(;b=this[a];a++)c.push(b);return c}}bc.matches=function(a,b){return bc(a,null,null,b)},bc.matchesSelector=function(a,b){return bc(b,null,null,[a]).length>0},f=bc.getText=function(a){var b,c="",d=0,e=a.nodeType;if(e){if(e===1||e===9||e===11){if(typeof a.textContent=="string")return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=f(a)}else if(e===3||e===4)return a.nodeValue}else for(;b=a[d];d++)c+=f(b);return c},g=bc.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?b.nodeName!=="HTML":!1},h=bc.contains=s.contains?function(a,b){var c=a.nodeType===9?a.documentElement:a,d=b&&b.parentNode;return a===d||!!(d&&d.nodeType===1&&c.contains&&c.contains(d))}:s.compareDocumentPosition?function(a,b){return b&&!!(a.compareDocumentPosition(b)&16)}:function(a,b){while(b=b.parentNode)if(b===a)return!0;return!1},bc.attr=function(a,b){var c,d=g(a);return d||(b=b.toLowerCase()),(c=e.attrHandle[b])?c(a):d||$?a.getAttribute(b):(c=a.getAttributeNode(b),c?typeof a[b]=="boolean"?a[b]?b:null:c.specified?c.value:null:null)},e=bc.selectors={cacheLength:50,createPseudo:z,match:W,attrHandle:Z?{}:{href:function(a){return a.getAttribute("href",2)},type:function(a){return a.getAttribute("type")}},find:{ID:d?function(a,b,c){if(typeof b.getElementById!==n&&!c){var d=b.getElementById(a);return d&&d.parentNode?[d]:[]}}:function(a,c,d){if(typeof c.getElementById!==n&&!d){var e=c.getElementById(a);return e?e.id===a||typeof e.getAttributeNode!==n&&e.getAttributeNode("id").value===a?[e]:b:[]}},TAG:Y?function(a,b){if(typeof b.getElementsByTagName!==n)return b.getElementsByTagName(a)}:function(a,b){var c=b.getElementsByTagName(a);if(a==="*"){var d,e=[],f=0;for(;d=c[f];f++)d.nodeType===1&&e.push(d);return e}return c},NAME:ba&&function(a,b){if(typeof b.getElementsByName!==n)return b.getElementsByName(name)},CLASS:_&&function(a,b,c){if(typeof b.getElementsByClassName!==n&&!c)return b.getElementsByClassName(a)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(V,""),a[3]=(a[4]||a[5]||"").replace(V,""),a[2]==="~="&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),a[1]==="nth"?(a[2]||bc.error(a[0]),a[3]=+(a[3]?a[4]+(a[5]||1):2*(a[2]==="even"||a[2]==="odd")),a[4]=+(a[6]+a[7]||a[2]==="odd")):a[2]&&bc.error(a[0]),a},PSEUDO:function(a){var b,c;if(W.CHILD.test(a[0]))return null;if(a[3])a[2]=a[3];else if(b=a[4])O.test(b)&&(c=bh(b,!0))&&(c=b.indexOf(")",b.length-c)-b.length)&&(b=b.slice(0,c),a[0]=a[0].slice(0,c)),a[2]=b;return a.slice(0,3)}},filter:{ID:d?function(a){return a=a.replace(V,""),function(b){return b.getAttribute("id")===a}}:function(a){return a=a.replace(V,""),function(b){var c=typeof b.getAttributeNode!==n&&b.getAttributeNode("id");return c&&c.value===a}},TAG:function(a){return a==="*"?function(){return!0}:(a=a.replace(V,"").toLowerCase(),function(b){return b.nodeName&&b.nodeName.toLowerCase()===a})},CLASS:function(a){var b=B[o][a];return b||(b=B(a,new RegExp("(^|"+E+")"+a+"("+E+"|$)"))),function(a){return b.test(a.className||typeof a.getAttribute!==n&&a.getAttribute("class")||"")}},ATTR:function(a,b,c){return function(d,e){var f=bc.attr(d,a);return f==null?b==="!=":b?(f+="",b==="="?f===c:b==="!="?f!==c:b==="^="?c&&f.indexOf(c)===0:b==="*="?c&&f.indexOf(c)>-1:b==="$="?c&&f.substr(f.length-c.length)===c:b==="~="?(" "+f+" ").indexOf(c)>-1:b==="|="?f===c||f.substr(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d){return a==="nth"?function(a){var b,e,f=a.parentNode;if(c===1&&d===0)return!0;if(f){e=0;for(b=f.firstChild;b;b=b.nextSibling)if(b.nodeType===1){e++;if(a===b)break}}return e-=d,e===c||e%c===0&&e/c>=0}:function(b){var c=b;switch(a){case"only":case"first":while(c=c.previousSibling)if(c.nodeType===1)return!1;if(a==="first")return!0;c=b;case"last":while(c=c.nextSibling)if(c.nodeType===1)return!1;return!0}}},PSEUDO:function(a,b){var c,d=e.pseudos[a]||e.setFilters[a.toLowerCase()]||bc.error("unsupported pseudo: "+a);return d[o]?d(b):d.length>1?(c=[a,a,"",b],e.setFilters.hasOwnProperty(a.toLowerCase())?z(function(a,c){var e,f=d(a,b),g=f.length;while(g--)e=y.call(a,f[g]),a[e]=!(c[e]=f[g])}):function(a){return d(a,0,c)}):d}},pseudos:{not:z(function(a){var b=[],c=[],d=i(a.replace(L,"$1"));return d[o]?z(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)if(f=g[h])a[h]=!(b[h]=f)}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:z(function(a){return function(b){return bc(a,b).length>0}}),contains:z(function(a){return function(b){return(b.textContent||b.innerText||f(b)).indexOf(a)>-1}}),enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&!!a.checked||b==="option"&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},parent:function(a){return!e.pseudos.empty(a)},empty:function(a){var b;a=a.firstChild;while(a){if(a.nodeName>"@"||(b=a.nodeType)===3||b===4)return!1;a=a.nextSibling}return!0},header:function(a){return T.test(a.nodeName)},text:function(a){var b,c;return a.nodeName.toLowerCase()==="input"&&(b=a.type)==="text"&&((c=a.getAttribute("type"))==null||c.toLowerCase()===b)},radio:bd("radio"),checkbox:bd("checkbox"),file:bd("file"),password:bd("password"),image:bd("image"),submit:be("submit"),reset:be("reset"),button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&a.type==="button"||b==="button"},input:function(a){return U.test(a.nodeName)},focus:function(a){var b=a.ownerDocument;return a===b.activeElement&&(!b.hasFocus||b.hasFocus())&&(!!a.type||!!a.href)},active:function(a){return a===a.ownerDocument.activeElement},first:bf(function(a,b,c){return[0]}),last:bf(function(a,b,c){return[b-1]}),eq:bf(function(a,b,c){return[c<0?c+b:c]}),even:bf(function(a,b,c){for(var d=0;d=0;)a.push(d);return a}),gt:bf(function(a,b,c){for(var d=c<0?c+b:c;++d",a.querySelectorAll("[selected]").length||e.push("\\["+E+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),a.querySelectorAll(":checked").length||e.push(":checked")}),X(function(a){a.innerHTML="

",a.querySelectorAll("[test^='']").length&&e.push("[*^$]="+E+"*(?:\"\"|'')"),a.innerHTML="",a.querySelectorAll(":enabled").length||e.push(":enabled",":disabled")}),e=new RegExp(e.join("|")),bp=function(a,d,f,g,h){if(!g&&!h&&(!e||!e.test(a))){var i,j,k=!0,l=o,m=d,n=d.nodeType===9&&a;if(d.nodeType===1&&d.nodeName.toLowerCase()!=="object"){i=bh(a),(k=d.getAttribute("id"))?l=k.replace(c,"\\$&"):d.setAttribute("id",l),l="[id='"+l+"'] ",j=i.length;while(j--)i[j]=l+i[j].join("");m=R.test(a)&&d.parentNode||d,n=i.join(",")}if(n)try{return w.apply(f,x.call(m.querySelectorAll(n),0)),f}catch(p){}finally{k||d.removeAttribute("id")}}return b(a,d,f,g,h)},h&&(X(function(b){a=h.call(b,"div");try{h.call(b,"[test!='']:sizzle"),f.push("!=",J)}catch(c){}}),f=new RegExp(f.join("|")),bc.matchesSelector=function(b,c){c=c.replace(d,"='$1']");if(!g(b)&&!f.test(c)&&(!e||!e.test(c)))try{var i=h.call(b,c);if(i||a||b.document&&b.document.nodeType!==11)return i}catch(j){}return bc(c,null,null,[b]).length>0})}(),e.pseudos.nth=e.pseudos.eq,e.filters=bq.prototype=e.pseudos,e.setFilters=new bq,bc.attr=p.attr,p.find=bc,p.expr=bc.selectors,p.expr[":"]=p.expr.pseudos,p.unique=bc.uniqueSort,p.text=bc.getText,p.isXMLDoc=bc.isXML,p.contains=bc.contains}(a);var bc=/Until$/,bd=/^(?:parents|prev(?:Until|All))/,be=/^.[^:#\[\.,]*$/,bf=p.expr.match.needsContext,bg={children:!0,contents:!0,next:!0,prev:!0};p.fn.extend({find:function(a){var b,c,d,e,f,g,h=this;if(typeof a!="string")return p(a).filter(function(){for(b=0,c=h.length;b0)for(e=d;e=0:p.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c,d=0,e=this.length,f=[],g=bf.test(a)||typeof a!="string"?p(a,b||this.context):0;for(;d-1:p.find.matchesSelector(c,a)){f.push(c);break}c=c.parentNode}}return f=f.length>1?p.unique(f):f,this.pushStack(f,"closest",a)},index:function(a){return a?typeof a=="string"?p.inArray(this[0],p(a)):p.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(a,b){var c=typeof a=="string"?p(a,b):p.makeArray(a&&a.nodeType?[a]:a),d=p.merge(this.get(),c);return this.pushStack(bh(c[0])||bh(d[0])?d:p.unique(d))},addBack:function(a){return this.add(a==null?this.prevObject:this.prevObject.filter(a))}}),p.fn.andSelf=p.fn.addBack,p.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return p.dir(a,"parentNode")},parentsUntil:function(a,b,c){return p.dir(a,"parentNode",c)},next:function(a){return bi(a,"nextSibling")},prev:function(a){return bi(a,"previousSibling")},nextAll:function(a){return p.dir(a,"nextSibling")},prevAll:function(a){return p.dir(a,"previousSibling")},nextUntil:function(a,b,c){return p.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return p.dir(a,"previousSibling",c)},siblings:function(a){return p.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return p.sibling(a.firstChild)},contents:function(a){return p.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:p.merge([],a.childNodes)}},function(a,b){p.fn[a]=function(c,d){var e=p.map(this,b,c);return bc.test(a)||(d=c),d&&typeof d=="string"&&(e=p.filter(d,e)),e=this.length>1&&!bg[a]?p.unique(e):e,this.length>1&&bd.test(a)&&(e=e.reverse()),this.pushStack(e,a,k.call(arguments).join(","))}}),p.extend({filter:function(a,b,c){return c&&(a=":not("+a+")"),b.length===1?p.find.matchesSelector(b[0],a)?[b[0]]:[]:p.find.matches(a,b)},dir:function(a,c,d){var e=[],f=a[c];while(f&&f.nodeType!==9&&(d===b||f.nodeType!==1||!p(f).is(d)))f.nodeType===1&&e.push(f),f=f[c];return e},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var bl="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",bm=/ jQuery\d+="(?:null|\d+)"/g,bn=/^\s+/,bo=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bp=/<([\w:]+)/,bq=/]","i"),bv=/^(?:checkbox|radio)$/,bw=/checked\s*(?:[^=]|=\s*.checked.)/i,bx=/\/(java|ecma)script/i,by=/^\s*\s*$/g,bz={option:[1,""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},bA=bk(e),bB=bA.appendChild(e.createElement("div"));bz.optgroup=bz.option,bz.tbody=bz.tfoot=bz.colgroup=bz.caption=bz.thead,bz.th=bz.td,p.support.htmlSerialize||(bz._default=[1,"X
","
"]),p.fn.extend({text:function(a){return p.access(this,function(a){return a===b?p.text(this):this.empty().append((this[0]&&this[0].ownerDocument||e).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(p.isFunction(a))return this.each(function(b){p(this).wrapAll(a.call(this,b))});if(this[0]){var b=p(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return p.isFunction(a)?this.each(function(b){p(this).wrapInner(a.call(this,b))}):this.each(function(){var b=p(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=p.isFunction(a);return this.each(function(c){p(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){p.nodeName(this,"body")||p(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){(this.nodeType===1||this.nodeType===11)&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){(this.nodeType===1||this.nodeType===11)&&this.insertBefore(a,this.firstChild)})},before:function(){if(!bh(this[0]))return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=p.clean(arguments);return this.pushStack(p.merge(a,this),"before",this.selector)}},after:function(){if(!bh(this[0]))return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=p.clean(arguments);return this.pushStack(p.merge(this,a),"after",this.selector)}},remove:function(a,b){var c,d=0;for(;(c=this[d])!=null;d++)if(!a||p.filter(a,[c]).length)!b&&c.nodeType===1&&(p.cleanData(c.getElementsByTagName("*")),p.cleanData([c])),c.parentNode&&c.parentNode.removeChild(c);return this},empty:function(){var a,b=0;for(;(a=this[b])!=null;b++){a.nodeType===1&&p.cleanData(a.getElementsByTagName("*"));while(a.firstChild)a.removeChild(a.firstChild)}return this},clone:function(a,b){return a=a==null?!1:a,b=b==null?a:b,this.map(function(){return p.clone(this,a,b)})},html:function(a){return p.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(bm,""):b;if(typeof a=="string"&&!bs.test(a)&&(p.support.htmlSerialize||!bu.test(a))&&(p.support.leadingWhitespace||!bn.test(a))&&!bz[(bp.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(bo,"<$1>");try{for(;d1&&typeof j=="string"&&bw.test(j))return this.each(function(){p(this).domManip(a,c,d)});if(p.isFunction(j))return this.each(function(e){var f=p(this);a[0]=j.call(this,e,c?f.html():b),f.domManip(a,c,d)});if(this[0]){e=p.buildFragment(a,this,k),g=e.fragment,f=g.firstChild,g.childNodes.length===1&&(g=f);if(f){c=c&&p.nodeName(f,"tr");for(h=e.cacheable||l-1;i0?this.clone(!0):this).get(),p(g[e])[b](d),f=f.concat(d);return this.pushStack(f,a,g.selector)}}),p.extend({clone:function(a,b,c){var d,e,f,g;p.support.html5Clone||p.isXMLDoc(a)||!bu.test("<"+a.nodeName+">")?g=a.cloneNode(!0):(bB.innerHTML=a.outerHTML,bB.removeChild(g=bB.firstChild));if((!p.support.noCloneEvent||!p.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!p.isXMLDoc(a)){bE(a,g),d=bF(a),e=bF(g);for(f=0;d[f];++f)e[f]&&bE(d[f],e[f])}if(b){bD(a,g);if(c){d=bF(a),e=bF(g);for(f=0;d[f];++f)bD(d[f],e[f])}}return d=e=null,g},clean:function(a,b,c,d){var f,g,h,i,j,k,l,m,n,o,q,r,s=b===e&&bA,t=[];if(!b||typeof b.createDocumentFragment=="undefined")b=e;for(f=0;(h=a[f])!=null;f++){typeof h=="number"&&(h+="");if(!h)continue;if(typeof h=="string")if(!br.test(h))h=b.createTextNode(h);else{s=s||bk(b),l=b.createElement("div"),s.appendChild(l),h=h.replace(bo,"<$1>"),i=(bp.exec(h)||["",""])[1].toLowerCase(),j=bz[i]||bz._default,k=j[0],l.innerHTML=j[1]+h+j[2];while(k--)l=l.lastChild;if(!p.support.tbody){m=bq.test(h),n=i==="table"&&!m?l.firstChild&&l.firstChild.childNodes:j[1]===""&&!m?l.childNodes:[];for(g=n.length-1;g>=0;--g)p.nodeName(n[g],"tbody")&&!n[g].childNodes.length&&n[g].parentNode.removeChild(n[g])}!p.support.leadingWhitespace&&bn.test(h)&&l.insertBefore(b.createTextNode(bn.exec(h)[0]),l.firstChild),h=l.childNodes,l.parentNode.removeChild(l)}h.nodeType?t.push(h):p.merge(t,h)}l&&(h=l=s=null);if(!p.support.appendChecked)for(f=0;(h=t[f])!=null;f++)p.nodeName(h,"input")?bG(h):typeof h.getElementsByTagName!="undefined"&&p.grep(h.getElementsByTagName("input"),bG);if(c){q=function(a){if(!a.type||bx.test(a.type))return d?d.push(a.parentNode?a.parentNode.removeChild(a):a):c.appendChild(a)};for(f=0;(h=t[f])!=null;f++)if(!p.nodeName(h,"script")||!q(h))c.appendChild(h),typeof h.getElementsByTagName!="undefined"&&(r=p.grep(p.merge([],h.getElementsByTagName("script")),q),t.splice.apply(t,[f+1,0].concat(r)),f+=r.length)}return t},cleanData:function(a,b){var c,d,e,f,g=0,h=p.expando,i=p.cache,j=p.support.deleteExpando,k=p.event.special;for(;(e=a[g])!=null;g++)if(b||p.acceptData(e)){d=e[h],c=d&&i[d];if(c){if(c.events)for(f in c.events)k[f]?p.event.remove(e,f):p.removeEvent(e,f,c.handle);i[d]&&(delete i[d],j?delete e[h]:e.removeAttribute?e.removeAttribute(h):e[h]=null,p.deletedIds.push(d))}}}}),function(){var a,b;p.uaMatch=function(a){a=a.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},a=p.uaMatch(g.userAgent),b={},a.browser&&(b[a.browser]=!0,b.version=a.version),b.chrome?b.webkit=!0:b.webkit&&(b.safari=!0),p.browser=b,p.sub=function(){function a(b,c){return new a.fn.init(b,c)}p.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function c(c,d){return d&&d instanceof p&&!(d instanceof a)&&(d=a(d)),p.fn.init.call(this,c,d,b)},a.fn.init.prototype=a.fn;var b=a(e);return a}}();var bH,bI,bJ,bK=/alpha\([^)]*\)/i,bL=/opacity=([^)]*)/,bM=/^(top|right|bottom|left)$/,bN=/^(none|table(?!-c[ea]).+)/,bO=/^margin/,bP=new RegExp("^("+q+")(.*)$","i"),bQ=new RegExp("^("+q+")(?!px)[a-z%]+$","i"),bR=new RegExp("^([-+])=("+q+")","i"),bS={},bT={position:"absolute",visibility:"hidden",display:"block"},bU={letterSpacing:0,fontWeight:400},bV=["Top","Right","Bottom","Left"],bW=["Webkit","O","Moz","ms"],bX=p.fn.toggle;p.fn.extend({css:function(a,c){return p.access(this,function(a,c,d){return d!==b?p.style(a,c,d):p.css(a,c)},a,c,arguments.length>1)},show:function(){return b$(this,!0)},hide:function(){return b$(this)},toggle:function(a,b){var c=typeof a=="boolean";return p.isFunction(a)&&p.isFunction(b)?bX.apply(this,arguments):this.each(function(){(c?a:bZ(this))?p(this).show():p(this).hide()})}}),p.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bH(a,"opacity");return c===""?"1":c}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":p.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!a||a.nodeType===3||a.nodeType===8||!a.style)return;var f,g,h,i=p.camelCase(c),j=a.style;c=p.cssProps[i]||(p.cssProps[i]=bY(j,i)),h=p.cssHooks[c]||p.cssHooks[i];if(d===b)return h&&"get"in h&&(f=h.get(a,!1,e))!==b?f:j[c];g=typeof d,g==="string"&&(f=bR.exec(d))&&(d=(f[1]+1)*f[2]+parseFloat(p.css(a,c)),g="number");if(d==null||g==="number"&&isNaN(d))return;g==="number"&&!p.cssNumber[i]&&(d+="px");if(!h||!("set"in h)||(d=h.set(a,d,e))!==b)try{j[c]=d}catch(k){}},css:function(a,c,d,e){var f,g,h,i=p.camelCase(c);return c=p.cssProps[i]||(p.cssProps[i]=bY(a.style,i)),h=p.cssHooks[c]||p.cssHooks[i],h&&"get"in h&&(f=h.get(a,!0,e)),f===b&&(f=bH(a,c)),f==="normal"&&c in bU&&(f=bU[c]),d||e!==b?(g=parseFloat(f),d||p.isNumeric(g)?g||0:f):f},swap:function(a,b,c){var d,e,f={};for(e in b)f[e]=a.style[e],a.style[e]=b[e];d=c.call(a);for(e in b)a.style[e]=f[e];return d}}),a.getComputedStyle?bH=function(b,c){var d,e,f,g,h=a.getComputedStyle(b,null),i=b.style;return h&&(d=h[c],d===""&&!p.contains(b.ownerDocument,b)&&(d=p.style(b,c)),bQ.test(d)&&bO.test(c)&&(e=i.width,f=i.minWidth,g=i.maxWidth,i.minWidth=i.maxWidth=i.width=d,d=h.width,i.width=e,i.minWidth=f,i.maxWidth=g)),d}:e.documentElement.currentStyle&&(bH=function(a,b){var c,d,e=a.currentStyle&&a.currentStyle[b],f=a.style;return e==null&&f&&f[b]&&(e=f[b]),bQ.test(e)&&!bM.test(b)&&(c=f.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":e,e=f.pixelLeft+"px",f.left=c,d&&(a.runtimeStyle.left=d)),e===""?"auto":e}),p.each(["height","width"],function(a,b){p.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth===0&&bN.test(bH(a,"display"))?p.swap(a,bT,function(){return cb(a,b,d)}):cb(a,b,d)},set:function(a,c,d){return b_(a,c,d?ca(a,b,d,p.support.boxSizing&&p.css(a,"boxSizing")==="border-box"):0)}}}),p.support.opacity||(p.cssHooks.opacity={get:function(a,b){return bL.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=p.isNumeric(b)?"alpha(opacity="+b*100+")":"",f=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&p.trim(f.replace(bK,""))===""&&c.removeAttribute){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bK.test(f)?f.replace(bK,e):f+" "+e}}),p(function(){p.support.reliableMarginRight||(p.cssHooks.marginRight={get:function(a,b){return p.swap(a,{display:"inline-block"},function(){if(b)return bH(a,"marginRight")})}}),!p.support.pixelPosition&&p.fn.position&&p.each(["top","left"],function(a,b){p.cssHooks[b]={get:function(a,c){if(c){var d=bH(a,b);return bQ.test(d)?p(a).position()[b]+"px":d}}}})}),p.expr&&p.expr.filters&&(p.expr.filters.hidden=function(a){return a.offsetWidth===0&&a.offsetHeight===0||!p.support.reliableHiddenOffsets&&(a.style&&a.style.display||bH(a,"display"))==="none"},p.expr.filters.visible=function(a){return!p.expr.filters.hidden(a)}),p.each({margin:"",padding:"",border:"Width"},function(a,b){p.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bV[d]+b]=e[d]||e[d-2]||e[0];return f}},bO.test(a)||(p.cssHooks[a+b].set=b_)});var cd=/%20/g,ce=/\[\]$/,cf=/\r?\n/g,cg=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,ch=/^(?:select|textarea)/i;p.fn.extend({serialize:function(){return p.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?p.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ch.test(this.nodeName)||cg.test(this.type))}).map(function(a,b){var c=p(this).val();return c==null?null:p.isArray(c)?p.map(c,function(a,c){return{name:b.name,value:a.replace(cf,"\r\n")}}):{name:b.name,value:c.replace(cf,"\r\n")}}).get()}}),p.param=function(a,c){var d,e=[],f=function(a,b){b=p.isFunction(b)?b():b==null?"":b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=p.ajaxSettings&&p.ajaxSettings.traditional);if(p.isArray(a)||a.jquery&&!p.isPlainObject(a))p.each(a,function(){f(this.name,this.value)});else for(d in a)ci(d,a[d],c,f);return e.join("&").replace(cd,"+")};var cj,ck,cl=/#.*$/,cm=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,cn=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,co=/^(?:GET|HEAD)$/,cp=/^\/\//,cq=/\?/,cr=/)<[^<]*)*<\/script>/gi,cs=/([?&])_=[^&]*/,ct=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,cu=p.fn.load,cv={},cw={},cx=["*/"]+["*"];try{ck=f.href}catch(cy){ck=e.createElement("a"),ck.href="",ck=ck.href}cj=ct.exec(ck.toLowerCase())||[],p.fn.load=function(a,c,d){if(typeof a!="string"&&cu)return cu.apply(this,arguments);if(!this.length)return this;var e,f,g,h=this,i=a.indexOf(" ");return i>=0&&(e=a.slice(i,a.length),a=a.slice(0,i)),p.isFunction(c)?(d=c,c=b):c&&typeof c=="object"&&(f="POST"),p.ajax({url:a,type:f,dataType:"html",data:c,complete:function(a,b){d&&h.each(d,g||[a.responseText,b,a])}}).done(function(a){g=arguments,h.html(e?p("
").append(a.replace(cr,"")).find(e):a)}),this},p.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){p.fn[b]=function(a){return this.on(b,a)}}),p.each(["get","post"],function(a,c){p[c]=function(a,d,e,f){return p.isFunction(d)&&(f=f||e,e=d,d=b),p.ajax({type:c,url:a,data:d,success:e,dataType:f})}}),p.extend({getScript:function(a,c){return p.get(a,b,c,"script")},getJSON:function(a,b,c){return p.get(a,b,c,"json")},ajaxSetup:function(a,b){return b?cB(a,p.ajaxSettings):(b=a,a=p.ajaxSettings),cB(a,b),a},ajaxSettings:{url:ck,isLocal:cn.test(cj[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":cx},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":p.parseJSON,"text xml":p.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:cz(cv),ajaxTransport:cz(cw),ajax:function(a,c){function y(a,c,f,i){var k,s,t,u,w,y=c;if(v===2)return;v=2,h&&clearTimeout(h),g=b,e=i||"",x.readyState=a>0?4:0,f&&(u=cC(l,x,f));if(a>=200&&a<300||a===304)l.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(p.lastModified[d]=w),w=x.getResponseHeader("Etag"),w&&(p.etag[d]=w)),a===304?(y="notmodified",k=!0):(k=cD(l,u),y=k.state,s=k.data,t=k.error,k=!t);else{t=y;if(!y||a)y="error",a<0&&(a=0)}x.status=a,x.statusText=(c||y)+"",k?o.resolveWith(m,[s,y,x]):o.rejectWith(m,[x,y,t]),x.statusCode(r),r=b,j&&n.trigger("ajax"+(k?"Success":"Error"),[x,l,k?s:t]),q.fireWith(m,[x,y]),j&&(n.trigger("ajaxComplete",[x,l]),--p.active||p.event.trigger("ajaxStop"))}typeof a=="object"&&(c=a,a=b),c=c||{};var d,e,f,g,h,i,j,k,l=p.ajaxSetup({},c),m=l.context||l,n=m!==l&&(m.nodeType||m instanceof p)?p(m):p.event,o=p.Deferred(),q=p.Callbacks("once memory"),r=l.statusCode||{},t={},u={},v=0,w="canceled",x={readyState:0,setRequestHeader:function(a,b){if(!v){var c=a.toLowerCase();a=u[c]=u[c]||a,t[a]=b}return this},getAllResponseHeaders:function(){return v===2?e:null},getResponseHeader:function(a){var c;if(v===2){if(!f){f={};while(c=cm.exec(e))f[c[1].toLowerCase()]=c[2]}c=f[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){return v||(l.mimeType=a),this},abort:function(a){return a=a||w,g&&g.abort(a),y(0,a),this}};o.promise(x),x.success=x.done,x.error=x.fail,x.complete=q.add,x.statusCode=function(a){if(a){var b;if(v<2)for(b in a)r[b]=[r[b],a[b]];else b=a[x.status],x.always(b)}return this},l.url=((a||l.url)+"").replace(cl,"").replace(cp,cj[1]+"//"),l.dataTypes=p.trim(l.dataType||"*").toLowerCase().split(s),l.crossDomain==null&&(i=ct.exec(l.url.toLowerCase())||!1,l.crossDomain=i&&i.join(":")+(i[3]?"":i[1]==="http:"?80:443)!==cj.join(":")+(cj[3]?"":cj[1]==="http:"?80:443)),l.data&&l.processData&&typeof l.data!="string"&&(l.data=p.param(l.data,l.traditional)),cA(cv,l,c,x);if(v===2)return x;j=l.global,l.type=l.type.toUpperCase(),l.hasContent=!co.test(l.type),j&&p.active++===0&&p.event.trigger("ajaxStart");if(!l.hasContent){l.data&&(l.url+=(cq.test(l.url)?"&":"?")+l.data,delete l.data),d=l.url;if(l.cache===!1){var z=p.now(),A=l.url.replace(cs,"$1_="+z);l.url=A+(A===l.url?(cq.test(l.url)?"&":"?")+"_="+z:"")}}(l.data&&l.hasContent&&l.contentType!==!1||c.contentType)&&x.setRequestHeader("Content-Type",l.contentType),l.ifModified&&(d=d||l.url,p.lastModified[d]&&x.setRequestHeader("If-Modified-Since",p.lastModified[d]),p.etag[d]&&x.setRequestHeader("If-None-Match",p.etag[d])),x.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+(l.dataTypes[0]!=="*"?", "+cx+"; q=0.01":""):l.accepts["*"]);for(k in l.headers)x.setRequestHeader(k,l.headers[k]);if(!l.beforeSend||l.beforeSend.call(m,x,l)!==!1&&v!==2){w="abort";for(k in{success:1,error:1,complete:1})x[k](l[k]);g=cA(cw,l,c,x);if(!g)y(-1,"No Transport");else{x.readyState=1,j&&n.trigger("ajaxSend",[x,l]),l.async&&l.timeout>0&&(h=setTimeout(function(){x.abort("timeout")},l.timeout));try{v=1,g.send(t,y)}catch(B){if(v<2)y(-1,B);else throw B}}return x}return x.abort()},active:0,lastModified:{},etag:{}});var cE=[],cF=/\?/,cG=/(=)\?(?=&|$)|\?\?/,cH=p.now();p.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=cE.pop()||p.expando+"_"+cH++;return this[a]=!0,a}}),p.ajaxPrefilter("json jsonp",function(c,d,e){var f,g,h,i=c.data,j=c.url,k=c.jsonp!==!1,l=k&&cG.test(j),m=k&&!l&&typeof i=="string"&&!(c.contentType||"").indexOf("application/x-www-form-urlencoded")&&cG.test(i);if(c.dataTypes[0]==="jsonp"||l||m)return f=c.jsonpCallback=p.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,g=a[f],l?c.url=j.replace(cG,"$1"+f):m?c.data=i.replace(cG,"$1"+f):k&&(c.url+=(cF.test(j)?"&":"?")+c.jsonp+"="+f),c.converters["script json"]=function(){return h||p.error(f+" was not called"),h[0]},c.dataTypes[0]="json",a[f]=function(){h=arguments},e.always(function(){a[f]=g,c[f]&&(c.jsonpCallback=d.jsonpCallback,cE.push(f)),h&&p.isFunction(g)&&g(h[0]),h=g=b}),"script"}),p.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){return p.globalEval(a),a}}}),p.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),p.ajaxTransport("script",function(a){if(a.crossDomain){var c,d=e.head||e.getElementsByTagName("head")[0]||e.documentElement;return{send:function(f,g){c=e.createElement("script"),c.async="async",a.scriptCharset&&(c.charset=a.scriptCharset),c.src=a.url,c.onload=c.onreadystatechange=function(a,e){if(e||!c.readyState||/loaded|complete/.test(c.readyState))c.onload=c.onreadystatechange=null,d&&c.parentNode&&d.removeChild(c),c=b,e||g(200,"success")},d.insertBefore(c,d.firstChild)},abort:function(){c&&c.onload(0,1)}}}});var cI,cJ=a.ActiveXObject?function(){for(var a in cI)cI[a](0,1)}:!1,cK=0;p.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&cL()||cM()}:cL,function(a){p.extend(p.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(p.ajaxSettings.xhr()),p.support.ajax&&p.ajaxTransport(function(c){if(!c.crossDomain||p.support.cors){var d;return{send:function(e,f){var g,h,i=c.xhr();c.username?i.open(c.type,c.url,c.async,c.username,c.password):i.open(c.type,c.url,c.async);if(c.xhrFields)for(h in c.xhrFields)i[h]=c.xhrFields[h];c.mimeType&&i.overrideMimeType&&i.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(h in e)i.setRequestHeader(h,e[h])}catch(j){}i.send(c.hasContent&&c.data||null),d=function(a,e){var h,j,k,l,m;try{if(d&&(e||i.readyState===4)){d=b,g&&(i.onreadystatechange=p.noop,cJ&&delete cI[g]);if(e)i.readyState!==4&&i.abort();else{h=i.status,k=i.getAllResponseHeaders(),l={},m=i.responseXML,m&&m.documentElement&&(l.xml=m);try{l.text=i.responseText}catch(a){}try{j=i.statusText}catch(n){j=""}!h&&c.isLocal&&!c.crossDomain?h=l.text?200:404:h===1223&&(h=204)}}}catch(o){e||f(-1,o)}l&&f(h,j,l,k)},c.async?i.readyState===4?setTimeout(d,0):(g=++cK,cJ&&(cI||(cI={},p(a).unload(cJ)),cI[g]=d),i.onreadystatechange=d):d()},abort:function(){d&&d(0,1)}}}});var cN,cO,cP=/^(?:toggle|show|hide)$/,cQ=new RegExp("^(?:([-+])=|)("+q+")([a-z%]*)$","i"),cR=/queueHooks$/,cS=[cY],cT={"*":[function(a,b){var c,d,e=this.createTween(a,b),f=cQ.exec(b),g=e.cur(),h=+g||0,i=1,j=20;if(f){c=+f[2],d=f[3]||(p.cssNumber[a]?"":"px");if(d!=="px"&&h){h=p.css(e.elem,a,!0)||c||1;do i=i||".5",h=h/i,p.style(e.elem,a,h+d);while(i!==(i=e.cur()/g)&&i!==1&&--j)}e.unit=d,e.start=h,e.end=f[1]?h+(f[1]+1)*c:c}return e}]};p.Animation=p.extend(cW,{tweener:function(a,b){p.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");var c,d=0,e=a.length;for(;d-1,j={},k={},l,m;i?(k=e.position(),l=k.top,m=k.left):(l=parseFloat(g)||0,m=parseFloat(h)||0),p.isFunction(b)&&(b=b.call(a,c,f)),b.top!=null&&(j.top=b.top-f.top+l),b.left!=null&&(j.left=b.left-f.left+m),"using"in b?b.using.call(a,j):e.css(j)}},p.fn.extend({position:function(){if(!this[0])return;var a=this[0],b=this.offsetParent(),c=this.offset(),d=c_.test(b[0].nodeName)?{top:0,left:0}:b.offset();return c.top-=parseFloat(p.css(a,"marginTop"))||0,c.left-=parseFloat(p.css(a,"marginLeft"))||0,d.top+=parseFloat(p.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(p.css(b[0],"borderLeftWidth"))||0,{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||e.body;while(a&&!c_.test(a.nodeName)&&p.css(a,"position")==="static")a=a.offsetParent;return a||e.body})}}),p.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);p.fn[a]=function(e){return p.access(this,function(a,e,f){var g=da(a);if(f===b)return g?c in g?g[c]:g.document.documentElement[e]:a[e];g?g.scrollTo(d?p(g).scrollLeft():f,d?f:p(g).scrollTop()):a[e]=f},a,e,arguments.length,null)}}),p.each({Height:"height",Width:"width"},function(a,c){p.each({padding:"inner"+a,content:c,"":"outer"+a},function(d,e){p.fn[e]=function(e,f){var g=arguments.length&&(d||typeof e!="boolean"),h=d||(e===!0||f===!0?"margin":"border");return p.access(this,function(c,d,e){var f;return p.isWindow(c)?c.document.documentElement["client"+a]:c.nodeType===9?(f=c.documentElement,Math.max(c.body["scroll"+a],f["scroll"+a],c.body["offset"+a],f["offset"+a],f["client"+a])):e===b?p.css(c,d,e,h):p.style(c,d,e,h)},c,g?e:b,g,null)}})}),a.jQuery=a.$=p,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return p})})(window); +/*! jQuery UI - v1.9.1 - 2012-11-08 +* http://jqueryui.com +* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.draggable.js, jquery.ui.effect.js +* Copyright (c) 2012 jQuery Foundation and other contributors Licensed MIT */ + +(function(e,t){function i(t,n){var r,i,o,u=t.nodeName.toLowerCase();return"area"===u?(r=t.parentNode,i=r.name,!t.href||!i||r.nodeName.toLowerCase()!=="map"?!1:(o=e("img[usemap=#"+i+"]")[0],!!o&&s(o))):(/input|select|textarea|button|object/.test(u)?!t.disabled:"a"===u?t.href||n:n)&&s(t)}function s(t){return e.expr.filters.visible(t)&&!e(t).parents().andSelf().filter(function(){return e.css(this,"visibility")==="hidden"}).length}var n=0,r=/^ui-id-\d+$/;e.ui=e.ui||{};if(e.ui.version)return;e.extend(e.ui,{version:"1.9.1",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({_focus:e.fn.focus,focus:function(t,n){return typeof t=="number"?this.each(function(){var r=this;setTimeout(function(){e(r).focus(),n&&n.call(r)},t)}):this._focus.apply(this,arguments)},scrollParent:function(){var t;return e.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?t=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.css(this,"position"))&&/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0):t=this.parents().filter(function(){return/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?e(document):t},zIndex:function(n){if(n!==t)return this.css("zIndex",n);if(this.length){var r=e(this[0]),i,s;while(r.length&&r[0]!==document){i=r.css("position");if(i==="absolute"||i==="relative"||i==="fixed"){s=parseInt(r.css("zIndex"),10);if(!isNaN(s)&&s!==0)return s}r=r.parent()}}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++n)})},removeUniqueId:function(){return this.each(function(){r.test(this.id)&&e(this).removeAttr("id")})}}),e("").outerWidth(1).jquery||e.each(["Width","Height"],function(n,r){function u(t,n,r,s){return e.each(i,function(){n-=parseFloat(e.css(t,"padding"+this))||0,r&&(n-=parseFloat(e.css(t,"border"+this+"Width"))||0),s&&(n-=parseFloat(e.css(t,"margin"+this))||0)}),n}var i=r==="Width"?["Left","Right"]:["Top","Bottom"],s=r.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+r]=function(n){return n===t?o["inner"+r].call(this):this.each(function(){e(this).css(s,u(this,n)+"px")})},e.fn["outer"+r]=function(t,n){return typeof t!="number"?o["outer"+r].call(this,t):this.each(function(){e(this).css(s,u(this,t,!0,n)+"px")})}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(n){return!!e.data(n,t)}}):function(t,n,r){return!!e.data(t,r[3])},focusable:function(t){return i(t,!isNaN(e.attr(t,"tabindex")))},tabbable:function(t){var n=e.attr(t,"tabindex"),r=isNaN(n);return(r||n>=0)&&i(t,!r)}}),e(function(){var t=document.body,n=t.appendChild(n=document.createElement("div"));n.offsetHeight,e.extend(n.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),e.support.minHeight=n.offsetHeight===100,e.support.selectstart="onselectstart"in n,t.removeChild(n).style.display="none"}),function(){var t=/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||[];e.ui.ie=t.length?!0:!1,e.ui.ie6=parseFloat(t[1],10)===6}(),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),e.extend(e.ui,{plugin:{add:function(t,n,r){var i,s=e.ui[t].prototype;for(i in r)s.plugins[i]=s.plugins[i]||[],s.plugins[i].push([n,r[i]])},call:function(e,t,n){var r,i=e.plugins[t];if(!i||!e.element[0].parentNode||e.element[0].parentNode.nodeType===11)return;for(r=0;r0?!0:(t[r]=1,i=t[r]>0,t[r]=0,i)},isOverAxis:function(e,t,n){return e>t&&e",options:{disabled:!1,create:null},_createWidget:function(t,r){r=e(r||this.defaultElement||this)[0],this.element=e(r),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=e(),this.hoverable=e(),this.focusable=e(),r!==this&&(e.data(r,this.widgetName,this),e.data(r,this.widgetFullName,this),this._on(this.element,{remove:function(e){e.target===r&&this.destroy()}}),this.document=e(r.style?r.ownerDocument:r.document||r),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(n,r){var i=n,s,o,u;if(arguments.length===0)return e.widget.extend({},this.options);if(typeof n=="string"){i={},s=n.split("."),n=s.shift();if(s.length){o=i[n]=e.widget.extend({},this.options[n]);for(u=0;u=9||!!t.button?this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted):this._mouseUp(t)},_mouseUp:function(t){return e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(e){return this.mouseDelayMet},_mouseStart:function(e){},_mouseDrag:function(e){},_mouseStop:function(e){},_mouseCapture:function(e){return!0}})})(jQuery);(function(e,t){function h(e,t,n){return[parseInt(e[0],10)*(l.test(e[0])?t/100:1),parseInt(e[1],10)*(l.test(e[1])?n/100:1)]}function p(t,n){return parseInt(e.css(t,n),10)||0}e.ui=e.ui||{};var n,r=Math.max,i=Math.abs,s=Math.round,o=/left|center|right/,u=/top|center|bottom/,a=/[\+\-]\d+%?/,f=/^\w+/,l=/%$/,c=e.fn.position;e.position={scrollbarWidth:function(){if(n!==t)return n;var r,i,s=e("
"),o=s.children()[0];return e("body").append(s),r=o.offsetWidth,s.css("overflow","scroll"),i=o.offsetWidth,r===i&&(i=s[0].clientWidth),s.remove(),n=r-i},getScrollInfo:function(t){var n=t.isWindow?"":t.element.css("overflow-x"),r=t.isWindow?"":t.element.css("overflow-y"),i=n==="scroll"||n==="auto"&&t.width0?"right":"center",vertical:u<0?"top":o>0?"bottom":"middle"};lr(i(o),i(u))?h.important="horizontal":h.important="vertical",t.using.call(this,e,h)}),a.offset(e.extend(C,{using:u}))})},e.ui.position={fit:{left:function(e,t){var n=t.within,i=n.isWindow?n.scrollLeft:n.offset.left,s=n.width,o=e.left-t.collisionPosition.marginLeft,u=i-o,a=o+t.collisionWidth-s-i,f;t.collisionWidth>s?u>0&&a<=0?(f=e.left+u+t.collisionWidth-s-i,e.left+=u-f):a>0&&u<=0?e.left=i:u>a?e.left=i+s-t.collisionWidth:e.left=i:u>0?e.left+=u:a>0?e.left-=a:e.left=r(e.left-o,e.left)},top:function(e,t){var n=t.within,i=n.isWindow?n.scrollTop:n.offset.top,s=t.within.height,o=e.top-t.collisionPosition.marginTop,u=i-o,a=o+t.collisionHeight-s-i,f;t.collisionHeight>s?u>0&&a<=0?(f=e.top+u+t.collisionHeight-s-i,e.top+=u-f):a>0&&u<=0?e.top=i:u>a?e.top=i+s-t.collisionHeight:e.top=i:u>0?e.top+=u:a>0?e.top-=a:e.top=r(e.top-o,e.top)}},flip:{left:function(e,t){var n=t.within,r=n.offset.left+n.scrollLeft,s=n.width,o=n.isWindow?n.scrollLeft:n.offset.left,u=e.left-t.collisionPosition.marginLeft,a=u-o,f=u+t.collisionWidth-s-o,l=t.my[0]==="left"?-t.elemWidth:t.my[0]==="right"?t.elemWidth:0,c=t.at[0]==="left"?t.targetWidth:t.at[0]==="right"?-t.targetWidth:0,h=-2*t.offset[0],p,d;if(a<0){p=e.left+l+c+h+t.collisionWidth-s-r;if(p<0||p0){d=e.left-t.collisionPosition.marginLeft+l+c+h-o;if(d>0||i(d)a&&(v<0||v0&&(d=e.top-t.collisionPosition.marginTop+c+h+p-o,e.top+c+h+p>f&&(d>0||i(d)10&&i<11,t.innerHTML="",n.removeChild(t)}(),e.uiBackCompat!==!1&&function(e){var n=e.fn.position;e.fn.position=function(r){if(!r||!r.offset)return n.call(this,r);var i=r.offset.split(" "),s=r.at.split(" ");return i.length===1&&(i[1]=i[0]),/^\d/.test(i[0])&&(i[0]="+"+i[0]),/^\d/.test(i[1])&&(i[1]="+"+i[1]),s.length===1&&(/left|center|right/.test(s[0])?s[1]="center":(s[1]=s[0],s[0]="center")),n.call(this,e.extend(r,{at:s[0]+i[0]+" "+s[1]+i[1],offset:t}))}}(jQuery)})(jQuery);(function(e,t){e.widget("ui.draggable",e.ui.mouse,{version:"1.9.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position"))&&(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(t){var n=this.options;return this.helper||n.disabled||e(t.target).is(".ui-resizable-handle")?!1:(this.handle=this._getHandle(t),this.handle?(e(n.iframeFix===!0?"iframe":n.iframeFix).each(function(){e('
').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(e(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(t){var n=this.options;return this.helper=this._createHelper(t),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),n.containment&&this._setContainment(),this._trigger("start",t)===!1?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!n.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_mouseDrag:function(t,n){this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute");if(!n){var r=this._uiHash();if(this._trigger("drag",t,r)===!1)return this._mouseUp({}),!1;this.position=r.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";return e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var n=!1;e.ui.ddmanager&&!this.options.dropBehaviour&&(n=e.ui.ddmanager.drop(this,t)),this.dropped&&(n=this.dropped,this.dropped=!1);var r=this.element[0],i=!1;while(r&&(r=r.parentNode))r==document&&(i=!0);if(!i&&this.options.helper==="original")return!1;if(this.options.revert=="invalid"&&!n||this.options.revert=="valid"&&n||this.options.revert===!0||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)){var s=this;e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){s._trigger("stop",t)!==!1&&s._clear()})}else this._trigger("stop",t)!==!1&&this._clear();return!1},_mouseUp:function(t){return e("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(t){var n=!this.options.handle||!e(this.options.handle,this.element).length?!0:!1;return e(this.options.handle,this.element).find("*").andSelf().each(function(){this==t.target&&(n=!0)}),n},_createHelper:function(t){var n=this.options,r=e.isFunction(n.helper)?e(n.helper.apply(this.element[0],[t])):n.helper=="clone"?this.element.clone().removeAttr("id"):this.element;return r.parents("body").length||r.appendTo(n.appendTo=="parent"?this.element[0].parentNode:n.appendTo),r[0]!=this.element[0]&&!/(fixed|absolute)/.test(r.css("position"))&&r.css("position","absolute"),r},_adjustOffsetFromHelper:function(t){typeof t=="string"&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&e.ui.ie)t={top:0,left:0};return{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var e=this.element.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t=this.options;t.containment=="parent"&&(t.containment=this.helper[0].parentNode);if(t.containment=="document"||t.containment=="window")this.containment=[t.containment=="document"?0:e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t.containment=="document"?0:e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(t.containment=="document"?0:e(window).scrollLeft())+e(t.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(t.containment=="document"?0:e(window).scrollTop())+(e(t.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(t.containment)&&t.containment.constructor!=Array){var n=e(t.containment),r=n[0];if(!r)return;var i=n.offset(),s=e(r).css("overflow")!="hidden";this.containment=[(parseInt(e(r).css("borderLeftWidth"),10)||0)+(parseInt(e(r).css("paddingLeft"),10)||0),(parseInt(e(r).css("borderTopWidth"),10)||0)+(parseInt(e(r).css("paddingTop"),10)||0),(s?Math.max(r.scrollWidth,r.offsetWidth):r.offsetWidth)-(parseInt(e(r).css("borderLeftWidth"),10)||0)-(parseInt(e(r).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(s?Math.max(r.scrollHeight,r.offsetHeight):r.offsetHeight)-(parseInt(e(r).css("borderTopWidth"),10)||0)-(parseInt(e(r).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=n}else t.containment.constructor==Array&&(this.containment=t.containment)},_convertPositionTo:function(t,n){n||(n=this.position);var r=t=="absolute"?1:-1,i=this.options,s=this.cssPosition!="absolute"||this.scrollParent[0]!=document&&!!e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(s[0].tagName);return{top:n.top+this.offset.relative.top*r+this.offset.parent.top*r-(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():o?0:s.scrollTop())*r,left:n.left+this.offset.relative.left*r+this.offset.parent.left*r-(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():o?0:s.scrollLeft())*r}},_generatePosition:function(t){var n=this.options,r=this.cssPosition!="absolute"||this.scrollParent[0]!=document&&!!e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,i=/(html|body)/i.test(r[0].tagName),s=t.pageX,o=t.pageY;if(this.originalPosition){var u;if(this.containment){if(this.relative_container){var a=this.relative_container.offset();u=[this.containment[0]+a.left,this.containment[1]+a.top,this.containment[2]+a.left,this.containment[3]+a.top]}else u=this.containment;t.pageX-this.offset.click.leftu[2]&&(s=u[2]+this.offset.click.left),t.pageY-this.offset.click.top>u[3]&&(o=u[3]+this.offset.click.top)}if(n.grid){var f=n.grid[1]?this.originalPageY+Math.round((o-this.originalPageY)/n.grid[1])*n.grid[1]:this.originalPageY;o=u?f-this.offset.click.topu[3]?f-this.offset.click.topu[2]?l-this.offset.click.left=0;l--){var c=r.snapElements[l].left,h=c+r.snapElements[l].width,p=r.snapElements[l].top,d=p+r.snapElements[l].height;if(!(c-se?0:r.max")[0],c,h=t.each;l.style.cssText="background-color:rgba(1,1,1,.5)",f.rgba=l.style.backgroundColor.indexOf("rgba")>-1,h(u,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),o.fn=t.extend(o.prototype,{parse:function(r,i,s,a){if(r===n)return this._rgba=[null,null,null,null],this;if(r.jquery||r.nodeType)r=t(r).css(i),i=n;var f=this,l=t.type(r),v=this._rgba=[];i!==n&&(r=[r,i,s,a],l="array");if(l==="string")return this.parse(d(r)||c._default);if(l==="array")return h(u.rgba.props,function(e,t){v[t.idx]=p(r[t.idx],t)}),this;if(l==="object")return r instanceof o?h(u,function(e,t){r[t.cache]&&(f[t.cache]=r[t.cache].slice())}):h(u,function(t,n){var i=n.cache;h(n.props,function(e,t){if(!f[i]&&n.to){if(e==="alpha"||r[e]==null)return;f[i]=n.to(f._rgba)}f[i][t.idx]=p(r[e],t,!0)}),f[i]&&e.inArray(null,f[i].slice(0,3))<0&&(f[i][3]=1,n.from&&(f._rgba=n.from(f[i])))}),this},is:function(e){var t=o(e),n=!0,r=this;return h(u,function(e,i){var s,o=t[i.cache];return o&&(s=r[i.cache]||i.to&&i.to(r._rgba)||[],h(i.props,function(e,t){if(o[t.idx]!=null)return n=o[t.idx]===s[t.idx],n})),n}),n},_space:function(){var e=[],t=this;return h(u,function(n,r){t[r.cache]&&e.push(n)}),e.pop()},transition:function(e,t){var n=o(e),r=n._space(),i=u[r],s=this.alpha()===0?o("transparent"):this,f=s[i.cache]||i.to(s._rgba),l=f.slice();return n=n[i.cache],h(i.props,function(e,r){var i=r.idx,s=f[i],o=n[i],u=a[r.type]||{};if(o===null)return;s===null?l[i]=o:(u.mod&&(o-s>u.mod/2?s+=u.mod:s-o>u.mod/2&&(s-=u.mod)),l[i]=p((o-s)*t+s,r))}),this[r](l)},blend:function(e){if(this._rgba[3]===1)return this;var n=this._rgba.slice(),r=n.pop(),i=o(e)._rgba;return o(t.map(n,function(e,t){return(1-r)*i[t]+r*e}))},toRgbaString:function(){var e="rgba(",n=t.map(this._rgba,function(e,t){return e==null?t>2?1:0:e});return n[3]===1&&(n.pop(),e="rgb("),e+n.join()+")"},toHslaString:function(){var e="hsla(",n=t.map(this.hsla(),function(e,t){return e==null&&(e=t>2?1:0),t&&t<3&&(e=Math.round(e*100)+"%"),e});return n[3]===1&&(n.pop(),e="hsl("),e+n.join()+")"},toHexString:function(e){var n=this._rgba.slice(),r=n.pop();return e&&n.push(~~(r*255)),"#"+t.map(n,function(e){return e=(e||0).toString(16),e.length===1?"0"+e:e}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}}),o.fn.parse.prototype=o.fn,u.hsla.to=function(e){if(e[0]==null||e[1]==null||e[2]==null)return[null,null,null,e[3]];var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=e[3],s=Math.max(t,n,r),o=Math.min(t,n,r),u=s-o,a=s+o,f=a*.5,l,c;return o===s?l=0:t===s?l=60*(n-r)/u+360:n===s?l=60*(r-t)/u+120:l=60*(t-n)/u+240,f===0||f===1?c=f:f<=.5?c=u/a:c=u/(2-a),[Math.round(l)%360,c,f,i==null?1:i]},u.hsla.from=function(e){if(e[0]==null||e[1]==null||e[2]==null)return[null,null,null,e[3]];var t=e[0]/360,n=e[1],r=e[2],i=e[3],s=r<=.5?r*(1+n):r+n-r*n,o=2*r-s;return[Math.round(v(o,s,t+1/3)*255),Math.round(v(o,s,t)*255),Math.round(v(o,s,t-1/3)*255),i]},h(u,function(e,r){var s=r.props,u=r.cache,a=r.to,f=r.from;o.fn[e]=function(e){a&&!this[u]&&(this[u]=a(this._rgba));if(e===n)return this[u].slice();var r,i=t.type(e),l=i==="array"||i==="object"?e:arguments,c=this[u].slice();return h(s,function(e,t){var n=l[i==="object"?e:t.idx];n==null&&(n=c[t.idx]),c[t.idx]=p(n,t)}),f?(r=o(f(c)),r[u]=c,r):o(c)},h(s,function(n,r){if(o.fn[n])return;o.fn[n]=function(s){var o=t.type(s),u=n==="alpha"?this._hsla?"hsla":"rgba":e,a=this[u](),f=a[r.idx],l;return o==="undefined"?f:(o==="function"&&(s=s.call(this,f),o=t.type(s)),s==null&&r.empty?this:(o==="string"&&(l=i.exec(s),l&&(s=f+parseFloat(l[2])*(l[1]==="+"?1:-1))),a[r.idx]=s,this[u](a)))}})}),h(r,function(e,n){t.cssHooks[n]={set:function(e,r){var i,s,u="";if(t.type(r)!=="string"||(i=d(r))){r=o(i||r);if(!f.rgba&&r._rgba[3]!==1){s=n==="backgroundColor"?e.parentNode:e;while((u===""||u==="transparent")&&s&&s.style)try{u=t.css(s,"backgroundColor"),s=s.parentNode}catch(a){}r=r.blend(u&&u!=="transparent"?u:"_default")}r=r.toRgbaString()}try{e.style[n]=r}catch(l){}}},t.fx.step[n]=function(e){e.colorInit||(e.start=o(e.elem,n),e.end=o(e.end),e.colorInit=!0),t.cssHooks[n].set(e.elem,e.start.transition(e.end,e.pos))}}),t.cssHooks.borderColor={expand:function(e){var t={};return h(["Top","Right","Bottom","Left"],function(n,r){t["border"+r+"Color"]=e}),t}},c=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(jQuery),function(){function i(){var t=this.ownerDocument.defaultView?this.ownerDocument.defaultView.getComputedStyle(this,null):this.currentStyle,n={},r,i;if(t&&t.length&&t[0]&&t[t[0]]){i=t.length;while(i--)r=t[i],typeof t[r]=="string"&&(n[e.camelCase(r)]=t[r])}else for(r in t)typeof t[r]=="string"&&(n[r]=t[r]);return n}function s(t,n){var i={},s,o;for(s in n)o=n[s],t[s]!==o&&!r[s]&&(e.fx.step[s]||!isNaN(parseFloat(o)))&&(i[s]=o);return i}var n=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,n){e.fx.step[n]=function(e){if(e.end!=="none"&&!e.setAttr||e.pos===1&&!e.setAttr)jQuery.style(e.elem,n,e.end),e.setAttr=!0}}),e.effects.animateClass=function(t,r,o,u){var a=e.speed(r,o,u);return this.queue(function(){var r=e(this),o=r.attr("class")||"",u,f=a.children?r.find("*").andSelf():r;f=f.map(function(){var t=e(this);return{el:t,start:i.call(this)}}),u=function(){e.each(n,function(e,n){t[n]&&r[n+"Class"](t[n])})},u(),f=f.map(function(){return this.end=i.call(this.el[0]),this.diff=s(this.start,this.end),this}),r.attr("class",o),f=f.map(function(){var t=this,n=e.Deferred(),r=jQuery.extend({},a,{queue:!1,complete:function(){n.resolve(t)}});return this.el.animate(this.diff,r),n.promise()}),e.when.apply(e,f.get()).done(function(){u(),e.each(arguments,function(){var t=this.el;e.each(this.diff,function(e){t.css(e,"")})}),a.complete.call(r[0])})})},e.fn.extend({_addClass:e.fn.addClass,addClass:function(t,n,r,i){return n?e.effects.animateClass.call(this,{add:t},n,r,i):this._addClass(t)},_removeClass:e.fn.removeClass,removeClass:function(t,n,r,i){return n?e.effects.animateClass.call(this,{remove:t},n,r,i):this._removeClass(t)},_toggleClass:e.fn.toggleClass,toggleClass:function(n,r,i,s,o){return typeof r=="boolean"||r===t?i?e.effects.animateClass.call(this,r?{add:n}:{remove:n},i,s,o):this._toggleClass(n,r):e.effects.animateClass.call(this,{toggle:n},r,i,s)},switchClass:function(t,n,r,i,s){return e.effects.animateClass.call(this,{add:n,remove:t},r,i,s)}})}(),function(){function i(t,n,r,i){e.isPlainObject(t)&&(n=t,t=t.effect),t={effect:t},n==null&&(n={}),e.isFunction(n)&&(i=n,r=null,n={});if(typeof n=="number"||e.fx.speeds[n])i=r,r=n,n={};return e.isFunction(r)&&(i=r,r=null),n&&e.extend(t,n),r=r||n.duration,t.duration=e.fx.off?0:typeof r=="number"?r:r in e.fx.speeds?e.fx.speeds[r]:e.fx.speeds._default,t.complete=i||n.complete,t}function s(t){return!t||typeof t=="number"||e.fx.speeds[t]?!0:typeof t=="string"&&!e.effects.effect[t]?n&&e.effects[t]?!1:!0:!1}e.extend(e.effects,{version:"1.9.1",save:function(e,t){for(var n=0;n
").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),i={width:t.width(),height:t.height()},s=document.activeElement;try{s.id}catch(o){s=document.body}return t.wrap(r),(t[0]===s||e.contains(t[0],s))&&e(s).focus(),r=t.parent(),t.css("position")==="static"?(r.css({position:"relative"}),t.css({position:"relative"})):(e.extend(n,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],function(e,r){n[r]=t.css(r),isNaN(parseInt(n[r],10))&&(n[r]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(i),r.css(n).show()},removeWrapper:function(t){var n=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===n||e.contains(t[0],n))&&e(n).focus()),t},setTransition:function(t,n,r,i){return i=i||{},e.each(n,function(e,n){var s=t.cssUnit(n);s[0]>0&&(i[n]=s[0]*r+s[1])}),i}}),e.fn.extend({effect:function(){function a(n){function u(){e.isFunction(i)&&i.call(r[0]),e.isFunction(n)&&n()}var r=e(this),i=t.complete,s=t.mode;(r.is(":hidden")?s==="hide":s==="show")?u():o.call(r[0],t,u)}var t=i.apply(this,arguments),r=t.mode,s=t.queue,o=e.effects.effect[t.effect],u=!o&&n&&e.effects[t.effect];return e.fx.off||!o&&!u?r?this[r](t.duration,t.complete):this.each(function(){t.complete&&t.complete.call(this)}):o?s===!1?this.each(a):this.queue(s||"fx",a):u.call(this,{options:t,duration:t.duration,callback:t.complete,mode:t.mode})},_show:e.fn.show,show:function(e){if(s(e))return this._show.apply(this,arguments);var t=i.apply(this,arguments);return t.mode="show",this.effect.call(this,t)},_hide:e.fn.hide,hide:function(e){if(s(e))return this._hide.apply(this,arguments);var t=i.apply(this,arguments);return t.mode="hide",this.effect.call(this,t)},__toggle:e.fn.toggle,toggle:function(t){if(s(t)||typeof t=="boolean"||e.isFunction(t))return this.__toggle.apply(this,arguments);var n=i.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)},cssUnit:function(t){var n=this.css(t),r=[];return e.each(["em","px","%","pt"],function(e,t){n.indexOf(t)>0&&(r=[parseFloat(n),t])}),r}})}(),function(){var t={};e.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,n){t[n]=function(t){return Math.pow(t,e+2)}}),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return e===0||e===1?e:-Math.pow(2,8*(e-1))*Math.sin(((e-1)*80-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){var t,n=4;while(e<((t=Math.pow(2,--n))-1)/11);return 1/Math.pow(4,3-n)-7.5625*Math.pow((t*3-2)/22-e,2)}}),e.each(t,function(t,n){e.easing["easeIn"+t]=n,e.easing["easeOut"+t]=function(e){return 1-n(1-e)},e.easing["easeInOut"+t]=function(e){return e<.5?n(e*2)/2:1-n(e*-2+2)/2}})}()}(jQuery); + +(function(a){a.movingBoxes=function(c,b){var e,d=this;d.$el=a(c).addClass("mb-slider");d.el=c;d.$el.data("movingBoxes",d);d.init=function(){d.options=e=a.extend({},a.movingBoxes.defaultOptions,b);d.$el.wrap('
');d.$window=d.$el.parent();d.$wrap=d.$window.parent().prepend('
«').append('»
');d.$panels=d.$el.children().addClass("mb-panel");d.runTime=a(".mb-slider").index(d.$el)+1;d.regex=new RegExp("slider"+d.runTime+"=(\\d+)","i");d.initialized=false;d.currentlyMoving=false;d.curPanel=(e.initAnimation)?1:d.getHash()||e.startPanel;d.width=(e.width)?parseInt(e.width,10):d.$el.width();d.pWidth=(e.panelWidth)?(e.panelWidth<=2?e.panelWidth*d.width:e.panelWidth):d.$panels.eq(0).width();d.$left=d.$wrap.find(".mb-left").click(function(){d.goBack();return false});d.$right=d.$wrap.find(".mb-right").click(function(){d.goForward();return false});d.update(false);d.setWrap(d.curPanel);d.$el.delegate(".mb-panel","click",function(f){if(!a(this).hasClass(e.currentPanel)){f.preventDefault();d.change(d.$panels.index(a(this))+d.adj,{},true)}});d.$wrap.click(function(){if(!d.$wrap.hasClass("mb-active-slider")){d.active()}});d.$panels.delegate("a","focus",function(f){f.preventDefault();var g=d.$panels.index(a(this).closest(".mb-panel"))+d.adj;if(g!==d.curPanel){d.change(g,{},true)}});a(document).keyup(function(f){if(f.target.tagName.match("TEXTAREA|INPUT|SELECT")){return}switch(f.which){case 39:case 32:if(d.$wrap.is(".mb-active-slider")){d.goForward()}break;case 37:if(d.$wrap.is(".mb-active-slider")){d.goBack()}break}});a.each("preinit initialized initChange beforeAnimation completed".split(" "),function(g,f){if(a.isFunction(e[f])){d.$el.bind(f+".movingBoxes",e[f])}});d.$el.trigger("preinit.movingBoxes",[d,d.curPanel])};d.update=function(f,g){d.$el.children(".cloned").remove();d.$panels=d.$el.children();d.adj=(e.wrap&&d.$panels.length>1)?0:1;d.width=(e.width)?parseInt(e.width,10):d.width;d.$wrap.css("width",d.width);if(e.wrap&&d.$panels.length>1){d.$el.prepend(d.$panels.filter(":last").clone().addClass("cloned"));d.$el.append(d.$panels.filter(":first").clone().addClass("cloned"));d.$el.find(".cloned").each(function(){a(this).find("a,input,textarea,select,button,area").removeAttr("name").attr("disabled","disabled");a(this).find("[id]").andSelf().removeAttr("id")})}d.$panels=d.$el.children().addClass("mb-panel").each(function(){if(a(this).find(".mb-inside").length===0){a(this).wrapInner('
')}});d.totalPanels=d.$panels.filter(":not(.cloned)").length;d.setSizes(f);d.buildNav();d.change(d.curPanel,g,f);d.imagesLoaded(function(){d.setSizes(false);d.change(d.curPanel,{},false);if(!d.initialized){setTimeout(function(){d.change(d.getHash()||e.startPanel);d.initialized=true;d.$el.trigger("initialized.movingBoxes",[d,d.curPanel])},e.speed*2)}})};d.setSizes=function(f){d.padding=parseInt(d.$panels.css("padding-left"),10)+parseInt(d.$panels.css("margin-left"),10);d.curWidth=(e.panelWidth)?(e.panelWidth<=2?e.panelWidth*d.width:e.panelWidth):d.pWidth;d.regWidth=d.curWidth*e.reducedSize;d.$panels.css({width:d.curWidth,fontSize:"1em"});d.$panels.eq(d.curPanel-d.adj).addClass(e.currentPanel);d.heights=d.$panels.css("height","auto").map(function(g,h){return a(h).outerHeight(true)}).get();d.returnToNormal(d.curPanel,0);d.growBigger(d.curPanel,0,f);d.updateArrows(d.curPanel);d.$el.css({position:"absolute",width:(d.curWidth+d.padding*2)*d.$panels.length+(d.width-d.curWidth)/2,height:Math.max.apply(this,d.heights)+10,"padding-left":(d.width-d.curWidth)/2});d.$window.css({height:(e.fixedHeight)?Math.max.apply(this,d.heights):d.heights[d.curPanel-d.adj]})};d.buildNav=function(){if(d.$nav){d.$nav.find(".mb-links").empty()}else{d.$nav=a('
').appendTo(d.$wrap)}if(e.buildNav&&d.totalPanels>1){var h,g,f="",i;d.$panels.filter(":not(.cloned)").each(function(j){g=j+1;f='';i=a(f);if(a.isFunction(e.navFormatter)){h=e.navFormatter(g,a(this));if(typeof(h)==="string"){i.html(h)}else{i=a("",h)}}else{i.html(g)}i.appendTo(d.$nav.find(".mb-links")).addClass("mb-link mb-panel"+g).data("index",g)});d.$nav.find("a.mb-link").bind("click",function(){d.change(a(this).data("index"));return false})}};d.returnToNormal=function(g,h){var f=d.$panels.not(":eq("+(g-d.adj)+")").removeClass(e.currentPanel);if(e.reducedSize===1){f.css({width:d.regWidth})}else{f.stop(true,false).animate({width:d.regWidth,fontSize:e.reducedSize+"em"},(h===0)?0:e.speed)}};d.growBigger=function(h,i,f){var g=d.$panels.eq(h-d.adj);if(e.reducedSize===1){g.css({width:d.curWidth});setTimeout(function(){d.completed(h,f)},(i===0)?0:e.speed)}else{g.stop(true,false).animate({width:d.curWidth,fontSize:"1em"},(i===0)?0:e.speed,function(){d.completed(h,f)})}};d.setWrap=function(f){d.growBigger(f,0,false);var g=d.$panels.eq(f).position().left-(d.width-d.curWidth)/2+d.padding;if(!e.wrap&&f===1){g=0}d.$window.scrollLeft(g)};d.completed=function(g,f){var h=d.$panels.eq(g-d.adj);if(!h.hasClass("cloned")){h.addClass(e.currentPanel)}if(f!==false){d.$el.trigger("completed.movingBoxes",[d,g])}};d.goForward=function(f){if(d.initialized){d.change(d.curPanel+1,f)}};d.goBack=function(f){if(d.initialized){d.change(d.curPanel-1,f)}};d.change=function(i,l,g){if(d.totalPanels<1){if(typeof(l)==="function"){l(d)}return}var f,k,j,h=false;g=g!==false;j=(g)?e.speed:0;if(/^[#|.]/.test(i)&&a(i).length){i=a(i).closest(".mb-panel").index()+d.adj}else{i=parseInt(i,10)}if(d.initialized&&g){if(!d.$wrap.hasClass("mb-active-slider")){d.active()}d.$el.trigger("initChange.movingBoxes",[d,i])}if(e.wrap){if(i>d.totalPanels){h=true;i=1;d.returnToNormal(0,0);d.setWrap(0)}else{if(i===0){h=false;i=d.totalPanels;d.setWrap(i+1)}}}if(id.totalPanels-d.adj){i=(e.wrap)?1:d.totalPanels}if(d.curPanel!==i&&(!d.currentlyMoving||!d.initialized)){d.currentlyMoving=!e.stopAnimation;d.$curPanel=d.$panels.eq(i-d.adj);k=d.$curPanel.position().left-(d.width-d.curWidth)/2+d.padding;if(i>d.curPanel||h){k-=(d.curWidth-d.regWidth)}f=(e.fixedHeight)?{scrollLeft:k}:{scrollLeft:k,height:d.heights[i-d.adj]};d.curPanel=i;if(d.initialized&&g){d.$el.trigger("beforeAnimation.movingBoxes",[d,i])}if(e.delayBeforeAnimate){setTimeout(function(){d.animateBoxes(i,f,j,g,l)},parseInt(e.delayBeforeAnimate,10)||0)}else{d.animateBoxes(i,f,j,g,l)}}else{d.endAnimation()}};d.animateBoxes=function(h,g,i,f,j){d.$window.scrollTop(0).stop(true,false).animate(g,{queue:false,duration:i,easing:e.easing,complete:function(){if(d.initialized){d.$window.scrollTop(0)}d.currentlyMoving=false;if(typeof(j)==="function"){j(d)}}});d.returnToNormal(h,i);d.growBigger(h,i,f);d.updateArrows(h);if(e.hashTags&&d.initialized){d.setHash(h)}d.endAnimation()};d.endAnimation=function(){if(e.buildNav&&d.$nav.length){d.$nav.find("a.mb-link").removeClass(e.currentPanel).eq(d.curPanel-1).addClass(e.currentPanel)}};d.updateArrows=function(f){d.$left.toggleClass(e.disabled,!e.wrap&&f===d.adj);d.$right.toggleClass(e.disabled,!e.wrap&&(f===d.totalPanels||d.totalPanels===0))};d.getHash=function(){var g=window.location.hash,f=g.indexOf("&"),j=g.match(d.regex);if(j===null&&!/^#&/.test(g)&&!/#!?\//.test(g)){g=g.substring(0,(f>=0?f:g.length));j=(a(g).length&&a(g).closest(".mb-slider")[0]===d.el)?a(g).closest(".mb-panel").index()+d.adj:null}else{if(j!==null){j=(e.hashTags)?parseInt(j[1],10):null}}return j};d.setHash=function(i){var g="slider"+d.runTime+"=",f=window.location.hash;if(typeof f!=="undefined"){window.location.hash=(f.indexOf(g)>0)?f.replace(d.regex,g+i):f+"&"+g+i}};d.active=function(){a(".mb-active-slider").removeClass("mb-active-slider");d.$wrap.addClass("mb-active-slider")};d.currentPanel=function(f,g){if(typeof(f)!=="undefined"){d.change(f,g)}return d.curPanel};d.imagesLoaded=function(n,h){var k,f,m=true,j=h?a(h):d.$panels.find("img"),g=j.length;h=h||[];for(k=0;k10)?true:j[k].complete;m=(m&&f&&j[k].height!==0);if(f===false){h.push(j[k]);j[k].count=(j[k].count||0)+1}}}if(m){if(typeof n==="function"){n()}}else{setTimeout(function(){d.imagesLoaded(n,h)},200)}};d.init()};a.movingBoxes.defaultOptions={startPanel:1,reducedSize:0.8,fixedHeight:false,initAnimation:true,stopAnimation:false,hashTags:true,wrap:false,buildNav:false,navFormatter:null,easing:"swing",speed:500,delayBeforeAnimate:0,currentPanel:"current",tooltipClass:"tooltip",disabled:"disabled",preinit:null,initialized:null,initChange:null,beforeAnimation:null,completed:null};a.fn.movingBoxes=function(d,f,b){var c,e;return this.each(function(){e=a(this).data("movingBoxes");if((typeof(d)).match("object|undefined")){if(e){e.update()}else{(new a.movingBoxes(this,d))}}else{if(/\d/.test(d)&&!isNaN(d)&&e){c=(typeof(d)==="number")?d:parseInt(a.trim(d),10);if(c>=1&&c<=e.totalPanels){e.change(c,f,b)}}}})};a.fn.getMovingBoxes=function(){return this.data("movingBoxes")}})(jQuery); + +/*fancy*/ +(function(B){var L,T,Q,M,d,m,J,A,O,z,C=0,H={},j=[],e=0,G={},y=[],f=null,o=new Image(),i=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,k=/[^\.]\.(swf)\s*$/i,p,N=1,h=0,t="",b,c,P=false,s=B.extend(B("
")[0],{prop:0}),S=B.browser.msie&&B.browser.version<7&&!window.XMLHttpRequest,r=function(){T.hide();o.onerror=o.onload=null;if(f){f.abort()}L.empty()},x=function(){if(false===H.onError(j,C,H)){T.hide();P=false;return}H.titleShow=false;H.width="auto";H.height="auto";L.html('

The requested content cannot be loaded.
Please try again later.

');n()},w=function(){var Z=j[C],W,Y,ab,aa,V,X;r();H=B.extend({},B.fn.fancybox.defaults,(typeof B(Z).data("fancybox")=="undefined"?H:B(Z).data("fancybox")));X=H.onStart(j,C,H);if(X===false){P=false;return}else{if(typeof X=="object"){H=B.extend(H,X)}}ab=H.title||(Z.nodeName?B(Z).attr("title"):Z.title)||"";if(Z.nodeName&&!H.orig){H.orig=B(Z).children("img:first").length?B(Z).children("img:first"):B(Z)}if(ab===""&&H.orig&&H.titleFromAlt){ab=H.orig.attr("alt")}ab=ab.replace(//,">");W=H.href||(Z.nodeName?B(Z).attr("href"):Z.href)||null;if((/^(?:javascript)/i).test(W)||W=="#"){W=null}if(H.type){Y=H.type;if(!W){W=H.content}}else{if(H.content){Y="html"}else{if(W){if(W.match(i)){Y="image"}else{if(W.match(k)){Y="swf"}else{if(B(Z).hasClass("iframe")){Y="iframe"}else{if(W.indexOf("#")===0){Y="inline"}}}}}}}if(!Y){x();return}if(Y=="inline"){Z=W.substr(W.indexOf("#"));Y=B(Z).length>0?"inline":"ajax"}H.type=Y;H.href=W;H.title=ab;if(H.autoDimensions){if(H.type=="html"||H.type=="inline"||H.type=="ajax"){H.width="auto";H.height="auto"}else{H.autoDimensions=false}}if(H.modal){H.overlayShow=true;H.hideOnOverlayClick=false;H.hideOnContentClick=false;H.enableEscapeButton=false;H.showCloseButton=false}H.padding=parseInt(H.padding,10);H.margin=parseInt(H.margin,10);L.css("padding",(H.padding+H.margin));B(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){B(this).replaceWith(m.children())});switch(Y){case"html":L.html(H.content);n();break;case"inline":if(B(Z).parent().is("#fancybox-content")===true){P=false;return}B('
').hide().insertBefore(B(Z)).bind("fancybox-cleanup",function(){B(this).replaceWith(m.children())}).bind("fancybox-cancel",function(){B(this).replaceWith(L.children())});B(Z).appendTo(L);n();break;case"image":P=false;B.fancybox.showActivity();o=new Image();o.onerror=function(){x()};o.onload=function(){P=true;o.onerror=o.onload=null;F()};o.src=W;break;case"swf":H.scrolling="no";aa='';V="";B.each(H.swf,function(ac,ad){aa+='';V+=" "+ac+'="'+ad+'"'});aa+='";L.html(aa);n();break;case"ajax":P=false;B.fancybox.showActivity();H.ajax.win=H.ajax.success;f=B.ajax(B.extend({},H.ajax,{url:W,data:H.ajax.data||{},error:function(ac,ae,ad){if(ac.status>0){x()}},success:function(ad,af,ac){var ae=typeof ac=="object"?ac:f;if(ae.status==200){if(typeof H.ajax.win=="function"){X=H.ajax.win(W,ad,af,ac);if(X===false){T.hide();return}else{if(typeof X=="string"||typeof X=="object"){ad=X}}}L.html(ad);n()}}}));break;case"iframe":E();break}},n=function(){var V=H.width,W=H.height;if(V.toString().indexOf("%")>-1){V=parseInt((B(window).width()-(H.margin*2))*parseFloat(V)/100,10)+"px"}else{V=V=="auto"?"auto":V+"px"}if(W.toString().indexOf("%")>-1){W=parseInt((B(window).height()-(H.margin*2))*parseFloat(W)/100,10)+"px"}else{W=W=="auto"?"auto":W+"px"}L.wrapInner('
');H.width=L.width();H.height=L.height();E()},F=function(){H.width=o.width;H.height=o.height;B("").attr({id:"fancybox-img",src:o.src,alt:H.title}).appendTo(L);E()},E=function(){var W,V;T.hide();if(M.is(":visible")&&false===G.onCleanup(y,e,G)){B.event.trigger("fancybox-cancel");P=false;return}P=true;B(m.add(Q)).unbind();B(window).unbind("resize.fb scroll.fb");B(document).unbind("keydown.fb");if(M.is(":visible")&&G.titlePosition!=="outside"){M.css("height",M.height())}y=j;e=C;G=H;if(G.overlayShow){Q.css({"background-color":G.overlayColor,opacity:G.overlayOpacity,cursor:G.hideOnOverlayClick?"pointer":"auto",height:B(document).height()});if(!Q.is(":visible")){if(S){B("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"})}Q.show()}}else{Q.hide()}c=R();l();if(M.is(":visible")){B(J.add(O).add(z)).hide();W=M.position(),b={top:W.top,left:W.left,width:M.width(),height:M.height()};V=(b.width==c.width&&b.height==c.height);m.fadeTo(G.changeFade,0.3,function(){var X=function(){m.html(L.contents()).fadeTo(G.changeFade,1,v)};B.event.trigger("fancybox-change");m.empty().removeAttr("filter").css({"border-width":G.padding,width:c.width-G.padding*2,height:H.autoDimensions?"auto":c.height-h-G.padding*2});if(V){X()}else{s.prop=0;B(s).animate({prop:1},{duration:G.changeSpeed,easing:G.easingChange,step:U,complete:X})}});return}M.removeAttr("style");m.css("border-width",G.padding);if(G.transitionIn=="elastic"){b=I();m.html(L.contents());M.show();if(G.opacity){c.opacity=0}s.prop=0;B(s).animate({prop:1},{duration:G.speedIn,easing:G.easingIn,step:U,complete:v});return}if(G.titlePosition=="inside"&&h>0){A.show()}m.css({width:c.width-G.padding*2,height:H.autoDimensions?"auto":c.height-h-G.padding*2}).html(L.contents());M.css(c).fadeIn(G.transitionIn=="none"?0:G.speedIn,v)},D=function(V){if(V&&V.length){if(G.titlePosition=="float"){return'
'+V+'
'}return'
'+V+"
"}return false},l=function(){t=G.title||"";h=0;A.empty().removeAttr("style").removeClass();if(G.titleShow===false){A.hide();return}t=B.isFunction(G.titleFormat)?G.titleFormat(t,y,e,G):D(t);if(!t||t===""){A.hide();return}A.addClass("fancybox-title-"+G.titlePosition).html(t).appendTo("body").show();switch(G.titlePosition){case"inside":A.css({width:c.width-(G.padding*2),marginLeft:G.padding,marginRight:G.padding});h=A.outerHeight(true);A.appendTo(d);c.height+=h;break;case"over":A.css({marginLeft:G.padding,width:c.width-(G.padding*2),bottom:G.padding}).appendTo(d);break;case"float":A.css("left",parseInt((A.width()-c.width-40)/2,10)*-1).appendTo(M);break;default:A.css({width:c.width-(G.padding*2),paddingLeft:G.padding,paddingRight:G.padding}).appendTo(M);break}A.hide()},g=function(){if(G.enableEscapeButton||G.enableKeyboardNav){B(document).bind("keydown.fb",function(V){if(V.keyCode==27&&G.enableEscapeButton){V.preventDefault();B.fancybox.close()}else{if((V.keyCode==37||V.keyCode==39)&&G.enableKeyboardNav&&V.target.tagName!=="INPUT"&&V.target.tagName!=="TEXTAREA"&&V.target.tagName!=="SELECT"){V.preventDefault();B.fancybox[V.keyCode==37?"prev":"next"]()}}})}if(!G.showNavArrows){O.hide();z.hide();return}if((G.cyclic&&y.length>1)||e!==0){O.show()}if((G.cyclic&&y.length>1)||e!=(y.length-1)){z.show()}},v=function(){if(!B.support.opacity){m.get(0).style.removeAttribute("filter");M.get(0).style.removeAttribute("filter")}if(H.autoDimensions){m.css("height","auto")}M.css("height","auto");if(t&&t.length){A.show()}if(G.showCloseButton){J.show()}g();if(G.hideOnContentClick){m.bind("click",B.fancybox.close)}if(G.hideOnOverlayClick){Q.bind("click",B.fancybox.close)}B(window).bind("resize.fb",B.fancybox.resize);if(G.centerOnScroll){B(window).bind("scroll.fb",B.fancybox.center)}if(G.type=="iframe"){B('').appendTo(m)}M.show();P=false;B.fancybox.center();G.onComplete(y,e,G);K()},K=function(){var V,W;if((y.length-1)>e){V=y[e+1].href;if(typeof V!=="undefined"&&V.match(i)){W=new Image();W.src=V}}if(e>0){V=y[e-1].href;if(typeof V!=="undefined"&&V.match(i)){W=new Image();W.src=V}}},U=function(W){var V={width:parseInt(b.width+(c.width-b.width)*W,10),height:parseInt(b.height+(c.height-b.height)*W,10),top:parseInt(b.top+(c.top-b.top)*W,10),left:parseInt(b.left+(c.left-b.left)*W,10)};if(typeof c.opacity!=="undefined"){V.opacity=W<0.5?0.5:W}M.css(V);m.css({width:V.width-G.padding*2,height:V.height-(h*W)-G.padding*2})},u=function(){return[B(window).width()-(G.margin*2),B(window).height()-(G.margin*2),B(document).scrollLeft()+G.margin,B(document).scrollTop()+G.margin]},R=function(){var V=u(),Z={},W=G.autoScale,X=G.padding*2,Y;if(G.width.toString().indexOf("%")>-1){Z.width=parseInt((V[0]*parseFloat(G.width))/100,10)}else{Z.width=G.width+X}if(G.height.toString().indexOf("%")>-1){Z.height=parseInt((V[1]*parseFloat(G.height))/100,10)}else{Z.height=G.height+X}if(W&&(Z.width>V[0]||Z.height>V[1])){if(H.type=="image"||H.type=="swf"){Y=(G.width)/(G.height);if((Z.width)>V[0]){Z.width=V[0];Z.height=parseInt(((Z.width-X)/Y)+X,10)}if((Z.height)>V[1]){Z.height=V[1];Z.width=parseInt(((Z.height-X)*Y)+X,10)}}else{Z.width=Math.min(Z.width,V[0]);Z.height=Math.min(Z.height,V[1])}}Z.top=parseInt(Math.max(V[3]-20,V[3]+((V[1]-Z.height-40)*0.5)),10);Z.left=parseInt(Math.max(V[2]-20,V[2]+((V[0]-Z.width-40)*0.5)),10);return Z},q=function(V){var W=V.offset();W.top+=parseInt(V.css("paddingTop"),10)||0;W.left+=parseInt(V.css("paddingLeft"),10)||0;W.top+=parseInt(V.css("border-top-width"),10)||0;W.left+=parseInt(V.css("border-left-width"),10)||0;W.width=V.width();W.height=V.height();return W},I=function(){var Y=H.orig?B(H.orig):false,X={},W,V;if(Y&&Y.length){W=q(Y);X={width:W.width+(G.padding*2),height:W.height+(G.padding*2),top:W.top-G.padding-20,left:W.left-G.padding-20}}else{V=u();X={width:G.padding*2,height:G.padding*2,top:parseInt(V[3]+V[1]*0.5,10),left:parseInt(V[2]+V[0]*0.5,10)}}return X},a=function(){if(!T.is(":visible")){clearInterval(p);return}B("div",T).css("top",(N*-40)+"px");N=(N+1)%12};B.fn.fancybox=function(V){if(!B(this).length){return this}B(this).data("fancybox",B.extend({},V,(B.metadata?B(this).metadata():{}))).unbind("click.fb").bind("click.fb",function(X){X.preventDefault();if(P){return}P=true;B(this).blur();j=[];C=0;var W=B(this).attr("rel")||"";if(!W||W==""||W==="nofollow"){j.push(this)}else{j=B("a[rel="+W+"], area[rel="+W+"]");C=j.index(this)}w();return});return this};B.fancybox=function(Y){var X;if(P){return}P=true;X=typeof arguments[1]!=="undefined"?arguments[1]:{};j=[];C=parseInt(X.index,10)||0;if(B.isArray(Y)){for(var W=0,V=Y.length;Wj.length||C<0){C=0}w()};B.fancybox.showActivity=function(){clearInterval(p);T.show();p=setInterval(a,66)};B.fancybox.hideActivity=function(){T.hide()};B.fancybox.next=function(){return B.fancybox.pos(e+1)};B.fancybox.prev=function(){return B.fancybox.pos(e-1)};B.fancybox.pos=function(V){if(P){return}V=parseInt(V);j=y;if(V>-1&&V1){C=V>=y.length?0:y.length-1;w()}}return};B.fancybox.cancel=function(){if(P){return}P=true;B.event.trigger("fancybox-cancel");r();H.onCancel(j,C,H);P=false};B.fancybox.close=function(){if(P||M.is(":hidden")){return}P=true;if(G&&false===G.onCleanup(y,e,G)){P=false;return}r();B(J.add(O).add(z)).hide();B(m.add(Q)).unbind();B(window).unbind("resize.fb scroll.fb");B(document).unbind("keydown.fb");m.find("iframe").attr("src",S&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");if(G.titlePosition!=="inside"){A.empty()}M.stop();function V(){Q.fadeOut("fast");A.empty().hide();M.hide();B.event.trigger("fancybox-cleanup");m.empty();G.onClosed(y,e,G);y=H=[];e=C=0;G=H={};P=false}if(G.transitionOut=="elastic"){b=I();var W=M.position();c={top:W.top,left:W.left,width:M.width(),height:M.height()};if(G.opacity){c.opacity=1}A.empty().hide();s.prop=1;B(s).animate({prop:0},{duration:G.speedOut,easing:G.easingOut,step:U,complete:V})}else{M.fadeOut(G.transitionOut=="none"?0:G.speedOut,V)}};B.fancybox.resize=function(){if(Q.is(":visible")){Q.css("height",B(document).height())}B.fancybox.center(true)};B.fancybox.center=function(){var V,W;if(P){return}W=arguments[0]===true?1:0;V=u();if(!W&&(M.width()>V[0]||M.height()>V[1])){return}M.stop().animate({top:parseInt(Math.max(V[3]-20,V[3]+((V[1]-m.height()-40)*0.5)-G.padding)),left:parseInt(Math.max(V[2]-20,V[2]+((V[0]-m.width()-40)*0.5)-G.padding))},typeof arguments[0]=="number"?arguments[0]:200)};B.fancybox.init=function(){if(B("#fancybox-wrap").length){return}B("body").append(L=B('
'),T=B('
'),Q=B('
'),M=B('
'));d=B('
').append('
').appendTo(M);d.append(m=B('
'),J=B('
'),A=B('
'),O=B(''),z=B(''));J.click(B.fancybox.close);T.click(B.fancybox.cancel);O.click(function(V){V.preventDefault();B.fancybox.prev()});z.click(function(V){V.preventDefault();B.fancybox.next()});if(B.fn.mousewheel){M.bind("mousewheel.fb",function(V,W){if(P){V.preventDefault()}else{if(B(V.target).get(0).clientHeight==0||B(V.target).get(0).scrollHeight===B(V.target).get(0).clientHeight){V.preventDefault();B.fancybox[W>0?"prev":"next"]()}}})}if(!B.support.opacity){M.addClass("fancybox-ie")}if(S){T.addClass("fancybox-ie6");M.addClass("fancybox-ie6");B('').prependTo(d)}};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",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); +(function(e){e(document).ready(function(){e("body").append('
    ')});e.supersized=function(t){var n="#supersized",r=this;r.$el=e(n);r.el=n;vars=e.supersized.vars;r.$el.data("supersized",r);api=r.$el.data("supersized");r.init=function(){e.supersized.vars=e.extend(e.supersized.vars,e.supersized.themeVars);e.supersized.vars.options=e.extend({},e.supersized.defaultOptions,e.supersized.themeOptions,t);r.options=e.supersized.vars.options;r._build()};r._build=function(){var t=0,n="",i="",s,o="",u;while(t<=r.options.slides.length-1){switch(r.options.slide_links){case"num":s=t;break;case"name":s=r.options.slides[t].title;break;case"blank":s=""}n=n+'
  • ';if(t==r.options.start_slide-1){r.options.slide_links&&(i=i+'");if(r.options.thumb_links){r.options.slides[t].thumb?u=r.options.slides[t].thumb:u=r.options.slides[t].image;o=o+'
  • '}}else{r.options.slide_links&&(i=i+'");if(r.options.thumb_links){r.options.slides[t].thumb?u=r.options.slides[t].thumb:u=r.options.slides[t].image;o=o+'
  • '}}t++}r.options.slide_links&&e(vars.slide_list).html(i);r.options.thumb_links&&vars.thumb_tray.length&&e(vars.thumb_tray).append('
      '+o+"
    ");e(r.el).append(n);if(r.options.thumbnail_navigation){vars.current_slide-1<0?prevThumb=r.options.slides.length-1:prevThumb=vars.current_slide-1;e(vars.prev_thumb).show().html(e("").attr("src",r.options.slides[prevThumb].image));vars.current_slide==r.options.slides.length-1?nextThumb=0:nextThumb=vars.current_slide+1;e(vars.next_thumb).show().html(e("").attr("src",r.options.slides[nextThumb].image))}r._start()};r._start=function(){r.options.start_slide?vars.current_slide=r.options.start_slide-1:vars.current_slide=Math.floor(Math.random()*r.options.slides.length);var t=r.options.new_window?' target="_blank"':"";r.options.performance==3?r.$el.addClass("speed"):(r.options.performance==1||r.options.performance==2)&&r.$el.addClass("quality");if(r.options.random){arr=r.options.slides;for(var n,i,s=arr.length;s;n=parseInt(Math.random()*s),i=arr[--s],arr[s]=arr[n],arr[n]=i);r.options.slides=arr}if(r.options.slides.length>1){if(r.options.slides.length>2){vars.current_slide-1<0?loadPrev=r.options.slides.length-1:loadPrev=vars.current_slide-1;var o=r.options.slides[loadPrev].url?"href='"+r.options.slides[loadPrev].url+"'":"",u=e(''),a=r.el+" li:eq("+loadPrev+")";u.appendTo(a).wrap("").parent().parent().addClass("image-loading prevslide");u.load(function(){e(this).data("origWidth",e(this).width()).data("origHeight",e(this).height());r.resizeNow()})}}else r.options.slideshow=0;o=api.getField("url")?"href='"+api.getField("url")+"'":"";var f=e(''),l=r.el+" li:eq("+vars.current_slide+")";f.appendTo(l).wrap("").parent().parent().addClass("image-loading activeslide");f.load(function(){r._origDim(e(this));r.resizeNow();r.launch();typeof theme!="undefined"&&typeof theme._init=="function"&&theme._init()});if(r.options.slides.length>1){vars.current_slide==r.options.slides.length-1?loadNext=0:loadNext=vars.current_slide+1;o=r.options.slides[loadNext].url?"href='"+r.options.slides[loadNext].url+"'":"";var c=e(''),h=r.el+" li:eq("+loadNext+")";c.appendTo(h).wrap("").parent().parent().addClass("image-loading");c.load(function(){e(this).data("origWidth",e(this).width()).data("origHeight",e(this).height());r.resizeNow()})}r.$el.css("visibility","hidden");e(".load-item").hide()};r.launch=function(){r.$el.css("visibility","visible");e("#supersized-loader").remove();typeof theme!="undefined"&&typeof theme.beforeAnimation=="function"&&theme.beforeAnimation("next");e(".load-item").show();r.options.keyboard_nav&&e(document.documentElement).keyup(function(e){if(vars.in_animation)return!1;if(e.keyCode==37||e.keyCode==40){clearInterval(vars.slideshow_interval);r.prevSlide()}else if(e.keyCode==39||e.keyCode==38){clearInterval(vars.slideshow_interval);r.nextSlide()}else if(e.keyCode==32&&!vars.hover_pause){clearInterval(vars.slideshow_interval);r.playToggle()}});r.options.slideshow&&r.options.pause_hover&&e(r.el).hover(function(){if(vars.in_animation)return!1;vars.hover_pause=!0;if(!vars.is_paused){vars.hover_pause="resume";r.playToggle()}},function(){if(vars.hover_pause=="resume"){r.playToggle();vars.hover_pause=!1}});r.options.slide_links&&e(vars.slide_list+"> li").click(function(){index=e(vars.slide_list+"> li").index(this);targetSlide=index+1;r.goTo(targetSlide);return!1});r.options.thumb_links&&e(vars.thumb_list+"> li").click(function(){index=e(vars.thumb_list+"> li").index(this);targetSlide=index+1;api.goTo(targetSlide);return!1});if(r.options.slideshow&&r.options.slides.length>1){r.options.autoplay&&r.options.slides.length>1?vars.slideshow_interval=setInterval(r.nextSlide,r.options.slide_interval):vars.is_paused=!0;e(".load-item img").bind("contextmenu mousedown",function(){return!1})}e(window).resize(function(){r.resizeNow()})};r.resizeNow=function(){return r.$el.each(function(){e("img",r.el).each(function(){function o(e){if(e){if(thisSlide.width()=r.options.min_height){thisSlide.width(r.options.min_width);thisSlide.height(thisSlide.width()*t)}else u()}else if(r.options.min_height>=i&&!r.options.fit_landscape){if(n*t>=r.options.min_height||n*t>=r.options.min_height&&t<=1){thisSlide.width(n);thisSlide.height(n*t)}else if(t>1){thisSlide.height(r.options.min_height);thisSlide.width(thisSlide.height()/t)}else if(thisSlide.width()=r.options.min_width){thisSlide.height(r.options.min_height);thisSlide.width(thisSlide.height()/t)}else o(!0)}else if(r.options.min_width>=n){if(i/t>=r.options.min_width||t>1){thisSlide.height(i);thisSlide.width(i/t)}else if(t<=1){thisSlide.width(r.options.min_width);thisSlide.height(thisSlide.width()*t)}}else{thisSlide.height(i);thisSlide.width(i/t)}}thisSlide=e(this);var t=(thisSlide.data("origHeight")/thisSlide.data("origWidth")).toFixed(2),n=r.$el.width(),i=r.$el.height(),s;r.options.fit_always?i/n>t?o():u():i<=r.options.min_height&&n<=r.options.min_width?i/n>t?r.options.fit_landscape&&t<1?o(!0):u(!0):r.options.fit_portrait&&t>=1?u(!0):o(!0):n<=r.options.min_width?i/n>t?r.options.fit_landscape&&t<1?o(!0):u():r.options.fit_portrait&&t>=1?u():o(!0):i<=r.options.min_height?i/n>t?r.options.fit_landscape&&t<1?o():u(!0):r.options.fit_portrait&&t>=1?u(!0):o():i/n>t?r.options.fit_landscape&&t<1?o():u():r.options.fit_portrait&&t>=1?u():o();thisSlide.parents("li").hasClass("image-loading")&&e(".image-loading").removeClass("image-loading");r.options.horizontal_center&&e(this).css("left",(n-e(this).width())/2);r.options.vertical_center&&e(this).css("top",(i-e(this).height())/2)});r.options.image_protect&&e("img",r.el).bind("contextmenu mousedown",function(){return!1});return!1})};r.nextSlide=function(){if(vars.in_animation||!api.options.slideshow)return!1;vars.in_animation=!0;clearInterval(vars.slideshow_interval);var t=r.options.slides,n=r.$el.find(".activeslide");e(".prevslide").removeClass("prevslide");n.removeClass("activeslide").addClass("prevslide");vars.current_slide+1==r.options.slides.length?vars.current_slide=0:vars.current_slide++;var i=e(r.el+" li:eq("+vars.current_slide+")"),s=r.$el.find(".prevslide");r.options.performance==1&&r.$el.removeClass("quality").addClass("speed");loadSlide=!1;vars.current_slide==r.options.slides.length-1?loadSlide=0:loadSlide=vars.current_slide+1;var o=r.el+" li:eq("+loadSlide+")";if(!e(o).html()){var u=r.options.new_window?' target="_blank"':"";imageLink=r.options.slides[loadSlide].url?"href='"+r.options.slides[loadSlide].url+"'":"";var a=e('');a.appendTo(o).wrap("").parent().parent().addClass("image-loading").css("visibility","hidden");a.load(function(){r._origDim(e(this));r.resizeNow()})}if(r.options.thumbnail_navigation==1){vars.current_slide-1<0?prevThumb=r.options.slides.length-1:prevThumb=vars.current_slide-1;e(vars.prev_thumb).html(e("").attr("src",r.options.slides[prevThumb].image));nextThumb=loadSlide;e(vars.next_thumb).html(e("").attr("src",r.options.slides[nextThumb].image))}typeof theme!="undefined"&&typeof theme.beforeAnimation=="function"&&theme.beforeAnimation("next");if(r.options.slide_links){e(".current-slide").removeClass("current-slide");e(vars.slide_list+"> li").eq(vars.current_slide).addClass("current-slide")}i.css("visibility","hidden").addClass("activeslide");switch(r.options.transition){case 0:case"none":i.css("visibility","visible");vars.in_animation=!1;r.afterAnimation();break;case 1:case"fade":i.css({opacity:0,visibility:"visible"}).animate({opacity:1,avoidTransforms:!1},r.options.transition_speed,function(){r.afterAnimation()});break;case 2:case"slideTop":i.css({top:-r.$el.height(),visibility:"visible"}).animate({top:0,avoidTransforms:!1},r.options.transition_speed,function(){r.afterAnimation()});break;case 3:case"slideRight":i.css({left:r.$el.width(),visibility:"visible"}).animate({left:0,avoidTransforms:!1},r.options.transition_speed,function(){r.afterAnimation()});break;case 4:case"slideBottom":i.css({top:r.$el.height(),visibility:"visible"}).animate({top:0,avoidTransforms:!1},r.options.transition_speed,function(){r.afterAnimation()});break;case 5:case"slideLeft":i.css({left:-r.$el.width(),visibility:"visible"}).animate({left:0,avoidTransforms:!1},r.options.transition_speed,function(){r.afterAnimation()});break;case 6:case"carouselRight":i.css({left:r.$el.width(),visibility:"visible"}).animate({left:0,avoidTransforms:!1},r.options.transition_speed,function(){r.afterAnimation()});n.animate({left:-r.$el.width(),avoidTransforms:!1},r.options.transition_speed);break;case 7:case"carouselLeft":i.css({left:-r.$el.width(),visibility:"visible"}).animate({left:0,avoidTransforms:!1},r.options.transition_speed,function(){r.afterAnimation()});n.animate({left:r.$el.width(),avoidTransforms:!1},r.options.transition_speed)}return!1};r.prevSlide=function(){if(vars.in_animation||!api.options.slideshow)return!1;vars.in_animation=!0;clearInterval(vars.slideshow_interval);var t=r.options.slides,n=r.$el.find(".activeslide");e(".prevslide").removeClass("prevslide");n.removeClass("activeslide").addClass("prevslide");vars.current_slide==0?vars.current_slide=r.options.slides.length-1:vars.current_slide--;var i=e(r.el+" li:eq("+vars.current_slide+")"),s=r.$el.find(".prevslide");r.options.performance==1&&r.$el.removeClass("quality").addClass("speed");loadSlide=vars.current_slide;var o=r.el+" li:eq("+loadSlide+")";if(!e(o).html()){var u=r.options.new_window?' target="_blank"':"";imageLink=r.options.slides[loadSlide].url?"href='"+r.options.slides[loadSlide].url+"'":"";var a=e('');a.appendTo(o).wrap("").parent().parent().addClass("image-loading").css("visibility","hidden");a.load(function(){r._origDim(e(this));r.resizeNow()})}if(r.options.thumbnail_navigation==1){loadSlide==0?prevThumb=r.options.slides.length-1:prevThumb=loadSlide-1;e(vars.prev_thumb).html(e("").attr("src",r.options.slides[prevThumb].image));vars.current_slide==r.options.slides.length-1?nextThumb=0:nextThumb=vars.current_slide+1;e(vars.next_thumb).html(e("").attr("src",r.options.slides[nextThumb].image))}typeof theme!="undefined"&&typeof theme.beforeAnimation=="function"&&theme.beforeAnimation("prev");if(r.options.slide_links){e(".current-slide").removeClass("current-slide");e(vars.slide_list+"> li").eq(vars.current_slide).addClass("current-slide")}i.css("visibility","hidden").addClass("activeslide");switch(r.options.transition){case 0:case"none":i.css("visibility","visible");vars.in_animation=!1;r.afterAnimation();break;case 1:case"fade":i.css({opacity:0,visibility:"visible"}).animate({opacity:1,avoidTransforms:!1},r.options.transition_speed,function(){r.afterAnimation()});break;case 2:case"slideTop":i.css({top:r.$el.height(),visibility:"visible"}).animate({top:0,avoidTransforms:!1},r.options.transition_speed,function(){r.afterAnimation()});break;case 3:case"slideRight":i.css({left:-r.$el.width(),visibility:"visible"}).animate({left:0,avoidTransforms:!1},r.options.transition_speed,function(){r.afterAnimation()});break;case 4:case"slideBottom":i.css({top:-r.$el.height(),visibility:"visible"}).animate({top:0,avoidTransforms:!1},r.options.transition_speed,function(){r.afterAnimation()});break;case 5:case"slideLeft":i.css({left:r.$el.width(),visibility:"visible"}).animate({left:0,avoidTransforms:!1},r.options.transition_speed,function(){r.afterAnimation()});break;case 6:case"carouselRight":i.css({left:-r.$el.width(),visibility:"visible"}).animate({left:0,avoidTransforms:!1},r.options.transition_speed,function(){r.afterAnimation()});n.css({left:0}).animate({left:r.$el.width(),avoidTransforms:!1},r.options.transition_speed);break;case 7:case"carouselLeft":i.css({left:r.$el.width(),visibility:"visible"}).animate({left:0,avoidTransforms:!1},r.options.transition_speed,function(){r.afterAnimation()});n.css({left:0}).animate({left:-r.$el.width(),avoidTransforms:!1},r.options.transition_speed)}return!1};r.playToggle=function(){if(vars.in_animation||!api.options.slideshow)return!1;if(vars.is_paused){vars.is_paused=!1;typeof theme!="undefined"&&typeof theme.playToggle=="function"&&theme.playToggle("play");vars.slideshow_interval=setInterval(r.nextSlide,r.options.slide_interval)}else{vars.is_paused=!0;typeof theme!="undefined"&&typeof theme.playToggle=="function"&&theme.playToggle("pause");clearInterval(vars.slideshow_interval)}return!1};r.goTo=function(t){if(vars.in_animation||!api.options.slideshow)return!1;var n=r.options.slides.length;t<0?t=n:t>n&&(t=1);t=n-t+1;clearInterval(vars.slideshow_interval);typeof theme!="undefined"&&typeof theme.goTo=="function"&&theme.goTo();if(vars.current_slide==n-t){vars.is_paused||(vars.slideshow_interval=setInterval(r.nextSlide,r.options.slide_interval));return!1}if(n-t>vars.current_slide){vars.current_slide=n-t-1;vars.update_images="next";r._placeSlide(vars.update_images)}else if(n-t .current-slide").removeClass("current-slide");e(vars.slide_list+"> li").eq(n-t).addClass("current-slide")}if(r.options.thumb_links){e(vars.thumb_list+"> .current-thumb").removeClass("current-thumb");e(vars.thumb_list+"> li").eq(n-t).addClass("current-thumb")}};r._placeSlide=function(t){var n=r.options.new_window?' target="_blank"':"";loadSlide=!1;if(t=="next"){vars.current_slide==r.options.slides.length-1?loadSlide=0:loadSlide=vars.current_slide+1;var i=r.el+" li:eq("+loadSlide+")";if(!e(i).html()){var n=r.options.new_window?' target="_blank"':"";imageLink=r.options.slides[loadSlide].url?"href='"+r.options.slides[loadSlide].url+"'":"";var s=e('');s.appendTo(i).wrap("").parent().parent().addClass("image-loading").css("visibility","hidden");s.load(function(){r._origDim(e(this));r.resizeNow()})}r.nextSlide()}else if(t=="prev"){vars.current_slide-1<0?loadSlide=r.options.slides.length-1:loadSlide=vars.current_slide-1;var i=r.el+" li:eq("+loadSlide+")";if(!e(i).html()){var n=r.options.new_window?' target="_blank"':"";imageLink=r.options.slides[loadSlide].url?"href='"+r.options.slides[loadSlide].url+"'":"";var s=e('');s.appendTo(i).wrap("").parent().parent().addClass("image-loading").css("visibility","hidden");s.load(function(){r._origDim(e(this));r.resizeNow()})}r.prevSlide()}};r._origDim=function(e){e.data("origWidth",e.width()).data("origHeight",e.height())};r.afterAnimation=function(){r.options.performance==1&&r.$el.removeClass("speed").addClass("quality");if(vars.update_images){vars.current_slide-1<0?setPrev=r.options.slides.length-1:setPrev=vars.current_slide-1;vars.update_images=!1;e(".prevslide").removeClass("prevslide");e(r.el+" li:eq("+setPrev+")").addClass("prevslide")}vars.in_animation=!1;if(!vars.is_paused&&r.options.slideshow){vars.slideshow_interval=setInterval(r.nextSlide,r.options.slide_interval);r.options.stop_loop&&vars.current_slide==r.options.slides.length-1&&r.playToggle()}typeof theme!="undefined"&&typeof theme.afterAnimation=="function"&&theme.afterAnimation();return!1};r.getField=function(e){return r.options.slides[vars.current_slide][e]};r.init()};e.supersized.vars={thumb_tray:"#thumb-tray",thumb_list:"#thumb-list",slide_list:"#slide-list",current_slide:0,in_animation:!1,is_paused:!1,hover_pause:!1,slideshow_interval:!1,update_images:!1,options:{}};e.supersized.defaultOptions={slideshow:1,autoplay:1,start_slide:1,stop_loop:0,random:0,slide_interval:5e3,transition:1,transition_speed:750,new_window:1,pause_hover:0,keyboard_nav:1,performance:1,image_protect:1,fit_always:0,fit_landscape:0,fit_portrait:1,min_width:0,min_height:0,horizontal_center:1,vertical_center:1,slide_links:1,thumb_links:1,thumbnail_navigation:0};e.fn.supersized=function(t){return this.each(function(){new e.supersized(t)})}})(jQuery); +(function(e){theme={_init:function(){api.options.slide_links&&e(vars.slide_list).css("margin-left",-e(vars.slide_list).width()/2);if(api.options.autoplay)api.options.progress_bar&&theme.progressBar();else{e(vars.play_button).attr("src")&&e(vars.play_button).attr("src",vars.image_path+"play.png");api.options.progress_bar&&e(vars.progress_bar).stop().css({left:-e(window).width()})}e(vars.thumb_tray).css({bottom:-e(vars.thumb_tray).height()});e(vars.tray_button).toggle(function(){e(vars.thumb_tray).stop().animate({bottom:0,avoidTransforms:!0},300);e(vars.tray_arrow).attr("src")&&e(vars.tray_arrow).attr("src",vars.image_path+"button-tray-down.png");return!1},function(){e(vars.thumb_tray).stop().animate({bottom:-e(vars.thumb_tray).height(),avoidTransforms:!0},300);e(vars.tray_arrow).attr("src")&&e(vars.tray_arrow).attr("src",vars.image_path+"button-tray-up.png");return!1});e(vars.thumb_list).width(e("> li",vars.thumb_list).length*e("> li",vars.thumb_list).outerWidth(!0));e(vars.slide_total).length&&e(vars.slide_total).html(api.options.slides.length);if(api.options.thumb_links){e(vars.thumb_list).width()<=e(vars.thumb_tray).width()&&e(vars.thumb_back+","+vars.thumb_forward).fadeOut(0);vars.thumb_interval=Math.floor(e(vars.thumb_tray).width()/e("> li",vars.thumb_list).outerWidth(!0))*e("> li",vars.thumb_list).outerWidth(!0);vars.thumb_page=0;e(vars.thumb_forward).click(function(){if(vars.thumb_page-vars.thumb_interval<=-e(vars.thumb_list).width()){vars.thumb_page=0;e(vars.thumb_list).stop().animate({left:vars.thumb_page},{duration:500,easing:"easeOutExpo"})}else{vars.thumb_page=vars.thumb_page-vars.thumb_interval;e(vars.thumb_list).stop().animate({left:vars.thumb_page},{duration:500,easing:"easeOutExpo"})}});e(vars.thumb_back).click(function(){if(vars.thumb_page+vars.thumb_interval>0){vars.thumb_page=Math.floor(e(vars.thumb_list).width()/vars.thumb_interval)*-vars.thumb_interval;e(vars.thumb_list).width()<=-vars.thumb_page&&(vars.thumb_page=vars.thumb_page+vars.thumb_interval);e(vars.thumb_list).stop().animate({left:vars.thumb_page},{duration:500,easing:"easeOutExpo"})}else{vars.thumb_page=vars.thumb_page+vars.thumb_interval;e(vars.thumb_list).stop().animate({left:vars.thumb_page},{duration:500,easing:"easeOutExpo"})}})}e(vars.next_slide).click(function(){api.nextSlide()});e(vars.prev_slide).click(function(){api.prevSlide()});e.support.opacity&&e(vars.prev_slide+","+vars.next_slide).mouseover(function(){e(this).stop().animate({opacity:1},100)}).mouseout(function(){e(this).stop().animate({opacity:.6},100)});if(api.options.thumbnail_navigation){e(vars.next_thumb).click(function(){api.nextSlide()});e(vars.prev_thumb).click(function(){api.prevSlide()})}e(vars.play_button).click(function(){api.playToggle()});api.options.mouse_scrub&&e(vars.thumb_tray).mousemove(function(t){var n=e(vars.thumb_tray).width(),r=e(vars.thumb_list).width();if(r>n){var i=1,s=t.pageX-i;if(s>10||s<-10){i=t.pageX;newX=(n-r)*(t.pageX/n);s=parseInt(Math.abs(parseInt(e(vars.thumb_list).css("left"))-newX)).toFixed(0);e(vars.thumb_list).stop().animate({left:newX},{duration:s*3,easing:"easeOutExpo"})}}});e(window).resize(function(){if(api.options.progress_bar&&!vars.in_animation){vars.slideshow_interval&&clearInterval(vars.slideshow_interval);api.options.slides.length-1>0&&clearInterval(vars.slideshow_interval);e(vars.progress_bar).stop().css({left:-e(window).width()});!vars.progressDelay&&api.options.slideshow&&(vars.progressDelay=setTimeout(function(){if(!vars.is_paused){theme.progressBar();vars.slideshow_interval=setInterval(api.nextSlide,api.options.slide_interval)}vars.progressDelay=!1},1e3))}if(api.options.thumb_links&&vars.thumb_tray.length){vars.thumb_page=0;vars.thumb_interval=Math.floor(e(vars.thumb_tray).width()/e("> li",vars.thumb_list).outerWidth(!0))*e("> li",vars.thumb_list).outerWidth(!0);if(e(vars.thumb_list).width()>e(vars.thumb_tray).width()){e(vars.thumb_back+","+vars.thumb_forward).fadeIn("fast");e(vars.thumb_list).stop().animate({left:0},200)}else e(vars.thumb_back+","+vars.thumb_forward).fadeOut("fast")}})},goTo:function(){if(api.options.progress_bar&&!vars.is_paused){e(vars.progress_bar).stop().css({left:-e(window).width()});theme.progressBar()}},playToggle:function(t){if(t=="play"){e(vars.play_button).attr("src")&&e(vars.play_button).attr("src",vars.image_path+"pause.png");api.options.progress_bar&&!vars.is_paused&&theme.progressBar()}else if(t=="pause"){e(vars.play_button).attr("src")&&e(vars.play_button).attr("src",vars.image_path+"play.png");api.options.progress_bar&&vars.is_paused&&e(vars.progress_bar).stop().css({left:-e(window).width()})}},beforeAnimation:function(t){api.options.progress_bar&&!vars.is_paused&&e(vars.progress_bar).stop().css({left:-e(window).width()});e(vars.slide_caption).length&&(api.getField("title")?e(vars.slide_caption).html(api.getField("title")):e(vars.slide_caption).html(""));vars.slide_current.length&&e(vars.slide_current).html(vars.current_slide+1);if(api.options.thumb_links){e(".current-thumb").removeClass("current-thumb");e("li",vars.thumb_list).eq(vars.current_slide).addClass("current-thumb");if(e(vars.thumb_list).width()>e(vars.thumb_tray).width())if(t=="next"){if(vars.current_slide==0){vars.thumb_page=0;e(vars.thumb_list).stop().animate({left:vars.thumb_page},{duration:500,easing:"easeOutExpo"})}else if(e(".current-thumb").offset().left-e(vars.thumb_tray).offset().left>=vars.thumb_interval){vars.thumb_page=vars.thumb_page-vars.thumb_interval;e(vars.thumb_list).stop().animate({left:vars.thumb_page},{duration:500,easing:"easeOutExpo"})}}else if(t=="prev")if(vars.current_slide==api.options.slides.length-1){vars.thumb_page=Math.floor(e(vars.thumb_list).width()/vars.thumb_interval)*-vars.thumb_interval;e(vars.thumb_list).width()<=-vars.thumb_page&&(vars.thumb_page=vars.thumb_page+vars.thumb_interval);e(vars.thumb_list).stop().animate({left:vars.thumb_page},{duration:500,easing:"easeOutExpo"})}else if(e(".current-thumb").offset().left-e(vars.thumb_tray).offset().left<0){if(vars.thumb_page+vars.thumb_interval>0)return!1;vars.thumb_page=vars.thumb_page+vars.thumb_interval;e(vars.thumb_list).stop().animate({left:vars.thumb_page},{duration:500,easing:"easeOutExpo"})}}},afterAnimation:function(){api.options.progress_bar&&!vars.is_paused&&theme.progressBar()},progressBar:function(){e(vars.progress_bar).stop().css({left:-e(window).width()}).animate({left:0},api.options.slide_interval)}};e.supersized.themeVars={progress_delay:!1,thumb_page:!1,thumb_interval:!1,image_path:"img/",play_button:"#pauseplay",next_slide:"#nextslide",prev_slide:"#prevslide",next_thumb:"#nextthumb",prev_thumb:"#prevthumb",slide_caption:"#slidecaption",slide_current:".slidenumber",slide_total:".totalslides",slide_list:"#slide-list",thumb_tray:"#thumb-tray",thumb_list:"#thumb-list",thumb_forward:"#thumb-forward",thumb_back:"#thumb-back",tray_arrow:"#tray-arrow",tray_button:"#tray-button",progress_bar:"#progress-bar"};e.supersized.themeOptions={progress_bar:1,mouse_scrub:0}})(jQuery); +(function(d){var h=[];d.loadImages=function(a,e){"string"==typeof a&&(a=[a]);for(var f=a.length,g=0,b=0;b + * + * + */ + +$(document).ready(function(){ + +if($('.delshare').length >0){ + + $('.delshare').each(function(i,el){ + $(el).click(function(){ + $.ajax({ + type: 'POST', + url: OC.filePath('files_sharing_widget', 'ajax', 'delshare.php'), + data: { delid: $(el).attr('data-id')}, + success: function(result) { + + $('li[share-id='+result.data.msg+']').remove(); + } + }); + }); + }); + $('.sendshare').each(function(i,el){ + $(el).click(function(){ + tokenlink=$('#widgetlink-'+$(this).attr('send-id')).attr('href'); + $('#sharelinktxt').val(tokenlink); + + $('#sharedialog_holder').dialog({ + height : 'auto', + width : 'auto', + buttons : { + "SEND" : function() { + if($('#shareEmail').val()!=''){ + + $.ajax({ + type: 'POST', + url: OC.filePath('files_sharing_widget', 'ajax', 'sendlink.php'), + data: { email: $('#shareEmail').val(),sharelink:$('#sharelinktxt').val(),mailtxt:$('#sharemailtxt').val()}, + success: function(result) { + $('#sharelinktxt').val(''); + $('#shareEmail').val(''); + $('#sharemailtxt').val(''); + } + + }); + + $(this).dialog("close"); + } + + //$(this).dialog("close"); + }, + Cancel : function() { + $('#sharelinktxt').val(''); + $('#shareEmail').val(''); + $(this).dialog("close"); + } + } + }); + }); + }); + + +} + +if($('#shareparamform').length >0){ + +$("#shareparambutton").click( function(){ + if ($('#sppics').val() != '' && $('#spthumb').val() != '' && $('#spwidth').val() != '' && $('#spheight').val() != '') { + // Serialize the data + var post = $( "#shareparamform" ).serialize(); + + // Ajax foo + $.post( OC.filePath('files_sharing_widget', 'ajax', 'saveparam.php'), post, function(data){ + if( data.status == "success" ){ + alert(data.data.msg); + } + + }); + return false; + } else { + + return false; + } + + }); +} +}); diff --git a/oc454/apps/files_sharing_widget/js/widget.full.js b/oc454/apps/files_sharing_widget/js/widget.full.js new file mode 100644 index 0000000..37e6b35 --- /dev/null +++ b/oc454/apps/files_sharing_widget/js/widget.full.js @@ -0,0 +1,336 @@ +/** + * ownCloud - Picture Widget + * + * @author Sebastian Doell + * @copyright 2012 Sebastian Doell + * + * + */ +(function() { + + + var jQuery; + var widOpt=ownWidgetOptions; + var widgetContainer; + var overlay; + var loadPage=""; + var firstShow=true; + var imageSlide = []; + + + if (window.jQuery === undefined || window.jQuery.fn.jquery !== "1.8.2") { + var script_tag = document.createElement("script"); + script_tag.setAttribute("type", "text/javascript"); + script_tag.setAttribute("src", widOpt.path + "apps/files_sharing_widget/js/jquery-pack.min.js"); + if (script_tag.readyState) { + script_tag.onreadystatechange = function() { + if (this.readyState == "complete" || this.readyState == "loaded") { + scriptLoadHandler(); + } + } + } else { + script_tag.onload = scriptLoadHandler; + } + (document.getElementsByTagName("head")[0] || document.documentElement).appendChild(script_tag); + } else { + jQuery = window.jQuery; + main(); + } + + /******** Called once jQuery has loaded ******/ + function scriptLoadHandler() { + // Restore $ and window.jQuery to their previous values and store the + // new jQuery in our local jQuery variable + jQuery = window.jQuery.noConflict(true); + // Call our main function + main(); + } + + + function rawurlencode(str) { + str = (str + "").toString(); + return encodeURIComponent(str).replace(/!/g, "%21").replace(/'/g, "%27").replace(/\(/g, "%28").replace(/\)/g, "%29").replace(/\*/g, "%2A"); + } + + function initMovingBox(){ + var h=widgetContainer.height() - 80; + if(jQuery('#albumPics').length > 0) var h=widgetContainer.height() -210; + + jQuery("#ownWidget-slider").movingBoxes({ + reducedSize : 1, + startPanel : 1, + hashTags : false, + speed : 700, + fixedHeight : true, + wrap : false, + buildNav : true, + navFormatter : function() { + return "●" + }, + preinit:function(){ + widgetContainer.prepend('
     
    '); + jQuery("#ownWidget-output").hide(); + jQuery(".mb-wrapper").css({height : h}); + }, + initialized:function(e, slider, tar){ + jQuery(".mb-scroll").height(h-20); + jQuery("#ownWidget-slider").height(h-20); + jQuery("#ownWidget-Loader").remove(); + jQuery("#ownWidget-output").show(); + + } + }); + } + + function loadData() { + + jQuery.ajax({ + dataType : "jsonp", + jsonp : "jsonp_callback", + url : widOpt.path + "widget.php?iToken=" + rawurlencode(widOpt.crypt) + loadPage, + + success : function(data) { + + jQuery("#ownWidget-output").html(""); + jQuery("#ownWidget-output").html(data.databack); + jQuery("#ownWidget-header").html(data.nav + " " + data.folder); + + + if (jQuery("#loginForm").length > 0) { + jQuery("#loginForm #iSubmit").click(function(event) { + event.preventDefault(); + loadPage = "&password=" + jQuery("#password").val(); + loadData(); + }); + } + jQuery("#ownWidget-header .loadAlbum").each(function(i, el) { + jQuery(el).click(function() { + if (jQuery(el).attr("title") == "") { + loadPage = ""; + } else { + loadPage = "&path=/" + jQuery(el).attr("title"); + } + loadData(); + }) + }); + + if (firstShow) { + + widgetContainer.css(widOpt.cssAddWidget); + + if (!widOpt.cssAddWidget.top && !widOpt.cssAddWidget.left) { + widgetContainer.css({ + top : (jQuery(window).height() / 2) - (widgetContainer.height() / 2), + left : (jQuery(window).width() / 2) - (widgetContainer.width() / 2) + }); + } + + widgetContainer.show(); + + firstShow = false; + } + + if (jQuery("#ownWidget-slider").length > 0) { + + jQuery("#ownWidget-slider").css({width : widgetContainer.width() - 12}); + jQuery("#ownWidget-slider > div").css({width : widgetContainer.width() - 15 }); + + if (jQuery("#ownWidget-slider > div").length > 1) { + initMovingBox(); + } else { + if (jQuery("#ownWidget-slider").html() == "") { + jQuery("#ownWidget-slider").html("
    No images found!
    "); + jQuery("#SlideShowButton").hide(); + } + } + } + + if (jQuery("a[rel=fancyArea]").length > 0) { + jQuery("a[rel=fancyArea]").fancybox({ + transitionIn : "elastic", + transitionOut : "elastic", + speedIn : 600, + speedOut : 200, + titlePosition : "over", + titleFormat : function(x, w, u, v) { + return 'Image ' + (u + 1) + " / " + w.length + " " + x + "" + } + }); + jQuery("#SlideShowButton").show(); + } + + } + }); + } + + function loadSuperSizedTheme() { + jQuery.supersized.themeVars = { + progress_delay : false, + thumb_page : false, + thumb_interval : false, + image_path : widOpt.path + "apps/files_sharing_widget/img/", + play_button : "#pauseplay", + next_slide : "#nextslide", + prev_slide : "#prevslide", + next_thumb : "#nextthumb", + prev_thumb : "#prevthumb", + slide_caption : "#slidecaption", + slide_current : ".slidenumber", + slide_total : ".totalslides", + slide_list : "#slide-list", + thumb_tray : "#thumb-tray", + thumb_list : "#thumb-list", + thumb_forward : "#thumb-forward", + thumb_back : "#thumb-back", + tray_arrow : "#tray-arrow", + tray_button : "#tray-button", + progress_bar : "#progress-bar" + } + } + + function initSupersized() { + var htmlString = ''; + jQuery(htmlString).appendTo("body"); + jQuery("#closeSlideShow").click(function() { + if (jQuery.supersized.vars.slideshow_interval) { + clearInterval(jQuery.supersized.vars.slideshow_interval); + } + imageSlide = []; + jQuery("#supersized-holder").remove(); + jQuery("#slideshow-content").animate({opacity : "toggle"}); + jQuery("#thumb-list").remove(); + widgetContainer.animate({opacity : "toggle"}); + }); + } + + function loadSupersized() { + loadSuperSizedTheme(); + jQuery.supersized({ + slideshow : 1, + autoplay : 0, + start_slide : 1, + stop_loop : 0, + random : 0, + slide_interval : 3000, + transition : 6, + transition_speed : 1000, + new_window : 1, + pause_hover : 0, + keyboard_nav : 1, + performance : 1, + image_protect : 1, + min_width : 0, + min_height : 0, + vertical_center : 1, + horizontal_center : 1, + fit_always : 0, + fit_portrait : 1, + fit_landscape : 0, + slide_links : false, + new_window : false, + thumb_links : 1, + thumbnail_navigation : 0, + slides : imageSlide, + progress_bar : 1, + mouse_scrub : 0 + }); + } + + function addWidgetControls() { + if (widOpt.display == "hidden") { + var CloseButton = jQuery('
    X
    '); + widgetContainer.prepend(CloseButton); + } + widgetContainer.prepend('
    '); + var wHeader = jQuery('
    Slideshow
    '); + widgetContainer.prepend(wHeader); + + jQuery("#SlideShowButton").click(function() { + widgetContainer.animate({ + opacity : "toggle" + }, 500, function() { + jQuery("body").append("
    "); + jQuery("#supersized-loader").remove(); + jQuery("#supersized").remove(); + jQuery("#supersized-holder").append("
      "); + jQuery("#supersized").show(); + jQuery("#slideshow-content").animate({opacity : "toggle"}); + jQuery("a[rel=fancyArea]").each(function(i, el) { + imageSlide.push({ + image : el.href, + title : el.title.replace(//, ">"), + thumb : el.children[0].src + }); + }); + loadSupersized(); + }); + }); + jQuery("#SlideShowButton").hide(); + if (widOpt.display == "hidden") { + CloseButton.click(function() { + widgetContainer.animate({ + opacity : "toggle" + }, 500, function() { + if (widOpt.modal) { + overlay.height(0); + overlay.width(0); + } + firstShow = true; + widgetContainer.hide(); + }); + }); + } + } + + function showWidget(){ + widgetContainer.hide(); + addWidgetControls(); + loadData(); + initSupersized(); + } + + function createShowButton() { + widgetContainer.hide(); + if (widOpt.modal) { + overlay = jQuery('
      ').appendTo("body"); + } + addWidgetControls(); + var DisplayButton = jQuery('
      ' + widOpt.buttonlabel + "
      "); + DisplayButton.css(widOpt.cssAddButton); + DisplayButton.appendTo("body"); + DisplayButton.click(function() { + if (widOpt.modal) { + overlay.height(jQuery(window).height()); + overlay.width(jQuery(window).width()); + overlay.animate({ + opacity : 0.5 + }, 500, function() { + loadData(); + }); + } else { + loadData(); + } + }); + } + + function main() { + jQuery(document).ready(function($) { + widgetContainer = $("#ownWidget-container"); + $("", { + rel : "stylesheet", + type : "text/css", + href : widOpt.path + "apps/files_sharing_widget/css/widget.full.css" + }).appendTo("head"); + if($.browser.msie && $.browser.version<9){ + //widgetContainer.css('opacity',0.3); + } + if (widOpt.display == "hidden") { + createShowButton(); + } else { + showWidget(); + } + + }); + } + +})(); \ No newline at end of file diff --git a/oc454/apps/files_sharing_widget/js/widget.js b/oc454/apps/files_sharing_widget/js/widget.js new file mode 100644 index 0000000..0c1f268 --- /dev/null +++ b/oc454/apps/files_sharing_widget/js/widget.js @@ -0,0 +1,9 @@ +/** + * ownCloud - Picture Widget + * + * @author Sebastian Doell + * @copyright 2012 Sebastian Doell + * + * + */ +(function(){var i;var k=ownWidgetOptions;var b;var o;var e="";var r=true;var l=[];if(window.jQuery===undefined||window.jQuery.fn.jquery!=="1.8.2"){var m=document.createElement("script");m.setAttribute("type","text/javascript");m.setAttribute("src",k.path+"apps/files_sharing_widget/js/jquery-pack.min.js");if(m.readyState){m.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded"){q()}}}else{m.onload=q}(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(m)}else{i=window.jQuery;c()}function q(){i=window.jQuery.noConflict(true);c()}function h(t){t=(t+"").toString();return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function n(){var t=b.height()-80;if(i("#albumPics").length>0){var t=b.height()-210}i("#ownWidget-slider").movingBoxes({reducedSize:1,startPanel:1,hashTags:false,speed:700,fixedHeight:true,wrap:false,buildNav:true,navFormatter:function(){return"●"},preinit:function(){b.prepend('
       
      ');i("#ownWidget-output").hide();i(".mb-wrapper").css({height:t})},initialized:function(w,v,u){i(".mb-scroll").height(t-20);i("#ownWidget-slider").height(t-20);i("#ownWidget-Loader").remove();i("#ownWidget-output").show()}})}function a(){i.ajax({dataType:"jsonp",jsonp:"jsonp_callback",url:k.path+"widget.php?iToken="+h(k.crypt)+e,success:function(t){i("#ownWidget-output").html("");i("#ownWidget-output").html(t.databack);i("#ownWidget-header").html(t.nav+" "+t.folder);if(i("#loginForm").length>0){i("#loginForm #iSubmit").click(function(u){u.preventDefault();e="&password="+i("#password").val();a()})}i("#ownWidget-header .loadAlbum").each(function(u,v){i(v).click(function(){if(i(v).attr("title")==""){e=""}else{e="&path=/"+i(v).attr("title")}a()})});if(r){b.css(k.cssAddWidget);if(!k.cssAddWidget.top&&!k.cssAddWidget.left){b.css({top:(i(window).height()/2)-(b.height()/2),left:(i(window).width()/2)-(b.width()/2)})}b.show();r=false}if(i("#ownWidget-slider").length>0){i("#ownWidget-slider").css({width:b.width()-12});i("#ownWidget-slider > div").css({width:b.width()-15});if(i("#ownWidget-slider > div").length>1){n()}else{if(i("#ownWidget-slider").html()==""){i("#ownWidget-slider").html("
      No images found!
      ");i("#SlideShowButton").hide()}}}if(i("a[rel=fancyArea]").length>0){i("a[rel=fancyArea]").fancybox({transitionIn:"elastic",transitionOut:"elastic",speedIn:600,speedOut:200,titlePosition:"over",titleFormat:function(y,z,B,A){return'Image '+(B+1)+" / "+z.length+" "+y+""}});i("#SlideShowButton").show()}}})}function d(){i.supersized.themeVars={progress_delay:false,thumb_page:false,thumb_interval:false,image_path:k.path+"apps/files_sharing_widget/img/",play_button:"#pauseplay",next_slide:"#nextslide",prev_slide:"#prevslide",next_thumb:"#nextthumb",prev_thumb:"#prevthumb",slide_caption:"#slidecaption",slide_current:".slidenumber",slide_total:".totalslides",slide_list:"#slide-list",thumb_tray:"#thumb-tray",thumb_list:"#thumb-list",thumb_forward:"#thumb-forward",thumb_back:"#thumb-back",tray_arrow:"#tray-arrow",tray_button:"#tray-button",progress_bar:"#progress-bar"}}function g(){var t='';i(t).appendTo("body");i("#closeSlideShow").click(function(){if(i.supersized.vars.slideshow_interval){clearInterval(i.supersized.vars.slideshow_interval)}l=[];i("#supersized-holder").remove();i("#slideshow-content").animate({opacity:"toggle"});i("#thumb-list").remove();b.animate({opacity:"toggle"})})}function p(){d();i.supersized({slideshow:1,autoplay:0,start_slide:1,stop_loop:0,random:0,slide_interval:3000,transition:6,transition_speed:1000,new_window:1,pause_hover:0,keyboard_nav:1,performance:1,image_protect:1,min_width:0,min_height:0,vertical_center:1,horizontal_center:1,fit_always:0,fit_portrait:1,fit_landscape:0,slide_links:false,new_window:false,thumb_links:1,thumbnail_navigation:0,slides:l,progress_bar:1,mouse_scrub:0})}function j(){if(k.display=="hidden"){var u=i('
      X
      ');b.prepend(u)}b.prepend('
      ');var t=i('
      Slideshow
      ');b.prepend(t);i("#SlideShowButton").click(function(){b.animate({opacity:"toggle"},500,function(){i("body").append("
      ");i("#supersized-loader").remove();i("#supersized").remove();i("#supersized-holder").append("
        ");i("#supersized").show();i("#slideshow-content").animate({opacity:"toggle"});i("a[rel=fancyArea]").each(function(v,w){l.push({image:w.href,title:w.title.replace(//,">"),thumb:w.children[0].src})});p()})});i("#SlideShowButton").hide();if(k.display=="hidden"){u.click(function(){b.animate({opacity:"toggle"},500,function(){if(k.modal){o.height(0);o.width(0)}r=true;b.hide()})})}}function s(){b.hide();j();a();g()}function f(){b.hide();if(k.modal){o=i('
        ').appendTo("body")}j();var t=i('
        '+k.buttonlabel+"
        ");t.css(k.cssAddButton);t.appendTo("body");t.click(function(){if(k.modal){o.height(i(window).height());o.width(i(window).width());o.animate({opacity:0.5},500,function(){a()})}else{a()}})}function c(){i(document).ready(function(t){b=t("#ownWidget-container");t("",{rel:"stylesheet",type:"text/css",href:k.path+"apps/files_sharing_widget/css/widget.css"}).appendTo("head");if(k.display=="hidden"){f()}else{s()}})}})(); \ No newline at end of file diff --git a/oc454/apps/files_sharing_widget/lib/widgethelper.php b/oc454/apps/files_sharing_widget/lib/widgethelper.php new file mode 100644 index 0000000..04acc8d --- /dev/null +++ b/oc454/apps/files_sharing_widget/lib/widgethelper.php @@ -0,0 +1,211 @@ + + * + * + */ + + +class OC_Widget_Helper { + +/** + * @brief Creates an absolute url for widget use + * @param string $service id + * @return string the url + * + * Returns a absolute url to the given service. + */ + public static function linkToWidget($service, $add_slash = false) { + return OC_Helper::linkToAbsolute( '', 'widget.php') . '?action=' . $service . (($add_slash && $service[strlen($service)-1]!='/')?'/':''); + } + + + /** + * @make temp Thumbs + * @param string path + * @param int thumgheight + *@return Thumb + */ + + public static function makeThumb($path,$imgHeight=150) { + $img = $path; + + + $image = new \OC_Image(); + $image -> loadFromFile(OC_Filesystem::getLocalFile($img)); + if (!$image -> valid()) + return false; + $image -> fixOrientation(); + $ret = $image -> preciseResize(floor(($imgHeight * $image -> width()) / $image -> height()), $imgHeight); + if ($image) { + OCP\Response::enableCaching(3600 * 24); + // 24 hour + $image -> show(); + } + } + + /** + * @load Template for real view + * @param int width of the widget + * @param int height of the widget + * @return return the template + * + */ + + public static function loadTemplateReal($WIDTH="770",$HEIGHT="570") { + + $tpl="\n\n\nPicture Widget + \n + \n + \n + \n + \n + \n\n + \n + \n + \n
        + \n + \n"; + + return $tpl; + + } + + /** + * @encrypt string + * @param string Value to encrypt + * @param string Secret KEy + * @return enctrypted string + * + */ + + public static function encrypt($sValue, $sSecretKey) { + return rtrim( + base64_encode( + mcrypt_encrypt( + MCRYPT_RIJNDAEL_256, + $sSecretKey, $sValue, + MCRYPT_MODE_ECB, + mcrypt_create_iv( + mcrypt_get_iv_size( + MCRYPT_RIJNDAEL_256, + MCRYPT_MODE_ECB + ), + MCRYPT_RAND) + ) + ) + ,"\0\3"); + } + + + /** + * @get Count Pics of Directory and one image for Preview + * @param int ID of the Directory + * + * @return the Count of images and one path to a pic + * + */ + public static function getCountPicsDirectory($ID){ + $SQL="SELECT path, COUNT(*) AS ANZAHLPICS FROM *PREFIX*fscache WHERE parent='".intval($ID)."' AND mimepart='image' ORDER BY mtime DESC"; + //print $SQL; + $stmt = OCP\DB::prepare($SQL); + $result = $stmt -> execute(); + $sData=$result->fetchRow(); + if($sData['ANZAHLPICS']) return $sData; + else return "0"; + } + + + /** + * @returns an Overview of all Shares + * + * @param string Secret KEy + * @return array of all shares + * + */ + public static function getAllSharesUser($SECRET){ + + // USER = 0; GROUP = 1;LINK = 3; + // link = parent.location.protocol+'//'+location.host+OC.linkTo('', 'public.php')+'?service=files&'+$('tr[data-id='+String(itemSource)+']').attr('data-type')+'='+file; + + + $SQL="SELECT s.id,s.share_with,s.file_target,.s.item_type,s.share_type,s.expiration,s.uid_owner,s.token, f.path FROM *PREFIX*share s + LEFT JOIN *PREFIX*fscache f ON s.item_source=f.id + WHERE s.uid_owner='".\OC_User::getUser()."' "; + $stmt = \OCP\DB::prepare( $SQL); + $result = $stmt->execute(); + $shareInfo =''; + $output=false; + while( $row = $result->fetchRow()){ + $shareInfo[] = $row; + + } + if($shareInfo!=''){ + $tz=\OC_Calendar_App::getTimezone(); + foreach($shareInfo as $share){ + $itemTypeChoose='file'; + if($share['item_type']=='folder') $itemTypeChoose='dir'; + $expDate = new \DateTime($share['expiration'], new \DateTimeZone($tz)); + $EXPDATE=$expDate->format('d.m.Y H:i'); + + if($share['share_type']==0){ + $output[]=array( + 'id'=>$share['id'], + 'shareType'=>'User', + 'shareName'=>$share['share_with'], + 'link'=>'#', + 'name'=>$share['file_target'], + 'date'=>'Gültig bis: '.$EXPDATE, + 'iToken'=>'' + ); + } + if($share['share_type']==1){ + $output[]=array( + 'id'=>$share['id'], + 'shareType'=>'Gruppe', + 'shareName'=>$share['share_with'], + 'link'=>'#', + 'name'=>$share['file_target'], + 'date'=>'Gültig bis: '.$EXPDATE, + 'iToken'=>'' + ); + } + if($share['share_type']==3){ + $addPassImg=''; + if($share['share_with']!='') $addPassImg=' [Password]'; + $output[]=array( + 'id'=>$share['id'], + 'shareType'=>'Link', + 'shareName'=>'Guest'.$addPassImg, + 'link'=>\OC_Helper::linkToPublic('files').'&t='.$share['token'], + 'name'=>$share['file_target'], + 'date'=>'Gültig bis: '.$EXPDATE, + 'iToken'=>rawurlencode(self::encrypt($share['path'],$SECRET)) + ); + } + } + + } + return $output; + + } + + /** + * @delete Shares + * + * @param int Id of the shared folder or file + * + * + */ + + public static function delShare($ID) { + $SQL = "DELETE FROM *PREFIX*share WHERE id='".intval($ID)."' LIMIT 1"; + $stmt = OCP\DB::prepare($SQL); + $result = $stmt -> execute(); + + } + +} \ No newline at end of file diff --git a/oc454/apps/files_sharing_widget/public.php b/oc454/apps/files_sharing_widget/public.php new file mode 100644 index 0000000..2509bc6 --- /dev/null +++ b/oc454/apps/files_sharing_widget/public.php @@ -0,0 +1,262 @@ + + * + * + */ +OC::$CLASSPATH['OC_Share_Backend_File'] = "apps/files_sharing/lib/share/file.php"; +OC::$CLASSPATH['OC_Share_Backend_Folder'] = 'apps/files_sharing/lib/share/folder.php'; +OC::$CLASSPATH['OC_Filestorage_Shared'] = "apps/files_sharing/lib/sharedstorage.php"; +OCP\Util::connectHook('OC_Filesystem', 'setup', 'OC_Filestorage_Shared', 'setup'); +OCP\Share::registerBackend('file', 'OC_Share_Backend_File'); +OCP\Share::registerBackend('folder', 'OC_Share_Backend_Folder', 'file'); + +$bReal=false; +if (isset($_GET['action']) && $_GET['action']=='real') { + $bReal=true; +} + +if (isset($_GET['file']) || isset($_GET['dir'])) { + + if (isset($_GET['dir'])) { + $type = 'folder'; + $type1 = 'dir'; + $path = $_GET['dir']; + if (strlen($path) > 1 and substr($path, -1, 1) === '/') { + $path = substr($path, 0, -1); + } + $baseDir = $path; + $dir = $baseDir; + + } else { + $type = 'file'; + $type1 = 'file'; + $path = $_GET['file']; + if (strlen($path) > 1 and substr($path, -1, 1) === '/') { + $path = substr($path, 0, -1); + } + } + + $uidOwner = substr($path, 1, strpos($path, '/', 1) - 1); + + if (OCP\User::userExists($uidOwner)) { + OC_Util::setupFS($uidOwner); + $fileSource = OC_Filecache::getId($path, ''); + if ($fileSource != -1 && ($linkItem = OCP\Share::getItemSharedWithByLink($type, $fileSource, $uidOwner))) { + $passwordProtect=false; + + $Param=OC_Preferences::getValue($uidOwner, 'files_sharing_widget', 'parameter',''); + $ObjParamter=json_decode($Param,true); + + + + if (isset($linkItem['share_with'])) { + // Check password + $passwordProtect=true; + if (isset($_GET['password'])) { + + $password = $_GET['password']; + $storedHash = $linkItem['share_with']; + $forcePortable = (CRYPT_BLOWFISH != 1); + $hasher = new PasswordHash(8, $forcePortable); + if (!($hasher->CheckPassword($password.OC_Config::getValue('passwordsalt', ''), $storedHash))) { + $passwordProtect=true; + + } else { + // Save item id in session for future requests + $_SESSION[OC::$SESSIONPREFIX]['public_link_authenticated'] = $linkItem['id']; + $passwordProtect=false; + } + // Check if item id is set in session + } else if (!isset($_SESSION[OC::$SESSIONPREFIX]['public_link_authenticated']) || $_SESSION[OC::$SESSIONPREFIX]['public_link_authenticated'] !== $linkItem['id']) { + $passwordProtect=true; + + } + + if(isset($_SESSION[OC::$SESSIONPREFIX]['public_link_authenticated']) && $_SESSION[OC::$SESSIONPREFIX]['public_link_authenticated']==$linkItem['id']){ + $passwordProtect=false; + } + } + + + + $path = $linkItem['path']; + + + if (isset($_GET['path'])) { + $path .= $_GET['path']; + $dir .= $_GET['path']; + + } + // Download the file + if (isset($_GET['action']) && $_GET['action']=='norm') { + if (isset($_GET['dir'])) { + if (isset($_GET['path']) && $_GET['path'] != '') {// download a file from a shared directory + OC_Files::get('', $path, $_SERVER['REQUEST_METHOD'] == 'HEAD' ? true : false); + } + } + + } else if (isset($_GET['action']) && $_GET['action']=='thumb') { + + if (isset($_GET['dir'])) { + if (isset($_GET['path']) && $_GET['path'] != '') { + OC_Widget_Helper::makeThumb($path,$ObjParamter['imgheight']); + } + } + }else{ + + + if (!$passwordProtect && OC_Filesystem::is_dir($path)) { + + $dataOutput = '
        '; + $dataFolder=''; + //$dataOutput='
          + //
        • '; + //$files = array(); + $rootLength = strlen($baseDir) + 1; + $counter = 0; + $maxNeben = $ObjParamter['maxpicsperpage']; + if ($maxNeben) + $maxNeben = ((int)$maxNeben - 1); + if (!$maxNeben) $maxNeben = 5; + + $mySecret=OCP\Config::getSystemValue('secretword'); + if($mySecret=='') $mySecret='mySecretWord'; + $thumbSize=$ObjParamter['imgheight']; + + //$aFilesArray=[]; + + foreach (OC_Files::getDirectoryContent($path) as $i) { + $i['date'] = OCP\Util::formatDate($i['mtime']); + + $i['directory'] = '/'.substr('/'.$uidOwner.'/files'.$i['directory'], $rootLength); + if ($i['directory'] == '/') { + $i['directory'] = ''; + } + + if ($i['type'] == 'file' && stristr($i['mimetype'], 'image')) { + if ($counter == 0) { + $dataOutput .= '
          '; + } + $fileinfo = pathinfo($i['name']); + //$i['path']=$uidOwner.'/files'.$path; + $i['basename'] = $fileinfo['filename']; + $i['extension'] = isset($fileinfo['extension']) ? ('.' . $fileinfo['extension']) : ''; + + + + $SHOWURL = OC_Widget_Helper::linkToWidget('norm') . '&path='.$i['directory'].'/' . $i['basename'] . $i['extension'].'&iToken='.rawurlencode($_GET['iToken']); + + $SHOWThumb = OC_Widget_Helper::linkToWidget('thumb') . '&path='.$i['directory'].'/' . $i['basename'] . $i['extension'].'&iToken='.rawurlencode($_GET['iToken']); + + $dataOutput .=''; + + if ($counter == $maxNeben) { + $dataOutput .= '
          '; + $counter = -1; + } + + $counter++; + } + + if ($i['type'] == 'dir'){ + + $AlbumData=OC_Widget_Helper::getCountPicsDirectory($i['id']); + $ouputAlbumThumb='
           
          '.$i['name'].' ('.$AlbumData['ANZAHLPICS'].')
          '; + if($AlbumData['path']){ + $relPath=substr($AlbumData['path'], $rootLength); + + $ShowAlbumThumb = OC_Widget_Helper::linkToWidget('thumb') . '&path=/'.$relPath.'&iToken='.rawurlencode($_GET['iToken']); + $ouputAlbumThumb='

          '.$i['name'].' ('.$AlbumData['ANZAHLPICS'].')
          '; + } + + $dataFolder.= ''.$ouputAlbumThumb.' '; + } + + $i['permissions'] = OCP\Share::PERMISSION_READ; + + } + if($dataFolder=='') $dataFolder='Alben: --'; + else $dataFolder='
          '.$dataFolder.'
          '; + + // Make breadcrumb + //$breadcrumb = array(); + $breadCrumbOutput=''; + $pathtohere = ''; + $count = 1; + foreach (explode('/', $dir) as $i) { + if ($i != '') { + if ($i != $baseDir) { + $pathtohere .= '/'.$i; + } + if ( strlen($pathtohere) < strlen($_GET['dir'])) { + continue; + } + $outputDir=str_replace($_GET['dir'], "", $pathtohere, $count); + $outputName=$i; + if($outputDir=='') $outputName='Home'; + + $breadCrumbOutput.='» '.$outputName.' '; + + } + + } + + + if (($counter - 1) != $maxNeben) { + $dataOutput .= '
        '; + } + //$dataOutput.=''; + $dataOutput .= ''; + + if($bReal==false){ + $aBack = array('databack' => $dataOutput,'folder'=>$dataFolder,'nav'=>$breadCrumbOutput, 'success' => 1); + $data = json_encode($aBack); + echo $_GET['jsonp_callback'] . '(' . $data . ');'; + }else{ + echo OC_Widget_Helper::loadTemplateReal($ObjParamter['width'],$ObjParamter['height']); + + } + }else{ + if($passwordProtect ){ + $dataFolder=''; + $breadCrumbOutput='Passwort eingeben'; + $dataOutput='
        + Passwort: + + +
        +
        '; + } + + if($bReal==false){ + $aBack = array('databack' => $dataOutput,'folder'=>$dataFolder,'nav'=>$breadCrumbOutput, 'success' => 1); + $data = json_encode($aBack); + echo $_GET['jsonp_callback'] . '(' . $data . ');'; + }else{ + echo OC_Widget_Helper::loadTemplateReal($ObjParamter['width'],$ObjParamter['height']); + + } + + } + } + } else { + $dataFolder=''; + + $breadCrumbOutput='Share Pics'; + $dataOutput = '» No Shared Files available!'; + if($bReal==false){ + $aBack = array('databack' => $dataOutput,'folder'=>$dataFolder,'nav'=>$breadCrumbOutput, 'success' => 1); + $data = json_encode($aBack); + echo $_GET['jsonp_callback'] . '(' . $data . ');'; + }else{ + echo OC_Widget_Helper::loadTemplateReal($ObjParamter['width'],$ObjParamter['height']); + } + } + } + + +} diff --git a/oc454/apps/files_sharing_widget/settings.php b/oc454/apps/files_sharing_widget/settings.php new file mode 100644 index 0000000..3d4dca6 --- /dev/null +++ b/oc454/apps/files_sharing_widget/settings.php @@ -0,0 +1,29 @@ + + * + * + */ + +//Secret Word +$Param=OC_Preferences::getValue(OC_User::getUser(), 'files_sharing_widget', 'parameter',''); +if($Param) $ObjParamter=json_decode($Param,true); +else{ + $ObjParamter['maxpicsperpage']=10; + $ObjParamter['imgheight']=150; + $ObjParamter['width']=750; + $ObjParamter['height']=550; +} +$shareSecret=OCP\Config::getSystemValue('secretword'); +if($shareSecret=='') $shareSecret='mySecretWord'; + +$allShares=OC_Widget_Helper::getAllSharesUser($shareSecret); + +$tmpl = new OCP\Template( 'files_sharing_widget', 'settings'); +$tmpl->assign('shares', $allShares); +$tmpl->assign('sharaparam', $ObjParamter); + +return $tmpl->fetchPage(); diff --git a/oc454/apps/files_sharing_widget/templates/admin.php b/oc454/apps/files_sharing_widget/templates/admin.php new file mode 100644 index 0000000..cf9c4c1 --- /dev/null +++ b/oc454/apps/files_sharing_widget/templates/admin.php @@ -0,0 +1,18 @@ + + * + * + */ +?> +
        + Share Pics Widget Secret Key and Site-E-Mail +
        +
        +
        + +
        +
        \ No newline at end of file diff --git a/oc454/apps/files_sharing_widget/templates/settings.php b/oc454/apps/files_sharing_widget/templates/settings.php new file mode 100644 index 0000000..8293b6a --- /dev/null +++ b/oc454/apps/files_sharing_widget/templates/settings.php @@ -0,0 +1,52 @@ + + * + * + */ +?> +
        + Overview Shared Files and Folders +
          +
        • ShareType NameShare ItemExpiration DatePicture Widget Token
        • + +

        • + + +

        + Configurationparameters Picture Widget:
        +
        +
        +
        + px
        + px
        + +
        +

        + Use as Widget: (For Integration HP, Facebook)
        + + +
        + + + diff --git a/oc454/lib/base.min.php b/oc454/lib/base.min.php new file mode 100644 index 0000000..3251806 --- /dev/null +++ b/oc454/lib/base.min.php @@ -0,0 +1,351 @@ + + * + * modifed lib/base.php for Picture Widget use + * + */ + +class OC{ + /** + * Assoziative array for autoloading. classname => filename + */ + public static $CLASSPATH = array(); + /** + * The installation path for owncloud on the server (e.g. /srv/http/owncloud) + */ + public static $SERVERROOT = ''; + /** + * the current request path relative to the owncloud root (e.g. files/index.php) + */ + private static $SUBURI = ''; + /** + * the owncloud root path for http requests (e.g. owncloud/) + */ + public static $WEBROOT = ''; + /** + * The installation path of the 3rdparty folder on the server (e.g. /srv/http/owncloud/3rdparty) + */ + public static $THIRDPARTYROOT = ''; + /** + * the root path of the 3rdparty folder for http requests (e.g. owncloud/3rdparty) + */ + public static $THIRDPARTYWEBROOT = ''; + /** + * The installation path array of the apps folder on the server (e.g. /srv/http/owncloud) 'path' and + * web path in 'url' + */ + public static $APPSROOTS = array(); + /* + * requested app + */ + public static $REQUESTEDAPP = ''; + /* + * requested file of app + */ + public static $REQUESTEDFILE = ''; + /** + * check if owncloud runs in cli mode + */ + public static $CLI = false; + /** + * MULTI INSTANCE OF cloud installation + */ + + public static $SESSIONPREFIX = ''; + + /** + * SPL autoload + */ + public static function autoload($className) { + + if(array_key_exists($className, OC::$CLASSPATH)) { + /** @TODO: Remove this when necessary + Remove "apps/" from inclusion path for smooth migration to mutli app dir + */ + + $path = str_replace('apps/', '', OC::$CLASSPATH[$className]); + require_once $path; + } + elseif(strpos($className, 'OC_')===0) { + + $path = strtolower(str_replace('_', '/', substr($className, 3)) . '.php'); + + } + elseif(strpos($className, 'OCP\\')===0) { + $path = 'public/'.strtolower(str_replace('\\', '/', substr($className, 3)) . '.php'); + } + elseif(strpos($className, 'OCA\\')===0) { + $path = 'apps/'.strtolower(str_replace('\\', '/', substr($className, 3)) . '.php'); + } + else{ + return false; + } + + if($fullPath = stream_resolve_include_path($path)) { + require_once $path; + } + return false; + } + + public static function initPaths() { + // calculate the root directories + //OC::$SERVERROOT='/opt/local/apache2/htdocs/oc45/'; + OC::$SERVERROOT=str_replace("\\", '/', substr(__FILE__, 0, -16)); + //OC::$SERVERROOT='/is/htdocs/wp11048482_6MQ454GFGE/www/demo'; + OC::$SUBURI= str_replace("\\", "/", substr(realpath($_SERVER["SCRIPT_FILENAME"]), strlen(OC::$SERVERROOT))); + $scriptName=$_SERVER["SCRIPT_NAME"]; + if(substr($scriptName, -1)=='/') { + $scriptName.='index.php'; + //make sure suburi follows the same rules as scriptName + if(substr(OC::$SUBURI, -9)!='index.php') { + if(substr(OC::$SUBURI, -1)!='/') { + OC::$SUBURI=OC::$SUBURI.'/'; + } + OC::$SUBURI=OC::$SUBURI.'index.php'; + } + } + + OC::$WEBROOT=substr($scriptName, 0, strlen($scriptName)-strlen(OC::$SUBURI)); + + if ( isset($_SERVER['HTTP_X_FORWARDED_SERVER']) ) { + OC::$WEBROOT=$_SERVER['SERVER_NAME']. OC::$WEBROOT; + OC_Log::write('core', 'WEBROOT: '. OC::$WEBROOT, OC_Log::DEBUG); + } + + if(OC::$WEBROOT!='' and OC::$WEBROOT[0]!=='/') { + OC::$WEBROOT='/'.OC::$WEBROOT; + + } + + // ensure we can find OC_Config + set_include_path( + OC::$SERVERROOT.'/lib'.PATH_SEPARATOR. + get_include_path() + ); + + // search the 3rdparty folder + if(OC_Config::getValue('3rdpartyroot', '')<>'' and OC_Config::getValue('3rdpartyurl', '')<>'') { + OC::$THIRDPARTYROOT=OC_Config::getValue('3rdpartyroot', ''); + OC::$THIRDPARTYWEBROOT=OC_Config::getValue('3rdpartyurl', ''); + }elseif(file_exists(OC::$SERVERROOT.'/3rdparty')) { + OC::$THIRDPARTYROOT=OC::$SERVERROOT; + OC::$THIRDPARTYWEBROOT=OC::$WEBROOT; + }elseif(file_exists(OC::$SERVERROOT.'/../3rdparty')) { + OC::$THIRDPARTYWEBROOT=rtrim(dirname(OC::$WEBROOT), '/'); + OC::$THIRDPARTYROOT=rtrim(dirname(OC::$SERVERROOT), '/'); + }else{ + echo("3rdparty directory not found! Please put the ownCloud 3rdparty folder in the ownCloud folder or the folder above. You can also configure the location in the config.php file."); + exit; + } + if(file_exists(OC::$SERVERROOT.'/apps')) { + OC::$APPSROOTS[] = array('path'=> OC::$SERVERROOT.'/apps', 'url' => '/apps', 'writable' => true); + }elseif(file_exists(OC::$SERVERROOT.'/../apps')) { + OC::$APPSROOTS[] = array('path'=> rtrim(dirname(OC::$SERVERROOT), '/').'/apps', 'url' => '/apps', 'writable' => true); + } + + if(empty(OC::$APPSROOTS)) { + echo("apps directory not found! Please put the ownCloud apps folder in the ownCloud folder or the folder above. You can also configure the location in the config.php file."); + exit; + } + $paths = array(); + foreach( OC::$APPSROOTS as $path) + $paths[] = $path['path']; + + // set the right include path + set_include_path( + OC::$SERVERROOT.'/lib'.PATH_SEPARATOR. + OC::$SERVERROOT.'/config'.PATH_SEPARATOR. + OC::$THIRDPARTYROOT.'/3rdparty'.PATH_SEPARATOR. + implode($paths,PATH_SEPARATOR).PATH_SEPARATOR. + get_include_path().PATH_SEPARATOR. + OC::$SERVERROOT + ); + } + + public static function initSession() { + ini_set('session.cookie_httponly', '1;'); + + session_start(); + } + + public static function init() { + // register autoloader + spl_autoload_register(array('OC','autoload')); + setlocale(LC_ALL, 'en_US.UTF-8'); + + // set some stuff + //ob_start(); + error_reporting(E_ALL | E_STRICT); + if (defined('DEBUG') && DEBUG) { + ini_set('display_errors', 1); + } + self::$CLI=(php_sapi_name() == 'cli'); + + date_default_timezone_set('UTC'); + ini_set('arg_separator.output', '&'); + + + + //try to configure php to enable big file uploads. + //this doesn´t work always depending on the webserver and php configuration. + //Let´s try to overwrite some defaults anyways + + //try to set the maximum execution time to 60min + set_time_limit(3600); + ini_set('max_execution_time', 3600); + ini_set('max_input_time', 3600); + + //try to set the maximum filesize to 10G + @ini_set('upload_max_filesize', '10G'); + @ini_set('post_max_size', '10G'); + @ini_set('file_uploads', '50'); + //print OC::$SERVERROOT; + OC::$SESSIONPREFIX=OC_Config::getValue('SESSIONPREFIX'); + // session_save_path('/is/htdocs/wp11048482_6MQ454GFGE/www/demo/tmp'); + //try to set the session lifetime to 60min + @ini_set('gc_maxlifetime', '3600'); + + + + self::initPaths(); + + + + // register the stream wrappers + require_once 'streamwrappers.php'; + stream_wrapper_register("fakedir", "OC_FakeDirStream"); + stream_wrapper_register('static', 'OC_StaticStreamWrapper'); + stream_wrapper_register('close', 'OC_CloseStreamWrapper'); + + + self::initSession(); + + + //$errors=OC_Util::checkServer(); + + + + OC_User::useBackend(new OC_User_Database()); + OC_Group::useBackend(new OC_Group_Database()); + + // Load Apps + // This includes plugins for users and filesystems as well + global $RUNTIME_NOAPPS; + global $RUNTIME_APPTYPES; + if(!$RUNTIME_NOAPPS ) { + if($RUNTIME_APPTYPES) { + OC_App::loadApps($RUNTIME_APPTYPES); + }else{ + OC_App::loadApps(); + } + } + + //setup extra user backends + OC_User::setupBackends(); + + // register cache cleanup jobs + OC_BackgroundJob_RegularTask::register('OC_Cache_FileGlobal', 'gc'); + OC_Hook::connect('OC_User', 'post_login', 'OC_Cache_File', 'loginListener'); + + // Check for blacklisted files + OC_Hook::connect('OC_Filesystem', 'write', 'OC_Filesystem', 'isBlacklisted'); + OC_Hook::connect('OC_Filesystem', 'rename', 'OC_Filesystem', 'isBlacklisted'); + + //make sure temporary files are cleaned up + register_shutdown_function(array('OC_Helper','cleanTmp')); + + //parse the given parameters + self::$REQUESTEDAPP = (isset($_GET['app']) && trim($_GET['app']) != '' && !is_null($_GET['app'])?str_replace(array('\0', '/', '\\', '..'), '', strip_tags($_GET['app'])):OC_Config::getValue('defaultapp', 'files')); + if(substr_count(self::$REQUESTEDAPP, '?') != 0) { + $app = substr(self::$REQUESTEDAPP, 0, strpos(self::$REQUESTEDAPP, '?')); + $param = substr($_GET['app'], strpos($_GET['app'], '?') + 1); + parse_str($param, $get); + $_GET = array_merge($_GET, $get); + self::$REQUESTEDAPP = $app; + $_GET['app'] = $app; + } + self::$REQUESTEDFILE = (isset($_GET['getfile'])?$_GET['getfile']:null); + if(substr_count(self::$REQUESTEDFILE, '?') != 0) { + $file = substr(self::$REQUESTEDFILE, 0, strpos(self::$REQUESTEDFILE, '?')); + $param = substr(self::$REQUESTEDFILE, strpos(self::$REQUESTEDFILE, '?') + 1); + parse_str($param, $get); + $_GET = array_merge($_GET, $get); + self::$REQUESTEDFILE = $file; + $_GET['getfile'] = $file; + } + if(!is_null(self::$REQUESTEDFILE)) { + $subdir = OC_App::getAppPath(OC::$REQUESTEDAPP) . '/' . self::$REQUESTEDFILE; + $parent = OC_App::getAppPath(OC::$REQUESTEDAPP); + if(!OC_Helper::issubdirectory($subdir, $parent)) { + self::$REQUESTEDFILE = null; + header('HTTP/1.0 404 Not Found'); + exit; + } + } + + } + +} + +function encrypt($sValue, $sSecretKey) { + return rtrim( + base64_encode( + mcrypt_encrypt( + MCRYPT_RIJNDAEL_256, + $sSecretKey, $sValue, + MCRYPT_MODE_ECB, + mcrypt_create_iv( + mcrypt_get_iv_size( + MCRYPT_RIJNDAEL_256, + MCRYPT_MODE_ECB + ), + MCRYPT_RAND) + ) + ) + ,"\0\3"); +} + +function decrypt($sValue, $sSecretKey) { + return rtrim( + mcrypt_decrypt( + MCRYPT_RIJNDAEL_256, + $sSecretKey, + base64_decode($sValue), + MCRYPT_MODE_ECB, + mcrypt_create_iv( + mcrypt_get_iv_size( + MCRYPT_RIJNDAEL_256, + MCRYPT_MODE_ECB + ), + MCRYPT_RAND + ) + ) + ,"\0\3"); +} + +// define runtime variables - unless this already has been done +if( !isset( $RUNTIME_NOAPPS )) { + $RUNTIME_NOAPPS = false; +} + +if(!function_exists('get_temp_dir')) { + function get_temp_dir() { + if( $temp=ini_get('upload_tmp_dir') ) return $temp; + if( $temp=getenv('TMP') ) return $temp; + if( $temp=getenv('TEMP') ) return $temp; + if( $temp=getenv('TMPDIR') ) return $temp; + $temp=tempnam(__FILE__, ''); + if (file_exists($temp)) { + unlink($temp); + return dirname($temp); + } + if( $temp=sys_get_temp_dir()) return $temp; + + return null; + } +} +OC::init(); \ No newline at end of file diff --git a/oc454/widget.php b/oc454/widget.php new file mode 100644 index 0000000..7b82228 --- /dev/null +++ b/oc454/widget.php @@ -0,0 +1,30 @@ + + * + * + */ + +$RUNTIME_NOAPPS = TRUE; +require_once 'lib/base.min.php'; + +$shareSecret=OCP\Config::getSystemValue('secretword'); +if($shareSecret=='') $shareSecret='mySecretWord'; +$getSchluessel= decrypt(rawurldecode($_GET['iToken']),$shareSecret); + +$_GET['dir']=$getSchluessel; +$_GET['service']='pics'; + +$file='files_sharing_widget/public.php'; +if(is_null($file)) { + header('HTTP/1.0 404 Not Found'); + exit; +} + +OC_Util::checkAppEnabled('files_sharing_widget'); +OC_App::loadApp('files_sharing_widget'); + +require_once OC_App::getAppPath('files_sharing_widget') .'/public.php'; diff --git a/oc454/widgetloader.php b/oc454/widgetloader.php new file mode 100644 index 0000000..6c1a1c0 --- /dev/null +++ b/oc454/widgetloader.php @@ -0,0 +1,11 @@ + + * + * + */ +header ("Content-type: text/javascript"); +readfile("apps/files_sharing_widget/js/widget.js"); \ No newline at end of file