bgneal@5: /* bgneal@5: * FancyBox - jQuery Plugin bgneal@5: * Simple and fancy lightbox alternative bgneal@5: * bgneal@5: * Examples and documentation at: http://fancybox.net bgneal@5: * bgneal@5: * Copyright (c) 2008 - 2010 Janis Skarnelis bgneal@5: * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated. bgneal@5: * bgneal@5: * Version: 1.3.4 (11/11/2010) bgneal@5: * Requires: jQuery v1.3+ bgneal@5: * bgneal@5: * Dual licensed under the MIT and GPL licenses: bgneal@5: * http://www.opensource.org/licenses/mit-license.php bgneal@5: * http://www.gnu.org/licenses/gpl.html bgneal@5: */ bgneal@5: bgneal@5: #fancybox-loading { bgneal@5: position: fixed; bgneal@5: top: 50%; bgneal@5: left: 50%; bgneal@5: width: 40px; bgneal@5: height: 40px; bgneal@5: margin-top: -20px; bgneal@5: margin-left: -20px; bgneal@5: cursor: pointer; bgneal@5: overflow: hidden; bgneal@5: z-index: 1104; bgneal@5: display: none; bgneal@5: } bgneal@5: bgneal@5: #fancybox-loading div { bgneal@5: position: absolute; bgneal@5: top: 0; bgneal@5: left: 0; bgneal@5: width: 40px; bgneal@5: height: 480px; bgneal@5: background-image: url('fancybox.png'); bgneal@5: } bgneal@5: bgneal@5: #fancybox-overlay { bgneal@5: position: absolute; bgneal@5: top: 0; bgneal@5: left: 0; bgneal@5: width: 100%; bgneal@5: z-index: 1100; bgneal@5: display: none; bgneal@5: } bgneal@5: bgneal@5: #fancybox-tmp { bgneal@5: padding: 0; bgneal@5: margin: 0; bgneal@5: border: 0; bgneal@5: overflow: auto; bgneal@5: display: none; bgneal@5: } bgneal@5: bgneal@5: #fancybox-wrap { bgneal@5: position: absolute; bgneal@5: top: 0; bgneal@5: left: 0; bgneal@5: padding: 20px; bgneal@5: z-index: 1101; bgneal@5: outline: none; bgneal@5: display: none; bgneal@5: } bgneal@5: bgneal@5: #fancybox-outer { bgneal@5: position: relative; bgneal@5: width: 100%; bgneal@5: height: 100%; bgneal@5: background: #fff; bgneal@5: } bgneal@5: bgneal@5: #fancybox-content { bgneal@5: width: 0; bgneal@5: height: 0; bgneal@5: padding: 0; bgneal@5: outline: none; bgneal@5: position: relative; bgneal@5: overflow: hidden; bgneal@5: z-index: 1102; bgneal@5: border: 0px solid #fff; bgneal@5: } bgneal@5: bgneal@5: #fancybox-hide-sel-frame { bgneal@5: position: absolute; bgneal@5: top: 0; bgneal@5: left: 0; bgneal@5: width: 100%; bgneal@5: height: 100%; bgneal@5: background: transparent; bgneal@5: z-index: 1101; bgneal@5: } bgneal@5: bgneal@5: #fancybox-close { bgneal@5: position: absolute; bgneal@5: top: -15px; bgneal@5: right: -15px; bgneal@5: width: 30px; bgneal@5: height: 30px; bgneal@5: background: transparent url('fancybox.png') -40px 0px; bgneal@5: cursor: pointer; bgneal@5: z-index: 1103; bgneal@5: display: none; bgneal@5: } bgneal@5: bgneal@5: #fancybox-error { bgneal@5: color: #444; bgneal@5: font: normal 12px/20px Arial; bgneal@5: padding: 14px; bgneal@5: margin: 0; bgneal@5: } bgneal@5: bgneal@5: #fancybox-img { bgneal@5: width: 100%; bgneal@5: height: 100%; bgneal@5: padding: 0; bgneal@5: margin: 0; bgneal@5: border: none; bgneal@5: outline: none; bgneal@5: line-height: 0; bgneal@5: vertical-align: top; bgneal@5: } bgneal@5: bgneal@5: #fancybox-frame { bgneal@5: width: 100%; bgneal@5: height: 100%; bgneal@5: border: none; bgneal@5: display: block; bgneal@5: } bgneal@5: bgneal@5: #fancybox-left, #fancybox-right { bgneal@5: position: absolute; bgneal@5: bottom: 0px; bgneal@5: height: 100%; bgneal@5: width: 35%; bgneal@5: cursor: pointer; bgneal@5: outline: none; bgneal@5: background: transparent url('blank.gif'); bgneal@5: z-index: 1102; bgneal@5: display: none; bgneal@5: } bgneal@5: bgneal@5: #fancybox-left { bgneal@5: left: 0px; bgneal@5: } bgneal@5: bgneal@5: #fancybox-right { bgneal@5: right: 0px; bgneal@5: } bgneal@5: bgneal@5: #fancybox-left-ico, #fancybox-right-ico { bgneal@5: position: absolute; bgneal@5: top: 50%; bgneal@5: left: -9999px; bgneal@5: width: 30px; bgneal@5: height: 30px; bgneal@5: margin-top: -15px; bgneal@5: cursor: pointer; bgneal@5: z-index: 1102; bgneal@5: display: block; bgneal@5: } bgneal@5: bgneal@5: #fancybox-left-ico { bgneal@5: background-image: url('fancybox.png'); bgneal@5: background-position: -40px -30px; bgneal@5: } bgneal@5: bgneal@5: #fancybox-right-ico { bgneal@5: background-image: url('fancybox.png'); bgneal@5: background-position: -40px -60px; bgneal@5: } bgneal@5: bgneal@5: #fancybox-left:hover, #fancybox-right:hover { bgneal@5: visibility: visible; /* IE6 */ bgneal@5: } bgneal@5: bgneal@5: #fancybox-left:hover span { bgneal@5: left: 20px; bgneal@5: } bgneal@5: bgneal@5: #fancybox-right:hover span { bgneal@5: left: auto; bgneal@5: right: 20px; bgneal@5: } bgneal@5: bgneal@5: .fancybox-bg { bgneal@5: position: absolute; bgneal@5: padding: 0; bgneal@5: margin: 0; bgneal@5: border: 0; bgneal@5: width: 20px; bgneal@5: height: 20px; bgneal@5: z-index: 1001; bgneal@5: } bgneal@5: bgneal@5: #fancybox-bg-n { bgneal@5: top: -20px; bgneal@5: left: 0; bgneal@5: width: 100%; bgneal@5: background-image: url('fancybox-x.png'); bgneal@5: } bgneal@5: bgneal@5: #fancybox-bg-ne { bgneal@5: top: -20px; bgneal@5: right: -20px; bgneal@5: background-image: url('fancybox.png'); bgneal@5: background-position: -40px -162px; bgneal@5: } bgneal@5: bgneal@5: #fancybox-bg-e { bgneal@5: top: 0; bgneal@5: right: -20px; bgneal@5: height: 100%; bgneal@5: background-image: url('fancybox-y.png'); bgneal@5: background-position: -20px 0px; bgneal@5: } bgneal@5: bgneal@5: #fancybox-bg-se { bgneal@5: bottom: -20px; bgneal@5: right: -20px; bgneal@5: background-image: url('fancybox.png'); bgneal@5: background-position: -40px -182px; bgneal@5: } bgneal@5: bgneal@5: #fancybox-bg-s { bgneal@5: bottom: -20px; bgneal@5: left: 0; bgneal@5: width: 100%; bgneal@5: background-image: url('fancybox-x.png'); bgneal@5: background-position: 0px -20px; bgneal@5: } bgneal@5: bgneal@5: #fancybox-bg-sw { bgneal@5: bottom: -20px; bgneal@5: left: -20px; bgneal@5: background-image: url('fancybox.png'); bgneal@5: background-position: -40px -142px; bgneal@5: } bgneal@5: bgneal@5: #fancybox-bg-w { bgneal@5: top: 0; bgneal@5: left: -20px; bgneal@5: height: 100%; bgneal@5: background-image: url('fancybox-y.png'); bgneal@5: } bgneal@5: bgneal@5: #fancybox-bg-nw { bgneal@5: top: -20px; bgneal@5: left: -20px; bgneal@5: background-image: url('fancybox.png'); bgneal@5: background-position: -40px -122px; bgneal@5: } bgneal@5: bgneal@5: #fancybox-title { bgneal@5: font-family: Helvetica; bgneal@5: font-size: 12px; bgneal@5: z-index: 1102; bgneal@5: } bgneal@5: bgneal@5: .fancybox-title-inside { bgneal@5: padding-bottom: 10px; bgneal@5: text-align: center; bgneal@5: color: #333; bgneal@5: background: #fff; bgneal@5: position: relative; bgneal@5: } bgneal@5: bgneal@5: .fancybox-title-outside { bgneal@5: padding-top: 10px; bgneal@5: color: #fff; bgneal@5: } bgneal@5: bgneal@5: .fancybox-title-over { bgneal@5: position: absolute; bgneal@5: bottom: 0; bgneal@5: left: 0; bgneal@5: color: #FFF; bgneal@5: text-align: left; bgneal@5: } bgneal@5: bgneal@5: #fancybox-title-over { bgneal@5: padding: 10px; bgneal@5: background-image: url('fancy_title_over.png'); bgneal@5: display: block; bgneal@5: } bgneal@5: bgneal@5: .fancybox-title-float { bgneal@5: position: absolute; bgneal@5: left: 0; bgneal@5: bottom: -20px; bgneal@5: height: 32px; bgneal@5: } bgneal@5: bgneal@5: #fancybox-title-float-wrap { bgneal@5: border: none; bgneal@5: border-collapse: collapse; bgneal@5: width: auto; bgneal@5: } bgneal@5: bgneal@5: #fancybox-title-float-wrap td { bgneal@5: border: none; bgneal@5: white-space: nowrap; bgneal@5: } bgneal@5: bgneal@5: #fancybox-title-float-left { bgneal@5: padding: 0 0 0 15px; bgneal@5: background: url('fancybox.png') -40px -90px no-repeat; bgneal@5: } bgneal@5: bgneal@5: #fancybox-title-float-main { bgneal@5: color: #FFF; bgneal@5: line-height: 29px; bgneal@5: font-weight: bold; bgneal@5: padding: 0 0 3px 0; bgneal@5: background: url('fancybox-x.png') 0px -40px; bgneal@5: } bgneal@5: bgneal@5: #fancybox-title-float-right { bgneal@5: padding: 0 0 0 15px; bgneal@5: background: url('fancybox.png') -55px -90px no-repeat; bgneal@5: } bgneal@5: bgneal@5: /* IE6 */ bgneal@5: bgneal@5: .fancybox-ie6 #fancybox-close { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_close.png', sizingMethod='scale'); } bgneal@5: bgneal@5: .fancybox-ie6 #fancybox-left-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_left.png', sizingMethod='scale'); } bgneal@5: .fancybox-ie6 #fancybox-right-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_right.png', sizingMethod='scale'); } bgneal@5: bgneal@5: .fancybox-ie6 #fancybox-title-over { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_over.png', sizingMethod='scale'); zoom: 1; } bgneal@5: .fancybox-ie6 #fancybox-title-float-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_left.png', sizingMethod='scale'); } bgneal@5: .fancybox-ie6 #fancybox-title-float-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_main.png', sizingMethod='scale'); } bgneal@5: .fancybox-ie6 #fancybox-title-float-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_right.png', sizingMethod='scale'); } bgneal@5: bgneal@5: .fancybox-ie6 #fancybox-bg-w, .fancybox-ie6 #fancybox-bg-e, .fancybox-ie6 #fancybox-left, .fancybox-ie6 #fancybox-right, #fancybox-hide-sel-frame { bgneal@5: height: expression(this.parentNode.clientHeight + "px"); bgneal@5: } bgneal@5: bgneal@5: #fancybox-loading.fancybox-ie6 { bgneal@5: position: absolute; margin-top: 0; bgneal@5: 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'); bgneal@5: } bgneal@5: bgneal@5: #fancybox-loading.fancybox-ie6 div { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_loading.png', sizingMethod='scale'); } bgneal@5: bgneal@5: /* IE6, IE7, IE8 */ bgneal@5: bgneal@5: .fancybox-ie .fancybox-bg { background: transparent !important; } bgneal@5: bgneal@5: .fancybox-ie #fancybox-bg-n { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_n.png', sizingMethod='scale'); } bgneal@5: .fancybox-ie #fancybox-bg-ne { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_ne.png', sizingMethod='scale'); } bgneal@5: .fancybox-ie #fancybox-bg-e { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_e.png', sizingMethod='scale'); } bgneal@5: .fancybox-ie #fancybox-bg-se { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_se.png', sizingMethod='scale'); } bgneal@5: .fancybox-ie #fancybox-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_s.png', sizingMethod='scale'); } bgneal@5: .fancybox-ie #fancybox-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_sw.png', sizingMethod='scale'); } bgneal@5: .fancybox-ie #fancybox-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_w.png', sizingMethod='scale'); } bgneal@5: .fancybox-ie #fancybox-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_nw.png', sizingMethod='scale'); }