MP3-jPlayer - Version 1.8.12

Version Description

  • Security update.
Download this release

Release Info

Developer simon.ward
Plugin Icon 128x128 MP3-jPlayer
Version 1.8.12
Comparing to
See all releases

Code changes from version 1.8.11 to 1.8.12

css/admin-1.8.css CHANGED
@@ -1,152 +1,152 @@
1
-
2
-
3
-
4
- /* --- Tabs --- */
5
- .mp3j-tabbuttons-wrap {
6
- position:relative;
7
- border:0;
8
- height:30px;
9
- padding:5px 0 0 0;
10
- width:auto;
11
- border-bottom:1px solid #ccc;
12
- overflow:visible;
13
- }
14
- .mp3j-tabbutton {
15
- float:left;
16
- padding:6px 24px 6px 22px;
17
- font-size:11px; margin:0 2px 0 0; background:#e0e0e0; font-weight:700;
18
- -webkit-border-top-left-radius: 3px;
19
- -webkit-border-top-right-radius: 3px;
20
- -moz-border-radius-topleft: 3px;
21
- -moz-border-radius-topright: 3px;
22
- border-top-left-radius: 3px;
23
- border-top-right-radius: 3px;
24
- border-bottom:1px solid #ccc;
25
- cursor:pointer;
26
- color:#777;
27
- }
28
- .active-tab {
29
- background:#f0f0f0;
30
- border:1px solid #ccc;
31
- border-bottom:0px;
32
- padding:5px 23px 7px 21px;
33
- color:#333;
34
- }
35
-
36
- .mp3j-tabs-wrap {
37
- position:relative;
38
- height:auto;
39
- border-bottom:1px solid #bbb;
40
- }
41
- .mp3j-tab {
42
- position:relative;
43
- height:auto;
44
- padding:20px 0px 40px 25px;
45
- background:#f0f0f0;
46
- }
47
- .tab-header { border-bottom:1px solid #ccc; padding:5px 0 10px 0; margin-bottom:15px; width:100%; }
48
-
49
-
50
-
51
-
52
-
53
-
54
-
55
-
56
- /* ====================================================================================== */
57
-
58
-
59
-
60
-
61
-
62
-
63
-
64
-
65
- #pickerwrap { position:relative; padding: 0px; background: #444; margin:30px 0px 0px 10px; width:380px; height:208px; border: 0px; }
66
- .addcol { position:relative; border:1px solid #d8d8d8; background:#e6e6e6; color:#444; padding:3px 3px 4px 3px; cursor:pointer; font-size: 12px; font-weight: 700; width: 20px; -moz-border-radius: 4px; -webkit-border-radius: 4px; margin-left:0px; margin-right:11px; }
67
- .addcol:hover { border:1px solid #e0e0e0; color:#666; background:#eee; }
68
- .bl { width: 30px; padding: 5px 0px 6px 30px; margin:0px 0px 0px 0px; height: 30px; border:1px solid #aaa; cursor:pointer; }
69
- #plugin { position: absolute; BACKGROUND: #444 url('images/Hue.gif') no-repeat 196px 22px; COLOR: #AAA; CURSOR: default; FONT-FAMILY: arial; FONT-SIZE: 12px; line-height: 14px; padding: 22px 9px 0px 9px; _PADDING-RIGHT: 0; Z-INDEX: 1; height:180px; WIDTH: 214px; _width: 210px; top:0px; right:7px; border-left: 0px solid #444; }
70
- #plugin br { CLEAR: both; MARGIN: 0; PADDING: 0; }
71
- #plugHEX { position: absolute; top: 85px; left: 33px; COLOR: #FFD000; color:#f0f0f0; width: 70px; height:25px; }
72
- #plugCUR { position: absolute; width: 81px; height: 57px; font-size: 1px; background: transparent; border: 1px solid #555; top: 21px; left: 33px; }
73
- #SV { background: #FF0000 url('images/SatVal.png'); _BACKGROUND: #FF0000; POSITION: relative; CURSOR: crosshair; FLOAT: left; HEIGHT: 166px; WIDTH: 167px; _WIDTH: 166px; MARGIN-RIGHT: 17px; margin-top:0px; /* filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/SatVal.png', sizingMethod='scale'); */ border: 1px solid #555; border-top:0px; -moz-user-select: none; -khtml-user-select: none; user-select: none; }
74
- #SVslide { BACKGROUND: url('images/slide.gif'); HEIGHT: 9px; WIDTH: 9px; POSITION: absolute; _font-size: 4px; line-height: 4px; }
75
- #H { BORDER: 0; CURSOR: crosshair; FLOAT: left; HEIGHT: 154px; POSITION: relative; WIDTH: 25px; PADDING: 0; TOP: 4px; -moz-user-select: none; -khtml-user-select: none; user-select: none; }
76
- #Hslide { BACKGROUND: url('images/arrow.gif'); HEIGHT: 8px; WIDTH: 20px; POSITION: absolute; _font-size: 1px; line-height: 1px; }
77
- #Hmodel { POSITION: relative; TOP: -5px; BORDER: 1px solid #555; WIDTH: 25px; height:166px; }
78
-
79
-
80
-
81
- a.fox_buttonlink {
82
- background:#eaf2fa;
83
- border:1px solid #afcfdb;
84
- padding:1px 12px 2px 10px;
85
- text-decoration:none;
86
- -webkit-border-radius: 3px;
87
- -moz-border-radius: 3px;
88
- border-radius: 3px;
89
- }
90
- a.fox_buttonlink:hover { background:#dbeafa; border:1px solid #99bac7; color:#222; }
91
-
92
- a.bl2 { padding:0px 31px 1px 31px; }
93
-
94
- div#fox_library-list, div#fox_folder-list {
95
- padding:10px 20px 10px 20px;
96
- margin:10px 0px 10px 35px;
97
- background:#f9f9f9;
98
- border:1px solid #f1f1f1;
99
- }
100
-
101
- div.wrap {
102
- border: 0px solid #FF3300;
103
- margin:0px 10px 0 20px;
104
- max-width:1200px;
105
- }
106
- div.wrap p { margin:0 0 4px 0; }
107
- div.wrap h1 { font-weight:500; font-size: 22px; line-height:22px; margin:20px 0 5px 0; padding:0; }
108
- div.wrap h2 { font-size: 10px; line-height:10px; margin:0; padding:0; }
109
- div.wrap h3 { margin:0 0 8px 20px; }
110
- div.wrap h4 { margin:20px 0 0px 0; }
111
-
112
- div.wrap p.jtick {
113
- margin:0 0 2px 24px;
114
- }
115
- div.wrap p.jtick2 {
116
- margin:0 0 2px 35px;
117
- }
118
- div.wrap p.jtext {
119
- margin:0 0 10px 20px;
120
- }
121
-
122
- .joptionswrap {
123
- border-top:0px solid #eee;
124
- margin:30px 0 40px 0px;
125
- }
126
- .joptionswrap h4 {
127
- margin:6px 0 3px 0;
128
- width:250px;
129
- }
130
- .jopbox {
131
- border:1px solid #f0f0f0;
132
- padding:10px 20px;
133
- margin-bottom:15px;
134
- min-width:550px;
135
- }
136
- a.bl3 {
137
- display:block;
138
- width:200px;
139
- padding:0 0 0 20px;
140
- margin:5px 0 1px 0;
141
- /* background:#f0f0f0;
142
- border:1px solid #d0d0d0;
143
- color:#696969; */
144
- }
145
- a.bl3:hover { /* background:#e9e9e9; border:1px solid #c9c9c9; color:#606060; */ }
146
-
147
- .clearB { clear:both; }
148
- .Ahelp1 { float:left; width:300px; border-top:0px solid #ccc; }
149
-
150
- #tog_0-list p { margin:10px 0 10px 0; }
151
- #tog_0-list h4 { margin:10px 0 10px 0; }
152
-
1
+
2
+
3
+
4
+ /* --- Tabs --- */
5
+ .mp3j-tabbuttons-wrap {
6
+ position:relative;
7
+ border:0;
8
+ height:30px;
9
+ padding:5px 0 0 0;
10
+ width:auto;
11
+ border-bottom:1px solid #ccc;
12
+ overflow:visible;
13
+ }
14
+ .mp3j-tabbutton {
15
+ float:left;
16
+ padding:6px 24px 6px 22px;
17
+ font-size:11px; margin:0 2px 0 0; background:#e0e0e0; font-weight:700;
18
+ -webkit-border-top-left-radius: 3px;
19
+ -webkit-border-top-right-radius: 3px;
20
+ -moz-border-radius-topleft: 3px;
21
+ -moz-border-radius-topright: 3px;
22
+ border-top-left-radius: 3px;
23
+ border-top-right-radius: 3px;
24
+ border-bottom:1px solid #ccc;
25
+ cursor:pointer;
26
+ color:#777;
27
+ }
28
+ .active-tab {
29
+ background:#f0f0f0;
30
+ border:1px solid #ccc;
31
+ border-bottom:0px;
32
+ padding:5px 23px 7px 21px;
33
+ color:#333;
34
+ }
35
+
36
+ .mp3j-tabs-wrap {
37
+ position:relative;
38
+ height:auto;
39
+ border-bottom:1px solid #bbb;
40
+ }
41
+ .mp3j-tab {
42
+ position:relative;
43
+ height:auto;
44
+ padding:20px 0px 40px 25px;
45
+ background:#f0f0f0;
46
+ }
47
+ .tab-header { border-bottom:1px solid #ccc; padding:5px 0 10px 0; margin-bottom:15px; width:100%; }
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+ /* ====================================================================================== */
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+ #pickerwrap { position:relative; padding: 0px; background: #444; margin:30px 0px 0px 10px; width:380px; height:208px; border: 0px; }
66
+ .addcol { position:relative; border:1px solid #d8d8d8; background:#e6e6e6; color:#444; padding:3px 3px 4px 3px; cursor:pointer; font-size: 12px; font-weight: 700; width: 20px; -moz-border-radius: 4px; -webkit-border-radius: 4px; margin-left:0px; margin-right:11px; }
67
+ .addcol:hover { border:1px solid #e0e0e0; color:#666; background:#eee; }
68
+ .bl { width: 30px; padding: 5px 0px 6px 30px; margin:0px 0px 0px 0px; height: 30px; border:1px solid #aaa; cursor:pointer; }
69
+ #plugin { position: absolute; BACKGROUND: #444 url('images/Hue.gif') no-repeat 196px 22px; COLOR: #AAA; CURSOR: default; FONT-FAMILY: arial; FONT-SIZE: 12px; line-height: 14px; padding: 22px 9px 0px 9px; _PADDING-RIGHT: 0; Z-INDEX: 1; height:180px; WIDTH: 214px; _width: 210px; top:0px; right:7px; border-left: 0px solid #444; }
70
+ #plugin br { CLEAR: both; MARGIN: 0; PADDING: 0; }
71
+ #plugHEX { position: absolute; top: 85px; left: 33px; COLOR: #FFD000; color:#f0f0f0; width: 70px; height:25px; }
72
+ #plugCUR { position: absolute; width: 81px; height: 57px; font-size: 1px; background: transparent; border: 1px solid #555; top: 21px; left: 33px; }
73
+ #SV { background: #FF0000 url('images/SatVal.png'); _BACKGROUND: #FF0000; POSITION: relative; CURSOR: crosshair; FLOAT: left; HEIGHT: 166px; WIDTH: 167px; _WIDTH: 166px; MARGIN-RIGHT: 17px; margin-top:0px; /* filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/SatVal.png', sizingMethod='scale'); */ border: 1px solid #555; border-top:0px; -moz-user-select: none; -khtml-user-select: none; user-select: none; }
74
+ #SVslide { BACKGROUND: url('images/slide.gif'); HEIGHT: 9px; WIDTH: 9px; POSITION: absolute; _font-size: 4px; line-height: 4px; }
75
+ #H { BORDER: 0; CURSOR: crosshair; FLOAT: left; HEIGHT: 154px; POSITION: relative; WIDTH: 25px; PADDING: 0; TOP: 4px; -moz-user-select: none; -khtml-user-select: none; user-select: none; }
76
+ #Hslide { BACKGROUND: url('images/arrow.gif'); HEIGHT: 8px; WIDTH: 20px; POSITION: absolute; _font-size: 1px; line-height: 1px; }
77
+ #Hmodel { POSITION: relative; TOP: -5px; BORDER: 1px solid #555; WIDTH: 25px; height:166px; }
78
+
79
+
80
+
81
+ a.fox_buttonlink {
82
+ background:#eaf2fa;
83
+ border:1px solid #afcfdb;
84
+ padding:1px 12px 2px 10px;
85
+ text-decoration:none;
86
+ -webkit-border-radius: 3px;
87
+ -moz-border-radius: 3px;
88
+ border-radius: 3px;
89
+ }
90
+ a.fox_buttonlink:hover { background:#dbeafa; border:1px solid #99bac7; color:#222; }
91
+
92
+ a.bl2 { padding:0px 31px 1px 31px; }
93
+
94
+ div#fox_library-list, div#fox_folder-list {
95
+ padding:10px 20px 10px 20px;
96
+ margin:10px 0px 10px 35px;
97
+ background:#f9f9f9;
98
+ border:1px solid #f1f1f1;
99
+ }
100
+
101
+ div.wrap {
102
+ border: 0px solid #FF3300;
103
+ margin:0px 10px 0 20px;
104
+ max-width:1200px;
105
+ }
106
+ div.wrap p { margin:0 0 4px 0; }
107
+ div.wrap h1 { font-weight:500; font-size: 22px; line-height:22px; margin:20px 0 5px 0; padding:0; }
108
+ div.wrap h2 { font-size: 10px; line-height:10px; margin:0; padding:0; }
109
+ div.wrap h3 { margin:0 0 8px 20px; }
110
+ div.wrap h4 { margin:20px 0 0px 0; }
111
+
112
+ div.wrap p.jtick {
113
+ margin:0 0 2px 24px;
114
+ }
115
+ div.wrap p.jtick2 {
116
+ margin:0 0 2px 35px;
117
+ }
118
+ div.wrap p.jtext {
119
+ margin:0 0 10px 20px;
120
+ }
121
+
122
+ .joptionswrap {
123
+ border-top:0px solid #eee;
124
+ margin:30px 0 40px 0px;
125
+ }
126
+ .joptionswrap h4 {
127
+ margin:6px 0 3px 0;
128
+ width:250px;
129
+ }
130
+ .jopbox {
131
+ border:1px solid #f0f0f0;
132
+ padding:10px 20px;
133
+ margin-bottom:15px;
134
+ min-width:550px;
135
+ }
136
+ a.bl3 {
137
+ display:block;
138
+ width:200px;
139
+ padding:0 0 0 20px;
140
+ margin:5px 0 1px 0;
141
+ /* background:#f0f0f0;
142
+ border:1px solid #d0d0d0;
143
+ color:#696969; */
144
+ }
145
+ a.bl3:hover { /* background:#e9e9e9; border:1px solid #c9c9c9; color:#606060; */ }
146
+
147
+ .clearB { clear:both; }
148
+ .Ahelp1 { float:left; width:300px; border-top:0px solid #ccc; }
149
+
150
+ #tog_0-list p { margin:10px 0 10px 0; }
151
+ #tog_0-list h4 { margin:10px 0 10px 0; }
152
+
css/mp3j-help.css CHANGED
@@ -1,26 +1,26 @@
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
- /* ----------------------------------------- */
12
-
13
- a.fox_buttonlink { background:#eaf2fa; border:1px solid #afcfdb; padding:2px 12px 2px 10px; text-decoration:none;
14
- -webkit-border-radius: 3px;
15
- -moz-border-radius: 3px;
16
- border-radius: 3px; }
17
- a.fox_buttonlink:hover { background:#dbeafa; border:1px solid #99bac7; color:#222; }
18
-
19
- a.bl2 { padding:0px 31px 0px 30px; }
20
-
21
- div#fox_library-list, div#fox_folder-list {
22
- padding:10px 20px 10px 20px;
23
- margin:10px 120px 10px 35px;
24
- background:#f9f9f9;
25
- border:1px solid #f1f1f1;
26
  }
1
+
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+ /* ----------------------------------------- */
12
+
13
+ a.fox_buttonlink { background:#eaf2fa; border:1px solid #afcfdb; padding:2px 12px 2px 10px; text-decoration:none;
14
+ -webkit-border-radius: 3px;
15
+ -moz-border-radius: 3px;
16
+ border-radius: 3px; }
17
+ a.fox_buttonlink:hover { background:#dbeafa; border:1px solid #99bac7; color:#222; }
18
+
19
+ a.bl2 { padding:0px 31px 0px 30px; }
20
+
21
+ div#fox_library-list, div#fox_folder-list {
22
+ padding:10px 20px 10px 20px;
23
+ margin:10px 120px 10px 35px;
24
+ background:#f9f9f9;
25
+ border:1px solid #f1f1f1;
26
  }
css/player-silverALT.css CHANGED
@@ -1,643 +1,643 @@
1
- /*
2
- MP3-jPlayer 1.8.1 - Silver Player (alternative style)
3
-
4
- */
5
-
6
- /* === [mp3-jplayer] ============================== */
7
-
8
- /* POSITION AND WIDTH */
9
- div.wrap-MI { border:0; margin:0; background:transparent;
10
- /* position || float */
11
- /* width */
12
- min-width:116px;
13
- }
14
- div.jp-innerwrap,
15
- div.jp-interface,
16
- div.innertab,
17
- div.bars_holder,
18
- div.playlist-wrap-MI {
19
- width:100%;
20
- }
21
-
22
- div.jp-innerwrap { position:relative !important; background:transparent; border:0; margin:0; }
23
- div.jp-interface { position:relative !important; height:110px; min-height:85px; border:0; margin:0; cursor:default; }
24
-
25
- /* BACKGROUNDS */
26
- div.innerx { position: absolute;
27
- width: auto;
28
- height: 20px;
29
- left: 9px;
30
- right: 88px;
31
- top: 0px;
32
- background: url('images/case2t-x.png') repeat-x left top;
33
- z-index:5;
34
- }
35
-
36
- div.innerleft { position: absolute;
37
- width: 10px;
38
- height: 20px; /* IE6 */
39
- left: -1px;
40
- top: 0px;
41
- background: url('images/case2t-l.png') no-repeat left top;
42
- z-index:5; }
43
-
44
- div.innerright { position: absolute;
45
- width: 90px;
46
- height: 20px; /* IE6 */
47
- right: -2px;
48
- top: 0px;
49
- background: url('images/case2t-r.png') no-repeat right top;
50
- z-index:5; }
51
-
52
- /* SCREEN BACKGROUND -------------- */
53
- div.innertab {
54
- position: absolute;
55
- width: 100%;
56
- bottom: 10px;
57
- left: 0px;
58
- top: 0px;
59
- /* background */
60
- /* opacity */
61
- }
62
-
63
-
64
- /* SCREEN
65
- ----------------- */
66
- div.player-track-title, div.jp-play-time, div.jp-total-time, div.statusMI { position:absolute; z-index:50; /* color set from admin */ font:normal normal 500 14px/16px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
67
-
68
- div.player-track-title { top:13px; left:9px; width:auto; right:10px; }
69
- div.player-track-title span { font-size:10px; line-height:12px; padding-left:10px; max-width:95%; }
70
-
71
- div.jp-play-time, div.jp-total-time, div.statusMI { font-size:8px; line-height:10px !important; bottom:52px; text-align:left; font-family:Verdana, Arial, Helvetica, sans-serif; }
72
- div.jp-play-time { right:84px; }
73
- div.jp-total-time { right:6px; opacity:0.8; width:auto; }
74
-
75
-
76
- span.mp3-finding, span.Smp3-finding, span.mp3-tint, span.mp3-gtint { padding:0px 0px 0px 6px !important; font-size:8px !important; line-height:10px !important; height:10px !important; overflow:hidden !important; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; }
77
- span.mp3-finding, span.Smp3-finding { margin:0px 0px 0px -2px; background:url('images/finding-bar1f.gif') repeat 0px 3px; }
78
- span.mp3-tint { margin:0px 2px 0px -6px; opacity:.5; filter:alpha(opacity=50); /* background set from admin */ }
79
- span.mp3-gtint { margin:0px 2px 0px -6px; opacity:.5; filter:alpha(opacity=50); background:#777; }
80
- span.Smp3-finding { margin:0px 0px 0px 3px; }
81
- span.tintmarg { margin:0 2px 0 3px; }
82
-
83
- div.statusMI { right:27px; width:52px !important; height:10px; }
84
- .statusMI span.mp3-finding, .statusMI span.Smp3-finding, .statusMI span.mp3-tint, .statusMI span.mp3-gtint { padding:0px 0px 0px 6px !important; }
85
- .statusMI span.mp3-tint, .statusMI span.mp3-gtint { margin:0px 2px 0px -6px; }
86
-
87
- .MI-image { position:absolute; top:0; left:0; padding:0; }
88
- .MI-image img { border:none; padding:0px; background-color:#bbb; }
89
- .MI-image a:hover img { /* background-colour set from admin */ }
90
-
91
- div.player-track-title.mp3j_widgetmods { font-size: 11px; top: 12px; left:5px; }
92
- div.player-track-title.mp3j_widgetmods span { font-size: 9px; }
93
-
94
- /* DIV TRANSPORT since 1.6 */
95
- /* Transport wrap */
96
- div.transport-MI { position:absolute; left:0px; height:39px; right:0px; bottom:0px; border:0; z-index:15; background:url('images/case2t-x.png') repeat-x left -65px; padding-right:2px; }
97
-
98
- /* playpause button */
99
- div.buttons_mp3j { text-indent:-9999px !important; float:right; width:30px; height: 34px; margin:0px; background: transparent url("images/transport-hard.png") -110px 1px no-repeat !important; }
100
- div.buttons_mp3j:hover { background:transparent url("images/transport-hard.png") -110px -31px no-repeat !important; }
101
- div.buttons_mp3jpause { text-indent:-9999px !important; float:right; width:30px; height: 34px; margin:0px; background: transparent url("images/transport-hard.png") -2px 1px no-repeat !important; }
102
- div.buttons_mp3jpause:hover { background:transparent url("images/transport-hard.png") -2px -31px no-repeat !important; }
103
-
104
- /* prev & next buttons */
105
- div.Prev_mp3j, div.Next_mp3j { text-indent:-9999px !important; float:right; height: 28px; }
106
- div.Prev_mp3j { width:22px; margin:0px 2px 0px 0px; background: transparent url("images/transport-hard.png") -32px -1px no-repeat !important; }
107
- div.Prev_mp3j:hover { background: transparent url("images/transport-hard.png") -32px -33px no-repeat !important; }
108
- div.Next_mp3j { width:19px; margin:0px 1px 0px 0px; background: transparent url("images/transport-hard.png") -57px -1px no-repeat !important; }
109
- div.Next_mp3j:hover { background: transparent url("images/transport-hard.png") -57px -33px no-repeat !important; }
110
-
111
- /* stop button */
112
- div.stop_mp3j { text-indent:-9999px !important; float:right; width:26px; height: 34px; margin:0px 1px 0px 2px; background: transparent url("images/transport-hard.png") -81px 1px no-repeat !important; }
113
- div.stop_mp3j:hover { background:transparent url("images/transport-hard.png") -81px -31px no-repeat !important; }
114
-
115
- /* PLAYLIST TOGGLE */
116
- div.playlist-toggle-MI { position:absolute; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif; bottom:5px; left:1px; color:#707070; padding:2px 6px 2px 5px; line-height:9px; min-width:24px; background:#b9b9b9; -moz-border-radius:1px; -webkit-border-radius:1px; cursor:default; z-index:30; }
117
- div.playlist-toggle-MI:hover { background:#c6c6c6; color:#808080; border-right:1px solid #a9a9a9; }
118
-
119
- /* DOWNLOAD BUTTON */
120
- div.dloadmp3-MI { position:absolute; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif !important; bottom:49px; margin:0px !important; font-size:9px !important; text-align:center; left:0px; width:41%; min-width:75px; max-width:225px; padding:0px 0px 0px 0px !important; border:0px; background:transparent url('images/t10b.png') repeat left top !important; color:#fff; line-height:11px !important; -moz-border-radius-topright:3px; -webkit-border-top-right-radius:3px; overflow:hidden; z-index:150; cursor:default; }
121
- div.dloadmp3-MI.betweenlinks { background:transparent url('images/t10b.png') repeat left top !important; }
122
- div.dloadmp3-MI.whilelinks, div.dloadmp3-MI.logintext { background:#696969 !important; }
123
- div.dloadmp3-MI.whilelinks:hover { background:#777 !important; }
124
-
125
- div.dloadmp3-MI a { color:#ececec; display:block; width:auto; padding:1px 5px 2px 2px !important; margin:0px !important; background:transparent; text-decoration:none !important; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif !important; font-size:9px !important; line-height:11px !important; /* after font declaration */ height:100%; border-bottom:none; visibility:hidden; }
126
- div.dloadmp3-MI a:hover { outline: none; border-bottom: none; color: #ececec; }
127
- div.dloadmp3-MI.betweenlinks a { visibility: hidden; }
128
- div.dloadmp3-MI.whilelinks a { color: #f3f3f3; visibility: inherit; }
129
- div.dloadmp3-MI.whilelinks a:hover { color: #fff; }
130
-
131
- div.dloadmp3-MI p { color:#ececec; display:block; width:auto; padding:1px 5px 2px 2px !important; margin:0px !important; background:transparent; text-decoration:none !important; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif !important; font-size:9px !important; line-height:11px !important; /* after font declaration */ height:100%; border-bottom:none; visibility:visible; }
132
-
133
- /* POPOUT BUTTON */
134
- div.mp3j-popout-MI { position:absolute; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif; bottom:18px; left:0px; height:16px; color:#595959; padding:3px 5px 0px 28px; min-width:2px; line-height:11px; border:1px solid #acacac; background:#bfbfbf url('images/buttons-popout.png') no-repeat -5px -5px; -moz-border-radius:2px; -webkit-border-radius:2px; cursor:default; z-index:30; }
135
- div.mp3j-popout-MI:hover { color:#606060; background:#c6c6c6 url('images/buttons-popout.png') no-repeat -5px -35px; }
136
-
137
-
138
- /* sliders/bars */
139
- .ui-state-disabled { cursor: default !important; }
140
- .ui-slider { position: relative; text-align: left; }
141
- .ui-slider .ui-slider-handle { position: absolute; z-index: 100; cursor: default; }
142
- .ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; }
143
- .ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
144
- .ui-slider-horizontal .ui-slider-range-min { left: 0; }
145
- .ui-slider-horizontal .ui-slider-range-max { right: 0; }
146
- .ui-state-default,
147
- .ui-widget-content .ui-state-default {
148
- outline: none;
149
- border: 0px;
150
- }
151
-
152
-
153
- div.MIsliderVolume { position:absolute;
154
- top:7px;
155
- right: 10px;
156
- width: 59px;
157
- height:2px;
158
- background: #555;
159
- border: 1px solid #606060;
160
- font-size: 1px;
161
- cursor: default;
162
- z-index:10; }
163
-
164
- div.MIsliderVolume .ui-widget-header { /* background */ }
165
-
166
- div.MIsliderVolume .ui-slider-handle {
167
- height: 11px !important;
168
- width: 10px !important;
169
- padding: 0px !important;
170
- margin-left: -4px;
171
- top: -5px;
172
- border: 0px;
173
- -moz-border-radius: 2px;
174
- -webkit-border-radius: 2px;
175
- background: transparent url('images/vol-handle.png') no-repeat -1px 0px;
176
- overflow:hidden !important; }
177
-
178
- div.MIsliderVolume .ui-slider-handle:hover {
179
- border-color: #888;
180
- background: #606060;
181
- background: transparent url('images/vol-handle.png') no-repeat -21px 0px; }
182
-
183
- div.MIsliderVolume .ui-state-active,
184
- div.MIsliderVolume .ui-widget-content .ui-state-active {
185
- border: 0px solid #777;
186
- background: transparent url('images/vol-handle.png') no-repeat -21px 0px;
187
- outline: none; }
188
-
189
- div.bars_holder { position:absolute;
190
- bottom: 39px;
191
- left: 0px;
192
- right: 0px;
193
- width: auto;
194
- height: 9px;
195
- background: #989898;
196
- font-size: 1px;
197
- cursor: default;
198
- border-bottom: 1px solid #d8d8d8;
199
- z-index: 700; }
200
-
201
- div.bars_holder.ui-widget-header { border: 1px solid #555;
202
- border-left: 0px;
203
- border-right: 0px;
204
- margin-right: 20px;
205
- }
206
-
207
- div.poscolMI_mp3j { position:absolute; top:0px; left:0px; bottom:1px;
208
- /* background */
209
- /* opacity */
210
- }
211
- div.posbarMI_mp3j { position: absolute;
212
- /*background: #989898;*/
213
- top: 0px;
214
- font-size: 5px;
215
- border: 0px solid #989898;
216
- border-bottom: 0px solid #888;
217
- border-left: 0px solid #888;
218
- left: 0px;
219
- right: 6px;
220
- width:auto; }
221
-
222
- div.posbarMI_mp3j .ui-slider-handle {
223
- top: -2px;
224
- margin-left: -2px;
225
- border: 0px;
226
- height: 13px;
227
- width: 12px;
228
- background: transparent url('images/pos-handleALT.png') no-repeat left top;
229
- z-index: 800; }
230
-
231
- div.posbarMI_mp3j .ui-slider-handle:hover {
232
- background: transparent url('images/pos-handleALT.png') no-repeat right top; }
233
-
234
- div.posbarMI_mp3j .ui-state-active, div.posbarMI_mp3j .ui-widget-content .ui-state-active {
235
- border: 0px solid #777;
236
- background: 989898 url('images/pos-handleALT.png') no-repeat right top;
237
- outline: none; }
238
-
239
- /* LOAD BAR */
240
- div.loadMI_mp3j { position:absolute; top:6px; left:0px; bottom:0px;
241
- /* background */
242
- /* opacity */
243
- }
244
-
245
- div.bars_holder .ui-progressbar .ui-progressbar-value {margin: 0px; height:100%;
246
- /* background */
247
- /* opacity */
248
- }
249
-
250
- div.bars_holder .ui-slider-horizontal { height: 6px; z-index: 100; }
251
-
252
-
253
- /* PLAYLIST */
254
- div.listwrap_mp3j { position:relative; padding: 0px 0px 0px 0px; margin-top:-2px; /* background */ }
255
- div.playlist-wrap-MI { position:relative; }
256
- div.playlist-wrap-MI ul { position:static; }
257
-
258
-
259
- div.playlist-colour { position:absolute; width:100%; height:100%; left:0px; top:0px;
260
- /* background */
261
- /* opacity */
262
- }
263
-
264
- ul.UL_mp3j { margin:0px !important; padding:0px 0px 0px 0px !important; list-style-type:none !important; list-style:none !important; list-style-image:none !important; }
265
- ul.UL-MI_mp3j { margin:0px !important; padding:0px 0px 0px 0px !important; list-style-type:none !important; list-style:none !important; list-style-image:none !important; font-weight: 500 !important;
266
- /* background */
267
- }
268
- ul.UL_mp3j li { margin:0px !important; padding:0px 0px 0px 15px !important; background:none !important; }
269
- ul.UL_mp3j li:before { content:none !important; }
270
- ul.UL-MI_mp3j li { margin:0px !important; list-style-type:none !important; padding:0px 0px 1px 0px !important; font-weight:500 !important; line-height:16px !important; letter-spacing:0px !important; font-size:11px !important; word-spacing:0px !important; margin:0px 1px 0px 1px !important; }
271
- ul.UL-MI_mp3j li:before { content:none !important; }
272
- ul.UL-MI_mp3j.mp3j_widgetmods li { font-size:10px !important; line-height:14px !important; }
273
-
274
- ul.UL-MI_mp3j li a { font-size:11px !important; border:0 !important; line-height:16px !important; font-weight:500 !important; text-decoration:none !important; display:block !important; width:auto !important; font-family:'verdana', 'Lucida Grande', 'arial', sans-serif !important; outline:none !important; padding:6px 0px 6px 14px !important; }
275
- ul.UL-MI_mp3j.mp3j_widgetmods li a { font-size:10px !important; line-height:14px !important; }
276
-
277
- .MI-image { position:absolute; top:0; left:0; padding:0; }
278
- .MI-image a img { border:none; padding:1px; background-color:#ccc; }
279
- .MI-image a:hover img { /* background-colour */ }
280
-
281
-
282
-
283
- /* FORCED DOWNLOAD FRAME
284
- ------------------------ */
285
-
286
- div.mp3j-dlframe, iframe.mp3j-dlframe {
287
- border:0px solid #ddd;
288
- width:1px;
289
- height:1px;
290
- overflow:hidden;
291
- margin:0;
292
- padding:0;
293
- display:none !important;
294
- }
295
-
296
- /* MESSAGES */
297
- div.mp3j-finfo {
298
- position:absolute;
299
- top:36px;
300
- z-index:9999 !important;
301
- width:80%;
302
- left:10%;
303
- -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px;
304
- background:url('images/fdloadW-x.png') repeat-x left top;
305
- -webkit-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); -moz-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35);
306
- padding:0;
307
- min-height:31px;
308
- overflow:hidden;
309
- min-width:170px;
310
- }
311
-
312
- div.mp3j-finfo * { font-family:Arial, Helvetica, sans-serif !important; }
313
- div.mp3j-finfo-sleeve { position:relative !important; width:100%; height:100%; }
314
- div.mp3j-finfo-gif { position:absolute !important; top:0; left:0; right:10%; bottom:0; background:url('images/loader.gif') no-repeat center 37px; width:auto; padding:0px; height:100%; }
315
- div.mp3j-finfo-txt { position:relative !important; margin:0px 15px 0 15px !important; padding:10px 0 10px 0 !important; width:auto; }
316
- div.mp3j-finfo-close { position:absolute !important; width:31px !important; height:27px !important; padding-top:5px !important; right:0 !important; top:0 !important; text-align:center !important; font-weight:700 !important; font-size:18px !important; line-height:22px !important; color:#aaa !important; border-bottom:1px solid #ccc !important; border-left:1px solid #ccc !important; background:url('images/t40w.png') repeat left top !important; }
317
- div.mp3j-finfo-close:hover { color:#888 !important; }
318
-
319
- div.mp3j-finfo-txt h2 { font-size:15px !important; color:#333 !important; margin:0 0 10px 0 !important; }
320
- div.mp3j-finfo-txt h3 { font-size:14px !important; color:#333 !important; margin:0 0 15px 0 !important; }
321
- div.mp3j-finfo-txt p { font-size:11px !important; color:#555 !important; line-height:13px !important; margin:0 0 5px 0 !important; }
322
- div.mp3j-finfo-txt a { }
323
-
324
-
325
-
326
-
327
- .mp3j-nosolution
328
- {
329
- position:absolute;
330
- z-index:9999;
331
- height:auto;
332
- padding:5%;
333
- border:1px solid #c0c0c0;
334
- background:#f0f0f0;
335
- color:#333;
336
- top:4px;
337
- left:4px;
338
- right:4px;
339
- -webkit-border-top-left-radius: 8px;
340
- -webkit-border-top-right-radius: 8px;
341
- -moz-border-radius-topleft: 8px;
342
- -moz-border-radius-topright: 8px;
343
- border-top-left-radius: 8px;
344
- border-top-right-radius: 8px;
345
- font-size:13px;
346
- -webkit-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); -moz-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35);
347
- }
348
-
349
- .s-nosolution
350
- {
351
- }
352
-
353
-
354
-
355
- /*-------------------------
356
- [mp3j] & [mp3t] SHORTCODES
357
- ==================================== */
358
- span.wrap_inline_mp3j { position:relative; width:auto; cursor:pointer; padding:0; white-space:nowrap; text-align:left; }
359
- /*span.wrap_inline_mp3j:hover .buttons_mp3j { background:transparent url('images/transport-shard-B.png') no-repeat -80px -35px; }*/
360
- span.indi_mp3j { position:relative; padding-left:2px; font-size: 0.7em !important; }
361
-
362
- /* BARS */
363
- span.bars_mp3j { position:absolute; width:100%; height:100%; }
364
- span.load_mp3j, span.loadB_mp3j { position:absolute; /* background */ top:20px; left:0px; height:2px; }
365
- /* mp3t */
366
- span.posbar_mp3j { position:absolute; width:100%; height:100%; border:0px solid #f77; }
367
- span.posbar_mp3j .ui-widget-header { z-index:-500; }
368
- span.posbar_mp3j .ui-slider-handle { top: 2px; margin-left:-2px; border:1px solid #999; height:21px; width:4px; z-index:500; background:url('images/t20b.png') repeat; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
369
- span.posbar_mp3j .ui-slider-handle:hover { background:url('images/t15b.png') repeat; border-color:#aaa; }
370
- /* mp3j */
371
- span.posbarB_mp3j { position:absolute; width:100%; height:100%; border:0; z-index:450; cursor:pointer; }
372
- span.posbarB_mp3j .ui-widget-header { background:transparent; z-index:450; height:100%; }
373
- span.posbarB_mp3j .ui-slider-handle { top: 0px; margin-left:-6px !important; border:0px solid #888; height:23px; width:12px !important; z-index: 500; background: transparent url('images/inlineHandle2.png') no-repeat -3px -3px; cursor: default; padding:0px !important; }
374
- span.posbarB_mp3j .ui-slider-handle:hover { background: transparent url('images/inlineHandle2.png') no-repeat -3px -33px; }
375
-
376
- /* SPAN TRANSPORT */
377
- span.group_wrap { position:relative; margin:0px 0px 0px 0px; width:auto; }
378
- span.textbutton_mp3j, span.T_mp3j { position:relative; width:auto; margin:0px; padding:0px; }
379
- span.buttons_mp3j { position:relative; margin:0px; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -80px -3px; }
380
- span.buttons_mp3j:hover { background:transparent url('images/transport-shard-B.png') no-repeat -80px -35px; }
381
- span.buttons_mp3jpause { position:relative; margin:0px; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -2px -3px; }
382
- span.buttons_mp3jpause:hover { background:transparent url('images/transport-shard-B.png') no-repeat -2px -35px; }
383
-
384
- /* VOLUMES */
385
- span.vol_mp3t { position:absolute; top:-4px; right:4px; width:90%; max-width:100px; height:2px; }
386
- span.vol_mp3j { position:absolute; top:-9px; right:5px; width:85%; max-width:100px; height:2px; }
387
- span.vol_mp3j.flipped { right:4px; }
388
- span.vol_mp3t .ui-widget-header, span.vol_mp3j .ui-widget-header { background: transparent url('images/vol-grad60b2.png') repeat left top; z-index:500; height:100%; }
389
- span.vol_mp3t .ui-slider-handle, span.vol_mp3j .ui-slider-handle { height:11px !important; width:10px !important; padding:0px !important; margin-left:-5px; border:0px !important; border-radius:2px; -moz-border-radius:2px; -webkit-border-radius:2px; z-index:600; overflow:hidden !important; cursor:default; top:-6px; background: transparent url('images/vol-handle.png') no-repeat -1px 0px; }
390
- span.vol_mp3t .ui-slider-handle:hover, span.vol_mp3j .ui-slider-handle:hover { background: transparent url('images/vol-handle.png') no-repeat -21px 0px; }
391
- span.vol_mp3t .ui-state-active, span.vol_mp3t .ui-widget-content .ui-state-active, span.vol_mp3j .ui-state-active, span.vol_mp3j .ui-widget-content .ui-state-active { background:transparent url('images/vol-handle.png') no-repeat -21px 0px; outline:none; border:0px; }
392
-
393
-
394
- /*----------------------
395
- [mp3j-popout] SHORTCODE
396
- ================================================= */
397
- .mp3j-popout-link-wrap { cursor:pointer; position:relative; clear:left; }
398
- .mp3j-popout-link { float:left; margin:0 5px 0 0; min-width:22px; min-height:18px; background:url('images/buttons-popout.png') no-repeat -10px -65px; }
399
- .mp3j-popout-link-wrap:hover .mp3j-popout-link { background:url('images/buttons-popout.png') no-repeat -10px -95px; }
400
-
401
-
402
-
403
-
404
- /*=================================================
405
-
406
- MODS
407
- (via 'style' param in shortcode)
408
- ================================================= */
409
-
410
- /* ===== "nolistbutton" ===== */
411
- .nolistbutton div.playlist-toggle-MI { visibility:hidden; }
412
-
413
- /* ===== "nopopoutbutton" ===== */
414
- .nopopoutbutton div.mp3j-popout-MI { display:none; }
415
-
416
- /* ===== "nopn" ===== */
417
- .nopn div.Prev_mp3j { display:none; }
418
- .nopn div.Next_mp3j { display:none; }
419
-
420
- /* ===== "nostop" ===== */
421
- .nostop div.stop_mp3j { display:none; }
422
-
423
-
424
- /* ===== "bars100" ===== */
425
- .bars100 div.player-track-title { left:112px; }
426
- .bars100 div.dloadmp3-MI { left:102px; width:36%;}
427
- .bars100 div.bars_holder { left:102px; width:auto; }
428
- .bars100 .MI-image img { padding:1px; }
429
- .bars100 div.player-track-title { top:20px; }
430
-
431
- /* ===== "bars150" ===== */
432
- .bars150 div.player-track-title { left:162px; }
433
- .bars150 div.dloadmp3-MI { left:152px; width:33%;}
434
- .bars150 div.bars_holder { left:152px; width:auto; }
435
- .bars150 .MI-image img { padding:1px; }
436
- .bars150 div.player-track-title { top:20px; }
437
-
438
- /* ===== "bars200" ===== */
439
- .bars200 div.player-track-title { left:212px; }
440
- .bars200 div.dloadmp3-MI { left:202px; width:30%; }
441
- .bars200 div.bars_holder { left:202px; width:auto; }
442
- .bars200 .MI-image img { padding:1px; }
443
- .bars200 div.player-track-title { top:20px; }
444
-
445
- /* ===== "bars250" ===== */
446
- .bars250 div.player-track-title { left:262px; }
447
- .bars250 div.dloadmp3-MI { left:252px; width:27%;}
448
- .bars250 div.bars_holder { left:252px; width:auto; }
449
- .bars250 .MI-image img { padding:1px; }
450
- .bars250 div.player-track-title { top:20px; }
451
-
452
- /* ===== "bars300" ===== */
453
- .bars300 div.player-track-title { left:312px; }
454
- .bars300 div.dloadmp3-MI { left:302px; width:24%; }
455
- .bars300 div.bars_holder { left:302px; width:auto; }
456
- .bars300 .MI-image img { padding:1px; }
457
- .bars300 div.player-track-title { top:20px; }
458
-
459
- /* ===== "bars350" ===== */
460
- .bars350 div.player-track-title { left:362px; }
461
- .bars350 div.dloadmp3-MI { left:352px; width:21%;}
462
- .bars350 div.bars_holder { left:352px; width:auto; }
463
- .bars350 .MI-image img { padding:1px; }
464
- .bars350 div.player-track-title { top:20px; }
465
-
466
- /* ===== "bars400" ===== */
467
- .bars400 div.player-track-title { left:412px; }
468
- .bars400 div.dloadmp3-MI { left:402px; width:18%; }
469
- .bars400 div.bars_holder { left:402px; width:auto; }
470
- .bars400 .MI-image img { padding:1px; }
471
- .bars400 div.player-track-title { top:20px; }
472
-
473
- /* ===== bigger1 ===== */
474
- .bigger1 { font-size:18px; line-height:26px !important; margin:0 !important; }
475
- .bigger1 span.load_mp3j,
476
- .bigger1 span.loadB_mp3j { top:24px; left:0px; height:2px; }
477
- .bigger1 span.posbar_mp3j .ui-slider-handle { top: 3px; height:24px; width:6px !important; margin-left:-3px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
478
- .bigger1 span.posbarB_mp3j .ui-slider-handle { top: 3px; margin-left:-3px !important; border:1px solid #999; height:24px; width:6px !important; z-index:500; background:url('images/mp3t-poshandle.png') repeat-y -50px 0px; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
479
- .bigger1 span.posbarB_mp3j .ui-slider-handle:hover { background:url('images/mp3t-poshandle.png') repeat-y 0px 0px; border-color:#aaa; }
480
- .bigger1 span.buttons_mp3j { position:relative; margin:0px; margin-left:5px !important; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -80px 0px; }
481
- .bigger1 span.buttons_mp3j:hover { background:transparent url('images/transport-shard-B.png') no-repeat -80px -32px; }
482
- .bigger1 span.buttons_mp3jpause { position:relative; margin:0px; margin-left:5px !important; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -2px 0px; }
483
- .bigger1 span.buttons_mp3jpause:hover { background:transparent url('images/transport-shard-B.png') no-repeat -2px -32px; }
484
- .bigger1 span.vol_mp3j { position:absolute; top:-6px; right:7px; width:85%; max-width:100px; height:2px; }
485
-
486
- .bigger1 div.player-track-title { font:normal normal 500 18px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
487
-
488
- .bigger1 div.player-track-title span { font:normal normal 500 14px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
489
- .bigger1 ul.UL-MI_mp3j li a, .bigger1 ul.UL-MI_mp3j li { font-size:16px !important; line-height:19px !important; }
490
- .bigger1 .indi_mp3j { font-size: 0.6em !important; }
491
-
492
- /* ===== "bigger2" ===== */
493
- .bigger2 div.player-track-title { font:normal normal 500 36px/38px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
494
- .bigger2 div.player-track-title span { font:normal normal 500 20px/22px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
495
- .bigger2 ul.UL-MI_mp3j li a, .bigger2 ul.UL-MI_mp3j li { font-size:20px !important; line-height:24px !important; }
496
- .bigger2 { font-size:23px; line-height:25px !important; margin:0 !important; }
497
- .bigger2 span.load_mp3j,
498
- .bigger2 span.loadB_mp3j { top:26px; left:0px; height:2px; }
499
- .bigger2 span.posbar_mp3j .ui-slider-handle { top: 0px; height:28px; width:6px !important; margin-left:-3px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
500
- .bigger2 span.posbarB_mp3j .ui-slider-handle { top: -1px; margin-left:-3px !important; border:1px solid #999; height:29px; width:8px !important; z-index:500; border-color:#aaa; background:url('images/mp3t-poshandle.png') repeat-y 0px 0px; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
501
- .bigger2 span.posbarB_mp3j .ui-slider-handle:hover { background:url('images/mp3t-poshandle.png') repeat-y -50px 0px; border-color:#999; }
502
- .bigger2 span.buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:2px 0px 4px 20px !important; background:url('images/play-dark2-b.png') no-repeat -186px center; border:0px solid #bbb; margin-left:10px; }
503
- .bigger2 span.buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -437px center; }
504
- .bigger2 span.buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:0px 0px 2px 20px !important; background:url('images/stop-dark2-b.png') repeat-y 0px top; border:0px solid #bbb; margin-left:10px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
505
- .bigger2 span.buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
506
- .bigger2 span.vol_mp3j { position:absolute; top:-12px; right:4px; width:85%; max-width:100px; height:2px; }
507
- .bigger2 span.vol_mp3t { position:absolute; top:-10px; width:85%; max-width:100px; height:2px; }
508
- .bigger2 .Smp3-finding,
509
- .bigger2 .mp3-tint,
510
- .bigger2 .mp3-gtint { margin-left:8px; margin-right:6px; padding:0px 0px 0px 10px !important; font-size:12px !important; line-height:12px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
511
- .bigger2 .mp3-gtint { margin:0 6px 0 -16px; }
512
- .bigger2 .indi_mp3j { font-size: 0.5em !important; padding-left:0px; }
513
-
514
- .bigger2.wh .buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:2px 0px 4px 20px !important; background:url('images/play-dark2-w.png') no-repeat -186px center; border:0px solid #bbb; margin-left:10px; }
515
- .bigger2.wh .buttons_mp3j:hover { background:url('images/play-dark2-w.png') no-repeat -437px center; }
516
- .bigger2.wh .buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:0px 0px 2px 20px !important; background:url('images/stop-dark2-w.png') repeat-y 0px top; border:0px solid #bbb; margin-left:10px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
517
- .bigger2.wh .buttons_mp3jpause:hover { background:url('images/stop-dark2-w.png') repeat-y -350px top; }
518
-
519
-
520
-
521
- /* ===== bigger3 ===== */
522
- .bigger3 { font-size:28px; line-height:36px !important; margin:0 !important; }
523
- .bigger3 .load_mp3j, .bigger3 .loadB_mp3j { top:37px; left:0px; height:3px; }
524
- .bigger3 .posbar_mp3j .ui-slider-handle, .bigger3 .posbarB_mp3j .ui-slider-handle { top: 0px; border:1px solid #bbb; height:40px; width:12px !important; margin-left:-5px !important; background:url('images/stop-dark2.png') repeat-y -350px top; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
525
- .bigger3 .posbar_mp3j .ui-slider-handle:hover, .bigger3 .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2.png') repeat-y 0px top; border:1px solid #aaa; }
526
- .bigger3 .indi_mp3j { font-size: 0.5em !important; }
527
- .bigger3 span.buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:8px 0px 12px 30px !important; background:url('images/play-dark2.png') no-repeat -177px center; border:0px solid #bbb; margin-left:12px; }
528
- .bigger3 span.buttons_mp3j:hover { background:url('images/play-dark2.png') no-repeat -428px center; }
529
- .bigger3 span.buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:2px 0px 6px 30px !important; background:url('images/stop-dark2.png') repeat-y 0px top; border:0px solid #bbb; margin-left:12px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
530
- .bigger3 span.buttons_mp3jpause:hover { background:url('images/stop-dark2.png') repeat-y -350px top; }
531
- .bigger3 .vol_mp3j { height:1px; max-width:110px; right:64px; top:-8px; }
532
- .bigger3 .vol_mp3t { height:1px; max-width:110px; right:16px; top:-5px; }
533
- .bigger3 .vol_mp3j .ui-slider-handle, .bigger3 .vol_mp3t .ui-slider-handle { height:14px !important; width:33px !important; margin-left:-16px; border-bottom:1px solid #ccc !important; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; top:-14px; background:url('images/volhandle-dark2.png') no-repeat -10px bottom; }
534
- .bigger3 .vol_mp3j .ui-slider-handle:hover, .bigger3 .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2.png') no-repeat -257px bottom; }
535
- .bigger3 .Smp3-finding,
536
- .bigger3 .mp3-tint,
537
- .bigger3 .mp3-gtint { margin-left:8px; padding:0px 0px 0px 14px !important; font-size:18px !important; line-height:20px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
538
- .bigger3 .mp3-gtint { margin:0 2px 0 -14px; }
539
- .bigger3 div.player-track-title { font:normal normal 500 44px/46px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
540
- .bigger3 div.player-track-title span { font:normal normal 500 28px/30px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
541
- .bigger3 ul.UL-MI_mp3j li a, .bigger3 ul.UL-MI_mp3j li { font-size:28px !important; line-height:30px !important; }
542
-
543
- .bigger3.bl span.buttons_mp3j { background:url('images/play-dark2-b.png') no-repeat -177px center; }
544
- .bigger3.bl span.buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -428px center; }
545
- .bigger3.bl span.buttons_mp3jpause { background:url('images/stop-dark2-b.png') repeat-y 0px top; }
546
- .bigger3.bl span.buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
547
- .bigger3.bl span.vol_mp3j .ui-slider-handle, .bigger3.bl span.vol_mp3t .ui-slider-handle { background:url('images/volhandle-dark2-b.png') no-repeat -10px bottom; }
548
- .bigger3.bl span.vol_mp3j .ui-slider-handle:hover, .bigger3.bl span.vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-b.png') no-repeat -257px bottom; }
549
-
550
-
551
-
552
- /* ===== bigger4 ===== */
553
- .bigger4 { font-size:38px; line-height:46px !important; margin:0 !important; }
554
- .bigger4 .load_mp3j, .bigger4 .loadB_mp3j { top:46px; left:0px; height:3px; }
555
- .bigger4 .posbar_mp3j .ui-slider-handle, .bigger4 .posbarB_mp3j .ui-slider-handle { top: -2px; border:1px solid #bbb; height:52px; width:16px !important; margin-left:-8px !important; background:url('images/stop-dark2.png') repeat-y -350px top; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
556
- .bigger4 .posbar_mp3j .ui-slider-handle:hover, .bigger4 .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2.png') repeat-y 0px top; border:1px solid #aaa; }
557
- .bigger4 .indi_mp3j { font-size: 0.5em !important; }
558
- .bigger4 span.buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:8px 0px 12px 40px !important; background:url('images/play-dark2.png') no-repeat -167px center; border:0px solid #bbb; margin-left:15px; }
559
- .bigger4 span.buttons_mp3j:hover { background:url('images/play-dark2.png') no-repeat -418px center; }
560
- .bigger4 span.buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:2px 0px 4px 40px !important; background:url('images/stop-dark2.png') repeat-y 0px top; border:0px solid #bbb; margin-left:15px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
561
- .bigger4 span.buttons_mp3jpause:hover { background:url('images/stop-dark2.png') repeat-y -350px top; }
562
- .bigger4 .vol_mp3j { height:1px; max-width:110px; right:86px; top:-8px; }
563
- .bigger4 .vol_mp3t { height:1px; max-width:110px; right:20px; top:-5px; }
564
- .bigger4 .vol_mp3j .ui-slider-handle, .bigger4 .vol_mp3t .ui-slider-handle { height:20px !important; width:43px !important; margin-left:-21px; border-bottom:1px solid #ccc !important; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; top:-20px; background:url('images/volhandle-dark2.png') no-repeat -10px bottom; }
565
- .bigger4 .vol_mp3j .ui-slider-handle:hover, .bigger4 .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2.png') no-repeat -257px bottom; }
566
- .bigger4 .Smp3-finding,
567
- .bigger4 .mp3-tint,
568
- .bigger4 .mp3-gtint { margin-left:8px; margin-right:6px; padding:0px 0px 0px 14px !important; font-size:18px !important; line-height:20px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
569
- .bigger4 .mp3-gtint { margin:0 6px 0 -20px; }
570
-
571
- .bigger4 div.player-track-title { font:normal normal 500 44px/46px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
572
- .bigger4 div.player-track-title span { font:normal normal 500 28px/30px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
573
- .bigger4 ul.UL-MI_mp3j li a, .bigger4 ul.UL-MI_mp3j li { font-size:28px !important; line-height:30px !important; }
574
-
575
- .bigger4.bl .posbar_mp3j .ui-slider-handle, .bigger4.bl .posbarB_mp3j .ui-slider-handle { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
576
- .bigger4.bl .posbar_mp3j .ui-slider-handle:hover, .bigger4.bl .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2-b.png') repeat-y 0px top; }
577
- .bigger4.bl .buttons_mp3j { background:url('images/play-dark2-b.png') no-repeat -167px center; }
578
- .bigger4.bl .buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -418px center; }
579
- .bigger4.bl .buttons_mp3jpause { background:url('images/stop-dark2-b.png') repeat-y 0px top; }
580
- .bigger4.bl .buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
581
- .bigger4.bl .vol_mp3j .ui-slider-handle, .bigger4.bl .vol_mp3t .ui-slider-handle { background:url('images/volhandle-dark2-b.png') no-repeat -10px bottom; }
582
- .bigger4.bl .vol_mp3j .ui-slider-handle:hover, .bigger4.bl .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-b.png') no-repeat -257px bottom; }
583
-
584
-
585
-
586
- /* ===== bigger5 ===== */
587
- .bigger5 { font-size:48px; line-height:60px !important; margin:0 !important; }
588
- .bigger5 .load_mp3j, .bigger5 .loadB_mp3j { top:63px; left:0px; height:4px; }
589
- .bigger5 .posbar_mp3j .ui-slider-handle, .bigger5 .posbarB_mp3j .ui-slider-handle { top: -1px; border:1px solid #bbb; height:69px; width:20px !important; margin-left:-10px !important; background:url('images/stop-dark2.png') repeat-y -350px top; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
590
- .bigger5 .posbar_mp3j .ui-slider-handle:hover, .bigger5 .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2.png') repeat-y 0px top; border:1px solid #aaa; }
591
- .bigger5 .indi_mp3j { font-size: 0.5em !important; }
592
- .bigger5 span.buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:8px 0px 13px 52px !important; background:url('images/play-dark2.png') no-repeat -154px center; border:0px solid #bbb; margin-left:20px; }
593
- .bigger5 span.buttons_mp3j:hover { background:url('images/play-dark2.png') no-repeat -405px center; }
594
- .bigger5 span.buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:3px 0px 8px 52px !important; background:url('images/stop-dark2.png') repeat-y 0px top; border:0px solid #bbb; margin-left:15px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
595
- .bigger5 span.buttons_mp3jpause:hover { background:url('images/stop-dark2.png') repeat-y -350px top; }
596
- .bigger5 .vol_mp3j { height:1px; max-width:170px; right:115px; top:-10px; }
597
- .bigger5 .vol_mp3t { height:1px; max-width:170px; right:33px; top:-5px; }
598
- .bigger5 .vol_mp3j .ui-slider-handle, .bigger5 .vol_mp3t .ui-slider-handle { height:30px !important; width:55px !important; margin-left:-21px; border-bottom:1px solid #aaa !important; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; top:-30px; background:url('images/volhandle-dark2.png') no-repeat -10px bottom; }
599
- .bigger5 .vol_mp3j .ui-slider-handle:hover, .bigger5 .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2.png') no-repeat -257px bottom; }
600
- .bigger5 .Smp3-finding,
601
- .bigger5 .mp3-tint,
602
- .bigger5 .mp3-gtint { margin-left:8px; margin-right:6px; padding:0px 0px 0px 14px !important; font-size:18px !important; line-height:20px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
603
- .bigger5 .mp3-gtint { margin:0 6px 0 -20px; }
604
-
605
- .bigger5.bl .posbar_mp3j .ui-slider-handle, .bigger5.bl .posbarB_mp3j .ui-slider-handle { background:url('images/stop-dark2-b.png') repeat-y -350px top; border:1px solid #888; }
606
- .bigger5.bl .posbar_mp3j .ui-slider-handle:hover, .bigger5.bl .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2-b.png') repeat-y 0px top; border:1px solid #777; }
607
- .bigger5.bl .buttons_mp3j { background:url('images/play-dark2-b.png') no-repeat -154px center; border:0px solid #bbb; margin-left:20px; }
608
- .bigger5.bl .buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -405px center; }
609
- .bigger5.bl .buttons_mp3jpause { background:url('images/stop-dark2-b.png') repeat-y 0px top; }
610
- .bigger5.bl .buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
611
- .bigger5.bl .vol_mp3j .ui-slider-handle, .bigger5.bl .vol_mp3t .ui-slider-handle { background:url('images/volhandle-dark2-b.png') no-repeat -10px bottom; }
612
- .bigger5.bl .vol_mp3j .ui-slider-handle:hover, .bigger5.bl .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-b.png') no-repeat -257px bottom; }
613
-
614
-
615
- /* ===== "smaller" ===== */
616
- .smaller div.player-track-title { font:normal normal 500 11px/13px 'verdana', 'Lucida Grande', 'arial', sans-serif !important; left:3px; right:5px; }
617
- .smaller div.player-track-title span { font:normal normal 500 10px/10px 'verdana', 'Lucida Grande', 'arial', sans-serif !important; padding:0; }
618
- .smaller ul.UL-MI_mp3j li a, .smaller ul.UL-MI_mp3j li { font-size:10px !important; font-family:'verdana', Helvetica, sans-serif !important; line-height:13px !important; }
619
-
620
-
621
- /* ===== outline ==== */
622
- span.outline { font-size:14px; line-height:22px !important; margin:0 !important; }
623
- .outline span.vol_mp3t { position:absolute; top:-4px; right:4px; width:90%; max-width:100px; height:2px; background: transparent; }
624
- .outline span.vol_mp3j { position:absolute; top:-9px; right:7px; width:85%; max-width:100px; height:2px; background: transparent; }
625
- .outline span.buttons_mp3j { padding:2px 0px 5px 20px !important; background: transparent url('images/transport-outline.png') no-repeat -80px -1px; border:0; margin:0; }
626
- .outline span.buttons_mp3j:hover { background:transparent url('images/transport-outline.png') no-repeat -80px -33px; }
627
- .outline span.buttons_mp3jpause { padding:2px 0px 5px 20px !important; background: transparent url('images/transport-outline.png') no-repeat 1px -1px; border:0; margin:0; }
628
- .outline span.buttons_mp3jpause:hover { background:transparent url('images/transport-outline.png') no-repeat 1px -33px; }
629
- .outline span.posbarB_mp3j { position:absolute; width:100%; height:100%; border:0px solid #f77; }
630
- .outline span.posbarB_mp3j .ui-widget-header { z-index:-500; }
631
- .outline span.posbarB_mp3j .ui-slider-handle { top: 0px; margin-left:0px; border:1px solid #aaa; height:23px; width:5px !important; z-index:500; background:url('images/t10b.png') repeat; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
632
- .outline span.posbarB_mp3j .ui-slider-handle:hover { background:url('images/t20b.png') repeat; border-color:#777; }
633
-
634
-
635
- /* ===== wtransbars ==== */
636
- .wtransbars div.loadMI_mp3j { background:#fff; opacity:0.1; filter:alpha(opacity=10); }
637
- .wtransbars div.poscolMI_mp3j { background:#fff url('images/posbar-soften-tipped-2.png') repeat-y right top; opacity:0.15; filter:alpha(opacity=15); }
638
- .wtransbars div.player-track-title { color:#fff; }
639
-
640
- /* ===== btransbars ==== */
641
- .btransbars div.loadMI_mp3j { background:#000; opacity:0.1; filter:alpha(opacity=10); }
642
- .btransbars div.poscolMI_mp3j { background:#000 url('images/posbar-soften-tipped-2.png') repeat-y right top; opacity:0.15; filter:alpha(opacity=15); }
643
- .btransbars div.player-track-title { color:#000; }
1
+ /*
2
+ MP3-jPlayer 1.8.1 - Silver Player (alternative style)
3
+
4
+ */
5
+
6
+ /* === [mp3-jplayer] ============================== */
7
+
8
+ /* POSITION AND WIDTH */
9
+ div.wrap-MI { border:0; margin:0; background:transparent;
10
+ /* position || float */
11
+ /* width */
12
+ min-width:116px;
13
+ }
14
+ div.jp-innerwrap,
15
+ div.jp-interface,
16
+ div.innertab,
17
+ div.bars_holder,
18
+ div.playlist-wrap-MI {
19
+ width:100%;
20
+ }
21
+
22
+ div.jp-innerwrap { position:relative !important; background:transparent; border:0; margin:0; }
23
+ div.jp-interface { position:relative !important; height:110px; min-height:85px; border:0; margin:0; cursor:default; }
24
+
25
+ /* BACKGROUNDS */
26
+ div.innerx { position: absolute;
27
+ width: auto;
28
+ height: 20px;
29
+ left: 9px;
30
+ right: 88px;
31
+ top: 0px;
32
+ background: url('images/case2t-x.png') repeat-x left top;
33
+ z-index:5;
34
+ }
35
+
36
+ div.innerleft { position: absolute;
37
+ width: 10px;
38
+ height: 20px; /* IE6 */
39
+ left: -1px;
40
+ top: 0px;
41
+ background: url('images/case2t-l.png') no-repeat left top;
42
+ z-index:5; }
43
+
44
+ div.innerright { position: absolute;
45
+ width: 90px;
46
+ height: 20px; /* IE6 */
47
+ right: -2px;
48
+ top: 0px;
49
+ background: url('images/case2t-r.png') no-repeat right top;
50
+ z-index:5; }
51
+
52
+ /* SCREEN BACKGROUND -------------- */
53
+ div.innertab {
54
+ position: absolute;
55
+ width: 100%;
56
+ bottom: 10px;
57
+ left: 0px;
58
+ top: 0px;
59
+ /* background */
60
+ /* opacity */
61
+ }
62
+
63
+
64
+ /* SCREEN
65
+ ----------------- */
66
+ div.player-track-title, div.jp-play-time, div.jp-total-time, div.statusMI { position:absolute; z-index:50; /* color set from admin */ font:normal normal 500 14px/16px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
67
+
68
+ div.player-track-title { top:13px; left:9px; width:auto; right:10px; }
69
+ div.player-track-title span { font-size:10px; line-height:12px; padding-left:10px; max-width:95%; }
70
+
71
+ div.jp-play-time, div.jp-total-time, div.statusMI { font-size:8px; line-height:10px !important; bottom:52px; text-align:left; font-family:Verdana, Arial, Helvetica, sans-serif; }
72
+ div.jp-play-time { right:84px; }
73
+ div.jp-total-time { right:6px; opacity:0.8; width:auto; }
74
+
75
+
76
+ span.mp3-finding, span.Smp3-finding, span.mp3-tint, span.mp3-gtint { padding:0px 0px 0px 6px !important; font-size:8px !important; line-height:10px !important; height:10px !important; overflow:hidden !important; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; }
77
+ span.mp3-finding, span.Smp3-finding { margin:0px 0px 0px -2px; background:url('images/finding-bar1f.gif') repeat 0px 3px; }
78
+ span.mp3-tint { margin:0px 2px 0px -6px; opacity:.5; filter:alpha(opacity=50); /* background set from admin */ }
79
+ span.mp3-gtint { margin:0px 2px 0px -6px; opacity:.5; filter:alpha(opacity=50); background:#777; }
80
+ span.Smp3-finding { margin:0px 0px 0px 3px; }
81
+ span.tintmarg { margin:0 2px 0 3px; }
82
+
83
+ div.statusMI { right:27px; width:52px !important; height:10px; }
84
+ .statusMI span.mp3-finding, .statusMI span.Smp3-finding, .statusMI span.mp3-tint, .statusMI span.mp3-gtint { padding:0px 0px 0px 6px !important; }
85
+ .statusMI span.mp3-tint, .statusMI span.mp3-gtint { margin:0px 2px 0px -6px; }
86
+
87
+ .MI-image { position:absolute; top:0; left:0; padding:0; }
88
+ .MI-image img { border:none; padding:0px; background-color:#bbb; }
89
+ .MI-image a:hover img { /* background-colour set from admin */ }
90
+
91
+ div.player-track-title.mp3j_widgetmods { font-size: 11px; top: 12px; left:5px; }
92
+ div.player-track-title.mp3j_widgetmods span { font-size: 9px; }
93
+
94
+ /* DIV TRANSPORT since 1.6 */
95
+ /* Transport wrap */
96
+ div.transport-MI { position:absolute; left:0px; height:39px; right:0px; bottom:0px; border:0; z-index:15; background:url('images/case2t-x.png') repeat-x left -65px; padding-right:2px; }
97
+
98
+ /* playpause button */
99
+ div.buttons_mp3j { text-indent:-9999px !important; float:right; width:30px; height: 34px; margin:0px; background: transparent url("images/transport-hard.png") -110px 1px no-repeat !important; }
100
+ div.buttons_mp3j:hover { background:transparent url("images/transport-hard.png") -110px -31px no-repeat !important; }
101
+ div.buttons_mp3jpause { text-indent:-9999px !important; float:right; width:30px; height: 34px; margin:0px; background: transparent url("images/transport-hard.png") -2px 1px no-repeat !important; }
102
+ div.buttons_mp3jpause:hover { background:transparent url("images/transport-hard.png") -2px -31px no-repeat !important; }
103
+
104
+ /* prev & next buttons */
105
+ div.Prev_mp3j, div.Next_mp3j { text-indent:-9999px !important; float:right; height: 28px; }
106
+ div.Prev_mp3j { width:22px; margin:0px 2px 0px 0px; background: transparent url("images/transport-hard.png") -32px -1px no-repeat !important; }
107
+ div.Prev_mp3j:hover { background: transparent url("images/transport-hard.png") -32px -33px no-repeat !important; }
108
+ div.Next_mp3j { width:19px; margin:0px 1px 0px 0px; background: transparent url("images/transport-hard.png") -57px -1px no-repeat !important; }
109
+ div.Next_mp3j:hover { background: transparent url("images/transport-hard.png") -57px -33px no-repeat !important; }
110
+
111
+ /* stop button */
112
+ div.stop_mp3j { text-indent:-9999px !important; float:right; width:26px; height: 34px; margin:0px 1px 0px 2px; background: transparent url("images/transport-hard.png") -81px 1px no-repeat !important; }
113
+ div.stop_mp3j:hover { background:transparent url("images/transport-hard.png") -81px -31px no-repeat !important; }
114
+
115
+ /* PLAYLIST TOGGLE */
116
+ div.playlist-toggle-MI { position:absolute; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif; bottom:5px; left:1px; color:#707070; padding:2px 6px 2px 5px; line-height:9px; min-width:24px; background:#b9b9b9; -moz-border-radius:1px; -webkit-border-radius:1px; cursor:default; z-index:30; }
117
+ div.playlist-toggle-MI:hover { background:#c6c6c6; color:#808080; border-right:1px solid #a9a9a9; }
118
+
119
+ /* DOWNLOAD BUTTON */
120
+ div.dloadmp3-MI { position:absolute; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif !important; bottom:49px; margin:0px !important; font-size:9px !important; text-align:center; left:0px; width:41%; min-width:75px; max-width:225px; padding:0px 0px 0px 0px !important; border:0px; background:transparent url('images/t10b.png') repeat left top !important; color:#fff; line-height:11px !important; -moz-border-radius-topright:3px; -webkit-border-top-right-radius:3px; overflow:hidden; z-index:150; cursor:default; }
121
+ div.dloadmp3-MI.betweenlinks { background:transparent url('images/t10b.png') repeat left top !important; }
122
+ div.dloadmp3-MI.whilelinks, div.dloadmp3-MI.logintext { background:#696969 !important; }
123
+ div.dloadmp3-MI.whilelinks:hover { background:#777 !important; }
124
+
125
+ div.dloadmp3-MI a { color:#ececec; display:block; width:auto; padding:1px 5px 2px 2px !important; margin:0px !important; background:transparent; text-decoration:none !important; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif !important; font-size:9px !important; line-height:11px !important; /* after font declaration */ height:100%; border-bottom:none; visibility:hidden; }
126
+ div.dloadmp3-MI a:hover { outline: none; border-bottom: none; color: #ececec; }
127
+ div.dloadmp3-MI.betweenlinks a { visibility: hidden; }
128
+ div.dloadmp3-MI.whilelinks a { color: #f3f3f3; visibility: inherit; }
129
+ div.dloadmp3-MI.whilelinks a:hover { color: #fff; }
130
+
131
+ div.dloadmp3-MI p { color:#ececec; display:block; width:auto; padding:1px 5px 2px 2px !important; margin:0px !important; background:transparent; text-decoration:none !important; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif !important; font-size:9px !important; line-height:11px !important; /* after font declaration */ height:100%; border-bottom:none; visibility:visible; }
132
+
133
+ /* POPOUT BUTTON */
134
+ div.mp3j-popout-MI { position:absolute; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif; bottom:18px; left:0px; height:16px; color:#595959; padding:3px 5px 0px 28px; min-width:2px; line-height:11px; border:1px solid #acacac; background:#bfbfbf url('images/buttons-popout.png') no-repeat -5px -5px; -moz-border-radius:2px; -webkit-border-radius:2px; cursor:default; z-index:30; }
135
+ div.mp3j-popout-MI:hover { color:#606060; background:#c6c6c6 url('images/buttons-popout.png') no-repeat -5px -35px; }
136
+
137
+
138
+ /* sliders/bars */
139
+ .ui-state-disabled { cursor: default !important; }
140
+ .ui-slider { position: relative; text-align: left; }
141
+ .ui-slider .ui-slider-handle { position: absolute; z-index: 100; cursor: default; }
142
+ .ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; }
143
+ .ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
144
+ .ui-slider-horizontal .ui-slider-range-min { left: 0; }
145
+ .ui-slider-horizontal .ui-slider-range-max { right: 0; }
146
+ .ui-state-default,
147
+ .ui-widget-content .ui-state-default {
148
+ outline: none;
149
+ border: 0px;
150
+ }
151
+
152
+
153
+ div.MIsliderVolume { position:absolute;
154
+ top:7px;
155
+ right: 10px;
156
+ width: 59px;
157
+ height:2px;
158
+ background: #555;
159
+ border: 1px solid #606060;
160
+ font-size: 1px;
161
+ cursor: default;
162
+ z-index:10; }
163
+
164
+ div.MIsliderVolume .ui-widget-header { /* background */ }
165
+
166
+ div.MIsliderVolume .ui-slider-handle {
167
+ height: 11px !important;
168
+ width: 10px !important;
169
+ padding: 0px !important;
170
+ margin-left: -4px;
171
+ top: -5px;
172
+ border: 0px;
173
+ -moz-border-radius: 2px;
174
+ -webkit-border-radius: 2px;
175
+ background: transparent url('images/vol-handle.png') no-repeat -1px 0px;
176
+ overflow:hidden !important; }
177
+
178
+ div.MIsliderVolume .ui-slider-handle:hover {
179
+ border-color: #888;
180
+ background: #606060;
181
+ background: transparent url('images/vol-handle.png') no-repeat -21px 0px; }
182
+
183
+ div.MIsliderVolume .ui-state-active,
184
+ div.MIsliderVolume .ui-widget-content .ui-state-active {
185
+ border: 0px solid #777;
186
+ background: transparent url('images/vol-handle.png') no-repeat -21px 0px;
187
+ outline: none; }
188
+
189
+ div.bars_holder { position:absolute;
190
+ bottom: 39px;
191
+ left: 0px;
192
+ right: 0px;
193
+ width: auto;
194
+ height: 9px;
195
+ background: #989898;
196
+ font-size: 1px;
197
+ cursor: default;
198
+ border-bottom: 1px solid #d8d8d8;
199
+ z-index: 700; }
200
+
201
+ div.bars_holder.ui-widget-header { border: 1px solid #555;
202
+ border-left: 0px;
203
+ border-right: 0px;
204
+ margin-right: 20px;
205
+ }
206
+
207
+ div.poscolMI_mp3j { position:absolute; top:0px; left:0px; bottom:1px;
208
+ /* background */
209
+ /* opacity */
210
+ }
211
+ div.posbarMI_mp3j { position: absolute;
212
+ /*background: #989898;*/
213
+ top: 0px;
214
+ font-size: 5px;
215
+ border: 0px solid #989898;
216
+ border-bottom: 0px solid #888;
217
+ border-left: 0px solid #888;
218
+ left: 0px;
219
+ right: 6px;
220
+ width:auto; }
221
+
222
+ div.posbarMI_mp3j .ui-slider-handle {
223
+ top: -2px;
224
+ margin-left: -2px;
225
+ border: 0px;
226
+ height: 13px;
227
+ width: 12px;
228
+ background: transparent url('images/pos-handleALT.png') no-repeat left top;
229
+ z-index: 800; }
230
+
231
+ div.posbarMI_mp3j .ui-slider-handle:hover {
232
+ background: transparent url('images/pos-handleALT.png') no-repeat right top; }
233
+
234
+ div.posbarMI_mp3j .ui-state-active, div.posbarMI_mp3j .ui-widget-content .ui-state-active {
235
+ border: 0px solid #777;
236
+ background: 989898 url('images/pos-handleALT.png') no-repeat right top;
237
+ outline: none; }
238
+
239
+ /* LOAD BAR */
240
+ div.loadMI_mp3j { position:absolute; top:6px; left:0px; bottom:0px;
241
+ /* background */
242
+ /* opacity */
243
+ }
244
+
245
+ div.bars_holder .ui-progressbar .ui-progressbar-value {margin: 0px; height:100%;
246
+ /* background */
247
+ /* opacity */
248
+ }
249
+
250
+ div.bars_holder .ui-slider-horizontal { height: 6px; z-index: 100; }
251
+
252
+
253
+ /* PLAYLIST */
254
+ div.listwrap_mp3j { position:relative; padding: 0px 0px 0px 0px; margin-top:-2px; /* background */ }
255
+ div.playlist-wrap-MI { position:relative; }
256
+ div.playlist-wrap-MI ul { position:static; }
257
+
258
+
259
+ div.playlist-colour { position:absolute; width:100%; height:100%; left:0px; top:0px;
260
+ /* background */
261
+ /* opacity */
262
+ }
263
+
264
+ ul.UL_mp3j { margin:0px !important; padding:0px 0px 0px 0px !important; list-style-type:none !important; list-style:none !important; list-style-image:none !important; }
265
+ ul.UL-MI_mp3j { margin:0px !important; padding:0px 0px 0px 0px !important; list-style-type:none !important; list-style:none !important; list-style-image:none !important; font-weight: 500 !important;
266
+ /* background */
267
+ }
268
+ ul.UL_mp3j li { margin:0px !important; padding:0px 0px 0px 15px !important; background:none !important; }
269
+ ul.UL_mp3j li:before { content:none !important; }
270
+ ul.UL-MI_mp3j li { margin:0px !important; list-style-type:none !important; padding:0px 0px 1px 0px !important; font-weight:500 !important; line-height:16px !important; letter-spacing:0px !important; font-size:11px !important; word-spacing:0px !important; margin:0px 1px 0px 1px !important; }
271
+ ul.UL-MI_mp3j li:before { content:none !important; }
272
+ ul.UL-MI_mp3j.mp3j_widgetmods li { font-size:10px !important; line-height:14px !important; }
273
+
274
+ ul.UL-MI_mp3j li a { font-size:11px !important; border:0 !important; line-height:16px !important; font-weight:500 !important; text-decoration:none !important; display:block !important; width:auto !important; font-family:'verdana', 'Lucida Grande', 'arial', sans-serif !important; outline:none !important; padding:6px 0px 6px 14px !important; }
275
+ ul.UL-MI_mp3j.mp3j_widgetmods li a { font-size:10px !important; line-height:14px !important; }
276
+
277
+ .MI-image { position:absolute; top:0; left:0; padding:0; }
278
+ .MI-image a img { border:none; padding:1px; background-color:#ccc; }
279
+ .MI-image a:hover img { /* background-colour */ }
280
+
281
+
282
+
283
+ /* FORCED DOWNLOAD FRAME
284
+ ------------------------ */
285
+
286
+ div.mp3j-dlframe, iframe.mp3j-dlframe {
287
+ border:0px solid #ddd;
288
+ width:1px;
289
+ height:1px;
290
+ overflow:hidden;
291
+ margin:0;
292
+ padding:0;
293
+ display:none !important;
294
+ }
295
+
296
+ /* MESSAGES */
297
+ div.mp3j-finfo {
298
+ position:absolute;
299
+ top:36px;
300
+ z-index:9999 !important;
301
+ width:80%;
302
+ left:10%;
303
+ -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px;
304
+ background:url('images/fdloadW-x.png') repeat-x left top;
305
+ -webkit-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); -moz-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35);
306
+ padding:0;
307
+ min-height:31px;
308
+ overflow:hidden;
309
+ min-width:170px;
310
+ }
311
+
312
+ div.mp3j-finfo * { font-family:Arial, Helvetica, sans-serif !important; }
313
+ div.mp3j-finfo-sleeve { position:relative !important; width:100%; height:100%; }
314
+ div.mp3j-finfo-gif { position:absolute !important; top:0; left:0; right:10%; bottom:0; background:url('images/loader.gif') no-repeat center 37px; width:auto; padding:0px; height:100%; }
315
+ div.mp3j-finfo-txt { position:relative !important; margin:0px 15px 0 15px !important; padding:10px 0 10px 0 !important; width:auto; }
316
+ div.mp3j-finfo-close { position:absolute !important; width:31px !important; height:27px !important; padding-top:5px !important; right:0 !important; top:0 !important; text-align:center !important; font-weight:700 !important; font-size:18px !important; line-height:22px !important; color:#aaa !important; border-bottom:1px solid #ccc !important; border-left:1px solid #ccc !important; background:url('images/t40w.png') repeat left top !important; }
317
+ div.mp3j-finfo-close:hover { color:#888 !important; }
318
+
319
+ div.mp3j-finfo-txt h2 { font-size:15px !important; color:#333 !important; margin:0 0 10px 0 !important; }
320
+ div.mp3j-finfo-txt h3 { font-size:14px !important; color:#333 !important; margin:0 0 15px 0 !important; }
321
+ div.mp3j-finfo-txt p { font-size:11px !important; color:#555 !important; line-height:13px !important; margin:0 0 5px 0 !important; }
322
+ div.mp3j-finfo-txt a { }
323
+
324
+
325
+
326
+
327
+ .mp3j-nosolution
328
+ {
329
+ position:absolute;
330
+ z-index:9999;
331
+ height:auto;
332
+ padding:5%;
333
+ border:1px solid #c0c0c0;
334
+ background:#f0f0f0;
335
+ color:#333;
336
+ top:4px;
337
+ left:4px;
338
+ right:4px;
339
+ -webkit-border-top-left-radius: 8px;
340
+ -webkit-border-top-right-radius: 8px;
341
+ -moz-border-radius-topleft: 8px;
342
+ -moz-border-radius-topright: 8px;
343
+ border-top-left-radius: 8px;
344
+ border-top-right-radius: 8px;
345
+ font-size:13px;
346
+ -webkit-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); -moz-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35);
347
+ }
348
+
349
+ .s-nosolution
350
+ {
351
+ }
352
+
353
+
354
+
355
+ /*-------------------------
356
+ [mp3j] & [mp3t] SHORTCODES
357
+ ==================================== */
358
+ span.wrap_inline_mp3j { position:relative; width:auto; cursor:pointer; padding:0; white-space:nowrap; text-align:left; }
359
+ /*span.wrap_inline_mp3j:hover .buttons_mp3j { background:transparent url('images/transport-shard-B.png') no-repeat -80px -35px; }*/
360
+ span.indi_mp3j { position:relative; padding-left:2px; font-size: 0.7em !important; }
361
+
362
+ /* BARS */
363
+ span.bars_mp3j { position:absolute; width:100%; height:100%; }
364
+ span.load_mp3j, span.loadB_mp3j { position:absolute; /* background */ top:20px; left:0px; height:2px; }
365
+ /* mp3t */
366
+ span.posbar_mp3j { position:absolute; width:100%; height:100%; border:0px solid #f77; }
367
+ span.posbar_mp3j .ui-widget-header { z-index:-500; }
368
+ span.posbar_mp3j .ui-slider-handle { top: 2px; margin-left:-2px; border:1px solid #999; height:21px; width:4px; z-index:500; background:url('images/t20b.png') repeat; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
369
+ span.posbar_mp3j .ui-slider-handle:hover { background:url('images/t15b.png') repeat; border-color:#aaa; }
370
+ /* mp3j */
371
+ span.posbarB_mp3j { position:absolute; width:100%; height:100%; border:0; z-index:450; cursor:pointer; }
372
+ span.posbarB_mp3j .ui-widget-header { background:transparent; z-index:450; height:100%; }
373
+ span.posbarB_mp3j .ui-slider-handle { top: 0px; margin-left:-6px !important; border:0px solid #888; height:23px; width:12px !important; z-index: 500; background: transparent url('images/inlineHandle2.png') no-repeat -3px -3px; cursor: default; padding:0px !important; }
374
+ span.posbarB_mp3j .ui-slider-handle:hover { background: transparent url('images/inlineHandle2.png') no-repeat -3px -33px; }
375
+
376
+ /* SPAN TRANSPORT */
377
+ span.group_wrap { position:relative; margin:0px 0px 0px 0px; width:auto; }
378
+ span.textbutton_mp3j, span.T_mp3j { position:relative; width:auto; margin:0px; padding:0px; }
379
+ span.buttons_mp3j { position:relative; margin:0px; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -80px -3px; }
380
+ span.buttons_mp3j:hover { background:transparent url('images/transport-shard-B.png') no-repeat -80px -35px; }
381
+ span.buttons_mp3jpause { position:relative; margin:0px; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -2px -3px; }
382
+ span.buttons_mp3jpause:hover { background:transparent url('images/transport-shard-B.png') no-repeat -2px -35px; }
383
+
384
+ /* VOLUMES */
385
+ span.vol_mp3t { position:absolute; top:-4px; right:4px; width:90%; max-width:100px; height:2px; }
386
+ span.vol_mp3j { position:absolute; top:-9px; right:5px; width:85%; max-width:100px; height:2px; }
387
+ span.vol_mp3j.flipped { right:4px; }
388
+ span.vol_mp3t .ui-widget-header, span.vol_mp3j .ui-widget-header { background: transparent url('images/vol-grad60b2.png') repeat left top; z-index:500; height:100%; }
389
+ span.vol_mp3t .ui-slider-handle, span.vol_mp3j .ui-slider-handle { height:11px !important; width:10px !important; padding:0px !important; margin-left:-5px; border:0px !important; border-radius:2px; -moz-border-radius:2px; -webkit-border-radius:2px; z-index:600; overflow:hidden !important; cursor:default; top:-6px; background: transparent url('images/vol-handle.png') no-repeat -1px 0px; }
390
+ span.vol_mp3t .ui-slider-handle:hover, span.vol_mp3j .ui-slider-handle:hover { background: transparent url('images/vol-handle.png') no-repeat -21px 0px; }
391
+ span.vol_mp3t .ui-state-active, span.vol_mp3t .ui-widget-content .ui-state-active, span.vol_mp3j .ui-state-active, span.vol_mp3j .ui-widget-content .ui-state-active { background:transparent url('images/vol-handle.png') no-repeat -21px 0px; outline:none; border:0px; }
392
+
393
+
394
+ /*----------------------
395
+ [mp3j-popout] SHORTCODE
396
+ ================================================= */
397
+ .mp3j-popout-link-wrap { cursor:pointer; position:relative; clear:left; }
398
+ .mp3j-popout-link { float:left; margin:0 5px 0 0; min-width:22px; min-height:18px; background:url('images/buttons-popout.png') no-repeat -10px -65px; }
399
+ .mp3j-popout-link-wrap:hover .mp3j-popout-link { background:url('images/buttons-popout.png') no-repeat -10px -95px; }
400
+
401
+
402
+
403
+
404
+ /*=================================================
405
+
406
+ MODS
407
+ (via 'style' param in shortcode)
408
+ ================================================= */
409
+
410
+ /* ===== "nolistbutton" ===== */
411
+ .nolistbutton div.playlist-toggle-MI { visibility:hidden; }
412
+
413
+ /* ===== "nopopoutbutton" ===== */
414
+ .nopopoutbutton div.mp3j-popout-MI { display:none; }
415
+
416
+ /* ===== "nopn" ===== */
417
+ .nopn div.Prev_mp3j { display:none; }
418
+ .nopn div.Next_mp3j { display:none; }
419
+
420
+ /* ===== "nostop" ===== */
421
+ .nostop div.stop_mp3j { display:none; }
422
+
423
+
424
+ /* ===== "bars100" ===== */
425
+ .bars100 div.player-track-title { left:112px; }
426
+ .bars100 div.dloadmp3-MI { left:102px; width:36%;}
427
+ .bars100 div.bars_holder { left:102px; width:auto; }
428
+ .bars100 .MI-image img { padding:1px; }
429
+ .bars100 div.player-track-title { top:20px; }
430
+
431
+ /* ===== "bars150" ===== */
432
+ .bars150 div.player-track-title { left:162px; }
433
+ .bars150 div.dloadmp3-MI { left:152px; width:33%;}
434
+ .bars150 div.bars_holder { left:152px; width:auto; }
435
+ .bars150 .MI-image img { padding:1px; }
436
+ .bars150 div.player-track-title { top:20px; }
437
+
438
+ /* ===== "bars200" ===== */
439
+ .bars200 div.player-track-title { left:212px; }
440
+ .bars200 div.dloadmp3-MI { left:202px; width:30%; }
441
+ .bars200 div.bars_holder { left:202px; width:auto; }
442
+ .bars200 .MI-image img { padding:1px; }
443
+ .bars200 div.player-track-title { top:20px; }
444
+
445
+ /* ===== "bars250" ===== */
446
+ .bars250 div.player-track-title { left:262px; }
447
+ .bars250 div.dloadmp3-MI { left:252px; width:27%;}
448
+ .bars250 div.bars_holder { left:252px; width:auto; }
449
+ .bars250 .MI-image img { padding:1px; }
450
+ .bars250 div.player-track-title { top:20px; }
451
+
452
+ /* ===== "bars300" ===== */
453
+ .bars300 div.player-track-title { left:312px; }
454
+ .bars300 div.dloadmp3-MI { left:302px; width:24%; }
455
+ .bars300 div.bars_holder { left:302px; width:auto; }
456
+ .bars300 .MI-image img { padding:1px; }
457
+ .bars300 div.player-track-title { top:20px; }
458
+
459
+ /* ===== "bars350" ===== */
460
+ .bars350 div.player-track-title { left:362px; }
461
+ .bars350 div.dloadmp3-MI { left:352px; width:21%;}
462
+ .bars350 div.bars_holder { left:352px; width:auto; }
463
+ .bars350 .MI-image img { padding:1px; }
464
+ .bars350 div.player-track-title { top:20px; }
465
+
466
+ /* ===== "bars400" ===== */
467
+ .bars400 div.player-track-title { left:412px; }
468
+ .bars400 div.dloadmp3-MI { left:402px; width:18%; }
469
+ .bars400 div.bars_holder { left:402px; width:auto; }
470
+ .bars400 .MI-image img { padding:1px; }
471
+ .bars400 div.player-track-title { top:20px; }
472
+
473
+ /* ===== bigger1 ===== */
474
+ .bigger1 { font-size:18px; line-height:26px !important; margin:0 !important; }
475
+ .bigger1 span.load_mp3j,
476
+ .bigger1 span.loadB_mp3j { top:24px; left:0px; height:2px; }
477
+ .bigger1 span.posbar_mp3j .ui-slider-handle { top: 3px; height:24px; width:6px !important; margin-left:-3px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
478
+ .bigger1 span.posbarB_mp3j .ui-slider-handle { top: 3px; margin-left:-3px !important; border:1px solid #999; height:24px; width:6px !important; z-index:500; background:url('images/mp3t-poshandle.png') repeat-y -50px 0px; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
479
+ .bigger1 span.posbarB_mp3j .ui-slider-handle:hover { background:url('images/mp3t-poshandle.png') repeat-y 0px 0px; border-color:#aaa; }
480
+ .bigger1 span.buttons_mp3j { position:relative; margin:0px; margin-left:5px !important; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -80px 0px; }
481
+ .bigger1 span.buttons_mp3j:hover { background:transparent url('images/transport-shard-B.png') no-repeat -80px -32px; }
482
+ .bigger1 span.buttons_mp3jpause { position:relative; margin:0px; margin-left:5px !important; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -2px 0px; }
483
+ .bigger1 span.buttons_mp3jpause:hover { background:transparent url('images/transport-shard-B.png') no-repeat -2px -32px; }
484
+ .bigger1 span.vol_mp3j { position:absolute; top:-6px; right:7px; width:85%; max-width:100px; height:2px; }
485
+
486
+ .bigger1 div.player-track-title { font:normal normal 500 18px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
487
+
488
+ .bigger1 div.player-track-title span { font:normal normal 500 14px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
489
+ .bigger1 ul.UL-MI_mp3j li a, .bigger1 ul.UL-MI_mp3j li { font-size:16px !important; line-height:19px !important; }
490
+ .bigger1 .indi_mp3j { font-size: 0.6em !important; }
491
+
492
+ /* ===== "bigger2" ===== */
493
+ .bigger2 div.player-track-title { font:normal normal 500 36px/38px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
494
+ .bigger2 div.player-track-title span { font:normal normal 500 20px/22px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
495
+ .bigger2 ul.UL-MI_mp3j li a, .bigger2 ul.UL-MI_mp3j li { font-size:20px !important; line-height:24px !important; }
496
+ .bigger2 { font-size:23px; line-height:25px !important; margin:0 !important; }
497
+ .bigger2 span.load_mp3j,
498
+ .bigger2 span.loadB_mp3j { top:26px; left:0px; height:2px; }
499
+ .bigger2 span.posbar_mp3j .ui-slider-handle { top: 0px; height:28px; width:6px !important; margin-left:-3px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
500
+ .bigger2 span.posbarB_mp3j .ui-slider-handle { top: -1px; margin-left:-3px !important; border:1px solid #999; height:29px; width:8px !important; z-index:500; border-color:#aaa; background:url('images/mp3t-poshandle.png') repeat-y 0px 0px; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
501
+ .bigger2 span.posbarB_mp3j .ui-slider-handle:hover { background:url('images/mp3t-poshandle.png') repeat-y -50px 0px; border-color:#999; }
502
+ .bigger2 span.buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:2px 0px 4px 20px !important; background:url('images/play-dark2-b.png') no-repeat -186px center; border:0px solid #bbb; margin-left:10px; }
503
+ .bigger2 span.buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -437px center; }
504
+ .bigger2 span.buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:0px 0px 2px 20px !important; background:url('images/stop-dark2-b.png') repeat-y 0px top; border:0px solid #bbb; margin-left:10px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
505
+ .bigger2 span.buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
506
+ .bigger2 span.vol_mp3j { position:absolute; top:-12px; right:4px; width:85%; max-width:100px; height:2px; }
507
+ .bigger2 span.vol_mp3t { position:absolute; top:-10px; width:85%; max-width:100px; height:2px; }
508
+ .bigger2 .Smp3-finding,
509
+ .bigger2 .mp3-tint,
510
+ .bigger2 .mp3-gtint { margin-left:8px; margin-right:6px; padding:0px 0px 0px 10px !important; font-size:12px !important; line-height:12px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
511
+ .bigger2 .mp3-gtint { margin:0 6px 0 -16px; }
512
+ .bigger2 .indi_mp3j { font-size: 0.5em !important; padding-left:0px; }
513
+
514
+ .bigger2.wh .buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:2px 0px 4px 20px !important; background:url('images/play-dark2-w.png') no-repeat -186px center; border:0px solid #bbb; margin-left:10px; }
515
+ .bigger2.wh .buttons_mp3j:hover { background:url('images/play-dark2-w.png') no-repeat -437px center; }
516
+ .bigger2.wh .buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:0px 0px 2px 20px !important; background:url('images/stop-dark2-w.png') repeat-y 0px top; border:0px solid #bbb; margin-left:10px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
517
+ .bigger2.wh .buttons_mp3jpause:hover { background:url('images/stop-dark2-w.png') repeat-y -350px top; }
518
+
519
+
520
+
521
+ /* ===== bigger3 ===== */
522
+ .bigger3 { font-size:28px; line-height:36px !important; margin:0 !important; }
523
+ .bigger3 .load_mp3j, .bigger3 .loadB_mp3j { top:37px; left:0px; height:3px; }
524
+ .bigger3 .posbar_mp3j .ui-slider-handle, .bigger3 .posbarB_mp3j .ui-slider-handle { top: 0px; border:1px solid #bbb; height:40px; width:12px !important; margin-left:-5px !important; background:url('images/stop-dark2.png') repeat-y -350px top; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
525
+ .bigger3 .posbar_mp3j .ui-slider-handle:hover, .bigger3 .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2.png') repeat-y 0px top; border:1px solid #aaa; }
526
+ .bigger3 .indi_mp3j { font-size: 0.5em !important; }
527
+ .bigger3 span.buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:8px 0px 12px 30px !important; background:url('images/play-dark2.png') no-repeat -177px center; border:0px solid #bbb; margin-left:12px; }
528
+ .bigger3 span.buttons_mp3j:hover { background:url('images/play-dark2.png') no-repeat -428px center; }
529
+ .bigger3 span.buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:2px 0px 6px 30px !important; background:url('images/stop-dark2.png') repeat-y 0px top; border:0px solid #bbb; margin-left:12px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
530
+ .bigger3 span.buttons_mp3jpause:hover { background:url('images/stop-dark2.png') repeat-y -350px top; }
531
+ .bigger3 .vol_mp3j { height:1px; max-width:110px; right:64px; top:-8px; }
532
+ .bigger3 .vol_mp3t { height:1px; max-width:110px; right:16px; top:-5px; }
533
+ .bigger3 .vol_mp3j .ui-slider-handle, .bigger3 .vol_mp3t .ui-slider-handle { height:14px !important; width:33px !important; margin-left:-16px; border-bottom:1px solid #ccc !important; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; top:-14px; background:url('images/volhandle-dark2.png') no-repeat -10px bottom; }
534
+ .bigger3 .vol_mp3j .ui-slider-handle:hover, .bigger3 .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2.png') no-repeat -257px bottom; }
535
+ .bigger3 .Smp3-finding,
536
+ .bigger3 .mp3-tint,
537
+ .bigger3 .mp3-gtint { margin-left:8px; padding:0px 0px 0px 14px !important; font-size:18px !important; line-height:20px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
538
+ .bigger3 .mp3-gtint { margin:0 2px 0 -14px; }
539
+ .bigger3 div.player-track-title { font:normal normal 500 44px/46px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
540
+ .bigger3 div.player-track-title span { font:normal normal 500 28px/30px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
541
+ .bigger3 ul.UL-MI_mp3j li a, .bigger3 ul.UL-MI_mp3j li { font-size:28px !important; line-height:30px !important; }
542
+
543
+ .bigger3.bl span.buttons_mp3j { background:url('images/play-dark2-b.png') no-repeat -177px center; }
544
+ .bigger3.bl span.buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -428px center; }
545
+ .bigger3.bl span.buttons_mp3jpause { background:url('images/stop-dark2-b.png') repeat-y 0px top; }
546
+ .bigger3.bl span.buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
547
+ .bigger3.bl span.vol_mp3j .ui-slider-handle, .bigger3.bl span.vol_mp3t .ui-slider-handle { background:url('images/volhandle-dark2-b.png') no-repeat -10px bottom; }
548
+ .bigger3.bl span.vol_mp3j .ui-slider-handle:hover, .bigger3.bl span.vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-b.png') no-repeat -257px bottom; }
549
+
550
+
551
+
552
+ /* ===== bigger4 ===== */
553
+ .bigger4 { font-size:38px; line-height:46px !important; margin:0 !important; }
554
+ .bigger4 .load_mp3j, .bigger4 .loadB_mp3j { top:46px; left:0px; height:3px; }
555
+ .bigger4 .posbar_mp3j .ui-slider-handle, .bigger4 .posbarB_mp3j .ui-slider-handle { top: -2px; border:1px solid #bbb; height:52px; width:16px !important; margin-left:-8px !important; background:url('images/stop-dark2.png') repeat-y -350px top; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
556
+ .bigger4 .posbar_mp3j .ui-slider-handle:hover, .bigger4 .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2.png') repeat-y 0px top; border:1px solid #aaa; }
557
+ .bigger4 .indi_mp3j { font-size: 0.5em !important; }
558
+ .bigger4 span.buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:8px 0px 12px 40px !important; background:url('images/play-dark2.png') no-repeat -167px center; border:0px solid #bbb; margin-left:15px; }
559
+ .bigger4 span.buttons_mp3j:hover { background:url('images/play-dark2.png') no-repeat -418px center; }
560
+ .bigger4 span.buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:2px 0px 4px 40px !important; background:url('images/stop-dark2.png') repeat-y 0px top; border:0px solid #bbb; margin-left:15px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
561
+ .bigger4 span.buttons_mp3jpause:hover { background:url('images/stop-dark2.png') repeat-y -350px top; }
562
+ .bigger4 .vol_mp3j { height:1px; max-width:110px; right:86px; top:-8px; }
563
+ .bigger4 .vol_mp3t { height:1px; max-width:110px; right:20px; top:-5px; }
564
+ .bigger4 .vol_mp3j .ui-slider-handle, .bigger4 .vol_mp3t .ui-slider-handle { height:20px !important; width:43px !important; margin-left:-21px; border-bottom:1px solid #ccc !important; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; top:-20px; background:url('images/volhandle-dark2.png') no-repeat -10px bottom; }
565
+ .bigger4 .vol_mp3j .ui-slider-handle:hover, .bigger4 .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2.png') no-repeat -257px bottom; }
566
+ .bigger4 .Smp3-finding,
567
+ .bigger4 .mp3-tint,
568
+ .bigger4 .mp3-gtint { margin-left:8px; margin-right:6px; padding:0px 0px 0px 14px !important; font-size:18px !important; line-height:20px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
569
+ .bigger4 .mp3-gtint { margin:0 6px 0 -20px; }
570
+
571
+ .bigger4 div.player-track-title { font:normal normal 500 44px/46px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
572
+ .bigger4 div.player-track-title span { font:normal normal 500 28px/30px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
573
+ .bigger4 ul.UL-MI_mp3j li a, .bigger4 ul.UL-MI_mp3j li { font-size:28px !important; line-height:30px !important; }
574
+
575
+ .bigger4.bl .posbar_mp3j .ui-slider-handle, .bigger4.bl .posbarB_mp3j .ui-slider-handle { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
576
+ .bigger4.bl .posbar_mp3j .ui-slider-handle:hover, .bigger4.bl .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2-b.png') repeat-y 0px top; }
577
+ .bigger4.bl .buttons_mp3j { background:url('images/play-dark2-b.png') no-repeat -167px center; }
578
+ .bigger4.bl .buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -418px center; }
579
+ .bigger4.bl .buttons_mp3jpause { background:url('images/stop-dark2-b.png') repeat-y 0px top; }
580
+ .bigger4.bl .buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
581
+ .bigger4.bl .vol_mp3j .ui-slider-handle, .bigger4.bl .vol_mp3t .ui-slider-handle { background:url('images/volhandle-dark2-b.png') no-repeat -10px bottom; }
582
+ .bigger4.bl .vol_mp3j .ui-slider-handle:hover, .bigger4.bl .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-b.png') no-repeat -257px bottom; }
583
+
584
+
585
+
586
+ /* ===== bigger5 ===== */
587
+ .bigger5 { font-size:48px; line-height:60px !important; margin:0 !important; }
588
+ .bigger5 .load_mp3j, .bigger5 .loadB_mp3j { top:63px; left:0px; height:4px; }
589
+ .bigger5 .posbar_mp3j .ui-slider-handle, .bigger5 .posbarB_mp3j .ui-slider-handle { top: -1px; border:1px solid #bbb; height:69px; width:20px !important; margin-left:-10px !important; background:url('images/stop-dark2.png') repeat-y -350px top; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
590
+ .bigger5 .posbar_mp3j .ui-slider-handle:hover, .bigger5 .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2.png') repeat-y 0px top; border:1px solid #aaa; }
591
+ .bigger5 .indi_mp3j { font-size: 0.5em !important; }
592
+ .bigger5 span.buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:8px 0px 13px 52px !important; background:url('images/play-dark2.png') no-repeat -154px center; border:0px solid #bbb; margin-left:20px; }
593
+ .bigger5 span.buttons_mp3j:hover { background:url('images/play-dark2.png') no-repeat -405px center; }
594
+ .bigger5 span.buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:3px 0px 8px 52px !important; background:url('images/stop-dark2.png') repeat-y 0px top; border:0px solid #bbb; margin-left:15px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
595
+ .bigger5 span.buttons_mp3jpause:hover { background:url('images/stop-dark2.png') repeat-y -350px top; }
596
+ .bigger5 .vol_mp3j { height:1px; max-width:170px; right:115px; top:-10px; }
597
+ .bigger5 .vol_mp3t { height:1px; max-width:170px; right:33px; top:-5px; }
598
+ .bigger5 .vol_mp3j .ui-slider-handle, .bigger5 .vol_mp3t .ui-slider-handle { height:30px !important; width:55px !important; margin-left:-21px; border-bottom:1px solid #aaa !important; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; top:-30px; background:url('images/volhandle-dark2.png') no-repeat -10px bottom; }
599
+ .bigger5 .vol_mp3j .ui-slider-handle:hover, .bigger5 .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2.png') no-repeat -257px bottom; }
600
+ .bigger5 .Smp3-finding,
601
+ .bigger5 .mp3-tint,
602
+ .bigger5 .mp3-gtint { margin-left:8px; margin-right:6px; padding:0px 0px 0px 14px !important; font-size:18px !important; line-height:20px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
603
+ .bigger5 .mp3-gtint { margin:0 6px 0 -20px; }
604
+
605
+ .bigger5.bl .posbar_mp3j .ui-slider-handle, .bigger5.bl .posbarB_mp3j .ui-slider-handle { background:url('images/stop-dark2-b.png') repeat-y -350px top; border:1px solid #888; }
606
+ .bigger5.bl .posbar_mp3j .ui-slider-handle:hover, .bigger5.bl .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2-b.png') repeat-y 0px top; border:1px solid #777; }
607
+ .bigger5.bl .buttons_mp3j { background:url('images/play-dark2-b.png') no-repeat -154px center; border:0px solid #bbb; margin-left:20px; }
608
+ .bigger5.bl .buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -405px center; }
609
+ .bigger5.bl .buttons_mp3jpause { background:url('images/stop-dark2-b.png') repeat-y 0px top; }
610
+ .bigger5.bl .buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
611
+ .bigger5.bl .vol_mp3j .ui-slider-handle, .bigger5.bl .vol_mp3t .ui-slider-handle { background:url('images/volhandle-dark2-b.png') no-repeat -10px bottom; }
612
+ .bigger5.bl .vol_mp3j .ui-slider-handle:hover, .bigger5.bl .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-b.png') no-repeat -257px bottom; }
613
+
614
+
615
+ /* ===== "smaller" ===== */
616
+ .smaller div.player-track-title { font:normal normal 500 11px/13px 'verdana', 'Lucida Grande', 'arial', sans-serif !important; left:3px; right:5px; }
617
+ .smaller div.player-track-title span { font:normal normal 500 10px/10px 'verdana', 'Lucida Grande', 'arial', sans-serif !important; padding:0; }
618
+ .smaller ul.UL-MI_mp3j li a, .smaller ul.UL-MI_mp3j li { font-size:10px !important; font-family:'verdana', Helvetica, sans-serif !important; line-height:13px !important; }
619
+
620
+
621
+ /* ===== outline ==== */
622
+ span.outline { font-size:14px; line-height:22px !important; margin:0 !important; }
623
+ .outline span.vol_mp3t { position:absolute; top:-4px; right:4px; width:90%; max-width:100px; height:2px; background: transparent; }
624
+ .outline span.vol_mp3j { position:absolute; top:-9px; right:7px; width:85%; max-width:100px; height:2px; background: transparent; }
625
+ .outline span.buttons_mp3j { padding:2px 0px 5px 20px !important; background: transparent url('images/transport-outline.png') no-repeat -80px -1px; border:0; margin:0; }
626
+ .outline span.buttons_mp3j:hover { background:transparent url('images/transport-outline.png') no-repeat -80px -33px; }
627
+ .outline span.buttons_mp3jpause { padding:2px 0px 5px 20px !important; background: transparent url('images/transport-outline.png') no-repeat 1px -1px; border:0; margin:0; }
628
+ .outline span.buttons_mp3jpause:hover { background:transparent url('images/transport-outline.png') no-repeat 1px -33px; }
629
+ .outline span.posbarB_mp3j { position:absolute; width:100%; height:100%; border:0px solid #f77; }
630
+ .outline span.posbarB_mp3j .ui-widget-header { z-index:-500; }
631
+ .outline span.posbarB_mp3j .ui-slider-handle { top: 0px; margin-left:0px; border:1px solid #aaa; height:23px; width:5px !important; z-index:500; background:url('images/t10b.png') repeat; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
632
+ .outline span.posbarB_mp3j .ui-slider-handle:hover { background:url('images/t20b.png') repeat; border-color:#777; }
633
+
634
+
635
+ /* ===== wtransbars ==== */
636
+ .wtransbars div.loadMI_mp3j { background:#fff; opacity:0.1; filter:alpha(opacity=10); }
637
+ .wtransbars div.poscolMI_mp3j { background:#fff url('images/posbar-soften-tipped-2.png') repeat-y right top; opacity:0.15; filter:alpha(opacity=15); }
638
+ .wtransbars div.player-track-title { color:#fff; }
639
+
640
+ /* ===== btransbars ==== */
641
+ .btransbars div.loadMI_mp3j { background:#000; opacity:0.1; filter:alpha(opacity=10); }
642
+ .btransbars div.poscolMI_mp3j { background:#000 url('images/posbar-soften-tipped-2.png') repeat-y right top; opacity:0.15; filter:alpha(opacity=15); }
643
+ .btransbars div.player-track-title { color:#000; }
css/players-1-8-dark.css CHANGED
@@ -1,555 +1,555 @@
1
- /*
2
- MP3-jPlayer 1.8.1 - Dark
3
- www.sjward.org */
4
-
5
- /*---------------------
6
- [mp3-jplayer] SHORTCODE
7
- ==================================== */
8
-
9
- /* SKIN
10
- --------------- */
11
- /* MAIN WRAPPER (default class) */
12
- div.wrap-MI { border:0; margin:0; background:none; min-width:116px; /* position||float set in-line! */ /* width set in-line! */ }
13
-
14
- /* SUB WRAPPERS */
15
- div.jp-innerwrap, div.jp-interface, div.listwrap_mp3j, div.playlist-wrap-MI { position:relative !important; width:100%; border:0; margin:0; padding:0; }
16
- div.jp-innerwrap { background:none; }
17
- div.jp-interface { background:url('images/shadow-x.png') repeat-x left bottom; height:101px/*player default height*/; min-height:67px; cursor:default; }
18
- div.listwrap_mp3j { margin-top:0px; /* background set from admin */ }
19
-
20
- /* BACKGROUNDS */
21
- div.innerx, div.innerleft, div.innerright, div.innertab { position:absolute; }
22
- div.innerx { background:url('images/case-grad-x.png') repeat-x left -119px; width:auto; height:35px; left:0px; right:0px; bottom:3px; }
23
- div.innerleft { background:url('images/shadow-l.png') no-repeat left bottom; width:1px; height:40px; left:-1px; bottom:0px; }
24
- div.innerright { background:url('images/shadow-r.png') no-repeat right bottom; width:2px; height:40px; right:-2px; bottom:0px; }
25
- div.innertab { /* background and opacity set from admin */ left:0px; top:0px; width:100%; bottom:38px; }
26
-
27
- /* PLAYLIST
28
- ----------------- */
29
- div.playlist-colour { position:absolute; width:100%; height:100%; left:0px; top:0px; /* background set from admin */ /* opacity set from admin */ }
30
- div.playlist-wrap-MI ul { position:static; }
31
- ul.UL-MI_mp3j { margin:0px !important; padding:0px 0px 0px 0px !important; list-style-type:none !important; list-style:none !important; list-style-image:none !important; font-weight: 500 !important; /* background */ }
32
- ul.UL-MI_mp3j li { margin:0px !important; padding:0px 0px 1px 0px !important; font-weight:500 !important; line-height:15px !important; letter-spacing:0px !important; font-size:11px !important; word-spacing:0px !important; margin:0px 1px 0px 1px !important; list-style-type:none !important; }
33
- ul.UL-MI_mp3j li:before { content:none !important; }
34
- ul.UL-MI_mp3j li a { font-size:11px !important; border:0 !important; line-height:15px !important; font-weight:500 !important; text-decoration:none !important; display:block !important; width:auto !important; font-family:'verdana', 'Lucida Grande', 'arial', sans-serif !important; outline:none !important; padding:6px 0px 6px 14px !important; }
35
-
36
- /* SCREEN
37
- ----------------- */
38
- div.player-track-title, div.jp-play-time, div.jp-total-time, div.statusMI { position:absolute; z-index:50; /* color set from admin */ font:normal normal 500 14px/16px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
39
-
40
- div.player-track-title { top:7px; left:9px; width:auto; right:10px; }
41
- div.player-track-title span { font-size:10px; line-height:12px; padding-left:10px; max-width:95%; }
42
-
43
- div.jp-play-time, div.jp-total-time, div.statusMI { font-size:8px; line-height:10px !important; bottom:42px; text-align:left; font-family:Verdana, Arial, Helvetica, sans-serif; }
44
- div.jp-play-time { right:84px; }
45
- div.jp-total-time { right:6px; opacity:0.8; width:auto; }
46
-
47
- span.mp3-finding, span.Smp3-finding, span.mp3-tint, span.mp3-gtint { padding:0px 0px 0px 6px !important; font-size:8px !important; line-height:10px !important; height:10px !important; overflow:hidden !important; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; }
48
- span.mp3-finding, span.Smp3-finding { margin:0px 0px 0px -2px; background:url('images/finding-bar1f.gif') repeat 0px 3px; }
49
- span.mp3-tint { margin:0px 2px 0px -6px; opacity:.5; filter:alpha(opacity=50); /* background */ }
50
- span.mp3-gtint { margin:0px 2px 0px -6px; opacity:.5; filter:alpha(opacity=50); background:#777; }
51
- span.Smp3-finding { margin:0px 0px 0px 3px; }
52
- span.tintmarg { margin:0 2px 0 3px; }
53
-
54
- div.statusMI { right:27px; width:52px !important; height:10px; }
55
- .statusMI span.mp3-finding, .statusMI span.Smp3-finding, .statusMI span.mp3-tint, .statusMI span.mp3-gtint { padding:0px 0px 0px 6px !important; }
56
- .statusMI span.mp3-tint, .statusMI span.mp3-gtint { margin:0px 2px 0px -6px; }
57
-
58
- .MI-image { position:absolute; top:0; left:0; padding:0; }
59
- .MI-image img { border:none; padding:0px; background-color:#777; }
60
- .MI-image a:hover img { /* background-colour */ }
61
-
62
- /* BUTTONS
63
- ----------------- */
64
- /* TRANSPORT BUTTONS */
65
- div.transport-MI { position:absolute; width:auto; height:38px; right:2px; bottom:0px; border:0; }
66
- /*div.transport-MI div { background-image: url("images/transport-hardV-shiny.png"); text-indent:-9999px !important; float:right; }*/
67
- div.transport-MI div { background-image: url("images/transport-darkbg-trans2.png"); text-indent:-9999px !important; float:right; }
68
- /* play */
69
- div.buttons_mp3j { width:30px; height:32px; margin:1px 0px 0px 0px; background-position:-110px 0px; }
70
- div.buttons_mp3j:hover { background-position:-110px -32px; }
71
- /* pause */
72
- div.buttons_mp3jpause { width:30px; height:32px; margin:1px 0px 0px 0px; background-position:-2px 0px; }
73
- div.buttons_mp3jpause:hover { background-position:-2px -32px; }
74
- /* prev n next */
75
- div.Prev_mp3j { width:22px; height:28px; margin:1px 4px 0px 0px; background-position:-32px -1px; }
76
- div.Prev_mp3j:hover { background-position:-32px -33px; }
77
- div.Next_mp3j { width:19px; height:28px; margin:1px 3px 0px 0px; background-position:-57px -1px; }
78
- div.Next_mp3j:hover { background-position:-57px -33px; }
79
- /* stop */
80
- div.stop_mp3j { width:26px; height:32px; margin:1px 3px 0px 0px; background-position:-81px 0px; }
81
- div.stop_mp3j:hover { background-position:-81px -32px; }
82
-
83
- /* PLAYLIST TOGGLE */
84
- div.playlist-toggle-MI { position:absolute; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif; bottom:4px; left:1px; padding:2px 6px 2px 5px; line-height:9px; min-width:24px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; cursor:default; background:#505050; color:#a2a2a2; }
85
- div.playlist-toggle-MI:hover { background:#585858; color:#aaa; border-right:0px solid #a9a9a9; }
86
-
87
- /* DOWNLOAD BUTTON */
88
- div.dloadmp3-MI { position:absolute; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif !important; bottom:39px; margin:0px !important; font-size:9px !important; text-align:center; left:0px; width:41%; min-width:75px; max-width:425px; padding:0px 0px 0px 0px !important; border:0px; background:transparent url('images/t10b.png') repeat left top !important; color:#fff; line-height:11px !important; -moz-border-radius-topright:3px; -webkit-border-top-right-radius:3px; overflow:hidden; z-index:150; cursor:default; }
89
- div.dloadmp3-MI.whilelinks, div.dloadmp3-MI.logintext { background:transparent url('images/t50b.png') repeat left top !important; }
90
- div.dloadmp3-MI.whilelinks:hover { background:transparent url('images/t40b.png') repeat left top !important; }
91
- div.dloadmp3-MI a { color:#ececec; display:block; width:auto; padding:1px 5px 2px 2px !important; margin:0px !important; background:transparent; text-decoration:none !important; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif !important; font-size:9px !important; line-height:11px !important; /* after font declaration */ height:100%; border-bottom:none; visibility:hidden; }
92
- div.dloadmp3-MI a:hover { outline: none; border-bottom: none; color: #ececec; }
93
- div.dloadmp3-MI.whilelinks a { color: #f3f3f3; visibility: inherit; }
94
- div.dloadmp3-MI.whilelinks a:hover { color: #fff; }
95
- div.dloadmp3-MI p { color:#ececec; display:block; width:auto; padding:1px 5px 2px 2px !important; margin:0px !important; background:transparent; text-decoration:none !important; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif !important; font-size:9px !important; line-height:11px !important; /* after font declaration */ height:100%; border-bottom:none; visibility:visible; }
96
-
97
- /* POPOUT BUTTON */
98
- div.mp3j-popout-MI { position:absolute; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif; bottom:17px; left:0px; height:16px; padding:3px 5px 0px 28px; min-width:2px; line-height:11px; border:1px solid #585858; background-color:#aaa; background-image:url('images/buttons-popoutE.png'); background-repeat:no-repeat; background-position:-8px -6px; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; cursor:default;
99
- color:#a2a2a2; }
100
- div.mp3j-popout-MI:hover { color:#aaa; background-position:-8px -36px; }
101
-
102
- /* BARS
103
- ----------------- */
104
- .ui-state-disabled { cursor:default !important; }
105
- .ui-slider { position:relative; text-align:left; }
106
- .ui-slider .ui-slider-handle { position:absolute; z-index:200; cursor:default; }
107
- .ui-slider .ui-slider-range { position:absolute; z-index:1; font-size:.7em; display:block; border:0; }
108
- .ui-slider-horizontal .ui-slider-range { top:0; height:100%; }
109
- .ui-slider-horizontal .ui-slider-range-min { left:0; }
110
- .ui-slider-horizontal .ui-slider-range-max { right:0; }
111
- .ui-state-default, .ui-widget-content .ui-state-default { outline:none; border:0px; }
112
-
113
- /* VOLUME */
114
- div.MIsliderVolume { position:absolute; top:0px; right:4px; width:108px; height:4px !important; background:transparent; border:0px; font-size:1px; cursor:default; z-index:150; }
115
- div.MIsliderVolume .ui-widget-header { /* background */ }
116
- div.MIsliderVolume .ui-slider-handle { border:0px; height:11px !important; width:10px !important; padding:0px !important; margin-left:-5px; top:-3px; border:0px !important; -moz-border-radius:2px; -webkit-border-radius:2px; background:transparent url('images/vol-handle.png') no-repeat -1px 0px; z-index:150; overflow:hidden !important; cursor:default; }
117
- div.MIsliderVolume .ui-slider-handle:hover { background:transparent url('images/vol-handle.png') no-repeat -21px 0px; }
118
- div.MIsliderVolume .ui-state-active, div.MIsliderVolume .ui-widget-content .ui-state-active { border:0px; background:transparent url('images/vol-handle.png') no-repeat -21px 0px; outline:none; }
119
-
120
- /* LOADER AND POS SLIDER */
121
- div.bars_holder, div.loadMI_mp3j, div.poscolMI_mp3j, div.posbarMI_mp3j { position:absolute; top:0px; left:0px; }
122
- div.bars_holder { right:0; width:100%; bottom:38px; font-size:1px; cursor:default; background:url('images/t40b.png')/*t50g.png*/ repeat-x left bottom;/* 1px highlight top of control bar */ }
123
- div.loadMI_mp3j { bottom:1px; /* background */ /* opacity */ }
124
- div.poscolMI_mp3j { bottom:1px; /* background */ /* opacity */ }
125
- div.bars_holder .ui-widget-header, div.bars_holder .ui-widget-content { border:0px !important; background:none; }
126
- div.bars_holder .ui-slider-horizontal { top:0px; bottom:1px; height:auto; z-index:90; }
127
- div.posbarMI_mp3j { bottom:1px; width:100%; }
128
- div.posbarMI_mp3j .ui-slider-handle { top:-6px; margin-left:-1px !important; border:0; bottom:-2px; width:2px !important; z-index:100; background:none; cursor:default ; padding:0px !important; }
129
- div.posbarMI_mp3j .ui-slider-handle:hover { background:none; z-index:100; }
130
-
131
-
132
-
133
- /* FORCED DOWNLOAD FRAME
134
- ------------------------ */
135
- div.mp3j-dlframe, iframe.mp3j-dlframe {
136
- border:0px solid #ddd;
137
- width:1px;
138
- height:1px;
139
- overflow:hidden;
140
- margin:0;
141
- padding:0;
142
- display:none !important;
143
- }
144
-
145
- /* MESSAGES */
146
- div.mp3j-finfo {
147
- position:absolute !important;
148
- top:36px;
149
- z-index:9999;
150
- width:80%;
151
- left:10%;
152
- -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px;
153
- background:url('images/fdloadB-x.png') repeat-x left top;
154
- -webkit-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); -moz-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35);
155
- padding:0;
156
- min-height:31px;
157
- overflow:hidden;
158
- min-width:170px;
159
- }
160
-
161
- div.mp3j-finfo * { font-family:Arial, Helvetica, sans-serif !important; }
162
- div.mp3j-finfo-sleeve { position:relative !important; width:100%; height:100%; }
163
- div.mp3j-finfo-gif { position:absolute !important; top:0; left:0; right:10%; bottom:0; background:url('images/loader-w2.gif') no-repeat center 37px; width:auto; padding:0px !important; height:100%; }
164
- div.mp3j-finfo-txt { position:relative !important; margin:0px 15px 0 15px !important; padding:10px 0 10px 0 !important; width:auto; }
165
- div.mp3j-finfo-close { position:absolute !important; width:31px !important; height:27px !important; padding-top:5px !important; right:0 !important; top:0 !important; text-align:center !important; font-weight:700 !important; font-size:18px !important; line-height:22px !important; color:#999 !important; border-bottom:1px solid #777 !important; border-left:1px solid #777 !important; background:url('images/t40b.png') repeat left top; }
166
- div.mp3j-finfo-close:hover { color:#eee !important; }
167
-
168
- div.mp3j-finfo-txt h2 { font-size:15px !important; color:#fff !important; margin:0 0 10px 0 !important; }
169
- div.mp3j-finfo-txt h3 { font-size:14px !important; color:#fff !important; margin:0 0 15px 0 !important; }
170
- div.mp3j-finfo-txt p { font-size:11px !important; color:#fff !important; line-height:13px !important; margin:0 0 5px 0 !important; }
171
- div.mp3j-finfo-txt a { }
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
- .mp3j-nosolution
180
- {
181
- position:absolute;
182
- z-index:9999;
183
- height:auto;
184
- padding:5%;
185
- border:1px solid #c0c0c0;
186
- background:#f0f0f0;
187
- color:#333;
188
- top:4px;
189
- left:4px;
190
- right:4px;
191
- -webkit-border-top-left-radius: 8px;
192
- -webkit-border-top-right-radius: 8px;
193
- -moz-border-radius-topleft: 8px;
194
- -moz-border-radius-topright: 8px;
195
- border-top-left-radius: 8px;
196
- border-top-right-radius: 8px;
197
- font-size:13px;
198
- -webkit-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); -moz-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35);
199
- }
200
-
201
- .s-nosolution
202
- {
203
- }
204
-
205
-
206
-
207
- /* backwards compat
208
- ------------------- */
209
- div.player-track-title.mp3j_widgetmods { font-size: 11px; top: 7px; left:5px; }
210
- div.player-track-title.mp3j_widgetmods span { font-size: 9px; }
211
- ul.UL-MI_mp3j.mp3j_widgetmods li { font-size:10px !important; line-height:14px !important; }
212
- ul.UL-MI_mp3j.mp3j_widgetmods li a { font-size:10px !important; line-height:14px !important; }
213
-
214
-
215
- /*-------------------------
216
- [mp3j] & [mp3t] SHORTCODES
217
- ==================================== */
218
- span.wrap_inline_mp3j { position:relative; width:auto; cursor:pointer; padding:0; white-space:nowrap; text-align:left; }
219
- /*span.wrap_inline_mp3j:hover .buttons_mp3j { background:transparent url('images/transport-shard-B.png') no-repeat -80px -35px; }*/
220
- span.indi_mp3j { position:relative; padding-left:2px; font-size: 0.7em !important; }
221
-
222
- /* BARS */
223
- span.bars_mp3j { position:absolute; width:100%; height:100%; }
224
- span.load_mp3j, span.loadB_mp3j { position:absolute; /* background */ top:20px; left:0px; height:2px; }
225
- /* mp3t */
226
- span.posbar_mp3j { position:absolute; width:100%; height:100%; border:0px solid #f77; }
227
- span.posbar_mp3j .ui-widget-header { z-index:-500; }
228
- span.posbar_mp3j .ui-slider-handle { top: 2px; margin-left:-2px; border:1px solid #999; height:21px; width:4px; z-index:500; background:url('images/t20b.png') repeat; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
229
- span.posbar_mp3j .ui-slider-handle:hover { background:url('images/t15b.png') repeat; border-color:#aaa; }
230
- /* mp3j */
231
- span.posbarB_mp3j { position:absolute; width:100%; height:100%; border:0; z-index:450; cursor:pointer; }
232
- span.posbarB_mp3j .ui-widget-header { background:transparent; z-index:450; height:100%; }
233
- span.posbarB_mp3j .ui-slider-handle { top: 0px; margin-left:-6px !important; border:0px solid #888; height:23px; width:12px !important; z-index: 500; background: transparent url('images/inlineHandle2.png') no-repeat -3px -3px; cursor: default; padding:0px !important; }
234
- span.posbarB_mp3j .ui-slider-handle:hover { background: transparent url('images/inlineHandle2.png') no-repeat -3px -33px; }
235
-
236
- /* SPAN TRANSPORT */
237
- span.group_wrap { position:relative; margin:0px 0px 0px 0px; width:auto; }
238
- span.textbutton_mp3j, span.T_mp3j { position:relative; width:auto; margin:0px; padding:0px; }
239
- span.buttons_mp3j { position:relative; margin:0px; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -80px -3px; }
240
- span.buttons_mp3j:hover { background:transparent url('images/transport-shard-B.png') no-repeat -80px -35px; }
241
- span.buttons_mp3jpause { position:relative; margin:0px; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -2px -3px; }
242
- span.buttons_mp3jpause:hover { background:transparent url('images/transport-shard-B.png') no-repeat -2px -35px; }
243
-
244
- /* VOLUMES */
245
- span.vol_mp3t { position:absolute; top:-4px; right:4px; width:90%; max-width:100px; height:2px; }
246
- span.vol_mp3j { position:absolute; top:-9px; right:5px; width:85%; max-width:100px; height:2px; }
247
- span.vol_mp3j.flipped { right:4px; }
248
- span.vol_mp3t .ui-widget-header, span.vol_mp3j .ui-widget-header { background: transparent url('images/vol-grad60b2.png') repeat left top; z-index:500; height:100%; }
249
- span.vol_mp3t .ui-slider-handle, span.vol_mp3j .ui-slider-handle { height:11px !important; width:10px !important; padding:0px !important; margin-left:-5px; border:0px !important; border-radius:2px; -moz-border-radius:2px; -webkit-border-radius:2px; z-index:600; overflow:hidden !important; cursor:default; top:-6px; background: transparent url('images/vol-handle.png') no-repeat -1px 0px; }
250
- span.vol_mp3t .ui-slider-handle:hover, span.vol_mp3j .ui-slider-handle:hover { background: transparent url('images/vol-handle.png') no-repeat -21px 0px; }
251
- span.vol_mp3t .ui-state-active, span.vol_mp3t .ui-widget-content .ui-state-active, span.vol_mp3j .ui-state-active, span.vol_mp3j .ui-widget-content .ui-state-active { background:transparent url('images/vol-handle.png') no-repeat -21px 0px; outline:none; border:0px; }
252
-
253
-
254
- /*----------------------
255
- [mp3j-popout] SHORTCODE
256
- ================================================= */
257
- .mp3j-popout-link-wrap { cursor:pointer; position:relative; clear:left; }
258
- .mp3j-popout-link { float:left; margin:0 5px 0 0; min-width:22px; min-height:18px; background:url('images/buttons-popout.png') no-repeat -10px -65px; }
259
- .mp3j-popout-link-wrap:hover .mp3j-popout-link { background:url('images/buttons-popout.png') no-repeat -10px -95px; }
260
-
261
-
262
- /*-------------
263
- CUSTOM CLASSES
264
- (via 'style' param in shortcode)
265
- ================================================= */
266
-
267
- /* ===== "silver" ===== */
268
- .silver .innerx { background-position:left -45px; }
269
- .silver .transport-MI { height:37px; }
270
- .silver .transport-MI div { background-image:url("images/transport-hardW-shiny.png"); }
271
- .silver .bars_holder { background:url('images/t60w.png') repeat-x left bottom; }
272
- .silver .mp3j-popout-MI { color:#6c6c6c; background-position:-8px -65px; border-color:#b2b2b2; background-color:#aaa; }
273
- .silver .mp3j-popout-MI:hover { color:#606060; background-position:-8px -95px; }
274
- .silver div.playlist-toggle-MI { background:#bcbcbc; color:#707070; }
275
- .silver div.playlist-toggle-MI:hover { background:#c6c6c6; color:#777; }
276
- .silver .MI-image img { background-color:#bbb; }
277
-
278
- .silver div.mp3j-finfo { background:url('images/fdloadW-x.png') repeat-x left top; }
279
- .silver div.mp3j-finfo-gif { background:url('images/loader.gif') no-repeat center 37px; }
280
- .silver div.mp3j-finfo-close { color:#aaa !important; border-bottom:1px solid #ccc !important; border-left:1px solid #ccc !important; background:url('images/t40w.png') repeat left top !important; }
281
- .silver div.mp3j-finfo-close:hover { color:#888 !important; }
282
- .silver div.mp3j-finfo-txt h2 { color:#333 !important; }
283
- .silver div.mp3j-finfo-txt h3 { color:#333 !important; }
284
- .silver div.mp3j-finfo-txt p { color:#555 !important; }
285
-
286
-
287
- /* ===== "text" ===== */
288
- div.wrap-MI.text { /*min-width:300px;*/ }
289
- .text div.innerx, .text div.innerleft, .text div.innerright { position: absolute; visibility: hidden; }
290
- .text div.innertab { bottom: 38px; }
291
- .text div.jp-interface { background:none; }
292
- .text div.player-track-title { font:normal normal 500 16px/18px 'trebuchet ms', Arial, sans-serif; }
293
- .text div.player-track-title span { font:italic normal 500 12px/14px 'trebuchet ms', Arial, sans-serif; opacity:0.7; filter:alpha(opacity=70); }
294
- .text div.jp-play-time, .text div.jp-total-time, .text div.statusMI { bottom:20px; font-size:11px; font-family: 'trebuchet ms', Arial, sans-serif; }
295
- .text div.jp-play-time { width:37px; left:0px; opacity:0.6; filter:alpha(opacity=60); }
296
- .text div.jp-total-time { width:37px; left:100px; display:none; }
297
- .text div.statusMI { left:37px; width:70px !important; }
298
- .text div.transport-MI { height:26px; right:2px; bottom:12px; }
299
- .text div.transport-MI div { font-family: 'trebuchet ms', Arial, sans-serif; font-weight:700; overflow:hidden !important; background:none !important; white-space:nowrap !important; }
300
- .text div.buttons_mp3j { text-indent:4px !important; width:32px; overflow:hidden !important; height: 25px; margin:0 6px 0 0px; background:none !important; line-height:25px !important; font-size:14px; }
301
- .text div.buttons_mp3jpause { text-indent:-29px !important; width:38px; overflow:hidden !important; height: 25px; margin:0 -3px 0 3px; background:none !important; line-height:25px !important; font-size:14px; }
302
- .text div.Prev_mp3j, .text div.Next_mp3j { text-indent:0px !important; height:23px; line-height:23px !important; font-size:12px; width:36px; margin:2px 0px 0px 0px; }
303
- .text div.stop_mp3j { text-indent:0px !important; width:31px; height:25px; margin:0px 0px 0px 4px; line-height:25px !important; font-size:14px; }
304
-
305
- .text div.playlist-toggle-MI { bottom: 7px; font-family:'trebuchet ms', Arial, sans-serif; background:none; padding:0; opacity:0.6; filter:alpha(opacity=60); }
306
- .text div.playlist-toggle-MI:hover { opacity:1.0; filter:alpha(opacity=100); }
307
- .text div.dloadmp3-MI { font-size:11px; bottom: 6px; height:auto; right:0px !important; left:auto; margin:0; font-family: 'trebuchet ms', Arial, sans-serif; text-align:right; background:none !important; }
308
- .text div.dloadmp3-MI a { color:#888; font-size:inherit; margin:0px !important; padding: 0px !important; background:none !important; text-decoration:none; }
309
- .text div.dloadmp3-MI a:hover { color:#555; background:none !important; }
310
- .text div.dloadmp3-MI.betweenlinks a { display:none; background:none !important; }
311
- .text div.dloadmp3-MI.whilelinks a { display:block; background:none !important; }
312
- .text div.dloadmp3-MI.whilelinks a:hover { text-decoration:none; background:none !important; }
313
- .text div.dloadmp3-MI p { font-size: inherit; margin:0px !important; padding: 0px !important; background:none !important; text-decoration:none; }
314
- .text div.mp3j-popout-MI { color:#888; font:normal normal 500 11px 'trebuchet ms', 'arial', sans-serif; bottom:15px; right:155px; left:auto; width:auto; opacity:1; filter:alpha(opacity=100); padding:0px; line-height:12px; border:0; background:none; cursor:default; z-index:500; }
315
- .text div.mp3j-popout-MI:hover { color:#555; opacity:1.0; filter:alpha(opacity=100); }
316
- .text div.MIsliderVolume { position:absolute; bottom:38px; top:auto; right:4px; width:108px !important; height:1px !important; background:transparent; border:0px; font-size:1px; cursor:default; z-index:150; }
317
- .text div.MIsliderVolume .ui-slider-handle, .text div.vol_mp3j .ui-slider-handle { height:11px !important; width:10px !important; padding:0px !important; margin-left:-5px; top:-7px; border:0px !important; -moz-border-radius:2px; -webkit-border-radius:2px; background:transparent url('images/vol-handle.png') no-repeat -41px 0px; z-index:150; overflow:hidden !important; cursor:default; }
318
- .text div.MIsliderVolume .ui-slider-handle:hover, .text div.vol_mp3j .ui-slider-handle:hover { background:transparent url('images/vol-handle.png') no-repeat -21px 0px; }
319
- .text div.MIsliderVolume .ui-state-active, .text div.MIsliderVolume .ui-widget-content .ui-state-active, .text div.vol_mp3j .ui-state-active, .text div.vol_mp3j .ui-widget-content .ui-state-active { border:0px; background:transparent url('images/vol-handle.png') no-repeat -21px 0px; outline:none; }
320
-
321
- .text div.dloadmp3-MI.whilelinks, .text div.dloadmp3-MI.logintext { background:none !important; }
322
-
323
-
324
-
325
- /* ===== "noscreen" ===== */
326
- .noscreen div.jp-interface { height:44px; min-height:44px; }
327
- .noscreen div.player-track-title { display:none; }
328
- .noscreen div.bars_holder { top:auto; bottom:0px; height:7px; }
329
- .noscreen div.innertab { bottom: 0px; top:0; display:none; }
330
- .noscreen div.dloadmp3-MI { bottom: 11px; }
331
- .noscreen div.transport-MI { bottom:17px; }
332
- .noscreen div.jp-play-time, .noscreen div.jp-total-time, .noscreen div.statusMI { bottom:25px; }
333
- .noscreen div.playlist-toggle-MI { bottom: 12px; }
334
- .noscreen div.mp3j-popout-MI { bottom: 20px; }
335
- .noscreen div.MIsliderVolume { bottom: 43px; }
336
- .noscreen div.MIsliderVolume .ui-widget-header { background:transparent url('images/vol-grad60b2.png') repeat-y 0px top; }
337
- .noscreen div.MIsliderVolume .ui-slider-handle { top:-6px; }
338
- .noscreen h2 { margin:0 !important; padding:0 0 0px 0 !important; }
339
- .noscreen div.posbarMI_mp3j .ui-slider-handle { top:-5px; margin-left:-7px !important; border:0; bottom:-5px; width:14px !important; z-index:100; background:none; border:none; cursor:default ; padding:0px !important; }
340
- .noscreen div.posbarMI_mp3j .ui-slider-handle:hover { background:none; border:none; }
341
- .noscreen .MI-image { top:15px; }
342
-
343
- /* ===== "nolistbutton" ===== */
344
- .nolistbutton div.playlist-toggle-MI { visibility:hidden; }
345
-
346
- /* ===== "nopopoutbutton" ===== */
347
- .nopopoutbutton div.mp3j-popout-MI { display:none; }
348
-
349
- /* ===== "nopn" ===== */
350
- .nopn div.Prev_mp3j { display:none; }
351
- .nopn div.Next_mp3j { display:none; }
352
-
353
- /* ===== "nostop" ===== */
354
- .nostop div.stop_mp3j { display:none; }
355
-
356
- /* ===== "bars100" ===== */
357
- .bars100 div.player-track-title { left:112px; }
358
- .bars100 div.dloadmp3-MI { left:102px; width:36%;}
359
- .bars100 div.bars_holder { left:102px; width:auto; }
360
- .bars100 .MI-image img { padding:1px; }
361
- .bars100 div.player-track-title { top:20px; }
362
-
363
- /* ===== "bars150" ===== */
364
- .bars150 div.player-track-title { left:162px; }
365
- .bars150 div.dloadmp3-MI { left:152px; width:33%;}
366
- .bars150 div.bars_holder { left:152px; width:auto; }
367
- .bars150 .MI-image img { padding:1px; }
368
- .bars150 div.player-track-title { top:20px; }
369
-
370
- /* ===== "bars200" ===== */
371
- .bars200 div.player-track-title { left:212px; }
372
- .bars200 div.dloadmp3-MI { left:202px; width:30%; }
373
- .bars200 div.bars_holder { left:202px; width:auto; }
374
- .bars200 .MI-image img { padding:1px; }
375
- .bars200 div.player-track-title { top:20px; }
376
-
377
- /* ===== "bars250" ===== */
378
- .bars250 div.player-track-title { left:262px; }
379
- .bars250 div.dloadmp3-MI { left:252px; width:27%;}
380
- .bars250 div.bars_holder { left:252px; width:auto; }
381
- .bars250 .MI-image img { padding:1px; }
382
- .bars250 div.player-track-title { top:20px; }
383
-
384
- /* ===== "bars300" ===== */
385
- .bars300 div.player-track-title { left:312px; }
386
- .bars300 div.dloadmp3-MI { left:302px; width:24%; }
387
- .bars300 div.bars_holder { left:302px; width:auto; }
388
- .bars300 .MI-image img { padding:1px; }
389
- .bars300 div.player-track-title { top:20px; }
390
-
391
- /* ===== "bars350" ===== */
392
- .bars350 div.player-track-title { left:362px; }
393
- .bars350 div.dloadmp3-MI { left:352px; width:21%;}
394
- .bars350 div.bars_holder { left:352px; width:auto; }
395
- .bars350 .MI-image img { padding:1px; }
396
- .bars350 div.player-track-title { top:20px; }
397
-
398
- /* ===== "bars400" ===== */
399
- .bars400 div.player-track-title { left:412px; }
400
- .bars400 div.dloadmp3-MI { left:402px; width:18%; }
401
- .bars400 div.bars_holder { left:402px; width:auto; }
402
- .bars400 .MI-image img { padding:1px; }
403
- .bars400 div.player-track-title { top:20px; }
404
-
405
- /* ===== bigger1 ===== */
406
- .bigger1 { font-size:18px; line-height:26px !important; margin:0 !important; }
407
- .bigger1 span.load_mp3j,
408
- .bigger1 span.loadB_mp3j { top:24px; left:0px; height:2px; }
409
- .bigger1 span.posbar_mp3j .ui-slider-handle { top: 3px; height:24px; width:6px !important; margin-left:-3px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
410
- .bigger1 span.posbarB_mp3j .ui-slider-handle { top: 3px; margin-left:-3px !important; border:1px solid #999; height:24px; width:6px !important; z-index:500; background:url('images/mp3t-poshandle.png') repeat-y -50px 0px; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
411
- .bigger1 span.posbarB_mp3j .ui-slider-handle:hover { background:url('images/mp3t-poshandle.png') repeat-y 0px 0px; border-color:#aaa; }
412
- .bigger1 span.buttons_mp3j { position:relative; margin:0px; margin-left:5px !important; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -80px 0px; }
413
- .bigger1 span.buttons_mp3j:hover { background:transparent url('images/transport-shard-B.png') no-repeat -80px -32px; }
414
- .bigger1 span.buttons_mp3jpause { position:relative; margin:0px; margin-left:5px !important; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -2px 0px; }
415
- .bigger1 span.buttons_mp3jpause:hover { background:transparent url('images/transport-shard-B.png') no-repeat -2px -32px; }
416
- .bigger1 span.vol_mp3j { position:absolute; top:-6px; right:7px; width:85%; max-width:100px; height:2px; }
417
-
418
- .bigger1 div.player-track-title { font:normal normal 500 18px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
419
- .bigger1 div.player-track-title span { font:normal normal 500 14px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
420
- .bigger1 ul.UL-MI_mp3j li a, .bigger1 ul.UL-MI_mp3j li { font-size:16px !important; line-height:19px !important; }
421
- .bigger1 .indi_mp3j { font-size: 0.6em !important; }
422
-
423
- /* ===== "bigger2" ===== */
424
- .bigger2 div.player-track-title { font:normal normal 500 36px/38px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
425
- .bigger2 div.player-track-title span { font:normal normal 500 20px/22px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
426
- .bigger2 ul.UL-MI_mp3j li a, .bigger2 ul.UL-MI_mp3j li { font-size:20px !important; line-height:24px !important; }
427
- .bigger2 { font-size:23px; line-height:25px !important; margin:0 !important; }
428
- .bigger2 span.load_mp3j,
429
- .bigger2 span.loadB_mp3j { top:26px; left:0px; height:2px; }
430
- .bigger2 span.posbar_mp3j .ui-slider-handle { top: 0px; height:28px; width:6px !important; margin-left:-3px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
431
- .bigger2 span.posbarB_mp3j .ui-slider-handle { top: -1px; margin-left:-3px !important; border:1px solid #999; height:29px; width:8px !important; z-index:500; border-color:#aaa; background:url('images/mp3t-poshandle.png') repeat-y 0px 0px; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
432
- .bigger2 span.posbarB_mp3j .ui-slider-handle:hover { background:url('images/mp3t-poshandle.png') repeat-y -50px 0px; border-color:#999; }
433
- .bigger2 span.buttons_mp3j { padding:2px 0px 4px 20px !important; background:url('images/play-dark2-b.png') no-repeat -186px center; border:0px solid #bbb; margin-left:10px; }
434
- .bigger2 span.buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -437px center; }
435
- .bigger2 span.buttons_mp3jpause { padding:0px 0px 2px 20px !important; background:url('images/stop-dark2-b.png') repeat-y 0px top; border:0px solid #bbb; margin-left:10px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
436
- .bigger2 span.buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
437
- .bigger2 span.vol_mp3j { position:absolute; top:-12px; right:4px; width:85%; max-width:100px; height:2px; }
438
- .bigger2 span.vol_mp3t { position:absolute; top:-10px; width:85%; max-width:100px; height:2px; }
439
- .bigger2 .Smp3-finding,
440
- .bigger2 .mp3-tint,
441
- .bigger2 .mp3-gtint { margin-left:8px; margin-right:6px; padding:0px 0px 0px 10px !important; font-size:12px !important; line-height:12px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
442
- .bigger2 .mp3-gtint { margin:0 6px 0 -16px; }
443
- .bigger2 .indi_mp3j { font-size: 0.5em !important; padding-left:0px; }
444
-
445
- /* ===== bigger3 ===== */
446
- .bigger3 { font-size:28px; line-height:36px !important; margin:0 !important; }
447
- .bigger3 .load_mp3j, .bigger3 .loadB_mp3j { top:37px; left:0px; height:3px; }
448
- .bigger3 .posbar_mp3j .ui-slider-handle, .bigger3 .posbarB_mp3j .ui-slider-handle { top: 0px; border:1px solid #bbb; height:40px; width:12px !important; margin-left:-5px !important; background:url('images/stop-dark2-b.png') repeat-y -350px top; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
449
- .bigger3 .posbar_mp3j .ui-slider-handle:hover, .bigger3 .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2-b.png') repeat-y 0px top; border:1px solid #aaa; }
450
- .bigger3 .indi_mp3j { font-size: 0.5em !important; }
451
- .bigger3 span.buttons_mp3j { padding:8px 0px 12px 30px !important; background:url('images/play-dark2-b.png') no-repeat -177px center; border:0px solid #bbb; margin-left:12px; }
452
- .bigger3 span.buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -428px center; }
453
- .bigger3 span.buttons_mp3jpause { padding:2px 0px 6px 30px !important; background:url('images/stop-dark2-b.png') repeat-y 0px top; border:0px solid #bbb; margin-left:12px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
454
- .bigger3 span.buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
455
- .bigger3 .vol_mp3j { height:1px; max-width:110px; right:64px; top:-8px; }
456
- .bigger3 .vol_mp3t { height:1px; max-width:110px; right:16px; top:-5px; }
457
- .bigger3 .vol_mp3j .ui-slider-handle, .bigger3 .vol_mp3t .ui-slider-handle { height:14px !important; width:33px !important; margin-left:-16px; border-bottom:1px solid #ccc !important; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; top:-14px; background:url('images/volhandle-dark2-b.png') no-repeat -10px bottom; }
458
- .bigger3 .vol_mp3j .ui-slider-handle:hover, .bigger3 .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-b.png') no-repeat -257px bottom; }
459
- .bigger3 .Smp3-finding,
460
- .bigger3 .mp3-tint,
461
- .bigger3 .mp3-gtint { margin-left:8px; padding:0px 0px 0px 14px !important; font-size:18px !important; line-height:20px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
462
- .bigger3 .mp3-gtint { margin:0 2px 0 -14px; }
463
- .bigger3 div.player-track-title { font:normal normal 500 44px/46px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
464
- .bigger3 div.player-track-title span { font:normal normal 500 28px/30px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
465
- .bigger3 ul.UL-MI_mp3j li a, .bigger3 ul.UL-MI_mp3j li { font-size:28px !important; line-height:30px !important; }
466
-
467
-
468
- /* ===== bigger4 ===== */
469
- .bigger4 { font-size:38px; line-height:46px !important; margin:0 !important; }
470
- .bigger4 .load_mp3j, .bigger4 .loadB_mp3j { top:46px; left:0px; height:3px; }
471
- .bigger4 .posbar_mp3j .ui-slider-handle, .bigger4 .posbarB_mp3j .ui-slider-handle { top: -2px; border:1px solid #bbb; height:52px; width:20px !important; margin-left:-10px !important; background:url('images/stop-dark2-b.png') repeat-y -350px top; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
472
- .bigger4 .posbar_mp3j .ui-slider-handle:hover, .bigger4 .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2-b.png') repeat-y 0px top; border:1px solid #aaa; }
473
- .bigger4 .indi_mp3j { font-size: 0.5em !important; }
474
- .bigger4 span.buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:8px 0px 12px 40px !important; background:url('images/play-dark2-b.png') no-repeat -167px center; border:0px solid #bbb; margin-left:15px; }
475
- .bigger4 span.buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -418px center; }
476
- .bigger4 span.buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:2px 0px 4px 40px !important; background:url('images/stop-dark2-b.png') repeat-y 0px top; border:0px solid #bbb; margin-left:15px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
477
- .bigger4 span.buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
478
- .bigger4 .vol_mp3j { height:1px; max-width:110px; right:86px; top:-8px; }
479
- .bigger4 .vol_mp3t { height:1px; max-width:110px; right:20px; top:-5px; }
480
- .bigger4 .vol_mp3j .ui-slider-handle, .bigger4 .vol_mp3t .ui-slider-handle { height:20px !important; width:43px !important; margin-left:-21px; border-bottom:1px solid #ccc !important; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; top:-20px; background:url('images/volhandle-dark2-b.png') no-repeat -10px bottom; }
481
- .bigger4 .vol_mp3j .ui-slider-handle:hover, .bigger4 .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-b.png') no-repeat -257px bottom; }
482
- .bigger4 .Smp3-finding,
483
- .bigger4 .mp3-tint,
484
- .bigger4 .mp3-gtint { margin-left:8px; margin-right:6px; padding:0px 0px 0px 14px !important; font-size:18px !important; line-height:20px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
485
- .bigger4 .mp3-gtint { margin:0 6px 0 -20px; }
486
-
487
- .bigger4 div.player-track-title { font:normal normal 500 44px/46px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
488
- .bigger4 div.player-track-title span { font:normal normal 500 28px/30px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
489
- .bigger4 ul.UL-MI_mp3j li a, .bigger4 ul.UL-MI_mp3j li { font-size:28px !important; line-height:30px !important; }
490
-
491
-
492
- /* ===== bigger5 ===== */
493
- .bigger5 { font-size:48px; line-height:60px !important; margin:0 !important; }
494
- .bigger5 .load_mp3j, .bigger5 .loadB_mp3j { top:63px; left:0px; height:4px; }
495
- .bigger5 .posbar_mp3j .ui-slider-handle, .bigger5 .posbarB_mp3j .ui-slider-handle { top: -1px; border:1px solid #bbb; height:69px; width:20px !important; margin-left:-10px !important; background:url('images/stop-dark2-b.png') repeat-y -350px top; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
496
- .bigger5 .posbar_mp3j .ui-slider-handle:hover, .bigger5 .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2-b.png') repeat-y 0px top; border:1px solid #aaa; }
497
- .bigger5 .indi_mp3j { font-size: 0.5em !important; }
498
- .bigger5 span.buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:8px 0px 13px 52px !important; background:url('images/play-dark2-b.png') no-repeat -154px center; border:0px solid #bbb; margin-left:20px; }
499
- .bigger5 span.buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -405px center; }
500
- .bigger5 span.buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:3px 0px 8px 52px !important; background:url('images/stop-dark2-b.png') repeat-y 0px top; border:0px solid #bbb; margin-left:15px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
501
- .bigger5 span.buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
502
- .bigger5 .vol_mp3j { height:1px; max-width:170px; right:115px; top:-10px; }
503
- .bigger5 .vol_mp3t { height:1px; max-width:170px; right:33px; top:-5px; }
504
- .bigger5 .vol_mp3j .ui-slider-handle, .bigger5 .vol_mp3t .ui-slider-handle { height:30px !important; width:55px !important; margin-left:-21px; border-bottom:1px solid #aaa !important; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; top:-30px; background:url('images/volhandle-dark2-b.png') no-repeat -10px bottom; }
505
- .bigger5 .vol_mp3j .ui-slider-handle:hover, .bigger5 .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-b.png') no-repeat -257px bottom; }
506
- .bigger5 .Smp3-finding,
507
- .bigger5 .mp3-tint,
508
- .bigger5 .mp3-gtint { margin-left:8px; margin-right:6px; padding:0px 0px 0px 14px !important; font-size:18px !important; line-height:20px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
509
- .bigger5 .mp3-gtint { margin:0 6px 0 -20px; }
510
-
511
- .bigger5.wh .posbar_mp3j .ui-slider-handle, .bigger5.wh .posbarB_mp3j .ui-slider-handle { background:url('images/stop-dark2-w.png') repeat-y -350px top; border:1px solid #888; }
512
- .bigger5.wh .posbar_mp3j .ui-slider-handle:hover, .bigger5.wh .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2-w.png') repeat-y 0px top; border:1px solid #777; }
513
- .bigger5.wh .buttons_mp3j { background:url('images/play-dark2-w.png') no-repeat -154px center; border:0px solid #bbb; margin-left:20px; }
514
- .bigger5.wh .buttons_mp3j:hover { background:url('images/play-dark2-w.png') no-repeat -405px center; }
515
- .bigger5.wh .buttons_mp3jpause { background:url('images/stop-dark2-w.png') repeat-y 0px top; }
516
- .bigger5.wh .buttons_mp3jpause:hover { background:url('images/stop-dark2-w.png') repeat-y -350px top; }
517
- .bigger5.wh .vol_mp3j .ui-slider-handle, .bigger5.wh .vol_mp3t .ui-slider-handle { background:url('images/volhandle-dark2-bw.png') no-repeat -10px bottom; }
518
- .bigger5.wh .vol_mp3j .ui-slider-handle:hover, .bigger5.wh .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-w.png') no-repeat -257px bottom; }
519
-
520
-
521
- /* ===== "smaller" ===== */
522
- .smaller div.player-track-title { font:normal normal 500 11px/13px 'verdana', 'Lucida Grande', 'arial', sans-serif !important; left:5px; right:5px; }
523
- .smaller div.player-track-title span { font:normal normal 500 10px/10px 'verdana', 'Lucida Grande', 'arial', sans-serif !important; padding:0; }
524
- .smaller ul.UL-MI_mp3j li a, .smaller ul.UL-MI_mp3j li { font-size:10px !important; font-family:'verdana', Helvetica, sans-serif !important; line-height:13px !important; }
525
-
526
-
527
- /* ===== outline ==== */
528
- span.outline { font-size:14px; line-height:22px !important; margin:0 !important; }
529
- .outline span.vol_mp3t { position:absolute; top:-4px; right:4px; width:90%; max-width:100px; height:2px; background: transparent; }
530
- .outline span.vol_mp3j { position:absolute; top:-9px; right:7px; width:85%; max-width:100px; height:2px; background: transparent; }
531
- .outline span.buttons_mp3j { padding:2px 0px 3px 20px; background: transparent url('images/transport-outline.png') no-repeat -80px -2px; border:0; margin:0; }
532
- .outline span.buttons_mp3j:hover { background:transparent url('images/transport-outline.png') no-repeat -80px -34px; }
533
- .outline span.buttons_mp3jpause { padding:2px 0px 3px 20px; background: transparent url('images/transport-outline.png') no-repeat 1px -2px; border:0; margin:0; }
534
- .outline span.buttons_mp3jpause:hover { background:transparent url('images/transport-outline.png') no-repeat 1px -34px; }
535
- .outline span.posbarB_mp3j { position:absolute; width:100%; height:100%; border:0px solid #f77; }
536
- .outline span.posbarB_mp3j .ui-widget-header { z-index:-500; }
537
- .outline span.posbarB_mp3j .ui-slider-handle { top: 0px; margin-left:0px; border:1px solid #aaa; height:23px; width:5px !important; z-index:500; background:url('images/t10b.png') repeat; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
538
- .outline span.posbarB_mp3j .ui-slider-handle:hover { background:url('images/t20b.png') repeat; border-color:#777; }
539
- .outline div.transport-MI div { background-image: url("images/transport-hardK.png"); }
540
- .outline div.mp3j-popout-MI { background-image:url('images/buttons-popoutF.png'); }
541
- .silver.outline div.transport-MI div { background-image: url("images/transport-hardZ.png"); }
542
- .silver.outline div.mp3j-popout-MI { background-image:url('images/buttons-popoutF.png'); }
543
-
544
- /* ===== wtransbars ==== */
545
- .wtransbars div.loadMI_mp3j { background:#fff; opacity:0.1; filter:alpha(opacity=10); }
546
- .wtransbars div.poscolMI_mp3j { background:#fff url('images/posbar-soften-tipped-2.png') repeat-y right top; opacity:0.15; filter:alpha(opacity=15); }
547
- .wtransbars div.player-track-title { color:#fff; }
548
-
549
- /* ===== btransbars ==== */
550
- .btransbars div.loadMI_mp3j { background:#000; opacity:0.1; filter:alpha(opacity=10); }
551
- .btransbars div.poscolMI_mp3j { background:#000 url('images/posbar-soften-tipped-2.png') repeat-y right top; opacity:0.15; filter:alpha(opacity=15); }
552
- .btransbars div.player-track-title { color:#000; }
553
-
554
-
555
-
1
+ /*
2
+ MP3-jPlayer 1.8.1 - Dark
3
+ www.sjward.org */
4
+
5
+ /*---------------------
6
+ [mp3-jplayer] SHORTCODE
7
+ ==================================== */
8
+
9
+ /* SKIN
10
+ --------------- */
11
+ /* MAIN WRAPPER (default class) */
12
+ div.wrap-MI { border:0; margin:0; background:none; min-width:116px; /* position||float set in-line! */ /* width set in-line! */ }
13
+
14
+ /* SUB WRAPPERS */
15
+ div.jp-innerwrap, div.jp-interface, div.listwrap_mp3j, div.playlist-wrap-MI { position:relative !important; width:100%; border:0; margin:0; padding:0; }
16
+ div.jp-innerwrap { background:none; }
17
+ div.jp-interface { background:url('images/shadow-x.png') repeat-x left bottom; height:101px/*player default height*/; min-height:67px; cursor:default; }
18
+ div.listwrap_mp3j { margin-top:0px; /* background set from admin */ }
19
+
20
+ /* BACKGROUNDS */
21
+ div.innerx, div.innerleft, div.innerright, div.innertab { position:absolute; }
22
+ div.innerx { background:url('images/case-grad-x.png') repeat-x left -119px; width:auto; height:35px; left:0px; right:0px; bottom:3px; }
23
+ div.innerleft { background:url('images/shadow-l.png') no-repeat left bottom; width:1px; height:40px; left:-1px; bottom:0px; }
24
+ div.innerright { background:url('images/shadow-r.png') no-repeat right bottom; width:2px; height:40px; right:-2px; bottom:0px; }
25
+ div.innertab { /* background and opacity set from admin */ left:0px; top:0px; width:100%; bottom:38px; }
26
+
27
+ /* PLAYLIST
28
+ ----------------- */
29
+ div.playlist-colour { position:absolute; width:100%; height:100%; left:0px; top:0px; /* background set from admin */ /* opacity set from admin */ }
30
+ div.playlist-wrap-MI ul { position:static; }
31
+ ul.UL-MI_mp3j { margin:0px !important; padding:0px 0px 0px 0px !important; list-style-type:none !important; list-style:none !important; list-style-image:none !important; font-weight: 500 !important; /* background */ }
32
+ ul.UL-MI_mp3j li { margin:0px !important; padding:0px 0px 1px 0px !important; font-weight:500 !important; line-height:15px !important; letter-spacing:0px !important; font-size:11px !important; word-spacing:0px !important; margin:0px 1px 0px 1px !important; list-style-type:none !important; }
33
+ ul.UL-MI_mp3j li:before { content:none !important; }
34
+ ul.UL-MI_mp3j li a { font-size:11px !important; border:0 !important; line-height:15px !important; font-weight:500 !important; text-decoration:none !important; display:block !important; width:auto !important; font-family:'verdana', 'Lucida Grande', 'arial', sans-serif !important; outline:none !important; padding:6px 0px 6px 14px !important; }
35
+
36
+ /* SCREEN
37
+ ----------------- */
38
+ div.player-track-title, div.jp-play-time, div.jp-total-time, div.statusMI { position:absolute; z-index:50; /* color set from admin */ font:normal normal 500 14px/16px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
39
+
40
+ div.player-track-title { top:7px; left:9px; width:auto; right:10px; }
41
+ div.player-track-title span { font-size:10px; line-height:12px; padding-left:10px; max-width:95%; }
42
+
43
+ div.jp-play-time, div.jp-total-time, div.statusMI { font-size:8px; line-height:10px !important; bottom:42px; text-align:left; font-family:Verdana, Arial, Helvetica, sans-serif; }
44
+ div.jp-play-time { right:84px; }
45
+ div.jp-total-time { right:6px; opacity:0.8; width:auto; }
46
+
47
+ span.mp3-finding, span.Smp3-finding, span.mp3-tint, span.mp3-gtint { padding:0px 0px 0px 6px !important; font-size:8px !important; line-height:10px !important; height:10px !important; overflow:hidden !important; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; }
48
+ span.mp3-finding, span.Smp3-finding { margin:0px 0px 0px -2px; background:url('images/finding-bar1f.gif') repeat 0px 3px; }
49
+ span.mp3-tint { margin:0px 2px 0px -6px; opacity:.5; filter:alpha(opacity=50); /* background */ }
50
+ span.mp3-gtint { margin:0px 2px 0px -6px; opacity:.5; filter:alpha(opacity=50); background:#777; }
51
+ span.Smp3-finding { margin:0px 0px 0px 3px; }
52
+ span.tintmarg { margin:0 2px 0 3px; }
53
+
54
+ div.statusMI { right:27px; width:52px !important; height:10px; }
55
+ .statusMI span.mp3-finding, .statusMI span.Smp3-finding, .statusMI span.mp3-tint, .statusMI span.mp3-gtint { padding:0px 0px 0px 6px !important; }
56
+ .statusMI span.mp3-tint, .statusMI span.mp3-gtint { margin:0px 2px 0px -6px; }
57
+
58
+ .MI-image { position:absolute; top:0; left:0; padding:0; }
59
+ .MI-image img { border:none; padding:0px; background-color:#777; }
60
+ .MI-image a:hover img { /* background-colour */ }
61
+
62
+ /* BUTTONS
63
+ ----------------- */
64
+ /* TRANSPORT BUTTONS */
65
+ div.transport-MI { position:absolute; width:auto; height:38px; right:2px; bottom:0px; border:0; }
66
+ /*div.transport-MI div { background-image: url("images/transport-hardV-shiny.png"); text-indent:-9999px !important; float:right; }*/
67
+ div.transport-MI div { background-image: url("images/transport-darkbg-trans2.png"); text-indent:-9999px !important; float:right; }
68
+ /* play */
69
+ div.buttons_mp3j { width:30px; height:32px; margin:1px 0px 0px 0px; background-position:-110px 0px; }
70
+ div.buttons_mp3j:hover { background-position:-110px -32px; }
71
+ /* pause */
72
+ div.buttons_mp3jpause { width:30px; height:32px; margin:1px 0px 0px 0px; background-position:-2px 0px; }
73
+ div.buttons_mp3jpause:hover { background-position:-2px -32px; }
74
+ /* prev n next */
75
+ div.Prev_mp3j { width:22px; height:28px; margin:1px 4px 0px 0px; background-position:-32px -1px; }
76
+ div.Prev_mp3j:hover { background-position:-32px -33px; }
77
+ div.Next_mp3j { width:19px; height:28px; margin:1px 3px 0px 0px; background-position:-57px -1px; }
78
+ div.Next_mp3j:hover { background-position:-57px -33px; }
79
+ /* stop */
80
+ div.stop_mp3j { width:26px; height:32px; margin:1px 3px 0px 0px; background-position:-81px 0px; }
81
+ div.stop_mp3j:hover { background-position:-81px -32px; }
82
+
83
+ /* PLAYLIST TOGGLE */
84
+ div.playlist-toggle-MI { position:absolute; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif; bottom:4px; left:1px; padding:2px 6px 2px 5px; line-height:9px; min-width:24px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; cursor:default; background:#505050; color:#a2a2a2; }
85
+ div.playlist-toggle-MI:hover { background:#585858; color:#aaa; border-right:0px solid #a9a9a9; }
86
+
87
+ /* DOWNLOAD BUTTON */
88
+ div.dloadmp3-MI { position:absolute; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif !important; bottom:39px; margin:0px !important; font-size:9px !important; text-align:center; left:0px; width:41%; min-width:75px; max-width:425px; padding:0px 0px 0px 0px !important; border:0px; background:transparent url('images/t10b.png') repeat left top !important; color:#fff; line-height:11px !important; -moz-border-radius-topright:3px; -webkit-border-top-right-radius:3px; overflow:hidden; z-index:150; cursor:default; }
89
+ div.dloadmp3-MI.whilelinks, div.dloadmp3-MI.logintext { background:transparent url('images/t50b.png') repeat left top !important; }
90
+ div.dloadmp3-MI.whilelinks:hover { background:transparent url('images/t40b.png') repeat left top !important; }
91
+ div.dloadmp3-MI a { color:#ececec; display:block; width:auto; padding:1px 5px 2px 2px !important; margin:0px !important; background:transparent; text-decoration:none !important; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif !important; font-size:9px !important; line-height:11px !important; /* after font declaration */ height:100%; border-bottom:none; visibility:hidden; }
92
+ div.dloadmp3-MI a:hover { outline: none; border-bottom: none; color: #ececec; }
93
+ div.dloadmp3-MI.whilelinks a { color: #f3f3f3; visibility: inherit; }
94
+ div.dloadmp3-MI.whilelinks a:hover { color: #fff; }
95
+ div.dloadmp3-MI p { color:#ececec; display:block; width:auto; padding:1px 5px 2px 2px !important; margin:0px !important; background:transparent; text-decoration:none !important; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif !important; font-size:9px !important; line-height:11px !important; /* after font declaration */ height:100%; border-bottom:none; visibility:visible; }
96
+
97
+ /* POPOUT BUTTON */
98
+ div.mp3j-popout-MI { position:absolute; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif; bottom:17px; left:0px; height:16px; padding:3px 5px 0px 28px; min-width:2px; line-height:11px; border:1px solid #585858; background-color:#aaa; background-image:url('images/buttons-popoutE.png'); background-repeat:no-repeat; background-position:-8px -6px; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; cursor:default;
99
+ color:#a2a2a2; }
100
+ div.mp3j-popout-MI:hover { color:#aaa; background-position:-8px -36px; }
101
+
102
+ /* BARS
103
+ ----------------- */
104
+ .ui-state-disabled { cursor:default !important; }
105
+ .ui-slider { position:relative; text-align:left; }
106
+ .ui-slider .ui-slider-handle { position:absolute; z-index:200; cursor:default; }
107
+ .ui-slider .ui-slider-range { position:absolute; z-index:1; font-size:.7em; display:block; border:0; }
108
+ .ui-slider-horizontal .ui-slider-range { top:0; height:100%; }
109
+ .ui-slider-horizontal .ui-slider-range-min { left:0; }
110
+ .ui-slider-horizontal .ui-slider-range-max { right:0; }
111
+ .ui-state-default, .ui-widget-content .ui-state-default { outline:none; border:0px; }
112
+
113
+ /* VOLUME */
114
+ div.MIsliderVolume { position:absolute; top:0px; right:4px; width:108px; height:4px !important; background:transparent; border:0px; font-size:1px; cursor:default; z-index:150; }
115
+ div.MIsliderVolume .ui-widget-header { /* background */ }
116
+ div.MIsliderVolume .ui-slider-handle { border:0px; height:11px !important; width:10px !important; padding:0px !important; margin-left:-5px; top:-3px; border:0px !important; -moz-border-radius:2px; -webkit-border-radius:2px; background:transparent url('images/vol-handle.png') no-repeat -1px 0px; z-index:150; overflow:hidden !important; cursor:default; }
117
+ div.MIsliderVolume .ui-slider-handle:hover { background:transparent url('images/vol-handle.png') no-repeat -21px 0px; }
118
+ div.MIsliderVolume .ui-state-active, div.MIsliderVolume .ui-widget-content .ui-state-active { border:0px; background:transparent url('images/vol-handle.png') no-repeat -21px 0px; outline:none; }
119
+
120
+ /* LOADER AND POS SLIDER */
121
+ div.bars_holder, div.loadMI_mp3j, div.poscolMI_mp3j, div.posbarMI_mp3j { position:absolute; top:0px; left:0px; }
122
+ div.bars_holder { right:0; width:100%; bottom:38px; font-size:1px; cursor:default; background:url('images/t40b.png')/*t50g.png*/ repeat-x left bottom;/* 1px highlight top of control bar */ }
123
+ div.loadMI_mp3j { bottom:1px; /* background */ /* opacity */ }
124
+ div.poscolMI_mp3j { bottom:1px; /* background */ /* opacity */ }
125
+ div.bars_holder .ui-widget-header, div.bars_holder .ui-widget-content { border:0px !important; background:none; }
126
+ div.bars_holder .ui-slider-horizontal { top:0px; bottom:1px; height:auto; z-index:90; }
127
+ div.posbarMI_mp3j { bottom:1px; width:100%; }
128
+ div.posbarMI_mp3j .ui-slider-handle { top:-6px; margin-left:-1px !important; border:0; bottom:-2px; width:2px !important; z-index:100; background:none; cursor:default ; padding:0px !important; }
129
+ div.posbarMI_mp3j .ui-slider-handle:hover { background:none; z-index:100; }
130
+
131
+
132
+
133
+ /* FORCED DOWNLOAD FRAME
134
+ ------------------------ */
135
+ div.mp3j-dlframe, iframe.mp3j-dlframe {
136
+ border:0px solid #ddd;
137
+ width:1px;
138
+ height:1px;
139
+ overflow:hidden;
140
+ margin:0;
141
+ padding:0;
142
+ display:none !important;
143
+ }
144
+
145
+ /* MESSAGES */
146
+ div.mp3j-finfo {
147
+ position:absolute !important;
148
+ top:36px;
149
+ z-index:9999;
150
+ width:80%;
151
+ left:10%;
152
+ -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px;
153
+ background:url('images/fdloadB-x.png') repeat-x left top;
154
+ -webkit-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); -moz-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35);
155
+ padding:0;
156
+ min-height:31px;
157
+ overflow:hidden;
158
+ min-width:170px;
159
+ }
160
+
161
+ div.mp3j-finfo * { font-family:Arial, Helvetica, sans-serif !important; }
162
+ div.mp3j-finfo-sleeve { position:relative !important; width:100%; height:100%; }
163
+ div.mp3j-finfo-gif { position:absolute !important; top:0; left:0; right:10%; bottom:0; background:url('images/loader-w2.gif') no-repeat center 37px; width:auto; padding:0px !important; height:100%; }
164
+ div.mp3j-finfo-txt { position:relative !important; margin:0px 15px 0 15px !important; padding:10px 0 10px 0 !important; width:auto; }
165
+ div.mp3j-finfo-close { position:absolute !important; width:31px !important; height:27px !important; padding-top:5px !important; right:0 !important; top:0 !important; text-align:center !important; font-weight:700 !important; font-size:18px !important; line-height:22px !important; color:#999 !important; border-bottom:1px solid #777 !important; border-left:1px solid #777 !important; background:url('images/t40b.png') repeat left top; }
166
+ div.mp3j-finfo-close:hover { color:#eee !important; }
167
+
168
+ div.mp3j-finfo-txt h2 { font-size:15px !important; color:#fff !important; margin:0 0 10px 0 !important; }
169
+ div.mp3j-finfo-txt h3 { font-size:14px !important; color:#fff !important; margin:0 0 15px 0 !important; }
170
+ div.mp3j-finfo-txt p { font-size:11px !important; color:#fff !important; line-height:13px !important; margin:0 0 5px 0 !important; }
171
+ div.mp3j-finfo-txt a { }
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+ .mp3j-nosolution
180
+ {
181
+ position:absolute;
182
+ z-index:9999;
183
+ height:auto;
184
+ padding:5%;
185
+ border:1px solid #c0c0c0;
186
+ background:#f0f0f0;
187
+ color:#333;
188
+ top:4px;
189
+ left:4px;
190
+ right:4px;
191
+ -webkit-border-top-left-radius: 8px;
192
+ -webkit-border-top-right-radius: 8px;
193
+ -moz-border-radius-topleft: 8px;
194
+ -moz-border-radius-topright: 8px;
195
+ border-top-left-radius: 8px;
196
+ border-top-right-radius: 8px;
197
+ font-size:13px;
198
+ -webkit-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); -moz-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35);
199
+ }
200
+
201
+ .s-nosolution
202
+ {
203
+ }
204
+
205
+
206
+
207
+ /* backwards compat
208
+ ------------------- */
209
+ div.player-track-title.mp3j_widgetmods { font-size: 11px; top: 7px; left:5px; }
210
+ div.player-track-title.mp3j_widgetmods span { font-size: 9px; }
211
+ ul.UL-MI_mp3j.mp3j_widgetmods li { font-size:10px !important; line-height:14px !important; }
212
+ ul.UL-MI_mp3j.mp3j_widgetmods li a { font-size:10px !important; line-height:14px !important; }
213
+
214
+
215
+ /*-------------------------
216
+ [mp3j] & [mp3t] SHORTCODES
217
+ ==================================== */
218
+ span.wrap_inline_mp3j { position:relative; width:auto; cursor:pointer; padding:0; white-space:nowrap; text-align:left; }
219
+ /*span.wrap_inline_mp3j:hover .buttons_mp3j { background:transparent url('images/transport-shard-B.png') no-repeat -80px -35px; }*/
220
+ span.indi_mp3j { position:relative; padding-left:2px; font-size: 0.7em !important; }
221
+
222
+ /* BARS */
223
+ span.bars_mp3j { position:absolute; width:100%; height:100%; }
224
+ span.load_mp3j, span.loadB_mp3j { position:absolute; /* background */ top:20px; left:0px; height:2px; }
225
+ /* mp3t */
226
+ span.posbar_mp3j { position:absolute; width:100%; height:100%; border:0px solid #f77; }
227
+ span.posbar_mp3j .ui-widget-header { z-index:-500; }
228
+ span.posbar_mp3j .ui-slider-handle { top: 2px; margin-left:-2px; border:1px solid #999; height:21px; width:4px; z-index:500; background:url('images/t20b.png') repeat; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
229
+ span.posbar_mp3j .ui-slider-handle:hover { background:url('images/t15b.png') repeat; border-color:#aaa; }
230
+ /* mp3j */
231
+ span.posbarB_mp3j { position:absolute; width:100%; height:100%; border:0; z-index:450; cursor:pointer; }
232
+ span.posbarB_mp3j .ui-widget-header { background:transparent; z-index:450; height:100%; }
233
+ span.posbarB_mp3j .ui-slider-handle { top: 0px; margin-left:-6px !important; border:0px solid #888; height:23px; width:12px !important; z-index: 500; background: transparent url('images/inlineHandle2.png') no-repeat -3px -3px; cursor: default; padding:0px !important; }
234
+ span.posbarB_mp3j .ui-slider-handle:hover { background: transparent url('images/inlineHandle2.png') no-repeat -3px -33px; }
235
+
236
+ /* SPAN TRANSPORT */
237
+ span.group_wrap { position:relative; margin:0px 0px 0px 0px; width:auto; }
238
+ span.textbutton_mp3j, span.T_mp3j { position:relative; width:auto; margin:0px; padding:0px; }
239
+ span.buttons_mp3j { position:relative; margin:0px; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -80px -3px; }
240
+ span.buttons_mp3j:hover { background:transparent url('images/transport-shard-B.png') no-repeat -80px -35px; }
241
+ span.buttons_mp3jpause { position:relative; margin:0px; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -2px -3px; }
242
+ span.buttons_mp3jpause:hover { background:transparent url('images/transport-shard-B.png') no-repeat -2px -35px; }
243
+
244
+ /* VOLUMES */
245
+ span.vol_mp3t { position:absolute; top:-4px; right:4px; width:90%; max-width:100px; height:2px; }
246
+ span.vol_mp3j { position:absolute; top:-9px; right:5px; width:85%; max-width:100px; height:2px; }
247
+ span.vol_mp3j.flipped { right:4px; }
248
+ span.vol_mp3t .ui-widget-header, span.vol_mp3j .ui-widget-header { background: transparent url('images/vol-grad60b2.png') repeat left top; z-index:500; height:100%; }
249
+ span.vol_mp3t .ui-slider-handle, span.vol_mp3j .ui-slider-handle { height:11px !important; width:10px !important; padding:0px !important; margin-left:-5px; border:0px !important; border-radius:2px; -moz-border-radius:2px; -webkit-border-radius:2px; z-index:600; overflow:hidden !important; cursor:default; top:-6px; background: transparent url('images/vol-handle.png') no-repeat -1px 0px; }
250
+ span.vol_mp3t .ui-slider-handle:hover, span.vol_mp3j .ui-slider-handle:hover { background: transparent url('images/vol-handle.png') no-repeat -21px 0px; }
251
+ span.vol_mp3t .ui-state-active, span.vol_mp3t .ui-widget-content .ui-state-active, span.vol_mp3j .ui-state-active, span.vol_mp3j .ui-widget-content .ui-state-active { background:transparent url('images/vol-handle.png') no-repeat -21px 0px; outline:none; border:0px; }
252
+
253
+
254
+ /*----------------------
255
+ [mp3j-popout] SHORTCODE
256
+ ================================================= */
257
+ .mp3j-popout-link-wrap { cursor:pointer; position:relative; clear:left; }
258
+ .mp3j-popout-link { float:left; margin:0 5px 0 0; min-width:22px; min-height:18px; background:url('images/buttons-popout.png') no-repeat -10px -65px; }
259
+ .mp3j-popout-link-wrap:hover .mp3j-popout-link { background:url('images/buttons-popout.png') no-repeat -10px -95px; }
260
+
261
+
262
+ /*-------------
263
+ CUSTOM CLASSES
264
+ (via 'style' param in shortcode)
265
+ ================================================= */
266
+
267
+ /* ===== "silver" ===== */
268
+ .silver .innerx { background-position:left -45px; }
269
+ .silver .transport-MI { height:37px; }
270
+ .silver .transport-MI div { background-image:url("images/transport-hardW-shiny.png"); }
271
+ .silver .bars_holder { background:url('images/t60w.png') repeat-x left bottom; }
272
+ .silver .mp3j-popout-MI { color:#6c6c6c; background-position:-8px -65px; border-color:#b2b2b2; background-color:#aaa; }
273
+ .silver .mp3j-popout-MI:hover { color:#606060; background-position:-8px -95px; }
274
+ .silver div.playlist-toggle-MI { background:#bcbcbc; color:#707070; }
275
+ .silver div.playlist-toggle-MI:hover { background:#c6c6c6; color:#777; }
276
+ .silver .MI-image img { background-color:#bbb; }
277
+
278
+ .silver div.mp3j-finfo { background:url('images/fdloadW-x.png') repeat-x left top; }
279
+ .silver div.mp3j-finfo-gif { background:url('images/loader.gif') no-repeat center 37px; }
280
+ .silver div.mp3j-finfo-close { color:#aaa !important; border-bottom:1px solid #ccc !important; border-left:1px solid #ccc !important; background:url('images/t40w.png') repeat left top !important; }
281
+ .silver div.mp3j-finfo-close:hover { color:#888 !important; }
282
+ .silver div.mp3j-finfo-txt h2 { color:#333 !important; }
283
+ .silver div.mp3j-finfo-txt h3 { color:#333 !important; }
284
+ .silver div.mp3j-finfo-txt p { color:#555 !important; }
285
+
286
+
287
+ /* ===== "text" ===== */
288
+ div.wrap-MI.text { /*min-width:300px;*/ }
289
+ .text div.innerx, .text div.innerleft, .text div.innerright { position: absolute; visibility: hidden; }
290
+ .text div.innertab { bottom: 38px; }
291
+ .text div.jp-interface { background:none; }
292
+ .text div.player-track-title { font:normal normal 500 16px/18px 'trebuchet ms', Arial, sans-serif; }
293
+ .text div.player-track-title span { font:italic normal 500 12px/14px 'trebuchet ms', Arial, sans-serif; opacity:0.7; filter:alpha(opacity=70); }
294
+ .text div.jp-play-time, .text div.jp-total-time, .text div.statusMI { bottom:20px; font-size:11px; font-family: 'trebuchet ms', Arial, sans-serif; }
295
+ .text div.jp-play-time { width:37px; left:0px; opacity:0.6; filter:alpha(opacity=60); }
296
+ .text div.jp-total-time { width:37px; left:100px; display:none; }
297
+ .text div.statusMI { left:37px; width:70px !important; }
298
+ .text div.transport-MI { height:26px; right:2px; bottom:12px; }
299
+ .text div.transport-MI div { font-family: 'trebuchet ms', Arial, sans-serif; font-weight:700; overflow:hidden !important; background:none !important; white-space:nowrap !important; }
300
+ .text div.buttons_mp3j { text-indent:4px !important; width:32px; overflow:hidden !important; height: 25px; margin:0 6px 0 0px; background:none !important; line-height:25px !important; font-size:14px; }
301
+ .text div.buttons_mp3jpause { text-indent:-29px !important; width:38px; overflow:hidden !important; height: 25px; margin:0 -3px 0 3px; background:none !important; line-height:25px !important; font-size:14px; }
302
+ .text div.Prev_mp3j, .text div.Next_mp3j { text-indent:0px !important; height:23px; line-height:23px !important; font-size:12px; width:36px; margin:2px 0px 0px 0px; }
303
+ .text div.stop_mp3j { text-indent:0px !important; width:31px; height:25px; margin:0px 0px 0px 4px; line-height:25px !important; font-size:14px; }
304
+
305
+ .text div.playlist-toggle-MI { bottom: 7px; font-family:'trebuchet ms', Arial, sans-serif; background:none; padding:0; opacity:0.6; filter:alpha(opacity=60); }
306
+ .text div.playlist-toggle-MI:hover { opacity:1.0; filter:alpha(opacity=100); }
307
+ .text div.dloadmp3-MI { font-size:11px; bottom: 6px; height:auto; right:0px !important; left:auto; margin:0; font-family: 'trebuchet ms', Arial, sans-serif; text-align:right; background:none !important; }
308
+ .text div.dloadmp3-MI a { color:#888; font-size:inherit; margin:0px !important; padding: 0px !important; background:none !important; text-decoration:none; }
309
+ .text div.dloadmp3-MI a:hover { color:#555; background:none !important; }
310
+ .text div.dloadmp3-MI.betweenlinks a { display:none; background:none !important; }
311
+ .text div.dloadmp3-MI.whilelinks a { display:block; background:none !important; }
312
+ .text div.dloadmp3-MI.whilelinks a:hover { text-decoration:none; background:none !important; }
313
+ .text div.dloadmp3-MI p { font-size: inherit; margin:0px !important; padding: 0px !important; background:none !important; text-decoration:none; }
314
+ .text div.mp3j-popout-MI { color:#888; font:normal normal 500 11px 'trebuchet ms', 'arial', sans-serif; bottom:15px; right:155px; left:auto; width:auto; opacity:1; filter:alpha(opacity=100); padding:0px; line-height:12px; border:0; background:none; cursor:default; z-index:500; }
315
+ .text div.mp3j-popout-MI:hover { color:#555; opacity:1.0; filter:alpha(opacity=100); }
316
+ .text div.MIsliderVolume { position:absolute; bottom:38px; top:auto; right:4px; width:108px !important; height:1px !important; background:transparent; border:0px; font-size:1px; cursor:default; z-index:150; }
317
+ .text div.MIsliderVolume .ui-slider-handle, .text div.vol_mp3j .ui-slider-handle { height:11px !important; width:10px !important; padding:0px !important; margin-left:-5px; top:-7px; border:0px !important; -moz-border-radius:2px; -webkit-border-radius:2px; background:transparent url('images/vol-handle.png') no-repeat -41px 0px; z-index:150; overflow:hidden !important; cursor:default; }
318
+ .text div.MIsliderVolume .ui-slider-handle:hover, .text div.vol_mp3j .ui-slider-handle:hover { background:transparent url('images/vol-handle.png') no-repeat -21px 0px; }
319
+ .text div.MIsliderVolume .ui-state-active, .text div.MIsliderVolume .ui-widget-content .ui-state-active, .text div.vol_mp3j .ui-state-active, .text div.vol_mp3j .ui-widget-content .ui-state-active { border:0px; background:transparent url('images/vol-handle.png') no-repeat -21px 0px; outline:none; }
320
+
321
+ .text div.dloadmp3-MI.whilelinks, .text div.dloadmp3-MI.logintext { background:none !important; }
322
+
323
+
324
+
325
+ /* ===== "noscreen" ===== */
326
+ .noscreen div.jp-interface { height:44px; min-height:44px; }
327
+ .noscreen div.player-track-title { display:none; }
328
+ .noscreen div.bars_holder { top:auto; bottom:0px; height:7px; }
329
+ .noscreen div.innertab { bottom: 0px; top:0; display:none; }
330
+ .noscreen div.dloadmp3-MI { bottom: 11px; }
331
+ .noscreen div.transport-MI { bottom:17px; }
332
+ .noscreen div.jp-play-time, .noscreen div.jp-total-time, .noscreen div.statusMI { bottom:25px; }
333
+ .noscreen div.playlist-toggle-MI { bottom: 12px; }
334
+ .noscreen div.mp3j-popout-MI { bottom: 20px; }
335
+ .noscreen div.MIsliderVolume { bottom: 43px; }
336
+ .noscreen div.MIsliderVolume .ui-widget-header { background:transparent url('images/vol-grad60b2.png') repeat-y 0px top; }
337
+ .noscreen div.MIsliderVolume .ui-slider-handle { top:-6px; }
338
+ .noscreen h2 { margin:0 !important; padding:0 0 0px 0 !important; }
339
+ .noscreen div.posbarMI_mp3j .ui-slider-handle { top:-5px; margin-left:-7px !important; border:0; bottom:-5px; width:14px !important; z-index:100; background:none; border:none; cursor:default ; padding:0px !important; }
340
+ .noscreen div.posbarMI_mp3j .ui-slider-handle:hover { background:none; border:none; }
341
+ .noscreen .MI-image { top:15px; }
342
+
343
+ /* ===== "nolistbutton" ===== */
344
+ .nolistbutton div.playlist-toggle-MI { visibility:hidden; }
345
+
346
+ /* ===== "nopopoutbutton" ===== */
347
+ .nopopoutbutton div.mp3j-popout-MI { display:none; }
348
+
349
+ /* ===== "nopn" ===== */
350
+ .nopn div.Prev_mp3j { display:none; }
351
+ .nopn div.Next_mp3j { display:none; }
352
+
353
+ /* ===== "nostop" ===== */
354
+ .nostop div.stop_mp3j { display:none; }
355
+
356
+ /* ===== "bars100" ===== */
357
+ .bars100 div.player-track-title { left:112px; }
358
+ .bars100 div.dloadmp3-MI { left:102px; width:36%;}
359
+ .bars100 div.bars_holder { left:102px; width:auto; }
360
+ .bars100 .MI-image img { padding:1px; }
361
+ .bars100 div.player-track-title { top:20px; }
362
+
363
+ /* ===== "bars150" ===== */
364
+ .bars150 div.player-track-title { left:162px; }
365
+ .bars150 div.dloadmp3-MI { left:152px; width:33%;}
366
+ .bars150 div.bars_holder { left:152px; width:auto; }
367
+ .bars150 .MI-image img { padding:1px; }
368
+ .bars150 div.player-track-title { top:20px; }
369
+
370
+ /* ===== "bars200" ===== */
371
+ .bars200 div.player-track-title { left:212px; }
372
+ .bars200 div.dloadmp3-MI { left:202px; width:30%; }
373
+ .bars200 div.bars_holder { left:202px; width:auto; }
374
+ .bars200 .MI-image img { padding:1px; }
375
+ .bars200 div.player-track-title { top:20px; }
376
+
377
+ /* ===== "bars250" ===== */
378
+ .bars250 div.player-track-title { left:262px; }
379
+ .bars250 div.dloadmp3-MI { left:252px; width:27%;}
380
+ .bars250 div.bars_holder { left:252px; width:auto; }
381
+ .bars250 .MI-image img { padding:1px; }
382
+ .bars250 div.player-track-title { top:20px; }
383
+
384
+ /* ===== "bars300" ===== */
385
+ .bars300 div.player-track-title { left:312px; }
386
+ .bars300 div.dloadmp3-MI { left:302px; width:24%; }
387
+ .bars300 div.bars_holder { left:302px; width:auto; }
388
+ .bars300 .MI-image img { padding:1px; }
389
+ .bars300 div.player-track-title { top:20px; }
390
+
391
+ /* ===== "bars350" ===== */
392
+ .bars350 div.player-track-title { left:362px; }
393
+ .bars350 div.dloadmp3-MI { left:352px; width:21%;}
394
+ .bars350 div.bars_holder { left:352px; width:auto; }
395
+ .bars350 .MI-image img { padding:1px; }
396
+ .bars350 div.player-track-title { top:20px; }
397
+
398
+ /* ===== "bars400" ===== */
399
+ .bars400 div.player-track-title { left:412px; }
400
+ .bars400 div.dloadmp3-MI { left:402px; width:18%; }
401
+ .bars400 div.bars_holder { left:402px; width:auto; }
402
+ .bars400 .MI-image img { padding:1px; }
403
+ .bars400 div.player-track-title { top:20px; }
404
+
405
+ /* ===== bigger1 ===== */
406
+ .bigger1 { font-size:18px; line-height:26px !important; margin:0 !important; }
407
+ .bigger1 span.load_mp3j,
408
+ .bigger1 span.loadB_mp3j { top:24px; left:0px; height:2px; }
409
+ .bigger1 span.posbar_mp3j .ui-slider-handle { top: 3px; height:24px; width:6px !important; margin-left:-3px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
410
+ .bigger1 span.posbarB_mp3j .ui-slider-handle { top: 3px; margin-left:-3px !important; border:1px solid #999; height:24px; width:6px !important; z-index:500; background:url('images/mp3t-poshandle.png') repeat-y -50px 0px; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
411
+ .bigger1 span.posbarB_mp3j .ui-slider-handle:hover { background:url('images/mp3t-poshandle.png') repeat-y 0px 0px; border-color:#aaa; }
412
+ .bigger1 span.buttons_mp3j { position:relative; margin:0px; margin-left:5px !important; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -80px 0px; }
413
+ .bigger1 span.buttons_mp3j:hover { background:transparent url('images/transport-shard-B.png') no-repeat -80px -32px; }
414
+ .bigger1 span.buttons_mp3jpause { position:relative; margin:0px; margin-left:5px !important; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -2px 0px; }
415
+ .bigger1 span.buttons_mp3jpause:hover { background:transparent url('images/transport-shard-B.png') no-repeat -2px -32px; }
416
+ .bigger1 span.vol_mp3j { position:absolute; top:-6px; right:7px; width:85%; max-width:100px; height:2px; }
417
+
418
+ .bigger1 div.player-track-title { font:normal normal 500 18px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
419
+ .bigger1 div.player-track-title span { font:normal normal 500 14px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
420
+ .bigger1 ul.UL-MI_mp3j li a, .bigger1 ul.UL-MI_mp3j li { font-size:16px !important; line-height:19px !important; }
421
+ .bigger1 .indi_mp3j { font-size: 0.6em !important; }
422
+
423
+ /* ===== "bigger2" ===== */
424
+ .bigger2 div.player-track-title { font:normal normal 500 36px/38px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
425
+ .bigger2 div.player-track-title span { font:normal normal 500 20px/22px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
426
+ .bigger2 ul.UL-MI_mp3j li a, .bigger2 ul.UL-MI_mp3j li { font-size:20px !important; line-height:24px !important; }
427
+ .bigger2 { font-size:23px; line-height:25px !important; margin:0 !important; }
428
+ .bigger2 span.load_mp3j,
429
+ .bigger2 span.loadB_mp3j { top:26px; left:0px; height:2px; }
430
+ .bigger2 span.posbar_mp3j .ui-slider-handle { top: 0px; height:28px; width:6px !important; margin-left:-3px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
431
+ .bigger2 span.posbarB_mp3j .ui-slider-handle { top: -1px; margin-left:-3px !important; border:1px solid #999; height:29px; width:8px !important; z-index:500; border-color:#aaa; background:url('images/mp3t-poshandle.png') repeat-y 0px 0px; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
432
+ .bigger2 span.posbarB_mp3j .ui-slider-handle:hover { background:url('images/mp3t-poshandle.png') repeat-y -50px 0px; border-color:#999; }
433
+ .bigger2 span.buttons_mp3j { padding:2px 0px 4px 20px !important; background:url('images/play-dark2-b.png') no-repeat -186px center; border:0px solid #bbb; margin-left:10px; }
434
+ .bigger2 span.buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -437px center; }
435
+ .bigger2 span.buttons_mp3jpause { padding:0px 0px 2px 20px !important; background:url('images/stop-dark2-b.png') repeat-y 0px top; border:0px solid #bbb; margin-left:10px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
436
+ .bigger2 span.buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
437
+ .bigger2 span.vol_mp3j { position:absolute; top:-12px; right:4px; width:85%; max-width:100px; height:2px; }
438
+ .bigger2 span.vol_mp3t { position:absolute; top:-10px; width:85%; max-width:100px; height:2px; }
439
+ .bigger2 .Smp3-finding,
440
+ .bigger2 .mp3-tint,
441
+ .bigger2 .mp3-gtint { margin-left:8px; margin-right:6px; padding:0px 0px 0px 10px !important; font-size:12px !important; line-height:12px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
442
+ .bigger2 .mp3-gtint { margin:0 6px 0 -16px; }
443
+ .bigger2 .indi_mp3j { font-size: 0.5em !important; padding-left:0px; }
444
+
445
+ /* ===== bigger3 ===== */
446
+ .bigger3 { font-size:28px; line-height:36px !important; margin:0 !important; }
447
+ .bigger3 .load_mp3j, .bigger3 .loadB_mp3j { top:37px; left:0px; height:3px; }
448
+ .bigger3 .posbar_mp3j .ui-slider-handle, .bigger3 .posbarB_mp3j .ui-slider-handle { top: 0px; border:1px solid #bbb; height:40px; width:12px !important; margin-left:-5px !important; background:url('images/stop-dark2-b.png') repeat-y -350px top; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
449
+ .bigger3 .posbar_mp3j .ui-slider-handle:hover, .bigger3 .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2-b.png') repeat-y 0px top; border:1px solid #aaa; }
450
+ .bigger3 .indi_mp3j { font-size: 0.5em !important; }
451
+ .bigger3 span.buttons_mp3j { padding:8px 0px 12px 30px !important; background:url('images/play-dark2-b.png') no-repeat -177px center; border:0px solid #bbb; margin-left:12px; }
452
+ .bigger3 span.buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -428px center; }
453
+ .bigger3 span.buttons_mp3jpause { padding:2px 0px 6px 30px !important; background:url('images/stop-dark2-b.png') repeat-y 0px top; border:0px solid #bbb; margin-left:12px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
454
+ .bigger3 span.buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
455
+ .bigger3 .vol_mp3j { height:1px; max-width:110px; right:64px; top:-8px; }
456
+ .bigger3 .vol_mp3t { height:1px; max-width:110px; right:16px; top:-5px; }
457
+ .bigger3 .vol_mp3j .ui-slider-handle, .bigger3 .vol_mp3t .ui-slider-handle { height:14px !important; width:33px !important; margin-left:-16px; border-bottom:1px solid #ccc !important; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; top:-14px; background:url('images/volhandle-dark2-b.png') no-repeat -10px bottom; }
458
+ .bigger3 .vol_mp3j .ui-slider-handle:hover, .bigger3 .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-b.png') no-repeat -257px bottom; }
459
+ .bigger3 .Smp3-finding,
460
+ .bigger3 .mp3-tint,
461
+ .bigger3 .mp3-gtint { margin-left:8px; padding:0px 0px 0px 14px !important; font-size:18px !important; line-height:20px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
462
+ .bigger3 .mp3-gtint { margin:0 2px 0 -14px; }
463
+ .bigger3 div.player-track-title { font:normal normal 500 44px/46px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
464
+ .bigger3 div.player-track-title span { font:normal normal 500 28px/30px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
465
+ .bigger3 ul.UL-MI_mp3j li a, .bigger3 ul.UL-MI_mp3j li { font-size:28px !important; line-height:30px !important; }
466
+
467
+
468
+ /* ===== bigger4 ===== */
469
+ .bigger4 { font-size:38px; line-height:46px !important; margin:0 !important; }
470
+ .bigger4 .load_mp3j, .bigger4 .loadB_mp3j { top:46px; left:0px; height:3px; }
471
+ .bigger4 .posbar_mp3j .ui-slider-handle, .bigger4 .posbarB_mp3j .ui-slider-handle { top: -2px; border:1px solid #bbb; height:52px; width:20px !important; margin-left:-10px !important; background:url('images/stop-dark2-b.png') repeat-y -350px top; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
472
+ .bigger4 .posbar_mp3j .ui-slider-handle:hover, .bigger4 .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2-b.png') repeat-y 0px top; border:1px solid #aaa; }
473
+ .bigger4 .indi_mp3j { font-size: 0.5em !important; }
474
+ .bigger4 span.buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:8px 0px 12px 40px !important; background:url('images/play-dark2-b.png') no-repeat -167px center; border:0px solid #bbb; margin-left:15px; }
475
+ .bigger4 span.buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -418px center; }
476
+ .bigger4 span.buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:2px 0px 4px 40px !important; background:url('images/stop-dark2-b.png') repeat-y 0px top; border:0px solid #bbb; margin-left:15px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
477
+ .bigger4 span.buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
478
+ .bigger4 .vol_mp3j { height:1px; max-width:110px; right:86px; top:-8px; }
479
+ .bigger4 .vol_mp3t { height:1px; max-width:110px; right:20px; top:-5px; }
480
+ .bigger4 .vol_mp3j .ui-slider-handle, .bigger4 .vol_mp3t .ui-slider-handle { height:20px !important; width:43px !important; margin-left:-21px; border-bottom:1px solid #ccc !important; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; top:-20px; background:url('images/volhandle-dark2-b.png') no-repeat -10px bottom; }
481
+ .bigger4 .vol_mp3j .ui-slider-handle:hover, .bigger4 .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-b.png') no-repeat -257px bottom; }
482
+ .bigger4 .Smp3-finding,
483
+ .bigger4 .mp3-tint,
484
+ .bigger4 .mp3-gtint { margin-left:8px; margin-right:6px; padding:0px 0px 0px 14px !important; font-size:18px !important; line-height:20px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
485
+ .bigger4 .mp3-gtint { margin:0 6px 0 -20px; }
486
+
487
+ .bigger4 div.player-track-title { font:normal normal 500 44px/46px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
488
+ .bigger4 div.player-track-title span { font:normal normal 500 28px/30px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
489
+ .bigger4 ul.UL-MI_mp3j li a, .bigger4 ul.UL-MI_mp3j li { font-size:28px !important; line-height:30px !important; }
490
+
491
+
492
+ /* ===== bigger5 ===== */
493
+ .bigger5 { font-size:48px; line-height:60px !important; margin:0 !important; }
494
+ .bigger5 .load_mp3j, .bigger5 .loadB_mp3j { top:63px; left:0px; height:4px; }
495
+ .bigger5 .posbar_mp3j .ui-slider-handle, .bigger5 .posbarB_mp3j .ui-slider-handle { top: -1px; border:1px solid #bbb; height:69px; width:20px !important; margin-left:-10px !important; background:url('images/stop-dark2-b.png') repeat-y -350px top; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
496
+ .bigger5 .posbar_mp3j .ui-slider-handle:hover, .bigger5 .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2-b.png') repeat-y 0px top; border:1px solid #aaa; }
497
+ .bigger5 .indi_mp3j { font-size: 0.5em !important; }
498
+ .bigger5 span.buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:8px 0px 13px 52px !important; background:url('images/play-dark2-b.png') no-repeat -154px center; border:0px solid #bbb; margin-left:20px; }
499
+ .bigger5 span.buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -405px center; }
500
+ .bigger5 span.buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:3px 0px 8px 52px !important; background:url('images/stop-dark2-b.png') repeat-y 0px top; border:0px solid #bbb; margin-left:15px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
501
+ .bigger5 span.buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
502
+ .bigger5 .vol_mp3j { height:1px; max-width:170px; right:115px; top:-10px; }
503
+ .bigger5 .vol_mp3t { height:1px; max-width:170px; right:33px; top:-5px; }
504
+ .bigger5 .vol_mp3j .ui-slider-handle, .bigger5 .vol_mp3t .ui-slider-handle { height:30px !important; width:55px !important; margin-left:-21px; border-bottom:1px solid #aaa !important; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; top:-30px; background:url('images/volhandle-dark2-b.png') no-repeat -10px bottom; }
505
+ .bigger5 .vol_mp3j .ui-slider-handle:hover, .bigger5 .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-b.png') no-repeat -257px bottom; }
506
+ .bigger5 .Smp3-finding,
507
+ .bigger5 .mp3-tint,
508
+ .bigger5 .mp3-gtint { margin-left:8px; margin-right:6px; padding:0px 0px 0px 14px !important; font-size:18px !important; line-height:20px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
509
+ .bigger5 .mp3-gtint { margin:0 6px 0 -20px; }
510
+
511
+ .bigger5.wh .posbar_mp3j .ui-slider-handle, .bigger5.wh .posbarB_mp3j .ui-slider-handle { background:url('images/stop-dark2-w.png') repeat-y -350px top; border:1px solid #888; }
512
+ .bigger5.wh .posbar_mp3j .ui-slider-handle:hover, .bigger5.wh .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2-w.png') repeat-y 0px top; border:1px solid #777; }
513
+ .bigger5.wh .buttons_mp3j { background:url('images/play-dark2-w.png') no-repeat -154px center; border:0px solid #bbb; margin-left:20px; }
514
+ .bigger5.wh .buttons_mp3j:hover { background:url('images/play-dark2-w.png') no-repeat -405px center; }
515
+ .bigger5.wh .buttons_mp3jpause { background:url('images/stop-dark2-w.png') repeat-y 0px top; }
516
+ .bigger5.wh .buttons_mp3jpause:hover { background:url('images/stop-dark2-w.png') repeat-y -350px top; }
517
+ .bigger5.wh .vol_mp3j .ui-slider-handle, .bigger5.wh .vol_mp3t .ui-slider-handle { background:url('images/volhandle-dark2-bw.png') no-repeat -10px bottom; }
518
+ .bigger5.wh .vol_mp3j .ui-slider-handle:hover, .bigger5.wh .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-w.png') no-repeat -257px bottom; }
519
+
520
+
521
+ /* ===== "smaller" ===== */
522
+ .smaller div.player-track-title { font:normal normal 500 11px/13px 'verdana', 'Lucida Grande', 'arial', sans-serif !important; left:5px; right:5px; }
523
+ .smaller div.player-track-title span { font:normal normal 500 10px/10px 'verdana', 'Lucida Grande', 'arial', sans-serif !important; padding:0; }
524
+ .smaller ul.UL-MI_mp3j li a, .smaller ul.UL-MI_mp3j li { font-size:10px !important; font-family:'verdana', Helvetica, sans-serif !important; line-height:13px !important; }
525
+
526
+
527
+ /* ===== outline ==== */
528
+ span.outline { font-size:14px; line-height:22px !important; margin:0 !important; }
529
+ .outline span.vol_mp3t { position:absolute; top:-4px; right:4px; width:90%; max-width:100px; height:2px; background: transparent; }
530
+ .outline span.vol_mp3j { position:absolute; top:-9px; right:7px; width:85%; max-width:100px; height:2px; background: transparent; }
531
+ .outline span.buttons_mp3j { padding:2px 0px 3px 20px; background: transparent url('images/transport-outline.png') no-repeat -80px -2px; border:0; margin:0; }
532
+ .outline span.buttons_mp3j:hover { background:transparent url('images/transport-outline.png') no-repeat -80px -34px; }
533
+ .outline span.buttons_mp3jpause { padding:2px 0px 3px 20px; background: transparent url('images/transport-outline.png') no-repeat 1px -2px; border:0; margin:0; }
534
+ .outline span.buttons_mp3jpause:hover { background:transparent url('images/transport-outline.png') no-repeat 1px -34px; }
535
+ .outline span.posbarB_mp3j { position:absolute; width:100%; height:100%; border:0px solid #f77; }
536
+ .outline span.posbarB_mp3j .ui-widget-header { z-index:-500; }
537
+ .outline span.posbarB_mp3j .ui-slider-handle { top: 0px; margin-left:0px; border:1px solid #aaa; height:23px; width:5px !important; z-index:500; background:url('images/t10b.png') repeat; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
538
+ .outline span.posbarB_mp3j .ui-slider-handle:hover { background:url('images/t20b.png') repeat; border-color:#777; }
539
+ .outline div.transport-MI div { background-image: url("images/transport-hardK.png"); }
540
+ .outline div.mp3j-popout-MI { background-image:url('images/buttons-popoutF.png'); }
541
+ .silver.outline div.transport-MI div { background-image: url("images/transport-hardZ.png"); }
542
+ .silver.outline div.mp3j-popout-MI { background-image:url('images/buttons-popoutF.png'); }
543
+
544
+ /* ===== wtransbars ==== */
545
+ .wtransbars div.loadMI_mp3j { background:#fff; opacity:0.1; filter:alpha(opacity=10); }
546
+ .wtransbars div.poscolMI_mp3j { background:#fff url('images/posbar-soften-tipped-2.png') repeat-y right top; opacity:0.15; filter:alpha(opacity=15); }
547
+ .wtransbars div.player-track-title { color:#fff; }
548
+
549
+ /* ===== btransbars ==== */
550
+ .btransbars div.loadMI_mp3j { background:#000; opacity:0.1; filter:alpha(opacity=10); }
551
+ .btransbars div.poscolMI_mp3j { background:#000 url('images/posbar-soften-tipped-2.png') repeat-y right top; opacity:0.15; filter:alpha(opacity=15); }
552
+ .btransbars div.player-track-title { color:#000; }
553
+
554
+
555
+
css/players-1-8-silver.css CHANGED
@@ -1,595 +1,595 @@
1
- /*
2
- MP3-jPlayer 1.8.1 - Silver
3
- www.sjward.org */
4
-
5
- /*---------------------
6
- [mp3-jplayer] SHORTCODE
7
- ==================================== */
8
-
9
- /* SKIN
10
- --------------- */
11
- /* MAIN WRAPPER (default class) */
12
- div.wrap-MI { border:0; margin:0; background:none; min-width:116px; /* position||float set in-line! */ /* width set in-line! */ }
13
-
14
- /* SUB WRAPPERS */
15
- div.jp-innerwrap, div.jp-interface, div.listwrap_mp3j, div.playlist-wrap-MI { position:relative !important; width:100%; border:0; margin:0; padding:0; }
16
- div.jp-innerwrap { background:none; }
17
- div.jp-interface { background:url('images/shadow-x.png') repeat-x left bottom; height:101px/*player default height*/; min-height:67px; cursor:default; }
18
- div.listwrap_mp3j { margin-top:0px; /* background set from admin */ }
19
-
20
- /* BACKGROUNDS */
21
- div.innerx, div.innerleft, div.innerright, div.innertab { position:absolute; }
22
- div.innerx { background:url('images/case-grad-x.png') repeat-x left -45px; width:auto; height:35px; left:0px; right:0px; bottom:3px; }
23
- div.innerleft { background:url('images/shadow-l.png') no-repeat left bottom; width:1px; height:40px; left:-1px; bottom:0px; }
24
- div.innerright { background:url('images/shadow-r.png') no-repeat right bottom; width:2px; height:40px; right:-2px; bottom:0px; }
25
- div.innertab { /* background and opacity set from admin */ left:0px; top:0px; width:100%; bottom:38px; }
26
-
27
- /* PLAYLIST
28
- ----------------- */
29
- div.playlist-colour { position:absolute; width:100%; height:100%; left:0px; top:0px; /* background set from admin */ /* opacity set from admin */ }
30
- div.playlist-wrap-MI ul { position:static; }
31
- ul.UL-MI_mp3j { margin:0px !important; padding:0px 0px 0px 0px !important; list-style-type:none !important; list-style:none !important; list-style-image:none !important; font-weight: 500 !important; /* background set from admin */ }
32
- ul.UL-MI_mp3j li { margin:0px !important; padding:0px 0px 1px 0px !important; font-weight:500 !important; line-height:15px !important; letter-spacing:0px !important; font-size:11px !important; word-spacing:0px !important; margin:0px 1px 0px 1px !important; list-style-type:none !important; }
33
- ul.UL-MI_mp3j li:before { content:none !important; }
34
- ul.UL-MI_mp3j li a { font-size:11px !important; border:0 !important; line-height:15px !important; font-weight:500 !important; text-decoration:none !important; display:block !important; width:auto !important; font-family:'verdana', 'Lucida Grande', 'arial', sans-serif !important; outline:none !important; padding:6px 0px 6px 14px !important; }
35
-
36
-
37
- /* SCREEN
38
- ----------------- */
39
- div.player-track-title, div.jp-play-time, div.jp-total-time, div.statusMI { position:absolute; z-index:50; /* color set from admin */ font:normal normal 500 14px/16px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
40
-
41
- div.player-track-title { top:7px; left:9px; width:auto; right:10px; }
42
- div.player-track-title span { font-size:10px; line-height:12px; padding-left:10px; max-width:95%; }
43
-
44
- div.jp-play-time, div.jp-total-time, div.statusMI { font-size:8px; line-height:10px !important; bottom:42px; text-align:left; font-family:Verdana, Arial, Helvetica, sans-serif; }
45
- div.jp-play-time { right:84px; }
46
- div.jp-total-time { right:6px; opacity:0.8; width:auto; }
47
-
48
- span.mp3-finding, span.Smp3-finding, span.mp3-tint, span.mp3-gtint { padding:0px 0px 0px 6px !important; font-size:8px !important; line-height:10px !important; height:10px !important; overflow:hidden !important; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; }
49
- span.mp3-finding, span.Smp3-finding { margin:0px 0px 0px -2px; background:url('images/finding-bar1f.gif') repeat 0px 3px; }
50
- span.mp3-tint { margin:0px 2px 0px -6px; opacity:.5; filter:alpha(opacity=50); /* background set from admin */ }
51
- span.mp3-gtint { margin:0px 2px 0px -6px; opacity:.5; filter:alpha(opacity=50); background:#777; }
52
- span.Smp3-finding { margin:0px 0px 0px 3px; }
53
- span.tintmarg { margin:0 2px 0 3px; }
54
-
55
- div.statusMI { right:27px; width:52px !important; height:10px; }
56
- .statusMI span.mp3-finding, .statusMI span.Smp3-finding, .statusMI span.mp3-tint, .statusMI span.mp3-gtint { padding:0px 0px 0px 6px !important; }
57
- .statusMI span.mp3-tint, .statusMI span.mp3-gtint { margin:0px 2px 0px -6px; }
58
-
59
- .MI-image { position:absolute; top:0; left:0; padding:0; }
60
- .MI-image img { border:none; padding:0px; background-color:#bbb; }
61
- .MI-image a:hover img { /* background-colour set from admin */ }
62
-
63
-
64
- /* BUTTONS
65
- ----------------- */
66
- /* TRANSPORT BUTTONS */
67
- div.transport-MI { position:absolute; width:auto; height:37px; right:2px; bottom:0px; border:0; }
68
- div.transport-MI div { background-image: url("images/transport-hardW-shiny.png"); text-indent:-9999px !important; float:right; }
69
- /* play */
70
- div.buttons_mp3j { width:30px; height:32px; margin:1px 0px 0px 0px; background-position:-110px 0px; }
71
- div.buttons_mp3j:hover { background-position:-110px -32px; }
72
- /* pause */
73
- div.buttons_mp3jpause { width:30px; height:32px; margin:1px 0px 0px 0px; background-position:-2px 0px; }
74
- div.buttons_mp3jpause:hover { background-position:-2px -32px; }
75
- /* prev n next */
76
- div.Prev_mp3j { width:22px; height:28px; margin:1px 4px 0px 0px; background-position:-32px -1px; }
77
- div.Prev_mp3j:hover { background-position:-32px -33px; }
78
- div.Next_mp3j { width:19px; height:28px; margin:1px 3px 0px 0px; background-position:-57px -1px; }
79
- div.Next_mp3j:hover { background-position:-57px -33px; }
80
- /* stop */
81
- div.stop_mp3j { width:26px; height:32px; margin:1px 3px 0px 0px; background-position:-81px 0px; }
82
- div.stop_mp3j:hover { background-position:-81px -32px; }
83
-
84
- /* PLAYLIST TOGGLE */
85
- div.playlist-toggle-MI { position:absolute; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif; bottom:4px; left:1px; color:#707070; padding:2px 6px 2px 5px; line-height:9px; min-width:24px; background:#bcbcbc; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; cursor:default; }
86
- div.playlist-toggle-MI:hover { background:#c6c6c6; color:#777; }
87
-
88
- /* DOWNLOAD BUTTON */
89
- div.dloadmp3-MI { position:absolute; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif !important; bottom:39px; margin:0px !important; font-size:9px !important; text-align:center; left:0px; width:41%; min-width:75px; max-width:425px; padding:0px 0px 0px 0px !important; border:0px; background:transparent url('images/t10b.png') repeat left top !important; color:#fff; line-height:11px !important; -moz-border-radius-topright:3px; -webkit-border-top-right-radius:3px; overflow:hidden; z-index:150; cursor:default; }
90
- div.dloadmp3-MI.whilelinks, div.dloadmp3-MI.logintext { background:transparent url('images/t50b.png') repeat left top !important; }
91
- div.dloadmp3-MI.whilelinks:hover { background:transparent url('images/t40b.png') repeat left top !important; }
92
- div.dloadmp3-MI a { color:#ececec; display:block; width:auto; padding:1px 5px 2px 2px !important; margin:0px !important; background:transparent; text-decoration:none !important; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif !important; font-size:9px !important; line-height:11px !important; height:100%; border-bottom:none; visibility:hidden; }
93
- div.dloadmp3-MI a:hover { outline: none; border-bottom: none; color: #ececec; }
94
- div.dloadmp3-MI.whilelinks a { color: #f3f3f3; visibility: inherit; }
95
- div.dloadmp3-MI.whilelinks a:hover { color: #fff; }
96
- div.dloadmp3-MI p { color:#ececec; display:block; width:auto; padding:1px 5px 2px 2px !important; margin:0px !important; background:transparent; text-decoration:none !important; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif !important; font-size:9px !important; line-height:11px !important; height:100%; border-bottom:none; visibility:visible; }
97
-
98
- /* POPOUT BUTTON */
99
- div.mp3j-popout-MI { position:absolute; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif; bottom:17px; left:0px; height:16px; color:#6c6c6c; padding:3px 5px 0px 28px; min-width:2px; line-height:11px; border:1px solid #b2b2b2; background-color:#aaa; background-image:url('images/buttons-popoutE.png'); background-repeat:no-repeat; background-position:-8px -65px; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; cursor:default; }
100
- div.mp3j-popout-MI:hover { color:#606060; background-position:-8px -95px; }
101
-
102
- /* BARS
103
- ----------------- */
104
- .ui-state-disabled { cursor:default !important; }
105
- .ui-slider { position:relative; text-align:left; }
106
- .ui-slider .ui-slider-handle { position:absolute; z-index:200; cursor:default; }
107
- .ui-slider .ui-slider-range { position:absolute; z-index:1; font-size:.7em; display:block; border:0; }
108
- .ui-slider-horizontal .ui-slider-range { top:0; height:100%; }
109
- .ui-slider-horizontal .ui-slider-range-min { left:0; }
110
- .ui-slider-horizontal .ui-slider-range-max { right:0; }
111
- .ui-state-default, .ui-widget-content .ui-state-default { outline:none; border:0px; }
112
-
113
- /* VOLUME */
114
- div.MIsliderVolume { position:absolute; top:0px; right:4px; width:108px; height:4px !important; background:transparent; border:0px; font-size:1px; cursor:default; z-index:150; }
115
- div.MIsliderVolume .ui-widget-header { /* background set from admin */ }
116
- div.MIsliderVolume .ui-slider-handle { border:0px; height:11px !important; width:10px !important; padding:0px !important; margin-left:-5px; top:-3px; border:0px !important; -moz-border-radius:2px; -webkit-border-radius:2px; background:transparent url('images/vol-handle.png') no-repeat -1px 0px; z-index:150; overflow:hidden !important; cursor:default; }
117
- div.MIsliderVolume .ui-slider-handle:hover { background:transparent url('images/vol-handle.png') no-repeat -21px 0px; }
118
- div.MIsliderVolume .ui-state-active, div.MIsliderVolume .ui-widget-content .ui-state-active { border:0px; background:transparent url('images/vol-handle.png') no-repeat -21px 0px; outline:none; }
119
-
120
- /* LOADER AND POS SLIDER */
121
- div.bars_holder, div.loadMI_mp3j, div.poscolMI_mp3j, div.posbarMI_mp3j { position:absolute; top:0px; left:0px; }
122
- div.bars_holder { right:0; width:100%; bottom:38px; font-size:1px; cursor:default; background:transparent url('images/t60w.png') repeat-x left bottom;/* 1px highlight top of control bar */ }
123
- div.loadMI_mp3j { bottom:1px; /* background set from admin */ /* opacity set from admin */ }
124
- div.poscolMI_mp3j { bottom:1px; /* background set from admin */ /* opacity set from admin */ }
125
- div.bars_holder .ui-widget-header, div.bars_holder .ui-widget-content { border:0px !important; background:none; }
126
- div.bars_holder .ui-slider-horizontal { top:0px; bottom:1px; height:auto; z-index:90; }
127
- div.posbarMI_mp3j { bottom:1px; width:100%; }
128
- div.posbarMI_mp3j .ui-slider-handle { top:-6px; margin-left:-1px !important; border:0; bottom:-2px; width:2px !important; z-index:100; background:none; cursor:default ; padding:0px !important; }
129
- div.posbarMI_mp3j .ui-slider-handle:hover { background:none; z-index:100; }
130
-
131
-
132
- /* FORCED DOWNLOAD FRAME
133
- ------------------------ */
134
-
135
- div.mp3j-dlframe, iframe.mp3j-dlframe {
136
- border:0px solid #ddd;
137
- width:1px;
138
- height:1px;
139
- overflow:hidden;
140
- margin:0;
141
- padding:0;
142
- display:none !important;
143
- }
144
-
145
- /* MESSAGES */
146
- div.mp3j-finfo {
147
- position:absolute;
148
- top:36px;
149
- z-index:9999 !important;
150
- width:80%;
151
- left:10%;
152
- -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px;
153
- background:url('images/fdloadW-x.png') repeat-x left top;
154
- -webkit-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); -moz-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35);
155
- padding:0;
156
- min-height:31px;
157
- overflow:hidden;
158
- min-width:170px;
159
- }
160
-
161
- div.mp3j-finfo * { font-family:Arial, Helvetica, sans-serif !important; }
162
- div.mp3j-finfo-sleeve { position:relative !important; width:100%; height:100%; }
163
- div.mp3j-finfo-gif { position:absolute !important; top:0; left:0; right:10%; bottom:0; background:url('images/loader.gif') no-repeat center 37px; width:auto; padding:0px; height:100%; }
164
- div.mp3j-finfo-txt { position:relative !important; margin:0px 15px 0 15px !important; padding:10px 0 10px 0 !important; width:auto; }
165
- div.mp3j-finfo-close { position:absolute !important; width:31px !important; height:27px !important; padding-top:5px !important; right:0 !important; top:0 !important; text-align:center !important; font-weight:700 !important; font-size:18px !important; line-height:22px !important; color:#aaa !important; border-bottom:1px solid #ccc !important; border-left:1px solid #ccc !important; background:url('images/t40w.png') repeat left top !important; }
166
- div.mp3j-finfo-close:hover { color:#888 !important; }
167
-
168
- div.mp3j-finfo-txt h2 { font-size:15px !important; color:#333 !important; margin:0 0 10px 0 !important; }
169
- div.mp3j-finfo-txt h3 { font-size:14px !important; color:#333 !important; margin:0 0 15px 0 !important; }
170
- div.mp3j-finfo-txt p { font-size:11px !important; color:#555 !important; line-height:13px !important; margin:0 0 5px 0; }
171
- div.mp3j-finfo-txt a { }
172
-
173
-
174
- /* backwards compat
175
- ------------------- */
176
- div.player-track-title.mp3j_widgetmods { font-size: 11px; top: 7px; left:5px; }
177
- div.player-track-title.mp3j_widgetmods span { font-size: 9px; }
178
- ul.UL-MI_mp3j.mp3j_widgetmods li { font-size:10px !important; line-height:14px !important; }
179
- ul.UL-MI_mp3j.mp3j_widgetmods li a { font-size:10px !important; line-height:14px !important; }
180
-
181
-
182
-
183
-
184
-
185
- .mp3j-nosolution
186
- {
187
- position:absolute;
188
- z-index:9999;
189
- height:auto;
190
- padding:5%;
191
- border:1px solid #c0c0c0;
192
- background:#f0f0f0;
193
- color:#333;
194
- top:4px;
195
- left:4px;
196
- right:4px;
197
- -webkit-border-top-left-radius: 8px;
198
- -webkit-border-top-right-radius: 8px;
199
- -moz-border-radius-topleft: 8px;
200
- -moz-border-radius-topright: 8px;
201
- border-top-left-radius: 8px;
202
- border-top-right-radius: 8px;
203
- font-size:13px;
204
- -webkit-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); -moz-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35);
205
- }
206
-
207
- .s-nosolution
208
- {
209
- }
210
-
211
-
212
-
213
-
214
-
215
- /*-------------------------
216
- [mp3j] & [mp3t] SHORTCODES
217
- ==================================== */
218
- span.wrap_inline_mp3j { position:relative; width:auto; cursor:pointer; padding:0; white-space:nowrap; text-align:left; }
219
- /*span.wrap_inline_mp3j:hover .buttons_mp3j { background:transparent url('images/transport-shard-B.png') no-repeat -80px -35px; }*/
220
- span.indi_mp3j { position:relative; padding-left:2px; font-size: 0.7em !important; }
221
-
222
- /* BARS */
223
- span.bars_mp3j { position:absolute; width:100%; height:100%; }
224
- span.load_mp3j, span.loadB_mp3j { position:absolute; /* background set from admin */ top:20px; left:0px; height:2px; }
225
- /* mp3t */
226
- span.posbar_mp3j { position:absolute; width:100%; height:100%; border:0px solid #f77; }
227
- span.posbar_mp3j .ui-widget-header { z-index:-500; }
228
- span.posbar_mp3j .ui-slider-handle { top: 2px; margin-left:-2px; border:1px solid #999; height:21px; width:4px; z-index:500; background:url('images/mp3t-poshandle.png') repeat-y -50px 0px; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
229
- span.posbar_mp3j .ui-slider-handle:hover { background:url('images/mp3t-poshandle.png') repeat-y -0px 0px; border-color:#aaa; }
230
-
231
- /* mp3j */
232
- span.posbarB_mp3j { position:absolute; width:100%; height:100%; border:0; z-index:450; cursor:pointer; }
233
- span.posbarB_mp3j .ui-widget-header { background:transparent; z-index:450; height:100%; }
234
- span.posbarB_mp3j .ui-slider-handle { top: 0px; margin-left:-6px !important; border:0px solid #888; height:23px; width:12px !important; z-index: 500; background: transparent url('images/inlineHandle2.png') no-repeat -3px -3px; cursor: default; padding:0px !important; }
235
- span.posbarB_mp3j .ui-slider-handle:hover { background: transparent url('images/inlineHandle2.png') no-repeat -3px -33px; }
236
-
237
- /* SPAN TRANSPORT */
238
- span.group_wrap { position:relative; margin:0px 0px 0px 0px; width:auto; }
239
- span.textbutton_mp3j, span.T_mp3j { position:relative; width:auto; margin:0px; padding:0px !important; }
240
- span.buttons_mp3j { position:relative; margin:0px; padding:2px 0px 3px 20px !important; background: transparent url('images/transport-shard-B.png') no-repeat -80px -3px; }
241
- span.buttons_mp3j:hover { background:transparent url('images/transport-shard-B.png') no-repeat -80px -35px; }
242
- span.buttons_mp3jpause { position:relative; margin:0px; padding:2px 0px 3px 20px !important; background: transparent url('images/transport-shard-B.png') no-repeat -2px -3px; }
243
- span.buttons_mp3jpause:hover { background:transparent url('images/transport-shard-B.png') no-repeat -2px -35px; }
244
-
245
- /* VOLUMES */
246
- span.vol_mp3t { position:absolute; top:-4px; right:4px; width:90%; max-width:100px; height:2px; }
247
- span.vol_mp3j { position:absolute; top:-9px; right:6px; width:85%; max-width:100px; height:2px; }
248
- span.vol_mp3j.flipped { right:4px; }
249
- span.vol_mp3t .ui-widget-header, span.vol_mp3j .ui-widget-header { background: transparent url('images/vol-grad60b2.png') repeat left top; z-index:500; height:100%; }
250
- span.vol_mp3t .ui-slider-handle, span.vol_mp3j .ui-slider-handle { height:11px !important; width:10px !important; padding:0px !important; margin-left:-5px; border:0px !important; border-radius:2px; -moz-border-radius:2px; -webkit-border-radius:2px; z-index:600; overflow:hidden !important; cursor:default; top:-6px; background: transparent url('images/vol-handle.png') no-repeat -1px 0px; }
251
- span.vol_mp3t .ui-slider-handle:hover, span.vol_mp3j .ui-slider-handle:hover { background: transparent url('images/vol-handle.png') no-repeat -21px 0px; }
252
- span.vol_mp3t .ui-state-active, span.vol_mp3t .ui-widget-content .ui-state-active, span.vol_mp3j .ui-state-active, span.vol_mp3j .ui-widget-content .ui-state-active { background:transparent url('images/vol-handle.png') no-repeat -21px 0px; outline:none; border:0px; }
253
-
254
-
255
-
256
- /*----------------------
257
- [mp3j-popout] SHORTCODE
258
- ================================================= */
259
- .mp3j-popout-link-wrap { cursor:pointer; position:relative; clear:left; }
260
- .mp3j-popout-link { float:left; margin:0 5px 0 0; min-width:22px; min-height:18px; background:url('images/buttons-popout.png') no-repeat -10px -65px; }
261
- .mp3j-popout-link-wrap:hover .mp3j-popout-link { background:url('images/buttons-popout.png') no-repeat -10px -95px; }
262
-
263
-
264
-
265
- /*=================================================
266
-
267
- MODS
268
- (via 'style' param in shortcode)
269
- ================================================= */
270
-
271
- /* ===== "dark" ===== */
272
- .dark .innerx { background-position:left -119px; }
273
- .dark .transport-MI { height:38px; }
274
- .dark .transport-MI div { background-image:url("images/transport-darkbg-trans2.png"); }
275
- .dark .bars_holder { background:url('images/t40b.png') repeat-x left bottom; }
276
- .dark .mp3j-popout-MI { color:#a2a2a2; background-position:-8px -6px; border-color:#585858; background-color:#aaa; }
277
- .dark .mp3j-popout-MI:hover { color:#aaa; background-position:-8px -36px; }
278
- .dark div.playlist-toggle-MI { background:#505050; color:#a2a2a2; }
279
- .dark div.playlist-toggle-MI:hover { background:#585858; color:#aaa; }
280
- .dark .MI-image img { background-color:#777; }
281
-
282
- .dark div.mp3j-finfo { background:url('images/fdloadB-x.png') repeat-x left top; }
283
- .dark div.mp3j-finfo-gif { background:url('images/loader-w2.gif') no-repeat center 37px; }
284
- .dark div.mp3j-finfo-close { color:#999 !important; border-bottom:1px solid #777 !important; border-left:1px solid #777 !important; background:url('images/t40b.png') repeat left top !important; }
285
- .dark div.mp3j-finfo-close:hover { color:#eee !important; }
286
- .dark div.mp3j-finfo-txt h2 { color:#fff !important; }
287
- .dark div.mp3j-finfo-txt h3 { color:#fff !important; }
288
- .dark div.mp3j-finfo-txt p { color:#fff !important; }
289
-
290
-
291
- /* ===== "text" ===== */
292
- div.wrap-MI.text { /*min-width:300px;*/ }
293
- .text div.innerx, .text div.innerleft, .text div.innerright { position: absolute; visibility: hidden; }
294
- .text div.innertab { bottom: 38px; }
295
- .text div.jp-interface { background:none; }
296
- .text div.player-track-title { font:normal normal 500 16px/18px 'trebuchet ms', Arial, sans-serif; }
297
- .text div.player-track-title span { font:italic normal 500 12px/14px 'trebuchet ms', Arial, sans-serif; opacity:0.7; filter:alpha(opacity=70); }
298
- .text div.jp-play-time, .text div.jp-total-time, .text div.statusMI { bottom:20px; font-size:11px; font-family: 'trebuchet ms', Arial, sans-serif; }
299
- .text div.jp-play-time { width:37px; left:0px; opacity:0.6; filter:alpha(opacity=60); }
300
- .text div.jp-total-time { width:37px; left:100px; display:none; }
301
- .text div.statusMI { left:37px; width:70px !important; }
302
- .text div.transport-MI { height:26px; right:2px; bottom:12px; }
303
- .text div.transport-MI div { font-family: 'trebuchet ms', Arial, sans-serif; font-weight:700; overflow:hidden !important; background:none !important; white-space:nowrap !important; }
304
- .text div.buttons_mp3j { text-indent:4px !important; width:32px; overflow:hidden !important; height: 25px; margin:0 6px 0 0px; background:none !important; line-height:25px !important; font-size:14px; }
305
- .text div.buttons_mp3jpause { text-indent:-29px !important; width:38px; overflow:hidden !important; height: 25px; margin:0 -3px 0 3px; background:none !important; line-height:25px !important; font-size:14px; }
306
- .text div.Prev_mp3j, .text div.Next_mp3j { text-indent:0px !important; height:23px; line-height:23px !important; font-size:12px; width:36px; margin:2px 0px 0px 0px; }
307
- .text div.stop_mp3j { text-indent:0px !important; width:31px; height:25px; margin:0px 0px 0px 4px; line-height:25px !important; font-size:14px; }
308
- .text div.playlist-toggle-MI { bottom: 7px; font-family:'trebuchet ms', Arial, sans-serif; background:none; padding:0; opacity:0.6; filter:alpha(opacity=60); }
309
- .text div.playlist-toggle-MI:hover { opacity:1.0; filter:alpha(opacity=100); }
310
- .text div.dloadmp3-MI { font-size:11px; bottom: 6px; height:auto; right:0px !important; left:auto; margin:0; font-family: 'trebuchet ms', Arial, sans-serif; text-align:right; background:none !important; }
311
- .text div.dloadmp3-MI a { color:#888; font-size:inherit; margin:0px !important; padding: 0px !important; background:none !important; text-decoration:none; }
312
- .text div.dloadmp3-MI a:hover { color:#555; background:none !important; }
313
- .text div.dloadmp3-MI.betweenlinks a { display:none; background:none !important; }
314
- .text div.dloadmp3-MI.whilelinks a { display:block; background:none !important; }
315
- .text div.dloadmp3-MI.whilelinks a:hover { text-decoration:none; background:none !important; }
316
- .text div.dloadmp3-MI p { font-size: inherit; margin:0px !important; padding: 0px !important; background:none !important; text-decoration:none; }
317
- .text div.mp3j-popout-MI { color:#888; font:normal normal 500 11px 'trebuchet ms', 'arial', sans-serif; bottom:15px; right:155px; left:auto; width:auto; opacity:1; filter:alpha(opacity=100); padding:0px; line-height:12px; border:0; background:none; cursor:default; z-index:500; }
318
- .text div.mp3j-popout-MI:hover { color:#555; opacity:1.0; filter:alpha(opacity=100); }
319
- .text div.MIsliderVolume { position:absolute; bottom:38px; top:auto; right:4px; width:108px !important; height:1px !important; background:transparent; border:0px; font-size:1px; cursor:default; z-index:150; }
320
- .text div.MIsliderVolume .ui-slider-handle, .text div.vol_mp3j .ui-slider-handle { height:11px !important; width:10px !important; padding:0px !important; margin-left:-5px; top:-7px; border:0px !important; -moz-border-radius:2px; -webkit-border-radius:2px; background:transparent url('images/vol-handle.png') no-repeat -41px 0px; z-index:150; overflow:hidden !important; cursor:default; }
321
- .text div.MIsliderVolume .ui-slider-handle:hover, .text div.vol_mp3j .ui-slider-handle:hover { background:transparent url('images/vol-handle.png') no-repeat -21px 0px; }
322
- .text div.MIsliderVolume .ui-state-active, .text div.MIsliderVolume .ui-widget-content .ui-state-active, .text div.vol_mp3j .ui-state-active, .text div.vol_mp3j .ui-widget-content .ui-state-active { border:0px; background:transparent url('images/vol-handle.png') no-repeat -21px 0px; outline:none; }
323
- .text div.dloadmp3-MI.whilelinks, .text div.dloadmp3-MI.logintext { background:none !important; }
324
-
325
-
326
- /* ===== "noscreen" ===== */
327
- .noscreen div.jp-interface { height:44px; min-height:44px; }
328
- .noscreen div.player-track-title { display:none; }
329
- .noscreen div.bars_holder { top:auto; bottom:0px; height:7px; }
330
- .noscreen div.innertab { bottom: 0px; top:0; display:none; }
331
- .noscreen div.dloadmp3-MI { bottom: 11px; }
332
- .noscreen div.transport-MI { bottom:17px; }
333
- .noscreen div.jp-play-time, .noscreen div.jp-total-time, .noscreen div.statusMI { bottom:25px; }
334
- .noscreen div.playlist-toggle-MI { bottom: 12px; }
335
- .noscreen div.mp3j-popout-MI { bottom: 20px; }
336
- .noscreen div.MIsliderVolume { bottom: 43px; }
337
- .noscreen div.MIsliderVolume .ui-widget-header { background:transparent url('images/vol-grad60b2.png') repeat-y 0px top; }
338
- .noscreen div.MIsliderVolume .ui-slider-handle { top:-6px; }
339
- .noscreen h2 { margin:0 !important; padding:0 0 0px 0 !important; }
340
- .noscreen div.posbarMI_mp3j .ui-slider-handle { top:-5px; margin-left:-7px !important; border:0; bottom:-5px; width:14px !important; z-index:100; background:none; border:none; cursor:default ; padding:0px !important; }
341
- .noscreen div.posbarMI_mp3j .ui-slider-handle:hover { background:none; border:none; }
342
- .noscreen .MI-image { top:15px; }
343
-
344
-
345
- /* ===== "nolistbutton" ===== */
346
- .nolistbutton div.playlist-toggle-MI { visibility:hidden; }
347
-
348
- /* ===== "nopopoutbutton" ===== */
349
- .nopopoutbutton div.mp3j-popout-MI { display:none; }
350
-
351
- /* ===== "nopn" ===== */
352
- .nopn div.Prev_mp3j { display:none; }
353
- .nopn div.Next_mp3j { display:none; }
354
-
355
- /* ===== "nostop" ===== */
356
- .nostop div.stop_mp3j { display:none; }
357
-
358
-
359
- /* ===== "bars100" ===== */
360
- .bars100 div.player-track-title { left:112px; }
361
- .bars100 div.dloadmp3-MI { left:102px; width:36%;}
362
- .bars100 div.bars_holder { left:102px; width:auto; }
363
- .bars100 .MI-image img { padding:1px; }
364
- .bars100 div.player-track-title { top:20px; }
365
-
366
- /* ===== "bars150" ===== */
367
- .bars150 div.player-track-title { left:162px; }
368
- .bars150 div.dloadmp3-MI { left:152px; width:33%;}
369
- .bars150 div.bars_holder { left:152px; width:auto; }
370
- .bars150 .MI-image img { padding:1px; }
371
- .bars150 div.player-track-title { top:20px; }
372
-
373
- /* ===== "bars200" ===== */
374
- .bars200 div.player-track-title { left:212px; }
375
- .bars200 div.dloadmp3-MI { left:202px; width:30%; }
376
- .bars200 div.bars_holder { left:202px; width:auto; }
377
- .bars200 .MI-image img { padding:1px; }
378
- .bars200 div.player-track-title { top:20px; }
379
-
380
- /* ===== "bars250" ===== */
381
- .bars250 div.player-track-title { left:262px; }
382
- .bars250 div.dloadmp3-MI { left:252px; width:27%;}
383
- .bars250 div.bars_holder { left:252px; width:auto; }
384
- .bars250 .MI-image img { padding:1px; }
385
- .bars250 div.player-track-title { top:20px; }
386
-
387
- /* ===== "bars300" ===== */
388
- .bars300 div.player-track-title { left:312px; }
389
- .bars300 div.dloadmp3-MI { left:302px; width:24%; }
390
- .bars300 div.bars_holder { left:302px; width:auto; }
391
- .bars300 .MI-image img { padding:1px; }
392
- .bars300 div.player-track-title { top:20px; }
393
-
394
- /* ===== "bars350" ===== */
395
- .bars350 div.player-track-title { left:362px; }
396
- .bars350 div.dloadmp3-MI { left:352px; width:21%;}
397
- .bars350 div.bars_holder { left:352px; width:auto; }
398
- .bars350 .MI-image img { padding:1px; }
399
- .bars350 div.player-track-title { top:20px; }
400
-
401
- /* ===== "bars400" ===== */
402
- .bars400 div.player-track-title { left:412px; }
403
- .bars400 div.dloadmp3-MI { left:402px; width:18%; }
404
- .bars400 div.bars_holder { left:402px; width:auto; }
405
- .bars400 .MI-image img { padding:1px; }
406
- .bars400 div.player-track-title { top:20px; }
407
-
408
- /* ===== bigger1 ===== */
409
- .bigger1 { font-size:18px; line-height:26px !important; margin:0 !important; }
410
- .bigger1 span.load_mp3j,
411
- .bigger1 span.loadB_mp3j { top:24px; left:0px; height:2px; }
412
- .bigger1 span.posbar_mp3j .ui-slider-handle { top: 3px; height:24px; width:6px !important; margin-left:-3px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
413
- .bigger1 span.posbarB_mp3j .ui-slider-handle { top: 3px; margin-left:-3px !important; border:1px solid #999; height:24px; width:6px !important; z-index:500; background:url('images/mp3t-poshandle.png') repeat-y -50px 0px; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
414
- .bigger1 span.posbarB_mp3j .ui-slider-handle:hover { background:url('images/mp3t-poshandle.png') repeat-y 0px 0px; border-color:#aaa; }
415
- .bigger1 span.buttons_mp3j { position:relative; margin:0px; margin-left:5px !important; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -80px 0px; }
416
- .bigger1 span.buttons_mp3j:hover { background:transparent url('images/transport-shard-B.png') no-repeat -80px -32px; }
417
- .bigger1 span.buttons_mp3jpause { position:relative; margin:0px; margin-left:5px !important; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -2px 0px; }
418
- .bigger1 span.buttons_mp3jpause:hover { background:transparent url('images/transport-shard-B.png') no-repeat -2px -32px; }
419
- .bigger1 span.vol_mp3j { position:absolute; top:-6px; right:7px; width:85%; max-width:100px; height:2px; }
420
-
421
- .bigger1 div.player-track-title { font:normal normal 500 18px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
422
- .bigger1 div.player-track-title span { font:normal normal 500 14px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
423
- .bigger1 ul.UL-MI_mp3j li a, .bigger1 ul.UL-MI_mp3j li { font-size:16px !important; line-height:19px !important; }
424
- .bigger1 .indi_mp3j { font-size: 0.6em !important; }
425
-
426
- /* ===== "bigger2" ===== */
427
- .bigger2 div.player-track-title { font:normal normal 500 36px/38px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
428
- .bigger2 div.player-track-title span { font:normal normal 500 20px/22px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
429
- .bigger2 ul.UL-MI_mp3j li a, .bigger2 ul.UL-MI_mp3j li { font-size:20px !important; line-height:24px !important; }
430
- .bigger2 { font-size:23px; line-height:25px !important; margin:0 !important; }
431
- .bigger2 span.load_mp3j,
432
- .bigger2 span.loadB_mp3j { top:26px; left:0px; height:2px; }
433
- .bigger2 span.posbar_mp3j .ui-slider-handle { top: 0px; height:28px; width:6px !important; margin-left:-3px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
434
- .bigger2 span.posbarB_mp3j .ui-slider-handle { top: -1px; margin-left:-3px !important; border:1px solid #999; height:29px; width:8px !important; z-index:500; border-color:#aaa; background:url('images/mp3t-poshandle.png') repeat-y 0px 0px; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
435
- .bigger2 span.posbarB_mp3j .ui-slider-handle:hover { background:url('images/mp3t-poshandle.png') repeat-y -50px 0px; border-color:#999; }
436
- .bigger2 span.buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:2px 0px 4px 20px !important; background:url('images/play-dark2-b.png') no-repeat -186px center; border:0px solid #bbb; margin-left:10px; }
437
- .bigger2 span.buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -437px center; }
438
- .bigger2 span.buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:0px 0px 2px 20px !important; background:url('images/stop-dark2-b.png') repeat-y 0px top; border:0px solid #bbb; margin-left:10px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
439
- .bigger2 span.buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
440
- .bigger2 span.vol_mp3j { position:absolute; top:-12px; right:4px; width:85%; max-width:100px; height:2px; }
441
- .bigger2 span.vol_mp3t { position:absolute; top:-10px; width:85%; max-width:100px; height:2px; }
442
- .bigger2 .Smp3-finding,
443
- .bigger2 .mp3-tint,
444
- .bigger2 .mp3-gtint { margin-left:8px; margin-right:6px; padding:0px 0px 0px 10px !important; font-size:12px !important; line-height:12px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
445
- .bigger2 .mp3-gtint { margin:0 6px 0 -16px; }
446
- .bigger2 .indi_mp3j { font-size: 0.5em !important; padding-left:0px; }
447
-
448
- .bigger2.wh .buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:2px 0px 4px 20px !important; background:url('images/play-dark2-w.png') no-repeat -186px center; border:0px solid #bbb; margin-left:10px; }
449
- .bigger2.wh .buttons_mp3j:hover { background:url('images/play-dark2-w.png') no-repeat -437px center; }
450
- .bigger2.wh .buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:0px 0px 2px 20px !important; background:url('images/stop-dark2-w.png') repeat-y 0px top; border:0px solid #bbb; margin-left:10px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
451
- .bigger2.wh .buttons_mp3jpause:hover { background:url('images/stop-dark2-w.png') repeat-y -350px top; }
452
-
453
-
454
-
455
- /* ===== bigger3 ===== */
456
- .bigger3 { font-size:28px; line-height:36px !important; margin:0 !important; }
457
- .bigger3 .load_mp3j, .bigger3 .loadB_mp3j { top:37px; left:0px; height:3px; }
458
- .bigger3 .posbar_mp3j .ui-slider-handle, .bigger3 .posbarB_mp3j .ui-slider-handle { top: 0px; border:1px solid #bbb; height:40px; width:12px !important; margin-left:-5px !important; background:url('images/stop-dark2.png') repeat-y -350px top; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
459
- .bigger3 .posbar_mp3j .ui-slider-handle:hover, .bigger3 .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2.png') repeat-y 0px top; border:1px solid #aaa; }
460
- .bigger3 .indi_mp3j { font-size: 0.5em !important; }
461
- .bigger3 span.buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:8px 0px 12px 30px !important; background:url('images/play-dark2.png') no-repeat -177px center; border:0px solid #bbb; margin-left:12px; }
462
- .bigger3 span.buttons_mp3j:hover { background:url('images/play-dark2.png') no-repeat -428px center; }
463
- .bigger3 span.buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:2px 0px 6px 30px !important; background:url('images/stop-dark2.png') repeat-y 0px top; border:0px solid #bbb; margin-left:12px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
464
- .bigger3 span.buttons_mp3jpause:hover { background:url('images/stop-dark2.png') repeat-y -350px top; }
465
- .bigger3 .vol_mp3j { height:1px; max-width:110px; right:64px; top:-8px; }
466
- .bigger3 .vol_mp3t { height:1px; max-width:110px; right:16px; top:-5px; }
467
- .bigger3 .vol_mp3j .ui-slider-handle, .bigger3 .vol_mp3t .ui-slider-handle { height:14px !important; width:33px !important; margin-left:-16px; border-bottom:1px solid #ccc !important; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; top:-14px; background:url('images/volhandle-dark2.png') no-repeat -10px bottom; }
468
- .bigger3 .vol_mp3j .ui-slider-handle:hover, .bigger3 .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2.png') no-repeat -257px bottom; }
469
- .bigger3 .Smp3-finding,
470
- .bigger3 .mp3-tint,
471
- .bigger3 .mp3-gtint { margin-left:8px; padding:0px 0px 0px 14px !important; font-size:18px !important; line-height:20px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
472
- .bigger3 .mp3-gtint { margin:0 2px 0 -14px; }
473
- .bigger3 div.player-track-title { font:normal normal 500 44px/46px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
474
- .bigger3 div.player-track-title span { font:normal normal 500 28px/30px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
475
- .bigger3 ul.UL-MI_mp3j li a, .bigger3 ul.UL-MI_mp3j li { font-size:28px !important; line-height:30px !important; }
476
-
477
- .bigger3.bl span.buttons_mp3j { background:url('images/play-dark2-b.png') no-repeat -177px center; }
478
- .bigger3.bl span.buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -428px center; }
479
- .bigger3.bl span.buttons_mp3jpause { background:url('images/stop-dark2-b.png') repeat-y 0px top; }
480
- .bigger3.bl span.buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
481
- .bigger3.bl span.vol_mp3j .ui-slider-handle, .bigger3.bl span.vol_mp3t .ui-slider-handle { background:url('images/volhandle-dark2-b.png') no-repeat -10px bottom; }
482
- .bigger3.bl span.vol_mp3j .ui-slider-handle:hover, .bigger3.bl span.vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-b.png') no-repeat -257px bottom; }
483
-
484
-
485
-
486
- /* ===== bigger4 ===== */
487
- .bigger4 { font-size:38px; line-height:46px !important; margin:0 !important; }
488
- .bigger4 .load_mp3j, .bigger4 .loadB_mp3j { top:46px; left:0px; height:3px; }
489
- .bigger4 .posbar_mp3j .ui-slider-handle, .bigger4 .posbarB_mp3j .ui-slider-handle { top: -2px; border:1px solid #bbb; height:52px; width:16px !important; margin-left:-8px !important; background:url('images/stop-dark2.png') repeat-y -350px top; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
490
- .bigger4 .posbar_mp3j .ui-slider-handle:hover, .bigger4 .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2.png') repeat-y 0px top; border:1px solid #aaa; }
491
- .bigger4 .indi_mp3j { font-size: 0.5em !important; }
492
- .bigger4 span.buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:8px 0px 12px 40px !important; background:url('images/play-dark2.png') no-repeat -167px center; border:0px solid #bbb; margin-left:15px; }
493
- .bigger4 span.buttons_mp3j:hover { background:url('images/play-dark2.png') no-repeat -418px center; }
494
- .bigger4 span.buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:2px 0px 4px 40px !important; background:url('images/stop-dark2.png') repeat-y 0px top; border:0px solid #bbb; margin-left:15px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
495
- .bigger4 span.buttons_mp3jpause:hover { background:url('images/stop-dark2.png') repeat-y -350px top; }
496
- .bigger4 .vol_mp3j { height:1px; max-width:110px; right:86px; top:-8px; }
497
- .bigger4 .vol_mp3t { height:1px; max-width:110px; right:20px; top:-5px; }
498
- .bigger4 .vol_mp3j .ui-slider-handle, .bigger4 .vol_mp3t .ui-slider-handle { height:20px !important; width:43px !important; margin-left:-21px; border-bottom:1px solid #ccc !important; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; top:-20px; background:url('images/volhandle-dark2.png') no-repeat -10px bottom; }
499
- .bigger4 .vol_mp3j .ui-slider-handle:hover, .bigger4 .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2.png') no-repeat -257px bottom; }
500
- .bigger4 .Smp3-finding,
501
- .bigger4 .mp3-tint,
502
- .bigger4 .mp3-gtint { margin-left:8px; margin-right:6px; padding:0px 0px 0px 14px !important; font-size:18px !important; line-height:20px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
503
- .bigger4 .mp3-gtint { margin:0 6px 0 -20px; }
504
-
505
- .bigger4 div.player-track-title { font:normal normal 500 44px/46px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
506
- .bigger4 div.player-track-title span { font:normal normal 500 28px/30px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
507
- .bigger4 ul.UL-MI_mp3j li a, .bigger4 ul.UL-MI_mp3j li { font-size:28px !important; line-height:30px !important; }
508
-
509
- .bigger4.bl .posbar_mp3j .ui-slider-handle, .bigger4.bl .posbarB_mp3j .ui-slider-handle { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
510
- .bigger4.bl .posbar_mp3j .ui-slider-handle:hover, .bigger4.bl .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2-b.png') repeat-y 0px top; }
511
- .bigger4.bl .buttons_mp3j { background:url('images/play-dark2-b.png') no-repeat -167px center; }
512
- .bigger4.bl .buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -418px center; }
513
- .bigger4.bl .buttons_mp3jpause { background:url('images/stop-dark2-b.png') repeat-y 0px top; }
514
- .bigger4.bl .buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
515
- .bigger4.bl .vol_mp3j .ui-slider-handle, .bigger4.bl .vol_mp3t .ui-slider-handle { background:url('images/volhandle-dark2-b.png') no-repeat -10px bottom; }
516
- .bigger4.bl .vol_mp3j .ui-slider-handle:hover, .bigger4.bl .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-b.png') no-repeat -257px bottom; }
517
-
518
-
519
-
520
- /* ===== bigger5 ===== */
521
- .bigger5 { font-size:48px; line-height:60px !important; margin:0 !important; }
522
- .bigger5 .load_mp3j, .bigger5 .loadB_mp3j { top:63px; left:0px; height:4px; }
523
- .bigger5 .posbar_mp3j .ui-slider-handle, .bigger5 .posbarB_mp3j .ui-slider-handle { top: -1px; border:1px solid #bbb; height:69px; width:20px !important; margin-left:-10px !important; background:url('images/stop-dark2.png') repeat-y -350px top; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
524
- .bigger5 .posbar_mp3j .ui-slider-handle:hover, .bigger5 .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2.png') repeat-y 0px top; border:1px solid #aaa; }
525
- .bigger5 .indi_mp3j { font-size: 0.5em !important; }
526
- .bigger5 span.buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:8px 0px 13px 52px !important; background:url('images/play-dark2.png') no-repeat -154px center; border:0px solid #bbb; margin-left:20px; }
527
- .bigger5 span.buttons_mp3j:hover { background:url('images/play-dark2.png') no-repeat -405px center; }
528
- .bigger5 span.buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:3px 0px 8px 52px !important; background:url('images/stop-dark2.png') repeat-y 0px top; border:0px solid #bbb; margin-left:15px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
529
- .bigger5 span.buttons_mp3jpause:hover { background:url('images/stop-dark2.png') repeat-y -350px top; }
530
- .bigger5 .vol_mp3j { height:1px; max-width:170px; right:115px; top:-10px; }
531
- .bigger5 .vol_mp3t { height:1px; max-width:170px; right:33px; top:-5px; }
532
- .bigger5 .vol_mp3j .ui-slider-handle, .bigger5 .vol_mp3t .ui-slider-handle { height:30px !important; width:55px !important; margin-left:-21px; border-bottom:1px solid #aaa !important; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; top:-30px; background:url('images/volhandle-dark2.png') no-repeat -10px bottom; }
533
- .bigger5 .vol_mp3j .ui-slider-handle:hover, .bigger5 .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2.png') no-repeat -257px bottom; }
534
- .bigger5 .Smp3-finding,
535
- .bigger5 .mp3-tint,
536
- .bigger5 .mp3-gtint { margin-left:8px; margin-right:6px; padding:0px 0px 0px 14px !important; font-size:18px !important; line-height:20px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
537
- .bigger5 .mp3-gtint { margin:0 6px 0 -20px; }
538
-
539
- .bigger5.bl .posbar_mp3j .ui-slider-handle, .bigger5.bl .posbarB_mp3j .ui-slider-handle { background:url('images/stop-dark2-b.png') repeat-y -350px top; border:1px solid #888; }
540
- .bigger5.bl .posbar_mp3j .ui-slider-handle:hover, .bigger5.bl .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2-b.png') repeat-y 0px top; border:1px solid #777; }
541
- .bigger5.bl .buttons_mp3j { background:url('images/play-dark2-b.png') no-repeat -154px center; border:0px solid #bbb; margin-left:20px; }
542
- .bigger5.bl .buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -405px center; }
543
- .bigger5.bl .buttons_mp3jpause { background:url('images/stop-dark2-b.png') repeat-y 0px top; }
544
- .bigger5.bl .buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
545
- .bigger5.bl .vol_mp3j .ui-slider-handle, .bigger5.bl .vol_mp3t .ui-slider-handle { background:url('images/volhandle-dark2-b.png') no-repeat -10px bottom; }
546
- .bigger5.bl .vol_mp3j .ui-slider-handle:hover, .bigger5.bl .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-b.png') no-repeat -257px bottom; }
547
-
548
-
549
- /* ===== smaller ===== */
550
- .smaller div.player-track-title { font:normal normal 500 11px/13px 'verdana', 'Lucida Grande', 'arial', sans-serif !important; left:5px; right:5px; }
551
- .smaller div.player-track-title span { font:normal normal 500 10px/10px 'verdana', 'Lucida Grande', 'arial', sans-serif !important; padding:0; }
552
- .smaller ul.UL-MI_mp3j li a, .smaller ul.UL-MI_mp3j li { font-size:10px !important; font-family:'verdana', Helvetica, sans-serif !important; line-height:13px !important; }
553
-
554
-
555
- /* ===== outline ==== */
556
- span.outline { font-size:14px; line-height:22px !important; margin:0 !important; }
557
- .outline span.vol_mp3t { position:absolute; top:-4px; right:4px; width:90%; max-width:100px; height:2px; background: transparent; }
558
- .outline span.vol_mp3j { position:absolute; top:-9px; right:7px; width:85%; max-width:100px; height:2px; background: transparent; }
559
- .outline span.buttons_mp3j { padding:2px 0px 5px 20px !important; background: transparent url('images/transport-outline.png') no-repeat -80px -1px; border:0; margin:0; }
560
- .outline span.buttons_mp3j:hover { background:transparent url('images/transport-outline.png') no-repeat -80px -33px; }
561
- .outline span.buttons_mp3jpause { padding:2px 0px 5px 20px !important; background: transparent url('images/transport-outline.png') no-repeat 1px -1px; border:0; margin:0; }
562
- .outline span.buttons_mp3jpause:hover { background:transparent url('images/transport-outline.png') no-repeat 1px -33px; }
563
- .outline span.posbarB_mp3j { position:absolute; width:100%; height:100%; border:0px solid #f77; }
564
- .outline span.posbarB_mp3j .ui-widget-header { z-index:-500; }
565
- .outline span.posbarB_mp3j .ui-slider-handle { top: 0px; margin-left:0px; border:1px solid #aaa; height:23px; width:5px !important; z-index:500; background:url('images/t10b.png') repeat; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
566
- .outline span.posbarB_mp3j .ui-slider-handle:hover { background:url('images/t20b.png') repeat; border-color:#777; }
567
- .outline div.transport-MI div { background-image: url("images/transport-hardZ.png"); }
568
- .outline div.mp3j-popout-MI { background-image:url('images/buttons-popoutF.png'); }
569
-
570
- .dark.outline div.transport-MI div { background-image: url("images/transport-hardK.png"); }
571
- .dark.outline div.mp3j-popout-MI { background-image:url('images/buttons-popoutF.png'); }
572
-
573
-
574
- /* ===== wtransbars ==== */
575
- .wtransbars div.loadMI_mp3j { background:#fff; opacity:0.1; filter:alpha(opacity=10); }
576
- .wtransbars div.poscolMI_mp3j { background:#fff url('images/posbar-soften-tipped-2.png') repeat-y right top; opacity:0.15; filter:alpha(opacity=15); }
577
- .wtransbars div.player-track-title { color:#fff; }
578
-
579
- /* ===== btransbars ==== */
580
- .btransbars div.loadMI_mp3j { background:#000; opacity:0.1; filter:alpha(opacity=10); }
581
- .btransbars div.poscolMI_mp3j { background:#000 url('images/posbar-soften-tipped-2.png') repeat-y right top; opacity:0.15; filter:alpha(opacity=15); }
582
- .btransbars div.player-track-title { color:#000; }
583
-
584
-
585
-
586
-
587
-
588
-
589
-
590
-
591
-
592
-
593
-
594
-
595
-
1
+ /*
2
+ MP3-jPlayer 1.8.1 - Silver
3
+ www.sjward.org */
4
+
5
+ /*---------------------
6
+ [mp3-jplayer] SHORTCODE
7
+ ==================================== */
8
+
9
+ /* SKIN
10
+ --------------- */
11
+ /* MAIN WRAPPER (default class) */
12
+ div.wrap-MI { border:0; margin:0; background:none; min-width:116px; /* position||float set in-line! */ /* width set in-line! */ }
13
+
14
+ /* SUB WRAPPERS */
15
+ div.jp-innerwrap, div.jp-interface, div.listwrap_mp3j, div.playlist-wrap-MI { position:relative !important; width:100%; border:0; margin:0; padding:0; }
16
+ div.jp-innerwrap { background:none; }
17
+ div.jp-interface { background:url('images/shadow-x.png') repeat-x left bottom; height:101px/*player default height*/; min-height:67px; cursor:default; }
18
+ div.listwrap_mp3j { margin-top:0px; /* background set from admin */ }
19
+
20
+ /* BACKGROUNDS */
21
+ div.innerx, div.innerleft, div.innerright, div.innertab { position:absolute; }
22
+ div.innerx { background:url('images/case-grad-x.png') repeat-x left -45px; width:auto; height:35px; left:0px; right:0px; bottom:3px; }
23
+ div.innerleft { background:url('images/shadow-l.png') no-repeat left bottom; width:1px; height:40px; left:-1px; bottom:0px; }
24
+ div.innerright { background:url('images/shadow-r.png') no-repeat right bottom; width:2px; height:40px; right:-2px; bottom:0px; }
25
+ div.innertab { /* background and opacity set from admin */ left:0px; top:0px; width:100%; bottom:38px; }
26
+
27
+ /* PLAYLIST
28
+ ----------------- */
29
+ div.playlist-colour { position:absolute; width:100%; height:100%; left:0px; top:0px; /* background set from admin */ /* opacity set from admin */ }
30
+ div.playlist-wrap-MI ul { position:static; }
31
+ ul.UL-MI_mp3j { margin:0px !important; padding:0px 0px 0px 0px !important; list-style-type:none !important; list-style:none !important; list-style-image:none !important; font-weight: 500 !important; /* background set from admin */ }
32
+ ul.UL-MI_mp3j li { margin:0px !important; padding:0px 0px 1px 0px !important; font-weight:500 !important; line-height:15px !important; letter-spacing:0px !important; font-size:11px !important; word-spacing:0px !important; margin:0px 1px 0px 1px !important; list-style-type:none !important; }
33
+ ul.UL-MI_mp3j li:before { content:none !important; }
34
+ ul.UL-MI_mp3j li a { font-size:11px !important; border:0 !important; line-height:15px !important; font-weight:500 !important; text-decoration:none !important; display:block !important; width:auto !important; font-family:'verdana', 'Lucida Grande', 'arial', sans-serif !important; outline:none !important; padding:6px 0px 6px 14px !important; }
35
+
36
+
37
+ /* SCREEN
38
+ ----------------- */
39
+ div.player-track-title, div.jp-play-time, div.jp-total-time, div.statusMI { position:absolute; z-index:50; /* color set from admin */ font:normal normal 500 14px/16px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
40
+
41
+ div.player-track-title { top:7px; left:9px; width:auto; right:10px; }
42
+ div.player-track-title span { font-size:10px; line-height:12px; padding-left:10px; max-width:95%; }
43
+
44
+ div.jp-play-time, div.jp-total-time, div.statusMI { font-size:8px; line-height:10px !important; bottom:42px; text-align:left; font-family:Verdana, Arial, Helvetica, sans-serif; }
45
+ div.jp-play-time { right:84px; }
46
+ div.jp-total-time { right:6px; opacity:0.8; width:auto; }
47
+
48
+ span.mp3-finding, span.Smp3-finding, span.mp3-tint, span.mp3-gtint { padding:0px 0px 0px 6px !important; font-size:8px !important; line-height:10px !important; height:10px !important; overflow:hidden !important; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; }
49
+ span.mp3-finding, span.Smp3-finding { margin:0px 0px 0px -2px; background:url('images/finding-bar1f.gif') repeat 0px 3px; }
50
+ span.mp3-tint { margin:0px 2px 0px -6px; opacity:.5; filter:alpha(opacity=50); /* background set from admin */ }
51
+ span.mp3-gtint { margin:0px 2px 0px -6px; opacity:.5; filter:alpha(opacity=50); background:#777; }
52
+ span.Smp3-finding { margin:0px 0px 0px 3px; }
53
+ span.tintmarg { margin:0 2px 0 3px; }
54
+
55
+ div.statusMI { right:27px; width:52px !important; height:10px; }
56
+ .statusMI span.mp3-finding, .statusMI span.Smp3-finding, .statusMI span.mp3-tint, .statusMI span.mp3-gtint { padding:0px 0px 0px 6px !important; }
57
+ .statusMI span.mp3-tint, .statusMI span.mp3-gtint { margin:0px 2px 0px -6px; }
58
+
59
+ .MI-image { position:absolute; top:0; left:0; padding:0; }
60
+ .MI-image img { border:none; padding:0px; background-color:#bbb; }
61
+ .MI-image a:hover img { /* background-colour set from admin */ }
62
+
63
+
64
+ /* BUTTONS
65
+ ----------------- */
66
+ /* TRANSPORT BUTTONS */
67
+ div.transport-MI { position:absolute; width:auto; height:37px; right:2px; bottom:0px; border:0; }
68
+ div.transport-MI div { background-image: url("images/transport-hardW-shiny.png"); text-indent:-9999px !important; float:right; }
69
+ /* play */
70
+ div.buttons_mp3j { width:30px; height:32px; margin:1px 0px 0px 0px; background-position:-110px 0px; }
71
+ div.buttons_mp3j:hover { background-position:-110px -32px; }
72
+ /* pause */
73
+ div.buttons_mp3jpause { width:30px; height:32px; margin:1px 0px 0px 0px; background-position:-2px 0px; }
74
+ div.buttons_mp3jpause:hover { background-position:-2px -32px; }
75
+ /* prev n next */
76
+ div.Prev_mp3j { width:22px; height:28px; margin:1px 4px 0px 0px; background-position:-32px -1px; }
77
+ div.Prev_mp3j:hover { background-position:-32px -33px; }
78
+ div.Next_mp3j { width:19px; height:28px; margin:1px 3px 0px 0px; background-position:-57px -1px; }
79
+ div.Next_mp3j:hover { background-position:-57px -33px; }
80
+ /* stop */
81
+ div.stop_mp3j { width:26px; height:32px; margin:1px 3px 0px 0px; background-position:-81px 0px; }
82
+ div.stop_mp3j:hover { background-position:-81px -32px; }
83
+
84
+ /* PLAYLIST TOGGLE */
85
+ div.playlist-toggle-MI { position:absolute; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif; bottom:4px; left:1px; color:#707070; padding:2px 6px 2px 5px; line-height:9px; min-width:24px; background:#bcbcbc; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; cursor:default; }
86
+ div.playlist-toggle-MI:hover { background:#c6c6c6; color:#777; }
87
+
88
+ /* DOWNLOAD BUTTON */
89
+ div.dloadmp3-MI { position:absolute; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif !important; bottom:39px; margin:0px !important; font-size:9px !important; text-align:center; left:0px; width:41%; min-width:75px; max-width:425px; padding:0px 0px 0px 0px !important; border:0px; background:transparent url('images/t10b.png') repeat left top !important; color:#fff; line-height:11px !important; -moz-border-radius-topright:3px; -webkit-border-top-right-radius:3px; overflow:hidden; z-index:150; cursor:default; }
90
+ div.dloadmp3-MI.whilelinks, div.dloadmp3-MI.logintext { background:transparent url('images/t50b.png') repeat left top !important; }
91
+ div.dloadmp3-MI.whilelinks:hover { background:transparent url('images/t40b.png') repeat left top !important; }
92
+ div.dloadmp3-MI a { color:#ececec; display:block; width:auto; padding:1px 5px 2px 2px !important; margin:0px !important; background:transparent; text-decoration:none !important; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif !important; font-size:9px !important; line-height:11px !important; height:100%; border-bottom:none; visibility:hidden; }
93
+ div.dloadmp3-MI a:hover { outline: none; border-bottom: none; color: #ececec; }
94
+ div.dloadmp3-MI.whilelinks a { color: #f3f3f3; visibility: inherit; }
95
+ div.dloadmp3-MI.whilelinks a:hover { color: #fff; }
96
+ div.dloadmp3-MI p { color:#ececec; display:block; width:auto; padding:1px 5px 2px 2px !important; margin:0px !important; background:transparent; text-decoration:none !important; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif !important; font-size:9px !important; line-height:11px !important; height:100%; border-bottom:none; visibility:visible; }
97
+
98
+ /* POPOUT BUTTON */
99
+ div.mp3j-popout-MI { position:absolute; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif; bottom:17px; left:0px; height:16px; color:#6c6c6c; padding:3px 5px 0px 28px; min-width:2px; line-height:11px; border:1px solid #b2b2b2; background-color:#aaa; background-image:url('images/buttons-popoutE.png'); background-repeat:no-repeat; background-position:-8px -65px; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; cursor:default; }
100
+ div.mp3j-popout-MI:hover { color:#606060; background-position:-8px -95px; }
101
+
102
+ /* BARS
103
+ ----------------- */
104
+ .ui-state-disabled { cursor:default !important; }
105
+ .ui-slider { position:relative; text-align:left; }
106
+ .ui-slider .ui-slider-handle { position:absolute; z-index:200; cursor:default; }
107
+ .ui-slider .ui-slider-range { position:absolute; z-index:1; font-size:.7em; display:block; border:0; }
108
+ .ui-slider-horizontal .ui-slider-range { top:0; height:100%; }
109
+ .ui-slider-horizontal .ui-slider-range-min { left:0; }
110
+ .ui-slider-horizontal .ui-slider-range-max { right:0; }
111
+ .ui-state-default, .ui-widget-content .ui-state-default { outline:none; border:0px; }
112
+
113
+ /* VOLUME */
114
+ div.MIsliderVolume { position:absolute; top:0px; right:4px; width:108px; height:4px !important; background:transparent; border:0px; font-size:1px; cursor:default; z-index:150; }
115
+ div.MIsliderVolume .ui-widget-header { /* background set from admin */ }
116
+ div.MIsliderVolume .ui-slider-handle { border:0px; height:11px !important; width:10px !important; padding:0px !important; margin-left:-5px; top:-3px; border:0px !important; -moz-border-radius:2px; -webkit-border-radius:2px; background:transparent url('images/vol-handle.png') no-repeat -1px 0px; z-index:150; overflow:hidden !important; cursor:default; }
117
+ div.MIsliderVolume .ui-slider-handle:hover { background:transparent url('images/vol-handle.png') no-repeat -21px 0px; }
118
+ div.MIsliderVolume .ui-state-active, div.MIsliderVolume .ui-widget-content .ui-state-active { border:0px; background:transparent url('images/vol-handle.png') no-repeat -21px 0px; outline:none; }
119
+
120
+ /* LOADER AND POS SLIDER */
121
+ div.bars_holder, div.loadMI_mp3j, div.poscolMI_mp3j, div.posbarMI_mp3j { position:absolute; top:0px; left:0px; }
122
+ div.bars_holder { right:0; width:100%; bottom:38px; font-size:1px; cursor:default; background:transparent url('images/t60w.png') repeat-x left bottom;/* 1px highlight top of control bar */ }
123
+ div.loadMI_mp3j { bottom:1px; /* background set from admin */ /* opacity set from admin */ }
124
+ div.poscolMI_mp3j { bottom:1px; /* background set from admin */ /* opacity set from admin */ }
125
+ div.bars_holder .ui-widget-header, div.bars_holder .ui-widget-content { border:0px !important; background:none; }
126
+ div.bars_holder .ui-slider-horizontal { top:0px; bottom:1px; height:auto; z-index:90; }
127
+ div.posbarMI_mp3j { bottom:1px; width:100%; }
128
+ div.posbarMI_mp3j .ui-slider-handle { top:-6px; margin-left:-1px !important; border:0; bottom:-2px; width:2px !important; z-index:100; background:none; cursor:default ; padding:0px !important; }
129
+ div.posbarMI_mp3j .ui-slider-handle:hover { background:none; z-index:100; }
130
+
131
+
132
+ /* FORCED DOWNLOAD FRAME
133
+ ------------------------ */
134
+
135
+ div.mp3j-dlframe, iframe.mp3j-dlframe {
136
+ border:0px solid #ddd;
137
+ width:1px;
138
+ height:1px;
139
+ overflow:hidden;
140
+ margin:0;
141
+ padding:0;
142
+ display:none !important;
143
+ }
144
+
145
+ /* MESSAGES */
146
+ div.mp3j-finfo {
147
+ position:absolute;
148
+ top:36px;
149
+ z-index:9999 !important;
150
+ width:80%;
151
+ left:10%;
152
+ -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px;
153
+ background:url('images/fdloadW-x.png') repeat-x left top;
154
+ -webkit-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); -moz-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35);
155
+ padding:0;
156
+ min-height:31px;
157
+ overflow:hidden;
158
+ min-width:170px;
159
+ }
160
+
161
+ div.mp3j-finfo * { font-family:Arial, Helvetica, sans-serif !important; }
162
+ div.mp3j-finfo-sleeve { position:relative !important; width:100%; height:100%; }
163
+ div.mp3j-finfo-gif { position:absolute !important; top:0; left:0; right:10%; bottom:0; background:url('images/loader.gif') no-repeat center 37px; width:auto; padding:0px; height:100%; }
164
+ div.mp3j-finfo-txt { position:relative !important; margin:0px 15px 0 15px !important; padding:10px 0 10px 0 !important; width:auto; }
165
+ div.mp3j-finfo-close { position:absolute !important; width:31px !important; height:27px !important; padding-top:5px !important; right:0 !important; top:0 !important; text-align:center !important; font-weight:700 !important; font-size:18px !important; line-height:22px !important; color:#aaa !important; border-bottom:1px solid #ccc !important; border-left:1px solid #ccc !important; background:url('images/t40w.png') repeat left top !important; }
166
+ div.mp3j-finfo-close:hover { color:#888 !important; }
167
+
168
+ div.mp3j-finfo-txt h2 { font-size:15px !important; color:#333 !important; margin:0 0 10px 0 !important; }
169
+ div.mp3j-finfo-txt h3 { font-size:14px !important; color:#333 !important; margin:0 0 15px 0 !important; }
170
+ div.mp3j-finfo-txt p { font-size:11px !important; color:#555 !important; line-height:13px !important; margin:0 0 5px 0; }
171
+ div.mp3j-finfo-txt a { }
172
+
173
+
174
+ /* backwards compat
175
+ ------------------- */
176
+ div.player-track-title.mp3j_widgetmods { font-size: 11px; top: 7px; left:5px; }
177
+ div.player-track-title.mp3j_widgetmods span { font-size: 9px; }
178
+ ul.UL-MI_mp3j.mp3j_widgetmods li { font-size:10px !important; line-height:14px !important; }
179
+ ul.UL-MI_mp3j.mp3j_widgetmods li a { font-size:10px !important; line-height:14px !important; }
180
+
181
+
182
+
183
+
184
+
185
+ .mp3j-nosolution
186
+ {
187
+ position:absolute;
188
+ z-index:9999;
189
+ height:auto;
190
+ padding:5%;
191
+ border:1px solid #c0c0c0;
192
+ background:#f0f0f0;
193
+ color:#333;
194
+ top:4px;
195
+ left:4px;
196
+ right:4px;
197
+ -webkit-border-top-left-radius: 8px;
198
+ -webkit-border-top-right-radius: 8px;
199
+ -moz-border-radius-topleft: 8px;
200
+ -moz-border-radius-topright: 8px;
201
+ border-top-left-radius: 8px;
202
+ border-top-right-radius: 8px;
203
+ font-size:13px;
204
+ -webkit-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); -moz-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35);
205
+ }
206
+
207
+ .s-nosolution
208
+ {
209
+ }
210
+
211
+
212
+
213
+
214
+
215
+ /*-------------------------
216
+ [mp3j] & [mp3t] SHORTCODES
217
+ ==================================== */
218
+ span.wrap_inline_mp3j { position:relative; width:auto; cursor:pointer; padding:0; white-space:nowrap; text-align:left; }
219
+ /*span.wrap_inline_mp3j:hover .buttons_mp3j { background:transparent url('images/transport-shard-B.png') no-repeat -80px -35px; }*/
220
+ span.indi_mp3j { position:relative; padding-left:2px; font-size: 0.7em !important; }
221
+
222
+ /* BARS */
223
+ span.bars_mp3j { position:absolute; width:100%; height:100%; }
224
+ span.load_mp3j, span.loadB_mp3j { position:absolute; /* background set from admin */ top:20px; left:0px; height:2px; }
225
+ /* mp3t */
226
+ span.posbar_mp3j { position:absolute; width:100%; height:100%; border:0px solid #f77; }
227
+ span.posbar_mp3j .ui-widget-header { z-index:-500; }
228
+ span.posbar_mp3j .ui-slider-handle { top: 2px; margin-left:-2px; border:1px solid #999; height:21px; width:4px; z-index:500; background:url('images/mp3t-poshandle.png') repeat-y -50px 0px; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
229
+ span.posbar_mp3j .ui-slider-handle:hover { background:url('images/mp3t-poshandle.png') repeat-y -0px 0px; border-color:#aaa; }
230
+
231
+ /* mp3j */
232
+ span.posbarB_mp3j { position:absolute; width:100%; height:100%; border:0; z-index:450; cursor:pointer; }
233
+ span.posbarB_mp3j .ui-widget-header { background:transparent; z-index:450; height:100%; }
234
+ span.posbarB_mp3j .ui-slider-handle { top: 0px; margin-left:-6px !important; border:0px solid #888; height:23px; width:12px !important; z-index: 500; background: transparent url('images/inlineHandle2.png') no-repeat -3px -3px; cursor: default; padding:0px !important; }
235
+ span.posbarB_mp3j .ui-slider-handle:hover { background: transparent url('images/inlineHandle2.png') no-repeat -3px -33px; }
236
+
237
+ /* SPAN TRANSPORT */
238
+ span.group_wrap { position:relative; margin:0px 0px 0px 0px; width:auto; }
239
+ span.textbutton_mp3j, span.T_mp3j { position:relative; width:auto; margin:0px; padding:0px !important; }
240
+ span.buttons_mp3j { position:relative; margin:0px; padding:2px 0px 3px 20px !important; background: transparent url('images/transport-shard-B.png') no-repeat -80px -3px; }
241
+ span.buttons_mp3j:hover { background:transparent url('images/transport-shard-B.png') no-repeat -80px -35px; }
242
+ span.buttons_mp3jpause { position:relative; margin:0px; padding:2px 0px 3px 20px !important; background: transparent url('images/transport-shard-B.png') no-repeat -2px -3px; }
243
+ span.buttons_mp3jpause:hover { background:transparent url('images/transport-shard-B.png') no-repeat -2px -35px; }
244
+
245
+ /* VOLUMES */
246
+ span.vol_mp3t { position:absolute; top:-4px; right:4px; width:90%; max-width:100px; height:2px; }
247
+ span.vol_mp3j { position:absolute; top:-9px; right:6px; width:85%; max-width:100px; height:2px; }
248
+ span.vol_mp3j.flipped { right:4px; }
249
+ span.vol_mp3t .ui-widget-header, span.vol_mp3j .ui-widget-header { background: transparent url('images/vol-grad60b2.png') repeat left top; z-index:500; height:100%; }
250
+ span.vol_mp3t .ui-slider-handle, span.vol_mp3j .ui-slider-handle { height:11px !important; width:10px !important; padding:0px !important; margin-left:-5px; border:0px !important; border-radius:2px; -moz-border-radius:2px; -webkit-border-radius:2px; z-index:600; overflow:hidden !important; cursor:default; top:-6px; background: transparent url('images/vol-handle.png') no-repeat -1px 0px; }
251
+ span.vol_mp3t .ui-slider-handle:hover, span.vol_mp3j .ui-slider-handle:hover { background: transparent url('images/vol-handle.png') no-repeat -21px 0px; }
252
+ span.vol_mp3t .ui-state-active, span.vol_mp3t .ui-widget-content .ui-state-active, span.vol_mp3j .ui-state-active, span.vol_mp3j .ui-widget-content .ui-state-active { background:transparent url('images/vol-handle.png') no-repeat -21px 0px; outline:none; border:0px; }
253
+
254
+
255
+
256
+ /*----------------------
257
+ [mp3j-popout] SHORTCODE
258
+ ================================================= */
259
+ .mp3j-popout-link-wrap { cursor:pointer; position:relative; clear:left; }
260
+ .mp3j-popout-link { float:left; margin:0 5px 0 0; min-width:22px; min-height:18px; background:url('images/buttons-popout.png') no-repeat -10px -65px; }
261
+ .mp3j-popout-link-wrap:hover .mp3j-popout-link { background:url('images/buttons-popout.png') no-repeat -10px -95px; }
262
+
263
+
264
+
265
+ /*=================================================
266
+
267
+ MODS
268
+ (via 'style' param in shortcode)
269
+ ================================================= */
270
+
271
+ /* ===== "dark" ===== */
272
+ .dark .innerx { background-position:left -119px; }
273
+ .dark .transport-MI { height:38px; }
274
+ .dark .transport-MI div { background-image:url("images/transport-darkbg-trans2.png"); }
275
+ .dark .bars_holder { background:url('images/t40b.png') repeat-x left bottom; }
276
+ .dark .mp3j-popout-MI { color:#a2a2a2; background-position:-8px -6px; border-color:#585858; background-color:#aaa; }
277
+ .dark .mp3j-popout-MI:hover { color:#aaa; background-position:-8px -36px; }
278
+ .dark div.playlist-toggle-MI { background:#505050; color:#a2a2a2; }
279
+ .dark div.playlist-toggle-MI:hover { background:#585858; color:#aaa; }
280
+ .dark .MI-image img { background-color:#777; }
281
+
282
+ .dark div.mp3j-finfo { background:url('images/fdloadB-x.png') repeat-x left top; }
283
+ .dark div.mp3j-finfo-gif { background:url('images/loader-w2.gif') no-repeat center 37px; }
284
+ .dark div.mp3j-finfo-close { color:#999 !important; border-bottom:1px solid #777 !important; border-left:1px solid #777 !important; background:url('images/t40b.png') repeat left top !important; }
285
+ .dark div.mp3j-finfo-close:hover { color:#eee !important; }
286
+ .dark div.mp3j-finfo-txt h2 { color:#fff !important; }
287
+ .dark div.mp3j-finfo-txt h3 { color:#fff !important; }
288
+ .dark div.mp3j-finfo-txt p { color:#fff !important; }
289
+
290
+
291
+ /* ===== "text" ===== */
292
+ div.wrap-MI.text { /*min-width:300px;*/ }
293
+ .text div.innerx, .text div.innerleft, .text div.innerright { position: absolute; visibility: hidden; }
294
+ .text div.innertab { bottom: 38px; }
295
+ .text div.jp-interface { background:none; }
296
+ .text div.player-track-title { font:normal normal 500 16px/18px 'trebuchet ms', Arial, sans-serif; }
297
+ .text div.player-track-title span { font:italic normal 500 12px/14px 'trebuchet ms', Arial, sans-serif; opacity:0.7; filter:alpha(opacity=70); }
298
+ .text div.jp-play-time, .text div.jp-total-time, .text div.statusMI { bottom:20px; font-size:11px; font-family: 'trebuchet ms', Arial, sans-serif; }
299
+ .text div.jp-play-time { width:37px; left:0px; opacity:0.6; filter:alpha(opacity=60); }
300
+ .text div.jp-total-time { width:37px; left:100px; display:none; }
301
+ .text div.statusMI { left:37px; width:70px !important; }
302
+ .text div.transport-MI { height:26px; right:2px; bottom:12px; }
303
+ .text div.transport-MI div { font-family: 'trebuchet ms', Arial, sans-serif; font-weight:700; overflow:hidden !important; background:none !important; white-space:nowrap !important; }
304
+ .text div.buttons_mp3j { text-indent:4px !important; width:32px; overflow:hidden !important; height: 25px; margin:0 6px 0 0px; background:none !important; line-height:25px !important; font-size:14px; }
305
+ .text div.buttons_mp3jpause { text-indent:-29px !important; width:38px; overflow:hidden !important; height: 25px; margin:0 -3px 0 3px; background:none !important; line-height:25px !important; font-size:14px; }
306
+ .text div.Prev_mp3j, .text div.Next_mp3j { text-indent:0px !important; height:23px; line-height:23px !important; font-size:12px; width:36px; margin:2px 0px 0px 0px; }
307
+ .text div.stop_mp3j { text-indent:0px !important; width:31px; height:25px; margin:0px 0px 0px 4px; line-height:25px !important; font-size:14px; }
308
+ .text div.playlist-toggle-MI { bottom: 7px; font-family:'trebuchet ms', Arial, sans-serif; background:none; padding:0; opacity:0.6; filter:alpha(opacity=60); }
309
+ .text div.playlist-toggle-MI:hover { opacity:1.0; filter:alpha(opacity=100); }
310
+ .text div.dloadmp3-MI { font-size:11px; bottom: 6px; height:auto; right:0px !important; left:auto; margin:0; font-family: 'trebuchet ms', Arial, sans-serif; text-align:right; background:none !important; }
311
+ .text div.dloadmp3-MI a { color:#888; font-size:inherit; margin:0px !important; padding: 0px !important; background:none !important; text-decoration:none; }
312
+ .text div.dloadmp3-MI a:hover { color:#555; background:none !important; }
313
+ .text div.dloadmp3-MI.betweenlinks a { display:none; background:none !important; }
314
+ .text div.dloadmp3-MI.whilelinks a { display:block; background:none !important; }
315
+ .text div.dloadmp3-MI.whilelinks a:hover { text-decoration:none; background:none !important; }
316
+ .text div.dloadmp3-MI p { font-size: inherit; margin:0px !important; padding: 0px !important; background:none !important; text-decoration:none; }
317
+ .text div.mp3j-popout-MI { color:#888; font:normal normal 500 11px 'trebuchet ms', 'arial', sans-serif; bottom:15px; right:155px; left:auto; width:auto; opacity:1; filter:alpha(opacity=100); padding:0px; line-height:12px; border:0; background:none; cursor:default; z-index:500; }
318
+ .text div.mp3j-popout-MI:hover { color:#555; opacity:1.0; filter:alpha(opacity=100); }
319
+ .text div.MIsliderVolume { position:absolute; bottom:38px; top:auto; right:4px; width:108px !important; height:1px !important; background:transparent; border:0px; font-size:1px; cursor:default; z-index:150; }
320
+ .text div.MIsliderVolume .ui-slider-handle, .text div.vol_mp3j .ui-slider-handle { height:11px !important; width:10px !important; padding:0px !important; margin-left:-5px; top:-7px; border:0px !important; -moz-border-radius:2px; -webkit-border-radius:2px; background:transparent url('images/vol-handle.png') no-repeat -41px 0px; z-index:150; overflow:hidden !important; cursor:default; }
321
+ .text div.MIsliderVolume .ui-slider-handle:hover, .text div.vol_mp3j .ui-slider-handle:hover { background:transparent url('images/vol-handle.png') no-repeat -21px 0px; }
322
+ .text div.MIsliderVolume .ui-state-active, .text div.MIsliderVolume .ui-widget-content .ui-state-active, .text div.vol_mp3j .ui-state-active, .text div.vol_mp3j .ui-widget-content .ui-state-active { border:0px; background:transparent url('images/vol-handle.png') no-repeat -21px 0px; outline:none; }
323
+ .text div.dloadmp3-MI.whilelinks, .text div.dloadmp3-MI.logintext { background:none !important; }
324
+
325
+
326
+ /* ===== "noscreen" ===== */
327
+ .noscreen div.jp-interface { height:44px; min-height:44px; }
328
+ .noscreen div.player-track-title { display:none; }
329
+ .noscreen div.bars_holder { top:auto; bottom:0px; height:7px; }
330
+ .noscreen div.innertab { bottom: 0px; top:0; display:none; }
331
+ .noscreen div.dloadmp3-MI { bottom: 11px; }
332
+ .noscreen div.transport-MI { bottom:17px; }
333
+ .noscreen div.jp-play-time, .noscreen div.jp-total-time, .noscreen div.statusMI { bottom:25px; }
334
+ .noscreen div.playlist-toggle-MI { bottom: 12px; }
335
+ .noscreen div.mp3j-popout-MI { bottom: 20px; }
336
+ .noscreen div.MIsliderVolume { bottom: 43px; }
337
+ .noscreen div.MIsliderVolume .ui-widget-header { background:transparent url('images/vol-grad60b2.png') repeat-y 0px top; }
338
+ .noscreen div.MIsliderVolume .ui-slider-handle { top:-6px; }
339
+ .noscreen h2 { margin:0 !important; padding:0 0 0px 0 !important; }
340
+ .noscreen div.posbarMI_mp3j .ui-slider-handle { top:-5px; margin-left:-7px !important; border:0; bottom:-5px; width:14px !important; z-index:100; background:none; border:none; cursor:default ; padding:0px !important; }
341
+ .noscreen div.posbarMI_mp3j .ui-slider-handle:hover { background:none; border:none; }
342
+ .noscreen .MI-image { top:15px; }
343
+
344
+
345
+ /* ===== "nolistbutton" ===== */
346
+ .nolistbutton div.playlist-toggle-MI { visibility:hidden; }
347
+
348
+ /* ===== "nopopoutbutton" ===== */
349
+ .nopopoutbutton div.mp3j-popout-MI { display:none; }
350
+
351
+ /* ===== "nopn" ===== */
352
+ .nopn div.Prev_mp3j { display:none; }
353
+ .nopn div.Next_mp3j { display:none; }
354
+
355
+ /* ===== "nostop" ===== */
356
+ .nostop div.stop_mp3j { display:none; }
357
+
358
+
359
+ /* ===== "bars100" ===== */
360
+ .bars100 div.player-track-title { left:112px; }
361
+ .bars100 div.dloadmp3-MI { left:102px; width:36%;}
362
+ .bars100 div.bars_holder { left:102px; width:auto; }
363
+ .bars100 .MI-image img { padding:1px; }
364
+ .bars100 div.player-track-title { top:20px; }
365
+
366
+ /* ===== "bars150" ===== */
367
+ .bars150 div.player-track-title { left:162px; }
368
+ .bars150 div.dloadmp3-MI { left:152px; width:33%;}
369
+ .bars150 div.bars_holder { left:152px; width:auto; }
370
+ .bars150 .MI-image img { padding:1px; }
371
+ .bars150 div.player-track-title { top:20px; }
372
+
373
+ /* ===== "bars200" ===== */
374
+ .bars200 div.player-track-title { left:212px; }
375
+ .bars200 div.dloadmp3-MI { left:202px; width:30%; }
376
+ .bars200 div.bars_holder { left:202px; width:auto; }
377
+ .bars200 .MI-image img { padding:1px; }
378
+ .bars200 div.player-track-title { top:20px; }
379
+
380
+ /* ===== "bars250" ===== */
381
+ .bars250 div.player-track-title { left:262px; }
382
+ .bars250 div.dloadmp3-MI { left:252px; width:27%;}
383
+ .bars250 div.bars_holder { left:252px; width:auto; }
384
+ .bars250 .MI-image img { padding:1px; }
385
+ .bars250 div.player-track-title { top:20px; }
386
+
387
+ /* ===== "bars300" ===== */
388
+ .bars300 div.player-track-title { left:312px; }
389
+ .bars300 div.dloadmp3-MI { left:302px; width:24%; }
390
+ .bars300 div.bars_holder { left:302px; width:auto; }
391
+ .bars300 .MI-image img { padding:1px; }
392
+ .bars300 div.player-track-title { top:20px; }
393
+
394
+ /* ===== "bars350" ===== */
395
+ .bars350 div.player-track-title { left:362px; }
396
+ .bars350 div.dloadmp3-MI { left:352px; width:21%;}
397
+ .bars350 div.bars_holder { left:352px; width:auto; }
398
+ .bars350 .MI-image img { padding:1px; }
399
+ .bars350 div.player-track-title { top:20px; }
400
+
401
+ /* ===== "bars400" ===== */
402
+ .bars400 div.player-track-title { left:412px; }
403
+ .bars400 div.dloadmp3-MI { left:402px; width:18%; }
404
+ .bars400 div.bars_holder { left:402px; width:auto; }
405
+ .bars400 .MI-image img { padding:1px; }
406
+ .bars400 div.player-track-title { top:20px; }
407
+
408
+ /* ===== bigger1 ===== */
409
+ .bigger1 { font-size:18px; line-height:26px !important; margin:0 !important; }
410
+ .bigger1 span.load_mp3j,
411
+ .bigger1 span.loadB_mp3j { top:24px; left:0px; height:2px; }
412
+ .bigger1 span.posbar_mp3j .ui-slider-handle { top: 3px; height:24px; width:6px !important; margin-left:-3px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
413
+ .bigger1 span.posbarB_mp3j .ui-slider-handle { top: 3px; margin-left:-3px !important; border:1px solid #999; height:24px; width:6px !important; z-index:500; background:url('images/mp3t-poshandle.png') repeat-y -50px 0px; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
414
+ .bigger1 span.posbarB_mp3j .ui-slider-handle:hover { background:url('images/mp3t-poshandle.png') repeat-y 0px 0px; border-color:#aaa; }
415
+ .bigger1 span.buttons_mp3j { position:relative; margin:0px; margin-left:5px !important; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -80px 0px; }
416
+ .bigger1 span.buttons_mp3j:hover { background:transparent url('images/transport-shard-B.png') no-repeat -80px -32px; }
417
+ .bigger1 span.buttons_mp3jpause { position:relative; margin:0px; margin-left:5px !important; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -2px 0px; }
418
+ .bigger1 span.buttons_mp3jpause:hover { background:transparent url('images/transport-shard-B.png') no-repeat -2px -32px; }
419
+ .bigger1 span.vol_mp3j { position:absolute; top:-6px; right:7px; width:85%; max-width:100px; height:2px; }
420
+
421
+ .bigger1 div.player-track-title { font:normal normal 500 18px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
422
+ .bigger1 div.player-track-title span { font:normal normal 500 14px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
423
+ .bigger1 ul.UL-MI_mp3j li a, .bigger1 ul.UL-MI_mp3j li { font-size:16px !important; line-height:19px !important; }
424
+ .bigger1 .indi_mp3j { font-size: 0.6em !important; }
425
+
426
+ /* ===== "bigger2" ===== */
427
+ .bigger2 div.player-track-title { font:normal normal 500 36px/38px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
428
+ .bigger2 div.player-track-title span { font:normal normal 500 20px/22px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
429
+ .bigger2 ul.UL-MI_mp3j li a, .bigger2 ul.UL-MI_mp3j li { font-size:20px !important; line-height:24px !important; }
430
+ .bigger2 { font-size:23px; line-height:25px !important; margin:0 !important; }
431
+ .bigger2 span.load_mp3j,
432
+ .bigger2 span.loadB_mp3j { top:26px; left:0px; height:2px; }
433
+ .bigger2 span.posbar_mp3j .ui-slider-handle { top: 0px; height:28px; width:6px !important; margin-left:-3px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
434
+ .bigger2 span.posbarB_mp3j .ui-slider-handle { top: -1px; margin-left:-3px !important; border:1px solid #999; height:29px; width:8px !important; z-index:500; border-color:#aaa; background:url('images/mp3t-poshandle.png') repeat-y 0px 0px; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
435
+ .bigger2 span.posbarB_mp3j .ui-slider-handle:hover { background:url('images/mp3t-poshandle.png') repeat-y -50px 0px; border-color:#999; }
436
+ .bigger2 span.buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:2px 0px 4px 20px !important; background:url('images/play-dark2-b.png') no-repeat -186px center; border:0px solid #bbb; margin-left:10px; }
437
+ .bigger2 span.buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -437px center; }
438
+ .bigger2 span.buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:0px 0px 2px 20px !important; background:url('images/stop-dark2-b.png') repeat-y 0px top; border:0px solid #bbb; margin-left:10px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
439
+ .bigger2 span.buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
440
+ .bigger2 span.vol_mp3j { position:absolute; top:-12px; right:4px; width:85%; max-width:100px; height:2px; }
441
+ .bigger2 span.vol_mp3t { position:absolute; top:-10px; width:85%; max-width:100px; height:2px; }
442
+ .bigger2 .Smp3-finding,
443
+ .bigger2 .mp3-tint,
444
+ .bigger2 .mp3-gtint { margin-left:8px; margin-right:6px; padding:0px 0px 0px 10px !important; font-size:12px !important; line-height:12px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
445
+ .bigger2 .mp3-gtint { margin:0 6px 0 -16px; }
446
+ .bigger2 .indi_mp3j { font-size: 0.5em !important; padding-left:0px; }
447
+
448
+ .bigger2.wh .buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:2px 0px 4px 20px !important; background:url('images/play-dark2-w.png') no-repeat -186px center; border:0px solid #bbb; margin-left:10px; }
449
+ .bigger2.wh .buttons_mp3j:hover { background:url('images/play-dark2-w.png') no-repeat -437px center; }
450
+ .bigger2.wh .buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:0px 0px 2px 20px !important; background:url('images/stop-dark2-w.png') repeat-y 0px top; border:0px solid #bbb; margin-left:10px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
451
+ .bigger2.wh .buttons_mp3jpause:hover { background:url('images/stop-dark2-w.png') repeat-y -350px top; }
452
+
453
+
454
+
455
+ /* ===== bigger3 ===== */
456
+ .bigger3 { font-size:28px; line-height:36px !important; margin:0 !important; }
457
+ .bigger3 .load_mp3j, .bigger3 .loadB_mp3j { top:37px; left:0px; height:3px; }
458
+ .bigger3 .posbar_mp3j .ui-slider-handle, .bigger3 .posbarB_mp3j .ui-slider-handle { top: 0px; border:1px solid #bbb; height:40px; width:12px !important; margin-left:-5px !important; background:url('images/stop-dark2.png') repeat-y -350px top; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
459
+ .bigger3 .posbar_mp3j .ui-slider-handle:hover, .bigger3 .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2.png') repeat-y 0px top; border:1px solid #aaa; }
460
+ .bigger3 .indi_mp3j { font-size: 0.5em !important; }
461
+ .bigger3 span.buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:8px 0px 12px 30px !important; background:url('images/play-dark2.png') no-repeat -177px center; border:0px solid #bbb; margin-left:12px; }
462
+ .bigger3 span.buttons_mp3j:hover { background:url('images/play-dark2.png') no-repeat -428px center; }
463
+ .bigger3 span.buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:2px 0px 6px 30px !important; background:url('images/stop-dark2.png') repeat-y 0px top; border:0px solid #bbb; margin-left:12px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
464
+ .bigger3 span.buttons_mp3jpause:hover { background:url('images/stop-dark2.png') repeat-y -350px top; }
465
+ .bigger3 .vol_mp3j { height:1px; max-width:110px; right:64px; top:-8px; }
466
+ .bigger3 .vol_mp3t { height:1px; max-width:110px; right:16px; top:-5px; }
467
+ .bigger3 .vol_mp3j .ui-slider-handle, .bigger3 .vol_mp3t .ui-slider-handle { height:14px !important; width:33px !important; margin-left:-16px; border-bottom:1px solid #ccc !important; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; top:-14px; background:url('images/volhandle-dark2.png') no-repeat -10px bottom; }
468
+ .bigger3 .vol_mp3j .ui-slider-handle:hover, .bigger3 .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2.png') no-repeat -257px bottom; }
469
+ .bigger3 .Smp3-finding,
470
+ .bigger3 .mp3-tint,
471
+ .bigger3 .mp3-gtint { margin-left:8px; padding:0px 0px 0px 14px !important; font-size:18px !important; line-height:20px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
472
+ .bigger3 .mp3-gtint { margin:0 2px 0 -14px; }
473
+ .bigger3 div.player-track-title { font:normal normal 500 44px/46px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
474
+ .bigger3 div.player-track-title span { font:normal normal 500 28px/30px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
475
+ .bigger3 ul.UL-MI_mp3j li a, .bigger3 ul.UL-MI_mp3j li { font-size:28px !important; line-height:30px !important; }
476
+
477
+ .bigger3.bl span.buttons_mp3j { background:url('images/play-dark2-b.png') no-repeat -177px center; }
478
+ .bigger3.bl span.buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -428px center; }
479
+ .bigger3.bl span.buttons_mp3jpause { background:url('images/stop-dark2-b.png') repeat-y 0px top; }
480
+ .bigger3.bl span.buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
481
+ .bigger3.bl span.vol_mp3j .ui-slider-handle, .bigger3.bl span.vol_mp3t .ui-slider-handle { background:url('images/volhandle-dark2-b.png') no-repeat -10px bottom; }
482
+ .bigger3.bl span.vol_mp3j .ui-slider-handle:hover, .bigger3.bl span.vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-b.png') no-repeat -257px bottom; }
483
+
484
+
485
+
486
+ /* ===== bigger4 ===== */
487
+ .bigger4 { font-size:38px; line-height:46px !important; margin:0 !important; }
488
+ .bigger4 .load_mp3j, .bigger4 .loadB_mp3j { top:46px; left:0px; height:3px; }
489
+ .bigger4 .posbar_mp3j .ui-slider-handle, .bigger4 .posbarB_mp3j .ui-slider-handle { top: -2px; border:1px solid #bbb; height:52px; width:16px !important; margin-left:-8px !important; background:url('images/stop-dark2.png') repeat-y -350px top; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
490
+ .bigger4 .posbar_mp3j .ui-slider-handle:hover, .bigger4 .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2.png') repeat-y 0px top; border:1px solid #aaa; }
491
+ .bigger4 .indi_mp3j { font-size: 0.5em !important; }
492
+ .bigger4 span.buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:8px 0px 12px 40px !important; background:url('images/play-dark2.png') no-repeat -167px center; border:0px solid #bbb; margin-left:15px; }
493
+ .bigger4 span.buttons_mp3j:hover { background:url('images/play-dark2.png') no-repeat -418px center; }
494
+ .bigger4 span.buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:2px 0px 4px 40px !important; background:url('images/stop-dark2.png') repeat-y 0px top; border:0px solid #bbb; margin-left:15px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
495
+ .bigger4 span.buttons_mp3jpause:hover { background:url('images/stop-dark2.png') repeat-y -350px top; }
496
+ .bigger4 .vol_mp3j { height:1px; max-width:110px; right:86px; top:-8px; }
497
+ .bigger4 .vol_mp3t { height:1px; max-width:110px; right:20px; top:-5px; }
498
+ .bigger4 .vol_mp3j .ui-slider-handle, .bigger4 .vol_mp3t .ui-slider-handle { height:20px !important; width:43px !important; margin-left:-21px; border-bottom:1px solid #ccc !important; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; top:-20px; background:url('images/volhandle-dark2.png') no-repeat -10px bottom; }
499
+ .bigger4 .vol_mp3j .ui-slider-handle:hover, .bigger4 .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2.png') no-repeat -257px bottom; }
500
+ .bigger4 .Smp3-finding,
501
+ .bigger4 .mp3-tint,
502
+ .bigger4 .mp3-gtint { margin-left:8px; margin-right:6px; padding:0px 0px 0px 14px !important; font-size:18px !important; line-height:20px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
503
+ .bigger4 .mp3-gtint { margin:0 6px 0 -20px; }
504
+
505
+ .bigger4 div.player-track-title { font:normal normal 500 44px/46px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
506
+ .bigger4 div.player-track-title span { font:normal normal 500 28px/30px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
507
+ .bigger4 ul.UL-MI_mp3j li a, .bigger4 ul.UL-MI_mp3j li { font-size:28px !important; line-height:30px !important; }
508
+
509
+ .bigger4.bl .posbar_mp3j .ui-slider-handle, .bigger4.bl .posbarB_mp3j .ui-slider-handle { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
510
+ .bigger4.bl .posbar_mp3j .ui-slider-handle:hover, .bigger4.bl .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2-b.png') repeat-y 0px top; }
511
+ .bigger4.bl .buttons_mp3j { background:url('images/play-dark2-b.png') no-repeat -167px center; }
512
+ .bigger4.bl .buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -418px center; }
513
+ .bigger4.bl .buttons_mp3jpause { background:url('images/stop-dark2-b.png') repeat-y 0px top; }
514
+ .bigger4.bl .buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
515
+ .bigger4.bl .vol_mp3j .ui-slider-handle, .bigger4.bl .vol_mp3t .ui-slider-handle { background:url('images/volhandle-dark2-b.png') no-repeat -10px bottom; }
516
+ .bigger4.bl .vol_mp3j .ui-slider-handle:hover, .bigger4.bl .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-b.png') no-repeat -257px bottom; }
517
+
518
+
519
+
520
+ /* ===== bigger5 ===== */
521
+ .bigger5 { font-size:48px; line-height:60px !important; margin:0 !important; }
522
+ .bigger5 .load_mp3j, .bigger5 .loadB_mp3j { top:63px; left:0px; height:4px; }
523
+ .bigger5 .posbar_mp3j .ui-slider-handle, .bigger5 .posbarB_mp3j .ui-slider-handle { top: -1px; border:1px solid #bbb; height:69px; width:20px !important; margin-left:-10px !important; background:url('images/stop-dark2.png') repeat-y -350px top; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
524
+ .bigger5 .posbar_mp3j .ui-slider-handle:hover, .bigger5 .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2.png') repeat-y 0px top; border:1px solid #aaa; }
525
+ .bigger5 .indi_mp3j { font-size: 0.5em !important; }
526
+ .bigger5 span.buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:8px 0px 13px 52px !important; background:url('images/play-dark2.png') no-repeat -154px center; border:0px solid #bbb; margin-left:20px; }
527
+ .bigger5 span.buttons_mp3j:hover { background:url('images/play-dark2.png') no-repeat -405px center; }
528
+ .bigger5 span.buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:3px 0px 8px 52px !important; background:url('images/stop-dark2.png') repeat-y 0px top; border:0px solid #bbb; margin-left:15px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
529
+ .bigger5 span.buttons_mp3jpause:hover { background:url('images/stop-dark2.png') repeat-y -350px top; }
530
+ .bigger5 .vol_mp3j { height:1px; max-width:170px; right:115px; top:-10px; }
531
+ .bigger5 .vol_mp3t { height:1px; max-width:170px; right:33px; top:-5px; }
532
+ .bigger5 .vol_mp3j .ui-slider-handle, .bigger5 .vol_mp3t .ui-slider-handle { height:30px !important; width:55px !important; margin-left:-21px; border-bottom:1px solid #aaa !important; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; top:-30px; background:url('images/volhandle-dark2.png') no-repeat -10px bottom; }
533
+ .bigger5 .vol_mp3j .ui-slider-handle:hover, .bigger5 .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2.png') no-repeat -257px bottom; }
534
+ .bigger5 .Smp3-finding,
535
+ .bigger5 .mp3-tint,
536
+ .bigger5 .mp3-gtint { margin-left:8px; margin-right:6px; padding:0px 0px 0px 14px !important; font-size:18px !important; line-height:20px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
537
+ .bigger5 .mp3-gtint { margin:0 6px 0 -20px; }
538
+
539
+ .bigger5.bl .posbar_mp3j .ui-slider-handle, .bigger5.bl .posbarB_mp3j .ui-slider-handle { background:url('images/stop-dark2-b.png') repeat-y -350px top; border:1px solid #888; }
540
+ .bigger5.bl .posbar_mp3j .ui-slider-handle:hover, .bigger5.bl .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2-b.png') repeat-y 0px top; border:1px solid #777; }
541
+ .bigger5.bl .buttons_mp3j { background:url('images/play-dark2-b.png') no-repeat -154px center; border:0px solid #bbb; margin-left:20px; }
542
+ .bigger5.bl .buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -405px center; }
543
+ .bigger5.bl .buttons_mp3jpause { background:url('images/stop-dark2-b.png') repeat-y 0px top; }
544
+ .bigger5.bl .buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
545
+ .bigger5.bl .vol_mp3j .ui-slider-handle, .bigger5.bl .vol_mp3t .ui-slider-handle { background:url('images/volhandle-dark2-b.png') no-repeat -10px bottom; }
546
+ .bigger5.bl .vol_mp3j .ui-slider-handle:hover, .bigger5.bl .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-b.png') no-repeat -257px bottom; }
547
+
548
+
549
+ /* ===== smaller ===== */
550
+ .smaller div.player-track-title { font:normal normal 500 11px/13px 'verdana', 'Lucida Grande', 'arial', sans-serif !important; left:5px; right:5px; }
551
+ .smaller div.player-track-title span { font:normal normal 500 10px/10px 'verdana', 'Lucida Grande', 'arial', sans-serif !important; padding:0; }
552
+ .smaller ul.UL-MI_mp3j li a, .smaller ul.UL-MI_mp3j li { font-size:10px !important; font-family:'verdana', Helvetica, sans-serif !important; line-height:13px !important; }
553
+
554
+
555
+ /* ===== outline ==== */
556
+ span.outline { font-size:14px; line-height:22px !important; margin:0 !important; }
557
+ .outline span.vol_mp3t { position:absolute; top:-4px; right:4px; width:90%; max-width:100px; height:2px; background: transparent; }
558
+ .outline span.vol_mp3j { position:absolute; top:-9px; right:7px; width:85%; max-width:100px; height:2px; background: transparent; }
559
+ .outline span.buttons_mp3j { padding:2px 0px 5px 20px !important; background: transparent url('images/transport-outline.png') no-repeat -80px -1px; border:0; margin:0; }
560
+ .outline span.buttons_mp3j:hover { background:transparent url('images/transport-outline.png') no-repeat -80px -33px; }
561
+ .outline span.buttons_mp3jpause { padding:2px 0px 5px 20px !important; background: transparent url('images/transport-outline.png') no-repeat 1px -1px; border:0; margin:0; }
562
+ .outline span.buttons_mp3jpause:hover { background:transparent url('images/transport-outline.png') no-repeat 1px -33px; }
563
+ .outline span.posbarB_mp3j { position:absolute; width:100%; height:100%; border:0px solid #f77; }
564
+ .outline span.posbarB_mp3j .ui-widget-header { z-index:-500; }
565
+ .outline span.posbarB_mp3j .ui-slider-handle { top: 0px; margin-left:0px; border:1px solid #aaa; height:23px; width:5px !important; z-index:500; background:url('images/t10b.png') repeat; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
566
+ .outline span.posbarB_mp3j .ui-slider-handle:hover { background:url('images/t20b.png') repeat; border-color:#777; }
567
+ .outline div.transport-MI div { background-image: url("images/transport-hardZ.png"); }
568
+ .outline div.mp3j-popout-MI { background-image:url('images/buttons-popoutF.png'); }
569
+
570
+ .dark.outline div.transport-MI div { background-image: url("images/transport-hardK.png"); }
571
+ .dark.outline div.mp3j-popout-MI { background-image:url('images/buttons-popoutF.png'); }
572
+
573
+
574
+ /* ===== wtransbars ==== */
575
+ .wtransbars div.loadMI_mp3j { background:#fff; opacity:0.1; filter:alpha(opacity=10); }
576
+ .wtransbars div.poscolMI_mp3j { background:#fff url('images/posbar-soften-tipped-2.png') repeat-y right top; opacity:0.15; filter:alpha(opacity=15); }
577
+ .wtransbars div.player-track-title { color:#fff; }
578
+
579
+ /* ===== btransbars ==== */
580
+ .btransbars div.loadMI_mp3j { background:#000; opacity:0.1; filter:alpha(opacity=10); }
581
+ .btransbars div.poscolMI_mp3j { background:#000 url('images/posbar-soften-tipped-2.png') repeat-y right top; opacity:0.15; filter:alpha(opacity=15); }
582
+ .btransbars div.player-track-title { color:#000; }
583
+
584
+
585
+
586
+
587
+
588
+
589
+
590
+
591
+
592
+
593
+
594
+
595
+
css/players-1-8-text.css CHANGED
@@ -1,519 +1,519 @@
1
- /*
2
- MP3-jPlayer 1.8.1 - Text
3
- www.sjward.org */
4
-
5
- /*---------------------
6
- [mp3-jplayer] SHORTCODE
7
- ==================================== */
8
-
9
- /* SKIN
10
- --------------- */
11
- /* MAIN WRAPPER (default class) */
12
- div.wrap-MI { border:0; margin:0; background:none; min-width:116px; /* position||float set in-line! */ /* width set in-line! */ }
13
-
14
- /* SUB WRAPPERS */
15
- div.jp-innerwrap, div.jp-interface, div.listwrap_mp3j, div.playlist-wrap-MI { position:relative !important; width:100%; border:0; margin:0; padding:0; }
16
- div.jp-innerwrap { background:none; }
17
- div.jp-interface { background:url('images/shadow-x.png') repeat-x left bottom; height:101px/*player default height*/; min-height:67px; cursor:default; }
18
- div.listwrap_mp3j { margin-top:0px; /* background set from admin */ }
19
-
20
- /* BACKGROUNDS */
21
- div.innerx, div.innerleft, div.innerright, div.innertab { position:absolute; }
22
- div.innerx { background:url('images/case-grad-x.png') repeat-x left -45px; width:auto; height:35px; left:0px; right:0px; bottom:3px; }
23
- div.innerleft { background:url('images/shadow-l.png') no-repeat left bottom; width:1px; height:40px; left:-1px; bottom:0px; }
24
- div.innerright { background:url('images/shadow-r.png') no-repeat right bottom; width:2px; height:40px; right:-2px; bottom:0px; }
25
- div.innertab { /* background and opacity set from admin */ left:0px; top:0px; width:100%; bottom:38px; }
26
-
27
- /* PLAYLIST
28
- ----------------- */
29
- div.playlist-colour { position:absolute; width:100%; height:100%; left:0px; top:0px; /* background set from admin */ /* opacity set from admin */ }
30
- div.playlist-wrap-MI ul { position:static; }
31
- ul.UL-MI_mp3j { margin:0px !important; padding:0px 0px 0px 0px !important; list-style-type:none !important; list-style:none !important; list-style-image:none !important; font-weight: 500 !important; /* background */ }
32
- ul.UL-MI_mp3j li { margin:0px !important; padding:0px 0px 1px 0px !important; list-style-type:none !important; font-weight:500 !important; line-height:15px !important; letter-spacing:0px !important; font-size:11px !important; word-spacing:0px !important; margin:0px 1px 0px 1px !important; }
33
- ul.UL-MI_mp3j li:before { content:none !important; }
34
- ul.UL-MI_mp3j li a { font-size:11px !important; border:0 !important; line-height:15px !important; font-weight:500 !important; text-decoration:none !important; display:block !important; width:auto !important; font-family:'verdana', 'Lucida Grande', 'arial', sans-serif !important; outline:none !important; padding:6px 0px 6px 14px !important; }
35
-
36
- /* SCREEN
37
- ----------------- */
38
- div.player-track-title, div.jp-play-time, div.jp-total-time, div.statusMI { position:absolute; z-index:50; /* color set from admin */ font:normal normal 500 14px/16px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
39
-
40
- div.player-track-title { top:7px; left:9px; width:auto; right:10px; }
41
- div.player-track-title span { font-size:10px; line-height:12px; padding-left:10px; max-width:95%; }
42
-
43
- div.jp-play-time, div.jp-total-time, div.statusMI { font-size:8px; line-height:10px !important; bottom:42px; text-align:left; font-family:Verdana, Arial, Helvetica, sans-serif; }
44
- div.jp-play-time { right:84px; }
45
- div.jp-total-time { right:6px; opacity:0.8; width:auto; }
46
-
47
- span.mp3-finding, span.Smp3-finding, span.mp3-tint, span.mp3-gtint { padding:0px 0px 0px 6px !important; font-size:8px !important; line-height:10px !important; height:10px !important; overflow:hidden !important; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; }
48
- span.mp3-finding, span.Smp3-finding { margin:0px 0px 0px -2px; background:url('images/finding-bar1f.gif') repeat 0px 3px; }
49
- span.mp3-tint { margin:0px 2px 0px -6px; opacity:.5; filter:alpha(opacity=50); /* background */ }
50
- span.mp3-gtint { margin:0px 2px 0px -6px; opacity:.5; filter:alpha(opacity=50); background:#777; }
51
- span.Smp3-finding { margin:0px 0px 0px 3px; }
52
- span.tintmarg { margin:0 2px 0 3px; }
53
-
54
- div.statusMI { right:27px; width:52px !important; height:10px; }
55
- .statusMI span.mp3-finding, .statusMI span.Smp3-finding, .statusMI span.mp3-tint, .statusMI span.mp3-gtint { padding:0px 0px 0px 6px !important; }
56
- .statusMI span.mp3-tint, .statusMI span.mp3-gtint { margin:0px 2px 0px -6px; }
57
-
58
- .MI-image { position:absolute; top:0; left:0; padding:0; }
59
- .MI-image a img { border:none; padding:1px; background-color:#ccc; }
60
- .MI-image a:hover img { /* background-colour */ }
61
-
62
- /* BUTTONS
63
- ----------------- */
64
- /* TRANSPORT BUTTONS */
65
- div.transport-MI { position:absolute; width:auto; height:37px; right:2px; bottom:0px; border:0; }
66
- div.transport-MI div { float:right; }
67
- /* play */
68
- div.buttons_mp3j { width:30px; height:32px; margin:1px 0px 0px 0px; background-position:-110px 0px; }
69
- div.buttons_mp3j:hover { background-position:-110px -32px; }
70
- /* pause */
71
- div.buttons_mp3jpause { width:30px; height:32px; margin:1px 0px 0px 0px; background-position:-2px 0px; }
72
- div.buttons_mp3jpause:hover { background-position:-2px -32px; }
73
- /* prev n next */
74
- div.Prev_mp3j { width:22px; height:28px; margin:1px 4px 0px 0px; background-position:-32px -1px; }
75
- div.Prev_mp3j:hover { background-position:-32px -33px; }
76
- div.Next_mp3j { width:19px; height:28px; margin:1px 3px 0px 0px; background-position:-57px -1px; }
77
- div.Next_mp3j:hover { background-position:-57px -33px; }
78
- /* stop */
79
- div.stop_mp3j { width:26px; height:32px; margin:1px 3px 0px 0px; background-position:-81px 0px; }
80
- div.stop_mp3j:hover { background-position:-81px -32px; }
81
-
82
- /* PLAYLIST TOGGLE */
83
- div.playlist-toggle-MI { position:absolute; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif; bottom:4px; left:1px; color:#707070; padding:2px 6px 2px 5px; line-height:9px; min-width:24px; background:#bcbcbc; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; cursor:default; }
84
- div.playlist-toggle-MI:hover { background:#c6c6c6; color:#777; }
85
-
86
- /* DOWNLOAD BUTTON */
87
- div.dloadmp3-MI { position:absolute; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif !important; bottom:39px; margin:0px !important; font-size:9px !important; text-align:center; left:0px; width:41%; min-width:75px; max-width:425px; padding:0px 0px 0px 0px !important; border:0px; background:transparent url('images/t10b.png') repeat left top !important; color:#fff; line-height:11px !important; -moz-border-radius-topright:3px; -webkit-border-top-right-radius:3px; overflow:hidden; z-index:150; cursor:default; }
88
- div.dloadmp3-MI.whilelinks, div.dloadmp3-MI.logintext { }
89
- div.dloadmp3-MI.whilelinks:hover { }
90
- div.dloadmp3-MI a { display:block; width:auto; padding:1px 5px 2px 2px !important; margin:0px !important; background:transparent; text-decoration:none !important; height:100%; border-bottom:none; visibility:hidden; }
91
- div.dloadmp3-MI a:hover { outline: none; border-bottom: none; color: #ececec; }
92
- div.dloadmp3-MI.whilelinks a { visibility: inherit; }
93
- div.dloadmp3-MI.whilelinks a:hover { }
94
- div.dloadmp3-MI p { display:block; width:auto; padding:1px 5px 2px 2px !important; margin:0px !important; background:transparent; text-decoration:none !important; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif !important; font-size:9px !important; line-height:11px !important; /* after font declaration */ height:100%; border-bottom:none; visibility:visible; }
95
-
96
- /* POPOUT BUTTON */
97
- div.mp3j-popout-MI { position:absolute; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif; bottom:17px; left:0px; height:16px; padding:3px 5px 0px 28px; min-width:2px; cursor:default; }
98
- div.mp3j-popout-MI:hover { background-position:-8px -95px; }
99
-
100
- /* BARS
101
- ----------------- */
102
- .ui-state-disabled { cursor:default !important; }
103
- .ui-slider { position:relative; text-align:left; }
104
- .ui-slider .ui-slider-handle { position:absolute; z-index:200; cursor:default; }
105
- .ui-slider .ui-slider-range { position:absolute; z-index:1; font-size:.7em; display:block; border:0; }
106
- .ui-slider-horizontal .ui-slider-range { top:0; height:100%; }
107
- .ui-slider-horizontal .ui-slider-range-min { left:0; }
108
- .ui-slider-horizontal .ui-slider-range-max { right:0; }
109
- .ui-state-default, .ui-widget-content .ui-state-default { outline:none; border:0px; }
110
-
111
- /* VOLUME */
112
- div.MIsliderVolume { position:absolute; top:0px; right:4px; width:108px; height:4px !important; background:transparent; border:0px; font-size:1px; cursor:default; z-index:150; }
113
- div.MIsliderVolume .ui-widget-header { /* background */ }
114
- div.MIsliderVolume .ui-slider-handle { border:0px; height:11px !important; width:10px !important; padding:0px !important; margin-left:-5px; top:-3px; border:0px !important; -moz-border-radius:2px; -webkit-border-radius:2px; background:transparent url('images/vol-handle.png') no-repeat -1px 0px; z-index:150; overflow:hidden !important; cursor:default; }
115
- div.MIsliderVolume .ui-slider-handle:hover { background:transparent url('images/vol-handle.png') no-repeat -21px 0px; }
116
- div.MIsliderVolume .ui-state-active, div.MIsliderVolume .ui-widget-content .ui-state-active { border:0px; background:transparent url('images/vol-handle.png') no-repeat -21px 0px; outline:none; }
117
-
118
- /* LOADER AND POS SLIDER */
119
- div.bars_holder, div.loadMI_mp3j, div.poscolMI_mp3j, div.posbarMI_mp3j { position:absolute; top:0px; left:0px; }
120
- div.bars_holder { right:0; width:100%; bottom:38px; font-size:1px; cursor:default; background:transparent url('images/t60w.png') repeat-x left bottom;/* 1px highlight top of control bar */ }
121
- div.loadMI_mp3j { bottom:1px; /* background */ /* opacity */ }
122
- div.poscolMI_mp3j { bottom:1px; /* background */ /* opacity */ }
123
- div.bars_holder .ui-widget-header, div.bars_holder .ui-widget-content { border:0px !important; background:none; }
124
- div.bars_holder .ui-slider-horizontal { top:0px; bottom:1px; height:auto; z-index:90; }
125
- div.posbarMI_mp3j { bottom:1px; width:100%; }
126
- div.posbarMI_mp3j .ui-slider-handle { top:-6px; margin-left:-1px !important; border:0; bottom:-2px; width:2px !important; z-index:100; background:none; cursor:default ; padding:0px !important; }
127
- div.posbarMI_mp3j .ui-slider-handle:hover { background:none; z-index:100; }
128
-
129
-
130
-
131
-
132
-
133
- /* text mods as default */
134
- div.innerx, div.innerleft, div.innerright { position: absolute; visibility: hidden; }
135
- div.innertab { bottom: 38px; }
136
- div.jp-interface { background:none; }
137
- div.player-track-title { font:normal normal 500 16px/18px 'trebuchet ms', Arial, sans-serif; }
138
- div.player-track-title span { font:italic normal 500 12px/14px 'trebuchet ms', Arial, sans-serif; opacity:0.7; filter:alpha(opacity=70); }
139
- div.jp-play-time, div.jp-total-time, div.statusMI { bottom:20px; font-size:11px; font-family: 'trebuchet ms', Arial, sans-serif; }
140
- div.jp-play-time { width:37px; left:0px; opacity:0.6; filter:alpha(opacity=60); }
141
- div.jp-total-time { width:37px; left:100px; display:none; }
142
- div.statusMI { left:37px; width:70px !important; }
143
- div.transport-MI { height:26px; right:2px; bottom:12px; }
144
- div.transport-MI div { font-family: 'trebuchet ms', Arial, sans-serif; font-weight:700; overflow:hidden !important; background:none !important; white-space:nowrap !important; }
145
- div.buttons_mp3j { text-indent:4px !important; width:32px; overflow:hidden !important; height: 25px; margin:0 6px 0 0px; background:none !important; line-height:25px !important; font-size:14px; }
146
- div.buttons_mp3jpause { text-indent:-29px !important; width:38px; overflow:hidden !important; height: 25px; margin:0 -3px 0 3px; background:none !important; line-height:25px !important; font-size:14px; }
147
- div.Prev_mp3j, div.Next_mp3j { text-indent:0px !important; height:23px; line-height:23px !important; font-size:12px; width:36px; margin:2px 0px 0px 0px; }
148
- div.stop_mp3j { text-indent:0px !important; width:31px; height:25px; margin:0px 0px 0px 4px; line-height:25px !important; font-size:14px; }
149
-
150
- div.playlist-toggle-MI { bottom: 7px; font-family:'trebuchet ms', Arial, sans-serif; background:none !important; padding:0; opacity:0.6; filter:alpha(opacity=60); }
151
- div.playlist-toggle-MI:hover { opacity:1.0; filter:alpha(opacity=100); background:none !important; }
152
- div.dloadmp3-MI { font-size:11px; bottom: 6px; height:auto; right:0px !important; left:auto; margin:0; font-family: 'trebuchet ms', Arial, sans-serif; text-align:right; background:none !important; }
153
- div.dloadmp3-MI a { color:#888; font-size:inherit; margin:0px !important; padding: 0px !important; background:none !important; text-decoration:none; }
154
- div.dloadmp3-MI a:hover { color:#555; background:none !important; }
155
- div.dloadmp3-MI.betweenlinks a { display:none; background:none !important; }
156
- div.dloadmp3-MI.whilelinks a { display:block; background:none !important; }
157
- div.dloadmp3-MI.whilelinks a:hover { text-decoration:none; background:none !important; }
158
- div.dloadmp3-MI p { font-size: inherit; margin:0px !important; padding: 0px !important; background:none !important; text-decoration:none; }
159
- div.mp3j-popout-MI { color:#888; font:normal normal 500 11px 'trebuchet ms', 'arial', sans-serif; bottom:15px; right:155px; left:auto; width:auto; opacity:1; filter:alpha(opacity=100); padding:0px; line-height:12px; border:0; background:none !important; cursor:default; z-index:500; }
160
- div.mp3j-popout-MI:hover { color:#555; opacity:1.0; filter:alpha(opacity=100); }
161
- div.MIsliderVolume { position:absolute; bottom:38px; top:auto; right:4px; width:108px !important; height:1px !important; background:transparent; border:0px; font-size:1px; cursor:default; z-index:150; }
162
- div.MIsliderVolume .ui-slider-handle, div.vol_mp3j .ui-slider-handle { height:11px !important; width:10px !important; padding:0px !important; margin-left:-5px; top:-7px; border:0px !important; -moz-border-radius:2px; -webkit-border-radius:2px; background:transparent url('images/vol-handle.png') no-repeat -41px 0px; z-index:150; overflow:hidden !important; cursor:default; }
163
- div.MIsliderVolume .ui-slider-handle:hover, div.vol_mp3j .ui-slider-handle:hover { background:transparent url('images/vol-handle.png') no-repeat -21px 0px; }
164
- div.MIsliderVolume .ui-state-active, div.MIsliderVolume .ui-widget-content .ui-state-active, div.vol_mp3j .ui-state-active, div.vol_mp3j .ui-widget-content .ui-state-active { border:0px; background:transparent url('images/vol-handle.png') no-repeat -21px 0px; outline:none; }
165
-
166
- div.dloadmp3-MI.whilelinks, div.dloadmp3-MI.logintext { background:none !important; }
167
-
168
-
169
-
170
- /* FORCED DOWNLOAD FRAME
171
- ------------------------ */
172
-
173
- div.mp3j-dlframe, iframe.mp3j-dlframe {
174
- border:0px solid #ddd;
175
- width:1px;
176
- height:1px;
177
- overflow:hidden;
178
- margin:0;
179
- padding:0;
180
- display:none !important;
181
- }
182
-
183
- /* MESSAGES */
184
- div.mp3j-finfo {
185
- position:absolute;
186
- top:36px;
187
- z-index:9999 !important;
188
- width:80%;
189
- left:10%;
190
- -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px;
191
- background:url('images/fdloadW-x.png') repeat-x left top;
192
- -webkit-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); -moz-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35);
193
- padding:0;
194
- min-height:31px;
195
- overflow:hidden;
196
- min-width:170px;
197
- }
198
-
199
- div.mp3j-finfo * { font-family:Arial, Helvetica, sans-serif !important; }
200
- div.mp3j-finfo-sleeve { position:relative !important; width:100%; height:100%; }
201
- div.mp3j-finfo-gif { position:absolute !important; top:0; left:0; right:10%; bottom:0; background:url('images/loader.gif') no-repeat center 37px; width:auto; padding:0px; height:100%; }
202
- div.mp3j-finfo-txt { position:relative !important; margin:0px 15px 0 15px !important; padding:10px 0 10px 0 !important; width:auto; }
203
- div.mp3j-finfo-close { position:absolute !important; width:31px !important; height:27px !important; padding-top:5px !important; right:0 !important; top:0 !important; text-align:center !important; font-weight:700 !important; font-size:18px !important; line-height:22px !important; color:#aaa !important; border-bottom:1px solid #ccc !important; border-left:1px solid #ccc !important; background:url('images/t40w.png') repeat left top !important; }
204
- div.mp3j-finfo-close:hover { color:#888 !important; }
205
-
206
- div.mp3j-finfo-txt h2 { font-size:15px !important; color:#333 !important; margin:0 0 10px 0 !important; }
207
- div.mp3j-finfo-txt h3 { font-size:14px !important; color:#333 !important; margin:0 0 15px 0 !important; }
208
- div.mp3j-finfo-txt p { font-size:11px !important; color:#555 !important; line-height:13px !important; margin:0 0 5px 0 !important; }
209
- div.mp3j-finfo-txt a { }
210
-
211
-
212
-
213
-
214
-
215
- .mp3j-nosolution
216
- {
217
- position:absolute;
218
- z-index:9999;
219
- height:auto;
220
- padding:5%;
221
- border:1px solid #c0c0c0;
222
- background:#f0f0f0;
223
- color:#333;
224
- top:4px;
225
- left:4px;
226
- right:4px;
227
- -webkit-border-top-left-radius: 8px;
228
- -webkit-border-top-right-radius: 8px;
229
- -moz-border-radius-topleft: 8px;
230
- -moz-border-radius-topright: 8px;
231
- border-top-left-radius: 8px;
232
- border-top-right-radius: 8px;
233
- font-size:13px;
234
- -webkit-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); -moz-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35);
235
- }
236
-
237
- .s-nosolution
238
- {
239
- }
240
-
241
-
242
-
243
-
244
- /* backwards compat
245
- ------------------- */
246
- div.player-track-title.mp3j_widgetmods { font-size: 14px; }
247
- div.player-track-title.mp3j_widgetmods span { font-size: 11px; }
248
- ul.UL-MI_mp3j.mp3j_widgetmods li { font-size:11px !important; line-height:14px !important; }
249
- ul.UL-MI_mp3j.mp3j_widgetmods li a { font-size:11px !important; line-height:14px !important; }
250
-
251
-
252
-
253
-
254
-
255
- /*-------------------------
256
- [mp3j] & [mp3t] SHORTCODES
257
- ==================================== */
258
- span.wrap_inline_mp3j { position:relative; width:auto; cursor:pointer; padding:0; white-space:nowrap; text-align:left; }
259
- /*span.wrap_inline_mp3j:hover .buttons_mp3j { background:transparent url('images/transport-shard-B.png') no-repeat -80px -35px; }*/
260
- span.indi_mp3j { position:relative; padding-left:2px; font-size: 0.7em !important; }
261
-
262
- /* BARS */
263
- span.bars_mp3j { position:absolute; width:100%; height:100%; }
264
- span.load_mp3j, span.loadB_mp3j { position:absolute; /* background */ top:20px; left:0px; height:2px; }
265
- /* mp3t */
266
- span.posbar_mp3j { position:absolute; width:100%; height:100%; border:0px solid #f77; }
267
- span.posbar_mp3j .ui-widget-header { z-index:-500; }
268
- span.posbar_mp3j .ui-slider-handle { top: 2px; margin-left:-2px; border:1px solid #999; height:21px; width:4px; z-index:500; background:url('images/t20b.png') repeat; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
269
- span.posbar_mp3j .ui-slider-handle:hover { background:url('images/t15b.png') repeat; border-color:#aaa; }
270
- /* mp3j */
271
- span.posbarB_mp3j { position:absolute; width:100%; height:100%; border:0; z-index:450; cursor:pointer; }
272
- span.posbarB_mp3j .ui-widget-header { background:transparent; z-index:450; height:100%; }
273
- span.posbarB_mp3j .ui-slider-handle { top: 0px; margin-left:-6px !important; border:0px solid #888; height:23px; width:12px !important; z-index: 500; background: transparent url('images/inlineHandle2.png') no-repeat -3px -3px; cursor: default; padding:0px !important; }
274
- span.posbarB_mp3j .ui-slider-handle:hover { background: transparent url('images/inlineHandle2.png') no-repeat -3px -33px; }
275
-
276
- /* SPAN TRANSPORT */
277
- span.group_wrap { position:relative; margin:0px 0px 0px 0px; width:auto; }
278
- span.textbutton_mp3j, span.T_mp3j { position:relative; width:auto; margin:0px; padding:0px; }
279
- span.buttons_mp3j { position:relative; margin:0px; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -80px -3px; }
280
- span.buttons_mp3j:hover { background:transparent url('images/transport-shard-B.png') no-repeat -80px -35px; }
281
- span.buttons_mp3jpause { position:relative; margin:0px; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -2px -3px; }
282
- span.buttons_mp3jpause:hover { background:transparent url('images/transport-shard-B.png') no-repeat -2px -35px; }
283
-
284
- /* VOLUMES */
285
- span.vol_mp3t { position:absolute; top:-4px; right:4px; width:90%; max-width:100px; height:2px; }
286
- span.vol_mp3j { position:absolute; top:-9px; right:5px; width:85%; max-width:100px; height:2px; }
287
- span.vol_mp3j.flipped { right:4px; }
288
- span.vol_mp3t .ui-widget-header, span.vol_mp3j .ui-widget-header { background: transparent url('images/vol-grad60b2.png') repeat left top; z-index:500; height:100%; }
289
- span.vol_mp3t .ui-slider-handle, span.vol_mp3j .ui-slider-handle { height:11px !important; width:10px !important; padding:0px !important; margin-left:-5px; border:0px !important; border-radius:2px; -moz-border-radius:2px; -webkit-border-radius:2px; z-index:600; overflow:hidden !important; cursor:default; top:-6px; background: transparent url('images/vol-handle.png') no-repeat -1px 0px; }
290
- span.vol_mp3t .ui-slider-handle:hover, span.vol_mp3j .ui-slider-handle:hover { background: transparent url('images/vol-handle.png') no-repeat -21px 0px; }
291
- span.vol_mp3t .ui-state-active, span.vol_mp3t .ui-widget-content .ui-state-active, span.vol_mp3j .ui-state-active, span.vol_mp3j .ui-widget-content .ui-state-active { background:transparent url('images/vol-handle.png') no-repeat -21px 0px; outline:none; border:0px; }
292
-
293
-
294
- /*----------------------
295
- [mp3j-popout] SHORTCODE
296
- ================================================= */
297
- .mp3j-popout-link-wrap { cursor:pointer; position:relative; clear:left; }
298
- .mp3j-popout-link { float:left; margin:0 5px 0 0; min-width:22px; min-height:18px; background:url('images/buttons-popout.png') no-repeat -10px -65px; }
299
- .mp3j-popout-link-wrap:hover .mp3j-popout-link { background:url('images/buttons-popout.png') no-repeat -10px -95px; }
300
-
301
-
302
-
303
-
304
- /*-------------
305
- CUSTOM CLASSES
306
- (via 'style' param in shortcode)
307
- ================================================= */
308
-
309
-
310
- /* ===== "nolistbutton" ===== */
311
- .nolistbutton div.playlist-toggle-MI { visibility:hidden; }
312
-
313
- /* ===== "nopopoutbutton" ===== */
314
- .nopopoutbutton div.mp3j-popout-MI { display:none; }
315
-
316
- /* ===== "nopn" ===== */
317
- .nopn div.Prev_mp3j { display:none; }
318
- .nopn div.Next_mp3j { display:none; }
319
-
320
- /* ===== "nostop" ===== */
321
- .nostop div.stop_mp3j { display:none; }
322
-
323
-
324
- /* ===== "bars100" ===== */
325
- .bars100 div.player-track-title { left:112px; }
326
- .bars100 div.dloadmp3-MI { left:102px; width:36%;}
327
- .bars100 div.bars_holder { left:102px; width:auto; }
328
- .bars100 .MI-image img { padding:1px; background-color:transparent; }
329
-
330
- /* ===== "bars150" ===== */
331
- .bars150 div.player-track-title { left:162px; }
332
- .bars150 div.dloadmp3-MI { left:152px; width:33%;}
333
- .bars150 div.bars_holder { left:152px; width:auto; }
334
- .bars150 .MI-image img { padding:1px; background-color:transparent; }
335
-
336
- /* ===== "bars200" ===== */
337
- .bars200 div.player-track-title { left:212px; }
338
- .bars200 div.dloadmp3-MI { left:202px; width:30%; }
339
- .bars200 div.bars_holder { left:202px; width:auto; }
340
- .bars200 .MI-image img { padding:1px; background-color:transparent; }
341
-
342
- /* ===== "bars250" ===== */
343
- .bars250 div.player-track-title { left:262px; }
344
- .bars250 div.dloadmp3-MI { left:252px; width:27%;}
345
- .bars250 div.bars_holder { left:252px; width:auto; }
346
- .bars250 .MI-image img { padding:1px; background-color:transparent; }
347
-
348
- /* ===== "bars300" ===== */
349
- .bars300 div.player-track-title { left:312px; }
350
- .bars300 div.dloadmp3-MI { left:302px; width:24%; }
351
- .bars300 div.bars_holder { left:302px; width:auto; }
352
- .bars300 .MI-image img { padding:1px; background-color:transparent; }
353
-
354
- /* ===== "bars350" ===== */
355
- .bars350 div.player-track-title { left:362px; }
356
- .bars350 div.dloadmp3-MI { left:352px; width:21%;}
357
- .bars350 div.bars_holder { left:352px; width:auto; }
358
- .bars350 .MI-image img { padding:1px; background-color:#transparent; }
359
-
360
- /* ===== "bars400" ===== */
361
- .bars400 div.player-track-title { left:412px; }
362
- .bars400 div.dloadmp3-MI { left:402px; width:18%; }
363
- .bars400 div.bars_holder { left:402px; width:auto; }
364
- .bars400 .MI-image img { padding:1px; background-color:transparent; }
365
-
366
- /* ===== bigger1 ===== */
367
- .bigger1 { font-size:18px; line-height:26px !important; margin:0 !important; }
368
- .bigger1 span.load_mp3j,
369
- .bigger1 span.loadB_mp3j { top:24px; left:0px; height:2px; }
370
- .bigger1 span.posbar_mp3j .ui-slider-handle { top: 3px; height:24px; width:6px !important; margin-left:-3px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
371
- .bigger1 span.posbarB_mp3j .ui-slider-handle { top: 3px; margin-left:-3px !important; border:1px solid #999; height:24px; width:6px !important; z-index:500; background:url('images/mp3t-poshandle.png') repeat-y -50px 0px; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
372
- .bigger1 span.posbarB_mp3j .ui-slider-handle:hover { background:url('images/mp3t-poshandle.png') repeat-y 0px 0px; border-color:#aaa; }
373
- .bigger1 span.buttons_mp3j { position:relative; margin:0px; margin-left:5px !important; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -80px 0px; }
374
- .bigger1 span.buttons_mp3j:hover { background:transparent url('images/transport-shard-B.png') no-repeat -80px -32px; }
375
- .bigger1 span.buttons_mp3jpause { position:relative; margin:0px; margin-left:5px !important; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -2px 0px; }
376
- .bigger1 span.buttons_mp3jpause:hover { background:transparent url('images/transport-shard-B.png') no-repeat -2px -32px; }
377
- .bigger1 span.vol_mp3j { position:absolute; top:-6px; right:7px; width:85%; max-width:100px; height:2px; }
378
-
379
- .bigger1 div.player-track-title { font:normal normal 500 18px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
380
- .bigger1 div.player-track-title span { font:normal normal 500 14px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
381
- .bigger1 ul.UL-MI_mp3j li a, .bigger1 ul.UL-MI_mp3j li { font-size:16px !important; line-height:19px !important; }
382
- .bigger1 .indi_mp3j { font-size: 0.6em !important; }
383
-
384
- /* ===== "bigger2" ===== */
385
- .bigger2 div.player-track-title { font:normal normal 500 36px/38px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
386
- .bigger2 div.player-track-title span { font:normal normal 500 20px/22px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
387
- .bigger2 ul.UL-MI_mp3j li a, .bigger2 ul.UL-MI_mp3j li { font-size:20px !important; line-height:24px !important; }
388
- .bigger2 { font-size:23px; line-height:25px !important; margin:0 !important; }
389
- .bigger2 span.load_mp3j,
390
- .bigger2 span.loadB_mp3j { top:26px; left:0px; height:2px; }
391
- .bigger2 span.posbar_mp3j .ui-slider-handle { top: 0px; height:28px; width:6px !important; margin-left:-3px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
392
- .bigger2 span.posbarB_mp3j .ui-slider-handle { top: -1px; margin-left:-3px !important; border:1px solid #999; height:29px; width:8px !important; z-index:500; border-color:#aaa; background:url('images/mp3t-poshandle.png') repeat-y 0px 0px; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
393
- .bigger2 span.posbarB_mp3j .ui-slider-handle:hover { background:url('images/mp3t-poshandle.png') repeat-y -50px 0px; border-color:#999; }
394
- .bigger2 .buttons_mp3j { padding:2px 0px 4px 20px !important; background:url('images/play-dark2-b.png') no-repeat -186px center; border:0px solid #bbb; margin-left:10px; }
395
- .bigger2 .buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -437px center; }
396
- .bigger2 .buttons_mp3jpause { padding:0px 0px 2px 20px !important; background:url('images/stop-dark2-b.png') repeat-y 0px top; border:0px solid #bbb; margin-left:10px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
397
- .bigger2 .buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
398
- .bigger2 span.vol_mp3j { position:absolute; top:-12px; right:4px; width:85%; max-width:100px; height:2px; }
399
- .bigger2 span.vol_mp3t { position:absolute; top:-10px; width:85%; max-width:100px; height:2px; }
400
- .bigger2 .Smp3-finding,
401
- .bigger2 .mp3-tint,
402
- .bigger2 .mp3-gtint { margin-left:8px; margin-right:6px; padding:0px 0px 0px 10px !important; font-size:12px !important; line-height:12px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
403
- .bigger2 .mp3-gtint { margin:0 6px 0 -16px; }
404
- .bigger2 .indi_mp3j { font-size: 0.5em !important; padding-left:0px; }
405
-
406
- /* ===== bigger3 ===== */
407
- .bigger3 { font-size:28px; line-height:36px !important; margin:0 !important; }
408
- .bigger3 .load_mp3j, .bigger3 .loadB_mp3j { top:37px; left:0px; height:3px; }
409
- .bigger3 .posbar_mp3j .ui-slider-handle, .bigger3 .posbarB_mp3j .ui-slider-handle { top: 0px; border:1px solid #bbb; height:40px; width:12px !important; margin-left:-5px !important; background:url('images/stop-dark2-b.png') repeat-y -350px top; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
410
- .bigger3 .posbar_mp3j .ui-slider-handle:hover, .bigger3 .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2-b.png') repeat-y 0px top; border:1px solid #aaa; }
411
- .bigger3 .indi_mp3j { font-size: 0.5em !important; }
412
- .bigger3 .buttons_mp3j { padding:8px 0px 12px 30px !important; background:url('images/play-dark2-b.png') no-repeat -177px center; border:0px solid #bbb; margin-left:12px; }
413
- .bigger3 .buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -428px center; }
414
- .bigger3 .buttons_mp3jpause { padding:2px 0px 6px 30px !important; background:url('images/stop-dark2-b.png') repeat-y 0px top; border:0px solid #bbb; margin-left:12px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
415
- .bigger3 .buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
416
- .bigger3 .vol_mp3j { height:1px; max-width:110px; right:64px; top:-8px; }
417
- .bigger3 .vol_mp3t { height:1px; max-width:110px; right:16px; top:-5px; }
418
- .bigger3 .vol_mp3j .ui-slider-handle, .bigger3 .vol_mp3t .ui-slider-handle { height:14px !important; width:33px !important; margin-left:-16px; border-bottom:1px solid #ccc !important; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; top:-14px; background:url('images/volhandle-dark2-b.png') no-repeat -10px bottom; }
419
- .bigger3 .vol_mp3j .ui-slider-handle:hover, .bigger3 .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-b.png') no-repeat -257px bottom; }
420
- .bigger3 .Smp3-finding,
421
- .bigger3 .mp3-tint,
422
- .bigger3 .mp3-gtint { margin-left:8px; padding:0px 0px 0px 14px !important; font-size:18px !important; line-height:20px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
423
- .bigger3 .mp3-gtint { margin:0 2px 0 -14px; }
424
- .bigger3 div.player-track-title { font:normal normal 500 44px/46px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
425
- .bigger3 div.player-track-title span { font:normal normal 500 28px/30px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
426
- .bigger3 ul.UL-MI_mp3j li a, .bigger3 ul.UL-MI_mp3j li { font-size:28px !important; line-height:30px !important; }
427
-
428
-
429
- /* ===== bigger4 ===== */
430
- .bigger4 { font-size:38px; line-height:46px !important; margin:0 !important; }
431
- .bigger4 .load_mp3j, .bigger4 .loadB_mp3j { top:46px; left:0px; height:3px; }
432
- .bigger4 .posbar_mp3j .ui-slider-handle, .bigger4 .posbarB_mp3j .ui-slider-handle { top: -2px; border:1px solid #bbb; height:52px; width:20px !important; margin-left:-10px !important; background:url('images/stop-dark2-b.png') repeat-y -350px top; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
433
- .bigger4 .posbar_mp3j .ui-slider-handle:hover, .bigger4 .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2-b.png') repeat-y 0px top; border:1px solid #aaa; }
434
- .bigger4 .indi_mp3j { font-size: 0.5em !important; }
435
- .bigger4 .buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:8px 0px 12px 40px !important; background:url('images/play-dark2-b.png') no-repeat -167px center; border:0px solid #bbb; margin-left:15px; }
436
- .bigger4 .buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -418px center; }
437
- .bigger4 .buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:2px 0px 4px 40px !important; background:url('images/stop-dark2-b.png') repeat-y 0px top; border:0px solid #bbb; margin-left:15px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
438
- .bigger4 .buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
439
- .bigger4 .vol_mp3j { height:1px; max-width:110px; right:86px; top:-8px; }
440
- .bigger4 .vol_mp3t { height:1px; max-width:110px; right:20px; top:-5px; }
441
- .bigger4 .vol_mp3j .ui-slider-handle, .bigger4 .vol_mp3t .ui-slider-handle { height:20px !important; width:43px !important; margin-left:-21px; border-bottom:1px solid #ccc !important; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; top:-20px; background:url('images/volhandle-dark2-b.png') no-repeat -10px bottom; }
442
- .bigger4 .vol_mp3j .ui-slider-handle:hover, .bigger4 .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-b.png') no-repeat -257px bottom; }
443
- .bigger4 .Smp3-finding,
444
- .bigger4 .mp3-tint,
445
- .bigger4 .mp3-gtint { margin-left:8px; margin-right:6px; padding:0px 0px 0px 14px !important; font-size:18px !important; line-height:20px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
446
- .bigger4 .mp3-gtint { margin:0 6px 0 -20px; }
447
-
448
- .bigger4 div.player-track-title { font:normal normal 500 44px/46px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
449
- .bigger4 div.player-track-title span { font:normal normal 500 28px/30px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
450
- .bigger4 ul.UL-MI_mp3j li a, .bigger4 ul.UL-MI_mp3j li { font-size:28px !important; line-height:30px !important; }
451
-
452
-
453
- /* ===== bigger5 ===== */
454
- .bigger5 { font-size:48px; line-height:60px !important; margin:0 !important; }
455
- .bigger5 .load_mp3j, .bigger5 .loadB_mp3j { top:63px; left:0px; height:4px; }
456
- .bigger5 .posbar_mp3j .ui-slider-handle, .bigger5 .posbarB_mp3j .ui-slider-handle { top: -1px; border:1px solid #bbb; height:69px; width:20px !important; margin-left:-10px !important; background:url('images/stop-dark2-b.png') repeat-y -350px top; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
457
- .bigger5 .posbar_mp3j .ui-slider-handle:hover, .bigger5 .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2-b.png') repeat-y 0px top; border:1px solid #aaa; }
458
- .bigger5 .indi_mp3j { font-size: 0.5em !important; }
459
- .bigger5 .buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:8px 0px 13px 52px !important; background:url('images/play-dark2-b.png') no-repeat -154px center; border:0px solid #bbb; margin-left:20px; }
460
- .bigger5 .buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -405px center; }
461
- .bigger5 .buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:3px 0px 8px 52px !important; background:url('images/stop-dark2-b.png') repeat-y 0px top; border:0px solid #bbb; margin-left:15px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
462
- .bigger5 .buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
463
- .bigger5 .vol_mp3j { height:1px; max-width:170px; right:115px; top:-10px; }
464
- .bigger5 .vol_mp3t { height:1px; max-width:170px; right:33px; top:-5px; }
465
- .bigger5 .vol_mp3j .ui-slider-handle, .bigger5 .vol_mp3t .ui-slider-handle { height:30px !important; width:55px !important; margin-left:-21px; border-bottom:1px solid #aaa !important; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; top:-30px; background:url('images/volhandle-dark2-b.png') no-repeat -10px bottom; }
466
- .bigger5 .vol_mp3j .ui-slider-handle:hover, .bigger5 .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-b.png') no-repeat -257px bottom; }
467
- .bigger5 .Smp3-finding,
468
- .bigger5 .mp3-tint,
469
- .bigger5 .mp3-gtint { margin-left:8px; margin-right:6px; padding:0px 0px 0px 14px !important; font-size:18px !important; line-height:20px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
470
- .bigger5 .mp3-gtint { margin:0 6px 0 -20px; }
471
-
472
- .bigger5.wh .posbar_mp3j .ui-slider-handle, .bigger5.wh .posbarB_mp3j .ui-slider-handle { background:url('images/stop-dark2-w.png') repeat-y -350px top; border:1px solid #888; }
473
- .bigger5.wh .posbar_mp3j .ui-slider-handle:hover, .bigger5.wh .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2-w.png') repeat-y 0px top; border:1px solid #777; }
474
- .bigger5.wh .buttons_mp3j { background:url('images/play-dark2-w.png') no-repeat -154px center; border:0px solid #bbb; margin-left:20px; }
475
- .bigger5.wh .buttons_mp3j:hover { background:url('images/play-dark2-w.png') no-repeat -405px center; }
476
- .bigger5.wh .buttons_mp3jpause { background:url('images/stop-dark2-w.png') repeat-y 0px top; }
477
- .bigger5.wh .buttons_mp3jpause:hover { background:url('images/stop-dark2-w.png') repeat-y -350px top; }
478
- .bigger5.wh .vol_mp3j .ui-slider-handle, .bigger5.wh .vol_mp3t .ui-slider-handle { background:url('images/volhandle-dark2-bw.png') no-repeat -10px bottom; }
479
- .bigger5.wh .vol_mp3j .ui-slider-handle:hover, .bigger5.wh .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-w.png') no-repeat -257px bottom; }
480
-
481
-
482
- /* ===== "smaller" ===== */
483
- .smaller div.player-track-title { font:normal normal 500 11px/13px 'verdana', 'Lucida Grande', 'arial', sans-serif !important; left:3px; right:5px; }
484
- .smaller div.player-track-title span { font:normal normal 500 10px/10px 'verdana', 'Lucida Grande', 'arial', sans-serif !important; padding:0; }
485
- .smaller ul.UL-MI_mp3j li a, .smaller ul.UL-MI_mp3j li { font-size:10px !important; font-family:'verdana', Helvetica, sans-serif !important; line-height:13px !important; }
486
-
487
-
488
-
489
-
490
-
491
-
492
-
493
- /* ===== outline ==== */
494
- span.outline { font-size:14px; line-height:22px !important; margin:0 !important; }
495
- .outline span.vol_mp3t { position:absolute; top:-4px; right:4px; width:90%; max-width:100px; height:2px; background: transparent; }
496
- .outline span.vol_mp3j { position:absolute; top:-9px; right:7px; width:85%; max-width:100px; height:2px; background: transparent; }
497
- .outline span.buttons_mp3j { padding:2px 0px 3px 20px; background: transparent url('images/transport-outline.png') no-repeat -80px -2px; border:0; margin:0; }
498
- .outline span.buttons_mp3j:hover { background:transparent url('images/transport-outline.png') no-repeat -80px -34px; }
499
- .outline span.buttons_mp3jpause { padding:2px 0px 3px 20px; background: transparent url('images/transport-outline.png') no-repeat 1px -2px; border:0; margin:0; }
500
- .outline span.buttons_mp3jpause:hover { background:transparent url('images/transport-outline.png') no-repeat 1px -34px; }
501
- .outline span.posbarB_mp3j { position:absolute; width:100%; height:100%; border:0px solid #f77; }
502
- .outline span.posbarB_mp3j .ui-widget-header { z-index:-500; }
503
- .outline span.posbarB_mp3j .ui-slider-handle { top: 0px; margin-left:0px; border:1px solid #aaa; height:23px; width:5px !important; z-index:500; background:url('images/t10b.png') repeat; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
504
- .outline span.posbarB_mp3j .ui-slider-handle:hover { background:url('images/t20b.png') repeat; border-color:#777; }
505
-
506
- .outline div.transport-MI div { background-image: url("images/transport-hardZ.png"); }
507
-
508
-
509
- /* ===== wtransbars ==== */
510
- .wtransbars div.loadMI_mp3j { background:#fff; opacity:0.1; filter:alpha(opacity=10); }
511
- .wtransbars div.poscolMI_mp3j { background:#fff url('images/posbar-soften-tipped-2.png') repeat-y right top; opacity:0.15; filter:alpha(opacity=15); }
512
- .wtransbars div.player-track-title { color:#fff; }
513
-
514
- /* ===== btransbars ==== */
515
- .btransbars div.loadMI_mp3j { background:#000; opacity:0.1; filter:alpha(opacity=10); }
516
- .btransbars div.poscolMI_mp3j { background:#000 url('images/posbar-soften-tipped-2.png') repeat-y right top; opacity:0.15; filter:alpha(opacity=15); }
517
- .btransbars div.player-track-title { color:#000; }
518
-
519
-
1
+ /*
2
+ MP3-jPlayer 1.8.1 - Text
3
+ www.sjward.org */
4
+
5
+ /*---------------------
6
+ [mp3-jplayer] SHORTCODE
7
+ ==================================== */
8
+
9
+ /* SKIN
10
+ --------------- */
11
+ /* MAIN WRAPPER (default class) */
12
+ div.wrap-MI { border:0; margin:0; background:none; min-width:116px; /* position||float set in-line! */ /* width set in-line! */ }
13
+
14
+ /* SUB WRAPPERS */
15
+ div.jp-innerwrap, div.jp-interface, div.listwrap_mp3j, div.playlist-wrap-MI { position:relative !important; width:100%; border:0; margin:0; padding:0; }
16
+ div.jp-innerwrap { background:none; }
17
+ div.jp-interface { background:url('images/shadow-x.png') repeat-x left bottom; height:101px/*player default height*/; min-height:67px; cursor:default; }
18
+ div.listwrap_mp3j { margin-top:0px; /* background set from admin */ }
19
+
20
+ /* BACKGROUNDS */
21
+ div.innerx, div.innerleft, div.innerright, div.innertab { position:absolute; }
22
+ div.innerx { background:url('images/case-grad-x.png') repeat-x left -45px; width:auto; height:35px; left:0px; right:0px; bottom:3px; }
23
+ div.innerleft { background:url('images/shadow-l.png') no-repeat left bottom; width:1px; height:40px; left:-1px; bottom:0px; }
24
+ div.innerright { background:url('images/shadow-r.png') no-repeat right bottom; width:2px; height:40px; right:-2px; bottom:0px; }
25
+ div.innertab { /* background and opacity set from admin */ left:0px; top:0px; width:100%; bottom:38px; }
26
+
27
+ /* PLAYLIST
28
+ ----------------- */
29
+ div.playlist-colour { position:absolute; width:100%; height:100%; left:0px; top:0px; /* background set from admin */ /* opacity set from admin */ }
30
+ div.playlist-wrap-MI ul { position:static; }
31
+ ul.UL-MI_mp3j { margin:0px !important; padding:0px 0px 0px 0px !important; list-style-type:none !important; list-style:none !important; list-style-image:none !important; font-weight: 500 !important; /* background */ }
32
+ ul.UL-MI_mp3j li { margin:0px !important; padding:0px 0px 1px 0px !important; list-style-type:none !important; font-weight:500 !important; line-height:15px !important; letter-spacing:0px !important; font-size:11px !important; word-spacing:0px !important; margin:0px 1px 0px 1px !important; }
33
+ ul.UL-MI_mp3j li:before { content:none !important; }
34
+ ul.UL-MI_mp3j li a { font-size:11px !important; border:0 !important; line-height:15px !important; font-weight:500 !important; text-decoration:none !important; display:block !important; width:auto !important; font-family:'verdana', 'Lucida Grande', 'arial', sans-serif !important; outline:none !important; padding:6px 0px 6px 14px !important; }
35
+
36
+ /* SCREEN
37
+ ----------------- */
38
+ div.player-track-title, div.jp-play-time, div.jp-total-time, div.statusMI { position:absolute; z-index:50; /* color set from admin */ font:normal normal 500 14px/16px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
39
+
40
+ div.player-track-title { top:7px; left:9px; width:auto; right:10px; }
41
+ div.player-track-title span { font-size:10px; line-height:12px; padding-left:10px; max-width:95%; }
42
+
43
+ div.jp-play-time, div.jp-total-time, div.statusMI { font-size:8px; line-height:10px !important; bottom:42px; text-align:left; font-family:Verdana, Arial, Helvetica, sans-serif; }
44
+ div.jp-play-time { right:84px; }
45
+ div.jp-total-time { right:6px; opacity:0.8; width:auto; }
46
+
47
+ span.mp3-finding, span.Smp3-finding, span.mp3-tint, span.mp3-gtint { padding:0px 0px 0px 6px !important; font-size:8px !important; line-height:10px !important; height:10px !important; overflow:hidden !important; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; }
48
+ span.mp3-finding, span.Smp3-finding { margin:0px 0px 0px -2px; background:url('images/finding-bar1f.gif') repeat 0px 3px; }
49
+ span.mp3-tint { margin:0px 2px 0px -6px; opacity:.5; filter:alpha(opacity=50); /* background */ }
50
+ span.mp3-gtint { margin:0px 2px 0px -6px; opacity:.5; filter:alpha(opacity=50); background:#777; }
51
+ span.Smp3-finding { margin:0px 0px 0px 3px; }
52
+ span.tintmarg { margin:0 2px 0 3px; }
53
+
54
+ div.statusMI { right:27px; width:52px !important; height:10px; }
55
+ .statusMI span.mp3-finding, .statusMI span.Smp3-finding, .statusMI span.mp3-tint, .statusMI span.mp3-gtint { padding:0px 0px 0px 6px !important; }
56
+ .statusMI span.mp3-tint, .statusMI span.mp3-gtint { margin:0px 2px 0px -6px; }
57
+
58
+ .MI-image { position:absolute; top:0; left:0; padding:0; }
59
+ .MI-image a img { border:none; padding:1px; background-color:#ccc; }
60
+ .MI-image a:hover img { /* background-colour */ }
61
+
62
+ /* BUTTONS
63
+ ----------------- */
64
+ /* TRANSPORT BUTTONS */
65
+ div.transport-MI { position:absolute; width:auto; height:37px; right:2px; bottom:0px; border:0; }
66
+ div.transport-MI div { float:right; }
67
+ /* play */
68
+ div.buttons_mp3j { width:30px; height:32px; margin:1px 0px 0px 0px; background-position:-110px 0px; }
69
+ div.buttons_mp3j:hover { background-position:-110px -32px; }
70
+ /* pause */
71
+ div.buttons_mp3jpause { width:30px; height:32px; margin:1px 0px 0px 0px; background-position:-2px 0px; }
72
+ div.buttons_mp3jpause:hover { background-position:-2px -32px; }
73
+ /* prev n next */
74
+ div.Prev_mp3j { width:22px; height:28px; margin:1px 4px 0px 0px; background-position:-32px -1px; }
75
+ div.Prev_mp3j:hover { background-position:-32px -33px; }
76
+ div.Next_mp3j { width:19px; height:28px; margin:1px 3px 0px 0px; background-position:-57px -1px; }
77
+ div.Next_mp3j:hover { background-position:-57px -33px; }
78
+ /* stop */
79
+ div.stop_mp3j { width:26px; height:32px; margin:1px 3px 0px 0px; background-position:-81px 0px; }
80
+ div.stop_mp3j:hover { background-position:-81px -32px; }
81
+
82
+ /* PLAYLIST TOGGLE */
83
+ div.playlist-toggle-MI { position:absolute; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif; bottom:4px; left:1px; color:#707070; padding:2px 6px 2px 5px; line-height:9px; min-width:24px; background:#bcbcbc; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; cursor:default; }
84
+ div.playlist-toggle-MI:hover { background:#c6c6c6; color:#777; }
85
+
86
+ /* DOWNLOAD BUTTON */
87
+ div.dloadmp3-MI { position:absolute; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif !important; bottom:39px; margin:0px !important; font-size:9px !important; text-align:center; left:0px; width:41%; min-width:75px; max-width:425px; padding:0px 0px 0px 0px !important; border:0px; background:transparent url('images/t10b.png') repeat left top !important; color:#fff; line-height:11px !important; -moz-border-radius-topright:3px; -webkit-border-top-right-radius:3px; overflow:hidden; z-index:150; cursor:default; }
88
+ div.dloadmp3-MI.whilelinks, div.dloadmp3-MI.logintext { }
89
+ div.dloadmp3-MI.whilelinks:hover { }
90
+ div.dloadmp3-MI a { display:block; width:auto; padding:1px 5px 2px 2px !important; margin:0px !important; background:transparent; text-decoration:none !important; height:100%; border-bottom:none; visibility:hidden; }
91
+ div.dloadmp3-MI a:hover { outline: none; border-bottom: none; color: #ececec; }
92
+ div.dloadmp3-MI.whilelinks a { visibility: inherit; }
93
+ div.dloadmp3-MI.whilelinks a:hover { }
94
+ div.dloadmp3-MI p { display:block; width:auto; padding:1px 5px 2px 2px !important; margin:0px !important; background:transparent; text-decoration:none !important; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif !important; font-size:9px !important; line-height:11px !important; /* after font declaration */ height:100%; border-bottom:none; visibility:visible; }
95
+
96
+ /* POPOUT BUTTON */
97
+ div.mp3j-popout-MI { position:absolute; font:normal normal 500 9px 'trebuchet ms', 'Lucida Grande', 'arial', sans-serif; bottom:17px; left:0px; height:16px; padding:3px 5px 0px 28px; min-width:2px; cursor:default; }
98
+ div.mp3j-popout-MI:hover { background-position:-8px -95px; }
99
+
100
+ /* BARS
101
+ ----------------- */
102
+ .ui-state-disabled { cursor:default !important; }
103
+ .ui-slider { position:relative; text-align:left; }
104
+ .ui-slider .ui-slider-handle { position:absolute; z-index:200; cursor:default; }
105
+ .ui-slider .ui-slider-range { position:absolute; z-index:1; font-size:.7em; display:block; border:0; }
106
+ .ui-slider-horizontal .ui-slider-range { top:0; height:100%; }
107
+ .ui-slider-horizontal .ui-slider-range-min { left:0; }
108
+ .ui-slider-horizontal .ui-slider-range-max { right:0; }
109
+ .ui-state-default, .ui-widget-content .ui-state-default { outline:none; border:0px; }
110
+
111
+ /* VOLUME */
112
+ div.MIsliderVolume { position:absolute; top:0px; right:4px; width:108px; height:4px !important; background:transparent; border:0px; font-size:1px; cursor:default; z-index:150; }
113
+ div.MIsliderVolume .ui-widget-header { /* background */ }
114
+ div.MIsliderVolume .ui-slider-handle { border:0px; height:11px !important; width:10px !important; padding:0px !important; margin-left:-5px; top:-3px; border:0px !important; -moz-border-radius:2px; -webkit-border-radius:2px; background:transparent url('images/vol-handle.png') no-repeat -1px 0px; z-index:150; overflow:hidden !important; cursor:default; }
115
+ div.MIsliderVolume .ui-slider-handle:hover { background:transparent url('images/vol-handle.png') no-repeat -21px 0px; }
116
+ div.MIsliderVolume .ui-state-active, div.MIsliderVolume .ui-widget-content .ui-state-active { border:0px; background:transparent url('images/vol-handle.png') no-repeat -21px 0px; outline:none; }
117
+
118
+ /* LOADER AND POS SLIDER */
119
+ div.bars_holder, div.loadMI_mp3j, div.poscolMI_mp3j, div.posbarMI_mp3j { position:absolute; top:0px; left:0px; }
120
+ div.bars_holder { right:0; width:100%; bottom:38px; font-size:1px; cursor:default; background:transparent url('images/t60w.png') repeat-x left bottom;/* 1px highlight top of control bar */ }
121
+ div.loadMI_mp3j { bottom:1px; /* background */ /* opacity */ }
122
+ div.poscolMI_mp3j { bottom:1px; /* background */ /* opacity */ }
123
+ div.bars_holder .ui-widget-header, div.bars_holder .ui-widget-content { border:0px !important; background:none; }
124
+ div.bars_holder .ui-slider-horizontal { top:0px; bottom:1px; height:auto; z-index:90; }
125
+ div.posbarMI_mp3j { bottom:1px; width:100%; }
126
+ div.posbarMI_mp3j .ui-slider-handle { top:-6px; margin-left:-1px !important; border:0; bottom:-2px; width:2px !important; z-index:100; background:none; cursor:default ; padding:0px !important; }
127
+ div.posbarMI_mp3j .ui-slider-handle:hover { background:none; z-index:100; }
128
+
129
+
130
+
131
+
132
+
133
+ /* text mods as default */
134
+ div.innerx, div.innerleft, div.innerright { position: absolute; visibility: hidden; }
135
+ div.innertab { bottom: 38px; }
136
+ div.jp-interface { background:none; }
137
+ div.player-track-title { font:normal normal 500 16px/18px 'trebuchet ms', Arial, sans-serif; }
138
+ div.player-track-title span { font:italic normal 500 12px/14px 'trebuchet ms', Arial, sans-serif; opacity:0.7; filter:alpha(opacity=70); }
139
+ div.jp-play-time, div.jp-total-time, div.statusMI { bottom:20px; font-size:11px; font-family: 'trebuchet ms', Arial, sans-serif; }
140
+ div.jp-play-time { width:37px; left:0px; opacity:0.6; filter:alpha(opacity=60); }
141
+ div.jp-total-time { width:37px; left:100px; display:none; }
142
+ div.statusMI { left:37px; width:70px !important; }
143
+ div.transport-MI { height:26px; right:2px; bottom:12px; }
144
+ div.transport-MI div { font-family: 'trebuchet ms', Arial, sans-serif; font-weight:700; overflow:hidden !important; background:none !important; white-space:nowrap !important; }
145
+ div.buttons_mp3j { text-indent:4px !important; width:32px; overflow:hidden !important; height: 25px; margin:0 6px 0 0px; background:none !important; line-height:25px !important; font-size:14px; }
146
+ div.buttons_mp3jpause { text-indent:-29px !important; width:38px; overflow:hidden !important; height: 25px; margin:0 -3px 0 3px; background:none !important; line-height:25px !important; font-size:14px; }
147
+ div.Prev_mp3j, div.Next_mp3j { text-indent:0px !important; height:23px; line-height:23px !important; font-size:12px; width:36px; margin:2px 0px 0px 0px; }
148
+ div.stop_mp3j { text-indent:0px !important; width:31px; height:25px; margin:0px 0px 0px 4px; line-height:25px !important; font-size:14px; }
149
+
150
+ div.playlist-toggle-MI { bottom: 7px; font-family:'trebuchet ms', Arial, sans-serif; background:none !important; padding:0; opacity:0.6; filter:alpha(opacity=60); }
151
+ div.playlist-toggle-MI:hover { opacity:1.0; filter:alpha(opacity=100); background:none !important; }
152
+ div.dloadmp3-MI { font-size:11px; bottom: 6px; height:auto; right:0px !important; left:auto; margin:0; font-family: 'trebuchet ms', Arial, sans-serif; text-align:right; background:none !important; }
153
+ div.dloadmp3-MI a { color:#888; font-size:inherit; margin:0px !important; padding: 0px !important; background:none !important; text-decoration:none; }
154
+ div.dloadmp3-MI a:hover { color:#555; background:none !important; }
155
+ div.dloadmp3-MI.betweenlinks a { display:none; background:none !important; }
156
+ div.dloadmp3-MI.whilelinks a { display:block; background:none !important; }
157
+ div.dloadmp3-MI.whilelinks a:hover { text-decoration:none; background:none !important; }
158
+ div.dloadmp3-MI p { font-size: inherit; margin:0px !important; padding: 0px !important; background:none !important; text-decoration:none; }
159
+ div.mp3j-popout-MI { color:#888; font:normal normal 500 11px 'trebuchet ms', 'arial', sans-serif; bottom:15px; right:155px; left:auto; width:auto; opacity:1; filter:alpha(opacity=100); padding:0px; line-height:12px; border:0; background:none !important; cursor:default; z-index:500; }
160
+ div.mp3j-popout-MI:hover { color:#555; opacity:1.0; filter:alpha(opacity=100); }
161
+ div.MIsliderVolume { position:absolute; bottom:38px; top:auto; right:4px; width:108px !important; height:1px !important; background:transparent; border:0px; font-size:1px; cursor:default; z-index:150; }
162
+ div.MIsliderVolume .ui-slider-handle, div.vol_mp3j .ui-slider-handle { height:11px !important; width:10px !important; padding:0px !important; margin-left:-5px; top:-7px; border:0px !important; -moz-border-radius:2px; -webkit-border-radius:2px; background:transparent url('images/vol-handle.png') no-repeat -41px 0px; z-index:150; overflow:hidden !important; cursor:default; }
163
+ div.MIsliderVolume .ui-slider-handle:hover, div.vol_mp3j .ui-slider-handle:hover { background:transparent url('images/vol-handle.png') no-repeat -21px 0px; }
164
+ div.MIsliderVolume .ui-state-active, div.MIsliderVolume .ui-widget-content .ui-state-active, div.vol_mp3j .ui-state-active, div.vol_mp3j .ui-widget-content .ui-state-active { border:0px; background:transparent url('images/vol-handle.png') no-repeat -21px 0px; outline:none; }
165
+
166
+ div.dloadmp3-MI.whilelinks, div.dloadmp3-MI.logintext { background:none !important; }
167
+
168
+
169
+
170
+ /* FORCED DOWNLOAD FRAME
171
+ ------------------------ */
172
+
173
+ div.mp3j-dlframe, iframe.mp3j-dlframe {
174
+ border:0px solid #ddd;
175
+ width:1px;
176
+ height:1px;
177
+ overflow:hidden;
178
+ margin:0;
179
+ padding:0;
180
+ display:none !important;
181
+ }
182
+
183
+ /* MESSAGES */
184
+ div.mp3j-finfo {
185
+ position:absolute;
186
+ top:36px;
187
+ z-index:9999 !important;
188
+ width:80%;
189
+ left:10%;
190
+ -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px;
191
+ background:url('images/fdloadW-x.png') repeat-x left top;
192
+ -webkit-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); -moz-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35);
193
+ padding:0;
194
+ min-height:31px;
195
+ overflow:hidden;
196
+ min-width:170px;
197
+ }
198
+
199
+ div.mp3j-finfo * { font-family:Arial, Helvetica, sans-serif !important; }
200
+ div.mp3j-finfo-sleeve { position:relative !important; width:100%; height:100%; }
201
+ div.mp3j-finfo-gif { position:absolute !important; top:0; left:0; right:10%; bottom:0; background:url('images/loader.gif') no-repeat center 37px; width:auto; padding:0px; height:100%; }
202
+ div.mp3j-finfo-txt { position:relative !important; margin:0px 15px 0 15px !important; padding:10px 0 10px 0 !important; width:auto; }
203
+ div.mp3j-finfo-close { position:absolute !important; width:31px !important; height:27px !important; padding-top:5px !important; right:0 !important; top:0 !important; text-align:center !important; font-weight:700 !important; font-size:18px !important; line-height:22px !important; color:#aaa !important; border-bottom:1px solid #ccc !important; border-left:1px solid #ccc !important; background:url('images/t40w.png') repeat left top !important; }
204
+ div.mp3j-finfo-close:hover { color:#888 !important; }
205
+
206
+ div.mp3j-finfo-txt h2 { font-size:15px !important; color:#333 !important; margin:0 0 10px 0 !important; }
207
+ div.mp3j-finfo-txt h3 { font-size:14px !important; color:#333 !important; margin:0 0 15px 0 !important; }
208
+ div.mp3j-finfo-txt p { font-size:11px !important; color:#555 !important; line-height:13px !important; margin:0 0 5px 0 !important; }
209
+ div.mp3j-finfo-txt a { }
210
+
211
+
212
+
213
+
214
+
215
+ .mp3j-nosolution
216
+ {
217
+ position:absolute;
218
+ z-index:9999;
219
+ height:auto;
220
+ padding:5%;
221
+ border:1px solid #c0c0c0;
222
+ background:#f0f0f0;
223
+ color:#333;
224
+ top:4px;
225
+ left:4px;
226
+ right:4px;
227
+ -webkit-border-top-left-radius: 8px;
228
+ -webkit-border-top-right-radius: 8px;
229
+ -moz-border-radius-topleft: 8px;
230
+ -moz-border-radius-topright: 8px;
231
+ border-top-left-radius: 8px;
232
+ border-top-right-radius: 8px;
233
+ font-size:13px;
234
+ -webkit-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); -moz-box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35); box-shadow:0px 1px 4px rgba(0, 0, 0, 0.35);
235
+ }
236
+
237
+ .s-nosolution
238
+ {
239
+ }
240
+
241
+
242
+
243
+
244
+ /* backwards compat
245
+ ------------------- */
246
+ div.player-track-title.mp3j_widgetmods { font-size: 14px; }
247
+ div.player-track-title.mp3j_widgetmods span { font-size: 11px; }
248
+ ul.UL-MI_mp3j.mp3j_widgetmods li { font-size:11px !important; line-height:14px !important; }
249
+ ul.UL-MI_mp3j.mp3j_widgetmods li a { font-size:11px !important; line-height:14px !important; }
250
+
251
+
252
+
253
+
254
+
255
+ /*-------------------------
256
+ [mp3j] & [mp3t] SHORTCODES
257
+ ==================================== */
258
+ span.wrap_inline_mp3j { position:relative; width:auto; cursor:pointer; padding:0; white-space:nowrap; text-align:left; }
259
+ /*span.wrap_inline_mp3j:hover .buttons_mp3j { background:transparent url('images/transport-shard-B.png') no-repeat -80px -35px; }*/
260
+ span.indi_mp3j { position:relative; padding-left:2px; font-size: 0.7em !important; }
261
+
262
+ /* BARS */
263
+ span.bars_mp3j { position:absolute; width:100%; height:100%; }
264
+ span.load_mp3j, span.loadB_mp3j { position:absolute; /* background */ top:20px; left:0px; height:2px; }
265
+ /* mp3t */
266
+ span.posbar_mp3j { position:absolute; width:100%; height:100%; border:0px solid #f77; }
267
+ span.posbar_mp3j .ui-widget-header { z-index:-500; }
268
+ span.posbar_mp3j .ui-slider-handle { top: 2px; margin-left:-2px; border:1px solid #999; height:21px; width:4px; z-index:500; background:url('images/t20b.png') repeat; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
269
+ span.posbar_mp3j .ui-slider-handle:hover { background:url('images/t15b.png') repeat; border-color:#aaa; }
270
+ /* mp3j */
271
+ span.posbarB_mp3j { position:absolute; width:100%; height:100%; border:0; z-index:450; cursor:pointer; }
272
+ span.posbarB_mp3j .ui-widget-header { background:transparent; z-index:450; height:100%; }
273
+ span.posbarB_mp3j .ui-slider-handle { top: 0px; margin-left:-6px !important; border:0px solid #888; height:23px; width:12px !important; z-index: 500; background: transparent url('images/inlineHandle2.png') no-repeat -3px -3px; cursor: default; padding:0px !important; }
274
+ span.posbarB_mp3j .ui-slider-handle:hover { background: transparent url('images/inlineHandle2.png') no-repeat -3px -33px; }
275
+
276
+ /* SPAN TRANSPORT */
277
+ span.group_wrap { position:relative; margin:0px 0px 0px 0px; width:auto; }
278
+ span.textbutton_mp3j, span.T_mp3j { position:relative; width:auto; margin:0px; padding:0px; }
279
+ span.buttons_mp3j { position:relative; margin:0px; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -80px -3px; }
280
+ span.buttons_mp3j:hover { background:transparent url('images/transport-shard-B.png') no-repeat -80px -35px; }
281
+ span.buttons_mp3jpause { position:relative; margin:0px; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -2px -3px; }
282
+ span.buttons_mp3jpause:hover { background:transparent url('images/transport-shard-B.png') no-repeat -2px -35px; }
283
+
284
+ /* VOLUMES */
285
+ span.vol_mp3t { position:absolute; top:-4px; right:4px; width:90%; max-width:100px; height:2px; }
286
+ span.vol_mp3j { position:absolute; top:-9px; right:5px; width:85%; max-width:100px; height:2px; }
287
+ span.vol_mp3j.flipped { right:4px; }
288
+ span.vol_mp3t .ui-widget-header, span.vol_mp3j .ui-widget-header { background: transparent url('images/vol-grad60b2.png') repeat left top; z-index:500; height:100%; }
289
+ span.vol_mp3t .ui-slider-handle, span.vol_mp3j .ui-slider-handle { height:11px !important; width:10px !important; padding:0px !important; margin-left:-5px; border:0px !important; border-radius:2px; -moz-border-radius:2px; -webkit-border-radius:2px; z-index:600; overflow:hidden !important; cursor:default; top:-6px; background: transparent url('images/vol-handle.png') no-repeat -1px 0px; }
290
+ span.vol_mp3t .ui-slider-handle:hover, span.vol_mp3j .ui-slider-handle:hover { background: transparent url('images/vol-handle.png') no-repeat -21px 0px; }
291
+ span.vol_mp3t .ui-state-active, span.vol_mp3t .ui-widget-content .ui-state-active, span.vol_mp3j .ui-state-active, span.vol_mp3j .ui-widget-content .ui-state-active { background:transparent url('images/vol-handle.png') no-repeat -21px 0px; outline:none; border:0px; }
292
+
293
+
294
+ /*----------------------
295
+ [mp3j-popout] SHORTCODE
296
+ ================================================= */
297
+ .mp3j-popout-link-wrap { cursor:pointer; position:relative; clear:left; }
298
+ .mp3j-popout-link { float:left; margin:0 5px 0 0; min-width:22px; min-height:18px; background:url('images/buttons-popout.png') no-repeat -10px -65px; }
299
+ .mp3j-popout-link-wrap:hover .mp3j-popout-link { background:url('images/buttons-popout.png') no-repeat -10px -95px; }
300
+
301
+
302
+
303
+
304
+ /*-------------
305
+ CUSTOM CLASSES
306
+ (via 'style' param in shortcode)
307
+ ================================================= */
308
+
309
+
310
+ /* ===== "nolistbutton" ===== */
311
+ .nolistbutton div.playlist-toggle-MI { visibility:hidden; }
312
+
313
+ /* ===== "nopopoutbutton" ===== */
314
+ .nopopoutbutton div.mp3j-popout-MI { display:none; }
315
+
316
+ /* ===== "nopn" ===== */
317
+ .nopn div.Prev_mp3j { display:none; }
318
+ .nopn div.Next_mp3j { display:none; }
319
+
320
+ /* ===== "nostop" ===== */
321
+ .nostop div.stop_mp3j { display:none; }
322
+
323
+
324
+ /* ===== "bars100" ===== */
325
+ .bars100 div.player-track-title { left:112px; }
326
+ .bars100 div.dloadmp3-MI { left:102px; width:36%;}
327
+ .bars100 div.bars_holder { left:102px; width:auto; }
328
+ .bars100 .MI-image img { padding:1px; background-color:transparent; }
329
+
330
+ /* ===== "bars150" ===== */
331
+ .bars150 div.player-track-title { left:162px; }
332
+ .bars150 div.dloadmp3-MI { left:152px; width:33%;}
333
+ .bars150 div.bars_holder { left:152px; width:auto; }
334
+ .bars150 .MI-image img { padding:1px; background-color:transparent; }
335
+
336
+ /* ===== "bars200" ===== */
337
+ .bars200 div.player-track-title { left:212px; }
338
+ .bars200 div.dloadmp3-MI { left:202px; width:30%; }
339
+ .bars200 div.bars_holder { left:202px; width:auto; }
340
+ .bars200 .MI-image img { padding:1px; background-color:transparent; }
341
+
342
+ /* ===== "bars250" ===== */
343
+ .bars250 div.player-track-title { left:262px; }
344
+ .bars250 div.dloadmp3-MI { left:252px; width:27%;}
345
+ .bars250 div.bars_holder { left:252px; width:auto; }
346
+ .bars250 .MI-image img { padding:1px; background-color:transparent; }
347
+
348
+ /* ===== "bars300" ===== */
349
+ .bars300 div.player-track-title { left:312px; }
350
+ .bars300 div.dloadmp3-MI { left:302px; width:24%; }
351
+ .bars300 div.bars_holder { left:302px; width:auto; }
352
+ .bars300 .MI-image img { padding:1px; background-color:transparent; }
353
+
354
+ /* ===== "bars350" ===== */
355
+ .bars350 div.player-track-title { left:362px; }
356
+ .bars350 div.dloadmp3-MI { left:352px; width:21%;}
357
+ .bars350 div.bars_holder { left:352px; width:auto; }
358
+ .bars350 .MI-image img { padding:1px; background-color:#transparent; }
359
+
360
+ /* ===== "bars400" ===== */
361
+ .bars400 div.player-track-title { left:412px; }
362
+ .bars400 div.dloadmp3-MI { left:402px; width:18%; }
363
+ .bars400 div.bars_holder { left:402px; width:auto; }
364
+ .bars400 .MI-image img { padding:1px; background-color:transparent; }
365
+
366
+ /* ===== bigger1 ===== */
367
+ .bigger1 { font-size:18px; line-height:26px !important; margin:0 !important; }
368
+ .bigger1 span.load_mp3j,
369
+ .bigger1 span.loadB_mp3j { top:24px; left:0px; height:2px; }
370
+ .bigger1 span.posbar_mp3j .ui-slider-handle { top: 3px; height:24px; width:6px !important; margin-left:-3px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
371
+ .bigger1 span.posbarB_mp3j .ui-slider-handle { top: 3px; margin-left:-3px !important; border:1px solid #999; height:24px; width:6px !important; z-index:500; background:url('images/mp3t-poshandle.png') repeat-y -50px 0px; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
372
+ .bigger1 span.posbarB_mp3j .ui-slider-handle:hover { background:url('images/mp3t-poshandle.png') repeat-y 0px 0px; border-color:#aaa; }
373
+ .bigger1 span.buttons_mp3j { position:relative; margin:0px; margin-left:5px !important; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -80px 0px; }
374
+ .bigger1 span.buttons_mp3j:hover { background:transparent url('images/transport-shard-B.png') no-repeat -80px -32px; }
375
+ .bigger1 span.buttons_mp3jpause { position:relative; margin:0px; margin-left:5px !important; padding:2px 0px 3px 20px; background: transparent url('images/transport-shard-B.png') no-repeat -2px 0px; }
376
+ .bigger1 span.buttons_mp3jpause:hover { background:transparent url('images/transport-shard-B.png') no-repeat -2px -32px; }
377
+ .bigger1 span.vol_mp3j { position:absolute; top:-6px; right:7px; width:85%; max-width:100px; height:2px; }
378
+
379
+ .bigger1 div.player-track-title { font:normal normal 500 18px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
380
+ .bigger1 div.player-track-title span { font:normal normal 500 14px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
381
+ .bigger1 ul.UL-MI_mp3j li a, .bigger1 ul.UL-MI_mp3j li { font-size:16px !important; line-height:19px !important; }
382
+ .bigger1 .indi_mp3j { font-size: 0.6em !important; }
383
+
384
+ /* ===== "bigger2" ===== */
385
+ .bigger2 div.player-track-title { font:normal normal 500 36px/38px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
386
+ .bigger2 div.player-track-title span { font:normal normal 500 20px/22px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
387
+ .bigger2 ul.UL-MI_mp3j li a, .bigger2 ul.UL-MI_mp3j li { font-size:20px !important; line-height:24px !important; }
388
+ .bigger2 { font-size:23px; line-height:25px !important; margin:0 !important; }
389
+ .bigger2 span.load_mp3j,
390
+ .bigger2 span.loadB_mp3j { top:26px; left:0px; height:2px; }
391
+ .bigger2 span.posbar_mp3j .ui-slider-handle { top: 0px; height:28px; width:6px !important; margin-left:-3px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
392
+ .bigger2 span.posbarB_mp3j .ui-slider-handle { top: -1px; margin-left:-3px !important; border:1px solid #999; height:29px; width:8px !important; z-index:500; border-color:#aaa; background:url('images/mp3t-poshandle.png') repeat-y 0px 0px; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
393
+ .bigger2 span.posbarB_mp3j .ui-slider-handle:hover { background:url('images/mp3t-poshandle.png') repeat-y -50px 0px; border-color:#999; }
394
+ .bigger2 .buttons_mp3j { padding:2px 0px 4px 20px !important; background:url('images/play-dark2-b.png') no-repeat -186px center; border:0px solid #bbb; margin-left:10px; }
395
+ .bigger2 .buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -437px center; }
396
+ .bigger2 .buttons_mp3jpause { padding:0px 0px 2px 20px !important; background:url('images/stop-dark2-b.png') repeat-y 0px top; border:0px solid #bbb; margin-left:10px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
397
+ .bigger2 .buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
398
+ .bigger2 span.vol_mp3j { position:absolute; top:-12px; right:4px; width:85%; max-width:100px; height:2px; }
399
+ .bigger2 span.vol_mp3t { position:absolute; top:-10px; width:85%; max-width:100px; height:2px; }
400
+ .bigger2 .Smp3-finding,
401
+ .bigger2 .mp3-tint,
402
+ .bigger2 .mp3-gtint { margin-left:8px; margin-right:6px; padding:0px 0px 0px 10px !important; font-size:12px !important; line-height:12px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
403
+ .bigger2 .mp3-gtint { margin:0 6px 0 -16px; }
404
+ .bigger2 .indi_mp3j { font-size: 0.5em !important; padding-left:0px; }
405
+
406
+ /* ===== bigger3 ===== */
407
+ .bigger3 { font-size:28px; line-height:36px !important; margin:0 !important; }
408
+ .bigger3 .load_mp3j, .bigger3 .loadB_mp3j { top:37px; left:0px; height:3px; }
409
+ .bigger3 .posbar_mp3j .ui-slider-handle, .bigger3 .posbarB_mp3j .ui-slider-handle { top: 0px; border:1px solid #bbb; height:40px; width:12px !important; margin-left:-5px !important; background:url('images/stop-dark2-b.png') repeat-y -350px top; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
410
+ .bigger3 .posbar_mp3j .ui-slider-handle:hover, .bigger3 .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2-b.png') repeat-y 0px top; border:1px solid #aaa; }
411
+ .bigger3 .indi_mp3j { font-size: 0.5em !important; }
412
+ .bigger3 .buttons_mp3j { padding:8px 0px 12px 30px !important; background:url('images/play-dark2-b.png') no-repeat -177px center; border:0px solid #bbb; margin-left:12px; }
413
+ .bigger3 .buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -428px center; }
414
+ .bigger3 .buttons_mp3jpause { padding:2px 0px 6px 30px !important; background:url('images/stop-dark2-b.png') repeat-y 0px top; border:0px solid #bbb; margin-left:12px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
415
+ .bigger3 .buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
416
+ .bigger3 .vol_mp3j { height:1px; max-width:110px; right:64px; top:-8px; }
417
+ .bigger3 .vol_mp3t { height:1px; max-width:110px; right:16px; top:-5px; }
418
+ .bigger3 .vol_mp3j .ui-slider-handle, .bigger3 .vol_mp3t .ui-slider-handle { height:14px !important; width:33px !important; margin-left:-16px; border-bottom:1px solid #ccc !important; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; top:-14px; background:url('images/volhandle-dark2-b.png') no-repeat -10px bottom; }
419
+ .bigger3 .vol_mp3j .ui-slider-handle:hover, .bigger3 .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-b.png') no-repeat -257px bottom; }
420
+ .bigger3 .Smp3-finding,
421
+ .bigger3 .mp3-tint,
422
+ .bigger3 .mp3-gtint { margin-left:8px; padding:0px 0px 0px 14px !important; font-size:18px !important; line-height:20px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
423
+ .bigger3 .mp3-gtint { margin:0 2px 0 -14px; }
424
+ .bigger3 div.player-track-title { font:normal normal 500 44px/46px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
425
+ .bigger3 div.player-track-title span { font:normal normal 500 28px/30px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
426
+ .bigger3 ul.UL-MI_mp3j li a, .bigger3 ul.UL-MI_mp3j li { font-size:28px !important; line-height:30px !important; }
427
+
428
+
429
+ /* ===== bigger4 ===== */
430
+ .bigger4 { font-size:38px; line-height:46px !important; margin:0 !important; }
431
+ .bigger4 .load_mp3j, .bigger4 .loadB_mp3j { top:46px; left:0px; height:3px; }
432
+ .bigger4 .posbar_mp3j .ui-slider-handle, .bigger4 .posbarB_mp3j .ui-slider-handle { top: -2px; border:1px solid #bbb; height:52px; width:20px !important; margin-left:-10px !important; background:url('images/stop-dark2-b.png') repeat-y -350px top; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
433
+ .bigger4 .posbar_mp3j .ui-slider-handle:hover, .bigger4 .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2-b.png') repeat-y 0px top; border:1px solid #aaa; }
434
+ .bigger4 .indi_mp3j { font-size: 0.5em !important; }
435
+ .bigger4 .buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:8px 0px 12px 40px !important; background:url('images/play-dark2-b.png') no-repeat -167px center; border:0px solid #bbb; margin-left:15px; }
436
+ .bigger4 .buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -418px center; }
437
+ .bigger4 .buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:2px 0px 4px 40px !important; background:url('images/stop-dark2-b.png') repeat-y 0px top; border:0px solid #bbb; margin-left:15px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
438
+ .bigger4 .buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
439
+ .bigger4 .vol_mp3j { height:1px; max-width:110px; right:86px; top:-8px; }
440
+ .bigger4 .vol_mp3t { height:1px; max-width:110px; right:20px; top:-5px; }
441
+ .bigger4 .vol_mp3j .ui-slider-handle, .bigger4 .vol_mp3t .ui-slider-handle { height:20px !important; width:43px !important; margin-left:-21px; border-bottom:1px solid #ccc !important; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; top:-20px; background:url('images/volhandle-dark2-b.png') no-repeat -10px bottom; }
442
+ .bigger4 .vol_mp3j .ui-slider-handle:hover, .bigger4 .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-b.png') no-repeat -257px bottom; }
443
+ .bigger4 .Smp3-finding,
444
+ .bigger4 .mp3-tint,
445
+ .bigger4 .mp3-gtint { margin-left:8px; margin-right:6px; padding:0px 0px 0px 14px !important; font-size:18px !important; line-height:20px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
446
+ .bigger4 .mp3-gtint { margin:0 6px 0 -20px; }
447
+
448
+ .bigger4 div.player-track-title { font:normal normal 500 44px/46px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
449
+ .bigger4 div.player-track-title span { font:normal normal 500 28px/30px 'verdana', 'Lucida Grande', 'arial', sans-serif; }
450
+ .bigger4 ul.UL-MI_mp3j li a, .bigger4 ul.UL-MI_mp3j li { font-size:28px !important; line-height:30px !important; }
451
+
452
+
453
+ /* ===== bigger5 ===== */
454
+ .bigger5 { font-size:48px; line-height:60px !important; margin:0 !important; }
455
+ .bigger5 .load_mp3j, .bigger5 .loadB_mp3j { top:63px; left:0px; height:4px; }
456
+ .bigger5 .posbar_mp3j .ui-slider-handle, .bigger5 .posbarB_mp3j .ui-slider-handle { top: -1px; border:1px solid #bbb; height:69px; width:20px !important; margin-left:-10px !important; background:url('images/stop-dark2-b.png') repeat-y -350px top; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
457
+ .bigger5 .posbar_mp3j .ui-slider-handle:hover, .bigger5 .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2-b.png') repeat-y 0px top; border:1px solid #aaa; }
458
+ .bigger5 .indi_mp3j { font-size: 0.5em !important; }
459
+ .bigger5 .buttons_mp3j { font-family:Arial, Helvetica, sans-serif !important; padding:8px 0px 13px 52px !important; background:url('images/play-dark2-b.png') no-repeat -154px center; border:0px solid #bbb; margin-left:20px; }
460
+ .bigger5 .buttons_mp3j:hover { background:url('images/play-dark2-b.png') no-repeat -405px center; }
461
+ .bigger5 .buttons_mp3jpause { font-family:Arial, Helvetica, sans-serif !important; padding:3px 0px 8px 52px !important; background:url('images/stop-dark2-b.png') repeat-y 0px top; border:0px solid #bbb; margin-left:15px; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
462
+ .bigger5 .buttons_mp3jpause:hover { background:url('images/stop-dark2-b.png') repeat-y -350px top; }
463
+ .bigger5 .vol_mp3j { height:1px; max-width:170px; right:115px; top:-10px; }
464
+ .bigger5 .vol_mp3t { height:1px; max-width:170px; right:33px; top:-5px; }
465
+ .bigger5 .vol_mp3j .ui-slider-handle, .bigger5 .vol_mp3t .ui-slider-handle { height:30px !important; width:55px !important; margin-left:-21px; border-bottom:1px solid #aaa !important; border-radius:1px; -moz-border-radius:1px; -webkit-border-radius:1px; top:-30px; background:url('images/volhandle-dark2-b.png') no-repeat -10px bottom; }
466
+ .bigger5 .vol_mp3j .ui-slider-handle:hover, .bigger5 .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-b.png') no-repeat -257px bottom; }
467
+ .bigger5 .Smp3-finding,
468
+ .bigger5 .mp3-tint,
469
+ .bigger5 .mp3-gtint { margin-left:8px; margin-right:6px; padding:0px 0px 0px 14px !important; font-size:18px !important; line-height:20px !important; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; }
470
+ .bigger5 .mp3-gtint { margin:0 6px 0 -20px; }
471
+
472
+ .bigger5.wh .posbar_mp3j .ui-slider-handle, .bigger5.wh .posbarB_mp3j .ui-slider-handle { background:url('images/stop-dark2-w.png') repeat-y -350px top; border:1px solid #888; }
473
+ .bigger5.wh .posbar_mp3j .ui-slider-handle:hover, .bigger5.wh .posbarB_mp3j .ui-slider-handle:hover { background:url('images/stop-dark2-w.png') repeat-y 0px top; border:1px solid #777; }
474
+ .bigger5.wh .buttons_mp3j { background:url('images/play-dark2-w.png') no-repeat -154px center; border:0px solid #bbb; margin-left:20px; }
475
+ .bigger5.wh .buttons_mp3j:hover { background:url('images/play-dark2-w.png') no-repeat -405px center; }
476
+ .bigger5.wh .buttons_mp3jpause { background:url('images/stop-dark2-w.png') repeat-y 0px top; }
477
+ .bigger5.wh .buttons_mp3jpause:hover { background:url('images/stop-dark2-w.png') repeat-y -350px top; }
478
+ .bigger5.wh .vol_mp3j .ui-slider-handle, .bigger5.wh .vol_mp3t .ui-slider-handle { background:url('images/volhandle-dark2-bw.png') no-repeat -10px bottom; }
479
+ .bigger5.wh .vol_mp3j .ui-slider-handle:hover, .bigger5.wh .vol_mp3t .ui-slider-handle:hover { background:url('images/volhandle-dark2-w.png') no-repeat -257px bottom; }
480
+
481
+
482
+ /* ===== "smaller" ===== */
483
+ .smaller div.player-track-title { font:normal normal 500 11px/13px 'verdana', 'Lucida Grande', 'arial', sans-serif !important; left:3px; right:5px; }
484
+ .smaller div.player-track-title span { font:normal normal 500 10px/10px 'verdana', 'Lucida Grande', 'arial', sans-serif !important; padding:0; }
485
+ .smaller ul.UL-MI_mp3j li a, .smaller ul.UL-MI_mp3j li { font-size:10px !important; font-family:'verdana', Helvetica, sans-serif !important; line-height:13px !important; }
486
+
487
+
488
+
489
+
490
+
491
+
492
+
493
+ /* ===== outline ==== */
494
+ span.outline { font-size:14px; line-height:22px !important; margin:0 !important; }
495
+ .outline span.vol_mp3t { position:absolute; top:-4px; right:4px; width:90%; max-width:100px; height:2px; background: transparent; }
496
+ .outline span.vol_mp3j { position:absolute; top:-9px; right:7px; width:85%; max-width:100px; height:2px; background: transparent; }
497
+ .outline span.buttons_mp3j { padding:2px 0px 3px 20px; background: transparent url('images/transport-outline.png') no-repeat -80px -2px; border:0; margin:0; }
498
+ .outline span.buttons_mp3j:hover { background:transparent url('images/transport-outline.png') no-repeat -80px -34px; }
499
+ .outline span.buttons_mp3jpause { padding:2px 0px 3px 20px; background: transparent url('images/transport-outline.png') no-repeat 1px -2px; border:0; margin:0; }
500
+ .outline span.buttons_mp3jpause:hover { background:transparent url('images/transport-outline.png') no-repeat 1px -34px; }
501
+ .outline span.posbarB_mp3j { position:absolute; width:100%; height:100%; border:0px solid #f77; }
502
+ .outline span.posbarB_mp3j .ui-widget-header { z-index:-500; }
503
+ .outline span.posbarB_mp3j .ui-slider-handle { top: 0px; margin-left:0px; border:1px solid #aaa; height:23px; width:5px !important; z-index:500; background:url('images/t10b.png') repeat; cursor:default; padding:0px !important; -moz-border-radius:1px; -webkit-border-radius:1px; border-radius:1px; }
504
+ .outline span.posbarB_mp3j .ui-slider-handle:hover { background:url('images/t20b.png') repeat; border-color:#777; }
505
+
506
+ .outline div.transport-MI div { background-image: url("images/transport-hardZ.png"); }
507
+
508
+
509
+ /* ===== wtransbars ==== */
510
+ .wtransbars div.loadMI_mp3j { background:#fff; opacity:0.1; filter:alpha(opacity=10); }
511
+ .wtransbars div.poscolMI_mp3j { background:#fff url('images/posbar-soften-tipped-2.png') repeat-y right top; opacity:0.15; filter:alpha(opacity=15); }
512
+ .wtransbars div.player-track-title { color:#fff; }
513
+
514
+ /* ===== btransbars ==== */
515
+ .btransbars div.loadMI_mp3j { background:#000; opacity:0.1; filter:alpha(opacity=10); }
516
+ .btransbars div.poscolMI_mp3j { background:#000 url('images/posbar-soften-tipped-2.png') repeat-y right top; opacity:0.15; filter:alpha(opacity=15); }
517
+ .btransbars div.player-track-title { color:#000; }
518
+
519
+
download.php CHANGED
@@ -1,115 +1,106 @@
1
- <?php
2
- /*
3
- MP3-jPlayer 1.8.5
4
- www.sjward.org
5
- */
6
-
7
- $mp3 = false;
8
- $playerID = "";
9
- $fp = "";
10
- $file = "";
11
- $dbug = "";
12
- $sent = "";
13
- $pagetext = '';
14
- $js_pagetext = '';
15
  $rooturl = preg_replace("/^www\./i", "", $_SERVER['HTTP_HOST']);
16
-
17
-
18
-
19
- if ( isset($_GET['mp3']) ) {
20
-
21
-
22
- $mp3 = strip_tags($_GET['mp3']);
23
- $mp3 = rawurldecode( $mp3 );
24
-
25
- $playerID = ( isset($_GET['pID']) ) ? strip_tags($_GET['pID']) : "";
26
-
27
- if ( preg_match("!\.mp3$!i", $mp3) ) {
28
-
29
- $sent = substr($mp3, 3);
30
- $file = substr(strrchr($sent, "/"), 1);
31
-
32
- if ( ($lp = strpos($sent, $rooturl)) || preg_match("!^/!", $sent) ) { //if local
33
-
34
- if ( $lp !== false ) { //url
35
-
36
- $fp = str_replace($rooturl, "", $sent);
37
- $fp = str_replace("www.", "", $fp);
38
- $fp = str_replace("http://", "", $fp);
39
- $fp = str_replace("https://", "", $fp);
40
-
41
- } else { //folder path
42
-
43
- $fp = $sent;
44
- }
45
-
46
- if ( ($fsize = @filesize($_SERVER['DOCUMENT_ROOT'] . $fp)) !== false ) { //if file can be read then set headers and cookie
47
-
48
- header('Content-Type: audio/mpeg');
49
- $cookiename = 'mp3Download' . $playerID;
50
- setcookie($cookiename, "true", 0, '/', '', '', false);
51
- header('Accept-Ranges: bytes'); // download resume
52
- header('Content-Disposition: attachment; filename=' . $file);
53
-
54
- header('Content-Length: ' . $fsize);
55
-
56
- readfile($_SERVER['DOCUMENT_ROOT'] . $fp);
57
-
58
-
59
- $dbug .= "#read failed"; //if past readfile() then something went wrong
60
-
61
- } else {
62
-
63
- $dbug .= "#no file";
64
- }
65
-
66
- } else {
67
-
68
- $dbug .= "#unreadable";
69
- }
70
-
71
- } else {
72
-
73
- $dbug .= "#not an mp3";
74
- }
75
-
76
- } else {
77
-
78
- $dbug .= "#no get param";
79
- }
80
-
81
- ?>
82
- <!DOCTYPE html>
83
- <html>
84
- <head>
85
- <title>Download MP3</title>
86
- </head>
87
- <body>
88
-
89
- <?php
90
- echo $js_pagetext;
91
- $info = "<p>
92
- Get: " . $_GET['mp3'] . "<br />
93
- Sent: " . $sent . "<br />
94
- File: " . $file . "<br />
95
- Open: " . $_SERVER['DOCUMENT_ROOT'] . $fp . "<br />
96
- Root: " . $rooturl . "<br />
97
- pID: " . $playerID . "<br />
98
- Dbug: " . $dbug . "<br /></p>";
99
- echo $info;
100
-
101
- if ( $playerID != "" ) {
102
- ?>
103
-
104
- <script type="text/javascript">
105
- if ( typeof window.parent.MP3_JPLAYER.dl_dialogs !== 'undefined' ) {
106
- window.parent.MP3_JPLAYER.dl_dialogs[<?php echo $playerID; ?>] = window.parent.MP3_JPLAYER.vars.message_fail;
107
- }
108
- </script>
109
-
110
- <?php
111
- }
112
- ?>
113
-
114
- </body>
115
  </html>
1
+ <?php
2
+ /*
3
+ MP3-jPlayer 1.8.12
4
+ www.sjward.org
5
+ */
6
+ $mp3 = false;
7
+ $fp = "";
8
+ $file = "";
9
+ $dbug = "";
10
+ $sent = "";
11
+ $pagetext = '';
12
+ $js_pagetext = '';
 
 
13
  $rooturl = preg_replace("/^www\./i", "", $_SERVER['HTTP_HOST']);
14
+ if ( isset($_GET['mp3']) )
15
+ $mp3 = strip_tags($_GET['mp3']);
16
+ $mp3 = rawurldecode( $mp3 );
17
+ $playerID = ( isset($_GET['pID']) ) ? strip_tags($_GET['pID']) : "";
18
+
19
+ if ( preg_match("!\.mp3$!i", $mp3) ) {
20
+
21
+ $sent = substr($mp3, 3);
22
+ $file = substr(strrchr($sent, "/"), 1);
23
+
24
+ if ( ($lp = strpos($sent, $rooturl)) || preg_match("!^/!", $sent) ) { //if local
25
+
26
+ if ( $lp !== false ) { //url
27
+
28
+ $fp = str_replace($rooturl, "", $sent);
29
+ $fp = str_replace("www.", "", $fp);
30
+ $fp = str_replace("http://", "", $fp);
31
+ $fp = str_replace("https://", "", $fp);
32
+
33
+ } else { //folder path
34
+
35
+ $fp = $sent;
36
+ }
37
+
38
+ if ( ($fsize = @filesize($_SERVER['DOCUMENT_ROOT'] . $fp)) !== false ) { //if file can be read then set headers and cookie
39
+
40
+ header('Content-Type: audio/mpeg');
41
+ $cookiename = 'mp3Download' . $playerID;
42
+ setcookie($cookiename, "true", 0, '/', '', '', false);
43
+ header('Accept-Ranges: bytes'); // download resume
44
+ header('Content-Disposition: attachment; filename=' . $file);
45
+
46
+ header('Content-Length: ' . $fsize);
47
+
48
+ readfile($_SERVER['DOCUMENT_ROOT'] . $fp);
49
+
50
+
51
+ $dbug .= "#read failed"; //if past readfile() then something went wrong
52
+
53
+ } else {
54
+
55
+ $dbug .= "#no file";
56
+ }
57
+
58
+ } else {
59
+
60
+ $dbug .= "#unreadable";
61
+ }
62
+
63
+ } else {
64
+
65
+ $dbug .= "#not an mp3";
66
+ }
67
+
68
+ } else {
69
+
70
+ $dbug .= "#no get param";
71
+ }
72
+
73
+ ?>
74
+ <!DOCTYPE html>
75
+ <html>
76
+ <head>
77
+ <title>Download MP3</title>
78
+ </head>
79
+ <body>
80
+
81
+ <?php
82
+ echo $js_pagetext;
83
+ $info = "<p>
84
+ (Cleaned) GET: " . $mp3 . "<br />
85
+ (Derived) Sent: " . $sent . "<br />
86
+ (Derived) File: " . $file . "<br />
87
+ (Derived) Open: " . $_SERVER['DOCUMENT_ROOT'] . $fp . "<br />
88
+ (Cleaned) pID: " . $playerID . "<br />
89
+ Dbug: " . $dbug . "<br /></p>";
90
+ echo $info;
91
+
92
+ if ( $playerID != "" ) {
93
+ ?>
94
+
95
+ <script type="text/javascript">
96
+ if ( typeof window.parent.MP3_JPLAYER.dl_dialogs !== 'undefined' ) {
97
+ window.parent.MP3_JPLAYER.dl_dialogs[<?php echo $playerID; ?>] = window.parent.MP3_JPLAYER.vars.message_fail;
98
+ }
99
+ </script>
100
+
101
+ <?php
102
+ }
103
+ ?>
104
+
105
+ </body>
 
 
 
 
 
 
 
106
  </html>
help.php CHANGED
@@ -1,190 +1,190 @@
1
- <?php
2
- function mp3j_print_help_page() {
3
-
4
- global $mp3_fox;
5
- $O = $mp3_fox->getAdminOptions();
6
- $colours_array = array();
7
- $openTab = '0';
8
- ?>
9
-
10
-
11
- <div class="wrap">
12
-
13
-
14
- <h2>&nbsp;</h2>
15
- <h1>Help
16
- <span class="description" style="font-size:10px;"> &nbsp; MP3-jPlayer &nbsp;|&nbsp; Version <?php echo $mp3_fox->version_of_plugin; ?></span>
17
- <?php
18
- if ( $O['disable_jquery_libs'] == "yes" )
19
- {
20
- echo '&nbsp;<span style="font-size: 11px; font-weight:700; color:#f66;">(jQuery and UI scripts are turned off)</span>';
21
- }
22
- ?>
23
- </h1>
24
- <p>&nbsp;</p>
25
-
26
-
27
-
28
- <p>Add players using <code>[mp3j]</code> <code>[mp3t]</code> <code>[mp3-jplayer]</code> <code>[mp3-popout]</code> shortcodes, links to mp3s, <a href="widgets.php">widgets</a>, and <a href="<?php echo $mp3_fox->PluginFolder; ?>/template-tag-help.htm">Template Tags</a>.</p>
29
-
30
- <br />
31
- <h3 style="margin-left:0;">Shortcode Parameters</h3>
32
- <div class="Ahelp1">
33
-
34
- <h4><code>[mp3-jplayer]</code> <span class="description">Playlist player</span></h4>
35
-
36
- <h5>Parameters:</h5>
37
- <p><code>tracks</code> <span class="description">filenames/URIs/FEEDs (<code>,</code> separated)</span><br />
38
- <code>captions</code> <span class="description">caption text (<code>;</code> separated)</span><br />
39
- <code>vol</code> <span class="description">0 - 100</span><br />
40
- <code>autoplay</code> <span class="description">y/n</span><br />
41
- <code>loop</code> <span class="description">y/n</span><br />
42
- <code>dload</code> <span class="description">y / n / loggedin (show download link)</span><br />
43
- <code>list</code> <span class="description">y/n (show playlist)</span><br />
44
- <code>pick</code> <span class="description">a number (picks random selection)</span><br />
45
- <code>shuffle</code> <span class="description">y/n (shuffle track order)</span><br />
46
- <code>title</code> <span class="description">text above player</span><br />
47
- <code>pos</code> <span class="description">rel-L, rel-C, rel-R, left, right</span><br />
48
- <code>width</code> <span class="description">in px or %</span><br />
49
- <code>height</code> <span class="description">in px (player height excluding list)</span><br />
50
- <code>pn</code> <span class="description">y/n (show prev/next buttons)</span><br />
51
- <code>stop</code> <span class="description">y/n (show stop button)</span><br />
52
- <code>id</code> <span class="description">a page id (to read the custom fields from)</span><br />
53
- <code>images</code> <span class="description">comma separated list of track image urls</span><br />
54
- <!--<code>imglinks</code> <span class="description">comma separated list of arbitrary links</span><br />-->
55
- <code>fsort</code> <span class="description">asc/desc (folder feed direction)</span><br />
56
- <code>style</code> <span class="description">modify player style</span> <strong><a href="<?php echo $mp3_fox->PluginFolder; ?>/style-param-help.htm">Help</a></strong></p>
57
-
58
- </div>
59
-
60
- <div class="Ahelp1">
61
- <h4><code>[mp3j]</code> &amp; <code>[mp3t]</code> <span class="description">Single-track players</span></h4>
62
-
63
- <h5>Parameters:</h5>
64
- <p><code>track</code> <span class="description">filename or URI</span><br />
65
- <code>caption</code> <span class="description">caption text (right of title)</span><br />
66
- <code>vol</code> <span class="description">0 - 100</span><br />
67
- <code>volslider</code> <span class="description">y/n</span><br />
68
- <code>autoplay</code> <span class="description">y/n</span><br />
69
- <code>loop</code> <span class="description">y/n</span><br />
70
- <code>title</code> <span class="description">text (replaces both title and caption)</span><br />
71
- <code>bold</code> <span class="description">y/n</span><br />
72
- <code>flip</code> <span class="description">y/n (play/pause)</span><br />
73
- <code>ind</code> <span class="description">y/n (hide indicator and time)</span><br />
74
- <code>flow</code> <span class="description">y/n (don't line break)</span><br />
75
- <code>style</code> <span class="description">modify player style</span> <strong><a href="<?php echo $mp3_fox->PluginFolder; ?>/style-param-help.htm">Help</a></strong></p>
76
-
77
- <h5>Also for <code>[mp3t]</code></h5>
78
- <p><code>play</code> play button text<br /><code>stop</code> pause button text</p>
79
-
80
- </div>
81
-
82
- <div class="Ahelp1">
83
- <h4><code>[mp3-popout]</code> <span class="description">Link to pop-out player</span></h4>
84
-
85
- <h5>Parameters:</h5>
86
- <p><code>tracks</code> <span class="description">files/URIs/FEEDs (<code>,</code> separated)</span><br />
87
- <code>captions</code> <span class="description">caption text (<code>;</code> separated)</span><br />
88
- <code>vol</code> <span class="description">0 - 100</span><br />
89
- <code>autoplay</code> <span class="description">y / n</span><br />
90
- <code>loop</code> <span class="description">y / n</span><br />
91
- <code>dload</code> <span class="description">y / n / loggedin (show download link)</span><br />
92
- <code>list</code> <span class="description">y/n (show popout playlist)</span><br />
93
- <code>pick</code> <span class="description">number (pick random selection)</span><br />
94
- <code>shuffle</code> <span class="description">y/n (shuffle track order)</span><br />
95
- <code>title</code> <span class="description">title for the popout window</span><br />
96
- <code>pos</code> <span class="description">rel-L, rel-C, rel-R, left, right (link position)</span><br />
97
- <code>text</code> <span class="description">text for the link</span><br />
98
- <code>height</code> <span class="description">px (popout player height excluding it's list)</span><br />
99
- <code>id</code> <span class="description">a page id (to read the custom fields from)</span><br />
100
- <code>tag</code> <span class="description">html tag for text (eg. <code>h2</code>, Default is <code>p</code>)</span><br />
101
- <code>image</code> <span class="description">image for the popout link</span><br />
102
- <code>images</code> <span class="description">comma separated list of track image urls</span><br />
103
- <!--<code>imglinks</code> <span class="description">comma separated list of arbitrary links</span><br />-->
104
- <code>fsort</code> <span class="description">asc/desc (folder feed direction)</span><br />
105
- <code>style</code> <span class="description">modify player style</span> <strong><a href="<?php echo $mp3_fox->PluginFolder; ?>/style-param-help.htm">Help</a></strong></p>
106
- </div>
107
-
108
- <!-- Not in this release
109
- <div class="Ahelp1">
110
- <h5><code>[mp3-link]</code> Play from a playlist player</h5>
111
- <p><code>player</code> number of the player to operate<br /><code>track</code> the track number<br /><code>text</code> link text, defaults to <code>Play</code><br /><code>bold</code> y/n</p>
112
- </div>
113
- -->
114
-
115
- <br class="clearB" /><br />
116
-
117
- <p><strong>Eg</strong>. <span class="description">Play a url:</span> <code>[mp3j track="http://somedomain.com/myfile.mp3"]</code><br />
118
- <strong>Eg</strong>. <span class="description">Play a file from default folder (set below) or library:</span> <code>[mp3j track="myfile.mp3"]</code><br />
119
- <strong>Eg</strong>. <span class="description">Make a playlist player:</span> <code>[mp3-jplayer tracks="fileA.mp3, http://somedomain.com/fileB.mp3, fileC.mp3"]</code><br />
120
- <strong>Eg</strong>. <span class="description">Add titles:</span> <code>[mp3-jplayer tracks="My Title@fileA.mp3, My Title@fileB.mp3, My Title@fileC.mp3"]</code><br />
121
- <strong>Eg</strong>. <span class="description">Add captions:</span> <code>[mp3-jplayer tracks="fileA.mp3, fileB.mp3" captions="Caption A; Caption B"]</code></p>
122
- <p><a href="http://sjward.org/jplayer-for-wordpress" target="_blank">More shortcode examples</a></p>
123
- <br />
124
-
125
- <p><strong>Use these commands with [mp3-jplayer] in the <code>tracks</code> parameter to playlist entire folders or the library:</strong></p>
126
- <p><code>FEED:LIB</code> playlists all mp3s in the library.<br />
127
- <code>FEED:DF</code> playlists your default folder.<br />
128
- <code>FEED:/my/music</code> playlists a folder or subfolder (relative to root of domain, not the WP install)</p>
129
- <p><strong>Eg</strong>. Play 5 random tracks from the library: <code>[mp3-jplayer tracks="FEED:LIB" pick="5"]</code><br />
130
- <strong>Eg</strong>. Play everything in the folder called 'tunes': <code>[mp3-jplayer tracks="FEED:/tunes"]</code></p>
131
-
132
- <p>The <code>tracks</code> parameter can contain a mix of FEEDs and filenames/urls, eg. <code>[mp3-jplayer tracks="myfileA.mp3, FEED:/tunes, Title@myfileB.mp3, FEED:DF"]</code>.
133
- When just a filename is used the file must be in either your media library or in the default folder (set on this page). You can also specify a file in a sub
134
- directory in the default folder eg. <code>tracks=&quot;subfolder/file.mp3&quot;</code>.</p>
135
-
136
- <br />
137
-
138
- <h3 style="margin-left:0;">Custom Fields</h3>
139
- <p>You can write playlists into the custom fields that are on page and post edit screens (check your 'screen options' at top-right
140
- if they're not visible). They can be picked up with any of the shortcodes (from any page/post, or with the template tag, or by the widgets). See below for how
141
- to set them up and some example uses:</p>
142
-
143
- <p class="description">1. Enter <code>mp3</code> into the left hand box (the 'key' box).<br />2. Write the filename, URI, or 'FEED' (see above) into the right hand box (the 'value' box) and hit 'add custom field'</p>
144
- <p>Add each track or 'FEED' in a new field pair.</p>
145
- <p>To add titles and captions in the custom fields use the following format:</p>
146
- <p class="description">1. Add a dot, then the caption in the left hand box, eg: <code>mp3.My Caption</code>
147
- <br />2. Add the title, then an '@' before the filename in the right box, eg: <code>My Title@filename</code></p>
148
- <p>The keys (left boxes) can be numbered, eg:<code>1 mp3</code> will be first on the playlist.</p>
149
-
150
- <p><strong>Eg</strong>. If a custom field key / value pair is set as <code>mp3</code> / <code>FEED:LIB</code>, then the library is available to any shortcodes, so:<br />
151
-
152
- <code>[mp3j]</code> or <code>[mp3t]</code> <span class="description">plays the next track from the library in a single player</span> <br />
153
- <code>[mp3j track="3"]</code> or <code>[mp3t track="3"]</code> <span class="description">plays track 3 from the library in a single player</span> <br />
154
- <code>[mp3-jplayer]</code> <span class="description">playlists all the custom fields in a playlist player</span><br /></p>
155
-
156
- <br />
157
-
158
-
159
- <h3 style="margin-left:0;">Widgets</h3>
160
- <p class="description">
161
- MP3j-sh - <span class="description">Adds players by writing shortcodes.</span><br />
162
- MP3j-ui - <span class="description">Adds a playlist player by using tick boxes and modes. Note that some features such as manually written captions, and additional style (css classes) cannot be set with this widget, use the mp3j-sh widget instead.</span>
163
- </p>
164
- <br />
165
- <h3 style="margin-left:0;">Template Tags</h3>
166
- <p class="description">For use in theme files, See <a href="<?php echo $mp3_fox->PluginFolder; ?>/template-tag-help.htm">Template Tag Help</a> for more details.</p>
167
- <p style="line-height:22px;"><code style="font-size:13px;">mp3j_addscripts( $style )</code><br /><code style="font-size:13px;">mp3j_put( $shortcodes )</code><br /><code style="font-size:13px;">mp3j_grab_library( $format )</code><br/><code style="font-size:13px;">mp3j_debug()</code></p>
168
-
169
- <br />
170
-
171
- <h3 style="margin-left:0;">Testing</h3>
172
- <p><strong>Make sure you're using default plugin settings for these tests.</strong></p>
173
- <p>You can test the plugin with a valid mp3 by copy/pasting the following shortcode into a page or post:<br />
174
- <code>[mp3-jplayer tracks="http://sjward.org/seven.mp3"]</code></p>
175
-
176
- <p>To test link replacement copy/paste one of these links, if you're not sure which one then paste them both (one of them should work):</p>
177
- <p>If you use the visual (default) editor: <code><a href="http://sjward.org/seven.mp3">Test link</a></code><br />
178
- If you use the text editor: <code>&lt;a href="http://sjward.org/seven.mp3"&gt;Test link&lt;/a&gt;</code></p>
179
-
180
- <p><br />Links to info:<br /><a href="http://sjward.org/jplayer-for-wordpress">Demo page</a><br /><a href="<?php echo $mp3_fox->PluginFolder; ?>/style-param-help.htm">Style Parameter Help</a><br /><a href="<?php echo $mp3_fox->PluginFolder; ?>/remote/help.txt">Forcing Remote Downloads</a><br /><a href="<?php echo $mp3_fox->PluginFolder; ?>/template-tag-help.htm">Template Tag Help</a></p>
181
- <br /><br />
182
-
183
-
184
-
185
- </div>
186
-
187
-
188
- <?php
189
- }
190
  ?>
1
+ <?php
2
+ function mp3j_print_help_page() {
3
+
4
+ global $mp3_fox;
5
+ $O = $mp3_fox->getAdminOptions();
6
+ $colours_array = array();
7
+ $openTab = '0';
8
+ ?>
9
+
10
+
11
+ <div class="wrap">
12
+
13
+
14
+ <h2>&nbsp;</h2>
15
+ <h1>Help
16
+ <span class="description" style="font-size:10px;"> &nbsp; MP3-jPlayer &nbsp;|&nbsp; Version <?php echo $mp3_fox->version_of_plugin; ?></span>
17
+ <?php
18
+ if ( $O['disable_jquery_libs'] == "yes" )
19
+ {
20
+ echo '&nbsp;<span style="font-size: 11px; font-weight:700; color:#f66;">(jQuery and UI scripts are turned off)</span>';
21
+ }
22
+ ?>
23
+ </h1>
24
+ <p>&nbsp;</p>
25
+
26
+
27
+
28
+ <p>Add players using <code>[mp3j]</code> <code>[mp3t]</code> <code>[mp3-jplayer]</code> <code>[mp3-popout]</code> shortcodes, links to mp3s, <a href="widgets.php">widgets</a>, and <a href="<?php echo $mp3_fox->PluginFolder; ?>/template-tag-help.htm">Template Tags</a>.</p>
29
+
30
+ <br />
31
+ <h3 style="margin-left:0;">Shortcode Parameters</h3>
32
+ <div class="Ahelp1">
33
+
34
+ <h4><code>[mp3-jplayer]</code> <span class="description">Playlist player</span></h4>
35
+
36
+ <h5>Parameters:</h5>
37
+ <p><code>tracks</code> <span class="description">filenames/URIs/FEEDs (<code>,</code> separated)</span><br />
38
+ <code>captions</code> <span class="description">caption text (<code>;</code> separated)</span><br />
39
+ <code>vol</code> <span class="description">0 - 100</span><br />
40
+ <code>autoplay</code> <span class="description">y/n</span><br />
41
+ <code>loop</code> <span class="description">y/n</span><br />
42
+ <code>dload</code> <span class="description">y / n / loggedin (show download link)</span><br />
43
+ <code>list</code> <span class="description">y/n (show playlist)</span><br />
44
+ <code>pick</code> <span class="description">a number (picks random selection)</span><br />
45
+ <code>shuffle</code> <span class="description">y/n (shuffle track order)</span><br />
46
+ <code>title</code> <span class="description">text above player</span><br />
47
+ <code>pos</code> <span class="description">rel-L, rel-C, rel-R, left, right</span><br />
48
+ <code>width</code> <span class="description">in px or %</span><br />
49
+ <code>height</code> <span class="description">in px (player height excluding list)</span><br />
50
+ <code>pn</code> <span class="description">y/n (show prev/next buttons)</span><br />
51
+ <code>stop</code> <span class="description">y/n (show stop button)</span><br />
52
+ <code>id</code> <span class="description">a page id (to read the custom fields from)</span><br />
53
+ <code>images</code> <span class="description">comma separated list of track image urls</span><br />
54
+ <!--<code>imglinks</code> <span class="description">comma separated list of arbitrary links</span><br />-->
55
+ <code>fsort</code> <span class="description">asc/desc (folder feed direction)</span><br />
56
+ <code>style</code> <span class="description">modify player style</span> <strong><a href="<?php echo $mp3_fox->PluginFolder; ?>/style-param-help.htm">Help</a></strong></p>
57
+
58
+ </div>
59
+
60
+ <div class="Ahelp1">
61
+ <h4><code>[mp3j]</code> &amp; <code>[mp3t]</code> <span class="description">Single-track players</span></h4>
62
+
63
+ <h5>Parameters:</h5>
64
+ <p><code>track</code> <span class="description">filename or URI</span><br />
65
+ <code>caption</code> <span class="description">caption text (right of title)</span><br />
66
+ <code>vol</code> <span class="description">0 - 100</span><br />
67
+ <code>volslider</code> <span class="description">y/n</span><br />
68
+ <code>autoplay</code> <span class="description">y/n</span><br />
69
+ <code>loop</code> <span class="description">y/n</span><br />
70
+ <code>title</code> <span class="description">text (replaces both title and caption)</span><br />
71
+ <code>bold</code> <span class="description">y/n</span><br />
72
+ <code>flip</code> <span class="description">y/n (play/pause)</span><br />
73
+ <code>ind</code> <span class="description">y/n (hide indicator and time)</span><br />
74
+ <code>flow</code> <span class="description">y/n (don't line break)</span><br />
75
+ <code>style</code> <span class="description">modify player style</span> <strong><a href="<?php echo $mp3_fox->PluginFolder; ?>/style-param-help.htm">Help</a></strong></p>
76
+
77
+ <h5>Also for <code>[mp3t]</code></h5>
78
+ <p><code>play</code> play button text<br /><code>stop</code> pause button text</p>
79
+
80
+ </div>
81
+
82
+ <div class="Ahelp1">
83
+ <h4><code>[mp3-popout]</code> <span class="description">Link to pop-out player</span></h4>
84
+
85
+ <h5>Parameters:</h5>
86
+ <p><code>tracks</code> <span class="description">files/URIs/FEEDs (<code>,</code> separated)</span><br />
87
+ <code>captions</code> <span class="description">caption text (<code>;</code> separated)</span><br />
88
+ <code>vol</code> <span class="description">0 - 100</span><br />
89
+ <code>autoplay</code> <span class="description">y / n</span><br />
90
+ <code>loop</code> <span class="description">y / n</span><br />
91
+ <code>dload</code> <span class="description">y / n / loggedin (show download link)</span><br />
92
+ <code>list</code> <span class="description">y/n (show popout playlist)</span><br />
93
+ <code>pick</code> <span class="description">number (pick random selection)</span><br />
94
+ <code>shuffle</code> <span class="description">y/n (shuffle track order)</span><br />
95
+ <code>title</code> <span class="description">title for the popout window</span><br />
96
+ <code>pos</code> <span class="description">rel-L, rel-C, rel-R, left, right (link position)</span><br />
97
+ <code>text</code> <span class="description">text for the link</span><br />
98
+ <code>height</code> <span class="description">px (popout player height excluding it's list)</span><br />
99
+ <code>id</code> <span class="description">a page id (to read the custom fields from)</span><br />
100
+ <code>tag</code> <span class="description">html tag for text (eg. <code>h2</code>, Default is <code>p</code>)</span><br />
101
+ <code>image</code> <span class="description">image for the popout link</span><br />
102
+ <code>images</code> <span class="description">comma separated list of track image urls</span><br />
103
+ <!--<code>imglinks</code> <span class="description">comma separated list of arbitrary links</span><br />-->
104
+ <code>fsort</code> <span class="description">asc/desc (folder feed direction)</span><br />
105
+ <code>style</code> <span class="description">modify player style</span> <strong><a href="<?php echo $mp3_fox->PluginFolder; ?>/style-param-help.htm">Help</a></strong></p>
106
+ </div>
107
+
108
+ <!-- Not in this release
109
+ <div class="Ahelp1">
110
+ <h5><code>[mp3-link]</code> Play from a playlist player</h5>
111
+ <p><code>player</code> number of the player to operate<br /><code>track</code> the track number<br /><code>text</code> link text, defaults to <code>Play</code><br /><code>bold</code> y/n</p>
112
+ </div>
113
+ -->
114
+
115
+ <br class="clearB" /><br />
116
+
117
+ <p><strong>Eg</strong>. <span class="description">Play a url:</span> <code>[mp3j track="http://somedomain.com/myfile.mp3"]</code><br />
118
+ <strong>Eg</strong>. <span class="description">Play a file from default folder (set below) or library:</span> <code>[mp3j track="myfile.mp3"]</code><br />
119
+ <strong>Eg</strong>. <span class="description">Make a playlist player:</span> <code>[mp3-jplayer tracks="fileA.mp3, http://somedomain.com/fileB.mp3, fileC.mp3"]</code><br />
120
+ <strong>Eg</strong>. <span class="description">Add titles:</span> <code>[mp3-jplayer tracks="My Title@fileA.mp3, My Title@fileB.mp3, My Title@fileC.mp3"]</code><br />
121
+ <strong>Eg</strong>. <span class="description">Add captions:</span> <code>[mp3-jplayer tracks="fileA.mp3, fileB.mp3" captions="Caption A; Caption B"]</code></p>
122
+ <p><a href="http://sjward.org/jplayer-for-wordpress" target="_blank">More shortcode examples</a></p>
123
+ <br />
124
+
125
+ <p><strong>Use these commands with [mp3-jplayer] in the <code>tracks</code> parameter to playlist entire folders or the library:</strong></p>
126
+ <p><code>FEED:LIB</code> playlists all mp3s in the library.<br />
127
+ <code>FEED:DF</code> playlists your default folder.<br />
128
+ <code>FEED:/my/music</code> playlists a folder or subfolder (relative to root of domain, not the WP install)</p>
129
+ <p><strong>Eg</strong>. Play 5 random tracks from the library: <code>[mp3-jplayer tracks="FEED:LIB" pick="5"]</code><br />
130
+ <strong>Eg</strong>. Play everything in the folder called 'tunes': <code>[mp3-jplayer tracks="FEED:/tunes"]</code></p>
131
+
132
+ <p>The <code>tracks</code> parameter can contain a mix of FEEDs and filenames/urls, eg. <code>[mp3-jplayer tracks="myfileA.mp3, FEED:/tunes, Title@myfileB.mp3, FEED:DF"]</code>.
133
+ When just a filename is used the file must be in either your media library or in the default folder (set on this page). You can also specify a file in a sub
134
+ directory in the default folder eg. <code>tracks=&quot;subfolder/file.mp3&quot;</code>.</p>
135
+
136
+ <br />
137
+
138
+ <h3 style="margin-left:0;">Custom Fields</h3>
139
+ <p>You can write playlists into the custom fields that are on page and post edit screens (check your 'screen options' at top-right
140
+ if they're not visible). They can be picked up with any of the shortcodes (from any page/post, or with the template tag, or by the widgets). See below for how
141
+ to set them up and some example uses:</p>
142
+
143
+ <p class="description">1. Enter <code>mp3</code> into the left hand box (the 'key' box).<br />2. Write the filename, URI, or 'FEED' (see above) into the right hand box (the 'value' box) and hit 'add custom field'</p>
144
+ <p>Add each track or 'FEED' in a new field pair.</p>
145
+ <p>To add titles and captions in the custom fields use the following format:</p>
146
+ <p class="description">1. Add a dot, then the caption in the left hand box, eg: <code>mp3.My Caption</code>
147
+ <br />2. Add the title, then an '@' before the filename in the right box, eg: <code>My Title@filename</code></p>
148
+ <p>The keys (left boxes) can be numbered, eg:<code>1 mp3</code> will be first on the playlist.</p>
149
+
150
+ <p><strong>Eg</strong>. If a custom field key / value pair is set as <code>mp3</code> / <code>FEED:LIB</code>, then the library is available to any shortcodes, so:<br />
151
+
152
+ <code>[mp3j]</code> or <code>[mp3t]</code> <span class="description">plays the next track from the library in a single player</span> <br />
153
+ <code>[mp3j track="3"]</code> or <code>[mp3t track="3"]</code> <span class="description">plays track 3 from the library in a single player</span> <br />
154
+ <code>[mp3-jplayer]</code> <span class="description">playlists all the custom fields in a playlist player</span><br /></p>
155
+
156
+ <br />
157
+
158
+
159
+ <h3 style="margin-left:0;">Widgets</h3>
160
+ <p class="description">
161
+ MP3j-sh - <span class="description">Adds players by writing shortcodes.</span><br />
162
+ MP3j-ui - <span class="description">Adds a playlist player by using tick boxes and modes. Note that some features such as manually written captions, and additional style (css classes) cannot be set with this widget, use the mp3j-sh widget instead.</span>
163
+ </p>
164
+ <br />
165
+ <h3 style="margin-left:0;">Template Tags</h3>
166
+ <p class="description">For use in theme files, See <a href="<?php echo $mp3_fox->PluginFolder; ?>/template-tag-help.htm">Template Tag Help</a> for more details.</p>
167
+ <p style="line-height:22px;"><code style="font-size:13px;">mp3j_addscripts( $style )</code><br /><code style="font-size:13px;">mp3j_put( $shortcodes )</code><br /><code style="font-size:13px;">mp3j_grab_library( $format )</code><br/><code style="font-size:13px;">mp3j_debug()</code></p>
168
+
169
+ <br />
170
+
171
+ <h3 style="margin-left:0;">Testing</h3>
172
+ <p><strong>Make sure you're using default plugin settings for these tests.</strong></p>
173
+ <p>You can test the plugin with a valid mp3 by copy/pasting the following shortcode into a page or post:<br />
174
+ <code>[mp3-jplayer tracks="http://sjward.org/seven.mp3"]</code></p>
175
+
176
+ <p>To test link replacement copy/paste one of these links, if you're not sure which one then paste them both (one of them should work):</p>
177
+ <p>If you use the visual (default) editor: <code><a href="http://sjward.org/seven.mp3">Test link</a></code><br />
178
+ If you use the text editor: <code>&lt;a href="http://sjward.org/seven.mp3"&gt;Test link&lt;/a&gt;</code></p>
179
+
180
+ <p><br />Links to info:<br /><a href="http://sjward.org/jplayer-for-wordpress">Demo page</a><br /><a href="<?php echo $mp3_fox->PluginFolder; ?>/style-param-help.htm">Style Parameter Help</a><br /><a href="<?php echo $mp3_fox->PluginFolder; ?>/remote/help.txt">Forcing Remote Downloads</a><br /><a href="<?php echo $mp3_fox->PluginFolder; ?>/template-tag-help.htm">Template Tag Help</a></p>
181
+ <br /><br />
182
+
183
+
184
+
185
+ </div>
186
+
187
+
188
+ <?php
189
+ }
190
  ?>
js/admin-1.8.js CHANGED
@@ -1,235 +1,235 @@
1
- /* MP3-jPlayer 1.8 - admin js */
2
-
3
- var MP3J_ADMIN = {
4
- toggle_states: [
5
- { fox_library: false },
6
- { fox_folder: false }
7
- ],
8
- showhideit: function ( id, label ) {
9
- if (this.toggle_states[id]) {
10
- jQuery("#" + id + "-list").fadeOut(100);
11
- jQuery("#" + id + "-toggle").empty().append('Show '+label).blur();
12
- this.toggle_states[id] = false;
13
- } else {
14
- jQuery("#" + id + "-list").fadeIn(200);
15
- jQuery("#" + id + "-toggle").empty().append('Hide '+label).blur();
16
- this.toggle_states[id] = true;
17
- }
18
- }
19
- }
20
-
21
-
22
- /* Form select event on player style dropdown */
23
- var player_select=document.getElementById("player-select");
24
- player_select.onchange=function(){
25
- var chosen=this.options[this.selectedIndex];
26
- if (chosen.value=="styleF" || chosen.value=="styleG" || chosen.value=="styleH"){
27
- $S('mp3fcss').color="#d6d6d6";
28
- $S('mp3fcss').backgroundColor="#fcfcfc";
29
- $S('mp3fcss').borderColor="#f0f0f0";
30
- $S('player-csssheet').color="#d6d6d6";
31
- }
32
- if (chosen.value=="styleI"){
33
- $S('mp3fcss').color="#000";
34
- $S('mp3fcss').backgroundColor="#fff";
35
- $S('mp3fcss').borderColor="#dfdfdf";
36
- $S('player-csssheet').color="#444";
37
- }
38
- };
39
-
40
-
41
- /* Admin/Picker interaction */
42
- var curcol="";
43
- var initcolour = "#6d9dde";
44
- var red = 0; // between 0 and 1
45
- var green = 0;
46
- var blue = 0;
47
- var hue = 0; // between 0 and 360
48
- var saturation = 0; // between 0 and 1
49
- var value = 0;
50
-
51
- function putfcolour(fID,blID) {
52
- $woof(fID).value='#'+curcol;
53
- $S(blID).background='#'+curcol;
54
- }
55
- function udfcol(fID, blID) {
56
- $S(blID).background=$woof(fID).value;
57
- }
58
- function sendfcolour(fID) {
59
- hval=$woof(fID).value;
60
- initpicker(hval);
61
- }
62
- function initpicker(hval){
63
- HextoRGB(hval);
64
- RGBtoHSV();
65
- sendHSV={H:hue, S:saturation*100, V:value*100};
66
- HSVupdate(sendHSV);
67
- $S('SVslide').left = Math.round(saturation*100*1.62)-1 + "px";
68
- $S('SVslide').top = 161-Math.round((value*100*1.62)) + "px";
69
- $S('Hslide').top = 159-Math.round((165/360)*hue) + "px";
70
- $S('SV').backgroundColor='#'+color.HSV_HEX({H:hue, S:100, V:100});
71
- }
72
- function HextoRGB(hexString) {
73
- if(hexString === null || typeof(hexString) != "string") {
74
- SetRGB(0,0,0);
75
- return;
76
- }
77
- if (hexString.substr(0, 1) == '#')
78
- hexString = hexString.substr(1);
79
- if(hexString.length != 6) {
80
- SetRGB(0,0,0);
81
- return;
82
- }
83
- var r = parseInt(hexString.substr(0, 2), 16);
84
- var g = parseInt(hexString.substr(2, 2), 16);
85
- var b = parseInt(hexString.substr(4, 2), 16);
86
- if (isNaN(r) || isNaN(g) || isNaN(b)) {
87
- SetRGB(0,0,0);
88
- return;
89
- }
90
- SetRGB(r,g,b);
91
- }
92
- function SetRGB(r, g, b){
93
- red = r/255.0;
94
- green = g/255.0;
95
- blue = b/255.0;
96
- }
97
- function RGBtoHSV(){
98
- var max = Math.max(Math.max(red, green), blue);
99
- var min = Math.min(Math.min(red, green), blue);
100
- value = max;
101
- saturation = 0;
102
- if(max !== 0)
103
- saturation = 1 - min/max;
104
- hue = 0;
105
- if(min == max)
106
- return;
107
-
108
- var delta = (max - min);
109
- if (red == max)
110
- hue = (green - blue) / delta;
111
- else if (green == max)
112
- hue = 2 + ((blue - red) / delta);
113
- else
114
- hue = 4 + ((red - green) / delta);
115
- hue = hue * 60;
116
- if(hue < 0)
117
- hue += 360;
118
- }
119
-
120
- /* Colour picker (modified DHTML Color Square by ColorJack) */
121
- function $woof(v,o) { return((typeof(o)=='object'?o:document).getElementById(v)); }
122
- function $S(o) { o=$woof(o); if(o) return(o.style); }
123
- function abPos(o) { var o=(typeof(o)=='object'?o:$woof(o)), z={X:0,Y:0}; while(o!==null) { z.X+=o.offsetLeft; z.Y+=o.offsetTop; o=o.offsetParent; } return(z); }
124
- function agent(v) { return(Math.max(navigator.userAgent.toLowerCase().indexOf(v),0)); }
125
- function toggle(v) { $S(v).display=($S(v).display=='none'?'block':'none'); }
126
- function within(v,a,z) { return((v>=a && v<=z)?true:false); }
127
- function XY(e,v) { var o=agent('msie')?{'X':event.clientX+document.documentElement.scrollLeft,'Y':event.clientY+document.documentElement.scrollTop}:{'X':e.pageX,'Y':e.pageY}; return(v?o[v]:o); }
128
- function zero(v) { v=parseInt(v); return(!isNaN(v)?v:0); }
129
-
130
- var maxValue={'H':360,'S':100,'V':100}, HSV={H:360, S:100, V:100};
131
- var slideHSV={H:360, S:100, V:100}, zINDEX=15, stop=1;
132
- function HSVslide(d,o,e) {
133
- function tXY(e) { tY=XY(e).Y-ab.Y; tX=XY(e).X-ab.X; }
134
- function mkHSV(a,b,c) { return(Math.min(a,Math.max(0,Math.ceil((parseInt(c)/b)*a)))); }
135
- function ckHSV(a,b) { if(within(a,0,b)) return(a); else if(a>b) return(b); else if(a<0) return('-'+oo); }
136
- function drag(e) {
137
- if(!stop) {
138
- if(d!='drag') tXY(e);
139
- if(d=='SVslide') {
140
- ds.left=ckHSV(tX-oo,162)+'px';
141
- ds.top=ckHSV(tY-oo,162)+'px';
142
- slideHSV.S=mkHSV(100,162,ds.left);
143
- slideHSV.V=100-mkHSV(100,162,ds.top);
144
- HSVupdate();
145
- }
146
- else if(d=='Hslide') {
147
- var ck=ckHSV(tY-oo,163), r=['H','S','V'], z={};
148
- ds.top=(ck-5)+'px';
149
- slideHSV.H=mkHSV(360,163,ck);
150
- for(var i in r) {
151
- i=r[i];
152
- z[i]=(i=='H')?maxValue[i]-mkHSV(maxValue[i],163,ck):HSV[i];
153
- }
154
- HSVupdate(z);
155
- $S('SV').backgroundColor='#'+color.HSV_HEX({H:HSV.H, S:100, V:100});
156
- }
157
- }}
158
- if(stop) {
159
- stop='';
160
- var ds=$S(d!='drag'?d:o);
161
- var ab=abPos($woof(o)), tX, tY, oo=(d=='Hslide')?2:4;
162
- ab.X+=10; ab.Y+=22;
163
- if(d=='SVslide') slideHSV.H=HSV.H;
164
- document.onmousemove=drag;
165
- document.onmouseup=function(){
166
- stop=1;
167
- document.onmousemove='';
168
- document.onmouseup='';
169
- };
170
- drag(e);
171
- }
172
- }
173
- function HSVupdate(v) {
174
- v=color.HSV_HEX(HSV=v?v:slideHSV);
175
- $woof('plugHEX').innerHTML='#'+v;
176
- $S('plugCUR').background='#'+v;
177
- curcol=v;
178
- return(v);
179
- }
180
- function loadSV() {
181
- var z='';
182
- for(var i=165; i>=0; i--) {
183
- z+="<div style=\"BACKGROUND: #"+color.HSV_HEX({H:Math.round((360/165)*i), S:100, V:100})+";\"><br /><\/div>";
184
- }
185
- }
186
-
187
- /* Colour library */
188
- color={};
189
- color.cords=function(W) {
190
- var W2=W/2, rad=(hsv.H/360)*(Math.PI*2), hyp=(hsv.S+(100-hsv.V))/100*(W2/2);
191
- $S('mCur').left=Math.round(Math.abs(Math.round(Math.sin(rad)*hyp)+W2+3))+'px';
192
- $S('mCur').top=Math.round(Math.abs(Math.round(Math.cos(rad)*hyp)-W2-21))+'px';
193
- };
194
- color.HEX=function(o) { o=Math.round(Math.min(Math.max(0,o),255));
195
- return("0123456789ABCDEF".charAt((o-o%16)/16)+"0123456789ABCDEF".charAt(o%16));
196
- };
197
- color.RGB_HEX=function(o) { var fu=color.HEX; return(fu(o.R)+fu(o.G)+fu(o.B)); };
198
- color.HSV_RGB=function(o) {
199
-
200
- var R, G, A, B, C, S=o.S/100, V=o.V/100, H=o.H/360;
201
- if(S>0) { if(H>=1) H=0;
202
- H=6*H; F=H-Math.floor(H);
203
- A=Math.round(255*V*(1-S));
204
- B=Math.round(255*V*(1-(S*F)));
205
- C=Math.round(255*V*(1-(S*(1-F))));
206
- V=Math.round(255*V);
207
-
208
- switch(Math.floor(H)) {
209
- case 0: R=V; G=C; B=A; break;
210
- case 1: R=B; G=V; B=A; break;
211
- case 2: R=A; G=V; B=C; break;
212
- case 3: R=A; G=B; B=V; break;
213
- case 4: R=C; G=A; B=V; break;
214
- case 5: R=V; G=A; B=B; break;
215
- }
216
- return({'R':R?R:0, 'G':G?G:0, 'B':B?B:0, 'A':1});
217
- }
218
- else return({'R':(V=Math.round(V*255)), 'G':V, 'B':V, 'A':1});
219
- };
220
- color.HSV_HEX=function(o) { return(color.RGB_HEX(color.HSV_RGB(o))); };
221
-
222
- /* Startup */
223
- jQuery("#tog_0-list").css( "display" , "none" );
224
- jQuery("#tog_1-list").css( "display" , "none" );
225
- jQuery("#fox_library-list").css( "display" , "none" );
226
- jQuery("#fox_folder-list").css( "display" , "none" );
227
- jQuery("#fox_op1-list").css( "display" , "none" );
228
- jQuery("#fox_op5-list").css( "display" , "none" );
229
- jQuery("#fox_op2-list").css( "display" , "none" );
230
- jQuery("#fox_op3-list").css( "display" , "none" );
231
- jQuery("#fox_op4-list").css( "display" , "none" );
232
-
233
- $S('plugin').display='block';
234
- loadSV();
235
- initpicker(initcolour);
1
+ /* MP3-jPlayer 1.8 - admin js */
2
+
3
+ var MP3J_ADMIN = {
4
+ toggle_states: [
5
+ { fox_library: false },
6
+ { fox_folder: false }
7
+ ],
8
+ showhideit: function ( id, label ) {
9
+ if (this.toggle_states[id]) {
10
+ jQuery("#" + id + "-list").fadeOut(100);
11
+ jQuery("#" + id + "-toggle").empty().append('Show '+label).blur();
12
+ this.toggle_states[id] = false;
13
+ } else {
14
+ jQuery("#" + id + "-list").fadeIn(200);
15
+ jQuery("#" + id + "-toggle").empty().append('Hide '+label).blur();
16
+ this.toggle_states[id] = true;
17
+ }
18
+ }
19
+ }
20
+
21
+
22
+ /* Form select event on player style dropdown */
23
+ var player_select=document.getElementById("player-select");
24
+ player_select.onchange=function(){
25
+ var chosen=this.options[this.selectedIndex];
26
+ if (chosen.value=="styleF" || chosen.value=="styleG" || chosen.value=="styleH"){
27
+ $S('mp3fcss').color="#d6d6d6";
28
+ $S('mp3fcss').backgroundColor="#fcfcfc";
29
+ $S('mp3fcss').borderColor="#f0f0f0";
30
+ $S('player-csssheet').color="#d6d6d6";
31
+ }
32
+ if (chosen.value=="styleI"){
33
+ $S('mp3fcss').color="#000";
34
+ $S('mp3fcss').backgroundColor="#fff";
35
+ $S('mp3fcss').borderColor="#dfdfdf";
36
+ $S('player-csssheet').color="#444";
37
+ }
38
+ };
39
+
40
+
41
+ /* Admin/Picker interaction */
42
+ var curcol="";
43
+ var initcolour = "#6d9dde";
44
+ var red = 0; // between 0 and 1
45
+ var green = 0;
46
+ var blue = 0;
47
+ var hue = 0; // between 0 and 360
48
+ var saturation = 0; // between 0 and 1
49
+ var value = 0;
50
+
51
+ function putfcolour(fID,blID) {
52
+ $woof(fID).value='#'+curcol;
53
+ $S(blID).background='#'+curcol;
54
+ }
55
+ function udfcol(fID, blID) {
56
+ $S(blID).background=$woof(fID).value;
57
+ }
58
+ function sendfcolour(fID) {
59
+ hval=$woof(fID).value;
60
+ initpicker(hval);
61
+ }
62
+ function initpicker(hval){
63
+ HextoRGB(hval);
64
+ RGBtoHSV();
65
+ sendHSV={H:hue, S:saturation*100, V:value*100};
66
+ HSVupdate(sendHSV);
67
+ $S('SVslide').left = Math.round(saturation*100*1.62)-1 + "px";
68
+ $S('SVslide').top = 161-Math.round((value*100*1.62)) + "px";
69
+ $S('Hslide').top = 159-Math.round((165/360)*hue) + "px";
70
+ $S('SV').backgroundColor='#'+color.HSV_HEX({H:hue, S:100, V:100});
71
+ }
72
+ function HextoRGB(hexString) {
73
+ if(hexString === null || typeof(hexString) != "string") {
74
+ SetRGB(0,0,0);
75
+ return;
76
+ }
77
+ if (hexString.substr(0, 1) == '#')
78
+ hexString = hexString.substr(1);
79
+ if(hexString.length != 6) {
80
+ SetRGB(0,0,0);
81
+ return;
82
+ }
83
+ var r = parseInt(hexString.substr(0, 2), 16);
84
+ var g = parseInt(hexString.substr(2, 2), 16);
85
+ var b = parseInt(hexString.substr(4, 2), 16);
86
+ if (isNaN(r) || isNaN(g) || isNaN(b)) {
87
+ SetRGB(0,0,0);
88
+ return;
89
+ }
90
+ SetRGB(r,g,b);
91
+ }
92
+ function SetRGB(r, g, b){
93
+ red = r/255.0;
94
+ green = g/255.0;
95
+ blue = b/255.0;
96
+ }
97
+ function RGBtoHSV(){
98
+ var max = Math.max(Math.max(red, green), blue);
99
+ var min = Math.min(Math.min(red, green), blue);
100
+ value = max;
101
+ saturation = 0;
102
+ if(max !== 0)
103
+ saturation = 1 - min/max;
104
+ hue = 0;
105
+ if(min == max)
106
+ return;
107
+
108
+ var delta = (max - min);
109
+ if (red == max)
110
+ hue = (green - blue) / delta;
111
+ else if (green == max)
112
+ hue = 2 + ((blue - red) / delta);
113
+ else
114
+ hue = 4 + ((red - green) / delta);
115
+ hue = hue * 60;
116
+ if(hue < 0)
117
+ hue += 360;
118
+ }
119
+
120
+ /* Colour picker (modified DHTML Color Square by ColorJack) */
121
+ function $woof(v,o) { return((typeof(o)=='object'?o:document).getElementById(v)); }
122
+ function $S(o) { o=$woof(o); if(o) return(o.style); }
123
+ function abPos(o) { var o=(typeof(o)=='object'?o:$woof(o)), z={X:0,Y:0}; while(o!==null) { z.X+=o.offsetLeft; z.Y+=o.offsetTop; o=o.offsetParent; } return(z); }
124
+ function agent(v) { return(Math.max(navigator.userAgent.toLowerCase().indexOf(v),0)); }
125
+ function toggle(v) { $S(v).display=($S(v).display=='none'?'block':'none'); }
126
+ function within(v,a,z) { return((v>=a && v<=z)?true:false); }
127
+ function XY(e,v) { var o=agent('msie')?{'X':event.clientX+document.documentElement.scrollLeft,'Y':event.clientY+document.documentElement.scrollTop}:{'X':e.pageX,'Y':e.pageY}; return(v?o[v]:o); }
128
+ function zero(v) { v=parseInt(v); return(!isNaN(v)?v:0); }
129
+
130
+ var maxValue={'H':360,'S':100,'V':100}, HSV={H:360, S:100, V:100};
131
+ var slideHSV={H:360, S:100, V:100}, zINDEX=15, stop=1;
132
+ function HSVslide(d,o,e) {
133
+ function tXY(e) { tY=XY(e).Y-ab.Y; tX=XY(e).X-ab.X; }
134
+ function mkHSV(a,b,c) { return(Math.min(a,Math.max(0,Math.ceil((parseInt(c)/b)*a)))); }
135
+ function ckHSV(a,b) { if(within(a,0,b)) return(a); else if(a>b) return(b); else if(a<0) return('-'+oo); }
136
+ function drag(e) {
137
+ if(!stop) {
138
+ if(d!='drag') tXY(e);
139
+ if(d=='SVslide') {
140
+ ds.left=ckHSV(tX-oo,162)+'px';
141
+ ds.top=ckHSV(tY-oo,162)+'px';
142
+ slideHSV.S=mkHSV(100,162,ds.left);
143
+ slideHSV.V=100-mkHSV(100,162,ds.top);
144
+ HSVupdate();
145
+ }
146
+ else if(d=='Hslide') {
147
+ var ck=ckHSV(tY-oo,163), r=['H','S','V'], z={};
148
+ ds.top=(ck-5)+'px';
149
+ slideHSV.H=mkHSV(360,163,ck);
150
+ for(var i in r) {
151
+ i=r[i];
152
+ z[i]=(i=='H')?maxValue[i]-mkHSV(maxValue[i],163,ck):HSV[i];
153
+ }
154
+ HSVupdate(z);
155
+ $S('SV').backgroundColor='#'+color.HSV_HEX({H:HSV.H, S:100, V:100});
156
+ }
157
+ }}
158
+ if(stop) {
159
+ stop='';
160
+ var ds=$S(d!='drag'?d:o);
161
+ var ab=abPos($woof(o)), tX, tY, oo=(d=='Hslide')?2:4;
162
+ ab.X+=10; ab.Y+=22;
163
+ if(d=='SVslide') slideHSV.H=HSV.H;
164
+ document.onmousemove=drag;
165
+ document.onmouseup=function(){
166
+ stop=1;
167
+ document.onmousemove='';
168
+ document.onmouseup='';
169
+ };
170
+ drag(e);
171
+ }
172
+ }
173
+ function HSVupdate(v) {
174
+ v=color.HSV_HEX(HSV=v?v:slideHSV);
175
+ $woof('plugHEX').innerHTML='#'+v;
176
+ $S('plugCUR').background='#'+v;
177
+ curcol=v;
178
+ return(v);
179
+ }
180
+ function loadSV() {
181
+ var z='';
182
+ for(var i=165; i>=0; i--) {
183
+ z+="<div style=\"BACKGROUND: #"+color.HSV_HEX({H:Math.round((360/165)*i), S:100, V:100})+";\"><br /><\/div>";
184
+ }
185
+ }
186
+
187
+ /* Colour library */
188
+ color={};
189
+ color.cords=function(W) {
190
+ var W2=W/2, rad=(hsv.H/360)*(Math.PI*2), hyp=(hsv.S+(100-hsv.V))/100*(W2/2);
191
+ $S('mCur').left=Math.round(Math.abs(Math.round(Math.sin(rad)*hyp)+W2+3))+'px';
192
+ $S('mCur').top=Math.round(Math.abs(Math.round(Math.cos(rad)*hyp)-W2-21))+'px';
193
+ };
194
+ color.HEX=function(o) { o=Math.round(Math.min(Math.max(0,o),255));
195
+ return("0123456789ABCDEF".charAt((o-o%16)/16)+"0123456789ABCDEF".charAt(o%16));
196
+ };
197
+ color.RGB_HEX=function(o) { var fu=color.HEX; return(fu(o.R)+fu(o.G)+fu(o.B)); };
198
+ color.HSV_RGB=function(o) {
199
+
200
+ var R, G, A, B, C, S=o.S/100, V=o.V/100, H=o.H/360;
201
+ if(S>0) { if(H>=1) H=0;
202
+ H=6*H; F=H-Math.floor(H);
203
+ A=Math.round(255*V*(1-S));
204
+ B=Math.round(255*V*(1-(S*F)));
205
+ C=Math.round(255*V*(1-(S*(1-F))));
206
+ V=Math.round(255*V);
207
+
208
+ switch(Math.floor(H)) {
209
+ case 0: R=V; G=C; B=A; break;
210
+ case 1: R=B; G=V; B=A; break;
211
+ case 2: R=A; G=V; B=C; break;
212
+ case 3: R=A; G=B; B=V; break;
213
+ case 4: R=C; G=A; B=V; break;
214
+ case 5: R=V; G=A; B=B; break;
215
+ }
216
+ return({'R':R?R:0, 'G':G?G:0, 'B':B?B:0, 'A':1});
217
+ }
218
+ else return({'R':(V=Math.round(V*255)), 'G':V, 'B':V, 'A':1});
219
+ };
220
+ color.HSV_HEX=function(o) { return(color.RGB_HEX(color.HSV_RGB(o))); };
221
+
222
+ /* Startup */
223
+ jQuery("#tog_0-list").css( "display" , "none" );
224
+ jQuery("#tog_1-list").css( "display" , "none" );
225
+ jQuery("#fox_library-list").css( "display" , "none" );
226
+ jQuery("#fox_folder-list").css( "display" , "none" );
227
+ jQuery("#fox_op1-list").css( "display" , "none" );
228
+ jQuery("#fox_op5-list").css( "display" , "none" );
229
+ jQuery("#fox_op2-list").css( "display" , "none" );
230
+ jQuery("#fox_op3-list").css( "display" , "none" );
231
+ jQuery("#fox_op4-list").css( "display" , "none" );
232
+
233
+ $S('plugin').display='block';
234
+ loadSV();
235
+ initpicker(initcolour);
js/jquery.jplayer.2.7.1.js CHANGED
@@ -1,3198 +1,3198 @@
1
- /*
2
- * jPlayer Plugin for jQuery JavaScript Library
3
- * http://www.jplayer.org
4
- *
5
- * Copyright (c) 2009 - 2014 Happyworm Ltd
6
- * Licensed under the MIT license.
7
- * http://opensource.org/licenses/MIT
8
- *
9
- * Author: Mark J Panaghiston
10
- * Version: 2.7.1
11
- * Date: 19th September 2014
12
- */
13
-
14
- /* Code verified using http://www.jshint.com/ */
15
- /*jshint asi:false, bitwise:false, boss:false, browser:true, curly:true, debug:false, eqeqeq:true, eqnull:false, evil:false, forin:false, immed:false, jquery:true, laxbreak:false, newcap:true, noarg:true, noempty:true, nonew:true, onevar:false, passfail:false, plusplus:false, regexp:false, undef:true, sub:false, strict:false, white:false, smarttabs:true */
16
- /*global define:false, ActiveXObject:false, alert:false */
17
-
18
- /* Support for Zepto 1.0 compiled with optional data module.
19
- * For AMD support, you will need to manually switch the 2 lines in the code below.
20
- * Search terms: "jQuery Switch" and "Zepto Switch"
21
- */
22
-
23
- (function (root, factory) {
24
- if (typeof define === 'function' && define.amd) {
25
- // AMD. Register as an anonymous module.
26
- define(['jquery'], factory); // jQuery Switch
27
- // define(['zepto'], factory); // Zepto Switch
28
- } else {
29
- // Browser globals
30
- if(root.jQuery) { // Use jQuery if available
31
- factory(root.jQuery);
32
- } else { // Otherwise, use Zepto
33
- factory(root.Zepto);
34
- }
35
- }
36
- }(this, function ($, undefined) {
37
-
38
- // Adapted from jquery.ui.widget.js (1.8.7): $.widget.bridge - Tweaked $.data(this,XYZ) to $(this).data(XYZ) for Zepto
39
- $.fn.jPlayer = function( options ) {
40
- var name = "jPlayer";
41
- var isMethodCall = typeof options === "string",
42
- args = Array.prototype.slice.call( arguments, 1 ),
43
- returnValue = this;
44
-
45
- // allow multiple hashes to be passed on init
46
- options = !isMethodCall && args.length ?
47
- $.extend.apply( null, [ true, options ].concat(args) ) :
48
- options;
49
-
50
- // prevent calls to internal methods
51
- if ( isMethodCall && options.charAt( 0 ) === "_" ) {
52
- return returnValue;
53
- }
54
-
55
- if ( isMethodCall ) {
56
- this.each(function() {
57
- var instance = $(this).data( name ),
58
- methodValue = instance && $.isFunction( instance[options] ) ?
59
- instance[ options ].apply( instance, args ) :
60
- instance;
61
- if ( methodValue !== instance && methodValue !== undefined ) {
62
- returnValue = methodValue;
63
- return false;
64
- }
65
- });
66
- } else {
67
- this.each(function() {
68
- var instance = $(this).data( name );
69
- if ( instance ) {
70
- // instance.option( options || {} )._init(); // Orig jquery.ui.widget.js code: Not recommend for jPlayer. ie., Applying new options to an existing instance (via the jPlayer constructor) and performing the _init(). The _init() is what concerns me. It would leave a lot of event handlers acting on jPlayer instance and the interface.
71
- instance.option( options || {} ); // The new constructor only changes the options. Changing options only has basic support atm.
72
- } else {
73
- $(this).data( name, new $.jPlayer( options, this ) );
74
- }
75
- });
76
- }
77
-
78
- return returnValue;
79
- };
80
-
81
- $.jPlayer = function( options, element ) {
82
- // allow instantiation without initializing for simple inheritance
83
- if ( arguments.length ) {
84
- this.element = $(element);
85
- this.options = $.extend(true, {},
86
- this.options,
87
- options
88
- );
89
- var self = this;
90
- this.element.bind( "remove.jPlayer", function() {
91
- self.destroy();
92
- });
93
- this._init();
94
- }
95
- };
96
- // End of: (Adapted from jquery.ui.widget.js (1.8.7))
97
-
98
- // Zepto is missing one of the animation methods.
99
- if(typeof $.fn.stop !== 'function') {
100
- $.fn.stop = function() {};
101
- }
102
-
103
- // Emulated HTML5 methods and properties
104
- $.jPlayer.emulateMethods = "load play pause";
105
- $.jPlayer.emulateStatus = "src readyState networkState currentTime duration paused ended playbackRate";
106
- $.jPlayer.emulateOptions = "muted volume";
107
-
108
- // Reserved event names generated by jPlayer that are not part of the HTML5 Media element spec
109
- $.jPlayer.reservedEvent = "ready flashreset resize repeat error warning";
110
-
111
- // Events generated by jPlayer
112
- $.jPlayer.event = {};
113
- $.each(
114
- [
115
- 'ready',
116
- 'setmedia', // Fires when the media is set
117
- 'flashreset', // Similar to the ready event if the Flash solution is set to display:none and then shown again or if it's reloaded for another reason by the browser. For example, using CSS position:fixed on Firefox for the full screen feature.
118
- 'resize', // Occurs when the size changes through a full/restore screen operation or if the size/sizeFull options are changed.
119
- 'repeat', // Occurs when the repeat status changes. Usually through clicks on the repeat button of the interface.
120
- 'click', // Occurs when the user clicks on one of the following: poster image, html video, flash video.
121
- 'error', // Event error code in event.jPlayer.error.type. See $.jPlayer.error
122
- 'warning', // Event warning code in event.jPlayer.warning.type. See $.jPlayer.warning
123
-
124
- // Other events match HTML5 spec.
125
- 'loadstart',
126
- 'progress',
127
- 'suspend',
128
- 'abort',
129
- 'emptied',
130
- 'stalled',
131
- 'play',
132
- 'pause',
133
- 'loadedmetadata',
134
- 'loadeddata',
135
- 'waiting',
136
- 'playing',
137
- 'canplay',
138
- 'canplaythrough',
139
- 'seeking',
140
- 'seeked',
141
- 'timeupdate',
142
- 'ended',
143
- 'ratechange',
144
- 'durationchange',
145
- 'volumechange'
146
- ],
147
- function() {
148
- $.jPlayer.event[ this ] = 'jPlayer_' + this;
149
- }
150
- );
151
-
152
- $.jPlayer.htmlEvent = [ // These HTML events are bubbled through to the jPlayer event, without any internal action.
153
- "loadstart",
154
- // "progress", // jPlayer uses internally before bubbling.
155
- // "suspend", // jPlayer uses internally before bubbling.
156
- "abort",
157
- // "error", // jPlayer uses internally before bubbling.
158
- "emptied",
159
- "stalled",
160
- // "play", // jPlayer uses internally before bubbling.
161
- // "pause", // jPlayer uses internally before bubbling.
162
- "loadedmetadata",
163
- // "loadeddata", // jPlayer uses internally before bubbling.
164
- // "waiting", // jPlayer uses internally before bubbling.
165
- // "playing", // jPlayer uses internally before bubbling.
166
- "canplay",
167
- "canplaythrough"
168
- // "seeking", // jPlayer uses internally before bubbling.
169
- // "seeked", // jPlayer uses internally before bubbling.
170
- // "timeupdate", // jPlayer uses internally before bubbling.
171
- // "ended", // jPlayer uses internally before bubbling.
172
- // "ratechange" // jPlayer uses internally before bubbling.
173
- // "durationchange" // jPlayer uses internally before bubbling.
174
- // "volumechange" // jPlayer uses internally before bubbling.
175
- ];
176
-
177
- $.jPlayer.pause = function() {
178
- $.each($.jPlayer.prototype.instances, function(i, element) {
179
- if(element.data("jPlayer").status.srcSet) { // Check that media is set otherwise would cause error event.
180
- element.jPlayer("pause");
181
- }
182
- });
183
- };
184
-
185
- // Default for jPlayer option.timeFormat
186
- $.jPlayer.timeFormat = {
187
- showHour: false,
188
- showMin: true,
189
- showSec: true,
190
- padHour: false,
191
- padMin: true,
192
- padSec: true,
193
- sepHour: ":",
194
- sepMin: ":",
195
- sepSec: ""
196
- };
197
- var ConvertTime = function() {
198
- this.init();
199
- };
200
- ConvertTime.prototype = {
201
- init: function() {
202
- this.options = {
203
- timeFormat: $.jPlayer.timeFormat
204
- };
205
- },
206
- time: function(s) { // function used on jPlayer.prototype._convertTime to enable per instance options.
207
- s = (s && typeof s === 'number') ? s : 0;
208
-
209
- var myTime = new Date(s * 1000),
210
- hour = myTime.getUTCHours(),
211
- min = this.options.timeFormat.showHour ? myTime.getUTCMinutes() : myTime.getUTCMinutes() + hour * 60,
212
- sec = this.options.timeFormat.showMin ? myTime.getUTCSeconds() : myTime.getUTCSeconds() + min * 60,
213
- strHour = (this.options.timeFormat.padHour && hour < 10) ? "0" + hour : hour,
214
- strMin = (this.options.timeFormat.padMin && min < 10) ? "0" + min : min,
215
- strSec = (this.options.timeFormat.padSec && sec < 10) ? "0" + sec : sec,
216
- strTime = "";
217
-
218
- strTime += this.options.timeFormat.showHour ? strHour + this.options.timeFormat.sepHour : "";
219
- strTime += this.options.timeFormat.showMin ? strMin + this.options.timeFormat.sepMin : "";
220
- strTime += this.options.timeFormat.showSec ? strSec + this.options.timeFormat.sepSec : "";
221
-
222
- return strTime;
223
- }
224
- };
225
- var myConvertTime = new ConvertTime();
226
- $.jPlayer.convertTime = function(s) {
227
- return myConvertTime.time(s);
228
- };
229
-
230
- // Adapting jQuery 1.4.4 code for jQuery.browser. Required since jQuery 1.3.2 does not detect Chrome as webkit.
231
- $.jPlayer.uaBrowser = function( userAgent ) {
232
- var ua = userAgent.toLowerCase();
233
-
234
- // Useragent RegExp
235
- var rwebkit = /(webkit)[ \/]([\w.]+)/;
236
- var ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/;
237
- var rmsie = /(msie) ([\w.]+)/;
238
- var rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/;
239
-
240
- var match = rwebkit.exec( ua ) ||
241
- ropera.exec( ua ) ||
242
- rmsie.exec( ua ) ||
243
- ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) ||
244
- [];
245
-
246
- return { browser: match[1] || "", version: match[2] || "0" };
247
- };
248
-
249
- // Platform sniffer for detecting mobile devices
250
- $.jPlayer.uaPlatform = function( userAgent ) {
251
- var ua = userAgent.toLowerCase();
252
-
253
- // Useragent RegExp
254
- var rplatform = /(ipad|iphone|ipod|android|blackberry|playbook|windows ce|webos)/;
255
- var rtablet = /(ipad|playbook)/;
256
- var randroid = /(android)/;
257
- var rmobile = /(mobile)/;
258
-
259
- var platform = rplatform.exec( ua ) || [];
260
- var tablet = rtablet.exec( ua ) ||
261
- !rmobile.exec( ua ) && randroid.exec( ua ) ||
262
- [];
263
-
264
- if(platform[1]) {
265
- platform[1] = platform[1].replace(/\s/g, "_"); // Change whitespace to underscore. Enables dot notation.
266
- }
267
-
268
- return { platform: platform[1] || "", tablet: tablet[1] || "" };
269
- };
270
-
271
- $.jPlayer.browser = {
272
- };
273
- $.jPlayer.platform = {
274
- };
275
-
276
- var browserMatch = $.jPlayer.uaBrowser(navigator.userAgent);
277
- if ( browserMatch.browser ) {
278
- $.jPlayer.browser[ browserMatch.browser ] = true;
279
- $.jPlayer.browser.version = browserMatch.version;
280
- }
281
- var platformMatch = $.jPlayer.uaPlatform(navigator.userAgent);
282
- if ( platformMatch.platform ) {
283
- $.jPlayer.platform[ platformMatch.platform ] = true;
284
- $.jPlayer.platform.mobile = !platformMatch.tablet;
285
- $.jPlayer.platform.tablet = !!platformMatch.tablet;
286
- }
287
-
288
- // Internet Explorer (IE) Browser Document Mode Sniffer. Based on code at:
289
- // http://msdn.microsoft.com/en-us/library/cc288325%28v=vs.85%29.aspx#GetMode
290
- $.jPlayer.getDocMode = function() {
291
- var docMode;
292
- if ($.jPlayer.browser.msie) {
293
- if (document.documentMode) { // IE8 or later
294
- docMode = document.documentMode;
295
- } else { // IE 5-7
296
- docMode = 5; // Assume quirks mode unless proven otherwise
297
- if (document.compatMode) {
298
- if (document.compatMode === "CSS1Compat") {
299
- docMode = 7; // standards mode
300
- }
301
- }
302
- }
303
- }
304
- return docMode;
305
- };
306
- $.jPlayer.browser.documentMode = $.jPlayer.getDocMode();
307
-
308
- $.jPlayer.nativeFeatures = {
309
- init: function() {
310
-
311
- /* Fullscreen function naming influenced by W3C naming.
312
- * No support for: Mozilla Proposal: https://wiki.mozilla.org/Gecko:FullScreenAPI
313
- */
314
-
315
- var d = document,
316
- v = d.createElement('video'),
317
- spec = {
318
- // http://www.w3.org/TR/fullscreen/
319
- w3c: [
320
- 'fullscreenEnabled',
321
- 'fullscreenElement',
322
- 'requestFullscreen',
323
- 'exitFullscreen',
324
- 'fullscreenchange',
325
- 'fullscreenerror'
326
- ],
327
- // https://developer.mozilla.org/en-US/docs/DOM/Using_fullscreen_mode
328
- moz: [
329
- 'mozFullScreenEnabled',
330
- 'mozFullScreenElement',
331
- 'mozRequestFullScreen',
332
- 'mozCancelFullScreen',
333
- 'mozfullscreenchange',
334
- 'mozfullscreenerror'
335
- ],
336
- // http://developer.apple.com/library/safari/#documentation/WebKit/Reference/ElementClassRef/Element/Element.html
337
- // http://developer.apple.com/library/safari/#documentation/UserExperience/Reference/DocumentAdditionsReference/DocumentAdditions/DocumentAdditions.html
338
- webkit: [
339
- '',
340
- 'webkitCurrentFullScreenElement',
341
- 'webkitRequestFullScreen',
342
- 'webkitCancelFullScreen',
343
- 'webkitfullscreenchange',
344
- ''
345
- ],
346
- // http://developer.apple.com/library/safari/#documentation/AudioVideo/Reference/HTMLVideoElementClassReference/HTMLVideoElement/HTMLVideoElement.html
347
- // https://developer.apple.com/library/safari/samplecode/HTML5VideoEventFlow/Listings/events_js.html#//apple_ref/doc/uid/DTS40010085-events_js-DontLinkElementID_5
348
- // Events: 'webkitbeginfullscreen' and 'webkitendfullscreen'
349
- webkitVideo: [
350
- 'webkitSupportsFullscreen',
351
- 'webkitDisplayingFullscreen',
352
- 'webkitEnterFullscreen',
353
- 'webkitExitFullscreen',
354
- '',
355
- ''
356
- ]
357
- },
358
- specOrder = [
359
- 'w3c',
360
- 'moz',
361
- 'webkit',
362
- 'webkitVideo'
363
- ],
364
- fs, i, il;
365
-
366
- this.fullscreen = fs = {
367
- support: {
368
- w3c: !!d[spec.w3c[0]],
369
- moz: !!d[spec.moz[0]],
370
- webkit: typeof d[spec.webkit[3]] === 'function',
371
- webkitVideo: typeof v[spec.webkitVideo[2]] === 'function'
372
- },
373
- used: {}
374
- };
375
-
376
- // Store the name of the spec being used and as a handy boolean.
377
- for(i = 0, il = specOrder.length; i < il; i++) {
378
- var n = specOrder[i];
379
- if(fs.support[n]) {
380
- fs.spec = n;
381
- fs.used[n] = true;
382
- break;
383
- }
384
- }
385
-
386
- if(fs.spec) {
387
- var s = spec[fs.spec];
388
- fs.api = {
389
- fullscreenEnabled: true,
390
- fullscreenElement: function(elem) {
391
- elem = elem ? elem : d; // Video element required for webkitVideo
392
- return elem[s[1]];
393
- },
394
- requestFullscreen: function(elem) {
395
- return elem[s[2]]();
396
- },
397
- exitFullscreen: function(elem) {
398
- elem = elem ? elem : d; // Video element required for webkitVideo
399
- return elem[s[3]]();
400
- }
401
- };
402
- fs.event = {
403
- fullscreenchange: s[4],
404
- fullscreenerror: s[5]
405
- };
406
- } else {
407
- fs.api = {
408
- fullscreenEnabled: false,
409
- fullscreenElement: function() {
410
- return null;
411
- },
412
- requestFullscreen: function() {},
413
- exitFullscreen: function() {}
414
- };
415
- fs.event = {};
416
- }
417
- }
418
- };
419
- $.jPlayer.nativeFeatures.init();
420
-
421
- // The keyboard control system.
422
-
423
- // The current jPlayer instance in focus.
424
- $.jPlayer.focus = null;
425
-
426
- // (fallback) The list of element node names to ignore with key controls.
427
- $.jPlayer.keyIgnoreElementNames = "A INPUT TEXTAREA SELECT BUTTON";
428
-
429
- // The function that deals with key presses.
430
- var keyBindings = function(event) {
431
-
432
- var f = $.jPlayer.focus,
433
- pageFocus = document.activeElement,
434
- ignoreKey;
435
-
436
- // A jPlayer instance must be in focus. ie., keyEnabled and the last one played.
437
- if(f) {
438
- // What generated the key press?
439
- if(typeof pageFocus !== 'undefined') {
440
- if(pageFocus !== null && pageFocus.nodeName.toUpperCase() !== "BODY") {
441
- ignoreKey = true;
442
- }
443
- } else {
444
- // Fallback for no document.activeElement support.
445
- $.each( $.jPlayer.keyIgnoreElementNames.split(/\s+/g), function(i, name) {
446
- // The strings should already be uppercase.
447
- if(event.target.nodeName.toUpperCase() === name.toUpperCase()) {
448
- ignoreKey = true;
449
- return false; // exit each.
450
- }
451
- });
452
- }
453
- if(!ignoreKey) {
454
- // See if the key pressed matches any of the bindings.
455
- $.each(f.options.keyBindings, function(action, binding) {
456
- // The binding could be a null when the default has been disabled. ie., 1st clause in if()
457
- if(binding && event.which === binding.key && $.isFunction(binding.fn)) {
458
- event.preventDefault(); // Key being used by jPlayer, so prevent default operation.
459
- binding.fn(f);
460
- return false; // exit each.
461
- }
462
- });
463
- }
464
- }
465
- };
466
-
467
- $.jPlayer.keys = function(en) {
468
- var event = "keydown.jPlayer";
469
- // Remove any binding, just in case enabled more than once.
470
- $(document.documentElement).unbind(event);
471
- if(en) {
472
- $(document.documentElement).bind(event, keyBindings);
473
- }
474
- };
475
-
476
- // Enable the global key control handler ready for any jPlayer instance with the keyEnabled option enabled.
477
- $.jPlayer.keys(true);
478
-
479
- $.jPlayer.prototype = {
480
- count: 0, // Static Variable: Change it via prototype.
481
- version: { // Static Object
482
- script: "2.7.1",
483
- needFlash: "2.7.0",
484
- flash: "unknown"
485
- },
486
- options: { // Instanced in $.jPlayer() constructor
487
- swfPath: "js", // Path to Jplayer.swf. Can be relative, absolute or server root relative.
488
- solution: "html, flash", // Valid solutions: html, flash. Order defines priority. 1st is highest,
489
- supplied: "mp3", // Defines which formats jPlayer will try and support and the priority by the order. 1st is highest,
490
- preload: 'metadata', // HTML5 Spec values: none, metadata, auto.
491
- volume: 0.8, // The volume. Number 0 to 1.
492
- muted: false,
493
- remainingDuration: false, // When true, the remaining time is shown in the duration GUI element.
494
- toggleDuration: false, // When true, clicks on the duration toggle between the duration and remaining display.
495
- captureDuration: true, // When true, clicks on the duration are captured and no longer propagate up the DOM.
496
- playbackRate: 1,
497
- defaultPlaybackRate: 1,
498
- minPlaybackRate: 0.5,
499
- maxPlaybackRate: 4,
500
- wmode: "opaque", // Valid wmode: window, transparent, opaque, direct, gpu.
501
- backgroundColor: "#000000", // To define the jPlayer div and Flash background color.
502
- cssSelectorAncestor: "#jp_container_1",
503
- cssSelector: { // * denotes properties that should only be required when video media type required. _cssSelector() would require changes to enable splitting these into Audio and Video defaults.
504
- videoPlay: ".jp-video-play", // *
505
- play: ".jp-play",
506
- pause: ".jp-pause",
507
- stop: ".jp-stop",
508
- seekBar: ".jp-seek-bar",
509
- playBar: ".jp-play-bar",
510
- mute: ".jp-mute",
511
- unmute: ".jp-unmute",
512
- volumeBar: ".jp-volume-bar",
513
- volumeBarValue: ".jp-volume-bar-value",
514
- volumeMax: ".jp-volume-max",
515
- playbackRateBar: ".jp-playback-rate-bar",
516
- playbackRateBarValue: ".jp-playback-rate-bar-value",
517
- currentTime: ".jp-current-time",
518
- duration: ".jp-duration",
519
- title: ".jp-title",
520
- fullScreen: ".jp-full-screen", // *
521
- restoreScreen: ".jp-restore-screen", // *
522
- repeat: ".jp-repeat",
523
- repeatOff: ".jp-repeat-off",
524
- gui: ".jp-gui", // The interface used with autohide feature.
525
- noSolution: ".jp-no-solution" // For error feedback when jPlayer cannot find a solution.
526
- },
527
- stateClass: { // Classes added to the cssSelectorAncestor to indicate the state.
528
- playing: "jp-state-playing",
529
- seeking: "jp-state-seeking",
530
- muted: "jp-state-muted",
531
- looped: "jp-state-looped",
532
- fullScreen: "jp-state-full-screen"
533
- },
534
- useStateClassSkin: false, // A state class skin relies on the state classes to change the visual appearance. The single control toggles the effect, for example: play then pause, mute then unmute.
535
- autoBlur: true, // GUI control handlers will drop focus after clicks.
536
- smoothPlayBar: false, // Smooths the play bar transitions, which affects clicks and short media with big changes per second.
537
- fullScreen: false, // Native Full Screen
538
- fullWindow: false,
539
- autohide: {
540
- restored: false, // Controls the interface autohide feature.
541
- full: true, // Controls the interface autohide feature.
542
- fadeIn: 200, // Milliseconds. The period of the fadeIn anim.
543
- fadeOut: 600, // Milliseconds. The period of the fadeOut anim.
544
- hold: 1000 // Milliseconds. The period of the pause before autohide beings.
545
- },
546
- loop: false,
547
- repeat: function(event) { // The default jPlayer repeat event handler
548
- if(event.jPlayer.options.loop) {
549
- $(this).unbind(".jPlayerRepeat").bind($.jPlayer.event.ended + ".jPlayer.jPlayerRepeat", function() {
550
- $(this).jPlayer("play");
551
- });
552
- } else {
553
- $(this).unbind(".jPlayerRepeat");
554
- }
555
- },
556
- nativeVideoControls: {
557
- // Works well on standard browsers.
558
- // Phone and tablet browsers can have problems with the controls disappearing.
559
- },
560
- noFullWindow: {
561
- msie: /msie [0-6]\./,
562
- ipad: /ipad.*?os [0-4]\./,
563
- iphone: /iphone/,
564
- ipod: /ipod/,
565
- android_pad: /android [0-3]\.(?!.*?mobile)/,
566
- android_phone: /android.*?mobile/,
567
- blackberry: /blackberry/,
568
- windows_ce: /windows ce/,
569
- iemobile: /iemobile/,
570
- webos: /webos/
571
- },
572
- noVolume: {
573
- ipad: /ipad/,
574
- iphone: /iphone/,
575
- ipod: /ipod/,
576
- android_pad: /android(?!.*?mobile)/,
577
- android_phone: /android.*?mobile/,
578
- blackberry: /blackberry/,
579
- windows_ce: /windows ce/,
580
- iemobile: /iemobile/,
581
- webos: /webos/,
582
- playbook: /playbook/
583
- },
584
- timeFormat: {
585
- // Specific time format for this instance. The supported options are defined in $.jPlayer.timeFormat
586
- // For the undefined options we use the default from $.jPlayer.timeFormat
587
- },
588
- keyEnabled: false, // Enables keyboard controls.
589
- audioFullScreen: false, // Enables keyboard controls to enter full screen with audio media.
590
- keyBindings: { // The key control object, defining the key codes and the functions to execute.
591
- // The parameter, f = $.jPlayer.focus, will be checked truethy before attempting to call any of these functions.
592
- // Properties may be added to this object, in key/fn pairs, to enable other key controls. EG, for the playlist add-on.
593
- play: {
594
- key: 32, // space
595
- fn: function(f) {
596
- if(f.status.paused) {
597
- f.play();
598
- } else {
599
- f.pause();
600
- }
601
- }
602
- },
603
- fullScreen: {
604
- key: 13, // enter
605
- fn: function(f) {
606
- if(f.status.video || f.options.audioFullScreen) {
607
- f._setOption("fullScreen", !f.options.fullScreen);
608
- }
609
- }
610
- },
611
- muted: {
612
- key: 8, // backspace
613
- fn: function(f) {
614
- f._muted(!f.options.muted);
615
- }
616
- },
617
- volumeUp: {
618
- key: 38, // UP
619
- fn: function(f) {
620
- f.volume(f.options.volume + 0.1);
621
- }
622
- },
623
- volumeDown: {
624
- key: 40, // DOWN
625
- fn: function(f) {
626
- f.volume(f.options.volume - 0.1);
627
- }
628
- }
629
- },
630
- verticalVolume: false, // Calculate volume from the bottom of the volume bar. Default is from the left. Also volume affects either width or height.
631
- verticalPlaybackRate: false,
632
- globalVolume: false, // Set to make volume and muted changes affect all jPlayer instances with this option enabled
633
- idPrefix: "jp", // Prefix for the ids of html elements created by jPlayer. For flash, this must not include characters: . - + * / \
634
- noConflict: "jQuery",
635
- emulateHtml: false, // Emulates the HTML5 Media element on the jPlayer element.
636
- consoleAlerts: true, // Alerts are sent to the console.log() instead of alert().
637
- errorAlerts: false,
638
- warningAlerts: false
639
- },
640
- optionsAudio: {
641
- size: {
642
- width: "0px",
643
- height: "0px",
644
- cssClass: ""
645
- },
646
- sizeFull: {
647
- width: "0px",
648
- height: "0px",
649
- cssClass: ""
650
- }
651
- },
652
- optionsVideo: {
653
- size: {
654
- width: "480px",
655
- height: "270px",
656
- cssClass: "jp-video-270p"
657
- },
658
- sizeFull: {
659
- width: "100%",
660
- height: "100%",
661
- cssClass: "jp-video-full"
662
- }
663
- },
664
- instances: {}, // Static Object
665
- status: { // Instanced in _init()
666
- src: "",
667
- media: {},
668
- paused: true,
669
- format: {},
670
- formatType: "",
671
- waitForPlay: true, // Same as waitForLoad except in case where preloading.
672
- waitForLoad: true,
673
- srcSet: false,
674
- video: false, // True if playing a video
675
- seekPercent: 0,
676
- currentPercentRelative: 0,
677
- currentPercentAbsolute: 0,
678
- currentTime: 0,
679
- duration: 0,
680
- remaining: 0,
681
- videoWidth: 0, // Intrinsic width of the video in pixels.
682
- videoHeight: 0, // Intrinsic height of the video in pixels.
683
- readyState: 0,
684
- networkState: 0,
685
- playbackRate: 1, // Warning - Now both an option and a status property
686
- ended: 0
687
-
688
- /* Persistant status properties created dynamically at _init():
689
- width
690
- height
691
- cssClass
692
- nativeVideoControls
693
- noFullWindow
694
- noVolume
695
- playbackRateEnabled // Warning - Technically, we can have both Flash and HTML, so this might not be correct if the Flash is active. That is a niche case.
696
- */
697
- },
698
-
699
- internal: { // Instanced in _init()
700
- ready: false
701
- // instance: undefined
702
- // domNode: undefined
703
- // htmlDlyCmdId: undefined
704
- // autohideId: undefined
705
- // cmdsIgnored
706
- },
707
- solution: { // Static Object: Defines the solutions built in jPlayer.
708
- html: true,
709
- flash: true
710
- },
711
- // 'MPEG-4 support' : canPlayType('video/mp4; codecs="mp4v.20.8"')
712
- format: { // Static Object
713
- mp3: {
714
- codec: 'audio/mpeg',
715
- flashCanPlay: true,
716
- media: 'audio'
717
- },
718
- m4a: { // AAC / MP4
719
- codec: 'audio/mp4; codecs="mp4a.40.2"',
720
- flashCanPlay: true,
721
- media: 'audio'
722
- },
723
- m3u8a: { // AAC / MP4 / Apple HLS
724
- codec: 'application/vnd.apple.mpegurl; codecs="mp4a.40.2"',
725
- flashCanPlay: false,
726
- media: 'audio'
727
- },
728
- m3ua: { // M3U
729
- codec: 'audio/mpegurl',
730
- flashCanPlay: false,
731
- media: 'audio'
732
- },
733
- oga: { // OGG
734
- codec: 'audio/ogg; codecs="vorbis, opus"',
735
- flashCanPlay: false,
736
- media: 'audio'
737
- },
738
- flac: { // FLAC
739
- codec: 'audio/x-flac',
740
- flashCanPlay: false,
741
- media: 'audio'
742
- },
743
- wav: { // PCM
744
- codec: 'audio/wav; codecs="1"',
745
- flashCanPlay: false,
746
- media: 'audio'
747
- },
748
- webma: { // WEBM
749
- codec: 'audio/webm; codecs="vorbis"',
750
- flashCanPlay: false,
751
- media: 'audio'
752
- },
753
- fla: { // FLV / F4A
754
- codec: 'audio/x-flv',
755
- flashCanPlay: true,
756
- media: 'audio'
757
- },
758
- rtmpa: { // RTMP AUDIO
759
- codec: 'audio/rtmp; codecs="rtmp"',
760
- flashCanPlay: true,
761
- media: 'audio'
762
- },
763
- m4v: { // H.264 / MP4
764
- codec: 'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',
765
- flashCanPlay: true,
766
- media: 'video'
767
- },
768
- m3u8v: { // H.264 / AAC / MP4 / Apple HLS
769
- codec: 'application/vnd.apple.mpegurl; codecs="avc1.42E01E, mp4a.40.2"',
770
- flashCanPlay: false,
771
- media: 'video'
772
- },
773
- m3uv: { // M3U
774
- codec: 'audio/mpegurl',
775
- flashCanPlay: false,
776
- media: 'video'
777
- },
778
- ogv: { // OGG
779
- codec: 'video/ogg; codecs="theora, vorbis"',
780
- flashCanPlay: false,
781
- media: 'video'
782
- },
783
- webmv: { // WEBM
784
- codec: 'video/webm; codecs="vorbis, vp8"',
785
- flashCanPlay: false,
786
- media: 'video'
787
- },
788
- flv: { // FLV / F4V
789
- codec: 'video/x-flv',
790
- flashCanPlay: true,
791
- media: 'video'
792
- },
793
- rtmpv: { // RTMP VIDEO
794
- codec: 'video/rtmp; codecs="rtmp"',
795
- flashCanPlay: true,
796
- media: 'video'
797
- }
798
- },
799
- _init: function() {
800
- var self = this;
801
-
802
- this.element.empty();
803
-
804
- this.status = $.extend({}, this.status); // Copy static to unique instance.
805
- this.internal = $.extend({}, this.internal); // Copy static to unique instance.
806
-
807
- // Initialize the time format
808
- this.options.timeFormat = $.extend({}, $.jPlayer.timeFormat, this.options.timeFormat);
809
-
810
- // On iOS, assume commands will be ignored before user initiates them.
811
- this.internal.cmdsIgnored = $.jPlayer.platform.ipad || $.jPlayer.platform.iphone || $.jPlayer.platform.ipod;
812
-
813
- this.internal.domNode = this.element.get(0);
814
-
815
- // Add key bindings focus to 1st jPlayer instanced with key control enabled.
816
- if(this.options.keyEnabled && !$.jPlayer.focus) {
817
- $.jPlayer.focus = this;
818
- }
819
-
820
- // A fix for Android where older (2.3) and even some 4.x devices fail to work when changing the *audio* SRC and then playing immediately.
821
- this.androidFix = {
822
- setMedia: false, // True when media set
823
- play: false, // True when a progress event will instruct the media to play
824
- pause: false, // True when a progress event will instruct the media to pause at a time.
825
- time: NaN // The play(time) parameter
826
- };
827
- if($.jPlayer.platform.android) {
828
- this.options.preload = this.options.preload !== 'auto' ? 'metadata' : 'auto'; // Default to metadata, but allow auto.
829
- }
830
-
831
- this.formats = []; // Array based on supplied string option. Order defines priority.
832
- this.solutions = []; // Array based on solution string option. Order defines priority.
833
- this.require = {}; // Which media types are required: video, audio.
834
-
835
- this.htmlElement = {}; // DOM elements created by jPlayer
836
- this.html = {}; // In _init()'s this.desired code and setmedia(): Accessed via this[solution], where solution from this.solutions array.
837
- this.html.audio = {};
838
- this.html.video = {};
839
- this.flash = {}; // In _init()'s this.desired code and setmedia(): Accessed via this[solution], where solution from this.solutions array.
840
-
841
- this.css = {};
842
- this.css.cs = {}; // Holds the css selector strings
843
- this.css.jq = {}; // Holds jQuery selectors. ie., $(css.cs.method)
844
-
845
- this.ancestorJq = []; // Holds jQuery selector of cssSelectorAncestor. Init would use $() instead of [], but it is only 1.4+
846
-
847
- this.options.volume = this._limitValue(this.options.volume, 0, 1); // Limit volume value's bounds.
848
-
849
- // Create the formats array, with prority based on the order of the supplied formats string
850
- $.each(this.options.supplied.toLowerCase().split(","), function(index1, value1) {
851
- var format = value1.replace(/^\s+|\s+$/g, ""); //trim
852
- if(self.format[format]) { // Check format is valid.
853
- var dupFound = false;
854
- $.each(self.formats, function(index2, value2) { // Check for duplicates
855
- if(format === value2) {
856
- dupFound = true;
857
- return false;
858
- }
859
- });
860
- if(!dupFound) {
861
- self.formats.push(format);
862
- }
863
- }
864
- });
865
-
866
- // Create the solutions array, with prority based on the order of the solution string
867
- $.each(this.options.solution.toLowerCase().split(","), function(index1, value1) {
868
- var solution = value1.replace(/^\s+|\s+$/g, ""); //trim
869
- if(self.solution[solution]) { // Check solution is valid.
870
- var dupFound = false;
871
- $.each(self.solutions, function(index2, value2) { // Check for duplicates
872
- if(solution === value2) {
873
- dupFound = true;
874
- return false;
875
- }
876
- });
877
- if(!dupFound) {
878
- self.solutions.push(solution);
879
- }
880
- }
881
- });
882
-
883
- this.internal.instance = "jp_" + this.count;
884
- this.instances[this.internal.instance] = this.element;
885
-
886
- // Check the jPlayer div has an id and create one if required. Important for Flash to know the unique id for comms.
887
- if(!this.element.attr("id")) {
888
- this.element.attr("id", this.options.idPrefix + "_jplayer_" + this.count);
889
- }
890
-
891
- this.internal.self = $.extend({}, {
892
- id: this.element.attr("id"),
893
- jq: this.element
894
- });
895
- this.internal.audio = $.extend({}, {
896
- id: this.options.idPrefix + "_audio_" + this.count,
897
- jq: undefined
898
- });
899
- this.internal.video = $.extend({}, {
900
- id: this.options.idPrefix + "_video_" + this.count,
901
- jq: undefined
902
- });
903
- this.internal.flash = $.extend({}, {
904
- id: this.options.idPrefix + "_flash_" + this.count,
905
- jq: undefined,
906
- swf: this.options.swfPath + (this.options.swfPath.toLowerCase().slice(-4) !== ".swf" ? (this.options.swfPath && this.options.swfPath.slice(-1) !== "/" ? "/" : "") + "Jplayer.swf" : "")
907
- });
908
- this.internal.poster = $.extend({}, {
909
- id: this.options.idPrefix + "_poster_" + this.count,
910
- jq: undefined
911
- });
912
-
913
- // Register listeners defined in the constructor
914
- $.each($.jPlayer.event, function(eventName,eventType) {
915
- if(self.options[eventName] !== undefined) {
916
- self.element.bind(eventType + ".jPlayer", self.options[eventName]); // With .jPlayer namespace.
917
- self.options[eventName] = undefined; // Destroy the handler pointer copy on the options. Reason, events can be added/removed in other ways so this could be obsolete and misleading.
918
- }
919
- });
920
-
921
- // Determine if we require solutions for audio, video or both media types.
922
- this.require.audio = false;
923
- this.require.video = false;
924
- $.each(this.formats, function(priority, format) {
925
- self.require[self.format[format].media] = true;
926
- });
927
-
928
- // Now required types are known, finish the options default settings.
929
- if(this.require.video) {
930
- this.options = $.extend(true, {},
931
- this.optionsVideo,
932
- this.options
933
- );
934
- } else {
935
- this.options = $.extend(true, {},
936
- this.optionsAudio,
937
- this.options
938
- );
939
- }
940
- this._setSize(); // update status and jPlayer element size
941
-
942
- // Determine the status for Blocklisted options.
943
- this.status.nativeVideoControls = this._uaBlocklist(this.options.nativeVideoControls);
944
- this.status.noFullWindow = this._uaBlocklist(this.options.noFullWindow);
945
- this.status.noVolume = this._uaBlocklist(this.options.noVolume);
946
-
947
- // Create event handlers if native fullscreen is supported
948
- if($.jPlayer.nativeFeatures.fullscreen.api.fullscreenEnabled) {
949
- this._fullscreenAddEventListeners();
950
- }
951
-
952
- // The native controls are only for video and are disabled when audio is also used.
953
- this._restrictNativeVideoControls();
954
-
955
- // Create the poster image.
956
- this.htmlElement.poster = document.createElement('img');
957
- this.htmlElement.poster.id = this.internal.poster.id;
958
- this.htmlElement.poster.onload = function() { // Note that this did not work on Firefox 3.6: poster.addEventListener("onload", function() {}, false); Did not investigate x-browser.
959
- if(!self.status.video || self.status.waitForPlay) {
960
- self.internal.poster.jq.show();
961
- }
962
- };
963
- this.element.append(this.htmlElement.poster);
964
- this.internal.poster.jq = $("#" + this.internal.poster.id);
965
- this.internal.poster.jq.css({'width': this.status.width, 'height': this.status.height});
966
- this.internal.poster.jq.hide();
967
- this.internal.poster.jq.bind("click.jPlayer", function() {
968
- self._trigger($.jPlayer.event.click);
969
- });
970
-
971
- // Generate the required media elements
972
- this.html.audio.available = false;
973
- if(this.require.audio) { // If a supplied format is audio
974
- this.htmlElement.audio = document.createElement('audio');
975
- this.htmlElement.audio.id = this.internal.audio.id;
976
- this.html.audio.available = !!this.htmlElement.audio.canPlayType && this._testCanPlayType(this.htmlElement.audio); // Test is for IE9 on Win Server 2008.
977
- }
978
- this.html.video.available = false;
979
- if(this.require.video) { // If a supplied format is video
980
- this.htmlElement.video = document.createElement('video');
981
- this.htmlElement.video.id = this.internal.video.id;
982
- this.html.video.available = !!this.htmlElement.video.canPlayType && this._testCanPlayType(this.htmlElement.video); // Test is for IE9 on Win Server 2008.
983
- }
984
-
985
- this.flash.available = this._checkForFlash(10.1);
986
-
987
- this.html.canPlay = {};
988
- this.flash.canPlay = {};
989
- $.each(this.formats, function(priority, format) {
990
- self.html.canPlay[format] = self.html[self.format[format].media].available && "" !== self.htmlElement[self.format[format].media].canPlayType(self.format[format].codec);
991
- self.flash.canPlay[format] = self.format[format].flashCanPlay && self.flash.available;
992
- });
993
- this.html.desired = false;
994
- this.flash.desired = false;
995
- $.each(this.solutions, function(solutionPriority, solution) {
996
- if(solutionPriority === 0) {
997
- self[solution].desired = true;
998
- } else {
999
- var audioCanPlay = false;
1000
- var videoCanPlay = false;
1001
- $.each(self.formats, function(formatPriority, format) {
1002
- if(self[self.solutions[0]].canPlay[format]) { // The other solution can play
1003
- if(self.format[format].media === 'video') {
1004
- videoCanPlay = true;
1005
- } else {
1006
- audioCanPlay = true;
1007
- }
1008
- }
1009
- });
1010
- self[solution].desired = (self.require.audio && !audioCanPlay) || (self.require.video && !videoCanPlay);
1011
- }
1012
- });
1013
- // This is what jPlayer will support, based on solution and supplied.
1014
- this.html.support = {};
1015
- this.flash.support = {};
1016
- $.each(this.formats, function(priority, format) {
1017
- self.html.support[format] = self.html.canPlay[format] && self.html.desired;
1018
- self.flash.support[format] = self.flash.canPlay[format] && self.flash.desired;
1019
- });
1020
- // If jPlayer is supporting any format in a solution, then the solution is used.
1021
- this.html.used = false;
1022
- this.flash.used = false;
1023
- $.each(this.solutions, function(solutionPriority, solution) {
1024
- $.each(self.formats, function(formatPriority, format) {
1025
- if(self[solution].support[format]) {
1026
- self[solution].used = true;
1027
- return false;
1028
- }
1029
- });
1030
- });
1031
-
1032
- // Init solution active state and the event gates to false.
1033
- this._resetActive();
1034
- this._resetGate();
1035
-
1036
- // Set up the css selectors for the control and feedback entities.
1037
- this._cssSelectorAncestor(this.options.cssSelectorAncestor);
1038
-
1039
- // If neither html nor flash are being used by this browser, then media playback is not possible. Trigger an error event.
1040
- if(!(this.html.used || this.flash.used)) {
1041
- this._error( {
1042
- type: $.jPlayer.error.NO_SOLUTION,
1043
- context: "{solution:'" + this.options.solution + "', supplied:'" + this.options.supplied + "'}",
1044
- message: $.jPlayer.errorMsg.NO_SOLUTION,
1045
- hint: $.jPlayer.errorHint.NO_SOLUTION
1046
- });
1047
- if(this.css.jq.noSolution.length) {
1048
- this.css.jq.noSolution.show();
1049
- }
1050
- } else {
1051
- if(this.css.jq.noSolution.length) {
1052
- this.css.jq.noSolution.hide();
1053
- }
1054
- }
1055
-
1056
- // Add the flash solution if it is being used.
1057
- if(this.flash.used) {
1058
- var htmlObj,
1059
- flashVars = 'jQuery=' + encodeURI(this.options.noConflict) + '&id=' + encodeURI(this.internal.self.id) + '&vol=' + this.options.volume + '&muted=' + this.options.muted;
1060
-
1061
- // Code influenced by SWFObject 2.2: http://code.google.com/p/swfobject/
1062
- // Non IE browsers have an initial Flash size of 1 by 1 otherwise the wmode affected the Flash ready event.
1063
-
1064
- if($.jPlayer.browser.msie && (Number($.jPlayer.browser.version) < 9 || $.jPlayer.browser.documentMode < 9)) {
1065
- var objStr = '<object id="' + this.internal.flash.id + '" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="0" height="0" tabindex="-1"></object>';
1066
-
1067
- var paramStr = [
1068
- '<param name="movie" value="' + this.internal.flash.swf + '" />',
1069
- '<param name="FlashVars" value="' + flashVars + '" />',
1070
- '<param name="allowScriptAccess" value="always" />',
1071
- '<param name="bgcolor" value="' + this.options.backgroundColor + '" />',
1072
- '<param name="wmode" value="' + this.options.wmode + '" />'
1073
- ];
1074
-
1075
- htmlObj = document.createElement(objStr);
1076
- for(var i=0; i < paramStr.length; i++) {
1077
- htmlObj.appendChild(document.createElement(paramStr[i]));
1078
- }
1079
- } else {
1080
- var createParam = function(el, n, v) {
1081
- var p = document.createElement("param");
1082
- p.setAttribute("name", n);
1083
- p.setAttribute("value", v);
1084
- el.appendChild(p);
1085
- };
1086
-
1087
- htmlObj = document.createElement("object");
1088
- htmlObj.setAttribute("id", this.internal.flash.id);
1089
- htmlObj.setAttribute("name", this.internal.flash.id);
1090
- htmlObj.setAttribute("data", this.internal.flash.swf);
1091
- htmlObj.setAttribute("type", "application/x-shockwave-flash");
1092
- htmlObj.setAttribute("width", "1"); // Non-zero
1093
- htmlObj.setAttribute("height", "1"); // Non-zero
1094
- htmlObj.setAttribute("tabindex", "-1");
1095
- createParam(htmlObj, "flashvars", flashVars);
1096
- createParam(htmlObj, "allowscriptaccess", "always");
1097
- createParam(htmlObj, "bgcolor", this.options.backgroundColor);
1098
- createParam(htmlObj, "wmode", this.options.wmode);
1099
- }
1100
-
1101
- this.element.append(htmlObj);
1102
- this.internal.flash.jq = $(htmlObj);
1103
- }
1104
-
1105
- // Setup playbackRate ability before using _addHtmlEventListeners()
1106
- if(this.html.used && !this.flash.used) { // If only HTML
1107
- // Using the audio element capabilities for playbackRate. ie., Assuming video element is the same.
1108
- this.status.playbackRateEnabled = this._testPlaybackRate('audio');
1109
- } else {
1110
- this.status.playbackRateEnabled = false;
1111
- }
1112
-
1113
- this._updatePlaybackRate();
1114
-
1115
- // Add the HTML solution if being used.
1116
- if(this.html.used) {
1117
-
1118
- // The HTML Audio handlers
1119
- if(this.html.audio.available) {
1120
- this._addHtmlEventListeners(this.htmlElement.audio, this.html.audio);
1121
- this.element.append(this.htmlElement.audio);
1122
- this.internal.audio.jq = $("#" + this.internal.audio.id);
1123
- }
1124
-
1125
- // The HTML Video handlers
1126
- if(this.html.video.available) {
1127
- this._addHtmlEventListeners(this.htmlElement.video, this.html.video);
1128
- this.element.append(this.htmlElement.video);
1129
- this.internal.video.jq = $("#" + this.internal.video.id);
1130
- if(this.status.nativeVideoControls) {
1131
- this.internal.video.jq.css({'width': this.status.width, 'height': this.status.height});
1132
- } else {
1133
- this.internal.video.jq.css({'width':'0px', 'height':'0px'}); // Using size 0x0 since a .hide() causes issues in iOS
1134
- }
1135
- this.internal.video.jq.bind("click.jPlayer", function() {
1136
- self._trigger($.jPlayer.event.click);
1137
- });
1138
- }
1139
- }
1140
-
1141
- // Create the bridge that emulates the HTML Media element on the jPlayer DIV
1142
- if( this.options.emulateHtml ) {
1143
- this._emulateHtmlBridge();
1144
- }
1145
-
1146
- if(this.html.used && !this.flash.used) { // If only HTML, then emulate flash ready() call after 100ms.
1147
- setTimeout( function() {
1148
- self.internal.ready = true;
1149
- self.version.flash = "n/a";
1150
- self._trigger($.jPlayer.event.repeat); // Trigger the repeat event so its handler can initialize itself with the loop option.
1151
- self._trigger($.jPlayer.event.ready);
1152
- }, 100);
1153
- }
1154
-
1155
- // Initialize the interface components with the options.
1156
- this._updateNativeVideoControls();
1157
- // The other controls are now setup in _cssSelectorAncestor()
1158
- if(this.css.jq.videoPlay.length) {
1159
- this.css.jq.videoPlay.hide();
1160
- }
1161
-
1162
- $.jPlayer.prototype.count++; // Change static variable via prototype.
1163
- },
1164
- destroy: function() {
1165
- // MJP: The background change remains. Would need to store the original to restore it correctly.
1166
- // MJP: The jPlayer element's size change remains.
1167
-
1168
- // Clear the media to reset the GUI and stop any downloads. Streams on some browsers had persited. (Chrome)
1169
- this.clearMedia();
1170
- // Remove the size/sizeFull cssClass from the cssSelectorAncestor
1171
- this._removeUiClass();
1172
- // Remove the times from the GUI
1173
- if(this.css.jq.currentTime.length) {
1174
- this.css.jq.currentTime.text("");
1175
- }
1176
- if(this.css.jq.duration.length) {
1177
- this.css.jq.duration.text("");
1178
- }
1179
- // Remove any bindings from the interface controls.
1180
- $.each(this.css.jq, function(fn, jq) {
1181
- // Check selector is valid before trying to execute method.
1182
- if(jq.length) {
1183
- jq.unbind(".jPlayer");
1184
- }
1185
- });
1186
- // Remove the click handlers for $.jPlayer.event.click
1187
- this.internal.poster.jq.unbind(".jPlayer");
1188
- if(this.internal.video.jq) {
1189
- this.internal.video.jq.unbind(".jPlayer");
1190
- }
1191
- // Remove the fullscreen event handlers
1192
- this._fullscreenRemoveEventListeners();
1193
- // Remove key bindings
1194
- if(this === $.jPlayer.focus) {
1195
- $.jPlayer.focus = null;
1196
- }
1197
- // Destroy the HTML bridge.
1198
- if(this.options.emulateHtml) {
1199
- this._destroyHtmlBridge();
1200
- }
1201
- this.element.removeData("jPlayer"); // Remove jPlayer data
1202
- this.element.unbind(".jPlayer"); // Remove all event handlers created by the jPlayer constructor
1203
- this.element.empty(); // Remove the inserted child elements
1204
-
1205
- delete this.instances[this.internal.instance]; // Clear the instance on the static instance object
1206
- },
1207
- enable: function() { // Plan to implement
1208
- // options.disabled = false
1209
- },
1210
- disable: function () { // Plan to implement
1211
- // options.disabled = true
1212
- },
1213
- _testCanPlayType: function(elem) {
1214
- // IE9 on Win Server 2008 did not implement canPlayType(), but it has the property.
1215
- try {
1216
- elem.canPlayType(this.format.mp3.codec); // The type is irrelevant.
1217
- return true;
1218
- } catch(err) {
1219
- return false;
1220
- }
1221
- },
1222
- _testPlaybackRate: function(type) {
1223
- // type: String 'audio' or 'video'
1224
- var el, rate = 0.5;
1225
- type = typeof type === 'string' ? type : 'audio';
1226
- el = document.createElement(type);
1227
- // Wrapping in a try/catch, just in case older HTML5 browsers throw and error.
1228
- try {
1229
- if('playbackRate' in el) {
1230
- el.playbackRate = rate;
1231
- return el.playbackRate === rate;
1232
- } else {
1233
- return false;
1234
- }
1235
- } catch(err) {
1236
- return false;
1237
- }
1238
- },
1239
- _uaBlocklist: function(list) {
1240
- // list : object with properties that are all regular expressions. Property names are irrelevant.
1241
- // Returns true if the user agent is matched in list.
1242
- var ua = navigator.userAgent.toLowerCase(),
1243
- block = false;
1244
-
1245
- $.each(list, function(p, re) {
1246
- if(re && re.test(ua)) {
1247
- block = true;
1248
- return false; // exit $.each.
1249
- }
1250
- });
1251
- return block;
1252
- },
1253
- _restrictNativeVideoControls: function() {
1254
- // Fallback to noFullWindow when nativeVideoControls is true and audio media is being used. Affects when both media types are used.
1255
- if(this.require.audio) {
1256
- if(this.status.nativeVideoControls) {
1257
- this.status.nativeVideoControls = false;
1258
- this.status.noFullWindow = true;
1259
- }
1260
- }
1261
- },
1262
- _updateNativeVideoControls: function() {
1263
- if(this.html.video.available && this.html.used) {
1264
- // Turn the HTML Video controls on/off
1265
- this.htmlElement.video.controls = this.status.nativeVideoControls;
1266
- // Show/hide the jPlayer GUI.
1267
- this._updateAutohide();
1268
- // For when option changed. The poster image is not updated, as it is dealt with in setMedia(). Acceptable degradation since seriously doubt these options will change on the fly. Can again review later.
1269
- if(this.status.nativeVideoControls && this.require.video) {
1270
- this.internal.poster.jq.hide();
1271
- this.internal.video.jq.css({'width': this.status.width, 'height': this.status.height});
1272
- } else if(this.status.waitForPlay && this.status.video) {
1273
- this.internal.poster.jq.show();
1274
- this.internal.video.jq.css({'width': '0px', 'height': '0px'});
1275
- }
1276
- }
1277
- },
1278
- _addHtmlEventListeners: function(mediaElement, entity) {
1279
- var self = this;
1280
- mediaElement.preload = this.options.preload;
1281
- mediaElement.muted = this.options.muted;
1282
- mediaElement.volume = this.options.volume;
1283
-
1284
- if(this.status.playbackRateEnabled) {
1285
- mediaElement.defaultPlaybackRate = this.options.defaultPlaybackRate;
1286
- mediaElement.playbackRate = this.options.playbackRate;
1287
- }
1288
-
1289
- // Create the event listeners
1290
- // Only want the active entity to affect jPlayer and bubble events.
1291
- // Using entity.gate so that object is referenced and gate property always current
1292
-
1293
- mediaElement.addEventListener("progress", function() {
1294
- if(entity.gate) {
1295
- if(self.internal.cmdsIgnored && this.readyState > 0) { // Detect iOS executed the command
1296
- self.internal.cmdsIgnored = false;
1297
- }
1298
- self._getHtmlStatus(mediaElement);
1299
- self._updateInterface();
1300
- self._trigger($.jPlayer.event.progress);
1301
- }
1302
- }, false);
1303
- mediaElement.addEventListener("loadeddata", function() {
1304
- if(entity.gate) {
1305
- self.androidFix.setMedia = false; // Disable the fix after the first progress event.
1306
- if(self.androidFix.play) { // Play Android audio - performing the fix.
1307
- self.androidFix.play = false;
1308
- self.play(self.androidFix.time);
1309
- }
1310
- if(self.androidFix.pause) { // Pause Android audio at time - performing the fix.
1311
- self.androidFix.pause = false;
1312
- self.pause(self.androidFix.time);
1313
- }
1314
- self._trigger($.jPlayer.event.loadeddata);
1315
- }
1316
- }, false);
1317
- mediaElement.addEventListener("timeupdate", function() {
1318
- if(entity.gate) {
1319
- self._getHtmlStatus(mediaElement);
1320
- self._updateInterface();
1321
- self._trigger($.jPlayer.event.timeupdate);
1322
- }
1323
- }, false);
1324
- mediaElement.addEventListener("durationchange", function() {
1325
- if(entity.gate) {
1326
- self._getHtmlStatus(mediaElement);
1327
- self._updateInterface();
1328
- self._trigger($.jPlayer.event.durationchange);
1329
- }
1330
- }, false);
1331
- mediaElement.addEventListener("play", function() {
1332
- if(entity.gate) {
1333
- self._updateButtons(true);
1334
- self._html_checkWaitForPlay(); // So the native controls update this variable and puts the hidden interface in the correct state. Affects toggling native controls.
1335
- self._trigger($.jPlayer.event.play);
1336
- }
1337
- }, false);
1338
- mediaElement.addEventListener("playing", function() {
1339
- if(entity.gate) {
1340
- self._updateButtons(true);
1341
- self._seeked();
1342
- self._trigger($.jPlayer.event.playing);
1343
- }
1344
- }, false);
1345
- mediaElement.addEventListener("pause", function() {
1346
- if(entity.gate) {
1347
- self._updateButtons(false);
1348
- self._trigger($.jPlayer.event.pause);
1349
- }
1350
- }, false);
1351
- mediaElement.addEventListener("waiting", function() {
1352
- if(entity.gate) {
1353
- self._seeking();
1354
- self._trigger($.jPlayer.event.waiting);
1355
- }
1356
- }, false);
1357
- mediaElement.addEventListener("seeking", function() {
1358
- if(entity.gate) {
1359
- self._seeking();
1360
- self._trigger($.jPlayer.event.seeking);
1361
- }
1362
- }, false);
1363
- mediaElement.addEventListener("seeked", function() {
1364
- if(entity.gate) {
1365
- self._seeked();
1366
- self._trigger($.jPlayer.event.seeked);
1367
- }
1368
- }, false);
1369
- mediaElement.addEventListener("volumechange", function() {
1370
- if(entity.gate) {
1371
- // Read the values back from the element as the Blackberry PlayBook shares the volume with the physical buttons master volume control.
1372
- // However, when tested 6th July 2011, those buttons do not generate an event. The physical play/pause button does though.
1373
- self.options.volume = mediaElement.volume;
1374
- self.options.muted = mediaElement.muted;
1375
- self._updateMute();
1376
- self._updateVolume();
1377
- self._trigger($.jPlayer.event.volumechange);
1378
- }
1379
- }, false);
1380
- mediaElement.addEventListener("ratechange", function() {
1381
- if(entity.gate) {
1382
- self.options.defaultPlaybackRate = mediaElement.defaultPlaybackRate;
1383
- self.options.playbackRate = mediaElement.playbackRate;
1384
- self._updatePlaybackRate();
1385
- self._trigger($.jPlayer.event.ratechange);
1386
- }
1387
- }, false);
1388
- mediaElement.addEventListener("suspend", function() { // Seems to be the only way of capturing that the iOS4 browser did not actually play the media from the page code. ie., It needs a user gesture.
1389
- if(entity.gate) {
1390
- self._seeked();
1391
- self._trigger($.jPlayer.event.suspend);
1392
- }
1393
- }, false);
1394
- mediaElement.addEventListener("ended", function() {
1395
- if(entity.gate) {
1396
- // Order of the next few commands are important. Change the time and then pause.
1397
- // Solves a bug in Firefox, where issuing pause 1st causes the media to play from the start. ie., The pause is ignored.
1398
- if(!$.jPlayer.browser.webkit) { // Chrome crashes if you do this in conjunction with a setMedia command in an ended event handler. ie., The playlist demo.
1399
- self.htmlElement.media.currentTime = 0; // Safari does not care about this command. ie., It works with or without this line. (Both Safari and Chrome are Webkit.)
1400
- }
1401
- self.htmlElement.media.pause(); // Pause otherwise a click on the progress bar will play from that point, when it shouldn't, since it stopped playback.
1402
- self._updateButtons(false);
1403
- self._getHtmlStatus(mediaElement, true); // With override true. Otherwise Chrome leaves progress at full.
1404
- self._updateInterface();
1405
- self._trigger($.jPlayer.event.ended);
1406
- }
1407
- }, false);
1408
- mediaElement.addEventListener("error", function() {
1409
- if(entity.gate) {
1410
- self._updateButtons(false);
1411
- self._seeked();
1412
- if(self.status.srcSet) { // Deals with case of clearMedia() causing an error event.
1413
- clearTimeout(self.internal.htmlDlyCmdId); // Clears any delayed commands used in the HTML solution.
1414
- self.status.waitForLoad = true; // Allows the load operation to try again.
1415
- self.status.waitForPlay = true; // Reset since a play was captured.
1416
- if(self.status.video && !self.status.nativeVideoControls) {
1417
- self.internal.video.jq.css({'width':'0px', 'height':'0px'});
1418
- }
1419
- if(self._validString(self.status.media.poster) && !self.status.nativeVideoControls) {
1420
- self.internal.poster.jq.show();
1421
- }
1422
- if(self.css.jq.videoPlay.length) {
1423
- self.css.jq.videoPlay.show();
1424
- }
1425
- self._error( {
1426
- type: $.jPlayer.error.URL,
1427
- context: self.status.src, // this.src shows absolute urls. Want context to show the url given.
1428
- message: $.jPlayer.errorMsg.URL,
1429
- hint: $.jPlayer.errorHint.URL
1430
- });
1431
- }
1432
- }
1433
- }, false);
1434
- // Create all the other event listeners that bubble up to a jPlayer event from html, without being used by jPlayer.
1435
- $.each($.jPlayer.htmlEvent, function(i, eventType) {
1436
- mediaElement.addEventListener(this, function() {
1437
- if(entity.gate) {
1438
- self._trigger($.jPlayer.event[eventType]);
1439
- }
1440
- }, false);
1441
- });
1442
- },
1443
- _getHtmlStatus: function(media, override) {
1444
- var ct = 0, cpa = 0, sp = 0, cpr = 0;
1445
-
1446
- // Fixes the duration bug in iOS, where the durationchange event occurs when media.duration is not always correct.
1447
- // Fixes the initial duration bug in BB OS7, where the media.duration is infinity and displays as NaN:NaN due to Date() using inifity.
1448
- if(isFinite(media.duration)) {
1449
- this.status.duration = media.duration;
1450
- }
1451
-
1452
- ct = media.currentTime;
1453
- cpa = (this.status.duration > 0) ? 100 * ct / this.status.duration : 0;
1454
- if((typeof media.seekable === "object") && (media.seekable.length > 0)) {
1455
- sp = (this.status.duration > 0) ? 100 * media.seekable.end(media.seekable.length-1) / this.status.duration : 100;
1456
- cpr = (this.status.duration > 0) ? 100 * media.currentTime / media.seekable.end(media.seekable.length-1) : 0; // Duration conditional for iOS duration bug. ie., seekable.end is a NaN in that case.
1457
- } else {
1458
- sp = 100;
1459
- cpr = cpa;
1460
- }
1461
-
1462
- if(override) {
1463
- ct = 0;
1464
- cpr = 0;
1465
- cpa = 0;
1466
- }
1467
-
1468
- this.status.seekPercent = sp;
1469
- this.status.currentPercentRelative = cpr;
1470
- this.status.currentPercentAbsolute = cpa;
1471
- this.status.currentTime = ct;
1472
-
1473
- this.status.remaining = this.status.duration - this.status.currentTime;
1474
-
1475
- this.status.videoWidth = media.videoWidth;
1476
- this.status.videoHeight = media.videoHeight;
1477
-
1478
- this.status.readyState = media.readyState;
1479
- this.status.networkState = media.networkState;
1480
- this.status.playbackRate = media.playbackRate;
1481
- this.status.ended = media.ended;
1482
- },
1483
- _resetStatus: function() {
1484
- this.status = $.extend({}, this.status, $.jPlayer.prototype.status); // Maintains the status properties that persist through a reset.
1485
- },
1486
- _trigger: function(eventType, error, warning) { // eventType always valid as called using $.jPlayer.event.eventType
1487
- var event = $.Event(eventType);
1488
- event.jPlayer = {};
1489
- event.jPlayer.version = $.extend({}, this.version);
1490
- event.jPlayer.options = $.extend(true, {}, this.options); // Deep copy
1491
- event.jPlayer.status = $.extend(true, {}, this.status); // Deep copy
1492
- event.jPlayer.html = $.extend(true, {}, this.html); // Deep copy
1493
- event.jPlayer.flash = $.extend(true, {}, this.flash); // Deep copy
1494
- if(error) {
1495
- event.jPlayer.error = $.extend({}, error);
1496
- }
1497
- if(warning) {
1498
- event.jPlayer.warning = $.extend({}, warning);
1499
- }
1500
- this.element.trigger(event);
1501
- },
1502
- jPlayerFlashEvent: function(eventType, status) { // Called from Flash
1503
- if(eventType === $.jPlayer.event.ready) {
1504
- if(!this.internal.ready) {
1505
- this.internal.ready = true;
1506
- this.internal.flash.jq.css({'width':'0px', 'height':'0px'}); // Once Flash generates the ready event, minimise to zero as it is not affected by wmode anymore.
1507
-
1508
- this.version.flash = status.version;
1509
- if(this.version.needFlash !== this.version.flash) {
1510
- this._error( {
1511
- type: $.jPlayer.error.VERSION,
1512
- context: this.version.flash,
1513
- message: $.jPlayer.errorMsg.VERSION + this.version.flash,
1514
- hint: $.jPlayer.errorHint.VERSION
1515
- });
1516
- }
1517
- this._trigger($.jPlayer.event.repeat); // Trigger the repeat event so its handler can initialize itself with the loop option.
1518
- this._trigger(eventType);
1519
- } else {
1520
- // This condition occurs if the Flash is hidden and then shown again.
1521
- // Firefox also reloads the Flash if the CSS position changes. position:fixed is used for full screen.
1522
-
1523
- // Only do this if the Flash is the solution being used at the moment. Affects Media players where both solution may be being used.
1524
- if(this.flash.gate) {
1525
-
1526
- // Send the current status to the Flash now that it is ready (available) again.
1527
- if(this.status.srcSet) {
1528
-
1529
- // Need to read original status before issuing the setMedia command.
1530
- var currentTime = this.status.currentTime,
1531
- paused = this.status.paused;
1532
-
1533
- this.setMedia(this.status.media);
1534
- this.volumeWorker(this.options.volume);
1535
- if(currentTime > 0) {
1536
- if(paused) {
1537
- this.pause(currentTime);
1538
- } else {
1539
- this.play(currentTime);
1540
- }
1541
- }
1542
- }
1543
- this._trigger($.jPlayer.event.flashreset);
1544
- }
1545
- }
1546
- }
1547
- if(this.flash.gate) {
1548
- switch(eventType) {
1549
- case $.jPlayer.event.progress:
1550
- this._getFlashStatus(status);
1551
- this._updateInterface();
1552
- this._trigger(eventType);
1553
- break;
1554
- case $.jPlayer.event.timeupdate:
1555
- this._getFlashStatus(status);
1556
- this._updateInterface();
1557
- this._trigger(eventType);
1558
- break;
1559
- case $.jPlayer.event.play:
1560
- this._seeked();
1561
- this._updateButtons(true);
1562
- this._trigger(eventType);
1563
- break;
1564
- case $.jPlayer.event.pause:
1565
- this._updateButtons(false);
1566
- this._trigger(eventType);
1567
- break;
1568
- case $.jPlayer.event.ended:
1569
- this._updateButtons(false);
1570
- this._trigger(eventType);
1571
- break;
1572
- case $.jPlayer.event.click:
1573
- this._trigger(eventType); // This could be dealt with by the default
1574
- break;
1575
- case $.jPlayer.event.error:
1576
- this.status.waitForLoad = true; // Allows the load operation to try again.
1577
- this.status.waitForPlay = true; // Reset since a play was captured.
1578
- if(this.status.video) {
1579
- this.internal.flash.jq.css({'width':'0px', 'height':'0px'});
1580
- }
1581
- if(this._validString(this.status.media.poster)) {
1582
- this.internal.poster.jq.show();
1583
- }
1584
- if(this.css.jq.videoPlay.length && this.status.video) {
1585
- this.css.jq.videoPlay.show();
1586
- }
1587
- if(this.status.video) { // Set up for another try. Execute before error event.
1588
- this._flash_setVideo(this.status.media);
1589
- } else {
1590
- this._flash_setAudio(this.status.media);
1591
- }
1592
- this._updateButtons(false);
1593
- this._error( {
1594
- type: $.jPlayer.error.URL,
1595
- context:status.src,
1596
- message: $.jPlayer.errorMsg.URL,
1597
- hint: $.jPlayer.errorHint.URL
1598
- });
1599
- break;
1600
- case $.jPlayer.event.seeking:
1601
- this._seeking();
1602
- this._trigger(eventType);
1603
- break;
1604
- case $.jPlayer.event.seeked:
1605
- this._seeked();
1606
- this._trigger(eventType);
1607
- break;
1608
- case $.jPlayer.event.ready:
1609
- // The ready event is handled outside the switch statement.
1610
- // Captured here otherwise 2 ready events would be generated if the ready event handler used setMedia.
1611
- break;
1612
- default:
1613
- this._trigger(eventType);
1614
- }
1615
- }
1616
- return false;
1617
- },
1618
- _getFlashStatus: function(status) {
1619
- this.status.seekPercent = status.seekPercent;
1620
- this.status.currentPercentRelative = status.currentPercentRelative;
1621
- this.status.currentPercentAbsolute = status.currentPercentAbsolute;
1622
- this.status.currentTime = status.currentTime;
1623
- this.status.duration = status.duration;
1624
- this.status.remaining = status.duration - status.currentTime;
1625
-
1626
- this.status.videoWidth = status.videoWidth;
1627
- this.status.videoHeight = status.videoHeight;
1628
-
1629
- // The Flash does not generate this information in this release
1630
- this.status.readyState = 4; // status.readyState;
1631
- this.status.networkState = 0; // status.networkState;
1632
- this.status.playbackRate = 1; // status.playbackRate;
1633
- this.status.ended = false; // status.ended;
1634
- },
1635
- _updateButtons: function(playing) {
1636
- if(playing === undefined) {
1637
- playing = !this.status.paused;
1638
- } else {
1639
- this.status.paused = !playing;
1640
- }
1641
- // Apply the state classes. (For the useStateClassSkin:true option)
1642
- if(playing) {
1643
- this.addStateClass('playing');
1644
- } else {
1645
- this.removeStateClass('playing');
1646
- }
1647
- if(!this.status.noFullWindow && this.options.fullWindow) {
1648
- this.addStateClass('fullScreen');
1649
- } else {
1650
- this.removeStateClass('fullScreen');
1651
- }
1652
- if(this.options.loop) {
1653
- this.addStateClass('looped');
1654
- } else {
1655
- this.removeStateClass('looped');
1656
- }
1657
- // Toggle the GUI element pairs. (For the useStateClassSkin:false option)
1658
- if(this.css.jq.play.length && this.css.jq.pause.length) {
1659
- if(playing) {
1660
- this.css.jq.play.hide();
1661
- this.css.jq.pause.show();
1662
- } else {
1663
- this.css.jq.play.show();
1664
- this.css.jq.pause.hide();
1665
- }
1666
- }
1667
- if(this.css.jq.restoreScreen.length && this.css.jq.fullScreen.length) {
1668
- if(this.status.noFullWindow) {
1669
- this.css.jq.fullScreen.hide();
1670
- this.css.jq.restoreScreen.hide();
1671
- } else if(this.options.fullWindow) {
1672
- this.css.jq.fullScreen.hide();
1673
- this.css.jq.restoreScreen.show();
1674
- } else {
1675
- this.css.jq.fullScreen.show();
1676
- this.css.jq.restoreScreen.hide();
1677
- }
1678
- }
1679
- if(this.css.jq.repeat.length && this.css.jq.repeatOff.length) {
1680
- if(this.options.loop) {
1681
- this.css.jq.repeat.hide();
1682
- this.css.jq.repeatOff.show();
1683
- } else {
1684
- this.css.jq.repeat.show();
1685
- this.css.jq.repeatOff.hide();
1686
- }
1687
- }
1688
- },
1689
- _updateInterface: function() {
1690
- if(this.css.jq.seekBar.length) {
1691
- this.css.jq.seekBar.width(this.status.seekPercent+"%");
1692
- }
1693
- if(this.css.jq.playBar.length) {
1694
- if(this.options.smoothPlayBar) {
1695
- this.css.jq.playBar.stop().animate({
1696
- width: this.status.currentPercentAbsolute+"%"
1697
- }, 250, "linear");
1698
- } else {
1699
- this.css.jq.playBar.width(this.status.currentPercentRelative+"%");
1700
- }
1701
- }
1702
- var currentTimeText = '';
1703
- if(this.css.jq.currentTime.length) {
1704
- currentTimeText = this._convertTime(this.status.currentTime);
1705
- if(currentTimeText !== this.css.jq.currentTime.text()) {
1706
- this.css.jq.currentTime.text(this._convertTime(this.status.currentTime));
1707
- }
1708
- }
1709
- var durationText = '',
1710
- duration = this.status.duration,
1711
- remaining = this.status.remaining;
1712
- if(this.css.jq.duration.length) {
1713
- if(typeof this.status.media.duration === 'string') {
1714
- durationText = this.status.media.duration;
1715
- } else {
1716
- if(typeof this.status.media.duration === 'number') {
1717
- duration = this.status.media.duration;
1718
- remaining = duration - this.status.currentTime;
1719
- }
1720
- if(this.options.remainingDuration) {
1721
- durationText = (remaining > 0 ? '-' : '') + this._convertTime(remaining);
1722
- } else {
1723
- durationText = this._convertTime(duration);
1724
- }
1725
- }
1726
- if(durationText !== this.css.jq.duration.text()) {
1727
- this.css.jq.duration.text(durationText);
1728
- }
1729
- }
1730
- },
1731
- _convertTime: ConvertTime.prototype.time,
1732
- _seeking: function() {
1733
- if(this.css.jq.seekBar.length) {
1734
- this.css.jq.seekBar.addClass("jp-seeking-bg");
1735
- }
1736
- this.addStateClass('seeking');
1737
- },
1738
- _seeked: function() {
1739
- if(this.css.jq.seekBar.length) {
1740
- this.css.jq.seekBar.removeClass("jp-seeking-bg");
1741
- }
1742
- this.removeStateClass('seeking');
1743
- },
1744
- _resetGate: function() {
1745
- this.html.audio.gate = false;
1746
- this.html.video.gate = false;
1747
- this.flash.gate = false;
1748
- },
1749
- _resetActive: function() {
1750
- this.html.active = false;
1751
- this.flash.active = false;
1752
- },
1753
- _escapeHtml: function(s) {
1754
- return s.split('&').join('&amp;').split('<').join('&lt;').split('>').join('&gt;').split('"').join('&quot;');
1755
- },
1756
- _qualifyURL: function(url) {
1757
- var el = document.createElement('div');
1758
- el.innerHTML= '<a href="' + this._escapeHtml(url) + '">x</a>';
1759
- return el.firstChild.href;
1760
- },
1761
- _absoluteMediaUrls: function(media) {
1762
- var self = this;
1763
- $.each(media, function(type, url) {
1764
- if(url && self.format[type]) {
1765
- media[type] = self._qualifyURL(url);
1766
- }
1767
- });
1768
- return media;
1769
- },
1770
- addStateClass: function(state) {
1771
- if(this.ancestorJq.length) {
1772
- this.ancestorJq.addClass(this.options.stateClass[state]);
1773
- }
1774
- },
1775
- removeStateClass: function(state) {
1776
- if(this.ancestorJq.length) {
1777
- this.ancestorJq.removeClass(this.options.stateClass[state]);
1778
- }
1779
- },
1780
- setMedia: function(media) {
1781
-
1782
- /* media[format] = String: URL of format. Must contain all of the supplied option's video or audio formats.
1783
- * media.poster = String: Video poster URL.
1784
- * media.track = Array: Of objects defining the track element: kind, src, srclang, label, def.
1785
- * media.stream = Boolean: * NOT IMPLEMENTED * Designating actual media streams. ie., "false/undefined" for files. Plan to refresh the flash every so often.
1786
- */
1787
-
1788
- var self = this,
1789
- supported = false,
1790
- posterChanged = this.status.media.poster !== media.poster; // Compare before reset. Important for OSX Safari as this.htmlElement.poster.src is absolute, even if original poster URL was relative.
1791
-
1792
- this._resetMedia();
1793
- this._resetGate();
1794
- this._resetActive();
1795
-
1796
- // Clear the Android Fix.
1797
- this.androidFix.setMedia = false;
1798
- this.androidFix.play = false;
1799
- this.androidFix.pause = false;
1800
-
1801
- // Convert all media URLs to absolute URLs.
1802
- media = this._absoluteMediaUrls(media);
1803
-
1804
- $.each(this.formats, function(formatPriority, format) {
1805
- var isVideo = self.format[format].media === 'video';
1806
- $.each(self.solutions, function(solutionPriority, solution) {
1807
- if(self[solution].support[format] && self._validString(media[format])) { // Format supported in solution and url given for format.
1808
- var isHtml = solution === 'html';
1809
-
1810
- if(isVideo) {
1811
- if(isHtml) {
1812
- self.html.video.gate = true;
1813
- self._html_setVideo(media);
1814
- self.html.active = true;
1815
- } else {
1816
- self.flash.gate = true;
1817
- self._flash_setVideo(media);
1818
- self.flash.active = true;
1819
- }
1820
- if(self.css.jq.videoPlay.length) {
1821
- self.css.jq.videoPlay.show();
1822
- }
1823
- self.status.video = true;
1824
- } else {
1825
- if(isHtml) {
1826
- self.html.audio.gate = true;
1827
- self._html_setAudio(media);
1828
- self.html.active = true;
1829
-
1830
- // Setup the Android Fix - Only for HTML audio.
1831
- if($.jPlayer.platform.android) {
1832
- self.androidFix.setMedia = true;
1833
- }
1834
- } else {
1835
- self.flash.gate = true;
1836
- self._flash_setAudio(media);
1837
- self.flash.active = true;
1838
- }
1839
- if(self.css.jq.videoPlay.length) {
1840
- self.css.jq.videoPlay.hide();
1841
- }
1842
- self.status.video = false;
1843
- }
1844
-
1845
- supported = true;
1846
- return false; // Exit $.each
1847
- }
1848
- });
1849
- if(supported) {
1850
- return false; // Exit $.each
1851
- }
1852
- });
1853
-
1854
- if(supported) {
1855
- if(!(this.status.nativeVideoControls && this.html.video.gate)) {
1856
- // Set poster IMG if native video controls are not being used
1857
- // Note: With IE the IMG onload event occurs immediately when cached.
1858
- // Note: Poster hidden by default in _resetMedia()
1859
- if(this._validString(media.poster)) {
1860
- if(posterChanged) { // Since some browsers do not generate img onload event.
1861
- this.htmlElement.poster.src = media.poster;
1862
- } else {
1863
- this.internal.poster.jq.show();
1864
- }
1865
- }
1866
- }
1867
- if(this.css.jq.title.length) {
1868
- if(typeof media.title === 'string') {
1869
- this.css.jq.title.html(media.title);
1870
- if(this.htmlElement.audio) {
1871
- this.htmlElement.audio.setAttribute('title', media.title);
1872
- }
1873
- if(this.htmlElement.video) {
1874
- this.htmlElement.video.setAttribute('title', media.title);
1875
- }
1876
- }
1877
- }
1878
- this.status.srcSet = true;
1879
- this.status.media = $.extend({}, media);
1880
- this._updateButtons(false);
1881
- this._updateInterface();
1882
- this._trigger($.jPlayer.event.setmedia);
1883
- } else { // jPlayer cannot support any formats provided in this browser
1884
- // Send an error event
1885
- this._error( {
1886
- type: $.jPlayer.error.NO_SUPPORT,
1887
- context: "{supplied:'" + this.options.supplied + "'}",
1888
- message: $.jPlayer.errorMsg.NO_SUPPORT,
1889
- hint: $.jPlayer.errorHint.NO_SUPPORT
1890
- });
1891
- }
1892
- },
1893
- _resetMedia: function() {
1894
- this._resetStatus();
1895
- this._updateButtons(false);
1896
- this._updateInterface();
1897
- this._seeked();
1898
- this.internal.poster.jq.hide();
1899
-
1900
- clearTimeout(this.internal.htmlDlyCmdId);
1901
-
1902
- if(this.html.active) {
1903
- this._html_resetMedia();
1904
- } else if(this.flash.active) {
1905
- this._flash_resetMedia();
1906
- }
1907
- },
1908
- clearMedia: function() {
1909
- this._resetMedia();
1910
-
1911
- if(this.html.active) {
1912
- this._html_clearMedia();
1913
- } else if(this.flash.active) {
1914
- this._flash_clearMedia();
1915
- }
1916
-
1917
- this._resetGate();
1918
- this._resetActive();
1919
- },
1920
- load: function() {
1921
- if(this.status.srcSet) {
1922
- if(this.html.active) {
1923
- this._html_load();
1924
- } else if(this.flash.active) {
1925
- this._flash_load();
1926
- }
1927
- } else {
1928
- this._urlNotSetError("load");
1929
- }
1930
- },
1931
- focus: function() {
1932
- if(this.options.keyEnabled) {
1933
- $.jPlayer.focus = this;
1934
- }
1935
- },
1936
- play: function(time) {
1937
- var guiAction = typeof time === "object"; // Flags GUI click events so we know this was not a direct command, but an action taken by the user on the GUI.
1938
- if(guiAction && this.options.useStateClassSkin && !this.status.paused) {
1939
- this.pause(time); // The time would be the click event, but passing it over so info is not lost.
1940
- } else {
1941
- time = (typeof time === "number") ? time : NaN; // Remove jQuery event from click handler
1942
- if(this.status.srcSet) {
1943
- this.focus();
1944
- if(this.html.active) {
1945
- this._html_play(time);
1946
- } else if(this.flash.active) {
1947
- this._flash_play(time);
1948
- }
1949
- } else {
1950
- this._urlNotSetError("play");
1951
- }
1952
- }
1953
- },
1954
- videoPlay: function() { // Handles clicks on the play button over the video poster
1955
- this.play();
1956
- },
1957
- pause: function(time) {
1958
- time = (typeof time === "number") ? time : NaN; // Remove jQuery event from click handler
1959
- if(this.status.srcSet) {
1960
- if(this.html.active) {
1961
- this._html_pause(time);
1962
- } else if(this.flash.active) {
1963
- this._flash_pause(time);
1964
- }
1965
- } else {
1966
- this._urlNotSetError("pause");
1967
- }
1968
- },
1969
- tellOthers: function(command, conditions) {
1970
- var self = this,
1971
- hasConditions = typeof conditions === 'function',
1972
- args = Array.prototype.slice.call(arguments); // Convert arguments to an Array.
1973
-
1974
- if(typeof command !== 'string') { // Ignore, since no command.
1975
- return; // Return undefined to maintain chaining.
1976
- }
1977
- if(hasConditions) {
1978
- args.splice(1, 1); // Remove the conditions from the arguments
1979
- }
1980
-
1981
- $.each(this.instances, function() {
1982
- // Remember that "this" is the instance's "element" in the $.each() loop.
1983
- if(self.element !== this) { // Do not tell my instance.
1984
- if(!hasConditions || conditions.call(this.data("jPlayer"), self)) {
1985
- this.jPlayer.apply(this, args);
1986
- }
1987
- }
1988
- });
1989
- },
1990
- pauseOthers: function(time) {
1991
- this.tellOthers("pause", function() {
1992
- // In the conditions function, the "this" context is the other instance's jPlayer object.
1993
- return this.status.srcSet;
1994
- }, time);
1995
- },
1996
- stop: function() {
1997
- if(this.status.srcSet) {
1998
- if(this.html.active) {
1999
- this._html_pause(0);
2000
- } else if(this.flash.active) {
2001
- this._flash_pause(0);
2002
- }
2003
- } else {
2004
- this._urlNotSetError("stop");
2005
- }
2006
- },
2007
- playHead: function(p) {
2008
- p = this._limitValue(p, 0, 100);
2009
- if(this.status.srcSet) {
2010
- if(this.html.active) {
2011
- this._html_playHead(p);
2012
- } else if(this.flash.active) {
2013
- this._flash_playHead(p);
2014
- }
2015
- } else {
2016
- this._urlNotSetError("playHead");
2017
- }
2018
- },
2019
- _muted: function(muted) {
2020
- this.mutedWorker(muted);
2021
- if(this.options.globalVolume) {
2022
- this.tellOthers("mutedWorker", function() {
2023
- // Check the other instance has global volume enabled.
2024
- return this.options.globalVolume;
2025
- }, muted);
2026
- }
2027
- },
2028
- mutedWorker: function(muted) {
2029
- this.options.muted = muted;
2030
- if(this.html.used) {
2031
- this._html_setProperty('muted', muted);
2032
- }
2033
- if(this.flash.used) {
2034
- this._flash_mute(muted);
2035
- }
2036
-
2037
- // The HTML solution generates this event from the media element itself.
2038
- if(!this.html.video.gate && !this.html.audio.gate) {
2039
- this._updateMute(muted);
2040
- this._updateVolume(this.options.volume);
2041
- this._trigger($.jPlayer.event.volumechange);
2042
- }
2043
- },
2044
- mute: function(mute) { // mute is either: undefined (true), an event object (true) or a boolean (muted).
2045
- var guiAction = typeof mute === "object"; // Flags GUI click events so we know this was not a direct command, but an action taken by the user on the GUI.
2046
- if(guiAction && this.options.useStateClassSkin && this.options.muted) {
2047
- this._muted(false);
2048
- } else {
2049
- mute = mute === undefined ? true : !!mute;
2050
- this._muted(mute);
2051
- }
2052
- },
2053
- unmute: function(unmute) { // unmute is either: undefined (true), an event object (true) or a boolean (!muted).
2054
- unmute = unmute === undefined ? true : !!unmute;
2055
- this._muted(!unmute);
2056
- },
2057
- _updateMute: function(mute) {
2058
- if(mute === undefined) {
2059
- mute = this.options.muted;
2060
- }
2061
- if(mute) {
2062
- this.addStateClass('muted');
2063
- } else {
2064
- this.removeStateClass('muted');
2065
- }
2066
- if(this.css.jq.mute.length && this.css.jq.unmute.length) {
2067
- if(this.status.noVolume) {
2068
- this.css.jq.mute.hide();
2069
- this.css.jq.unmute.hide();
2070
- } else if(mute) {
2071
- this.css.jq.mute.hide();
2072
- this.css.jq.unmute.show();
2073
- } else {
2074
- this.css.jq.mute.show();
2075
- this.css.jq.unmute.hide();
2076
- }
2077
- }
2078
- },
2079
- volume: function(v) {
2080
- this.volumeWorker(v);
2081
- if(this.options.globalVolume) {
2082
- this.tellOthers("volumeWorker", function() {
2083
- // Check the other instance has global volume enabled.
2084
- return this.options.globalVolume;
2085
- }, v);
2086
- }
2087
- },
2088
- volumeWorker: function(v) {
2089
- v = this._limitValue(v, 0, 1);
2090
- this.options.volume = v;
2091
-
2092
- if(this.html.used) {
2093
- this._html_setProperty('volume', v);
2094
- }
2095
- if(this.flash.used) {
2096
- this._flash_volume(v);
2097
- }
2098
-
2099
- // The HTML solution generates this event from the media element itself.
2100
- if(!this.html.video.gate && !this.html.audio.gate) {
2101
- this._updateVolume(v);
2102
- this._trigger($.jPlayer.event.volumechange);
2103
- }
2104
- },
2105
- volumeBar: function(e) { // Handles clicks on the volumeBar
2106
- if(this.css.jq.volumeBar.length) {
2107
- // Using $(e.currentTarget) to enable multiple volume bars
2108
- var $bar = $(e.currentTarget),
2109
- offset = $bar.offset(),
2110
- x = e.pageX - offset.left,
2111
- w = $bar.width(),
2112
- y = $bar.height() - e.pageY + offset.top,
2113
- h = $bar.height();
2114
- if(this.options.verticalVolume) {
2115
- this.volume(y/h);
2116
- } else {
2117
- this.volume(x/w);
2118
- }
2119
- }
2120
- if(this.options.muted) {
2121
- this._muted(false);
2122
- }
2123
- },
2124
- _updateVolume: function(v) {
2125
- if(v === undefined) {
2126
- v = this.options.volume;
2127
- }
2128
- v = this.options.muted ? 0 : v;
2129
-
2130
- if(this.status.noVolume) {
2131
- if(this.css.jq.volumeBar.length) {
2132
- this.css.jq.volumeBar.hide();
2133
- }
2134
- if(this.css.jq.volumeBarValue.length) {
2135
- this.css.jq.volumeBarValue.hide();
2136
- }
2137
- if(this.css.jq.volumeMax.length) {
2138
- this.css.jq.volumeMax.hide();
2139
- }
2140
- } else {
2141
- if(this.css.jq.volumeBar.length) {
2142
- this.css.jq.volumeBar.show();
2143
- }
2144
- if(this.css.jq.volumeBarValue.length) {
2145
- this.css.jq.volumeBarValue.show();
2146
- this.css.jq.volumeBarValue[this.options.verticalVolume ? "height" : "width"]((v*100)+"%");
2147
- }
2148
- if(this.css.jq.volumeMax.length) {
2149
- this.css.jq.volumeMax.show();
2150
- }
2151
- }
2152
- },
2153
- volumeMax: function() { // Handles clicks on the volume max
2154
- this.volume(1);
2155
- if(this.options.muted) {
2156
- this._muted(false);
2157
- }
2158
- },
2159
- _cssSelectorAncestor: function(ancestor) {
2160
- var self = this;
2161
- this.options.cssSelectorAncestor = ancestor;
2162
- this._removeUiClass();
2163
- this.ancestorJq = ancestor ? $(ancestor) : []; // Would use $() instead of [], but it is only 1.4+
2164
- if(ancestor && this.ancestorJq.length !== 1) { // So empty strings do not generate the warning.
2165
- this._warning( {
2166
- type: $.jPlayer.warning.CSS_SELECTOR_COUNT,
2167
- context: ancestor,
2168
- message: $.jPlayer.warningMsg.CSS_SELECTOR_COUNT + this.ancestorJq.length + " found for cssSelectorAncestor.",
2169
- hint: $.jPlayer.warningHint.CSS_SELECTOR_COUNT
2170
- });
2171
- }
2172
- this._addUiClass();
2173
- $.each(this.options.cssSelector, function(fn, cssSel) {
2174
- self._cssSelector(fn, cssSel);
2175
- });
2176
-
2177
- // Set the GUI to the current state.
2178
- this._updateInterface();
2179
- this._updateButtons();
2180
- this._updateAutohide();
2181
- this._updateVolume();
2182
- this._updateMute();
2183
- },
2184
- _cssSelector: function(fn, cssSel) {
2185
- var self = this;
2186
- if(typeof cssSel === 'string') {
2187
- if($.jPlayer.prototype.options.cssSelector[fn]) {
2188
- if(this.css.jq[fn] && this.css.jq[fn].length) {
2189
- this.css.jq[fn].unbind(".jPlayer");
2190
- }
2191
- this.options.cssSelector[fn] = cssSel;
2192
- this.css.cs[fn] = this.options.cssSelectorAncestor + " " + cssSel;
2193
-
2194
- if(cssSel) { // Checks for empty string
2195
- this.css.jq[fn] = $(this.css.cs[fn]);
2196
- } else {
2197
- this.css.jq[fn] = []; // To comply with the css.jq[fn].length check before its use. As of jQuery 1.4 could have used $() for an empty set.
2198
- }
2199
-
2200
- if(this.css.jq[fn].length && this[fn]) {
2201
- var handler = function(e) {
2202
- e.preventDefault();
2203
- self[fn](e);
2204
- if(self.options.autoBlur) {
2205
- $(this).blur();
2206
- }
2207
- };
2208
- this.css.jq[fn].bind("click.jPlayer", handler); // Using jPlayer namespace
2209
- }
2210
-
2211
- if(cssSel && this.css.jq[fn].length !== 1) { // So empty strings do not generate the warning. ie., they just remove the old one.
2212
- this._warning( {
2213
- type: $.jPlayer.warning.CSS_SELECTOR_COUNT,
2214
- context: this.css.cs[fn],
2215
- message: $.jPlayer.warningMsg.CSS_SELECTOR_COUNT + this.css.jq[fn].length + " found for " + fn + " method.",
2216
- hint: $.jPlayer.warningHint.CSS_SELECTOR_COUNT
2217
- });
2218
- }
2219
- } else {
2220
- this._warning( {
2221
- type: $.jPlayer.warning.CSS_SELECTOR_METHOD,
2222
- context: fn,
2223
- message: $.jPlayer.warningMsg.CSS_SELECTOR_METHOD,
2224
- hint: $.jPlayer.warningHint.CSS_SELECTOR_METHOD
2225
- });
2226
- }
2227
- } else {
2228
- this._warning( {
2229
- type: $.jPlayer.warning.CSS_SELECTOR_STRING,
2230
- context: cssSel,
2231
- message: $.jPlayer.warningMsg.CSS_SELECTOR_STRING,
2232
- hint: $.jPlayer.warningHint.CSS_SELECTOR_STRING
2233
- });
2234
- }
2235
- },
2236
- duration: function(e) {
2237
- if(this.options.toggleDuration) {
2238
- if(this.options.captureDuration) {
2239
- e.stopPropagation();
2240
- }
2241
- this._setOption("remainingDuration", !this.options.remainingDuration);
2242
- }
2243
- },
2244
- seekBar: function(e) { // Handles clicks on the seekBar
2245
- if(this.css.jq.seekBar.length) {
2246
- // Using $(e.currentTarget) to enable multiple seek bars
2247
- var $bar = $(e.currentTarget),
2248
- offset = $bar.offset(),
2249
- x = e.pageX - offset.left,
2250
- w = $bar.width(),
2251
- p = 100 * x / w;
2252
- this.playHead(p);
2253
- }
2254
- },
2255
- playbackRate: function(pbr) {
2256
- this._setOption("playbackRate", pbr);
2257
- },
2258
- playbackRateBar: function(e) { // Handles clicks on the playbackRateBar
2259
- if(this.css.jq.playbackRateBar.length) {
2260
- // Using $(e.currentTarget) to enable multiple playbackRate bars
2261
- var $bar = $(e.currentTarget),
2262
- offset = $bar.offset(),
2263
- x = e.pageX - offset.left,
2264
- w = $bar.width(),
2265
- y = $bar.height() - e.pageY + offset.top,
2266
- h = $bar.height(),
2267
- ratio, pbr;
2268
- if(this.options.verticalPlaybackRate) {
2269
- ratio = y/h;
2270
- } else {
2271
- ratio = x/w;
2272
- }
2273
- pbr = ratio * (this.options.maxPlaybackRate - this.options.minPlaybackRate) + this.options.minPlaybackRate;
2274
- this.playbackRate(pbr);
2275
- }
2276
- },
2277
- _updatePlaybackRate: function() {
2278
- var pbr = this.options.playbackRate,
2279
- ratio = (pbr - this.options.minPlaybackRate) / (this.options.maxPlaybackRate - this.options.minPlaybackRate);
2280
- if(this.status.playbackRateEnabled) {
2281
- if(this.css.jq.playbackRateBar.length) {
2282
- this.css.jq.playbackRateBar.show();
2283
- }
2284
- if(this.css.jq.playbackRateBarValue.length) {
2285
- this.css.jq.playbackRateBarValue.show();
2286
- this.css.jq.playbackRateBarValue[this.options.verticalPlaybackRate ? "height" : "width"]((ratio*100)+"%");
2287
- }
2288
- } else {
2289
- if(this.css.jq.playbackRateBar.length) {
2290
- this.css.jq.playbackRateBar.hide();
2291
- }
2292
- if(this.css.jq.playbackRateBarValue.length) {
2293
- this.css.jq.playbackRateBarValue.hide();
2294
- }
2295
- }
2296
- },
2297
- repeat: function(event) { // Handle clicks on the repeat button
2298
- var guiAction = typeof event === "object"; // Flags GUI click events so we know this was not a direct command, but an action taken by the user on the GUI.
2299
- if(guiAction && this.options.useStateClassSkin && this.options.loop) {
2300
- this._loop(false);
2301
- } else {
2302
- this._loop(true);
2303
- }
2304
- },
2305
- repeatOff: function() { // Handle clicks on the repeatOff button
2306
- this._loop(false);
2307
- },
2308
- _loop: function(loop) {
2309
- if(this.options.loop !== loop) {
2310
- this.options.loop = loop;
2311
- this._updateButtons();
2312
- this._trigger($.jPlayer.event.repeat);
2313
- }
2314
- },
2315
-
2316
- // Options code adapted from ui.widget.js (1.8.7). Made changes so the key can use dot notation. To match previous getData solution in jPlayer 1.
2317
- option: function(key, value) {
2318
- var options = key;
2319
-
2320
- // Enables use: options(). Returns a copy of options object
2321
- if ( arguments.length === 0 ) {
2322
- return $.extend( true, {}, this.options );
2323
- }
2324
-
2325
- if(typeof key === "string") {
2326
- var keys = key.split(".");
2327
-
2328
- // Enables use: options("someOption") Returns a copy of the option. Supports dot notation.
2329
- if(value === undefined) {
2330
-
2331
- var opt = $.extend(true, {}, this.options);
2332
- for(var i = 0; i < keys.length; i++) {
2333
- if(opt[keys[i]] !== undefined) {
2334
- opt = opt[keys[i]];
2335
- } else {
2336
- this._warning( {
2337
- type: $.jPlayer.warning.OPTION_KEY,
2338
- context: key,
2339
- message: $.jPlayer.warningMsg.OPTION_KEY,
2340
- hint: $.jPlayer.warningHint.OPTION_KEY
2341
- });
2342
- return undefined;
2343
- }
2344
- }
2345
- return opt;
2346
- }
2347
-
2348
- // Enables use: options("someOptionObject", someObject}). Creates: {someOptionObject:someObject}
2349
- // Enables use: options("someOption", someValue). Creates: {someOption:someValue}
2350
- // Enables use: options("someOptionObject.someOption", someValue). Creates: {someOptionObject:{someOption:someValue}}
2351
-
2352
- options = {};
2353
- var opts = options;
2354
-
2355
- for(var j = 0; j < keys.length; j++) {
2356
- if(j < keys.length - 1) {
2357
- opts[keys[j]] = {};
2358
- opts = opts[keys[j]];
2359
- } else {
2360
- opts[keys[j]] = value;
2361
- }
2362
- }
2363
- }
2364
-
2365
- // Otherwise enables use: options(optionObject). Uses original object (the key)
2366
-
2367
- this._setOptions(options);
2368
-
2369
- return this;
2370
- },
2371
- _setOptions: function(options) {
2372
- var self = this;
2373
- $.each(options, function(key, value) { // This supports the 2 level depth that the options of jPlayer has. Would review if we ever need more depth.
2374
- self._setOption(key, value);
2375
- });
2376
-
2377
- return this;
2378
- },
2379
- _setOption: function(key, value) {
2380
- var self = this;
2381
-
2382
- // The ability to set options is limited at this time.
2383
-
2384
- switch(key) {
2385
- case "volume" :
2386
- this.volume(value);
2387
- break;
2388
- case "muted" :
2389
- this._muted(value);
2390
- break;
2391
- case "globalVolume" :
2392
- this.options[key] = value;
2393
- break;
2394
- case "cssSelectorAncestor" :
2395
- this._cssSelectorAncestor(value); // Set and refresh all associations for the new ancestor.
2396
- break;
2397
- case "cssSelector" :
2398
- $.each(value, function(fn, cssSel) {
2399
- self._cssSelector(fn, cssSel); // NB: The option is set inside this function, after further validity checks.
2400
- });
2401
- break;
2402
- case "playbackRate" :
2403
- this.options[key] = value = this._limitValue(value, this.options.minPlaybackRate, this.options.maxPlaybackRate);
2404
- if(this.html.used) {
2405
- this._html_setProperty('playbackRate', value);
2406
- }
2407
- this._updatePlaybackRate();
2408
- break;
2409
- case "defaultPlaybackRate" :
2410
- this.options[key] = value = this._limitValue(value, this.options.minPlaybackRate, this.options.maxPlaybackRate);
2411
- if(this.html.used) {
2412
- this._html_setProperty('defaultPlaybackRate', value);
2413
- }
2414
- this._updatePlaybackRate();
2415
- break;
2416
- case "minPlaybackRate" :
2417
- this.options[key] = value = this._limitValue(value, 0.1, this.options.maxPlaybackRate - 0.1);
2418
- this._updatePlaybackRate();
2419
- break;
2420
- case "maxPlaybackRate" :
2421
- this.options[key] = value = this._limitValue(value, this.options.minPlaybackRate + 0.1, 16);
2422
- this._updatePlaybackRate();
2423
- break;
2424
- case "fullScreen" :
2425
- if(this.options[key] !== value) { // if changed
2426
- var wkv = $.jPlayer.nativeFeatures.fullscreen.used.webkitVideo;
2427
- if(!wkv || wkv && !this.status.waitForPlay) {
2428
- if(!wkv) { // No sensible way to unset option on these devices.
2429
- this.options[key] = value;
2430
- }
2431
- if(value) {
2432
- this._requestFullscreen();
2433
- } else {
2434
- this._exitFullscreen();
2435
- }
2436
- if(!wkv) {
2437
- this._setOption("fullWindow", value);
2438
- }
2439
- }
2440
- }
2441
- break;
2442
- case "fullWindow" :
2443
- if(this.options[key] !== value) { // if changed
2444
- this._removeUiClass();
2445
- this.options[key] = value;
2446
- this._refreshSize();
2447
- }
2448
- break;
2449
- case "size" :
2450
- if(!this.options.fullWindow && this.options[key].cssClass !== value.cssClass) {
2451
- this._removeUiClass();
2452
- }
2453
- this.options[key] = $.extend({}, this.options[key], value); // store a merged copy of it, incase not all properties changed.
2454
- this._refreshSize();
2455
- break;
2456
- case "sizeFull" :
2457
- if(this.options.fullWindow && this.options[key].cssClass !== value.cssClass) {
2458
- this._removeUiClass();
2459
- }
2460
- this.options[key] = $.extend({}, this.options[key], value); // store a merged copy of it, incase not all properties changed.
2461
- this._refreshSize();
2462
- break;
2463
- case "autohide" :
2464
- this.options[key] = $.extend({}, this.options[key], value); // store a merged copy of it, incase not all properties changed.
2465
- this._updateAutohide();
2466
- break;
2467
- case "loop" :
2468
- this._loop(value);
2469
- break;
2470
- case "remainingDuration" :
2471
- this.options[key] = value;
2472
- this._updateInterface();
2473
- break;
2474
- case "toggleDuration" :
2475
- this.options[key] = value;
2476
- break;
2477
- case "nativeVideoControls" :
2478
- this.options[key] = $.extend({}, this.options[key], value); // store a merged copy of it, incase not all properties changed.
2479
- this.status.nativeVideoControls = this._uaBlocklist(this.options.nativeVideoControls);
2480
- this._restrictNativeVideoControls();
2481
- this._updateNativeVideoControls();
2482
- break;
2483
- case "noFullWindow" :
2484
- this.options[key] = $.extend({}, this.options[key], value); // store a merged copy of it, incase not all properties changed.
2485
- this.status.nativeVideoControls = this._uaBlocklist(this.options.nativeVideoControls); // Need to check again as noFullWindow can depend on this flag and the restrict() can override it.
2486
- this.status.noFullWindow = this._uaBlocklist(this.options.noFullWindow);
2487
- this._restrictNativeVideoControls();
2488
- this._updateButtons();
2489
- break;
2490
- case "noVolume" :
2491
- this.options[key] = $.extend({}, this.options[key], value); // store a merged copy of it, incase not all properties changed.
2492
- this.status.noVolume = this._uaBlocklist(this.options.noVolume);
2493
- this._updateVolume();
2494
- this._updateMute();
2495
- break;
2496
- case "emulateHtml" :
2497
- if(this.options[key] !== value) { // To avoid multiple event handlers being created, if true already.
2498
- this.options[key] = value;
2499
- if(value) {
2500
- this._emulateHtmlBridge();
2501
- } else {
2502
- this._destroyHtmlBridge();
2503
- }
2504
- }
2505
- break;
2506
- case "timeFormat" :
2507
- this.options[key] = $.extend({}, this.options[key], value); // store a merged copy of it, incase not all properties changed.
2508
- break;
2509
- case "keyEnabled" :
2510
- this.options[key] = value;
2511
- if(!value && this === $.jPlayer.focus) {
2512
- $.jPlayer.focus = null;
2513
- }
2514
- break;
2515
- case "keyBindings" :
2516
- this.options[key] = $.extend(true, {}, this.options[key], value); // store a merged DEEP copy of it, incase not all properties changed.
2517
- break;
2518
- case "audioFullScreen" :
2519
- this.options[key] = value;
2520
- break;
2521
- case "autoBlur" :
2522
- this.options[key] = value;
2523
- break;
2524
- }
2525
-
2526
- return this;
2527
- },
2528
- // End of: (Options code adapted from ui.widget.js)
2529
-
2530
- _refreshSize: function() {
2531
- this._setSize(); // update status and jPlayer element size
2532
- this._addUiClass(); // update the ui class
2533
- this._updateSize(); // update internal sizes
2534
- this._updateButtons();
2535
- this._updateAutohide();
2536
- this._trigger($.jPlayer.event.resize);
2537
- },
2538
- _setSize: function() {
2539
- // Determine the current size from the options
2540
- if(this.options.fullWindow) {
2541
- this.status.width = this.options.sizeFull.width;
2542
- this.status.height = this.options.sizeFull.height;
2543
- this.status.cssClass = this.options.sizeFull.cssClass;
2544
- } else {
2545
- this.status.width = this.options.size.width;
2546
- this.status.height = this.options.size.height;
2547
- this.status.cssClass = this.options.size.cssClass;
2548
- }
2549
-
2550
- // Set the size of the jPlayer area.
2551
- this.element.css({'width': this.status.width, 'height': this.status.height});
2552
- },
2553
- _addUiClass: function() {
2554
- if(this.ancestorJq.length) {
2555
- this.ancestorJq.addClass(this.status.cssClass);
2556
- }
2557
- },
2558
- _removeUiClass: function() {
2559
- if(this.ancestorJq.length) {
2560
- this.ancestorJq.removeClass(this.status.cssClass);
2561
- }
2562
- },
2563
- _updateSize: function() {
2564
- // The poster uses show/hide so can simply resize it.
2565
- this.internal.poster.jq.css({'width': this.status.width, 'height': this.status.height});
2566
-
2567
- // Video html or flash resized if necessary at this time, or if native video controls being used.
2568
- if(!this.status.waitForPlay && this.html.active && this.status.video || this.html.video.available && this.html.used && this.status.nativeVideoControls) {
2569
- this.internal.video.jq.css({'width': this.status.width, 'height': this.status.height});
2570
- }
2571
- else if(!this.status.waitForPlay && this.flash.active && this.status.video) {
2572
- this.internal.flash.jq.css({'width': this.status.width, 'height': this.status.height});
2573
- }
2574
- },
2575
- _updateAutohide: function() {
2576
- var self = this,
2577
- event = "mousemove.jPlayer",
2578
- namespace = ".jPlayerAutohide",
2579
- eventType = event + namespace,
2580
- handler = function() {
2581
- self.css.jq.gui.fadeIn(self.options.autohide.fadeIn, function() {
2582
- clearTimeout(self.internal.autohideId);
2583
- self.internal.autohideId = setTimeout( function() {
2584
- self.css.jq.gui.fadeOut(self.options.autohide.fadeOut);
2585
- }, self.options.autohide.hold);
2586
- });
2587
- };
2588
-
2589
- if(this.css.jq.gui.length) {
2590
-
2591
- // End animations first so that its callback is executed now.
2592
- // Otherwise an in progress fadeIn animation still has the callback to fadeOut again.
2593
- this.css.jq.gui.stop(true, true);
2594
-
2595
- // Removes the fadeOut operation from the fadeIn callback.
2596
- clearTimeout(this.internal.autohideId);
2597
-
2598
- this.element.unbind(namespace);
2599
- this.css.jq.gui.unbind(namespace);
2600
-
2601
- if(!this.status.nativeVideoControls) {
2602
- if(this.options.fullWindow && this.options.autohide.full || !this.options.fullWindow && this.options.autohide.restored) {
2603
- this.element.bind(eventType, handler);
2604
- this.css.jq.gui.bind(eventType, handler);
2605
- this.css.jq.gui.hide();
2606
- } else {
2607
- this.css.jq.gui.show();
2608
- }
2609
- } else {
2610
- this.css.jq.gui.hide();
2611
- }
2612
- }
2613
- },
2614
- fullScreen: function(event) {
2615
- var guiAction = typeof event === "object"; // Flags GUI click events so we know this was not a direct command, but an action taken by the user on the GUI.
2616
- if(guiAction && this.options.useStateClassSkin && this.options.fullScreen) {
2617
- this._setOption("fullScreen", false);
2618
- } else {
2619
- this._setOption("fullScreen", true);
2620
- }
2621
- },
2622
- restoreScreen: function() {
2623
- this._setOption("fullScreen", false);
2624
- },
2625
- _fullscreenAddEventListeners: function() {
2626
- var self = this,
2627
- fs = $.jPlayer.nativeFeatures.fullscreen;
2628
-
2629
- if(fs.api.fullscreenEnabled) {
2630
- if(fs.event.fullscreenchange) {
2631
- // Create the event handler function and store it for removal.
2632
- if(typeof this.internal.fullscreenchangeHandler !== 'function') {
2633
- this.internal.fullscreenchangeHandler = function() {
2634
- self._fullscreenchange();
2635
- };
2636
- }
2637
- document.addEventListener(fs.event.fullscreenchange, this.internal.fullscreenchangeHandler, false);
2638
- }
2639
- // No point creating handler for fullscreenerror.
2640
- // Either logic avoids fullscreen occurring (w3c/moz), or their is no event on the browser (webkit).
2641
- }
2642
- },
2643
- _fullscreenRemoveEventListeners: function() {
2644
- var fs = $.jPlayer.nativeFeatures.fullscreen;
2645
- if(this.internal.fullscreenchangeHandler) {
2646
- document.removeEventListener(fs.event.fullscreenchange, this.internal.fullscreenchangeHandler, false);
2647
- }
2648
- },
2649
- _fullscreenchange: function() {
2650
- // If nothing is fullscreen, then we cannot be in fullscreen mode.
2651
- if(this.options.fullScreen && !$.jPlayer.nativeFeatures.fullscreen.api.fullscreenElement()) {
2652
- this._setOption("fullScreen", false);
2653
- }
2654
- },
2655
- _requestFullscreen: function() {
2656
- // Either the container or the jPlayer div
2657
- var e = this.ancestorJq.length ? this.ancestorJq[0] : this.element[0],
2658
- fs = $.jPlayer.nativeFeatures.fullscreen;
2659
-
2660
- // This method needs the video element. For iOS and Android.
2661
- if(fs.used.webkitVideo) {
2662
- e = this.htmlElement.video;
2663
- }
2664
-
2665
- if(fs.api.fullscreenEnabled) {
2666
- fs.api.requestFullscreen(e);
2667
- }
2668
- },
2669
- _exitFullscreen: function() {
2670
-
2671
- var fs = $.jPlayer.nativeFeatures.fullscreen,
2672
- e;
2673
-
2674
- // This method needs the video element. For iOS and Android.
2675
- if(fs.used.webkitVideo) {
2676
- e = this.htmlElement.video;
2677
- }
2678
-
2679
- if(fs.api.fullscreenEnabled) {
2680
- fs.api.exitFullscreen(e);
2681
- }
2682
- },
2683
- _html_initMedia: function(media) {
2684
- // Remove any existing track elements
2685
- var $media = $(this.htmlElement.media).empty();
2686
-
2687
- // Create any track elements given with the media, as an Array of track Objects.
2688
- $.each(media.track || [], function(i,v) {
2689
- var track = document.createElement('track');
2690
- track.setAttribute("kind", v.kind ? v.kind : "");
2691
- track.setAttribute("src", v.src ? v.src : "");
2692
- track.setAttribute("srclang", v.srclang ? v.srclang : "");
2693
- track.setAttribute("label", v.label ? v.label : "");
2694
- if(v.def) {
2695
- track.setAttribute("default", v.def);
2696
- }
2697
- $media.append(track);
2698
- });
2699
-
2700
- this.htmlElement.media.src = this.status.src;
2701
-
2702
- if(this.options.preload !== 'none') {
2703
- this._html_load(); // See function for comments
2704
- }
2705
- this._trigger($.jPlayer.event.timeupdate); // The flash generates this event for its solution.
2706
- },
2707
- _html_setFormat: function(media) {
2708
- var self = this;
2709
- // Always finds a format due to checks in setMedia()
2710
- $.each(this.formats, function(priority, format) {
2711
- if(self.html.support[format] && media[format]) {
2712
- self.status.src = media[format];
2713
- self.status.format[format] = true;
2714
- self.status.formatType = format;
2715
- return false;
2716
- }
2717
- });
2718
- },
2719
- _html_setAudio: function(media) {
2720
- this._html_setFormat(media);
2721
- this.htmlElement.media = this.htmlElement.audio;
2722
- this._html_initMedia(media);
2723
- },
2724
- _html_setVideo: function(media) {
2725
- this._html_setFormat(media);
2726
- if(this.status.nativeVideoControls) {
2727
- this.htmlElement.video.poster = this._validString(media.poster) ? media.poster : "";
2728
- }
2729
- this.htmlElement.media = this.htmlElement.video;
2730
- this._html_initMedia(media);
2731
- },
2732
- _html_resetMedia: function() {
2733
- if(this.htmlElement.media) {
2734
- if(this.htmlElement.media.id === this.internal.video.id && !this.status.nativeVideoControls) {
2735
- this.internal.video.jq.css({'width':'0px', 'height':'0px'});
2736
- }
2737
- this.htmlElement.media.pause();
2738
- }
2739
- },
2740
- _html_clearMedia: function() {
2741
- if(this.htmlElement.media) {
2742
- this.htmlElement.media.src = "about:blank";
2743
- // The following load() is only required for Firefox 3.6 (PowerMacs).
2744
- // Recent HTMl5 browsers only require the src change. Due to changes in W3C spec and load() effect.
2745
- this.htmlElement.media.load(); // Stops an old, "in progress" download from continuing the download. Triggers the loadstart, error and emptied events, due to the empty src. Also an abort event if a download was in progress.
2746
- }
2747
- },
2748
- _html_load: function() {
2749
- // This function remains to allow the early HTML5 browsers to work, such as Firefox 3.6
2750
- // A change in the W3C spec for the media.load() command means that this is no longer necessary.
2751
- // This command should be removed and actually causes minor undesirable effects on some browsers. Such as loading the whole file and not only the metadata.
2752
- if(this.status.waitForLoad) {
2753
- this.status.waitForLoad = false;
2754
- this.htmlElement.media.load();
2755
- }
2756
- clearTimeout(this.internal.htmlDlyCmdId);
2757
- },
2758
- _html_play: function(time) {
2759
- var self = this,
2760
- media = this.htmlElement.media;
2761
-
2762
- this.androidFix.pause = false; // Cancel the pause fix.
2763
-
2764
- this._html_load(); // Loads if required and clears any delayed commands.
2765
-
2766
- // Setup the Android Fix.
2767
- if(this.androidFix.setMedia) {
2768
- this.androidFix.play = true;
2769
- this.androidFix.time = time;
2770
-
2771
- } else if(!isNaN(time)) {
2772
-
2773
- // Attempt to play it, since iOS has been ignoring commands
2774
- if(this.internal.cmdsIgnored) {
2775
- media.play();
2776
- }
2777
-
2778
- try {
2779
- // !media.seekable is for old HTML5 browsers, like Firefox 3.6.
2780
- // Checking seekable.length is important for iOS6 to work with setMedia().play(time)
2781
- if(!media.seekable || typeof media.seekable === "object" && media.seekable.length > 0) {
2782
- media.currentTime = time;
2783
- media.play();
2784
- } else {
2785
- throw 1;
2786
- }
2787
- } catch(err) {
2788
- this.internal.htmlDlyCmdId = setTimeout(function() {
2789
- self.play(time);
2790
- }, 250);
2791
- return; // Cancel execution and wait for the delayed command.
2792
- }
2793
- } else {
2794
- media.play();
2795
- }
2796
- this._html_checkWaitForPlay();
2797
- },
2798
- _html_pause: function(time) {
2799
- var self = this,
2800
- media = this.htmlElement.media;
2801
-
2802
- this.androidFix.play = false; // Cancel the play fix.
2803
-
2804
- if(time > 0) { // We do not want the stop() command, which does pause(0), causing a load operation.
2805
- this._html_load(); // Loads if required and clears any delayed commands.
2806
- } else {
2807
- clearTimeout(this.internal.htmlDlyCmdId);
2808
- }
2809
-
2810
- // Order of these commands is important for Safari (Win) and IE9. Pause then change currentTime.
2811
- media.pause();
2812
-
2813
- // Setup the Android Fix.
2814
- if(this.androidFix.setMedia) {
2815
- this.androidFix.pause = true;
2816
- this.androidFix.time = time;
2817
-
2818
- } else if(!isNaN(time)) {
2819
- try {
2820
- if(!media.seekable || typeof media.seekable === "object" && media.seekable.length > 0) {
2821
- media.currentTime = time;
2822
- } else {
2823
- throw 1;
2824
- }
2825
- } catch(err) {
2826
- this.internal.htmlDlyCmdId = setTimeout(function() {
2827
- self.pause(time);
2828
- }, 250);
2829
- return; // Cancel execution and wait for the delayed command.
2830
- }
2831
- }
2832
- if(time > 0) { // Avoids a setMedia() followed by stop() or pause(0) hiding the video play button.
2833
- this._html_checkWaitForPlay();
2834
- }
2835
- },
2836
- _html_playHead: function(percent) {
2837
- var self = this,
2838
- media = this.htmlElement.media;
2839
-
2840
- this._html_load(); // Loads if required and clears any delayed commands.
2841
-
2842
- // This playHead() method needs a refactor to apply the android fix.
2843
-
2844
- try {
2845
- if(typeof media.seekable === "object" && media.seekable.length > 0) {
2846
- media.currentTime = percent * media.seekable.end(media.seekable.length-1) / 100;
2847
- } else if(media.duration > 0 && !isNaN(media.duration)) {
2848
- media.currentTime = percent * media.duration / 100;
2849
- } else {
2850
- throw "e";
2851
- }
2852
- } catch(err) {
2853
- this.internal.htmlDlyCmdId = setTimeout(function() {
2854
- self.playHead(percent);
2855
- }, 250);
2856
- return; // Cancel execution and wait for the delayed command.
2857
- }
2858
- if(!this.status.waitForLoad) {
2859
- this._html_checkWaitForPlay();
2860
- }
2861
- },
2862
- _html_checkWaitForPlay: function() {
2863
- if(this.status.waitForPlay) {
2864
- this.status.waitForPlay = false;
2865
- if(this.css.jq.videoPlay.length) {
2866
- this.css.jq.videoPlay.hide();
2867
- }
2868
- if(this.status.video) {
2869
- this.internal.poster.jq.hide();
2870
- this.internal.video.jq.css({'width': this.status.width, 'height': this.status.height});
2871
- }
2872
- }
2873
- },
2874
- _html_setProperty: function(property, value) {
2875
- if(this.html.audio.available) {
2876
- this.htmlElement.audio[property] = value;
2877
- }
2878
- if(this.html.video.available) {
2879
- this.htmlElement.video[property] = value;
2880
- }
2881
- },
2882
- _flash_setAudio: function(media) {
2883
- var self = this;
2884
- try {
2885
- // Always finds a format due to checks in setMedia()
2886
- $.each(this.formats, function(priority, format) {
2887
- if(self.flash.support[format] && media[format]) {
2888
- switch (format) {
2889
- case "m4a" :
2890
- case "fla" :
2891
- self._getMovie().fl_setAudio_m4a(media[format]);
2892
- break;
2893
- case "mp3" :
2894
- self._getMovie().fl_setAudio_mp3(media[format]);
2895
- break;
2896
- case "rtmpa":
2897
- self._getMovie().fl_setAudio_rtmp(media[format]);
2898
- break;
2899
- }
2900
- self.status.src = media[format];
2901
- self.status.format[format] = true;
2902
- self.status.formatType = format;
2903
- return false;
2904
- }
2905
- });
2906
-
2907
- if(this.options.preload === 'auto') {
2908
- this._flash_load();
2909
- this.status.waitForLoad = false;
2910
- }
2911
- } catch(err) { this._flashError(err); }
2912
- },
2913
- _flash_setVideo: function(media) {
2914
- var self = this;
2915
- try {
2916
- // Always finds a format due to checks in setMedia()
2917
- $.each(this.formats, function(priority, format) {
2918
- if(self.flash.support[format] && media[format]) {
2919
- switch (format) {
2920
- case "m4v" :
2921
- case "flv" :
2922
- self._getMovie().fl_setVideo_m4v(media[format]);
2923
- break;
2924
- case "rtmpv":
2925
- self._getMovie().fl_setVideo_rtmp(media[format]);
2926
- break;
2927
- }
2928
- self.status.src = media[format];
2929
- self.status.format[format] = true;
2930
- self.status.formatType = format;
2931
- return false;
2932
- }
2933
- });
2934
-
2935
- if(this.options.preload === 'auto') {
2936
- this._flash_load();
2937
- this.status.waitForLoad = false;
2938
- }
2939
- } catch(err) { this._flashError(err); }
2940
- },
2941
- _flash_resetMedia: function() {
2942
- this.internal.flash.jq.css({'width':'0px', 'height':'0px'}); // Must do via CSS as setting attr() to zero causes a jQuery error in IE.
2943
- this._flash_pause(NaN);
2944
- },
2945
- _flash_clearMedia: function() {
2946
- try {
2947
- this._getMovie().fl_clearMedia();
2948
- } catch(err) { this._flashError(err); }
2949
- },
2950
- _flash_load: function() {
2951
- try {
2952
- this._getMovie().fl_load();
2953
- } catch(err) { this._flashError(err); }
2954
- this.status.waitForLoad = false;
2955
- },
2956
- _flash_play: function(time) {
2957
- try {
2958
- this._getMovie().fl_play(time);
2959
- } catch(err) { this._flashError(err); }
2960
- this.status.waitForLoad = false;
2961
- this._flash_checkWaitForPlay();
2962
- },
2963
- _flash_pause: function(time) {
2964
- try {
2965
- this._getMovie().fl_pause(time);
2966
- } catch(err) { this._flashError(err); }
2967
- if(time > 0) { // Avoids a setMedia() followed by stop() or pause(0) hiding the video play button.
2968
- this.status.waitForLoad = false;
2969
- this._flash_checkWaitForPlay();
2970
- }
2971
- },
2972
- _flash_playHead: function(p) {
2973
- try {
2974
- this._getMovie().fl_play_head(p);
2975
- } catch(err) { this._flashError(err); }
2976
- if(!this.status.waitForLoad) {
2977
- this._flash_checkWaitForPlay();
2978
- }
2979
- },
2980
- _flash_checkWaitForPlay: function() {
2981
- if(this.status.waitForPlay) {
2982
- this.status.waitForPlay = false;
2983
- if(this.css.jq.videoPlay.length) {
2984
- this.css.jq.videoPlay.hide();
2985
- }
2986
- if(this.status.video) {
2987
- this.internal.poster.jq.hide();
2988
- this.internal.flash.jq.css({'width': this.status.width, 'height': this.status.height});
2989
- }
2990
- }
2991
- },
2992
- _flash_volume: function(v) {
2993
- try {
2994
- this._getMovie().fl_volume(v);
2995
- } catch(err) { this._flashError(err); }
2996
- },
2997
- _flash_mute: function(m) {
2998
- try {
2999
- this._getMovie().fl_mute(m);
3000
- } catch(err) { this._flashError(err); }
3001
- },
3002
- _getMovie: function() {
3003
- return document[this.internal.flash.id];
3004
- },
3005
- _getFlashPluginVersion: function() {
3006
-
3007
- // _getFlashPluginVersion() code influenced by:
3008
- // - FlashReplace 1.01: http://code.google.com/p/flashreplace/
3009
- // - SWFObject 2.2: http://code.google.com/p/swfobject/
3010
-
3011
- var version = 0,
3012
- flash;
3013
- if(window.ActiveXObject) {
3014
- try {
3015
- flash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
3016
- if (flash) { // flash will return null when ActiveX is disabled
3017
- var v = flash.GetVariable("$version");
3018
- if(v) {
3019
- v = v.split(" ")[1].split(",");
3020
- version = parseInt(v[0], 10) + "." + parseInt(v[1], 10);
3021
- }
3022
- }
3023
- } catch(e) {}
3024
- }
3025
- else if(navigator.plugins && navigator.mimeTypes.length > 0) {
3026
- flash = navigator.plugins["Shockwave Flash"];
3027
- if(flash) {
3028
- version = navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/, "$1");
3029
- }
3030
- }
3031
- return version * 1; // Converts to a number
3032
- },
3033
- _checkForFlash: function (version) {
3034
- var flashOk = false;
3035
- if(this._getFlashPluginVersion() >= version) {
3036
- flashOk = true;
3037
- }
3038
- return flashOk;
3039
- },
3040
- _validString: function(url) {
3041
- return (url && typeof url === "string"); // Empty strings return false
3042
- },
3043
- _limitValue: function(value, min, max) {
3044
- return (value < min) ? min : ((value > max) ? max : value);
3045
- },
3046
- _urlNotSetError: function(context) {
3047
- this._error( {
3048
- type: $.jPlayer.error.URL_NOT_SET,
3049
- context: context,
3050
- message: $.jPlayer.errorMsg.URL_NOT_SET,
3051
- hint: $.jPlayer.errorHint.URL_NOT_SET
3052
- });
3053
- },
3054
- _flashError: function(error) {
3055
- var errorType;
3056
- if(!this.internal.ready) {
3057
- errorType = "FLASH";
3058
- } else {
3059
- errorType = "FLASH_DISABLED";
3060
- }
3061
- this._error( {
3062
- type: $.jPlayer.error[errorType],
3063
- context: this.internal.flash.swf,
3064
- message: $.jPlayer.errorMsg[errorType] + error.message,
3065
- hint: $.jPlayer.errorHint[errorType]
3066
- });
3067
- // Allow the audio player to recover if display:none and then shown again, or with position:fixed on Firefox.
3068
- // This really only affects audio in a media player, as an audio player could easily move the jPlayer element away from such issues.
3069
- this.internal.flash.jq.css({'width':'1px', 'height':'1px'});
3070
- },
3071
- _error: function(error) {
3072
- this._trigger($.jPlayer.event.error, error);
3073
- if(this.options.errorAlerts) {
3074
- this._alert("Error!" + (error.message ? "\n" + error.message : "") + (error.hint ? "\n" + error.hint : "") + "\nContext: " + error.context);
3075
- }
3076
- },
3077
- _warning: function(warning) {
3078
- this._trigger($.jPlayer.event.warning, undefined, warning);
3079
- if(this.options.warningAlerts) {
3080
- this._alert("Warning!" + (warning.message ? "\n" + warning.message : "") + (warning.hint ? "\n" + warning.hint : "") + "\nContext: " + warning.context);
3081
- }
3082
- },
3083
- _alert: function(message) {
3084
- var msg = "jPlayer " + this.version.script + " : id='" + this.internal.self.id +"' : " + message;
3085
- if(!this.options.consoleAlerts) {
3086
- alert(msg);
3087
- } else if(window.console && window.console.log) {
3088
- window.console.log(msg);
3089
- }
3090
- },
3091
- _emulateHtmlBridge: function() {
3092
- var self = this;
3093
-
3094
- // Emulate methods on jPlayer's DOM element.
3095
- $.each( $.jPlayer.emulateMethods.split(/\s+/g), function(i, name) {
3096
- self.internal.domNode[name] = function(arg) {
3097
- self[name](arg);
3098
- };
3099
-
3100
- });
3101
-
3102
- // Bubble jPlayer events to its DOM element.
3103
- $.each($.jPlayer.event, function(eventName,eventType) {
3104
- var nativeEvent = true;
3105
- $.each( $.jPlayer.reservedEvent.split(/\s+/g), function(i, name) {
3106
- if(name === eventName) {
3107
- nativeEvent = false;
3108
- return false;
3109
- }
3110
- });
3111
- if(nativeEvent) {
3112
- self.element.bind(eventType + ".jPlayer.jPlayerHtml", function() { // With .jPlayer & .jPlayerHtml namespaces.
3113
- self._emulateHtmlUpdate();
3114
- var domEvent = document.createEvent("Event");
3115
- domEvent.initEvent(eventName, false, true);
3116
- self.internal.domNode.dispatchEvent(domEvent);
3117
- });
3118
- }
3119
- // The error event would require a special case
3120
- });
3121
-
3122
- // IE9 has a readyState property on all elements. The document should have it, but all (except media) elements inherit it in IE9. This conflicts with Popcorn, which polls the readyState.
3123
- },
3124
- _emulateHtmlUpdate: function() {
3125
- var self = this;
3126
-
3127
- $.each( $.jPlayer.emulateStatus.split(/\s+/g), function(i, name) {
3128
- self.internal.domNode[name] = self.status[name];
3129
- });
3130
- $.each( $.jPlayer.emulateOptions.split(/\s+/g), function(i, name) {
3131
- self.internal.domNode[name] = self.options[name];
3132
- });
3133
- },
3134
- _destroyHtmlBridge: function() {
3135
- var self = this;
3136
-
3137
- // Bridge event handlers are also removed by destroy() through .jPlayer namespace.
3138
- this.element.unbind(".jPlayerHtml"); // Remove all event handlers created by the jPlayer bridge. So you can change the emulateHtml option.
3139
-
3140
- // Remove the methods and properties
3141
- var emulated = $.jPlayer.emulateMethods + " " + $.jPlayer.emulateStatus + " " + $.jPlayer.emulateOptions;
3142
- $.each( emulated.split(/\s+/g), function(i, name) {
3143
- delete self.internal.domNode[name];
3144
- });
3145
- }
3146
- };
3147
-
3148
- $.jPlayer.error = {
3149
- FLASH: "e_flash",
3150
- FLASH_DISABLED: "e_flash_disabled",
3151
- NO_SOLUTION: "e_no_solution",
3152
- NO_SUPPORT: "e_no_support",
3153
- URL: "e_url",
3154
- URL_NOT_SET: "e_url_not_set",
3155
- VERSION: "e_version"
3156
- };
3157
-
3158
- $.jPlayer.errorMsg = {
3159
- FLASH: "jPlayer's Flash fallback is not configured correctly, or a command was issued before the jPlayer Ready event. Details: ", // Used in: _flashError()
3160
- FLASH_DISABLED: "jPlayer's Flash fallback has been disabled by the browser due to the CSS rules you have used. Details: ", // Used in: _flashError()
3161
- NO_SOLUTION: "No solution can be found by jPlayer in this browser. Neither HTML nor Flash can be used.", // Used in: _init()
3162
- NO_SUPPORT: "It is not possible to play any media format provided in setMedia() on this browser using your current options.", // Used in: setMedia()
3163
- URL: "Media URL could not be loaded.", // Used in: jPlayerFlashEvent() and _addHtmlEventListeners()
3164
- URL_NOT_SET: "Attempt to issue media playback commands, while no media url is set.", // Used in: load(), play(), pause(), stop() and playHead()
3165
- VERSION: "jPlayer " + $.jPlayer.prototype.version.script + " needs Jplayer.swf version " + $.jPlayer.prototype.version.needFlash + " but found " // Used in: jPlayerReady()
3166
- };
3167
-
3168
- $.jPlayer.errorHint = {
3169
- FLASH: "Check your swfPath option and that Jplayer.swf is there.",
3170
- FLASH_DISABLED: "Check that you have not display:none; the jPlayer entity or any ancestor.",
3171
- NO_SOLUTION: "Review the jPlayer options: support and supplied.",
3172
- NO_SUPPORT: "Video or audio formats defined in the supplied option are missing.",
3173
- URL: "Check media URL is valid.",
3174
- URL_NOT_SET: "Use setMedia() to set the media URL.",
3175
- VERSION: "Update jPlayer files."
3176
- };
3177
-
3178
- $.jPlayer.warning = {
3179
- CSS_SELECTOR_COUNT: "e_css_selector_count",
3180
- CSS_SELECTOR_METHOD: "e_css_selector_method",
3181
- CSS_SELECTOR_STRING: "e_css_selector_string",
3182
- OPTION_KEY: "e_option_key"
3183
- };
3184
-
3185
- $.jPlayer.warningMsg = {
3186
- CSS_SELECTOR_COUNT: "The number of css selectors found did not equal one: ",
3187
- CSS_SELECTOR_METHOD: "The methodName given in jPlayer('cssSelector') is not a valid jPlayer method.",
3188
- CSS_SELECTOR_STRING: "The methodCssSelector given in jPlayer('cssSelector') is not a String or is empty.",
3189
- OPTION_KEY: "The option requested in jPlayer('option') is undefined."
3190
- };
3191
-
3192
- $.jPlayer.warningHint = {
3193
- CSS_SELECTOR_COUNT: "Check your css selector and the ancestor.",
3194
- CSS_SELECTOR_METHOD: "Check your method name.",
3195
- CSS_SELECTOR_STRING: "Check your css selector is a string.",
3196
- OPTION_KEY: "Check your option name."
3197
- };
3198
  }));
1
+ /*
2
+ * jPlayer Plugin for jQuery JavaScript Library
3
+ * http://www.jplayer.org
4
+ *
5
+ * Copyright (c) 2009 - 2014 Happyworm Ltd
6
+ * Licensed under the MIT license.
7
+ * http://opensource.org/licenses/MIT
8
+ *
9
+ * Author: Mark J Panaghiston
10
+ * Version: 2.7.1
11
+ * Date: 19th September 2014
12
+ */
13
+
14
+ /* Code verified using http://www.jshint.com/ */
15
+ /*jshint asi:false, bitwise:false, boss:false, browser:true, curly:true, debug:false, eqeqeq:true, eqnull:false, evil:false, forin:false, immed:false, jquery:true, laxbreak:false, newcap:true, noarg:true, noempty:true, nonew:true, onevar:false, passfail:false, plusplus:false, regexp:false, undef:true, sub:false, strict:false, white:false, smarttabs:true */
16
+ /*global define:false, ActiveXObject:false, alert:false */
17
+
18
+ /* Support for Zepto 1.0 compiled with optional data module.
19
+ * For AMD support, you will need to manually switch the 2 lines in the code below.
20
+ * Search terms: "jQuery Switch" and "Zepto Switch"
21
+ */
22
+
23
+ (function (root, factory) {
24
+ if (typeof define === 'function' && define.amd) {
25
+ // AMD. Register as an anonymous module.
26
+ define(['jquery'], factory); // jQuery Switch
27
+ // define(['zepto'], factory); // Zepto Switch
28
+ } else {
29
+ // Browser globals
30
+ if(root.jQuery) { // Use jQuery if available
31
+ factory(root.jQuery);
32
+ } else { // Otherwise, use Zepto
33
+ factory(root.Zepto);
34
+ }
35
+ }
36
+ }(this, function ($, undefined) {
37
+
38
+ // Adapted from jquery.ui.widget.js (1.8.7): $.widget.bridge - Tweaked $.data(this,XYZ) to $(this).data(XYZ) for Zepto
39
+ $.fn.jPlayer = function( options ) {
40
+ var name = "jPlayer";
41
+ var isMethodCall = typeof options === "string",
42
+ args = Array.prototype.slice.call( arguments, 1 ),
43
+ returnValue = this;
44
+
45
+ // allow multiple hashes to be passed on init
46
+ options = !isMethodCall && args.length ?
47
+ $.extend.apply( null, [ true, options ].concat(args) ) :
48
+ options;
49
+
50
+ // prevent calls to internal methods
51
+ if ( isMethodCall && options.charAt( 0 ) === "_" ) {
52
+ return returnValue;
53
+ }
54
+
55
+ if ( isMethodCall ) {
56
+ this.each(function() {
57
+ var instance = $(this).data( name ),
58
+ methodValue = instance && $.isFunction( instance[options] ) ?
59
+ instance[ options ].apply( instance, args ) :
60
+ instance;
61
+ if ( methodValue !== instance && methodValue !== undefined ) {
62
+ returnValue = methodValue;
63
+ return false;
64
+ }
65
+ });
66
+ } else {
67
+ this.each(function() {
68
+ var instance = $(this).data( name );
69
+ if ( instance ) {
70
+ // instance.option( options || {} )._init(); // Orig jquery.ui.widget.js code: Not recommend for jPlayer. ie., Applying new options to an existing instance (via the jPlayer constructor) and performing the _init(). The _init() is what concerns me. It would leave a lot of event handlers acting on jPlayer instance and the interface.
71
+ instance.option( options || {} ); // The new constructor only changes the options. Changing options only has basic support atm.
72
+ } else {
73
+ $(this).data( name, new $.jPlayer( options, this ) );
74
+ }
75
+ });
76
+ }
77
+
78
+ return returnValue;
79
+ };
80
+
81
+ $.jPlayer = function( options, element ) {
82
+ // allow instantiation without initializing for simple inheritance
83
+ if ( arguments.length ) {
84
+ this.element = $(element);
85
+ this.options = $.extend(true, {},
86
+ this.options,
87
+ options
88
+ );
89
+ var self = this;
90
+ this.element.bind( "remove.jPlayer", function() {
91
+ self.destroy();
92
+ });
93
+ this._init();
94
+ }
95
+ };
96
+ // End of: (Adapted from jquery.ui.widget.js (1.8.7))
97
+
98
+ // Zepto is missing one of the animation methods.
99
+ if(typeof $.fn.stop !== 'function') {
100
+ $.fn.stop = function() {};
101
+ }
102
+
103
+ // Emulated HTML5 methods and properties
104
+ $.jPlayer.emulateMethods = "load play pause";
105
+ $.jPlayer.emulateStatus = "src readyState networkState currentTime duration paused ended playbackRate";
106
+ $.jPlayer.emulateOptions = "muted volume";
107
+
108
+ // Reserved event names generated by jPlayer that are not part of the HTML5 Media element spec
109
+ $.jPlayer.reservedEvent = "ready flashreset resize repeat error warning";
110
+
111
+ // Events generated by jPlayer
112
+ $.jPlayer.event = {};
113
+ $.each(
114
+ [
115
+ 'ready',
116
+ 'setmedia', // Fires when the media is set
117
+ 'flashreset', // Similar to the ready event if the Flash solution is set to display:none and then shown again or if it's reloaded for another reason by the browser. For example, using CSS position:fixed on Firefox for the full screen feature.
118
+ 'resize', // Occurs when the size changes through a full/restore screen operation or if the size/sizeFull options are changed.
119
+ 'repeat', // Occurs when the repeat status changes. Usually through clicks on the repeat button of the interface.
120
+ 'click', // Occurs when the user clicks on one of the following: poster image, html video, flash video.
121
+ 'error', // Event error code in event.jPlayer.error.type. See $.jPlayer.error
122
+ 'warning', // Event warning code in event.jPlayer.warning.type. See $.jPlayer.warning
123
+
124
+ // Other events match HTML5 spec.
125
+ 'loadstart',
126
+ 'progress',
127
+ 'suspend',
128
+ 'abort',
129
+ 'emptied',
130
+ 'stalled',
131
+ 'play',
132
+ 'pause',
133
+ 'loadedmetadata',
134
+ 'loadeddata',
135
+ 'waiting',
136
+ 'playing',
137
+ 'canplay',
138
+ 'canplaythrough',
139
+ 'seeking',
140
+ 'seeked',
141
+ 'timeupdate',
142
+ 'ended',
143
+ 'ratechange',
144
+ 'durationchange',
145
+ 'volumechange'
146
+ ],
147
+ function() {
148
+ $.jPlayer.event[ this ] = 'jPlayer_' + this;
149
+ }
150
+ );
151
+
152
+ $.jPlayer.htmlEvent = [ // These HTML events are bubbled through to the jPlayer event, without any internal action.
153
+ "loadstart",
154
+ // "progress", // jPlayer uses internally before bubbling.
155
+ // "suspend", // jPlayer uses internally before bubbling.
156
+ "abort",
157
+ // "error", // jPlayer uses internally before bubbling.
158
+ "emptied",
159
+ "stalled",
160
+ // "play", // jPlayer uses internally before bubbling.
161
+ // "pause", // jPlayer uses internally before bubbling.
162
+ "loadedmetadata",
163
+ // "loadeddata", // jPlayer uses internally before bubbling.
164
+ // "waiting", // jPlayer uses internally before bubbling.
165
+ // "playing", // jPlayer uses internally before bubbling.
166
+ "canplay",
167
+ "canplaythrough"
168
+ // "seeking", // jPlayer uses internally before bubbling.
169
+ // "seeked", // jPlayer uses internally before bubbling.
170
+ // "timeupdate", // jPlayer uses internally before bubbling.
171
+ // "ended", // jPlayer uses internally before bubbling.
172
+ // "ratechange" // jPlayer uses internally before bubbling.
173
+ // "durationchange" // jPlayer uses internally before bubbling.
174
+ // "volumechange" // jPlayer uses internally before bubbling.
175
+ ];
176
+
177
+ $.jPlayer.pause = function() {
178
+ $.each($.jPlayer.prototype.instances, function(i, element) {
179
+ if(element.data("jPlayer").status.srcSet) { // Check that media is set otherwise would cause error event.
180
+ element.jPlayer("pause");
181
+ }
182
+ });
183
+ };
184
+
185
+ // Default for jPlayer option.timeFormat
186
+ $.jPlayer.timeFormat = {
187
+ showHour: false,
188
+ showMin: true,
189
+ showSec: true,
190
+ padHour: false,
191
+ padMin: true,
192
+ padSec: true,
193
+ sepHour: ":",
194
+ sepMin: ":",
195
+ sepSec: ""
196
+ };
197
+ var ConvertTime = function() {
198
+ this.init();
199
+ };
200
+ ConvertTime.prototype = {
201
+ init: function() {
202
+ this.options = {
203
+ timeFormat: $.jPlayer.timeFormat
204
+ };
205
+ },
206
+ time: function(s) { // function used on jPlayer.prototype._convertTime to enable per instance options.
207
+ s = (s && typeof s === 'number') ? s : 0;
208
+
209
+ var myTime = new Date(s * 1000),
210
+ hour = myTime.getUTCHours(),
211
+ min = this.options.timeFormat.showHour ? myTime.getUTCMinutes() : myTime.getUTCMinutes() + hour * 60,
212
+ sec = this.options.timeFormat.showMin ? myTime.getUTCSeconds() : myTime.getUTCSeconds() + min * 60,
213
+ strHour = (this.options.timeFormat.padHour && hour < 10) ? "0" + hour : hour,
214
+ strMin = (this.options.timeFormat.padMin && min < 10) ? "0" + min : min,
215
+ strSec = (this.options.timeFormat.padSec && sec < 10) ? "0" + sec : sec,
216
+ strTime = "";
217
+
218
+ strTime += this.options.timeFormat.showHour ? strHour + this.options.timeFormat.sepHour : "";
219
+ strTime += this.options.timeFormat.showMin ? strMin + this.options.timeFormat.sepMin : "";
220
+ strTime += this.options.timeFormat.showSec ? strSec + this.options.timeFormat.sepSec : "";
221
+
222
+ return strTime;
223
+ }
224
+ };
225
+ var myConvertTime = new ConvertTime();
226
+ $.jPlayer.convertTime = function(s) {
227
+ return myConvertTime.time(s);
228
+ };
229
+
230
+ // Adapting jQuery 1.4.4 code for jQuery.browser. Required since jQuery 1.3.2 does not detect Chrome as webkit.
231
+ $.jPlayer.uaBrowser = function( userAgent ) {
232
+ var ua = userAgent.toLowerCase();
233
+
234
+ // Useragent RegExp
235
+ var rwebkit = /(webkit)[ \/]([\w.]+)/;
236
+ var ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/;
237
+ var rmsie = /(msie) ([\w.]+)/;
238
+ var rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/;
239
+
240
+ var match = rwebkit.exec( ua ) ||
241
+ ropera.exec( ua ) ||
242
+ rmsie.exec( ua ) ||
243
+ ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) ||
244
+ [];
245
+
246
+ return { browser: match[1] || "", version: match[2] || "0" };
247
+ };
248
+
249
+ // Platform sniffer for detecting mobile devices
250
+ $.jPlayer.uaPlatform = function( userAgent ) {
251
+ var ua = userAgent.toLowerCase();
252
+
253
+ // Useragent RegExp
254
+ var rplatform = /(ipad|iphone|ipod|android|blackberry|playbook|windows ce|webos)/;
255
+ var rtablet = /(ipad|playbook)/;
256
+ var randroid = /(android)/;
257
+ var rmobile = /(mobile)/;
258
+
259
+ var platform = rplatform.exec( ua ) || [];
260
+ var tablet = rtablet.exec( ua ) ||
261
+ !rmobile.exec( ua ) && randroid.exec( ua ) ||
262
+ [];
263
+
264
+ if(platform[1]) {
265
+ platform[1] = platform[1].replace(/\s/g, "_"); // Change whitespace to underscore. Enables dot notation.
266
+ }
267
+
268
+ return { platform: platform[1] || "", tablet: tablet[1] || "" };
269
+ };
270
+
271
+ $.jPlayer.browser = {
272
+ };
273
+ $.jPlayer.platform = {
274
+ };
275
+
276
+ var browserMatch = $.jPlayer.uaBrowser(navigator.userAgent);
277
+ if ( browserMatch.browser ) {
278
+ $.jPlayer.browser[ browserMatch.browser ] = true;
279
+ $.jPlayer.browser.version = browserMatch.version;
280
+ }
281
+ var platformMatch = $.jPlayer.uaPlatform(navigator.userAgent);
282
+ if ( platformMatch.platform ) {
283
+ $.jPlayer.platform[ platformMatch.platform ] = true;
284
+ $.jPlayer.platform.mobile = !platformMatch.tablet;
285
+ $.jPlayer.platform.tablet = !!platformMatch.tablet;
286
+ }
287
+
288
+ // Internet Explorer (IE) Browser Document Mode Sniffer. Based on code at:
289
+ // http://msdn.microsoft.com/en-us/library/cc288325%28v=vs.85%29.aspx#GetMode
290
+ $.jPlayer.getDocMode = function() {
291
+ var docMode;
292
+ if ($.jPlayer.browser.msie) {
293
+ if (document.documentMode) { // IE8 or later
294
+ docMode = document.documentMode;
295
+ } else { // IE 5-7
296
+ docMode = 5; // Assume quirks mode unless proven otherwise
297
+ if (document.compatMode) {
298
+ if (document.compatMode === "CSS1Compat") {
299
+ docMode = 7; // standards mode
300
+ }
301
+ }
302
+ }
303
+ }
304
+ return docMode;
305
+ };
306
+ $.jPlayer.browser.documentMode = $.jPlayer.getDocMode();
307
+
308
+ $.jPlayer.nativeFeatures = {
309
+ init: function() {
310
+
311
+ /* Fullscreen function naming influenced by W3C naming.
312
+ * No support for: Mozilla Proposal: https://wiki.mozilla.org/Gecko:FullScreenAPI
313
+ */
314
+
315
+ var d = document,
316
+ v = d.createElement('video'),
317
+ spec = {
318
+ // http://www.w3.org/TR/fullscreen/
319
+ w3c: [
320
+ 'fullscreenEnabled',
321
+ 'fullscreenElement',
322
+ 'requestFullscreen',
323
+ 'exitFullscreen',
324
+ 'fullscreenchange',
325
+ 'fullscreenerror'
326
+ ],
327
+ // https://developer.mozilla.org/en-US/docs/DOM/Using_fullscreen_mode
328
+ moz: [
329
+ 'mozFullScreenEnabled',
330
+ 'mozFullScreenElement',
331
+ 'mozRequestFullScreen',
332
+ 'mozCancelFullScreen',
333
+ 'mozfullscreenchange',
334
+ 'mozfullscreenerror'
335
+ ],
336
+ // http://developer.apple.com/library/safari/#documentation/WebKit/Reference/ElementClassRef/Element/Element.html
337
+ // http://developer.apple.com/library/safari/#documentation/UserExperience/Reference/DocumentAdditionsReference/DocumentAdditions/DocumentAdditions.html
338
+ webkit: [
339
+ '',
340
+ 'webkitCurrentFullScreenElement',
341
+ 'webkitRequestFullScreen',
342
+ 'webkitCancelFullScreen',
343
+ 'webkitfullscreenchange',
344
+ ''
345
+ ],
346
+ // http://developer.apple.com/library/safari/#documentation/AudioVideo/Reference/HTMLVideoElementClassReference/HTMLVideoElement/HTMLVideoElement.html
347
+ // https://developer.apple.com/library/safari/samplecode/HTML5VideoEventFlow/Listings/events_js.html#//apple_ref/doc/uid/DTS40010085-events_js-DontLinkElementID_5
348
+ // Events: 'webkitbeginfullscreen' and 'webkitendfullscreen'
349
+ webkitVideo: [
350
+ 'webkitSupportsFullscreen',
351
+ 'webkitDisplayingFullscreen',
352
+ 'webkitEnterFullscreen',
353
+ 'webkitExitFullscreen',
354
+ '',
355
+ ''
356
+ ]
357
+ },
358
+ specOrder = [
359
+ 'w3c',
360
+ 'moz',
361
+ 'webkit',
362
+ 'webkitVideo'
363
+ ],
364
+ fs, i, il;
365
+
366
+ this.fullscreen = fs = {
367
+ support: {
368
+ w3c: !!d[spec.w3c[0]],
369
+ moz: !!d[spec.moz[0]],
370
+ webkit: typeof d[spec.webkit[3]] === 'function',
371
+ webkitVideo: typeof v[spec.webkitVideo[2]] === 'function'
372
+ },
373
+ used: {}
374
+ };
375
+
376
+ // Store the name of the spec being used and as a handy boolean.
377
+ for(i = 0, il = specOrder.length; i < il; i++) {
378
+ var n = specOrder[i];
379
+ if(fs.support[n]) {
380
+ fs.spec = n;
381
+ fs.used[n] = true;
382
+ break;
383
+ }
384
+ }
385
+
386
+ if(fs.spec) {
387
+ var s = spec[fs.spec];
388
+ fs.api = {
389
+ fullscreenEnabled: true,
390
+ fullscreenElement: function(elem) {
391
+ elem = elem ? elem : d; // Video element required for webkitVideo
392
+ return elem[s[1]];
393
+ },
394
+ requestFullscreen: function(elem) {
395
+ return elem[s[2]]();
396
+ },
397
+ exitFullscreen: function(elem) {
398
+ elem = elem ? elem : d; // Video element required for webkitVideo
399
+ return elem[s[3]]();
400
+ }
401
+ };
402
+ fs.event = {
403
+ fullscreenchange: s[4],
404
+ fullscreenerror: s[5]
405
+ };
406
+ } else {
407
+ fs.api = {
408
+ fullscreenEnabled: false,
409
+ fullscreenElement: function() {
410
+ return null;
411
+ },
412
+ requestFullscreen: function() {},
413
+ exitFullscreen: function() {}
414
+ };
415
+ fs.event = {};
416
+ }
417
+ }
418
+ };
419
+ $.jPlayer.nativeFeatures.init();
420
+
421
+ // The keyboard control system.
422
+
423
+ // The current jPlayer instance in focus.
424
+ $.jPlayer.focus = null;
425
+
426
+ // (fallback) The list of element node names to ignore with key controls.
427
+ $.jPlayer.keyIgnoreElementNames = "A INPUT TEXTAREA SELECT BUTTON";
428
+
429
+ // The function that deals with key presses.
430
+ var keyBindings = function(event) {
431
+
432
+ var f = $.jPlayer.focus,
433
+ pageFocus = document.activeElement,
434
+ ignoreKey;
435
+
436
+ // A jPlayer instance must be in focus. ie., keyEnabled and the last one played.
437
+ if(f) {
438
+ // What generated the key press?
439
+ if(typeof pageFocus !== 'undefined') {
440
+ if(pageFocus !== null && pageFocus.nodeName.toUpperCase() !== "BODY") {
441
+ ignoreKey = true;
442
+ }
443
+ } else {
444
+ // Fallback for no document.activeElement support.
445
+ $.each( $.jPlayer.keyIgnoreElementNames.split(/\s+/g), function(i, name) {
446
+ // The strings should already be uppercase.
447
+ if(event.target.nodeName.toUpperCase() === name.toUpperCase()) {
448
+ ignoreKey = true;
449
+ return false; // exit each.
450
+ }
451
+ });
452
+ }
453
+ if(!ignoreKey) {
454
+ // See if the key pressed matches any of the bindings.
455
+ $.each(f.options.keyBindings, function(action, binding) {
456
+ // The binding could be a null when the default has been disabled. ie., 1st clause in if()
457
+ if(binding && event.which === binding.key && $.isFunction(binding.fn)) {
458
+ event.preventDefault(); // Key being used by jPlayer, so prevent default operation.
459
+ binding.fn(f);
460
+ return false; // exit each.
461
+ }
462
+ });
463
+ }
464
+ }
465
+ };
466
+
467
+ $.jPlayer.keys = function(en) {
468
+ var event = "keydown.jPlayer";
469
+ // Remove any binding, just in case enabled more than once.
470
+ $(document.documentElement).unbind(event);
471
+ if(en) {
472
+ $(document.documentElement).bind(event, keyBindings);
473
+ }
474
+ };
475
+
476
+ // Enable the global key control handler ready for any jPlayer instance with the keyEnabled option enabled.
477
+ $.jPlayer.keys(true);
478
+
479
+ $.jPlayer.prototype = {
480
+ count: 0, // Static Variable: Change it via prototype.
481
+ version: { // Static Object
482
+ script: "2.7.1",
483
+ needFlash: "2.7.0",
484
+ flash: "unknown"
485
+ },
486
+ options: { // Instanced in $.jPlayer() constructor
487
+ swfPath: "js", // Path to Jplayer.swf. Can be relative, absolute or server root relative.
488
+ solution: "html, flash", // Valid solutions: html, flash. Order defines priority. 1st is highest,
489
+ supplied: "mp3", // Defines which formats jPlayer will try and support and the priority by the order. 1st is highest,
490
+ preload: 'metadata', // HTML5 Spec values: none, metadata, auto.
491
+ volume: 0.8, // The volume. Number 0 to 1.
492
+ muted: false,
493
+ remainingDuration: false, // When true, the remaining time is shown in the duration GUI element.
494
+ toggleDuration: false, // When true, clicks on the duration toggle between the duration and remaining display.
495
+ captureDuration: true, // When true, clicks on the duration are captured and no longer propagate up the DOM.
496
+ playbackRate: 1,
497
+ defaultPlaybackRate: 1,
498
+ minPlaybackRate: 0.5,
499
+ maxPlaybackRate: 4,
500
+ wmode: "opaque", // Valid wmode: window, transparent, opaque, direct, gpu.
501
+ backgroundColor: "#000000", // To define the jPlayer div and Flash background color.
502
+ cssSelectorAncestor: "#jp_container_1",
503
+ cssSelector: { // * denotes properties that should only be required when video media type required. _cssSelector() would require changes to enable splitting these into Audio and Video defaults.
504
+ videoPlay: ".jp-video-play", // *
505
+ play: ".jp-play",
506
+ pause: ".jp-pause",
507
+ stop: ".jp-stop",
508
+ seekBar: ".jp-seek-bar",
509
+ playBar: ".jp-play-bar",
510
+ mute: ".jp-mute",
511
+ unmute: ".jp-unmute",
512
+ volumeBar: ".jp-volume-bar",
513
+ volumeBarValue: ".jp-volume-bar-value",
514
+ volumeMax: ".jp-volume-max",
515
+ playbackRateBar: ".jp-playback-rate-bar",
516
+ playbackRateBarValue: ".jp-playback-rate-bar-value",
517
+ currentTime: ".jp-current-time",
518
+ duration: ".jp-duration",
519
+ title: ".jp-title",
520
+ fullScreen: ".jp-full-screen", // *
521
+ restoreScreen: ".jp-restore-screen", // *
522
+ repeat: ".jp-repeat",
523
+ repeatOff: ".jp-repeat-off",
524
+ gui: ".jp-gui", // The interface used with autohide feature.
525
+ noSolution: ".jp-no-solution" // For error feedback when jPlayer cannot find a solution.
526
+ },
527
+ stateClass: { // Classes added to the cssSelectorAncestor to indicate the state.
528
+ playing: "jp-state-playing",
529
+ seeking: "jp-state-seeking",
530
+ muted: "jp-state-muted",
531
+ looped: "jp-state-looped",
532
+ fullScreen: "jp-state-full-screen"
533
+ },
534
+ useStateClassSkin: false, // A state class skin relies on the state classes to change the visual appearance. The single control toggles the effect, for example: play then pause, mute then unmute.
535
+ autoBlur: true, // GUI control handlers will drop focus after clicks.
536
+ smoothPlayBar: false, // Smooths the play bar transitions, which affects clicks and short media with big changes per second.
537
+ fullScreen: false, // Native Full Screen
538
+ fullWindow: false,
539
+ autohide: {
540
+ restored: false, // Controls the interface autohide feature.
541
+ full: true, // Controls the interface autohide feature.
542
+ fadeIn: 200, // Milliseconds. The period of the fadeIn anim.
543
+ fadeOut: 600, // Milliseconds. The period of the fadeOut anim.
544
+ hold: 1000 // Milliseconds. The period of the pause before autohide beings.
545
+ },
546
+ loop: false,
547
+ repeat: function(event) { // The default jPlayer repeat event handler
548
+ if(event.jPlayer.options.loop) {
549
+ $(this).unbind(".jPlayerRepeat").bind($.jPlayer.event.ended + ".jPlayer.jPlayerRepeat", function() {
550
+ $(this).jPlayer("play");
551
+ });
552
+ } else {
553
+ $(this).unbind(".jPlayerRepeat");
554
+ }
555
+ },
556
+ nativeVideoControls: {
557
+ // Works well on standard browsers.
558
+ // Phone and tablet browsers can have problems with the controls disappearing.
559
+ },
560
+ noFullWindow: {
561
+ msie: /msie [0-6]\./,
562
+ ipad: /ipad.*?os [0-4]\./,
563
+ iphone: /iphone/,
564
+ ipod: /ipod/,
565
+ android_pad: /android [0-3]\.(?!.*?mobile)/,
566
+ android_phone: /android.*?mobile/,
567
+ blackberry: /blackberry/,
568
+ windows_ce: /windows ce/,
569
+ iemobile: /iemobile/,
570
+ webos: /webos/
571
+ },
572
+ noVolume: {
573
+ ipad: /ipad/,
574
+ iphone: /iphone/,
575
+ ipod: /ipod/,
576
+ android_pad: /android(?!.*?mobile)/,
577
+ android_phone: /android.*?mobile/,
578
+ blackberry: /blackberry/,
579
+ windows_ce: /windows ce/,
580
+ iemobile: /iemobile/,
581
+ webos: /webos/,
582
+ playbook: /playbook/
583
+ },
584
+ timeFormat: {
585
+ // Specific time format for this instance. The supported options are defined in $.jPlayer.timeFormat
586
+ // For the undefined options we use the default from $.jPlayer.timeFormat
587
+ },
588
+ keyEnabled: false, // Enables keyboard controls.
589
+ audioFullScreen: false, // Enables keyboard controls to enter full screen with audio media.
590
+ keyBindings: { // The key control object, defining the key codes and the functions to execute.
591
+ // The parameter, f = $.jPlayer.focus, will be checked truethy before attempting to call any of these functions.
592
+ // Properties may be added to this object, in key/fn pairs, to enable other key controls. EG, for the playlist add-on.
593
+ play: {
594
+ key: 32, // space
595
+ fn: function(f) {
596
+ if(f.status.paused) {
597
+ f.play();
598
+ } else {
599
+ f.pause();
600
+ }
601
+ }
602
+ },
603
+ fullScreen: {
604
+ key: 13, // enter
605
+ fn: function(f) {
606
+ if(f.status.video || f.options.audioFullScreen) {
607
+ f._setOption("fullScreen", !f.options.fullScreen);
608
+ }
609
+ }
610
+ },
611
+ muted: {
612
+ key: 8, // backspace
613
+ fn: function(f) {
614
+ f._muted(!f.options.muted);
615
+ }
616
+ },
617
+ volumeUp: {
618
+ key: 38, // UP
619
+ fn: function(f) {
620
+ f.volume(f.options.volume + 0.1);
621
+ }
622
+ },
623
+ volumeDown: {
624
+ key: 40, // DOWN
625
+ fn: function(f) {
626
+ f.volume(f.options.volume - 0.1);
627
+ }
628
+ }
629
+ },
630
+ verticalVolume: false, // Calculate volume from the bottom of the volume bar. Default is from the left. Also volume affects either width or height.
631
+ verticalPlaybackRate: false,
632
+ globalVolume: false, // Set to make volume and muted changes affect all jPlayer instances with this option enabled
633
+ idPrefix: "jp", // Prefix for the ids of html elements created by jPlayer. For flash, this must not include characters: . - + * / \
634
+ noConflict: "jQuery",
635
+ emulateHtml: false, // Emulates the HTML5 Media element on the jPlayer element.
636
+ consoleAlerts: true, // Alerts are sent to the console.log() instead of alert().
637
+ errorAlerts: false,
638
+ warningAlerts: false
639
+ },
640
+ optionsAudio: {
641
+ size: {
642
+ width: "0px",
643
+ height: "0px",
644
+ cssClass: ""
645
+ },
646
+ sizeFull: {
647
+ width: "0px",
648
+ height: "0px",
649
+ cssClass: ""
650
+ }
651
+ },
652
+ optionsVideo: {
653
+ size: {
654
+ width: "480px",
655
+ height: "270px",
656
+ cssClass: "jp-video-270p"
657
+ },
658
+ sizeFull: {
659
+ width: "100%",
660
+ height: "100%",
661
+ cssClass: "jp-video-full"
662
+ }
663
+ },
664
+ instances: {}, // Static Object
665
+ status: { // Instanced in _init()
666
+ src: "",
667
+ media: {},
668
+ paused: true,
669
+ format: {},
670
+ formatType: "",
671
+ waitForPlay: true, // Same as waitForLoad except in case where preloading.
672
+ waitForLoad: true,
673
+ srcSet: false,
674
+ video: false, // True if playing a video
675
+ seekPercent: 0,
676
+ currentPercentRelative: 0,
677
+ currentPercentAbsolute: 0,
678
+ currentTime: 0,
679
+ duration: 0,
680
+ remaining: 0,
681
+ videoWidth: 0, // Intrinsic width of the video in pixels.
682
+ videoHeight: 0, // Intrinsic height of the video in pixels.
683
+ readyState: 0,
684
+ networkState: 0,
685
+ playbackRate: 1, // Warning - Now both an option and a status property
686
+ ended: 0
687
+
688
+ /* Persistant status properties created dynamically at _init():
689
+ width
690
+ height
691
+ cssClass
692
+ nativeVideoControls
693
+ noFullWindow
694
+ noVolume
695
+ playbackRateEnabled // Warning - Technically, we can have both Flash and HTML, so this might not be correct if the Flash is active. That is a niche case.
696
+ */
697
+ },
698
+
699
+ internal: { // Instanced in _init()
700
+ ready: false
701
+ // instance: undefined
702
+ // domNode: undefined
703
+ // htmlDlyCmdId: undefined
704
+ // autohideId: undefined
705
+ // cmdsIgnored
706
+ },
707
+ solution: { // Static Object: Defines the solutions built in jPlayer.
708
+ html: true,
709
+ flash: true
710
+ },
711
+ // 'MPEG-4 support' : canPlayType('video/mp4; codecs="mp4v.20.8"')
712
+ format: { // Static Object
713
+ mp3: {
714
+ codec: 'audio/mpeg',
715
+ flashCanPlay: true,
716
+ media: 'audio'
717
+ },
718
+ m4a: { // AAC / MP4
719
+ codec: 'audio/mp4; codecs="mp4a.40.2"',
720
+ flashCanPlay: true,
721
+ media: 'audio'
722
+ },
723
+ m3u8a: { // AAC / MP4 / Apple HLS
724
+ codec: 'application/vnd.apple.mpegurl; codecs="mp4a.40.2"',
725
+ flashCanPlay: false,
726
+ media: 'audio'
727
+ },
728
+ m3ua: { // M3U
729
+ codec: 'audio/mpegurl',
730
+ flashCanPlay: false,
731
+ media: 'audio'
732
+ },
733
+ oga: { // OGG
734
+ codec: 'audio/ogg; codecs="vorbis, opus"',
735
+ flashCanPlay: false,
736
+ media: 'audio'
737
+ },
738
+ flac: { // FLAC
739
+ codec: 'audio/x-flac',
740
+ flashCanPlay: false,
741
+ media: 'audio'
742
+ },
743
+ wav: { // PCM
744
+ codec: 'audio/wav; codecs="1"',
745
+ flashCanPlay: false,
746
+ media: 'audio'
747
+ },
748
+ webma: { // WEBM
749
+ codec: 'audio/webm; codecs="vorbis"',
750
+ flashCanPlay: false,
751
+ media: 'audio'
752
+ },
753
+ fla: { // FLV / F4A
754
+ codec: 'audio/x-flv',
755
+ flashCanPlay: true,
756
+ media: 'audio'
757
+ },
758
+ rtmpa: { // RTMP AUDIO
759
+ codec: 'audio/rtmp; codecs="rtmp"',
760
+ flashCanPlay: true,
761
+ media: 'audio'
762
+ },
763
+ m4v: { // H.264 / MP4
764
+ codec: 'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',
765
+ flashCanPlay: true,
766
+ media: 'video'
767
+ },
768
+ m3u8v: { // H.264 / AAC / MP4 / Apple HLS
769
+ codec: 'application/vnd.apple.mpegurl; codecs="avc1.42E01E, mp4a.40.2"',
770
+ flashCanPlay: false,
771
+ media: 'video'
772
+ },
773
+ m3uv: { // M3U
774
+ codec: 'audio/mpegurl',
775
+ flashCanPlay: false,
776
+ media: 'video'
777
+ },
778
+ ogv: { // OGG
779
+ codec: 'video/ogg; codecs="theora, vorbis"',
780
+ flashCanPlay: false,
781
+ media: 'video'
782
+ },
783
+ webmv: { // WEBM
784
+ codec: 'video/webm; codecs="vorbis, vp8"',
785
+ flashCanPlay: false,
786
+ media: 'video'
787
+ },
788
+ flv: { // FLV / F4V
789
+ codec: 'video/x-flv',
790
+ flashCanPlay: true,
791
+ media: 'video'
792
+ },
793
+ rtmpv: { // RTMP VIDEO
794
+ codec: 'video/rtmp; codecs="rtmp"',
795
+ flashCanPlay: true,
796
+ media: 'video'
797
+ }
798
+ },
799
+ _init: function() {
800
+ var self = this;
801
+
802
+ this.element.empty();
803
+
804
+ this.status = $.extend({}, this.status); // Copy static to unique instance.
805
+ this.internal = $.extend({}, this.internal); // Copy static to unique instance.
806
+
807
+ // Initialize the time format
808
+ this.options.timeFormat = $.extend({}, $.jPlayer.timeFormat, this.options.timeFormat);
809
+
810
+ // On iOS, assume commands will be ignored before user initiates them.
811
+ this.internal.cmdsIgnored = $.jPlayer.platform.ipad || $.jPlayer.platform.iphone || $.jPlayer.platform.ipod;
812
+
813
+ this.internal.domNode = this.element.get(0);
814
+
815
+ // Add key bindings focus to 1st jPlayer instanced with key control enabled.
816
+ if(this.options.keyEnabled && !$.jPlayer.focus) {
817
+ $.jPlayer.focus = this;
818
+ }
819
+
820
+ // A fix for Android where older (2.3) and even some 4.x devices fail to work when changing the *audio* SRC and then playing immediately.
821
+ this.androidFix = {
822
+ setMedia: false, // True when media set
823
+ play: false, // True when a progress event will instruct the media to play
824
+ pause: false, // True when a progress event will instruct the media to pause at a time.
825
+ time: NaN // The play(time) parameter
826
+ };
827
+ if($.jPlayer.platform.android) {
828
+ this.options.preload = this.options.preload !== 'auto' ? 'metadata' : 'auto'; // Default to metadata, but allow auto.
829
+ }
830
+
831
+ this.formats = []; // Array based on supplied string option. Order defines priority.
832
+ this.solutions = []; // Array based on solution string option. Order defines priority.
833
+ this.require = {}; // Which media types are required: video, audio.
834
+
835
+ this.htmlElement = {}; // DOM elements created by jPlayer
836
+ this.html = {}; // In _init()'s this.desired code and setmedia(): Accessed via this[solution], where solution from this.solutions array.
837
+ this.html.audio = {};
838
+ this.html.video = {};
839
+ this.flash = {}; // In _init()'s this.desired code and setmedia(): Accessed via this[solution], where solution from this.solutions array.
840
+
841
+ this.css = {};
842
+ this.css.cs = {}; // Holds the css selector strings
843
+ this.css.jq = {}; // Holds jQuery selectors. ie., $(css.cs.method)
844
+
845
+ this.ancestorJq = []; // Holds jQuery selector of cssSelectorAncestor. Init would use $() instead of [], but it is only 1.4+
846
+
847
+ this.options.volume = this._limitValue(this.options.volume, 0, 1); // Limit volume value's bounds.
848
+
849
+ // Create the formats array, with prority based on the order of the supplied formats string
850
+ $.each(this.options.supplied.toLowerCase().split(","), function(index1, value1) {
851
+ var format = value1.replace(/^\s+|\s+$/g, ""); //trim
852
+ if(self.format[format]) { // Check format is valid.
853
+ var dupFound = false;
854
+ $.each(self.formats, function(index2, value2) { // Check for duplicates
855
+ if(format === value2) {
856
+ dupFound = true;
857
+ return false;
858
+ }
859
+ });
860
+ if(!dupFound) {
861
+ self.formats.push(format);
862
+ }
863
+ }
864
+ });
865
+
866
+ // Create the solutions array, with prority based on the order of the solution string
867
+ $.each(this.options.solution.toLowerCase().split(","), function(index1, value1) {
868
+ var solution = value1.replace(/^\s+|\s+$/g, ""); //trim
869
+ if(self.solution[solution]) { // Check solution is valid.
870
+ var dupFound = false;
871
+ $.each(self.solutions, function(index2, value2) { // Check for duplicates
872
+ if(solution === value2) {
873
+ dupFound = true;
874
+ return false;
875
+ }
876
+ });
877
+ if(!dupFound) {
878
+ self.solutions.push(solution);
879
+ }
880
+ }
881
+ });
882
+
883
+ this.internal.instance = "jp_" + this.count;
884
+ this.instances[this.internal.instance] = this.element;
885
+
886
+ // Check the jPlayer div has an id and create one if required. Important for Flash to know the unique id for comms.
887
+ if(!this.element.attr("id")) {
888
+ this.element.attr("id", this.options.idPrefix + "_jplayer_" + this.count);
889
+ }
890
+
891
+ this.internal.self = $.extend({}, {
892
+ id: this.element.attr("id"),
893
+ jq: this.element
894
+ });
895
+ this.internal.audio = $.extend({}, {
896
+ id: this.options.idPrefix + "_audio_" + this.count,
897
+ jq: undefined
898
+ });
899
+ this.internal.video = $.extend({}, {
900
+ id: this.options.idPrefix + "_video_" + this.count,
901
+ jq: undefined
902
+ });
903
+ this.internal.flash = $.extend({}, {
904
+ id: this.options.idPrefix + "_flash_" + this.count,
905
+ jq: undefined,
906
+ swf: this.options.swfPath + (this.options.swfPath.toLowerCase().slice(-4) !== ".swf" ? (this.options.swfPath && this.options.swfPath.slice(-1) !== "/" ? "/" : "") + "Jplayer.swf" : "")
907
+ });
908
+ this.internal.poster = $.extend({}, {
909
+ id: this.options.idPrefix + "_poster_" + this.count,
910
+ jq: undefined
911
+ });
912
+
913
+ // Register listeners defined in the constructor
914
+ $.each($.jPlayer.event, function(eventName,eventType) {
915
+ if(self.options[eventName] !== undefined) {
916
+ self.element.bind(eventType + ".jPlayer", self.options[eventName]); // With .jPlayer namespace.
917
+ self.options[eventName] = undefined; // Destroy the handler pointer copy on the options. Reason, events can be added/removed in other ways so this could be obsolete and misleading.
918
+ }
919
+ });
920
+
921
+ // Determine if we require solutions for audio, video or both media types.
922
+ this.require.audio = false;
923
+ this.require.video = false;
924
+ $.each(this.formats, function(priority, format) {
925
+ self.require[self.format[format].media] = true;
926
+ });
927
+
928
+ // Now required types are known, finish the options default settings.
929
+ if(this.require.video) {
930
+ this.options = $.extend(true, {},
931
+ this.optionsVideo,
932
+ this.options
933
+ );
934
+ } else {
935
+ this.options = $.extend(true, {},
936
+ this.optionsAudio,
937
+ this.options
938
+ );
939
+ }
940
+ this._setSize(); // update status and jPlayer element size
941
+
942
+ // Determine the status for Blocklisted options.
943
+ this.status.nativeVideoControls = this._uaBlocklist(this.options.nativeVideoControls);
944
+ this.status.noFullWindow = this._uaBlocklist(this.options.noFullWindow);
945
+ this.status.noVolume = this._uaBlocklist(this.options.noVolume);
946
+
947
+ // Create event handlers if native fullscreen is supported
948
+ if($.jPlayer.nativeFeatures.fullscreen.api.fullscreenEnabled) {
949
+ this._fullscreenAddEventListeners();
950
+ }
951
+
952
+ // The native controls are only for video and are disabled when audio is also used.
953
+ this._restrictNativeVideoControls();
954
+
955
+ // Create the poster image.
956
+ this.htmlElement.poster = document.createElement('img');
957
+ this.htmlElement.poster.id = this.internal.poster.id;
958
+ this.htmlElement.poster.onload = function() { // Note that this did not work on Firefox 3.6: poster.addEventListener("onload", function() {}, false); Did not investigate x-browser.
959
+ if(!self.status.video || self.status.waitForPlay) {
960
+ self.internal.poster.jq.show();
961
+ }
962
+ };
963
+ this.element.append(this.htmlElement.poster);
964
+ this.internal.poster.jq = $("#" + this.internal.poster.id);
965
+ this.internal.poster.jq.css({'width': this.status.width, 'height': this.status.height});
966
+ this.internal.poster.jq.hide();
967
+ this.internal.poster.jq.bind("click.jPlayer", function() {
968
+ self._trigger($.jPlayer.event.click);
969
+ });
970
+
971
+ // Generate the required media elements
972
+ this.html.audio.available = false;
973
+ if(this.require.audio) { // If a supplied format is audio
974
+ this.htmlElement.audio = document.createElement('audio');
975
+ this.htmlElement.audio.id = this.internal.audio.id;
976
+ this.html.audio.available = !!this.htmlElement.audio.canPlayType && this._testCanPlayType(this.htmlElement.audio); // Test is for IE9 on Win Server 2008.
977
+ }
978
+ this.html.video.available = false;
979
+ if(this.require.video) { // If a supplied format is video
980
+ this.htmlElement.video = document.createElement('video');
981
+ this.htmlElement.video.id = this.internal.video.id;
982
+ this.html.video.available = !!this.htmlElement.video.canPlayType && this._testCanPlayType(this.htmlElement.video); // Test is for IE9 on Win Server 2008.
983
+ }
984
+
985
+ this.flash.available = this._checkForFlash(10.1);
986
+
987
+ this.html.canPlay = {};
988
+ this.flash.canPlay = {};
989
+ $.each(this.formats, function(priority, format) {
990
+ self.html.canPlay[format] = self.html[self.format[format].media].available && "" !== self.htmlElement[self.format[format].media].canPlayType(self.format[format].codec);
991
+ self.flash.canPlay[format] = self.format[format].flashCanPlay && self.flash.available;
992
+ });
993
+ this.html.desired = false;
994
+ this.flash.desired = false;
995
+ $.each(this.solutions, function(solutionPriority, solution) {
996
+ if(solutionPriority === 0) {
997
+ self[solution].desired = true;
998
+ } else {
999
+ var audioCanPlay = false;
1000
+ var videoCanPlay = false;
1001
+ $.each(self.formats, function(formatPriority, format) {
1002
+ if(self[self.solutions[0]].canPlay[format]) { // The other solution can play
1003
+ if(self.format[format].media === 'video') {
1004
+ videoCanPlay = true;
1005
+ } else {
1006
+ audioCanPlay = true;
1007
+ }
1008
+ }
1009
+ });
1010
+ self[solution].desired = (self.require.audio && !audioCanPlay) || (self.require.video && !videoCanPlay);
1011
+ }
1012
+ });
1013
+ // This is what jPlayer will support, based on solution and supplied.
1014
+ this.html.support = {};
1015
+ this.flash.support = {};
1016
+ $.each(this.formats, function(priority, format) {
1017
+ self.html.support[format] = self.html.canPlay[format] && self.html.desired;
1018
+ self.flash.support[format] = self.flash.canPlay[format] && self.flash.desired;
1019
+ });
1020
+ // If jPlayer is supporting any format in a solution, then the solution is used.
1021
+ this.html.used = false;
1022
+ this.flash.used = false;
1023
+ $.each(this.solutions, function(solutionPriority, solution) {
1024
+ $.each(self.formats, function(formatPriority, format) {
1025
+ if(self[solution].support[format]) {
1026
+ self[solution].used = true;
1027
+ return false;
1028
+ }
1029
+ });
1030
+ });
1031
+
1032
+ // Init solution active state and the event gates to false.
1033
+ this._resetActive();
1034
+ this._resetGate();
1035
+
1036
+ // Set up the css selectors for the control and feedback entities.
1037
+ this._cssSelectorAncestor(this.options.cssSelectorAncestor);
1038
+
1039
+ // If neither html nor flash are being used by this browser, then media playback is not possible. Trigger an error event.
1040
+ if(!(this.html.used || this.flash.used)) {
1041
+ this._error( {
1042
+ type: $.jPlayer.error.NO_SOLUTION,
1043
+ context: "{solution:'" + this.options.solution + "', supplied:'" + this.options.supplied + "'}",
1044
+ message: $.jPlayer.errorMsg.NO_SOLUTION,
1045
+ hint: $.jPlayer.errorHint.NO_SOLUTION
1046
+ });
1047
+ if(this.css.jq.noSolution.length) {
1048
+ this.css.jq.noSolution.show();
1049
+ }
1050
+ } else {
1051
+ if(this.css.jq.noSolution.length) {
1052
+ this.css.jq.noSolution.hide();
1053
+ }
1054
+ }
1055
+
1056
+ // Add the flash solution if it is being used.
1057
+ if(this.flash.used) {
1058
+ var htmlObj,
1059
+ flashVars = 'jQuery=' + encodeURI(this.options.noConflict) + '&id=' + encodeURI(this.internal.self.id) + '&vol=' + this.options.volume + '&muted=' + this.options.muted;
1060
+
1061
+ // Code influenced by SWFObject 2.2: http://code.google.com/p/swfobject/
1062
+ // Non IE browsers have an initial Flash size of 1 by 1 otherwise the wmode affected the Flash ready event.
1063
+
1064
+ if($.jPlayer.browser.msie && (Number($.jPlayer.browser.version) < 9 || $.jPlayer.browser.documentMode < 9)) {
1065
+ var objStr = '<object id="' + this.internal.flash.id + '" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="0" height="0" tabindex="-1"></object>';
1066
+
1067
+ var paramStr = [
1068
+ '<param name="movie" value="' + this.internal.flash.swf + '" />',
1069
+ '<param name="FlashVars" value="' + flashVars + '" />',
1070
+ '<param name="allowScriptAccess" value="always" />',
1071
+ '<param name="bgcolor" value="' + this.options.backgroundColor + '" />',
1072
+ '<param name="wmode" value="' + this.options.wmode + '" />'
1073
+ ];
1074
+
1075
+ htmlObj = document.createElement(objStr);
1076
+ for(var i=0; i < paramStr.length; i++) {
1077
+ htmlObj.appendChild(document.createElement(paramStr[i]));
1078
+ }
1079
+ } else {
1080
+ var createParam = function(el, n, v) {
1081
+ var p = document.createElement("param");
1082
+ p.setAttribute("name", n);
1083
+ p.setAttribute("value", v);
1084
+ el.appendChild(p);
1085
+ };
1086
+
1087
+ htmlObj = document.createElement("object");
1088
+ htmlObj.setAttribute("id", this.internal.flash.id);
1089
+ htmlObj.setAttribute("name", this.internal.flash.id);
1090
+ htmlObj.setAttribute("data", this.internal.flash.swf);
1091
+ htmlObj.setAttribute("type", "application/x-shockwave-flash");
1092
+ htmlObj.setAttribute("width", "1"); // Non-zero
1093
+ htmlObj.setAttribute("height", "1"); // Non-zero
1094
+ htmlObj.setAttribute("tabindex", "-1");
1095
+ createParam(htmlObj, "flashvars", flashVars);
1096
+ createParam(htmlObj, "allowscriptaccess", "always");
1097
+ createParam(htmlObj, "bgcolor", this.options.backgroundColor);
1098
+ createParam(htmlObj, "wmode", this.options.wmode);
1099
+ }
1100
+
1101
+ this.element.append(htmlObj);
1102
+ this.internal.flash.jq = $(htmlObj);
1103
+ }
1104
+
1105
+ // Setup playbackRate ability before using _addHtmlEventListeners()
1106
+ if(this.html.used && !this.flash.used) { // If only HTML
1107
+ // Using the audio element capabilities for playbackRate. ie., Assuming video element is the same.
1108
+ this.status.playbackRateEnabled = this._testPlaybackRate('audio');
1109
+ } else {
1110
+ this.status.playbackRateEnabled = false;
1111
+ }
1112
+
1113
+ this._updatePlaybackRate();
1114
+
1115
+ // Add the HTML solution if being used.
1116
+ if(this.html.used) {
1117
+
1118
+ // The HTML Audio handlers
1119
+ if(this.html.audio.available) {
1120
+ this._addHtmlEventListeners(this.htmlElement.audio, this.html.audio);
1121
+ this.element.append(this.htmlElement.audio);
1122
+ this.internal.audio.jq = $("#" + this.internal.audio.id);
1123
+ }
1124
+
1125
+ // The HTML Video handlers
1126
+ if(this.html.video.available) {
1127
+ this._addHtmlEventListeners(this.htmlElement.video, this.html.video);
1128
+ this.element.append(this.htmlElement.video);
1129
+ this.internal.video.jq = $("#" + this.internal.video.id);
1130
+ if(this.status.nativeVideoControls) {
1131
+ this.internal.video.jq.css({'width': this.status.width, 'height': this.status.height});
1132
+ } else {
1133
+ this.internal.video.jq.css({'width':'0px', 'height':'0px'}); // Using size 0x0 since a .hide() causes issues in iOS
1134
+ }
1135
+ this.internal.video.jq.bind("click.jPlayer", function() {
1136
+ self._trigger($.jPlayer.event.click);
1137
+ });
1138
+ }
1139
+ }
1140
+
1141
+ // Create the bridge that emulates the HTML Media element on the jPlayer DIV
1142
+ if( this.options.emulateHtml ) {
1143
+ this._emulateHtmlBridge();
1144
+ }
1145
+
1146
+ if(this.html.used && !this.flash.used) { // If only HTML, then emulate flash ready() call after 100ms.
1147
+ setTimeout( function() {
1148
+ self.internal.ready = true;
1149
+ self.version.flash = "n/a";
1150
+ self._trigger($.jPlayer.event.repeat); // Trigger the repeat event so its handler can initialize itself with the loop option.
1151
+ self._trigger($.jPlayer.event.ready);
1152
+ }, 100);
1153
+ }
1154
+
1155
+ // Initialize the interface components with the options.
1156
+ this._updateNativeVideoControls();
1157
+ // The other controls are now setup in _cssSelectorAncestor()
1158
+ if(this.css.jq.videoPlay.length) {
1159
+ this.css.jq.videoPlay.hide();
1160
+ }
1161
+
1162
+ $.jPlayer.prototype.count++; // Change static variable via prototype.
1163
+ },
1164
+ destroy: function() {
1165
+ // MJP: The background change remains. Would need to store the original to restore it correctly.
1166
+ // MJP: The jPlayer element's size change remains.
1167
+
1168
+ // Clear the media to reset the GUI and stop any downloads. Streams on some browsers had persited. (Chrome)
1169
+ this.clearMedia();
1170
+ // Remove the size/sizeFull cssClass from the cssSelectorAncestor
1171
+ this._removeUiClass();
1172
+ // Remove the times from the GUI
1173
+ if(this.css.jq.currentTime.length) {
1174
+ this.css.jq.currentTime.text("");
1175
+ }
1176
+ if(this.css.jq.duration.length) {
1177
+ this.css.jq.duration.text("");
1178
+ }
1179
+ // Remove any bindings from the interface controls.
1180
+ $.each(this.css.jq, function(fn, jq) {
1181
+ // Check selector is valid before trying to execute method.
1182
+ if(jq.length) {
1183
+ jq.unbind(".jPlayer");
1184
+ }
1185
+ });
1186
+ // Remove the click handlers for $.jPlayer.event.click
1187
+ this.internal.poster.jq.unbind(".jPlayer");
1188
+ if(this.internal.video.jq) {
1189
+ this.internal.video.jq.unbind(".jPlayer");
1190
+ }
1191
+ // Remove the fullscreen event handlers
1192
+ this._fullscreenRemoveEventListeners();
1193
+ // Remove key bindings
1194
+ if(this === $.jPlayer.focus) {
1195
+ $.jPlayer.focus = null;
1196
+ }
1197
+ // Destroy the HTML bridge.
1198
+ if(this.options.emulateHtml) {
1199
+ this._destroyHtmlBridge();
1200
+ }
1201
+ this.element.removeData("jPlayer"); // Remove jPlayer data
1202
+ this.element.unbind(".jPlayer"); // Remove all event handlers created by the jPlayer constructor
1203
+ this.element.empty(); // Remove the inserted child elements
1204
+
1205
+ delete this.instances[this.internal.instance]; // Clear the instance on the static instance object
1206
+ },
1207
+ enable: function() { // Plan to implement
1208
+ // options.disabled = false
1209
+ },
1210
+ disable: function () { // Plan to implement
1211
+ // options.disabled = true
1212
+ },
1213
+ _testCanPlayType: function(elem) {
1214
+ // IE9 on Win Server 2008 did not implement canPlayType(), but it has the property.
1215
+ try {
1216
+ elem.canPlayType(this.format.mp3.codec); // The type is irrelevant.
1217
+ return true;
1218
+ } catch(err) {
1219
+ return false;
1220
+ }
1221
+ },
1222
+ _testPlaybackRate: function(type) {
1223
+ // type: String 'audio' or 'video'
1224
+ var el, rate = 0.5;
1225
+ type = typeof type === 'string' ? type : 'audio';
1226
+ el = document.createElement(type);
1227
+ // Wrapping in a try/catch, just in case older HTML5 browsers throw and error.
1228
+ try {
1229
+ if('playbackRate' in el) {
1230
+ el.playbackRate = rate;
1231
+ return el.playbackRate === rate;
1232
+ } else {
1233
+ return false;
1234
+ }
1235
+ } catch(err) {
1236
+ return false;
1237
+ }
1238
+ },
1239
+ _uaBlocklist: function(list) {
1240
+ // list : object with properties that are all regular expressions. Property names are irrelevant.
1241
+ // Returns true if the user agent is matched in list.
1242
+ var ua = navigator.userAgent.toLowerCase(),
1243
+ block = false;
1244
+
1245
+ $.each(list, function(p, re) {
1246
+ if(re && re.test(ua)) {
1247
+ block = true;
1248
+ return false; // exit $.each.
1249
+ }
1250
+ });
1251
+ return block;
1252
+ },
1253
+ _restrictNativeVideoControls: function() {
1254
+ // Fallback to noFullWindow when nativeVideoControls is true and audio media is being used. Affects when both media types are used.
1255
+ if(this.require.audio) {
1256
+ if(this.status.nativeVideoControls) {
1257
+ this.status.nativeVideoControls = false;
1258
+ this.status.noFullWindow = true;
1259
+ }
1260
+ }
1261
+ },
1262
+ _updateNativeVideoControls: function() {
1263
+ if(this.html.video.available && this.html.used) {
1264
+ // Turn the HTML Video controls on/off
1265
+ this.htmlElement.video.controls = this.status.nativeVideoControls;
1266
+ // Show/hide the jPlayer GUI.
1267
+ this._updateAutohide();
1268
+ // For when option changed. The poster image is not updated, as it is dealt with in setMedia(). Acceptable degradation since seriously doubt these options will change on the fly. Can again review later.
1269
+ if(this.status.nativeVideoControls && this.require.video) {
1270
+ this.internal.poster.jq.hide();
1271
+ this.internal.video.jq.css({'width': this.status.width, 'height': this.status.height});
1272
+ } else if(this.status.waitForPlay && this.status.video) {
1273
+ this.internal.poster.jq.show();
1274
+ this.internal.video.jq.css({'width': '0px', 'height': '0px'});
1275
+ }
1276
+ }
1277
+ },
1278
+ _addHtmlEventListeners: function(mediaElement, entity) {
1279
+ var self = this;
1280
+ mediaElement.preload = this.options.preload;
1281
+ mediaElement.muted = this.options.muted;
1282
+ mediaElement.volume = this.options.volume;
1283
+
1284
+ if(this.status.playbackRateEnabled) {
1285
+ mediaElement.defaultPlaybackRate = this.options.defaultPlaybackRate;
1286
+ mediaElement.playbackRate = this.options.playbackRate;
1287
+ }
1288
+
1289
+ // Create the event listeners
1290
+ // Only want the active entity to affect jPlayer and bubble events.
1291
+ // Using entity.gate so that object is referenced and gate property always current
1292
+
1293
+ mediaElement.addEventListener("progress", function() {
1294
+ if(entity.gate) {
1295
+ if(self.internal.cmdsIgnored && this.readyState > 0) { // Detect iOS executed the command
1296
+ self.internal.cmdsIgnored = false;
1297
+ }
1298
+ self._getHtmlStatus(mediaElement);
1299
+ self._updateInterface();
1300
+ self._trigger($.jPlayer.event.progress);
1301
+ }
1302
+ }, false);
1303
+ mediaElement.addEventListener("loadeddata", function() {
1304
+ if(entity.gate) {
1305
+ self.androidFix.setMedia = false; // Disable the fix after the first progress event.
1306
+ if(self.androidFix.play) { // Play Android audio - performing the fix.
1307
+ self.androidFix.play = false;
1308
+ self.play(self.androidFix.time);
1309
+ }
1310
+ if(self.androidFix.pause) { // Pause Android audio at time - performing the fix.
1311
+ self.androidFix.pause = false;
1312
+ self.pause(self.androidFix.time);
1313
+ }
1314
+ self._trigger($.jPlayer.event.loadeddata);
1315
+ }
1316
+ }, false);
1317
+ mediaElement.addEventListener("timeupdate", function() {
1318
+ if(entity.gate) {
1319
+ self._getHtmlStatus(mediaElement);
1320
+ self._updateInterface();
1321
+ self._trigger($.jPlayer.event.timeupdate);
1322
+ }
1323
+ }, false);
1324
+ mediaElement.addEventListener("durationchange", function() {
1325
+ if(entity.gate) {
1326
+ self._getHtmlStatus(mediaElement);
1327
+ self._updateInterface();
1328
+ self._trigger($.jPlayer.event.durationchange);
1329
+ }
1330
+ }, false);
1331
+ mediaElement.addEventListener("play", function() {
1332
+ if(entity.gate) {
1333
+ self._updateButtons(true);
1334
+ self._html_checkWaitForPlay(); // So the native controls update this variable and puts the hidden interface in the correct state. Affects toggling native controls.
1335
+ self._trigger($.jPlayer.event.play);
1336
+ }
1337
+ }, false);
1338
+ mediaElement.addEventListener("playing", function() {
1339
+ if(entity.gate) {
1340
+ self._updateButtons(true);
1341
+ self._seeked();
1342
+ self._trigger($.jPlayer.event.playing);
1343
+ }
1344
+ }, false);
1345
+ mediaElement.addEventListener("pause", function() {
1346
+ if(entity.gate) {
1347
+ self._updateButtons(false);
1348
+ self._trigger($.jPlayer.event.pause);
1349
+ }
1350
+ }, false);
1351
+ mediaElement.addEventListener("waiting", function() {
1352
+ if(entity.gate) {
1353
+ self._seeking();
1354
+ self._trigger($.jPlayer.event.waiting);
1355
+ }
1356
+ }, false);
1357
+ mediaElement.addEventListener("seeking", function() {
1358
+ if(entity.gate) {
1359
+ self._seeking();
1360
+ self._trigger($.jPlayer.event.seeking);
1361
+ }
1362
+ }, false);
1363
+ mediaElement.addEventListener("seeked", function() {
1364
+ if(entity.gate) {
1365
+ self._seeked();
1366
+ self._trigger($.jPlayer.event.seeked);
1367
+ }
1368
+ }, false);
1369
+ mediaElement.addEventListener("volumechange", function() {
1370
+ if(entity.gate) {
1371
+ // Read the values back from the element as the Blackberry PlayBook shares the volume with the physical buttons master volume control.
1372
+ // However, when tested 6th July 2011, those buttons do not generate an event. The physical play/pause button does though.
1373
+ self.options.volume = mediaElement.volume;
1374
+ self.options.muted = mediaElement.muted;
1375
+ self._updateMute();
1376
+ self._updateVolume();
1377
+ self._trigger($.jPlayer.event.volumechange);
1378
+ }
1379
+ }, false);
1380
+ mediaElement.addEventListener("ratechange", function() {
1381
+ if(entity.gate) {
1382
+ self.options.defaultPlaybackRate = mediaElement.defaultPlaybackRate;
1383
+ self.options.playbackRate = mediaElement.playbackRate;
1384
+ self._updatePlaybackRate();
1385
+ self._trigger($.jPlayer.event.ratechange);
1386
+ }
1387
+ }, false);
1388
+ mediaElement.addEventListener("suspend", function() { // Seems to be the only way of capturing that the iOS4 browser did not actually play the media from the page code. ie., It needs a user gesture.
1389
+ if(entity.gate) {
1390
+ self._seeked();
1391
+ self._trigger($.jPlayer.event.suspend);
1392
+ }
1393
+ }, false);
1394
+ mediaElement.addEventListener("ended", function() {
1395
+ if(entity.gate) {
1396
+ // Order of the next few commands are important. Change the time and then pause.
1397
+ // Solves a bug in Firefox, where issuing pause 1st causes the media to play from the start. ie., The pause is ignored.
1398
+ if(!$.jPlayer.browser.webkit) { // Chrome crashes if you do this in conjunction with a setMedia command in an ended event handler. ie., The playlist demo.
1399
+ self.htmlElement.media.currentTime = 0; // Safari does not care about this command. ie., It works with or without this line. (Both Safari and Chrome are Webkit.)
1400
+ }
1401
+ self.htmlElement.media.pause(); // Pause otherwise a click on the progress bar will play from that point, when it shouldn't, since it stopped playback.
1402
+ self._updateButtons(false);
1403
+ self._getHtmlStatus(mediaElement, true); // With override true. Otherwise Chrome leaves progress at full.
1404
+ self._updateInterface();
1405
+ self._trigger($.jPlayer.event.ended);
1406
+ }
1407
+ }, false);
1408
+ mediaElement.addEventListener("error", function() {
1409
+ if(entity.gate) {
1410
+ self._updateButtons(false);
1411
+ self._seeked();
1412
+ if(self.status.srcSet) { // Deals with case of clearMedia() causing an error event.
1413
+ clearTimeout(self.internal.htmlDlyCmdId); // Clears any delayed commands used in the HTML solution.
1414
+ self.status.waitForLoad = true; // Allows the load operation to try again.
1415
+ self.status.waitForPlay = true; // Reset since a play was captured.
1416
+ if(self.status.video && !self.status.nativeVideoControls) {
1417
+ self.internal.video.jq.css({'width':'0px', 'height':'0px'});
1418
+ }
1419
+ if(self._validString(self.status.media.poster) && !self.status.nativeVideoControls) {
1420
+ self.internal.poster.jq.show();
1421
+ }
1422
+ if(self.css.jq.videoPlay.length) {
1423
+ self.css.jq.videoPlay.show();
1424
+ }
1425
+ self._error( {
1426
+ type: $.jPlayer.error.URL,
1427
+ context: self.status.src, // this.src shows absolute urls. Want context to show the url given.
1428
+ message: $.jPlayer.errorMsg.URL,
1429
+ hint: $.jPlayer.errorHint.URL
1430
+ });
1431
+ }
1432
+ }
1433
+ }, false);
1434
+ // Create all the other event listeners that bubble up to a jPlayer event from html, without being used by jPlayer.
1435
+ $.each($.jPlayer.htmlEvent, function(i, eventType) {
1436
+ mediaElement.addEventListener(this, function() {
1437
+ if(entity.gate) {
1438
+ self._trigger($.jPlayer.event[eventType]);
1439
+ }
1440
+ }, false);
1441
+ });
1442
+ },
1443
+ _getHtmlStatus: function(media, override) {
1444
+ var ct = 0, cpa = 0, sp = 0, cpr = 0;
1445
+
1446
+ // Fixes the duration bug in iOS, where the durationchange event occurs when media.duration is not always correct.
1447
+ // Fixes the initial duration bug in BB OS7, where the media.duration is infinity and displays as NaN:NaN due to Date() using inifity.
1448
+ if(isFinite(media.duration)) {
1449
+ this.status.duration = media.duration;
1450
+ }
1451
+
1452
+ ct = media.currentTime;
1453
+ cpa = (this.status.duration > 0) ? 100 * ct / this.status.duration : 0;
1454
+ if((typeof media.seekable === "object") && (media.seekable.length > 0)) {
1455
+ sp = (this.status.duration > 0) ? 100 * media.seekable.end(media.seekable.length-1) / this.status.duration : 100;
1456
+ cpr = (this.status.duration > 0) ? 100 * media.currentTime / media.seekable.end(media.seekable.length-1) : 0; // Duration conditional for iOS duration bug. ie., seekable.end is a NaN in that case.
1457
+ } else {
1458
+ sp = 100;
1459
+ cpr = cpa;
1460
+ }
1461
+
1462
+ if(override) {
1463
+ ct = 0;
1464
+ cpr = 0;
1465
+ cpa = 0;
1466
+ }
1467
+
1468
+ this.status.seekPercent = sp;
1469
+ this.status.currentPercentRelative = cpr;
1470
+ this.status.currentPercentAbsolute = cpa;
1471
+ this.status.currentTime = ct;
1472
+
1473
+ this.status.remaining = this.status.duration - this.status.currentTime;
1474
+
1475
+ this.status.videoWidth = media.videoWidth;
1476
+ this.status.videoHeight = media.videoHeight;
1477
+
1478
+ this.status.readyState = media.readyState;
1479
+ this.status.networkState = media.networkState;
1480
+ this.status.playbackRate = media.playbackRate;
1481
+ this.status.ended = media.ended;
1482
+ },
1483
+ _resetStatus: function() {
1484
+ this.status = $.extend({}, this.status, $.jPlayer.prototype.status); // Maintains the status properties that persist through a reset.
1485
+ },
1486
+ _trigger: function(eventType, error, warning) { // eventType always valid as called using $.jPlayer.event.eventType
1487
+ var event = $.Event(eventType);
1488
+ event.jPlayer = {};
1489
+ event.jPlayer.version = $.extend({}, this.version);
1490
+ event.jPlayer.options = $.extend(true, {}, this.options); // Deep copy
1491
+ event.jPlayer.status = $.extend(true, {}, this.status); // Deep copy
1492
+ event.jPlayer.html = $.extend(true, {}, this.html); // Deep copy
1493
+ event.jPlayer.flash = $.extend(true, {}, this.flash); // Deep copy
1494
+ if(error) {
1495
+ event.jPlayer.error = $.extend({}, error);
1496
+ }
1497
+ if(warning) {
1498
+ event.jPlayer.warning = $.extend({}, warning);
1499
+ }
1500
+ this.element.trigger(event);
1501
+ },
1502
+ jPlayerFlashEvent: function(eventType, status) { // Called from Flash
1503
+ if(eventType === $.jPlayer.event.ready) {
1504
+ if(!this.internal.ready) {
1505
+ this.internal.ready = true;
1506
+ this.internal.flash.jq.css({'width':'0px', 'height':'0px'}); // Once Flash generates the ready event, minimise to zero as it is not affected by wmode anymore.
1507
+
1508
+ this.version.flash = status.version;
1509
+ if(this.version.needFlash !== this.version.flash) {
1510
+ this._error( {
1511
+ type: $.jPlayer.error.VERSION,
1512
+ context: this.version.flash,
1513
+ message: $.jPlayer.errorMsg.VERSION + this.version.flash,
1514
+ hint: $.jPlayer.errorHint.VERSION
1515
+ });
1516
+ }
1517
+ this._trigger($.jPlayer.event.repeat); // Trigger the repeat event so its handler can initialize itself with the loop option.
1518
+ this._trigger(eventType);
1519
+ } else {
1520
+ // This condition occurs if the Flash is hidden and then shown again.
1521
+ // Firefox also reloads the Flash if the CSS position changes. position:fixed is used for full screen.
1522
+
1523
+ // Only do this if the Flash is the solution being used at the moment. Affects Media players where both solution may be being used.
1524
+ if(this.flash.gate) {
1525
+
1526
+ // Send the current status to the Flash now that it is ready (available) again.
1527
+ if(this.status.srcSet) {
1528
+
1529
+ // Need to read original status before issuing the setMedia command.
1530
+ var currentTime = this.status.currentTime,
1531
+ paused = this.status.paused;
1532
+
1533
+ this.setMedia(this.status.media);
1534
+ this.volumeWorker(this.options.volume);
1535
+ if(currentTime > 0) {
1536
+ if(paused) {
1537
+ this.pause(currentTime);
1538
+ } else {
1539
+ this.play(currentTime);
1540
+ }
1541
+ }
1542
+ }
1543
+ this._trigger($.jPlayer.event.flashreset);
1544
+ }
1545
+ }
1546
+ }
1547
+ if(this.flash.gate) {
1548
+ switch(eventType) {
1549
+ case $.jPlayer.event.progress:
1550
+ this._getFlashStatus(status);
1551
+ this._updateInterface();
1552
+ this._trigger(eventType);
1553
+ break;
1554
+ case $.jPlayer.event.timeupdate:
1555
+ this._getFlashStatus(status);
1556
+ this._updateInterface();
1557
+ this._trigger(eventType);
1558
+ break;
1559
+ case $.jPlayer.event.play:
1560
+ this._seeked();
1561
+ this._updateButtons(true);
1562
+ this._trigger(eventType);
1563
+ break;
1564
+ case $.jPlayer.event.pause:
1565
+ this._updateButtons(false);
1566
+ this._trigger(eventType);
1567
+ break;
1568
+ case $.jPlayer.event.ended:
1569
+ this._updateButtons(false);
1570
+ this._trigger(eventType);
1571
+ break;
1572
+ case $.jPlayer.event.click:
1573
+ this._trigger(eventType); // This could be dealt with by the default
1574
+ break;
1575
+ case $.jPlayer.event.error:
1576
+ this.status.waitForLoad = true; // Allows the load operation to try again.
1577
+ this.status.waitForPlay = true; // Reset since a play was captured.
1578
+ if(this.status.video) {
1579
+ this.internal.flash.jq.css({'width':'0px', 'height':'0px'});
1580
+ }
1581
+ if(this._validString(this.status.media.poster)) {
1582
+ this.internal.poster.jq.show();
1583
+ }
1584
+ if(this.css.jq.videoPlay.length && this.status.video) {
1585
+ this.css.jq.videoPlay.show();
1586
+ }
1587
+ if(this.status.video) { // Set up for another try. Execute before error event.
1588
+ this._flash_setVideo(this.status.media);
1589
+ } else {
1590
+ this._flash_setAudio(this.status.media);
1591
+ }
1592
+ this._updateButtons(false);
1593
+ this._error( {
1594
+ type: $.jPlayer.error.URL,
1595
+ context:status.src,
1596
+ message: $.jPlayer.errorMsg.URL,
1597
+ hint: $.jPlayer.errorHint.URL
1598
+ });
1599
+ break;
1600
+ case $.jPlayer.event.seeking:
1601
+ this._seeking();
1602
+ this._trigger(eventType);
1603
+ break;
1604
+ case $.jPlayer.event.seeked:
1605
+ this._seeked();
1606
+ this._trigger(eventType);
1607
+ break;
1608
+ case $.jPlayer.event.ready:
1609
+ // The ready event is handled outside the switch statement.
1610
+ // Captured here otherwise 2 ready events would be generated if the ready event handler used setMedia.
1611
+ break;
1612
+ default:
1613
+ this._trigger(eventType);
1614
+ }
1615
+ }
1616
+ return false;
1617
+ },
1618
+ _getFlashStatus: function(status) {
1619
+ this.status.seekPercent = status.seekPercent;
1620
+ this.status.currentPercentRelative = status.currentPercentRelative;
1621
+ this.status.currentPercentAbsolute = status.currentPercentAbsolute;
1622
+ this.status.currentTime = status.currentTime;
1623
+ this.status.duration = status.duration;
1624
+ this.status.remaining = status.duration - status.currentTime;
1625
+
1626
+ this.status.videoWidth = status.videoWidth;
1627
+ this.status.videoHeight = status.videoHeight;
1628
+
1629
+ // The Flash does not generate this information in this release
1630
+ this.status.readyState = 4; // status.readyState;
1631
+ this.status.networkState = 0; // status.networkState;
1632
+ this.status.playbackRate = 1; // status.playbackRate;
1633
+ this.status.ended = false; // status.ended;
1634
+ },
1635
+ _updateButtons: function(playing) {
1636
+ if(playing === undefined) {
1637
+ playing = !this.status.paused;
1638
+ } else {
1639
+ this.status.paused = !playing;
1640
+ }
1641
+ // Apply the state classes. (For the useStateClassSkin:true option)
1642
+ if(playing) {
1643
+ this.addStateClass('playing');
1644
+ } else {
1645
+ this.removeStateClass('playing');
1646
+ }
1647
+ if(!this.status.noFullWindow && this.options.fullWindow) {
1648
+ this.addStateClass('fullScreen');
1649
+ } else {
1650
+ this.removeStateClass('fullScreen');
1651
+ }
1652
+ if(this.options.loop) {
1653
+ this.addStateClass('looped');
1654
+ } else {
1655
+ this.removeStateClass('looped');
1656
+ }
1657
+ // Toggle the GUI element pairs. (For the useStateClassSkin:false option)
1658
+ if(this.css.jq.play.length && this.css.jq.pause.length) {
1659
+ if(playing) {
1660
+ this.css.jq.play.hide();
1661
+ this.css.jq.pause.show();
1662
+ } else {
1663
+ this.css.jq.play.show();
1664
+ this.css.jq.pause.hide();
1665
+ }
1666
+ }
1667
+ if(this.css.jq.restoreScreen.length && this.css.jq.fullScreen.length) {
1668
+ if(this.status.noFullWindow) {
1669
+ this.css.jq.fullScreen.hide();
1670
+ this.css.jq.restoreScreen.hide();
1671
+ } else if(this.options.fullWindow) {
1672
+ this.css.jq.fullScreen.hide();
1673
+ this.css.jq.restoreScreen.show();
1674
+ } else {
1675
+ this.css.jq.fullScreen.show();
1676
+ this.css.jq.restoreScreen.hide();
1677
+ }
1678
+ }
1679
+ if(this.css.jq.repeat.length && this.css.jq.repeatOff.length) {
1680
+ if(this.options.loop) {
1681
+ this.css.jq.repeat.hide();
1682
+ this.css.jq.repeatOff.show();
1683
+ } else {
1684
+ this.css.jq.repeat.show();
1685
+ this.css.jq.repeatOff.hide();
1686
+ }
1687
+ }
1688
+ },
1689
+ _updateInterface: function() {
1690
+ if(this.css.jq.seekBar.length) {
1691
+ this.css.jq.seekBar.width(this.status.seekPercent+"%");
1692
+ }
1693
+ if(this.css.jq.playBar.length) {
1694
+ if(this.options.smoothPlayBar) {
1695
+ this.css.jq.playBar.stop().animate({
1696
+ width: this.status.currentPercentAbsolute+"%"
1697
+ }, 250, "linear");
1698
+ } else {
1699
+ this.css.jq.playBar.width(this.status.currentPercentRelative+"%");
1700
+ }
1701
+ }
1702
+ var currentTimeText = '';
1703
+ if(this.css.jq.currentTime.length) {
1704
+ currentTimeText = this._convertTime(this.status.currentTime);
1705
+ if(currentTimeText !== this.css.jq.currentTime.text()) {
1706
+ this.css.jq.currentTime.text(this._convertTime(this.status.currentTime));
1707
+ }
1708
+ }
1709
+ var durationText = '',
1710
+ duration = this.status.duration,
1711
+ remaining = this.status.remaining;
1712
+ if(this.css.jq.duration.length) {
1713
+ if(typeof this.status.media.duration === 'string') {
1714
+ durationText = this.status.media.duration;
1715
+ } else {
1716
+ if(typeof this.status.media.duration === 'number') {
1717
+ duration = this.status.media.duration;
1718
+ remaining = duration - this.status.currentTime;
1719
+ }
1720
+ if(this.options.remainingDuration) {
1721
+ durationText = (remaining > 0 ? '-' : '') + this._convertTime(remaining);
1722
+ } else {
1723
+ durationText = this._convertTime(duration);
1724
+ }
1725
+ }
1726
+ if(durationText !== this.css.jq.duration.text()) {
1727
+ this.css.jq.duration.text(durationText);
1728
+ }
1729
+ }
1730
+ },
1731
+ _convertTime: ConvertTime.prototype.time,
1732
+ _seeking: function() {
1733
+ if(this.css.jq.seekBar.length) {
1734
+ this.css.jq.seekBar.addClass("jp-seeking-bg");
1735
+ }
1736
+ this.addStateClass('seeking');
1737
+ },
1738
+ _seeked: function() {
1739
+ if(this.css.jq.seekBar.length) {
1740
+ this.css.jq.seekBar.removeClass("jp-seeking-bg");
1741
+ }
1742
+ this.removeStateClass('seeking');
1743
+ },
1744
+ _resetGate: function() {
1745
+ this.html.audio.gate = false;
1746
+ this.html.video.gate = false;
1747
+ this.flash.gate = false;
1748
+ },
1749
+ _resetActive: function() {
1750
+ this.html.active = false;
1751
+ this.flash.active = false;
1752
+ },
1753
+ _escapeHtml: function(s) {
1754
+ return s.split('&').join('&amp;').split('<').join('&lt;').split('>').join('&gt;').split('"').join('&quot;');
1755
+ },
1756
+ _qualifyURL: function(url) {
1757
+ var el = document.createElement('div');
1758
+ el.innerHTML= '<a href="' + this._escapeHtml(url) + '">x</a>';
1759
+ return el.firstChild.href;
1760
+ },
1761
+ _absoluteMediaUrls: function(media) {
1762
+ var self = this;
1763
+ $.each(media, function(type, url) {
1764
+ if(url && self.format[type]) {
1765
+ media[type] = self._qualifyURL(url);
1766
+ }
1767
+ });
1768
+ return media;
1769
+ },
1770
+ addStateClass: function(state) {
1771
+ if(this.ancestorJq.length) {
1772
+ this.ancestorJq.addClass(this.options.stateClass[state]);
1773
+ }
1774
+ },
1775
+ removeStateClass: function(state) {
1776
+ if(this.ancestorJq.length) {
1777
+ this.ancestorJq.removeClass(this.options.stateClass[state]);
1778
+ }
1779
+ },
1780
+ setMedia: function(media) {
1781
+
1782
+ /* media[format] = String: URL of format. Must contain all of the supplied option's video or audio formats.
1783
+ * media.poster = String: Video poster URL.
1784
+ * media.track = Array: Of objects defining the track element: kind, src, srclang, label, def.
1785
+ * media.stream = Boolean: * NOT IMPLEMENTED * Designating actual media streams. ie., "false/undefined" for files. Plan to refresh the flash every so often.
1786
+ */
1787
+
1788
+ var self = this,
1789
+ supported = false,
1790
+ posterChanged = this.status.media.poster !== media.poster; // Compare before reset. Important for OSX Safari as this.htmlElement.poster.src is absolute, even if original poster URL was relative.
1791
+
1792
+ this._resetMedia();
1793
+ this._resetGate();
1794
+ this._resetActive();
1795
+
1796
+ // Clear the Android Fix.
1797
+ this.androidFix.setMedia = false;
1798
+ this.androidFix.play = false;
1799
+ this.androidFix.pause = false;
1800
+
1801
+ // Convert all media URLs to absolute URLs.
1802
+ media = this._absoluteMediaUrls(media);
1803
+
1804
+ $.each(this.formats, function(formatPriority, format) {
1805
+ var isVideo = self.format[format].media === 'video';
1806
+ $.each(self.solutions, function(solutionPriority, solution) {
1807
+ if(self[solution].support[format] && self._validString(media[format])) { // Format supported in solution and url given for format.
1808
+ var isHtml = solution === 'html';
1809
+
1810
+ if(isVideo) {
1811
+ if(isHtml) {
1812
+ self.html.video.gate = true;
1813
+ self._html_setVideo(media);
1814
+ self.html.active = true;
1815
+ } else {
1816
+ self.flash.gate = true;
1817
+ self._flash_setVideo(media);
1818
+ self.flash.active = true;
1819
+ }
1820
+ if(self.css.jq.videoPlay.length) {
1821
+ self.css.jq.videoPlay.show();
1822
+ }
1823
+ self.status.video = true;
1824
+ } else {
1825
+ if(isHtml) {
1826
+ self.html.audio.gate = true;
1827
+ self._html_setAudio(media);
1828
+ self.html.active = true;
1829
+
1830
+ // Setup the Android Fix - Only for HTML audio.
1831
+ if($.jPlayer.platform.android) {
1832
+ self.androidFix.setMedia = true;
1833
+ }
1834
+ } else {
1835
+ self.flash.gate = true;
1836
+ self._flash_setAudio(media);
1837
+ self.flash.active = true;
1838
+ }
1839
+ if(self.css.jq.videoPlay.length) {
1840
+ self.css.jq.videoPlay.hide();
1841
+ }
1842
+ self.status.video = false;
1843
+ }
1844
+
1845
+ supported = true;
1846
+ return false; // Exit $.each
1847
+ }
1848
+ });
1849
+ if(supported) {
1850
+ return false; // Exit $.each
1851
+ }
1852
+ });
1853
+
1854
+ if(supported) {
1855
+ if(!(this.status.nativeVideoControls && this.html.video.gate)) {
1856
+ // Set poster IMG if native video controls are not being used
1857
+ // Note: With IE the IMG onload event occurs immediately when cached.
1858
+ // Note: Poster hidden by default in _resetMedia()
1859
+ if(this._validString(media.poster)) {
1860
+ if(posterChanged) { // Since some browsers do not generate img onload event.
1861
+ this.htmlElement.poster.src = media.poster;
1862
+ } else {
1863
+ this.internal.poster.jq.show();
1864
+ }
1865
+ }
1866
+ }
1867
+ if(this.css.jq.title.length) {
1868
+ if(typeof media.title === 'string') {
1869
+ this.css.jq.title.html(media.title);
1870
+ if(this.htmlElement.audio) {
1871
+ this.htmlElement.audio.setAttribute('title', media.title);
1872
+ }
1873
+ if(this.htmlElement.video) {
1874
+ this.htmlElement.video.setAttribute('title', media.title);
1875
+ }
1876
+ }
1877
+ }
1878
+ this.status.srcSet = true;
1879
+ this.status.media = $.extend({}, media);
1880
+ this._updateButtons(false);
1881
+ this._updateInterface();
1882
+ this._trigger($.jPlayer.event.setmedia);
1883
+ } else { // jPlayer cannot support any formats provided in this browser
1884
+ // Send an error event
1885
+ this._error( {
1886
+ type: $.jPlayer.error.NO_SUPPORT,
1887
+ context: "{supplied:'" + this.options.supplied + "'}",
1888
+ message: $.jPlayer.errorMsg.NO_SUPPORT,
1889
+ hint: $.jPlayer.errorHint.NO_SUPPORT
1890
+ });
1891
+ }
1892
+ },
1893
+ _resetMedia: function() {
1894
+ this._resetStatus();
1895
+ this._updateButtons(false);
1896
+ this._updateInterface();
1897
+ this._seeked();
1898
+ this.internal.poster.jq.hide();
1899
+
1900
+ clearTimeout(this.internal.htmlDlyCmdId);
1901
+
1902
+ if(this.html.active) {
1903
+ this._html_resetMedia();
1904
+ } else if(this.flash.active) {
1905
+ this._flash_resetMedia();
1906
+ }
1907
+ },
1908
+ clearMedia: function() {
1909
+ this._resetMedia();
1910
+
1911
+ if(this.html.active) {
1912
+ this._html_clearMedia();
1913
+ } else if(this.flash.active) {
1914
+ this._flash_clearMedia();
1915
+ }
1916
+
1917
+ this._resetGate();
1918
+ this._resetActive();
1919
+ },
1920
+ load: function() {
1921
+ if(this.status.srcSet) {
1922
+ if(this.html.active) {
1923
+ this._html_load();
1924
+ } else if(this.flash.active) {
1925
+ this._flash_load();
1926
+ }
1927
+ } else {
1928
+ this._urlNotSetError("load");
1929
+ }
1930
+ },
1931
+ focus: function() {
1932
+ if(this.options.keyEnabled) {
1933
+ $.jPlayer.focus = this;
1934
+ }
1935
+ },
1936
+ play: function(time) {
1937
+ var guiAction = typeof time === "object"; // Flags GUI click events so we know this was not a direct command, but an action taken by the user on the GUI.
1938
+ if(guiAction && this.options.useStateClassSkin && !this.status.paused) {
1939
+ this.pause(time); // The time would be the click event, but passing it over so info is not lost.
1940
+ } else {
1941
+ time = (typeof time === "number") ? time : NaN; // Remove jQuery event from click handler
1942
+ if(this.status.srcSet) {
1943
+ this.focus();
1944
+ if(this.html.active) {
1945
+ this._html_play(time);
1946
+ } else if(this.flash.active) {
1947
+ this._flash_play(time);
1948
+ }
1949
+ } else {
1950
+ this._urlNotSetError("play");
1951
+ }
1952
+ }
1953
+ },
1954
+ videoPlay: function() { // Handles clicks on the play button over the video poster
1955
+ this.play();
1956
+ },
1957
+ pause: function(time) {
1958
+ time = (typeof time === "number") ? time : NaN; // Remove jQuery event from click handler
1959
+ if(this.status.srcSet) {
1960
+ if(this.html.active) {
1961
+ this._html_pause(time);
1962
+ } else if(this.flash.active) {
1963
+ this._flash_pause(time);
1964
+ }
1965
+ } else {
1966
+ this._urlNotSetError("pause");
1967
+ }
1968
+ },
1969
+ tellOthers: function(command, conditions) {
1970
+ var self = this,
1971
+ hasConditions = typeof conditions === 'function',
1972
+ args = Array.prototype.slice.call(arguments); // Convert arguments to an Array.
1973
+
1974
+ if(typeof command !== 'string') { // Ignore, since no command.
1975
+ return; // Return undefined to maintain chaining.
1976
+ }
1977
+ if(hasConditions) {
1978
+ args.splice(1, 1); // Remove the conditions from the arguments
1979
+ }
1980
+
1981
+ $.each(this.instances, function() {
1982
+ // Remember that "this" is the instance's "element" in the $.each() loop.
1983
+ if(self.element !== this) { // Do not tell my instance.
1984
+ if(!hasConditions || conditions.call(this.data("jPlayer"), self)) {
1985
+ this.jPlayer.apply(this, args);
1986
+ }
1987
+ }
1988
+ });
1989
+ },
1990
+ pauseOthers: function(time) {
1991
+ this.tellOthers("pause", function() {
1992
+ // In the conditions function, the "this" context is the other instance's jPlayer object.
1993
+ return this.status.srcSet;
1994
+ }, time);
1995
+ },
1996
+ stop: function() {
1997
+ if(this.status.srcSet) {
1998
+ if(this.html.active) {
1999
+ this._html_pause(0);
2000
+ } else if(this.flash.active) {
2001
+ this._flash_pause(0);
2002
+ }
2003
+ } else {
2004
+ this._urlNotSetError("stop");
2005
+ }
2006
+ },
2007
+ playHead: function(p) {
2008
+ p = this._limitValue(p, 0, 100);
2009
+ if(this.status.srcSet) {
2010
+ if(this.html.active) {
2011
+ this._html_playHead(p);
2012
+ } else if(this.flash.active) {
2013
+ this._flash_playHead(p);
2014
+ }
2015
+ } else {
2016
+ this._urlNotSetError("playHead");
2017
+ }
2018
+ },
2019
+ _muted: function(muted) {
2020
+ this.mutedWorker(muted);
2021
+ if(this.options.globalVolume) {
2022
+ this.tellOthers("mutedWorker", function() {
2023
+ // Check the other instance has global volume enabled.
2024
+ return this.options.globalVolume;
2025
+ }, muted);
2026
+ }
2027
+ },
2028
+ mutedWorker: function(muted) {
2029
+ this.options.muted = muted;
2030
+ if(this.html.used) {
2031
+ this._html_setProperty('muted', muted);
2032
+ }
2033
+ if(this.flash.used) {
2034
+ this._flash_mute(muted);
2035
+ }
2036
+
2037
+ // The HTML solution generates this event from the media element itself.
2038
+ if(!this.html.video.gate && !this.html.audio.gate) {
2039
+ this._updateMute(muted);
2040
+ this._updateVolume(this.options.volume);
2041
+ this._trigger($.jPlayer.event.volumechange);
2042
+ }
2043
+ },
2044
+ mute: function(mute) { // mute is either: undefined (true), an event object (true) or a boolean (muted).
2045
+ var guiAction = typeof mute === "object"; // Flags GUI click events so we know this was not a direct command, but an action taken by the user on the GUI.
2046
+ if(guiAction && this.options.useStateClassSkin && this.options.muted) {
2047
+ this._muted(false);
2048
+ } else {
2049
+ mute = mute === undefined ? true : !!mute;
2050
+ this._muted(mute);
2051
+ }
2052
+ },
2053
+ unmute: function(unmute) { // unmute is either: undefined (true), an event object (true) or a boolean (!muted).
2054
+ unmute = unmute === undefined ? true : !!unmute;
2055
+ this._muted(!unmute);
2056
+ },
2057
+ _updateMute: function(mute) {
2058
+ if(mute === undefined) {
2059
+ mute = this.options.muted;
2060
+ }
2061
+ if(mute) {
2062
+ this.addStateClass('muted');
2063
+ } else {
2064
+ this.removeStateClass('muted');
2065
+ }
2066
+ if(this.css.jq.mute.length && this.css.jq.unmute.length) {
2067
+ if(this.status.noVolume) {
2068
+ this.css.jq.mute.hide();
2069
+ this.css.jq.unmute.hide();
2070
+ } else if(mute) {
2071
+ this.css.jq.mute.hide();
2072
+ this.css.jq.unmute.show();
2073
+ } else {
2074
+ this.css.jq.mute.show();
2075
+ this.css.jq.unmute.hide();
2076
+ }
2077
+ }
2078
+ },
2079
+ volume: function(v) {
2080
+ this.volumeWorker(v);
2081
+ if(this.options.globalVolume) {
2082
+ this.tellOthers("volumeWorker", function() {
2083
+ // Check the other instance has global volume enabled.
2084
+ return this.options.globalVolume;
2085
+ }, v);
2086
+ }
2087
+ },
2088
+ volumeWorker: function(v) {
2089
+ v = this._limitValue(v, 0, 1);
2090
+ this.options.volume = v;
2091
+
2092
+ if(this.html.used) {
2093
+ this._html_setProperty('volume', v);
2094
+ }
2095
+ if(this.flash.used) {
2096
+ this._flash_volume(v);
2097
+ }
2098
+
2099
+ // The HTML solution generates this event from the media element itself.
2100
+ if(!this.html.video.gate && !this.html.audio.gate) {
2101
+ this._updateVolume(v);
2102
+ this._trigger($.jPlayer.event.volumechange);
2103
+ }
2104
+ },
2105
+ volumeBar: function(e) { // Handles clicks on the volumeBar
2106
+ if(this.css.jq.volumeBar.length) {
2107
+ // Using $(e.currentTarget) to enable multiple volume bars
2108
+ var $bar = $(e.currentTarget),
2109
+ offset = $bar.offset(),
2110
+ x = e.pageX - offset.left,
2111
+ w = $bar.width(),
2112
+ y = $bar.height() - e.pageY + offset.top,
2113
+ h = $bar.height();
2114
+ if(this.options.verticalVolume) {
2115
+ this.volume(y/h);
2116
+ } else {
2117
+ this.volume(x/w);
2118
+ }
2119
+ }
2120
+ if(this.options.muted) {
2121
+ this._muted(false);
2122
+ }
2123
+ },
2124
+ _updateVolume: function(v) {
2125
+ if(v === undefined) {
2126
+ v = this.options.volume;
2127
+ }
2128
+ v = this.options.muted ? 0 : v;
2129
+
2130
+ if(this.status.noVolume) {
2131
+ if(this.css.jq.volumeBar.length) {
2132
+ this.css.jq.volumeBar.hide();
2133
+ }
2134
+ if(this.css.jq.volumeBarValue.length) {
2135
+ this.css.jq.volumeBarValue.hide();
2136
+ }
2137
+ if(this.css.jq.volumeMax.length) {
2138
+ this.css.jq.volumeMax.hide();
2139
+ }
2140
+ } else {
2141
+ if(this.css.jq.volumeBar.length) {
2142
+ this.css.jq.volumeBar.show();
2143
+ }
2144
+ if(this.css.jq.volumeBarValue.length) {
2145
+ this.css.jq.volumeBarValue.show();
2146
+ this.css.jq.volumeBarValue[this.options.verticalVolume ? "height" : "width"]((v*100)+"%");
2147
+ }
2148
+ if(this.css.jq.volumeMax.length) {
2149
+ this.css.jq.volumeMax.show();
2150
+ }
2151
+ }
2152
+ },
2153
+ volumeMax: function() { // Handles clicks on the volume max
2154
+ this.volume(1);
2155
+ if(this.options.muted) {
2156
+ this._muted(false);
2157
+ }
2158
+ },
2159
+ _cssSelectorAncestor: function(ancestor) {
2160
+ var self = this;
2161
+ this.options.cssSelectorAncestor = ancestor;
2162
+ this._removeUiClass();
2163
+ this.ancestorJq = ancestor ? $(ancestor) : []; // Would use $() instead of [], but it is only 1.4+
2164
+ if(ancestor && this.ancestorJq.length !== 1) { // So empty strings do not generate the warning.
2165
+ this._warning( {
2166
+ type: $.jPlayer.warning.CSS_SELECTOR_COUNT,
2167
+ context: ancestor,
2168
+ message: $.jPlayer.warningMsg.CSS_SELECTOR_COUNT + this.ancestorJq.length + " found for cssSelectorAncestor.",
2169
+ hint: $.jPlayer.warningHint.CSS_SELECTOR_COUNT
2170
+ });
2171
+ }
2172
+ this._addUiClass();
2173
+ $.each(this.options.cssSelector, function(fn, cssSel) {
2174
+ self._cssSelector(fn, cssSel);
2175
+ });
2176
+
2177
+ // Set the GUI to the current state.
2178
+ this._updateInterface();
2179
+ this._updateButtons();
2180
+ this._updateAutohide();
2181
+ this._updateVolume();
2182
+ this._updateMute();
2183
+ },
2184
+ _cssSelector: function(fn, cssSel) {
2185
+ var self = this;
2186
+ if(typeof cssSel === 'string') {
2187
+ if($.jPlayer.prototype.options.cssSelector[fn]) {
2188
+ if(this.css.jq[fn] && this.css.jq[fn].length) {
2189
+ this.css.jq[fn].unbind(".jPlayer");
2190
+ }
2191
+ this.options.cssSelector[fn] = cssSel;
2192
+ this.css.cs[fn] = this.options.cssSelectorAncestor + " " + cssSel;
2193
+
2194
+ if(cssSel) { // Checks for empty string
2195
+ this.css.jq[fn] = $(this.css.cs[fn]);
2196
+ } else {
2197
+ this.css.jq[fn] = []; // To comply with the css.jq[fn].length check before its use. As of jQuery 1.4 could have used $() for an empty set.
2198
+ }
2199
+
2200
+ if(this.css.jq[fn].length && this[fn]) {
2201
+ var handler = function(e) {
2202
+ e.preventDefault();
2203
+ self[fn](e);
2204
+ if(self.options.autoBlur) {
2205
+ $(this).blur();
2206
+ }
2207
+ };
2208
+ this.css.jq[fn].bind("click.jPlayer", handler); // Using jPlayer namespace
2209
+ }
2210
+
2211
+ if(cssSel && this.css.jq[fn].length !== 1) { // So empty strings do not generate the warning. ie., they just remove the old one.
2212
+ this._warning( {
2213
+ type: $.jPlayer.warning.CSS_SELECTOR_COUNT,
2214
+ context: this.css.cs[fn],
2215
+ message: $.jPlayer.warningMsg.CSS_SELECTOR_COUNT + this.css.jq[fn].length + " found for " + fn + " method.",
2216
+ hint: $.jPlayer.warningHint.CSS_SELECTOR_COUNT
2217
+ });
2218
+ }
2219
+ } else {
2220
+ this._warning( {
2221
+ type: $.jPlayer.warning.CSS_SELECTOR_METHOD,
2222
+ context: fn,
2223
+ message: $.jPlayer.warningMsg.CSS_SELECTOR_METHOD,
2224
+ hint: $.jPlayer.warningHint.CSS_SELECTOR_METHOD
2225
+ });
2226
+ }
2227
+ } else {
2228
+ this._warning( {
2229
+ type: $.jPlayer.warning.CSS_SELECTOR_STRING,
2230
+ context: cssSel,
2231
+ message: $.jPlayer.warningMsg.CSS_SELECTOR_STRING,
2232
+ hint: $.jPlayer.warningHint.CSS_SELECTOR_STRING
2233
+ });
2234
+ }
2235
+ },
2236
+ duration: function(e) {
2237
+ if(this.options.toggleDuration) {
2238
+ if(this.options.captureDuration) {
2239
+ e.stopPropagation();
2240
+ }
2241
+ this._setOption("remainingDuration", !this.options.remainingDuration);
2242
+ }
2243
+ },
2244
+ seekBar: function(e) { // Handles clicks on the seekBar
2245
+ if(this.css.jq.seekBar.length) {
2246
+ // Using $(e.currentTarget) to enable multiple seek bars
2247
+ var $bar = $(e.currentTarget),
2248
+ offset = $bar.offset(),
2249
+ x = e.pageX - offset.left,
2250
+ w = $bar.width(),
2251
+ p = 100 * x / w;
2252
+ this.playHead(p);
2253
+ }
2254
+ },
2255
+ playbackRate: function(pbr) {
2256
+ this._setOption("playbackRate", pbr);
2257
+ },
2258
+ playbackRateBar: function(e) { // Handles clicks on the playbackRateBar
2259
+ if(this.css.jq.playbackRateBar.length) {
2260
+ // Using $(e.currentTarget) to enable multiple playbackRate bars
2261
+ var $bar = $(e.currentTarget),
2262
+ offset = $bar.offset(),
2263
+ x = e.pageX - offset.left,
2264
+ w = $bar.width(),
2265
+ y = $bar.height() - e.pageY + offset.top,
2266
+ h = $bar.height(),
2267
+ ratio, pbr;
2268
+ if(this.options.verticalPlaybackRate) {
2269
+ ratio = y/h;
2270
+ } else {
2271
+ ratio = x/w;
2272
+ }
2273
+ pbr = ratio * (this.options.maxPlaybackRate - this.options.minPlaybackRate) + this.options.minPlaybackRate;
2274
+ this.playbackRate(pbr);
2275
+ }
2276
+ },
2277
+ _updatePlaybackRate: function() {
2278
+ var pbr = this.options.playbackRate,
2279
+ ratio = (pbr - this.options.minPlaybackRate) / (this.options.maxPlaybackRate - this.options.minPlaybackRate);
2280
+ if(this.status.playbackRateEnabled) {
2281
+ if(this.css.jq.playbackRateBar.length) {
2282
+ this.css.jq.playbackRateBar.show();
2283
+ }
2284
+ if(this.css.jq.playbackRateBarValue.length) {
2285
+ this.css.jq.playbackRateBarValue.show();
2286
+ this.css.jq.playbackRateBarValue[this.options.verticalPlaybackRate ? "height" : "width"]((ratio*100)+"%");
2287
+ }
2288
+ } else {
2289
+ if(this.css.jq.playbackRateBar.length) {
2290
+ this.css.jq.playbackRateBar.hide();
2291
+ }
2292
+ if(this.css.jq.playbackRateBarValue.length) {
2293
+ this.css.jq.playbackRateBarValue.hide();
2294
+ }
2295
+ }
2296
+ },
2297
+ repeat: function(event) { // Handle clicks on the repeat button
2298
+ var guiAction = typeof event === "object"; // Flags GUI click events so we know this was not a direct command, but an action taken by the user on the GUI.
2299
+ if(guiAction && this.options.useStateClassSkin && this.options.loop) {
2300
+ this._loop(false);
2301
+ } else {
2302
+ this._loop(true);
2303
+ }
2304
+ },
2305
+ repeatOff: function() { // Handle clicks on the repeatOff button
2306
+ this._loop(false);
2307
+ },
2308
+ _loop: function(loop) {
2309
+ if(this.options.loop !== loop) {
2310
+ this.options.loop = loop;
2311
+ this._updateButtons();
2312
+ this._trigger($.jPlayer.event.repeat);
2313
+ }
2314
+ },
2315
+
2316
+ // Options code adapted from ui.widget.js (1.8.7). Made changes so the key can use dot notation. To match previous getData solution in jPlayer 1.
2317
+ option: function(key, value) {
2318
+ var options = key;
2319
+
2320
+ // Enables use: options(). Returns a copy of options object
2321
+ if ( arguments.length === 0 ) {
2322
+ return $.extend( true, {}, this.options );
2323
+ }
2324
+
2325
+ if(typeof key === "string") {
2326
+ var keys = key.split(".");
2327
+
2328
+ // Enables use: options("someOption") Returns a copy of the option. Supports dot notation.
2329
+ if(value === undefined) {
2330
+
2331
+ var opt = $.extend(true, {}, this.options);
2332
+ for(var i = 0; i < keys.length; i++) {
2333
+ if(opt[keys[i]] !== undefined) {
2334
+ opt = opt[keys[i]];
2335
+ } else {
2336
+ this._warning( {
2337
+ type: $.jPlayer.warning.OPTION_KEY,
2338
+ context: key,
2339
+ message: $.jPlayer.warningMsg.OPTION_KEY,
2340
+ hint: $.jPlayer.warningHint.OPTION_KEY
2341
+ });
2342
+ return undefined;
2343
+ }
2344
+ }
2345
+ return opt;
2346
+ }
2347
+
2348
+ // Enables use: options("someOptionObject", someObject}). Creates: {someOptionObject:someObject}
2349
+ // Enables use: options("someOption", someValue). Creates: {someOption:someValue}
2350
+ // Enables use: options("someOptionObject.someOption", someValue). Creates: {someOptionObject:{someOption:someValue}}
2351
+
2352
+ options = {};
2353
+ var opts = options;
2354
+
2355
+ for(var j = 0; j < keys.length; j++) {
2356
+ if(j < keys.length - 1) {
2357
+ opts[keys[j]] = {};
2358
+ opts = opts[keys[j]];
2359
+ } else {
2360
+ opts[keys[j]] = value;
2361
+ }
2362
+ }
2363
+ }
2364
+
2365
+ // Otherwise enables use: options(optionObject). Uses original object (the key)
2366
+
2367
+ this._setOptions(options);
2368
+
2369
+ return this;
2370
+ },
2371
+ _setOptions: function(options) {
2372
+ var self = this;
2373
+ $.each(options, function(key, value) { // This supports the 2 level depth that the options of jPlayer has. Would review if we ever need more depth.
2374
+ self._setOption(key, value);
2375
+ });
2376
+
2377
+ return this;
2378
+ },
2379
+ _setOption: function(key, value) {
2380
+ var self = this;
2381
+
2382
+ // The ability to set options is limited at this time.
2383
+
2384
+ switch(key) {
2385
+ case "volume" :
2386
+ this.volume(value);
2387
+ break;
2388
+ case "muted" :
2389
+ this._muted(value);
2390
+ break;
2391
+ case "globalVolume" :
2392
+ this.options[key] = value;
2393
+ break;
2394
+ case "cssSelectorAncestor" :
2395
+ this._cssSelectorAncestor(value); // Set and refresh all associations for the new ancestor.
2396
+ break;
2397
+ case "cssSelector" :
2398
+ $.each(value, function(fn, cssSel) {
2399
+ self._cssSelector(fn, cssSel); // NB: The option is set inside this function, after further validity checks.
2400
+ });
2401
+ break;
2402
+ case "playbackRate" :
2403
+ this.options[key] = value = this._limitValue(value, this.options.minPlaybackRate, this.options.maxPlaybackRate);
2404
+ if(this.html.used) {
2405
+ this._html_setProperty('playbackRate', value);
2406
+ }
2407
+ this._updatePlaybackRate();
2408
+ break;
2409
+ case "defaultPlaybackRate" :
2410
+ this.options[key] = value = this._limitValue(value, this.options.minPlaybackRate, this.options.maxPlaybackRate);
2411
+ if(this.html.used) {
2412
+ this._html_setProperty('defaultPlaybackRate', value);
2413
+ }
2414
+ this._updatePlaybackRate();
2415
+ break;
2416
+ case "minPlaybackRate" :
2417
+ this.options[key] = value = this._limitValue(value, 0.1, this.options.maxPlaybackRate - 0.1);
2418
+ this._updatePlaybackRate();
2419
+ break;
2420
+ case "maxPlaybackRate" :
2421
+ this.options[key] = value = this._limitValue(value, this.options.minPlaybackRate + 0.1, 16);
2422
+ this._updatePlaybackRate();
2423
+ break;
2424
+ case "fullScreen" :
2425
+ if(this.options[key] !== value) { // if changed
2426
+ var wkv = $.jPlayer.nativeFeatures.fullscreen.used.webkitVideo;
2427
+ if(!wkv || wkv && !this.status.waitForPlay) {
2428
+ if(!wkv) { // No sensible way to unset option on these devices.
2429
+ this.options[key] = value;
2430
+ }
2431
+ if(value) {
2432
+ this._requestFullscreen();
2433
+ } else {
2434
+ this._exitFullscreen();
2435
+ }
2436
+ if(!wkv) {
2437
+ this._setOption("fullWindow", value);
2438
+ }
2439
+ }
2440
+ }
2441
+ break;
2442
+ case "fullWindow" :
2443
+ if(this.options[key] !== value) { // if changed
2444
+ this._removeUiClass();
2445
+ this.options[key] = value;
2446
+ this._refreshSize();
2447
+ }
2448
+ break;
2449
+ case "size" :
2450
+ if(!this.options.fullWindow && this.options[key].cssClass !== value.cssClass) {
2451
+ this._removeUiClass();
2452
+ }
2453
+ this.options[key] = $.extend({}, this.options[key], value); // store a merged copy of it, incase not all properties changed.
2454
+ this._refreshSize();
2455
+ break;
2456
+ case "sizeFull" :
2457
+ if(this.options.fullWindow && this.options[key].cssClass !== value.cssClass) {
2458
+ this._removeUiClass();
2459
+ }
2460
+ this.options[key] = $.extend({}, this.options[key], value); // store a merged copy of it, incase not all properties changed.
2461
+ this._refreshSize();
2462
+ break;
2463
+ case "autohide" :
2464
+ this.options[key] = $.extend({}, this.options[key], value); // store a merged copy of it, incase not all properties changed.
2465
+ this._updateAutohide();
2466
+ break;
2467
+ case "loop" :
2468
+ this._loop(value);
2469
+ break;
2470
+ case "remainingDuration" :
2471
+ this.options[key] = value;
2472
+ this._updateInterface();
2473
+ break;
2474
+ case "toggleDuration" :
2475
+ this.options[key] = value;
2476
+ break;
2477
+ case "nativeVideoControls" :
2478
+ this.options[key] = $.extend({}, this.options[key], value); // store a merged copy of it, incase not all properties changed.
2479
+ this.status.nativeVideoControls = this._uaBlocklist(this.options.nativeVideoControls);
2480
+ this._restrictNativeVideoControls();
2481
+ this._updateNativeVideoControls();
2482
+ break;
2483
+ case "noFullWindow" :
2484
+ this.options[key] = $.extend({}, this.options[key], value); // store a merged copy of it, incase not all properties changed.
2485
+ this.status.nativeVideoControls = this._uaBlocklist(this.options.nativeVideoControls); // Need to check again as noFullWindow can depend on this flag and the restrict() can override it.
2486
+ this.status.noFullWindow = this._uaBlocklist(this.options.noFullWindow);
2487
+ this._restrictNativeVideoControls();
2488
+ this._updateButtons();
2489
+ break;
2490
+ case "noVolume" :
2491
+ this.options[key] = $.extend({}, this.options[key], value); // store a merged copy of it, incase not all properties changed.
2492
+ this.status.noVolume = this._uaBlocklist(this.options.noVolume);
2493
+ this._updateVolume();
2494
+ this._updateMute();
2495
+ break;
2496
+ case "emulateHtml" :
2497
+ if(this.options[key] !== value) { // To avoid multiple event handlers being created, if true already.
2498
+ this.options[key] = value;
2499
+ if(value) {
2500
+ this._emulateHtmlBridge();
2501
+ } else {
2502
+ this._destroyHtmlBridge();
2503
+ }
2504
+ }
2505
+ break;
2506
+ case "timeFormat" :
2507
+ this.options[key] = $.extend({}, this.options[key], value); // store a merged copy of it, incase not all properties changed.
2508
+ break;
2509
+ case "keyEnabled" :
2510
+ this.options[key] = value;
2511
+ if(!value && this === $.jPlayer.focus) {
2512
+ $.jPlayer.focus = null;
2513
+ }
2514
+ break;
2515
+ case "keyBindings" :
2516
+ this.options[key] = $.extend(true, {}, this.options[key], value); // store a merged DEEP copy of it, incase not all properties changed.
2517
+ break;
2518
+ case "audioFullScreen" :
2519
+ this.options[key] = value;
2520
+ break;
2521
+ case "autoBlur" :
2522
+ this.options[key] = value;
2523
+ break;
2524
+ }
2525
+
2526
+ return this;
2527
+ },
2528
+ // End of: (Options code adapted from ui.widget.js)
2529
+
2530
+ _refreshSize: function() {
2531
+ this._setSize(); // update status and jPlayer element size
2532
+ this._addUiClass(); // update the ui class
2533
+ this._updateSize(); // update internal sizes
2534
+ this._updateButtons();
2535
+ this._updateAutohide();
2536
+ this._trigger($.jPlayer.event.resize);
2537
+ },
2538
+ _setSize: function() {
2539
+ // Determine the current size from the options
2540
+ if(this.options.fullWindow) {
2541
+ this.status.width = this.options.sizeFull.width;
2542
+ this.status.height = this.options.sizeFull.height;
2543
+ this.status.cssClass = this.options.sizeFull.cssClass;
2544
+ } else {
2545
+ this.status.width = this.options.size.width;
2546
+ this.status.height = this.options.size.height;
2547
+ this.status.cssClass = this.options.size.cssClass;
2548
+ }
2549
+
2550
+ // Set the size of the jPlayer area.
2551
+ this.element.css({'width': this.status.width, 'height': this.status.height});
2552
+ },
2553
+ _addUiClass: function() {
2554
+ if(this.ancestorJq.length) {
2555
+ this.ancestorJq.addClass(this.status.cssClass);
2556
+ }
2557
+ },
2558
+ _removeUiClass: function() {
2559
+ if(this.ancestorJq.length) {
2560
+ this.ancestorJq.removeClass(this.status.cssClass);
2561
+ }
2562
+ },
2563
+ _updateSize: function() {
2564
+ // The poster uses show/hide so can simply resize it.
2565
+ this.internal.poster.jq.css({'width': this.status.width, 'height': this.status.height});
2566
+
2567
+ // Video html or flash resized if necessary at this time, or if native video controls being used.
2568
+ if(!this.status.waitForPlay && this.html.active && this.status.video || this.html.video.available && this.html.used && this.status.nativeVideoControls) {
2569
+ this.internal.video.jq.css({'width': this.status.width, 'height': this.status.height});
2570
+ }
2571
+ else if(!this.status.waitForPlay && this.flash.active && this.status.video) {
2572
+ this.internal.flash.jq.css({'width': this.status.width, 'height': this.status.height});
2573
+ }
2574
+ },
2575
+ _updateAutohide: function() {
2576
+ var self = this,
2577
+ event = "mousemove.jPlayer",
2578
+ namespace = ".jPlayerAutohide",
2579
+ eventType = event + namespace,
2580
+ handler = function() {
2581
+ self.css.jq.gui.fadeIn(self.options.autohide.fadeIn, function() {
2582
+ clearTimeout(self.internal.autohideId);
2583
+ self.internal.autohideId = setTimeout( function() {
2584
+ self.css.jq.gui.fadeOut(self.options.autohide.fadeOut);
2585
+ }, self.options.autohide.hold);
2586
+ });
2587
+ };
2588
+
2589
+ if(this.css.jq.gui.length) {
2590
+
2591
+ // End animations first so that its callback is executed now.
2592
+ // Otherwise an in progress fadeIn animation still has the callback to fadeOut again.
2593
+ this.css.jq.gui.stop(true, true);
2594
+
2595
+ // Removes the fadeOut operation from the fadeIn callback.
2596
+ clearTimeout(this.internal.autohideId);
2597
+
2598
+ this.element.unbind(namespace);
2599
+ this.css.jq.gui.unbind(namespace);
2600
+
2601
+ if(!this.status.nativeVideoControls) {
2602
+ if(this.options.fullWindow && this.options.autohide.full || !this.options.fullWindow && this.options.autohide.restored) {
2603
+ this.element.bind(eventType, handler);
2604
+ this.css.jq.gui.bind(eventType, handler);
2605
+ this.css.jq.gui.hide();
2606
+ } else {
2607
+ this.css.jq.gui.show();
2608
+ }
2609
+ } else {
2610
+ this.css.jq.gui.hide();
2611
+ }
2612
+ }
2613
+ },
2614
+ fullScreen: function(event) {
2615
+ var guiAction = typeof event === "object"; // Flags GUI click events so we know this was not a direct command, but an action taken by the user on the GUI.
2616
+ if(guiAction && this.options.useStateClassSkin && this.options.fullScreen) {
2617
+ this._setOption("fullScreen", false);
2618
+ } else {
2619
+ this._setOption("fullScreen", true);
2620
+ }
2621
+ },
2622
+ restoreScreen: function() {
2623
+ this._setOption("fullScreen", false);
2624
+ },
2625
+ _fullscreenAddEventListeners: function() {
2626
+ var self = this,
2627
+ fs = $.jPlayer.nativeFeatures.fullscreen;
2628
+
2629
+ if(fs.api.fullscreenEnabled) {
2630
+ if(fs.event.fullscreenchange) {
2631
+ // Create the event handler function and store it for removal.
2632
+ if(typeof this.internal.fullscreenchangeHandler !== 'function') {
2633
+ this.internal.fullscreenchangeHandler = function() {
2634
+ self._fullscreenchange();
2635
+ };
2636
+ }
2637
+ document.addEventListener(fs.event.fullscreenchange, this.internal.fullscreenchangeHandler, false);
2638
+ }
2639
+ // No point creating handler for fullscreenerror.
2640
+ // Either logic avoids fullscreen occurring (w3c/moz), or their is no event on the browser (webkit).
2641
+ }
2642
+ },
2643
+ _fullscreenRemoveEventListeners: function() {
2644
+ var fs = $.jPlayer.nativeFeatures.fullscreen;
2645
+ if(this.internal.fullscreenchangeHandler) {
2646
+ document.removeEventListener(fs.event.fullscreenchange, this.internal.fullscreenchangeHandler, false);
2647
+ }
2648
+ },
2649
+ _fullscreenchange: function() {
2650
+ // If nothing is fullscreen, then we cannot be in fullscreen mode.
2651
+ if(this.options.fullScreen && !$.jPlayer.nativeFeatures.fullscreen.api.fullscreenElement()) {
2652
+ this._setOption("fullScreen", false);
2653
+ }
2654
+ },
2655
+ _requestFullscreen: function() {
2656
+ // Either the container or the jPlayer div
2657
+ var e = this.ancestorJq.length ? this.ancestorJq[0] : this.element[0],
2658
+ fs = $.jPlayer.nativeFeatures.fullscreen;
2659
+
2660
+ // This method needs the video element. For iOS and Android.
2661
+ if(fs.used.webkitVideo) {
2662
+ e = this.htmlElement.video;
2663
+ }
2664
+
2665
+ if(fs.api.fullscreenEnabled) {
2666
+ fs.api.requestFullscreen(e);
2667
+ }
2668
+ },
2669
+ _exitFullscreen: function() {
2670
+
2671
+ var fs = $.jPlayer.nativeFeatures.fullscreen,
2672
+ e;
2673
+
2674
+ // This method needs the video element. For iOS and Android.
2675
+ if(fs.used.webkitVideo) {
2676
+ e = this.htmlElement.video;
2677
+ }
2678
+
2679
+ if(fs.api.fullscreenEnabled) {
2680
+ fs.api.exitFullscreen(e);
2681
+ }
2682
+ },
2683
+ _html_initMedia: function(media) {
2684
+ // Remove any existing track elements
2685
+ var $media = $(this.htmlElement.media).empty();
2686
+
2687
+ // Create any track elements given with the media, as an Array of track Objects.
2688
+ $.each(media.track || [], function(i,v) {
2689
+ var track = document.createElement('track');
2690
+ track.setAttribute("kind", v.kind ? v.kind : "");
2691
+ track.setAttribute("src", v.src ? v.src : "");
2692
+ track.setAttribute("srclang", v.srclang ? v.srclang : "");
2693
+ track.setAttribute("label", v.label ? v.label : "");
2694
+ if(v.def) {
2695
+ track.setAttribute("default", v.def);
2696
+ }
2697
+ $media.append(track);
2698
+ });
2699
+
2700
+ this.htmlElement.media.src = this.status.src;
2701
+
2702
+ if(this.options.preload !== 'none') {
2703
+ this._html_load(); // See function for comments
2704
+ }
2705
+ this._trigger($.jPlayer.event.timeupdate); // The flash generates this event for its solution.
2706
+ },
2707
+ _html_setFormat: function(media) {
2708
+ var self = this;
2709
+ // Always finds a format due to checks in setMedia()
2710
+ $.each(this.formats, function(priority, format) {
2711
+ if(self.html.support[format] && media[format]) {
2712
+ self.status.src = media[format];
2713
+ self.status.format[format] = true;
2714
+ self.status.formatType = format;
2715
+ return false;
2716
+ }
2717
+ });
2718
+ },
2719
+ _html_setAudio: function(media) {
2720
+ this._html_setFormat(media);
2721
+ this.htmlElement.media = this.htmlElement.audio;
2722
+ this._html_initMedia(media);
2723
+ },
2724
+ _html_setVideo: function(media) {
2725
+ this._html_setFormat(media);
2726
+ if(this.status.nativeVideoControls) {
2727
+ this.htmlElement.video.poster = this._validString(media.poster) ? media.poster : "";
2728
+ }
2729
+ this.htmlElement.media = this.htmlElement.video;
2730
+ this._html_initMedia(media);
2731
+ },
2732
+ _html_resetMedia: function() {
2733
+ if(this.htmlElement.media) {
2734
+ if(this.htmlElement.media.id === this.internal.video.id && !this.status.nativeVideoControls) {
2735
+ this.internal.video.jq.css({'width':'0px', 'height':'0px'});
2736
+ }
2737
+ this.htmlElement.media.pause();
2738
+ }
2739
+ },
2740
+ _html_clearMedia: function() {
2741
+ if(this.htmlElement.media) {
2742
+ this.htmlElement.media.src = "about:blank";
2743
+ // The following load() is only required for Firefox 3.6 (PowerMacs).
2744
+ // Recent HTMl5 browsers only require the src change. Due to changes in W3C spec and load() effect.
2745
+ this.htmlElement.media.load(); // Stops an old, "in progress" download from continuing the download. Triggers the loadstart, error and emptied events, due to the empty src. Also an abort event if a download was in progress.
2746
+ }
2747
+ },
2748
+ _html_load: function() {
2749
+ // This function remains to allow the early HTML5 browsers to work, such as Firefox 3.6
2750
+ // A change in the W3C spec for the media.load() command means that this is no longer necessary.
2751
+ // This command should be removed and actually causes minor undesirable effects on some browsers. Such as loading the whole file and not only the metadata.
2752
+ if(this.status.waitForLoad) {
2753
+ this.status.waitForLoad = false;
2754
+ this.htmlElement.media.load();
2755
+ }
2756
+ clearTimeout(this.internal.htmlDlyCmdId);
2757
+ },
2758
+ _html_play: function(time) {
2759
+ var self = this,
2760
+ media = this.htmlElement.media;
2761
+
2762
+ this.androidFix.pause = false; // Cancel the pause fix.
2763
+
2764
+ this._html_load(); // Loads if required and clears any delayed commands.
2765
+
2766
+ // Setup the Android Fix.
2767
+ if(this.androidFix.setMedia) {
2768
+ this.androidFix.play = true;
2769
+ this.androidFix.time = time;
2770
+
2771
+ } else if(!isNaN(time)) {
2772
+
2773
+ // Attempt to play it, since iOS has been ignoring commands
2774
+ if(this.internal.cmdsIgnored) {
2775
+ media.play();
2776
+ }
2777
+
2778
+ try {
2779
+ // !media.seekable is for old HTML5 browsers, like Firefox 3.6.
2780
+ // Checking seekable.length is important for iOS6 to work with setMedia().play(time)
2781
+ if(!media.seekable || typeof media.seekable === "object" && media.seekable.length > 0) {
2782
+ media.currentTime = time;
2783
+ media.play();
2784
+ } else {
2785
+ throw 1;
2786
+ }
2787
+ } catch(err) {
2788
+ this.internal.htmlDlyCmdId = setTimeout(function() {
2789
+ self.play(time);
2790
+ }, 250);
2791
+ return; // Cancel execution and wait for the delayed command.
2792
+ }
2793
+ } else {
2794
+ media.play();
2795
+ }
2796
+ this._html_checkWaitForPlay();
2797
+ },
2798
+ _html_pause: function(time) {
2799
+ var self = this,
2800
+ media = this.htmlElement.media;
2801
+
2802
+ this.androidFix.play = false; // Cancel the play fix.
2803
+
2804
+ if(time > 0) { // We do not want the stop() command, which does pause(0), causing a load operation.
2805
+ this._html_load(); // Loads if required and clears any delayed commands.
2806
+ } else {
2807
+ clearTimeout(this.internal.htmlDlyCmdId);
2808
+ }
2809
+
2810
+ // Order of these commands is important for Safari (Win) and IE9. Pause then change currentTime.
2811
+ media.pause();
2812
+
2813
+ // Setup the Android Fix.
2814
+ if(this.androidFix.setMedia) {
2815
+ this.androidFix.pause = true;
2816
+ this.androidFix.time = time;
2817
+
2818
+ } else if(!isNaN(time)) {
2819
+ try {
2820
+ if(!media.seekable || typeof media.seekable === "object" && media.seekable.length > 0) {
2821
+ media.currentTime = time;
2822
+ } else {
2823
+ throw 1;
2824
+ }
2825
+ } catch(err) {
2826
+ this.internal.htmlDlyCmdId = setTimeout(function() {
2827
+ self.pause(time);
2828
+ }, 250);
2829
+ return; // Cancel execution and wait for the delayed command.
2830
+ }
2831
+ }
2832
+ if(time > 0) { // Avoids a setMedia() followed by stop() or pause(0) hiding the video play button.
2833
+ this._html_checkWaitForPlay();
2834
+ }
2835
+ },
2836
+ _html_playHead: function(percent) {
2837
+ var self = this,
2838
+ media = this.htmlElement.media;
2839
+
2840
+ this._html_load(); // Loads if required and clears any delayed commands.
2841
+
2842
+ // This playHead() method needs a refactor to apply the android fix.
2843
+
2844
+ try {
2845
+ if(typeof media.seekable === "object" && media.seekable.length > 0) {
2846
+ media.currentTime = percent * media.seekable.end(media.seekable.length-1) / 100;
2847
+ } else if(media.duration > 0 && !isNaN(media.duration)) {
2848
+ media.currentTime = percent * media.duration / 100;
2849
+ } else {
2850
+ throw "e";
2851
+ }
2852
+ } catch(err) {
2853
+ this.internal.htmlDlyCmdId = setTimeout(function() {
2854
+ self.playHead(percent);
2855
+ }, 250);
2856
+ return; // Cancel execution and wait for the delayed command.
2857
+ }
2858
+ if(!this.status.waitForLoad) {
2859
+ this._html_checkWaitForPlay();
2860
+ }
2861
+ },
2862
+ _html_checkWaitForPlay: function() {
2863
+ if(this.status.waitForPlay) {
2864
+ this.status.waitForPlay = false;
2865
+ if(this.css.jq.videoPlay.length) {
2866
+ this.css.jq.videoPlay.hide();
2867
+ }
2868
+ if(this.status.video) {
2869
+ this.internal.poster.jq.hide();
2870
+ this.internal.video.jq.css({'width': this.status.width, 'height': this.status.height});
2871
+ }
2872
+ }
2873
+ },
2874
+ _html_setProperty: function(property, value) {
2875
+ if(this.html.audio.available) {
2876
+ this.htmlElement.audio[property] = value;
2877
+ }
2878
+ if(this.html.video.available) {
2879
+ this.htmlElement.video[property] = value;
2880
+ }
2881
+ },
2882
+ _flash_setAudio: function(media) {
2883
+ var self = this;
2884
+ try {
2885
+ // Always finds a format due to checks in setMedia()
2886
+ $.each(this.formats, function(priority, format) {
2887
+ if(self.flash.support[format] && media[format]) {
2888
+ switch (format) {
2889
+ case "m4a" :
2890
+ case "fla" :
2891
+ self._getMovie().fl_setAudio_m4a(media[format]);
2892
+ break;
2893
+ case "mp3" :
2894
+ self._getMovie().fl_setAudio_mp3(media[format]);
2895
+ break;
2896
+ case "rtmpa":
2897
+ self._getMovie().fl_setAudio_rtmp(media[format]);
2898
+ break;
2899
+ }
2900
+ self.status.src = media[format];
2901
+ self.status.format[format] = true;
2902
+ self.status.formatType = format;
2903
+ return false;
2904
+ }
2905
+ });
2906
+
2907
+ if(this.options.preload === 'auto') {
2908
+ this._flash_load();
2909
+ this.status.waitForLoad = false;
2910
+ }
2911
+ } catch(err) { this._flashError(err); }
2912
+ },
2913
+ _flash_setVideo: function(media) {
2914
+ var self = this;
2915
+ try {
2916
+ // Always finds a format due to checks in setMedia()
2917
+ $.each(this.formats, function(priority, format) {
2918
+ if(self.flash.support[format] && media[format]) {
2919
+ switch (format) {
2920
+ case "m4v" :
2921
+ case "flv" :
2922
+ self._getMovie().fl_setVideo_m4v(media[format]);
2923
+ break;
2924
+ case "rtmpv":
2925
+ self._getMovie().fl_setVideo_rtmp(media[format]);
2926
+ break;
2927
+ }
2928
+ self.status.src = media[format];
2929
+ self.status.format[format] = true;
2930
+ self.status.formatType = format;
2931
+ return false;
2932
+ }
2933
+ });
2934
+
2935
+ if(this.options.preload === 'auto') {
2936
+ this._flash_load();
2937
+ this.status.waitForLoad = false;
2938
+ }
2939
+ } catch(err) { this._flashError(err); }
2940
+ },
2941
+ _flash_resetMedia: function() {
2942
+ this.internal.flash.jq.css({'width':'0px', 'height':'0px'}); // Must do via CSS as setting attr() to zero causes a jQuery error in IE.
2943
+ this._flash_pause(NaN);
2944
+ },
2945
+ _flash_clearMedia: function() {
2946
+ try {
2947
+ this._getMovie().fl_clearMedia();
2948
+ } catch(err) { this._flashError(err); }
2949
+ },
2950
+ _flash_load: function() {
2951
+ try {
2952
+ this._getMovie().fl_load();
2953
+ } catch(err) { this._flashError(err); }
2954
+ this.status.waitForLoad = false;
2955
+ },
2956
+ _flash_play: function(time) {
2957
+ try {
2958
+ this._getMovie().fl_play(time);
2959
+ } catch(err) { this._flashError(err); }
2960
+ this.status.waitForLoad = false;
2961
+ this._flash_checkWaitForPlay();
2962
+ },
2963
+ _flash_pause: function(time) {
2964
+ try {
2965
+ this._getMovie().fl_pause(time);
2966
+ } catch(err) { this._flashError(err); }
2967
+ if(time > 0) { // Avoids a setMedia() followed by stop() or pause(0) hiding the video play button.
2968
+ this.status.waitForLoad = false;
2969
+ this._flash_checkWaitForPlay();
2970
+ }
2971
+ },
2972
+ _flash_playHead: function(p) {
2973
+ try {
2974
+ this._getMovie().fl_play_head(p);
2975
+ } catch(err) { this._flashError(err); }
2976
+ if(!this.status.waitForLoad) {
2977
+ this._flash_checkWaitForPlay();
2978
+ }
2979
+ },
2980
+ _flash_checkWaitForPlay: function() {
2981
+ if(this.status.waitForPlay) {
2982
+ this.status.waitForPlay = false;
2983
+ if(this.css.jq.videoPlay.length) {
2984
+ this.css.jq.videoPlay.hide();
2985
+ }
2986
+ if(this.status.video) {
2987
+ this.internal.poster.jq.hide();
2988
+ this.internal.flash.jq.css({'width': this.status.width, 'height': this.status.height});
2989
+ }
2990
+ }
2991
+ },
2992
+ _flash_volume: function(v) {
2993
+ try {
2994
+ this._getMovie().fl_volume(v);
2995
+ } catch(err) { this._flashError(err); }
2996
+ },
2997
+ _flash_mute: function(m) {
2998
+ try {
2999
+ this._getMovie().fl_mute(m);
3000
+ } catch(err) { this._flashError(err); }
3001
+ },
3002
+ _getMovie: function() {
3003
+ return document[this.internal.flash.id];
3004
+ },
3005
+ _getFlashPluginVersion: function() {
3006
+
3007
+ // _getFlashPluginVersion() code influenced by:
3008
+ // - FlashReplace 1.01: http://code.google.com/p/flashreplace/
3009
+ // - SWFObject 2.2: http://code.google.com/p/swfobject/
3010
+
3011
+ var version = 0,
3012
+ flash;
3013
+ if(window.ActiveXObject) {
3014
+ try {
3015
+ flash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
3016
+ if (flash) { // flash will return null when ActiveX is disabled
3017
+ var v = flash.GetVariable("$version");
3018
+ if(v) {
3019
+ v = v.split(" ")[1].split(",");
3020
+ version = parseInt(v[0], 10) + "." + parseInt(v[1], 10);
3021
+ }
3022
+ }
3023
+ } catch(e) {}
3024
+ }
3025
+ else if(navigator.plugins && navigator.mimeTypes.length > 0) {
3026
+ flash = navigator.plugins["Shockwave Flash"];
3027
+ if(flash) {
3028
+ version = navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/, "$1");
3029
+ }
3030
+ }
3031
+ return version * 1; // Converts to a number
3032
+ },
3033
+ _checkForFlash: function (version) {
3034
+ var flashOk = false;
3035
+ if(this._getFlashPluginVersion() >= version) {
3036
+ flashOk = true;
3037
+ }
3038
+ return flashOk;
3039
+ },
3040
+ _validString: function(url) {
3041
+ return (url && typeof url === "string"); // Empty strings return false
3042
+ },
3043
+ _limitValue: function(value, min, max) {
3044
+ return (value < min) ? min : ((value > max) ? max : value);
3045
+ },
3046
+ _urlNotSetError: function(context) {
3047
+ this._error( {
3048
+ type: $.jPlayer.error.URL_NOT_SET,
3049
+ context: context,
3050
+ message: $.jPlayer.errorMsg.URL_NOT_SET,
3051
+ hint: $.jPlayer.errorHint.URL_NOT_SET
3052
+ });
3053
+ },
3054
+ _flashError: function(error) {
3055
+ var errorType;
3056
+ if(!this.internal.ready) {
3057
+ errorType = "FLASH";
3058
+ } else {
3059
+ errorType = "FLASH_DISABLED";
3060
+ }
3061
+ this._error( {
3062
+ type: $.jPlayer.error[errorType],
3063
+ context: this.internal.flash.swf,
3064
+ message: $.jPlayer.errorMsg[errorType] + error.message,
3065
+ hint: $.jPlayer.errorHint[errorType]
3066
+ });
3067
+ // Allow the audio player to recover if display:none and then shown again, or with position:fixed on Firefox.
3068
+ // This really only affects audio in a media player, as an audio player could easily move the jPlayer element away from such issues.
3069
+ this.internal.flash.jq.css({'width':'1px', 'height':'1px'});
3070
+ },
3071
+ _error: function(error) {
3072
+ this._trigger($.jPlayer.event.error, error);
3073
+ if(this.options.errorAlerts) {
3074
+ this._alert("Error!" + (error.message ? "\n" + error.message : "") + (error.hint ? "\n" + error.hint : "") + "\nContext: " + error.context);
3075
+ }
3076
+ },
3077
+ _warning: function(warning) {
3078
+ this._trigger($.jPlayer.event.warning, undefined, warning);
3079
+ if(this.options.warningAlerts) {
3080
+ this._alert("Warning!" + (warning.message ? "\n" + warning.message : "") + (warning.hint ? "\n" + warning.hint : "") + "\nContext: " + warning.context);
3081
+ }
3082
+ },
3083
+ _alert: function(message) {
3084
+ var msg = "jPlayer " + this.version.script + " : id='" + this.internal.self.id +"' : " + message;
3085
+ if(!this.options.consoleAlerts) {
3086
+ alert(msg);
3087
+ } else if(window.console && window.console.log) {
3088
+ window.console.log(msg);
3089
+ }
3090
+ },
3091
+ _emulateHtmlBridge: function() {
3092
+ var self = this;
3093
+
3094
+ // Emulate methods on jPlayer's DOM element.
3095
+ $.each( $.jPlayer.emulateMethods.split(/\s+/g), function(i, name) {
3096
+ self.internal.domNode[name] = function(arg) {
3097
+ self[name](arg);
3098
+ };
3099
+
3100
+ });
3101
+
3102
+ // Bubble jPlayer events to its DOM element.
3103
+ $.each($.jPlayer.event, function(eventName,eventType) {
3104
+ var nativeEvent = true;
3105
+ $.each( $.jPlayer.reservedEvent.split(/\s+/g), function(i, name) {
3106
+ if(name === eventName) {
3107
+ nativeEvent = false;
3108
+ return false;
3109
+ }
3110
+ });
3111
+ if(nativeEvent) {
3112
+ self.element.bind(eventType + ".jPlayer.jPlayerHtml", function() { // With .jPlayer & .jPlayerHtml namespaces.
3113
+ self._emulateHtmlUpdate();
3114
+ var domEvent = document.createEvent("Event");
3115
+ domEvent.initEvent(eventName, false, true);
3116
+ self.internal.domNode.dispatchEvent(domEvent);
3117
+ });
3118
+ }
3119
+ // The error event would require a special case
3120
+ });
3121
+
3122
+ // IE9 has a readyState property on all elements. The document should have it, but all (except media) elements inherit it in IE9. This conflicts with Popcorn, which polls the readyState.
3123
+ },
3124
+ _emulateHtmlUpdate: function() {
3125
+ var self = this;
3126
+
3127
+ $.each( $.jPlayer.emulateStatus.split(/\s+/g), function(i, name) {
3128
+ self.internal.domNode[name] = self.status[name];
3129
+ });
3130
+ $.each( $.jPlayer.emulateOptions.split(/\s+/g), function(i, name) {
3131
+ self.internal.domNode[name] = self.options[name];
3132
+ });
3133
+ },
3134
+ _destroyHtmlBridge: function() {
3135
+ var self = this;
3136
+
3137
+ // Bridge event handlers are also removed by destroy() through .jPlayer namespace.
3138
+ this.element.unbind(".jPlayerHtml"); // Remove all event handlers created by the jPlayer bridge. So you can change the emulateHtml option.
3139
+
3140
+ // Remove the methods and properties
3141
+ var emulated = $.jPlayer.emulateMethods + " " + $.jPlayer.emulateStatus + " " + $.jPlayer.emulateOptions;
3142
+ $.each( emulated.split(/\s+/g), function(i, name) {
3143
+ delete self.internal.domNode[name];
3144
+ });
3145
+ }
3146
+ };
3147
+
3148
+ $.jPlayer.error = {
3149
+ FLASH: "e_flash",
3150
+ FLASH_DISABLED: "e_flash_disabled",
3151
+ NO_SOLUTION: "e_no_solution",
3152
+ NO_SUPPORT: "e_no_support",
3153
+ URL: "e_url",
3154
+ URL_NOT_SET: "e_url_not_set",
3155
+ VERSION: "e_version"
3156
+ };
3157
+
3158
+ $.jPlayer.errorMsg = {
3159
+ FLASH: "jPlayer's Flash fallback is not configured correctly, or a command was issued before the jPlayer Ready event. Details: ", // Used in: _flashError()
3160
+ FLASH_DISABLED: "jPlayer's Flash fallback has been disabled by the browser due to the CSS rules you have used. Details: ", // Used in: _flashError()
3161
+ NO_SOLUTION: "No solution can be found by jPlayer in this browser. Neither HTML nor Flash can be used.", // Used in: _init()
3162
+ NO_SUPPORT: "It is not possible to play any media format provided in setMedia() on this browser using your current options.", // Used in: setMedia()
3163
+ URL: "Media URL could not be loaded.", // Used in: jPlayerFlashEvent() and _addHtmlEventListeners()
3164
+ URL_NOT_SET: "Attempt to issue media playback commands, while no media url is set.", // Used in: load(), play(), pause(), stop() and playHead()
3165
+ VERSION: "jPlayer " + $.jPlayer.prototype.version.script + " needs Jplayer.swf version " + $.jPlayer.prototype.version.needFlash + " but found " // Used in: jPlayerReady()
3166
+ };
3167
+
3168
+ $.jPlayer.errorHint = {
3169
+ FLASH: "Check your swfPath option and that Jplayer.swf is there.",
3170
+ FLASH_DISABLED: "Check that you have not display:none; the jPlayer entity or any ancestor.",
3171
+ NO_SOLUTION: "Review the jPlayer options: support and supplied.",
3172
+ NO_SUPPORT: "Video or audio formats defined in the supplied option are missing.",
3173
+ URL: "Check media URL is valid.",
3174
+ URL_NOT_SET: "Use setMedia() to set the media URL.",
3175
+ VERSION: "Update jPlayer files."
3176
+ };
3177
+
3178
+ $.jPlayer.warning = {
3179
+ CSS_SELECTOR_COUNT: "e_css_selector_count",
3180
+ CSS_SELECTOR_METHOD: "e_css_selector_method",
3181
+ CSS_SELECTOR_STRING: "e_css_selector_string",
3182
+ OPTION_KEY: "e_option_key"
3183
+ };
3184
+
3185
+ $.jPlayer.warningMsg = {
3186
+ CSS_SELECTOR_COUNT: "The number of css selectors found did not equal one: ",
3187
+ CSS_SELECTOR_METHOD: "The methodName given in jPlayer('cssSelector') is not a valid jPlayer method.",
3188
+ CSS_SELECTOR_STRING: "The methodCssSelector given in jPlayer('cssSelector') is not a String or is empty.",
3189
+ OPTION_KEY: "The option requested in jPlayer('option') is undefined."
3190
+ };
3191
+
3192
+ $.jPlayer.warningHint = {
3193
+ CSS_SELECTOR_COUNT: "Check your css selector and the ancestor.",
3194
+ CSS_SELECTOR_METHOD: "Check your method name.",
3195
+ CSS_SELECTOR_STRING: "Check your css selector is a string.",
3196
+ OPTION_KEY: "Check your option name."
3197
+ };
3198
  }));
js/jquery.jplayer.min.2.7.1.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):e(t.jQuery?t.jQuery:t.Zepto)}(this,function(t,e){t.fn.jPlayer=function(s){var i="jPlayer",a="string"==typeof s,n=Array.prototype.slice.call(arguments,1),o=this;return s=!a&&n.length?t.extend.apply(null,[!0,s].concat(n)):s,a&&"_"===s.charAt(0)?o:(this.each(a?function(){var a=t(this).data(i),r=a&&t.isFunction(a[s])?a[s].apply(a,n):a;return r!==a&&r!==e?(o=r,!1):void 0}:function(){var e=t(this).data(i);e?e.option(s||{}):t(this).data(i,new t.jPlayer(s,this))}),o)},t.jPlayer=function(e,s){if(arguments.length){this.element=t(s),this.options=t.extend(!0,{},this.options,e);var i=this;this.element.bind("remove.jPlayer",function(){i.destroy()}),this._init()}},"function"!=typeof t.fn.stop&&(t.fn.stop=function(){}),t.jPlayer.emulateMethods="load play pause",t.jPlayer.emulateStatus="src readyState networkState currentTime duration paused ended playbackRate",t.jPlayer.emulateOptions="muted volume",t.jPlayer.reservedEvent="ready flashreset resize repeat error warning",t.jPlayer.event={},t.each(["ready","setmedia","flashreset","resize","repeat","click","error","warning","loadstart","progress","suspend","abort","emptied","stalled","play","pause","loadedmetadata","loadeddata","waiting","playing","canplay","canplaythrough","seeking","seeked","timeupdate","ended","ratechange","durationchange","volumechange"],function(){t.jPlayer.event[this]="jPlayer_"+this}),t.jPlayer.htmlEvent=["loadstart","abort","emptied","stalled","loadedmetadata","canplay","canplaythrough"],t.jPlayer.pause=function(){t.each(t.jPlayer.prototype.instances,function(t,e){e.data("jPlayer").status.srcSet&&e.jPlayer("pause")})},t.jPlayer.timeFormat={showHour:!1,showMin:!0,showSec:!0,padHour:!1,padMin:!0,padSec:!0,sepHour:":",sepMin:":",sepSec:""};var s=function(){this.init()};s.prototype={init:function(){this.options={timeFormat:t.jPlayer.timeFormat}},time:function(t){t=t&&"number"==typeof t?t:0;var e=new Date(1e3*t),s=e.getUTCHours(),i=this.options.timeFormat.showHour?e.getUTCMinutes():e.getUTCMinutes()+60*s,a=this.options.timeFormat.showMin?e.getUTCSeconds():e.getUTCSeconds()+60*i,n=this.options.timeFormat.padHour&&10>s?"0"+s:s,o=this.options.timeFormat.padMin&&10>i?"0"+i:i,r=this.options.timeFormat.padSec&&10>a?"0"+a:a,l="";return l+=this.options.timeFormat.showHour?n+this.options.timeFormat.sepHour:"",l+=this.options.timeFormat.showMin?o+this.options.timeFormat.sepMin:"",l+=this.options.timeFormat.showSec?r+this.options.timeFormat.sepSec:""}};var i=new s;t.jPlayer.convertTime=function(t){return i.time(t)},t.jPlayer.uaBrowser=function(t){var e=t.toLowerCase(),s=/(webkit)[ \/]([\w.]+)/,i=/(opera)(?:.*version)?[ \/]([\w.]+)/,a=/(msie) ([\w.]+)/,n=/(mozilla)(?:.*? rv:([\w.]+))?/,o=s.exec(e)||i.exec(e)||a.exec(e)||e.indexOf("compatible")<0&&n.exec(e)||[];return{browser:o[1]||"",version:o[2]||"0"}},t.jPlayer.uaPlatform=function(t){var e=t.toLowerCase(),s=/(ipad|iphone|ipod|android|blackberry|playbook|windows ce|webos)/,i=/(ipad|playbook)/,a=/(android)/,n=/(mobile)/,o=s.exec(e)||[],r=i.exec(e)||!n.exec(e)&&a.exec(e)||[];return o[1]&&(o[1]=o[1].replace(/\s/g,"_")),{platform:o[1]||"",tablet:r[1]||""}},t.jPlayer.browser={},t.jPlayer.platform={};var a=t.jPlayer.uaBrowser(navigator.userAgent);a.browser&&(t.jPlayer.browser[a.browser]=!0,t.jPlayer.browser.version=a.version);var n=t.jPlayer.uaPlatform(navigator.userAgent);n.platform&&(t.jPlayer.platform[n.platform]=!0,t.jPlayer.platform.mobile=!n.tablet,t.jPlayer.platform.tablet=!!n.tablet),t.jPlayer.getDocMode=function(){var e;return t.jPlayer.browser.msie&&(document.documentMode?e=document.documentMode:(e=5,document.compatMode&&"CSS1Compat"===document.compatMode&&(e=7))),e},t.jPlayer.browser.documentMode=t.jPlayer.getDocMode(),t.jPlayer.nativeFeatures={init:function(){var t,e,s,i=document,a=i.createElement("video"),n={w3c:["fullscreenEnabled","fullscreenElement","requestFullscreen","exitFullscreen","fullscreenchange","fullscreenerror"],moz:["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror"],webkit:["","webkitCurrentFullScreenElement","webkitRequestFullScreen","webkitCancelFullScreen","webkitfullscreenchange",""],webkitVideo:["webkitSupportsFullscreen","webkitDisplayingFullscreen","webkitEnterFullscreen","webkitExitFullscreen","",""]},o=["w3c","moz","webkit","webkitVideo"];for(this.fullscreen=t={support:{w3c:!!i[n.w3c[0]],moz:!!i[n.moz[0]],webkit:"function"==typeof i[n.webkit[3]],webkitVideo:"function"==typeof a[n.webkitVideo[2]]},used:{}},e=0,s=o.length;s>e;e++){var r=o[e];if(t.support[r]){t.spec=r,t.used[r]=!0;break}}if(t.spec){var l=n[t.spec];t.api={fullscreenEnabled:!0,fullscreenElement:function(t){return t=t?t:i,t[l[1]]},requestFullscreen:function(t){return t[l[2]]()},exitFullscreen:function(t){return t=t?t:i,t[l[3]]()}},t.event={fullscreenchange:l[4],fullscreenerror:l[5]}}else t.api={fullscreenEnabled:!1,fullscreenElement:function(){return null},requestFullscreen:function(){},exitFullscreen:function(){}},t.event={}}},t.jPlayer.nativeFeatures.init(),t.jPlayer.focus=null,t.jPlayer.keyIgnoreElementNames="A INPUT TEXTAREA SELECT BUTTON";var o=function(e){var s,i=t.jPlayer.focus,a=document.activeElement;i&&("undefined"!=typeof a?null!==a&&"BODY"!==a.nodeName.toUpperCase()&&(s=!0):t.each(t.jPlayer.keyIgnoreElementNames.split(/\s+/g),function(t,i){return e.target.nodeName.toUpperCase()===i.toUpperCase()?(s=!0,!1):void 0}),s||t.each(i.options.keyBindings,function(s,a){return a&&e.which===a.key&&t.isFunction(a.fn)?(e.preventDefault(),a.fn(i),!1):void 0}))};t.jPlayer.keys=function(e){var s="keydown.jPlayer";t(document.documentElement).unbind(s),e&&t(document.documentElement).bind(s,o)},t.jPlayer.keys(!0),t.jPlayer.prototype={count:0,version:{script:"2.7.1",needFlash:"2.7.0",flash:"unknown"},options:{swfPath:"js",solution:"html, flash",supplied:"mp3",preload:"metadata",volume:.8,muted:!1,remainingDuration:!1,toggleDuration:!1,captureDuration:!0,playbackRate:1,defaultPlaybackRate:1,minPlaybackRate:.5,maxPlaybackRate:4,wmode:"opaque",backgroundColor:"#000000",cssSelectorAncestor:"#jp_container_1",cssSelector:{videoPlay:".jp-video-play",play:".jp-play",pause:".jp-pause",stop:".jp-stop",seekBar:".jp-seek-bar",playBar:".jp-play-bar",mute:".jp-mute",unmute:".jp-unmute",volumeBar:".jp-volume-bar",volumeBarValue:".jp-volume-bar-value",volumeMax:".jp-volume-max",playbackRateBar:".jp-playback-rate-bar",playbackRateBarValue:".jp-playback-rate-bar-value",currentTime:".jp-current-time",duration:".jp-duration",title:".jp-title",fullScreen:".jp-full-screen",restoreScreen:".jp-restore-screen",repeat:".jp-repeat",repeatOff:".jp-repeat-off",gui:".jp-gui",noSolution:".jp-no-solution"},stateClass:{playing:"jp-state-playing",seeking:"jp-state-seeking",muted:"jp-state-muted",looped:"jp-state-looped",fullScreen:"jp-state-full-screen"},useStateClassSkin:!1,autoBlur:!0,smoothPlayBar:!1,fullScreen:!1,fullWindow:!1,autohide:{restored:!1,full:!0,fadeIn:200,fadeOut:600,hold:1e3},loop:!1,repeat:function(e){e.jPlayer.options.loop?t(this).unbind(".jPlayerRepeat").bind(t.jPlayer.event.ended+".jPlayer.jPlayerRepeat",function(){t(this).jPlayer("play")}):t(this).unbind(".jPlayerRepeat")},nativeVideoControls:{},noFullWindow:{msie:/msie [0-6]\./,ipad:/ipad.*?os [0-4]\./,iphone:/iphone/,ipod:/ipod/,android_pad:/android [0-3]\.(?!.*?mobile)/,android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,iemobile:/iemobile/,webos:/webos/},noVolume:{ipad:/ipad/,iphone:/iphone/,ipod:/ipod/,android_pad:/android(?!.*?mobile)/,android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,iemobile:/iemobile/,webos:/webos/,playbook:/playbook/},timeFormat:{},keyEnabled:!1,audioFullScreen:!1,keyBindings:{play:{key:32,fn:function(t){t.status.paused?t.play():t.pause()}},fullScreen:{key:13,fn:function(t){(t.status.video||t.options.audioFullScreen)&&t._setOption("fullScreen",!t.options.fullScreen)}},muted:{key:8,fn:function(t){t._muted(!t.options.muted)}},volumeUp:{key:38,fn:function(t){t.volume(t.options.volume+.1)}},volumeDown:{key:40,fn:function(t){t.volume(t.options.volume-.1)}}},verticalVolume:!1,verticalPlaybackRate:!1,globalVolume:!1,idPrefix:"jp",noConflict:"jQuery",emulateHtml:!1,consoleAlerts:!0,errorAlerts:!1,warningAlerts:!1},optionsAudio:{size:{width:"0px",height:"0px",cssClass:""},sizeFull:{width:"0px",height:"0px",cssClass:""}},optionsVideo:{size:{width:"480px",height:"270px",cssClass:"jp-video-270p"},sizeFull:{width:"100%",height:"100%",cssClass:"jp-video-full"}},instances:{},status:{src:"",media:{},paused:!0,format:{},formatType:"",waitForPlay:!0,waitForLoad:!0,srcSet:!1,video:!1,seekPercent:0,currentPercentRelative:0,currentPercentAbsolute:0,currentTime:0,duration:0,remaining:0,videoWidth:0,videoHeight:0,readyState:0,networkState:0,playbackRate:1,ended:0},internal:{ready:!1},solution:{html:!0,flash:!0},format:{mp3:{codec:"audio/mpeg",flashCanPlay:!0,media:"audio"},m4a:{codec:'audio/mp4; codecs="mp4a.40.2"',flashCanPlay:!0,media:"audio"},m3u8a:{codec:'application/vnd.apple.mpegurl; codecs="mp4a.40.2"',flashCanPlay:!1,media:"audio"},m3ua:{codec:"audio/mpegurl",flashCanPlay:!1,media:"audio"},oga:{codec:'audio/ogg; codecs="vorbis, opus"',flashCanPlay:!1,media:"audio"},flac:{codec:"audio/x-flac",flashCanPlay:!1,media:"audio"},wav:{codec:'audio/wav; codecs="1"',flashCanPlay:!1,media:"audio"},webma:{codec:'audio/webm; codecs="vorbis"',flashCanPlay:!1,media:"audio"},fla:{codec:"audio/x-flv",flashCanPlay:!0,media:"audio"},rtmpa:{codec:'audio/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"audio"},m4v:{codec:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!0,media:"video"},m3u8v:{codec:'application/vnd.apple.mpegurl; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!1,media:"video"},m3uv:{codec:"audio/mpegurl",flashCanPlay:!1,media:"video"},ogv:{codec:'video/ogg; codecs="theora, vorbis"',flashCanPlay:!1,media:"video"},webmv:{codec:'video/webm; codecs="vorbis, vp8"',flashCanPlay:!1,media:"video"},flv:{codec:"video/x-flv",flashCanPlay:!0,media:"video"},rtmpv:{codec:'video/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"video"}},_init:function(){var s=this;if(this.element.empty(),this.status=t.extend({},this.status),this.internal=t.extend({},this.internal),this.options.timeFormat=t.extend({},t.jPlayer.timeFormat,this.options.timeFormat),this.internal.cmdsIgnored=t.jPlayer.platform.ipad||t.jPlayer.platform.iphone||t.jPlayer.platform.ipod,this.internal.domNode=this.element.get(0),this.options.keyEnabled&&!t.jPlayer.focus&&(t.jPlayer.focus=this),this.androidFix={setMedia:!1,play:!1,pause:!1,time:0/0},t.jPlayer.platform.android&&(this.options.preload="auto"!==this.options.preload?"metadata":"auto"),this.formats=[],this.solutions=[],this.require={},this.htmlElement={},this.html={},this.html.audio={},this.html.video={},this.flash={},this.css={},this.css.cs={},this.css.jq={},this.ancestorJq=[],this.options.volume=this._limitValue(this.options.volume,0,1),t.each(this.options.supplied.toLowerCase().split(","),function(e,i){var a=i.replace(/^\s+|\s+$/g,"");if(s.format[a]){var n=!1;t.each(s.formats,function(t,e){return a===e?(n=!0,!1):void 0}),n||s.formats.push(a)}}),t.each(this.options.solution.toLowerCase().split(","),function(e,i){var a=i.replace(/^\s+|\s+$/g,"");if(s.solution[a]){var n=!1;t.each(s.solutions,function(t,e){return a===e?(n=!0,!1):void 0}),n||s.solutions.push(a)}}),this.internal.instance="jp_"+this.count,this.instances[this.internal.instance]=this.element,this.element.attr("id")||this.element.attr("id",this.options.idPrefix+"_jplayer_"+this.count),this.internal.self=t.extend({},{id:this.element.attr("id"),jq:this.element}),this.internal.audio=t.extend({},{id:this.options.idPrefix+"_audio_"+this.count,jq:e}),this.internal.video=t.extend({},{id:this.options.idPrefix+"_video_"+this.count,jq:e}),this.internal.flash=t.extend({},{id:this.options.idPrefix+"_flash_"+this.count,jq:e,swf:this.options.swfPath+(".swf"!==this.options.swfPath.toLowerCase().slice(-4)?(this.options.swfPath&&"/"!==this.options.swfPath.slice(-1)?"/":"")+"Jplayer.swf":"")}),this.internal.poster=t.extend({},{id:this.options.idPrefix+"_poster_"+this.count,jq:e}),t.each(t.jPlayer.event,function(t,i){s.options[t]!==e&&(s.element.bind(i+".jPlayer",s.options[t]),s.options[t]=e)}),this.require.audio=!1,this.require.video=!1,t.each(this.formats,function(t,e){s.require[s.format[e].media]=!0}),this.options=this.require.video?t.extend(!0,{},this.optionsVideo,this.options):t.extend(!0,{},this.optionsAudio,this.options),this._setSize(),this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls),this.status.noFullWindow=this._uaBlocklist(this.options.noFullWindow),this.status.noVolume=this._uaBlocklist(this.options.noVolume),t.jPlayer.nativeFeatures.fullscreen.api.fullscreenEnabled&&this._fullscreenAddEventListeners(),this._restrictNativeVideoControls(),this.htmlElement.poster=document.createElement("img"),this.htmlElement.poster.id=this.internal.poster.id,this.htmlElement.poster.onload=function(){(!s.status.video||s.status.waitForPlay)&&s.internal.poster.jq.show()},this.element.append(this.htmlElement.poster),this.internal.poster.jq=t("#"+this.internal.poster.id),this.internal.poster.jq.css({width:this.status.width,height:this.status.height}),this.internal.poster.jq.hide(),this.internal.poster.jq.bind("click.jPlayer",function(){s._trigger(t.jPlayer.event.click)}),this.html.audio.available=!1,this.require.audio&&(this.htmlElement.audio=document.createElement("audio"),this.htmlElement.audio.id=this.internal.audio.id,this.html.audio.available=!!this.htmlElement.audio.canPlayType&&this._testCanPlayType(this.htmlElement.audio)),this.html.video.available=!1,this.require.video&&(this.htmlElement.video=document.createElement("video"),this.htmlElement.video.id=this.internal.video.id,this.html.video.available=!!this.htmlElement.video.canPlayType&&this._testCanPlayType(this.htmlElement.video)),this.flash.available=this._checkForFlash(10.1),this.html.canPlay={},this.flash.canPlay={},t.each(this.formats,function(t,e){s.html.canPlay[e]=s.html[s.format[e].media].available&&""!==s.htmlElement[s.format[e].media].canPlayType(s.format[e].codec),s.flash.canPlay[e]=s.format[e].flashCanPlay&&s.flash.available}),this.html.desired=!1,this.flash.desired=!1,t.each(this.solutions,function(e,i){if(0===e)s[i].desired=!0;else{var a=!1,n=!1;t.each(s.formats,function(t,e){s[s.solutions[0]].canPlay[e]&&("video"===s.format[e].media?n=!0:a=!0)}),s[i].desired=s.require.audio&&!a||s.require.video&&!n}}),this.html.support={},this.flash.support={},t.each(this.formats,function(t,e){s.html.support[e]=s.html.canPlay[e]&&s.html.desired,s.flash.support[e]=s.flash.canPlay[e]&&s.flash.desired}),this.html.used=!1,this.flash.used=!1,t.each(this.solutions,function(e,i){t.each(s.formats,function(t,e){return s[i].support[e]?(s[i].used=!0,!1):void 0})}),this._resetActive(),this._resetGate(),this._cssSelectorAncestor(this.options.cssSelectorAncestor),this.html.used||this.flash.used?this.css.jq.noSolution.length&&this.css.jq.noSolution.hide():(this._error({type:t.jPlayer.error.NO_SOLUTION,context:"{solution:'"+this.options.solution+"', supplied:'"+this.options.supplied+"'}",message:t.jPlayer.errorMsg.NO_SOLUTION,hint:t.jPlayer.errorHint.NO_SOLUTION}),this.css.jq.noSolution.length&&this.css.jq.noSolution.show()),this.flash.used){var i,a="jQuery="+encodeURI(this.options.noConflict)+"&id="+encodeURI(this.internal.self.id)+"&vol="+this.options.volume+"&muted="+this.options.muted;if(t.jPlayer.browser.msie&&(Number(t.jPlayer.browser.version)<9||t.jPlayer.browser.documentMode<9)){var n='<object id="'+this.internal.flash.id+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="0" height="0" tabindex="-1"></object>',o=['<param name="movie" value="'+this.internal.flash.swf+'" />','<param name="FlashVars" value="'+a+'" />','<param name="allowScriptAccess" value="always" />','<param name="bgcolor" value="'+this.options.backgroundColor+'" />','<param name="wmode" value="'+this.options.wmode+'" />'];i=document.createElement(n);for(var r=0;r<o.length;r++)i.appendChild(document.createElement(o[r]))}else{var l=function(t,e,s){var i=document.createElement("param");i.setAttribute("name",e),i.setAttribute("value",s),t.appendChild(i)};i=document.createElement("object"),i.setAttribute("id",this.internal.flash.id),i.setAttribute("name",this.internal.flash.id),i.setAttribute("data",this.internal.flash.swf),i.setAttribute("type","application/x-shockwave-flash"),i.setAttribute("width","1"),i.setAttribute("height","1"),i.setAttribute("tabindex","-1"),l(i,"flashvars",a),l(i,"allowscriptaccess","always"),l(i,"bgcolor",this.options.backgroundColor),l(i,"wmode",this.options.wmode)}this.element.append(i),this.internal.flash.jq=t(i)}this.status.playbackRateEnabled=this.html.used&&!this.flash.used?this._testPlaybackRate("audio"):!1,this._updatePlaybackRate(),this.html.used&&(this.html.audio.available&&(this._addHtmlEventListeners(this.htmlElement.audio,this.html.audio),this.element.append(this.htmlElement.audio),this.internal.audio.jq=t("#"+this.internal.audio.id)),this.html.video.available&&(this._addHtmlEventListeners(this.htmlElement.video,this.html.video),this.element.append(this.htmlElement.video),this.internal.video.jq=t("#"+this.internal.video.id),this.internal.video.jq.css(this.status.nativeVideoControls?{width:this.status.width,height:this.status.height}:{width:"0px",height:"0px"}),this.internal.video.jq.bind("click.jPlayer",function(){s._trigger(t.jPlayer.event.click)}))),this.options.emulateHtml&&this._emulateHtmlBridge(),this.html.used&&!this.flash.used&&setTimeout(function(){s.internal.ready=!0,s.version.flash="n/a",s._trigger(t.jPlayer.event.repeat),s._trigger(t.jPlayer.event.ready)},100),this._updateNativeVideoControls(),this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),t.jPlayer.prototype.count++},destroy:function(){this.clearMedia(),this._removeUiClass(),this.css.jq.currentTime.length&&this.css.jq.currentTime.text(""),this.css.jq.duration.length&&this.css.jq.duration.text(""),t.each(this.css.jq,function(t,e){e.length&&e.unbind(".jPlayer")}),this.internal.poster.jq.unbind(".jPlayer"),this.internal.video.jq&&this.internal.video.jq.unbind(".jPlayer"),this._fullscreenRemoveEventListeners(),this===t.jPlayer.focus&&(t.jPlayer.focus=null),this.options.emulateHtml&&this._destroyHtmlBridge(),this.element.removeData("jPlayer"),this.element.unbind(".jPlayer"),this.element.empty(),delete this.instances[this.internal.instance]},enable:function(){},disable:function(){},_testCanPlayType:function(t){try{return t.canPlayType(this.format.mp3.codec),!0}catch(e){return!1}},_testPlaybackRate:function(t){var e,s=.5;t="string"==typeof t?t:"audio",e=document.createElement(t);try{return"playbackRate"in e?(e.playbackRate=s,e.playbackRate===s):!1}catch(i){return!1}},_uaBlocklist:function(e){var s=navigator.userAgent.toLowerCase(),i=!1;return t.each(e,function(t,e){return e&&e.test(s)?(i=!0,!1):void 0}),i},_restrictNativeVideoControls:function(){this.require.audio&&this.status.nativeVideoControls&&(this.status.nativeVideoControls=!1,this.status.noFullWindow=!0)},_updateNativeVideoControls:function(){this.html.video.available&&this.html.used&&(this.htmlElement.video.controls=this.status.nativeVideoControls,this._updateAutohide(),this.status.nativeVideoControls&&this.require.video?(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height})):this.status.waitForPlay&&this.status.video&&(this.internal.poster.jq.show(),this.internal.video.jq.css({width:"0px",height:"0px"})))},_addHtmlEventListeners:function(e,s){var i=this;e.preload=this.options.preload,e.muted=this.options.muted,e.volume=this.options.volume,this.status.playbackRateEnabled&&(e.defaultPlaybackRate=this.options.defaultPlaybackRate,e.playbackRate=this.options.playbackRate),e.addEventListener("progress",function(){s.gate&&(i.internal.cmdsIgnored&&this.readyState>0&&(i.internal.cmdsIgnored=!1),i._getHtmlStatus(e),i._updateInterface(),i._trigger(t.jPlayer.event.progress))},!1),e.addEventListener("loadeddata",function(){s.gate&&(i.androidFix.setMedia=!1,i.androidFix.play&&(i.androidFix.play=!1,i.play(i.androidFix.time)),i.androidFix.pause&&(i.androidFix.pause=!1,i.pause(i.androidFix.time)),i._trigger(t.jPlayer.event.loadeddata))},!1),e.addEventListener("timeupdate",function(){s.gate&&(i._getHtmlStatus(e),i._updateInterface(),i._trigger(t.jPlayer.event.timeupdate))},!1),e.addEventListener("durationchange",function(){s.gate&&(i._getHtmlStatus(e),i._updateInterface(),i._trigger(t.jPlayer.event.durationchange))},!1),e.addEventListener("play",function(){s.gate&&(i._updateButtons(!0),i._html_checkWaitForPlay(),i._trigger(t.jPlayer.event.play))},!1),e.addEventListener("playing",function(){s.gate&&(i._updateButtons(!0),i._seeked(),i._trigger(t.jPlayer.event.playing))},!1),e.addEventListener("pause",function(){s.gate&&(i._updateButtons(!1),i._trigger(t.jPlayer.event.pause))},!1),e.addEventListener("waiting",function(){s.gate&&(i._seeking(),i._trigger(t.jPlayer.event.waiting))},!1),e.addEventListener("seeking",function(){s.gate&&(i._seeking(),i._trigger(t.jPlayer.event.seeking))},!1),e.addEventListener("seeked",function(){s.gate&&(i._seeked(),i._trigger(t.jPlayer.event.seeked))},!1),e.addEventListener("volumechange",function(){s.gate&&(i.options.volume=e.volume,i.options.muted=e.muted,i._updateMute(),i._updateVolume(),i._trigger(t.jPlayer.event.volumechange))},!1),e.addEventListener("ratechange",function(){s.gate&&(i.options.defaultPlaybackRate=e.defaultPlaybackRate,i.options.playbackRate=e.playbackRate,i._updatePlaybackRate(),i._trigger(t.jPlayer.event.ratechange))},!1),e.addEventListener("suspend",function(){s.gate&&(i._seeked(),i._trigger(t.jPlayer.event.suspend))},!1),e.addEventListener("ended",function(){s.gate&&(t.jPlayer.browser.webkit||(i.htmlElement.media.currentTime=0),i.htmlElement.media.pause(),i._updateButtons(!1),i._getHtmlStatus(e,!0),i._updateInterface(),i._trigger(t.jPlayer.event.ended))},!1),e.addEventListener("error",function(){s.gate&&(i._updateButtons(!1),i._seeked(),i.status.srcSet&&(clearTimeout(i.internal.htmlDlyCmdId),i.status.waitForLoad=!0,i.status.waitForPlay=!0,i.status.video&&!i.status.nativeVideoControls&&i.internal.video.jq.css({width:"0px",height:"0px"}),i._validString(i.status.media.poster)&&!i.status.nativeVideoControls&&i.internal.poster.jq.show(),i.css.jq.videoPlay.length&&i.css.jq.videoPlay.show(),i._error({type:t.jPlayer.error.URL,context:i.status.src,message:t.jPlayer.errorMsg.URL,hint:t.jPlayer.errorHint.URL})))},!1),t.each(t.jPlayer.htmlEvent,function(a,n){e.addEventListener(this,function(){s.gate&&i._trigger(t.jPlayer.event[n])},!1)})},_getHtmlStatus:function(t,e){var s=0,i=0,a=0,n=0;isFinite(t.duration)&&(this.status.duration=t.duration),s=t.currentTime,i=this.status.duration>0?100*s/this.status.duration:0,"object"==typeof t.seekable&&t.seekable.length>0?(a=this.status.duration>0?100*t.seekable.end(t.seekable.length-1)/this.status.duration:100,n=this.status.duration>0?100*t.currentTime/t.seekable.end(t.seekable.length-1):0):(a=100,n=i),e&&(s=0,n=0,i=0),this.status.seekPercent=a,this.status.currentPercentRelative=n,this.status.currentPercentAbsolute=i,this.status.currentTime=s,this.status.remaining=this.status.duration-this.status.currentTime,this.status.videoWidth=t.videoWidth,this.status.videoHeight=t.videoHeight,this.status.readyState=t.readyState,this.status.networkState=t.networkState,this.status.playbackRate=t.playbackRate,this.status.ended=t.ended},_resetStatus:function(){this.status=t.extend({},this.status,t.jPlayer.prototype.status)},_trigger:function(e,s,i){var a=t.Event(e);a.jPlayer={},a.jPlayer.version=t.extend({},this.version),a.jPlayer.options=t.extend(!0,{},this.options),a.jPlayer.status=t.extend(!0,{},this.status),a.jPlayer.html=t.extend(!0,{},this.html),a.jPlayer.flash=t.extend(!0,{},this.flash),s&&(a.jPlayer.error=t.extend({},s)),i&&(a.jPlayer.warning=t.extend({},i)),this.element.trigger(a)},jPlayerFlashEvent:function(e,s){if(e===t.jPlayer.event.ready)if(this.internal.ready){if(this.flash.gate){if(this.status.srcSet){var i=this.status.currentTime,a=this.status.paused;this.setMedia(this.status.media),this.volumeWorker(this.options.volume),i>0&&(a?this.pause(i):this.play(i))}this._trigger(t.jPlayer.event.flashreset)}}else this.internal.ready=!0,this.internal.flash.jq.css({width:"0px",height:"0px"}),this.version.flash=s.version,this.version.needFlash!==this.version.flash&&this._error({type:t.jPlayer.error.VERSION,context:this.version.flash,message:t.jPlayer.errorMsg.VERSION+this.version.flash,hint:t.jPlayer.errorHint.VERSION}),this._trigger(t.jPlayer.event.repeat),this._trigger(e);if(this.flash.gate)switch(e){case t.jPlayer.event.progress:this._getFlashStatus(s),this._updateInterface(),this._trigger(e);break;case t.jPlayer.event.timeupdate:this._getFlashStatus(s),this._updateInterface(),this._trigger(e);break;case t.jPlayer.event.play:this._seeked(),this._updateButtons(!0),this._trigger(e);break;case t.jPlayer.event.pause:this._updateButtons(!1),this._trigger(e);break;case t.jPlayer.event.ended:this._updateButtons(!1),this._trigger(e);break;case t.jPlayer.event.click:this._trigger(e);break;case t.jPlayer.event.error:this.status.waitForLoad=!0,this.status.waitForPlay=!0,this.status.video&&this.internal.flash.jq.css({width:"0px",height:"0px"}),this._validString(this.status.media.poster)&&this.internal.poster.jq.show(),this.css.jq.videoPlay.length&&this.status.video&&this.css.jq.videoPlay.show(),this.status.video?this._flash_setVideo(this.status.media):this._flash_setAudio(this.status.media),this._updateButtons(!1),this._error({type:t.jPlayer.error.URL,context:s.src,message:t.jPlayer.errorMsg.URL,hint:t.jPlayer.errorHint.URL});break;case t.jPlayer.event.seeking:this._seeking(),this._trigger(e);break;case t.jPlayer.event.seeked:this._seeked(),this._trigger(e);break;case t.jPlayer.event.ready:break;default:this._trigger(e)}return!1},_getFlashStatus:function(t){this.status.seekPercent=t.seekPercent,this.status.currentPercentRelative=t.currentPercentRelative,this.status.currentPercentAbsolute=t.currentPercentAbsolute,this.status.currentTime=t.currentTime,this.status.duration=t.duration,this.status.remaining=t.duration-t.currentTime,this.status.videoWidth=t.videoWidth,this.status.videoHeight=t.videoHeight,this.status.readyState=4,this.status.networkState=0,this.status.playbackRate=1,this.status.ended=!1},_updateButtons:function(t){t===e?t=!this.status.paused:this.status.paused=!t,t?this.addStateClass("playing"):this.removeStateClass("playing"),!this.status.noFullWindow&&this.options.fullWindow?this.addStateClass("fullScreen"):this.removeStateClass("fullScreen"),this.options.loop?this.addStateClass("looped"):this.removeStateClass("looped"),this.css.jq.play.length&&this.css.jq.pause.length&&(t?(this.css.jq.play.hide(),this.css.jq.pause.show()):(this.css.jq.play.show(),this.css.jq.pause.hide())),this.css.jq.restoreScreen.length&&this.css.jq.fullScreen.length&&(this.status.noFullWindow?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.hide()):this.options.fullWindow?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.show()):(this.css.jq.fullScreen.show(),this.css.jq.restoreScreen.hide())),this.css.jq.repeat.length&&this.css.jq.repeatOff.length&&(this.options.loop?(this.css.jq.repeat.hide(),this.css.jq.repeatOff.show()):(this.css.jq.repeat.show(),this.css.jq.repeatOff.hide()))},_updateInterface:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.width(this.status.seekPercent+"%"),this.css.jq.playBar.length&&(this.options.smoothPlayBar?this.css.jq.playBar.stop().animate({width:this.status.currentPercentAbsolute+"%"},250,"linear"):this.css.jq.playBar.width(this.status.currentPercentRelative+"%"));var t="";this.css.jq.currentTime.length&&(t=this._convertTime(this.status.currentTime),t!==this.css.jq.currentTime.text()&&this.css.jq.currentTime.text(this._convertTime(this.status.currentTime)));var e="",s=this.status.duration,i=this.status.remaining;this.css.jq.duration.length&&("string"==typeof this.status.media.duration?e=this.status.media.duration:("number"==typeof this.status.media.duration&&(s=this.status.media.duration,i=s-this.status.currentTime),e=this.options.remainingDuration?(i>0?"-":"")+this._convertTime(i):this._convertTime(s)),e!==this.css.jq.duration.text()&&this.css.jq.duration.text(e))},_convertTime:s.prototype.time,_seeking:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.addClass("jp-seeking-bg"),this.addStateClass("seeking")},_seeked:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.removeClass("jp-seeking-bg"),this.removeStateClass("seeking")},_resetGate:function(){this.html.audio.gate=!1,this.html.video.gate=!1,this.flash.gate=!1},_resetActive:function(){this.html.active=!1,this.flash.active=!1},_escapeHtml:function(t){return t.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;").split('"').join("&quot;")},_qualifyURL:function(t){var e=document.createElement("div");return e.innerHTML='<a href="'+this._escapeHtml(t)+'">x</a>',e.firstChild.href},_absoluteMediaUrls:function(e){var s=this;return t.each(e,function(t,i){i&&s.format[t]&&(e[t]=s._qualifyURL(i))}),e},addStateClass:function(t){this.ancestorJq.length&&this.ancestorJq.addClass(this.options.stateClass[t])},removeStateClass:function(t){this.ancestorJq.length&&this.ancestorJq.removeClass(this.options.stateClass[t])},setMedia:function(e){var s=this,i=!1,a=this.status.media.poster!==e.poster;this._resetMedia(),this._resetGate(),this._resetActive(),this.androidFix.setMedia=!1,this.androidFix.play=!1,this.androidFix.pause=!1,e=this._absoluteMediaUrls(e),t.each(this.formats,function(a,n){var o="video"===s.format[n].media;return t.each(s.solutions,function(a,r){if(s[r].support[n]&&s._validString(e[n])){var l="html"===r;return o?(l?(s.html.video.gate=!0,s._html_setVideo(e),s.html.active=!0):(s.flash.gate=!0,s._flash_setVideo(e),s.flash.active=!0),s.css.jq.videoPlay.length&&s.css.jq.videoPlay.show(),s.status.video=!0):(l?(s.html.audio.gate=!0,s._html_setAudio(e),s.html.active=!0,t.jPlayer.platform.android&&(s.androidFix.setMedia=!0)):(s.flash.gate=!0,s._flash_setAudio(e),s.flash.active=!0),s.css.jq.videoPlay.length&&s.css.jq.videoPlay.hide(),s.status.video=!1),i=!0,!1}}),i?!1:void 0}),i?(this.status.nativeVideoControls&&this.html.video.gate||this._validString(e.poster)&&(a?this.htmlElement.poster.src=e.poster:this.internal.poster.jq.show()),this.css.jq.title.length&&"string"==typeof e.title&&(this.css.jq.title.html(e.title),this.htmlElement.audio&&this.htmlElement.audio.setAttribute("title",e.title),this.htmlElement.video&&this.htmlElement.video.setAttribute("title",e.title)),this.status.srcSet=!0,this.status.media=t.extend({},e),this._updateButtons(!1),this._updateInterface(),this._trigger(t.jPlayer.event.setmedia)):this._error({type:t.jPlayer.error.NO_SUPPORT,context:"{supplied:'"+this.options.supplied+"'}",message:t.jPlayer.errorMsg.NO_SUPPORT,hint:t.jPlayer.errorHint.NO_SUPPORT})},_resetMedia:function(){this._resetStatus(),this._updateButtons(!1),this._updateInterface(),this._seeked(),this.internal.poster.jq.hide(),clearTimeout(this.internal.htmlDlyCmdId),this.html.active?this._html_resetMedia():this.flash.active&&this._flash_resetMedia()},clearMedia:function(){this._resetMedia(),this.html.active?this._html_clearMedia():this.flash.active&&this._flash_clearMedia(),this._resetGate(),this._resetActive()},load:function(){this.status.srcSet?this.html.active?this._html_load():this.flash.active&&this._flash_load():this._urlNotSetError("load")},focus:function(){this.options.keyEnabled&&(t.jPlayer.focus=this)},play:function(t){var e="object"==typeof t;e&&this.options.useStateClassSkin&&!this.status.paused?this.pause(t):(t="number"==typeof t?t:0/0,this.status.srcSet?(this.focus(),this.html.active?this._html_play(t):this.flash.active&&this._flash_play(t)):this._urlNotSetError("play"))},videoPlay:function(){this.play()
2
  },pause:function(t){t="number"==typeof t?t:0/0,this.status.srcSet?this.html.active?this._html_pause(t):this.flash.active&&this._flash_pause(t):this._urlNotSetError("pause")},tellOthers:function(e,s){var i=this,a="function"==typeof s,n=Array.prototype.slice.call(arguments);"string"==typeof e&&(a&&n.splice(1,1),t.each(this.instances,function(){i.element!==this&&(!a||s.call(this.data("jPlayer"),i))&&this.jPlayer.apply(this,n)}))},pauseOthers:function(t){this.tellOthers("pause",function(){return this.status.srcSet},t)},stop:function(){this.status.srcSet?this.html.active?this._html_pause(0):this.flash.active&&this._flash_pause(0):this._urlNotSetError("stop")},playHead:function(t){t=this._limitValue(t,0,100),this.status.srcSet?this.html.active?this._html_playHead(t):this.flash.active&&this._flash_playHead(t):this._urlNotSetError("playHead")},_muted:function(t){this.mutedWorker(t),this.options.globalVolume&&this.tellOthers("mutedWorker",function(){return this.options.globalVolume},t)},mutedWorker:function(e){this.options.muted=e,this.html.used&&this._html_setProperty("muted",e),this.flash.used&&this._flash_mute(e),this.html.video.gate||this.html.audio.gate||(this._updateMute(e),this._updateVolume(this.options.volume),this._trigger(t.jPlayer.event.volumechange))},mute:function(t){var s="object"==typeof t;s&&this.options.useStateClassSkin&&this.options.muted?this._muted(!1):(t=t===e?!0:!!t,this._muted(t))},unmute:function(t){t=t===e?!0:!!t,this._muted(!t)},_updateMute:function(t){t===e&&(t=this.options.muted),t?this.addStateClass("muted"):this.removeStateClass("muted"),this.css.jq.mute.length&&this.css.jq.unmute.length&&(this.status.noVolume?(this.css.jq.mute.hide(),this.css.jq.unmute.hide()):t?(this.css.jq.mute.hide(),this.css.jq.unmute.show()):(this.css.jq.mute.show(),this.css.jq.unmute.hide()))},volume:function(t){this.volumeWorker(t),this.options.globalVolume&&this.tellOthers("volumeWorker",function(){return this.options.globalVolume},t)},volumeWorker:function(e){e=this._limitValue(e,0,1),this.options.volume=e,this.html.used&&this._html_setProperty("volume",e),this.flash.used&&this._flash_volume(e),this.html.video.gate||this.html.audio.gate||(this._updateVolume(e),this._trigger(t.jPlayer.event.volumechange))},volumeBar:function(e){if(this.css.jq.volumeBar.length){var s=t(e.currentTarget),i=s.offset(),a=e.pageX-i.left,n=s.width(),o=s.height()-e.pageY+i.top,r=s.height();this.volume(this.options.verticalVolume?o/r:a/n)}this.options.muted&&this._muted(!1)},_updateVolume:function(t){t===e&&(t=this.options.volume),t=this.options.muted?0:t,this.status.noVolume?(this.css.jq.volumeBar.length&&this.css.jq.volumeBar.hide(),this.css.jq.volumeBarValue.length&&this.css.jq.volumeBarValue.hide(),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.hide()):(this.css.jq.volumeBar.length&&this.css.jq.volumeBar.show(),this.css.jq.volumeBarValue.length&&(this.css.jq.volumeBarValue.show(),this.css.jq.volumeBarValue[this.options.verticalVolume?"height":"width"](100*t+"%")),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.show())},volumeMax:function(){this.volume(1),this.options.muted&&this._muted(!1)},_cssSelectorAncestor:function(e){var s=this;this.options.cssSelectorAncestor=e,this._removeUiClass(),this.ancestorJq=e?t(e):[],e&&1!==this.ancestorJq.length&&this._warning({type:t.jPlayer.warning.CSS_SELECTOR_COUNT,context:e,message:t.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.ancestorJq.length+" found for cssSelectorAncestor.",hint:t.jPlayer.warningHint.CSS_SELECTOR_COUNT}),this._addUiClass(),t.each(this.options.cssSelector,function(t,e){s._cssSelector(t,e)}),this._updateInterface(),this._updateButtons(),this._updateAutohide(),this._updateVolume(),this._updateMute()},_cssSelector:function(e,s){var i=this;if("string"==typeof s)if(t.jPlayer.prototype.options.cssSelector[e]){if(this.css.jq[e]&&this.css.jq[e].length&&this.css.jq[e].unbind(".jPlayer"),this.options.cssSelector[e]=s,this.css.cs[e]=this.options.cssSelectorAncestor+" "+s,this.css.jq[e]=s?t(this.css.cs[e]):[],this.css.jq[e].length&&this[e]){var a=function(s){s.preventDefault(),i[e](s),i.options.autoBlur&&t(this).blur()};this.css.jq[e].bind("click.jPlayer",a)}s&&1!==this.css.jq[e].length&&this._warning({type:t.jPlayer.warning.CSS_SELECTOR_COUNT,context:this.css.cs[e],message:t.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.css.jq[e].length+" found for "+e+" method.",hint:t.jPlayer.warningHint.CSS_SELECTOR_COUNT})}else this._warning({type:t.jPlayer.warning.CSS_SELECTOR_METHOD,context:e,message:t.jPlayer.warningMsg.CSS_SELECTOR_METHOD,hint:t.jPlayer.warningHint.CSS_SELECTOR_METHOD});else this._warning({type:t.jPlayer.warning.CSS_SELECTOR_STRING,context:s,message:t.jPlayer.warningMsg.CSS_SELECTOR_STRING,hint:t.jPlayer.warningHint.CSS_SELECTOR_STRING})},duration:function(t){this.options.toggleDuration&&(this.options.captureDuration&&t.stopPropagation(),this._setOption("remainingDuration",!this.options.remainingDuration))},seekBar:function(e){if(this.css.jq.seekBar.length){var s=t(e.currentTarget),i=s.offset(),a=e.pageX-i.left,n=s.width(),o=100*a/n;this.playHead(o)}},playbackRate:function(t){this._setOption("playbackRate",t)},playbackRateBar:function(e){if(this.css.jq.playbackRateBar.length){var s,i,a=t(e.currentTarget),n=a.offset(),o=e.pageX-n.left,r=a.width(),l=a.height()-e.pageY+n.top,h=a.height();s=this.options.verticalPlaybackRate?l/h:o/r,i=s*(this.options.maxPlaybackRate-this.options.minPlaybackRate)+this.options.minPlaybackRate,this.playbackRate(i)}},_updatePlaybackRate:function(){var t=this.options.playbackRate,e=(t-this.options.minPlaybackRate)/(this.options.maxPlaybackRate-this.options.minPlaybackRate);this.status.playbackRateEnabled?(this.css.jq.playbackRateBar.length&&this.css.jq.playbackRateBar.show(),this.css.jq.playbackRateBarValue.length&&(this.css.jq.playbackRateBarValue.show(),this.css.jq.playbackRateBarValue[this.options.verticalPlaybackRate?"height":"width"](100*e+"%"))):(this.css.jq.playbackRateBar.length&&this.css.jq.playbackRateBar.hide(),this.css.jq.playbackRateBarValue.length&&this.css.jq.playbackRateBarValue.hide())},repeat:function(t){var e="object"==typeof t;this._loop(e&&this.options.useStateClassSkin&&this.options.loop?!1:!0)},repeatOff:function(){this._loop(!1)},_loop:function(e){this.options.loop!==e&&(this.options.loop=e,this._updateButtons(),this._trigger(t.jPlayer.event.repeat))},option:function(s,i){var a=s;if(0===arguments.length)return t.extend(!0,{},this.options);if("string"==typeof s){var n=s.split(".");if(i===e){for(var o=t.extend(!0,{},this.options),r=0;r<n.length;r++){if(o[n[r]]===e)return this._warning({type:t.jPlayer.warning.OPTION_KEY,context:s,message:t.jPlayer.warningMsg.OPTION_KEY,hint:t.jPlayer.warningHint.OPTION_KEY}),e;o=o[n[r]]}return o}a={};for(var l=a,h=0;h<n.length;h++)h<n.length-1?(l[n[h]]={},l=l[n[h]]):l[n[h]]=i}return this._setOptions(a),this},_setOptions:function(e){var s=this;return t.each(e,function(t,e){s._setOption(t,e)}),this},_setOption:function(e,s){var i=this;switch(e){case"volume":this.volume(s);break;case"muted":this._muted(s);break;case"globalVolume":this.options[e]=s;break;case"cssSelectorAncestor":this._cssSelectorAncestor(s);break;case"cssSelector":t.each(s,function(t,e){i._cssSelector(t,e)});break;case"playbackRate":this.options[e]=s=this._limitValue(s,this.options.minPlaybackRate,this.options.maxPlaybackRate),this.html.used&&this._html_setProperty("playbackRate",s),this._updatePlaybackRate();break;case"defaultPlaybackRate":this.options[e]=s=this._limitValue(s,this.options.minPlaybackRate,this.options.maxPlaybackRate),this.html.used&&this._html_setProperty("defaultPlaybackRate",s),this._updatePlaybackRate();break;case"minPlaybackRate":this.options[e]=s=this._limitValue(s,.1,this.options.maxPlaybackRate-.1),this._updatePlaybackRate();break;case"maxPlaybackRate":this.options[e]=s=this._limitValue(s,this.options.minPlaybackRate+.1,16),this._updatePlaybackRate();break;case"fullScreen":if(this.options[e]!==s){var a=t.jPlayer.nativeFeatures.fullscreen.used.webkitVideo;(!a||a&&!this.status.waitForPlay)&&(a||(this.options[e]=s),s?this._requestFullscreen():this._exitFullscreen(),a||this._setOption("fullWindow",s))}break;case"fullWindow":this.options[e]!==s&&(this._removeUiClass(),this.options[e]=s,this._refreshSize());break;case"size":this.options.fullWindow||this.options[e].cssClass===s.cssClass||this._removeUiClass(),this.options[e]=t.extend({},this.options[e],s),this._refreshSize();break;case"sizeFull":this.options.fullWindow&&this.options[e].cssClass!==s.cssClass&&this._removeUiClass(),this.options[e]=t.extend({},this.options[e],s),this._refreshSize();break;case"autohide":this.options[e]=t.extend({},this.options[e],s),this._updateAutohide();break;case"loop":this._loop(s);break;case"remainingDuration":this.options[e]=s,this._updateInterface();break;case"toggleDuration":this.options[e]=s;break;case"nativeVideoControls":this.options[e]=t.extend({},this.options[e],s),this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls),this._restrictNativeVideoControls(),this._updateNativeVideoControls();break;case"noFullWindow":this.options[e]=t.extend({},this.options[e],s),this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls),this.status.noFullWindow=this._uaBlocklist(this.options.noFullWindow),this._restrictNativeVideoControls(),this._updateButtons();break;case"noVolume":this.options[e]=t.extend({},this.options[e],s),this.status.noVolume=this._uaBlocklist(this.options.noVolume),this._updateVolume(),this._updateMute();break;case"emulateHtml":this.options[e]!==s&&(this.options[e]=s,s?this._emulateHtmlBridge():this._destroyHtmlBridge());break;case"timeFormat":this.options[e]=t.extend({},this.options[e],s);break;case"keyEnabled":this.options[e]=s,s||this!==t.jPlayer.focus||(t.jPlayer.focus=null);break;case"keyBindings":this.options[e]=t.extend(!0,{},this.options[e],s);break;case"audioFullScreen":this.options[e]=s;break;case"autoBlur":this.options[e]=s}return this},_refreshSize:function(){this._setSize(),this._addUiClass(),this._updateSize(),this._updateButtons(),this._updateAutohide(),this._trigger(t.jPlayer.event.resize)},_setSize:function(){this.options.fullWindow?(this.status.width=this.options.sizeFull.width,this.status.height=this.options.sizeFull.height,this.status.cssClass=this.options.sizeFull.cssClass):(this.status.width=this.options.size.width,this.status.height=this.options.size.height,this.status.cssClass=this.options.size.cssClass),this.element.css({width:this.status.width,height:this.status.height})},_addUiClass:function(){this.ancestorJq.length&&this.ancestorJq.addClass(this.status.cssClass)},_removeUiClass:function(){this.ancestorJq.length&&this.ancestorJq.removeClass(this.status.cssClass)},_updateSize:function(){this.internal.poster.jq.css({width:this.status.width,height:this.status.height}),!this.status.waitForPlay&&this.html.active&&this.status.video||this.html.video.available&&this.html.used&&this.status.nativeVideoControls?this.internal.video.jq.css({width:this.status.width,height:this.status.height}):!this.status.waitForPlay&&this.flash.active&&this.status.video&&this.internal.flash.jq.css({width:this.status.width,height:this.status.height})},_updateAutohide:function(){var t=this,e="mousemove.jPlayer",s=".jPlayerAutohide",i=e+s,a=function(){t.css.jq.gui.fadeIn(t.options.autohide.fadeIn,function(){clearTimeout(t.internal.autohideId),t.internal.autohideId=setTimeout(function(){t.css.jq.gui.fadeOut(t.options.autohide.fadeOut)},t.options.autohide.hold)})};this.css.jq.gui.length&&(this.css.jq.gui.stop(!0,!0),clearTimeout(this.internal.autohideId),this.element.unbind(s),this.css.jq.gui.unbind(s),this.status.nativeVideoControls?this.css.jq.gui.hide():this.options.fullWindow&&this.options.autohide.full||!this.options.fullWindow&&this.options.autohide.restored?(this.element.bind(i,a),this.css.jq.gui.bind(i,a),this.css.jq.gui.hide()):this.css.jq.gui.show())},fullScreen:function(t){var e="object"==typeof t;e&&this.options.useStateClassSkin&&this.options.fullScreen?this._setOption("fullScreen",!1):this._setOption("fullScreen",!0)},restoreScreen:function(){this._setOption("fullScreen",!1)},_fullscreenAddEventListeners:function(){var e=this,s=t.jPlayer.nativeFeatures.fullscreen;s.api.fullscreenEnabled&&s.event.fullscreenchange&&("function"!=typeof this.internal.fullscreenchangeHandler&&(this.internal.fullscreenchangeHandler=function(){e._fullscreenchange()}),document.addEventListener(s.event.fullscreenchange,this.internal.fullscreenchangeHandler,!1))},_fullscreenRemoveEventListeners:function(){var e=t.jPlayer.nativeFeatures.fullscreen;this.internal.fullscreenchangeHandler&&document.removeEventListener(e.event.fullscreenchange,this.internal.fullscreenchangeHandler,!1)},_fullscreenchange:function(){this.options.fullScreen&&!t.jPlayer.nativeFeatures.fullscreen.api.fullscreenElement()&&this._setOption("fullScreen",!1)},_requestFullscreen:function(){var e=this.ancestorJq.length?this.ancestorJq[0]:this.element[0],s=t.jPlayer.nativeFeatures.fullscreen;s.used.webkitVideo&&(e=this.htmlElement.video),s.api.fullscreenEnabled&&s.api.requestFullscreen(e)},_exitFullscreen:function(){var e,s=t.jPlayer.nativeFeatures.fullscreen;s.used.webkitVideo&&(e=this.htmlElement.video),s.api.fullscreenEnabled&&s.api.exitFullscreen(e)},_html_initMedia:function(e){var s=t(this.htmlElement.media).empty();t.each(e.track||[],function(t,e){var i=document.createElement("track");i.setAttribute("kind",e.kind?e.kind:""),i.setAttribute("src",e.src?e.src:""),i.setAttribute("srclang",e.srclang?e.srclang:""),i.setAttribute("label",e.label?e.label:""),e.def&&i.setAttribute("default",e.def),s.append(i)}),this.htmlElement.media.src=this.status.src,"none"!==this.options.preload&&this._html_load(),this._trigger(t.jPlayer.event.timeupdate)},_html_setFormat:function(e){var s=this;t.each(this.formats,function(t,i){return s.html.support[i]&&e[i]?(s.status.src=e[i],s.status.format[i]=!0,s.status.formatType=i,!1):void 0})},_html_setAudio:function(t){this._html_setFormat(t),this.htmlElement.media=this.htmlElement.audio,this._html_initMedia(t)},_html_setVideo:function(t){this._html_setFormat(t),this.status.nativeVideoControls&&(this.htmlElement.video.poster=this._validString(t.poster)?t.poster:""),this.htmlElement.media=this.htmlElement.video,this._html_initMedia(t)},_html_resetMedia:function(){this.htmlElement.media&&(this.htmlElement.media.id!==this.internal.video.id||this.status.nativeVideoControls||this.internal.video.jq.css({width:"0px",height:"0px"}),this.htmlElement.media.pause())},_html_clearMedia:function(){this.htmlElement.media&&(this.htmlElement.media.src="about:blank",this.htmlElement.media.load())},_html_load:function(){this.status.waitForLoad&&(this.status.waitForLoad=!1,this.htmlElement.media.load()),clearTimeout(this.internal.htmlDlyCmdId)},_html_play:function(t){var e=this,s=this.htmlElement.media;if(this.androidFix.pause=!1,this._html_load(),this.androidFix.setMedia)this.androidFix.play=!0,this.androidFix.time=t;else if(isNaN(t))s.play();else{this.internal.cmdsIgnored&&s.play();try{if(s.seekable&&!("object"==typeof s.seekable&&s.seekable.length>0))throw 1;s.currentTime=t,s.play()}catch(i){return void(this.internal.htmlDlyCmdId=setTimeout(function(){e.play(t)},250))}}this._html_checkWaitForPlay()},_html_pause:function(t){var e=this,s=this.htmlElement.media;if(this.androidFix.play=!1,t>0?this._html_load():clearTimeout(this.internal.htmlDlyCmdId),s.pause(),this.androidFix.setMedia)this.androidFix.pause=!0,this.androidFix.time=t;else if(!isNaN(t))try{if(s.seekable&&!("object"==typeof s.seekable&&s.seekable.length>0))throw 1;s.currentTime=t}catch(i){return void(this.internal.htmlDlyCmdId=setTimeout(function(){e.pause(t)},250))}t>0&&this._html_checkWaitForPlay()},_html_playHead:function(t){var e=this,s=this.htmlElement.media;this._html_load();try{if("object"==typeof s.seekable&&s.seekable.length>0)s.currentTime=t*s.seekable.end(s.seekable.length-1)/100;else{if(!(s.duration>0)||isNaN(s.duration))throw"e";s.currentTime=t*s.duration/100}}catch(i){return void(this.internal.htmlDlyCmdId=setTimeout(function(){e.playHead(t)},250))}this.status.waitForLoad||this._html_checkWaitForPlay()},_html_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height})))},_html_setProperty:function(t,e){this.html.audio.available&&(this.htmlElement.audio[t]=e),this.html.video.available&&(this.htmlElement.video[t]=e)},_flash_setAudio:function(e){var s=this;try{t.each(this.formats,function(t,i){if(s.flash.support[i]&&e[i]){switch(i){case"m4a":case"fla":s._getMovie().fl_setAudio_m4a(e[i]);break;case"mp3":s._getMovie().fl_setAudio_mp3(e[i]);break;case"rtmpa":s._getMovie().fl_setAudio_rtmp(e[i])}return s.status.src=e[i],s.status.format[i]=!0,s.status.formatType=i,!1}}),"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(i){this._flashError(i)}},_flash_setVideo:function(e){var s=this;try{t.each(this.formats,function(t,i){if(s.flash.support[i]&&e[i]){switch(i){case"m4v":case"flv":s._getMovie().fl_setVideo_m4v(e[i]);break;case"rtmpv":s._getMovie().fl_setVideo_rtmp(e[i])}return s.status.src=e[i],s.status.format[i]=!0,s.status.formatType=i,!1}}),"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(i){this._flashError(i)}},_flash_resetMedia:function(){this.internal.flash.jq.css({width:"0px",height:"0px"}),this._flash_pause(0/0)},_flash_clearMedia:function(){try{this._getMovie().fl_clearMedia()}catch(t){this._flashError(t)}},_flash_load:function(){try{this._getMovie().fl_load()}catch(t){this._flashError(t)}this.status.waitForLoad=!1},_flash_play:function(t){try{this._getMovie().fl_play(t)}catch(e){this._flashError(e)}this.status.waitForLoad=!1,this._flash_checkWaitForPlay()},_flash_pause:function(t){try{this._getMovie().fl_pause(t)}catch(e){this._flashError(e)}t>0&&(this.status.waitForLoad=!1,this._flash_checkWaitForPlay())},_flash_playHead:function(t){try{this._getMovie().fl_play_head(t)}catch(e){this._flashError(e)}this.status.waitForLoad||this._flash_checkWaitForPlay()},_flash_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.flash.jq.css({width:this.status.width,height:this.status.height})))},_flash_volume:function(t){try{this._getMovie().fl_volume(t)}catch(e){this._flashError(e)}},_flash_mute:function(t){try{this._getMovie().fl_mute(t)}catch(e){this._flashError(e)}},_getMovie:function(){return document[this.internal.flash.id]},_getFlashPluginVersion:function(){var t,e=0;if(window.ActiveXObject)try{if(t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")){var s=t.GetVariable("$version");s&&(s=s.split(" ")[1].split(","),e=parseInt(s[0],10)+"."+parseInt(s[1],10))}}catch(i){}else navigator.plugins&&navigator.mimeTypes.length>0&&(t=navigator.plugins["Shockwave Flash"],t&&(e=navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/,"$1")));return 1*e},_checkForFlash:function(t){var e=!1;return this._getFlashPluginVersion()>=t&&(e=!0),e},_validString:function(t){return t&&"string"==typeof t},_limitValue:function(t,e,s){return e>t?e:t>s?s:t},_urlNotSetError:function(e){this._error({type:t.jPlayer.error.URL_NOT_SET,context:e,message:t.jPlayer.errorMsg.URL_NOT_SET,hint:t.jPlayer.errorHint.URL_NOT_SET})},_flashError:function(e){var s;s=this.internal.ready?"FLASH_DISABLED":"FLASH",this._error({type:t.jPlayer.error[s],context:this.internal.flash.swf,message:t.jPlayer.errorMsg[s]+e.message,hint:t.jPlayer.errorHint[s]}),this.internal.flash.jq.css({width:"1px",height:"1px"})},_error:function(e){this._trigger(t.jPlayer.event.error,e),this.options.errorAlerts&&this._alert("Error!"+(e.message?"\n"+e.message:"")+(e.hint?"\n"+e.hint:"")+"\nContext: "+e.context)},_warning:function(s){this._trigger(t.jPlayer.event.warning,e,s),this.options.warningAlerts&&this._alert("Warning!"+(s.message?"\n"+s.message:"")+(s.hint?"\n"+s.hint:"")+"\nContext: "+s.context)},_alert:function(t){var e="jPlayer "+this.version.script+" : id='"+this.internal.self.id+"' : "+t;this.options.consoleAlerts?window.console&&window.console.log&&window.console.log(e):alert(e)},_emulateHtmlBridge:function(){var e=this;t.each(t.jPlayer.emulateMethods.split(/\s+/g),function(t,s){e.internal.domNode[s]=function(t){e[s](t)}}),t.each(t.jPlayer.event,function(s,i){var a=!0;t.each(t.jPlayer.reservedEvent.split(/\s+/g),function(t,e){return e===s?(a=!1,!1):void 0}),a&&e.element.bind(i+".jPlayer.jPlayerHtml",function(){e._emulateHtmlUpdate();var t=document.createEvent("Event");t.initEvent(s,!1,!0),e.internal.domNode.dispatchEvent(t)})})},_emulateHtmlUpdate:function(){var e=this;t.each(t.jPlayer.emulateStatus.split(/\s+/g),function(t,s){e.internal.domNode[s]=e.status[s]}),t.each(t.jPlayer.emulateOptions.split(/\s+/g),function(t,s){e.internal.domNode[s]=e.options[s]})},_destroyHtmlBridge:function(){var e=this;this.element.unbind(".jPlayerHtml");var s=t.jPlayer.emulateMethods+" "+t.jPlayer.emulateStatus+" "+t.jPlayer.emulateOptions;t.each(s.split(/\s+/g),function(t,s){delete e.internal.domNode[s]})}},t.jPlayer.error={FLASH:"e_flash",FLASH_DISABLED:"e_flash_disabled",NO_SOLUTION:"e_no_solution",NO_SUPPORT:"e_no_support",URL:"e_url",URL_NOT_SET:"e_url_not_set",VERSION:"e_version"},t.jPlayer.errorMsg={FLASH:"jPlayer's Flash fallback is not configured correctly, or a command was issued before the jPlayer Ready event. Details: ",FLASH_DISABLED:"jPlayer's Flash fallback has been disabled by the browser due to the CSS rules you have used. Details: ",NO_SOLUTION:"No solution can be found by jPlayer in this browser. Neither HTML nor Flash can be used.",NO_SUPPORT:"It is not possible to play any media format provided in setMedia() on this browser using your current options.",URL:"Media URL could not be loaded.",URL_NOT_SET:"Attempt to issue media playback commands, while no media url is set.",VERSION:"jPlayer "+t.jPlayer.prototype.version.script+" needs Jplayer.swf version "+t.jPlayer.prototype.version.needFlash+" but found "},t.jPlayer.errorHint={FLASH:"Check your swfPath option and that Jplayer.swf is there.",FLASH_DISABLED:"Check that you have not display:none; the jPlayer entity or any ancestor.",NO_SOLUTION:"Review the jPlayer options: support and supplied.",NO_SUPPORT:"Video or audio formats defined in the supplied option are missing.",URL:"Check media URL is valid.",URL_NOT_SET:"Use setMedia() to set the media URL.",VERSION:"Update jPlayer files."},t.jPlayer.warning={CSS_SELECTOR_COUNT:"e_css_selector_count",CSS_SELECTOR_METHOD:"e_css_selector_method",CSS_SELECTOR_STRING:"e_css_selector_string",OPTION_KEY:"e_option_key"},t.jPlayer.warningMsg={CSS_SELECTOR_COUNT:"The number of css selectors found did not equal one: ",CSS_SELECTOR_METHOD:"The methodName given in jPlayer('cssSelector') is not a valid jPlayer method.",CSS_SELECTOR_STRING:"The methodCssSelector given in jPlayer('cssSelector') is not a String or is empty.",OPTION_KEY:"The option requested in jPlayer('option') is undefined."},t.jPlayer.warningHint={CSS_SELECTOR_COUNT:"Check your css selector and the ancestor.",CSS_SELECTOR_METHOD:"Check your method name.",CSS_SELECTOR_STRING:"Check your css selector is a string.",OPTION_KEY:"Check your option name."}});
1
+ !function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):e(t.jQuery?t.jQuery:t.Zepto)}(this,function(t,e){t.fn.jPlayer=function(s){var i="jPlayer",a="string"==typeof s,n=Array.prototype.slice.call(arguments,1),o=this;return s=!a&&n.length?t.extend.apply(null,[!0,s].concat(n)):s,a&&"_"===s.charAt(0)?o:(this.each(a?function(){var a=t(this).data(i),r=a&&t.isFunction(a[s])?a[s].apply(a,n):a;return r!==a&&r!==e?(o=r,!1):void 0}:function(){var e=t(this).data(i);e?e.option(s||{}):t(this).data(i,new t.jPlayer(s,this))}),o)},t.jPlayer=function(e,s){if(arguments.length){this.element=t(s),this.options=t.extend(!0,{},this.options,e);var i=this;this.element.bind("remove.jPlayer",function(){i.destroy()}),this._init()}},"function"!=typeof t.fn.stop&&(t.fn.stop=function(){}),t.jPlayer.emulateMethods="load play pause",t.jPlayer.emulateStatus="src readyState networkState currentTime duration paused ended playbackRate",t.jPlayer.emulateOptions="muted volume",t.jPlayer.reservedEvent="ready flashreset resize repeat error warning",t.jPlayer.event={},t.each(["ready","setmedia","flashreset","resize","repeat","click","error","warning","loadstart","progress","suspend","abort","emptied","stalled","play","pause","loadedmetadata","loadeddata","waiting","playing","canplay","canplaythrough","seeking","seeked","timeupdate","ended","ratechange","durationchange","volumechange"],function(){t.jPlayer.event[this]="jPlayer_"+this}),t.jPlayer.htmlEvent=["loadstart","abort","emptied","stalled","loadedmetadata","canplay","canplaythrough"],t.jPlayer.pause=function(){t.each(t.jPlayer.prototype.instances,function(t,e){e.data("jPlayer").status.srcSet&&e.jPlayer("pause")})},t.jPlayer.timeFormat={showHour:!1,showMin:!0,showSec:!0,padHour:!1,padMin:!0,padSec:!0,sepHour:":",sepMin:":",sepSec:""};var s=function(){this.init()};s.prototype={init:function(){this.options={timeFormat:t.jPlayer.timeFormat}},time:function(t){t=t&&"number"==typeof t?t:0;var e=new Date(1e3*t),s=e.getUTCHours(),i=this.options.timeFormat.showHour?e.getUTCMinutes():e.getUTCMinutes()+60*s,a=this.options.timeFormat.showMin?e.getUTCSeconds():e.getUTCSeconds()+60*i,n=this.options.timeFormat.padHour&&10>s?"0"+s:s,o=this.options.timeFormat.padMin&&10>i?"0"+i:i,r=this.options.timeFormat.padSec&&10>a?"0"+a:a,l="";return l+=this.options.timeFormat.showHour?n+this.options.timeFormat.sepHour:"",l+=this.options.timeFormat.showMin?o+this.options.timeFormat.sepMin:"",l+=this.options.timeFormat.showSec?r+this.options.timeFormat.sepSec:""}};var i=new s;t.jPlayer.convertTime=function(t){return i.time(t)},t.jPlayer.uaBrowser=function(t){var e=t.toLowerCase(),s=/(webkit)[ \/]([\w.]+)/,i=/(opera)(?:.*version)?[ \/]([\w.]+)/,a=/(msie) ([\w.]+)/,n=/(mozilla)(?:.*? rv:([\w.]+))?/,o=s.exec(e)||i.exec(e)||a.exec(e)||e.indexOf("compatible")<0&&n.exec(e)||[];return{browser:o[1]||"",version:o[2]||"0"}},t.jPlayer.uaPlatform=function(t){var e=t.toLowerCase(),s=/(ipad|iphone|ipod|android|blackberry|playbook|windows ce|webos)/,i=/(ipad|playbook)/,a=/(android)/,n=/(mobile)/,o=s.exec(e)||[],r=i.exec(e)||!n.exec(e)&&a.exec(e)||[];return o[1]&&(o[1]=o[1].replace(/\s/g,"_")),{platform:o[1]||"",tablet:r[1]||""}},t.jPlayer.browser={},t.jPlayer.platform={};var a=t.jPlayer.uaBrowser(navigator.userAgent);a.browser&&(t.jPlayer.browser[a.browser]=!0,t.jPlayer.browser.version=a.version);var n=t.jPlayer.uaPlatform(navigator.userAgent);n.platform&&(t.jPlayer.platform[n.platform]=!0,t.jPlayer.platform.mobile=!n.tablet,t.jPlayer.platform.tablet=!!n.tablet),t.jPlayer.getDocMode=function(){var e;return t.jPlayer.browser.msie&&(document.documentMode?e=document.documentMode:(e=5,document.compatMode&&"CSS1Compat"===document.compatMode&&(e=7))),e},t.jPlayer.browser.documentMode=t.jPlayer.getDocMode(),t.jPlayer.nativeFeatures={init:function(){var t,e,s,i=document,a=i.createElement("video"),n={w3c:["fullscreenEnabled","fullscreenElement","requestFullscreen","exitFullscreen","fullscreenchange","fullscreenerror"],moz:["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror"],webkit:["","webkitCurrentFullScreenElement","webkitRequestFullScreen","webkitCancelFullScreen","webkitfullscreenchange",""],webkitVideo:["webkitSupportsFullscreen","webkitDisplayingFullscreen","webkitEnterFullscreen","webkitExitFullscreen","",""]},o=["w3c","moz","webkit","webkitVideo"];for(this.fullscreen=t={support:{w3c:!!i[n.w3c[0]],moz:!!i[n.moz[0]],webkit:"function"==typeof i[n.webkit[3]],webkitVideo:"function"==typeof a[n.webkitVideo[2]]},used:{}},e=0,s=o.length;s>e;e++){var r=o[e];if(t.support[r]){t.spec=r,t.used[r]=!0;break}}if(t.spec){var l=n[t.spec];t.api={fullscreenEnabled:!0,fullscreenElement:function(t){return t=t?t:i,t[l[1]]},requestFullscreen:function(t){return t[l[2]]()},exitFullscreen:function(t){return t=t?t:i,t[l[3]]()}},t.event={fullscreenchange:l[4],fullscreenerror:l[5]}}else t.api={fullscreenEnabled:!1,fullscreenElement:function(){return null},requestFullscreen:function(){},exitFullscreen:function(){}},t.event={}}},t.jPlayer.nativeFeatures.init(),t.jPlayer.focus=null,t.jPlayer.keyIgnoreElementNames="A INPUT TEXTAREA SELECT BUTTON";var o=function(e){var s,i=t.jPlayer.focus,a=document.activeElement;i&&("undefined"!=typeof a?null!==a&&"BODY"!==a.nodeName.toUpperCase()&&(s=!0):t.each(t.jPlayer.keyIgnoreElementNames.split(/\s+/g),function(t,i){return e.target.nodeName.toUpperCase()===i.toUpperCase()?(s=!0,!1):void 0}),s||t.each(i.options.keyBindings,function(s,a){return a&&e.which===a.key&&t.isFunction(a.fn)?(e.preventDefault(),a.fn(i),!1):void 0}))};t.jPlayer.keys=function(e){var s="keydown.jPlayer";t(document.documentElement).unbind(s),e&&t(document.documentElement).bind(s,o)},t.jPlayer.keys(!0),t.jPlayer.prototype={count:0,version:{script:"2.7.1",needFlash:"2.7.0",flash:"unknown"},options:{swfPath:"js",solution:"html, flash",supplied:"mp3",preload:"metadata",volume:.8,muted:!1,remainingDuration:!1,toggleDuration:!1,captureDuration:!0,playbackRate:1,defaultPlaybackRate:1,minPlaybackRate:.5,maxPlaybackRate:4,wmode:"opaque",backgroundColor:"#000000",cssSelectorAncestor:"#jp_container_1",cssSelector:{videoPlay:".jp-video-play",play:".jp-play",pause:".jp-pause",stop:".jp-stop",seekBar:".jp-seek-bar",playBar:".jp-play-bar",mute:".jp-mute",unmute:".jp-unmute",volumeBar:".jp-volume-bar",volumeBarValue:".jp-volume-bar-value",volumeMax:".jp-volume-max",playbackRateBar:".jp-playback-rate-bar",playbackRateBarValue:".jp-playback-rate-bar-value",currentTime:".jp-current-time",duration:".jp-duration",title:".jp-title",fullScreen:".jp-full-screen",restoreScreen:".jp-restore-screen",repeat:".jp-repeat",repeatOff:".jp-repeat-off",gui:".jp-gui",noSolution:".jp-no-solution"},stateClass:{playing:"jp-state-playing",seeking:"jp-state-seeking",muted:"jp-state-muted",looped:"jp-state-looped",fullScreen:"jp-state-full-screen"},useStateClassSkin:!1,autoBlur:!0,smoothPlayBar:!1,fullScreen:!1,fullWindow:!1,autohide:{restored:!1,full:!0,fadeIn:200,fadeOut:600,hold:1e3},loop:!1,repeat:function(e){e.jPlayer.options.loop?t(this).unbind(".jPlayerRepeat").bind(t.jPlayer.event.ended+".jPlayer.jPlayerRepeat",function(){t(this).jPlayer("play")}):t(this).unbind(".jPlayerRepeat")},nativeVideoControls:{},noFullWindow:{msie:/msie [0-6]\./,ipad:/ipad.*?os [0-4]\./,iphone:/iphone/,ipod:/ipod/,android_pad:/android [0-3]\.(?!.*?mobile)/,android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,iemobile:/iemobile/,webos:/webos/},noVolume:{ipad:/ipad/,iphone:/iphone/,ipod:/ipod/,android_pad:/android(?!.*?mobile)/,android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,iemobile:/iemobile/,webos:/webos/,playbook:/playbook/},timeFormat:{},keyEnabled:!1,audioFullScreen:!1,keyBindings:{play:{key:32,fn:function(t){t.status.paused?t.play():t.pause()}},fullScreen:{key:13,fn:function(t){(t.status.video||t.options.audioFullScreen)&&t._setOption("fullScreen",!t.options.fullScreen)}},muted:{key:8,fn:function(t){t._muted(!t.options.muted)}},volumeUp:{key:38,fn:function(t){t.volume(t.options.volume+.1)}},volumeDown:{key:40,fn:function(t){t.volume(t.options.volume-.1)}}},verticalVolume:!1,verticalPlaybackRate:!1,globalVolume:!1,idPrefix:"jp",noConflict:"jQuery",emulateHtml:!1,consoleAlerts:!0,errorAlerts:!1,warningAlerts:!1},optionsAudio:{size:{width:"0px",height:"0px",cssClass:""},sizeFull:{width:"0px",height:"0px",cssClass:""}},optionsVideo:{size:{width:"480px",height:"270px",cssClass:"jp-video-270p"},sizeFull:{width:"100%",height:"100%",cssClass:"jp-video-full"}},instances:{},status:{src:"",media:{},paused:!0,format:{},formatType:"",waitForPlay:!0,waitForLoad:!0,srcSet:!1,video:!1,seekPercent:0,currentPercentRelative:0,currentPercentAbsolute:0,currentTime:0,duration:0,remaining:0,videoWidth:0,videoHeight:0,readyState:0,networkState:0,playbackRate:1,ended:0},internal:{ready:!1},solution:{html:!0,flash:!0},format:{mp3:{codec:"audio/mpeg",flashCanPlay:!0,media:"audio"},m4a:{codec:'audio/mp4; codecs="mp4a.40.2"',flashCanPlay:!0,media:"audio"},m3u8a:{codec:'application/vnd.apple.mpegurl; codecs="mp4a.40.2"',flashCanPlay:!1,media:"audio"},m3ua:{codec:"audio/mpegurl",flashCanPlay:!1,media:"audio"},oga:{codec:'audio/ogg; codecs="vorbis, opus"',flashCanPlay:!1,media:"audio"},flac:{codec:"audio/x-flac",flashCanPlay:!1,media:"audio"},wav:{codec:'audio/wav; codecs="1"',flashCanPlay:!1,media:"audio"},webma:{codec:'audio/webm; codecs="vorbis"',flashCanPlay:!1,media:"audio"},fla:{codec:"audio/x-flv",flashCanPlay:!0,media:"audio"},rtmpa:{codec:'audio/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"audio"},m4v:{codec:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!0,media:"video"},m3u8v:{codec:'application/vnd.apple.mpegurl; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!1,media:"video"},m3uv:{codec:"audio/mpegurl",flashCanPlay:!1,media:"video"},ogv:{codec:'video/ogg; codecs="theora, vorbis"',flashCanPlay:!1,media:"video"},webmv:{codec:'video/webm; codecs="vorbis, vp8"',flashCanPlay:!1,media:"video"},flv:{codec:"video/x-flv",flashCanPlay:!0,media:"video"},rtmpv:{codec:'video/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"video"}},_init:function(){var s=this;if(this.element.empty(),this.status=t.extend({},this.status),this.internal=t.extend({},this.internal),this.options.timeFormat=t.extend({},t.jPlayer.timeFormat,this.options.timeFormat),this.internal.cmdsIgnored=t.jPlayer.platform.ipad||t.jPlayer.platform.iphone||t.jPlayer.platform.ipod,this.internal.domNode=this.element.get(0),this.options.keyEnabled&&!t.jPlayer.focus&&(t.jPlayer.focus=this),this.androidFix={setMedia:!1,play:!1,pause:!1,time:0/0},t.jPlayer.platform.android&&(this.options.preload="auto"!==this.options.preload?"metadata":"auto"),this.formats=[],this.solutions=[],this.require={},this.htmlElement={},this.html={},this.html.audio={},this.html.video={},this.flash={},this.css={},this.css.cs={},this.css.jq={},this.ancestorJq=[],this.options.volume=this._limitValue(this.options.volume,0,1),t.each(this.options.supplied.toLowerCase().split(","),function(e,i){var a=i.replace(/^\s+|\s+$/g,"");if(s.format[a]){var n=!1;t.each(s.formats,function(t,e){return a===e?(n=!0,!1):void 0}),n||s.formats.push(a)}}),t.each(this.options.solution.toLowerCase().split(","),function(e,i){var a=i.replace(/^\s+|\s+$/g,"");if(s.solution[a]){var n=!1;t.each(s.solutions,function(t,e){return a===e?(n=!0,!1):void 0}),n||s.solutions.push(a)}}),this.internal.instance="jp_"+this.count,this.instances[this.internal.instance]=this.element,this.element.attr("id")||this.element.attr("id",this.options.idPrefix+"_jplayer_"+this.count),this.internal.self=t.extend({},{id:this.element.attr("id"),jq:this.element}),this.internal.audio=t.extend({},{id:this.options.idPrefix+"_audio_"+this.count,jq:e}),this.internal.video=t.extend({},{id:this.options.idPrefix+"_video_"+this.count,jq:e}),this.internal.flash=t.extend({},{id:this.options.idPrefix+"_flash_"+this.count,jq:e,swf:this.options.swfPath+(".swf"!==this.options.swfPath.toLowerCase().slice(-4)?(this.options.swfPath&&"/"!==this.options.swfPath.slice(-1)?"/":"")+"Jplayer.swf":"")}),this.internal.poster=t.extend({},{id:this.options.idPrefix+"_poster_"+this.count,jq:e}),t.each(t.jPlayer.event,function(t,i){s.options[t]!==e&&(s.element.bind(i+".jPlayer",s.options[t]),s.options[t]=e)}),this.require.audio=!1,this.require.video=!1,t.each(this.formats,function(t,e){s.require[s.format[e].media]=!0}),this.options=this.require.video?t.extend(!0,{},this.optionsVideo,this.options):t.extend(!0,{},this.optionsAudio,this.options),this._setSize(),this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls),this.status.noFullWindow=this._uaBlocklist(this.options.noFullWindow),this.status.noVolume=this._uaBlocklist(this.options.noVolume),t.jPlayer.nativeFeatures.fullscreen.api.fullscreenEnabled&&this._fullscreenAddEventListeners(),this._restrictNativeVideoControls(),this.htmlElement.poster=document.createElement("img"),this.htmlElement.poster.id=this.internal.poster.id,this.htmlElement.poster.onload=function(){(!s.status.video||s.status.waitForPlay)&&s.internal.poster.jq.show()},this.element.append(this.htmlElement.poster),this.internal.poster.jq=t("#"+this.internal.poster.id),this.internal.poster.jq.css({width:this.status.width,height:this.status.height}),this.internal.poster.jq.hide(),this.internal.poster.jq.bind("click.jPlayer",function(){s._trigger(t.jPlayer.event.click)}),this.html.audio.available=!1,this.require.audio&&(this.htmlElement.audio=document.createElement("audio"),this.htmlElement.audio.id=this.internal.audio.id,this.html.audio.available=!!this.htmlElement.audio.canPlayType&&this._testCanPlayType(this.htmlElement.audio)),this.html.video.available=!1,this.require.video&&(this.htmlElement.video=document.createElement("video"),this.htmlElement.video.id=this.internal.video.id,this.html.video.available=!!this.htmlElement.video.canPlayType&&this._testCanPlayType(this.htmlElement.video)),this.flash.available=this._checkForFlash(10.1),this.html.canPlay={},this.flash.canPlay={},t.each(this.formats,function(t,e){s.html.canPlay[e]=s.html[s.format[e].media].available&&""!==s.htmlElement[s.format[e].media].canPlayType(s.format[e].codec),s.flash.canPlay[e]=s.format[e].flashCanPlay&&s.flash.available}),this.html.desired=!1,this.flash.desired=!1,t.each(this.solutions,function(e,i){if(0===e)s[i].desired=!0;else{var a=!1,n=!1;t.each(s.formats,function(t,e){s[s.solutions[0]].canPlay[e]&&("video"===s.format[e].media?n=!0:a=!0)}),s[i].desired=s.require.audio&&!a||s.require.video&&!n}}),this.html.support={},this.flash.support={},t.each(this.formats,function(t,e){s.html.support[e]=s.html.canPlay[e]&&s.html.desired,s.flash.support[e]=s.flash.canPlay[e]&&s.flash.desired}),this.html.used=!1,this.flash.used=!1,t.each(this.solutions,function(e,i){t.each(s.formats,function(t,e){return s[i].support[e]?(s[i].used=!0,!1):void 0})}),this._resetActive(),this._resetGate(),this._cssSelectorAncestor(this.options.cssSelectorAncestor),this.html.used||this.flash.used?this.css.jq.noSolution.length&&this.css.jq.noSolution.hide():(this._error({type:t.jPlayer.error.NO_SOLUTION,context:"{solution:'"+this.options.solution+"', supplied:'"+this.options.supplied+"'}",message:t.jPlayer.errorMsg.NO_SOLUTION,hint:t.jPlayer.errorHint.NO_SOLUTION}),this.css.jq.noSolution.length&&this.css.jq.noSolution.show()),this.flash.used){var i,a="jQuery="+encodeURI(this.options.noConflict)+"&id="+encodeURI(this.internal.self.id)+"&vol="+this.options.volume+"&muted="+this.options.muted;if(t.jPlayer.browser.msie&&(Number(t.jPlayer.browser.version)<9||t.jPlayer.browser.documentMode<9)){var n='<object id="'+this.internal.flash.id+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="0" height="0" tabindex="-1"></object>',o=['<param name="movie" value="'+this.internal.flash.swf+'" />','<param name="FlashVars" value="'+a+'" />','<param name="allowScriptAccess" value="always" />','<param name="bgcolor" value="'+this.options.backgroundColor+'" />','<param name="wmode" value="'+this.options.wmode+'" />'];i=document.createElement(n);for(var r=0;r<o.length;r++)i.appendChild(document.createElement(o[r]))}else{var l=function(t,e,s){var i=document.createElement("param");i.setAttribute("name",e),i.setAttribute("value",s),t.appendChild(i)};i=document.createElement("object"),i.setAttribute("id",this.internal.flash.id),i.setAttribute("name",this.internal.flash.id),i.setAttribute("data",this.internal.flash.swf),i.setAttribute("type","application/x-shockwave-flash"),i.setAttribute("width","1"),i.setAttribute("height","1"),i.setAttribute("tabindex","-1"),l(i,"flashvars",a),l(i,"allowscriptaccess","always"),l(i,"bgcolor",this.options.backgroundColor),l(i,"wmode",this.options.wmode)}this.element.append(i),this.internal.flash.jq=t(i)}this.status.playbackRateEnabled=this.html.used&&!this.flash.used?this._testPlaybackRate("audio"):!1,this._updatePlaybackRate(),this.html.used&&(this.html.audio.available&&(this._addHtmlEventListeners(this.htmlElement.audio,this.html.audio),this.element.append(this.htmlElement.audio),this.internal.audio.jq=t("#"+this.internal.audio.id)),this.html.video.available&&(this._addHtmlEventListeners(this.htmlElement.video,this.html.video),this.element.append(this.htmlElement.video),this.internal.video.jq=t("#"+this.internal.video.id),this.internal.video.jq.css(this.status.nativeVideoControls?{width:this.status.width,height:this.status.height}:{width:"0px",height:"0px"}),this.internal.video.jq.bind("click.jPlayer",function(){s._trigger(t.jPlayer.event.click)}))),this.options.emulateHtml&&this._emulateHtmlBridge(),this.html.used&&!this.flash.used&&setTimeout(function(){s.internal.ready=!0,s.version.flash="n/a",s._trigger(t.jPlayer.event.repeat),s._trigger(t.jPlayer.event.ready)},100),this._updateNativeVideoControls(),this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),t.jPlayer.prototype.count++},destroy:function(){this.clearMedia(),this._removeUiClass(),this.css.jq.currentTime.length&&this.css.jq.currentTime.text(""),this.css.jq.duration.length&&this.css.jq.duration.text(""),t.each(this.css.jq,function(t,e){e.length&&e.unbind(".jPlayer")}),this.internal.poster.jq.unbind(".jPlayer"),this.internal.video.jq&&this.internal.video.jq.unbind(".jPlayer"),this._fullscreenRemoveEventListeners(),this===t.jPlayer.focus&&(t.jPlayer.focus=null),this.options.emulateHtml&&this._destroyHtmlBridge(),this.element.removeData("jPlayer"),this.element.unbind(".jPlayer"),this.element.empty(),delete this.instances[this.internal.instance]},enable:function(){},disable:function(){},_testCanPlayType:function(t){try{return t.canPlayType(this.format.mp3.codec),!0}catch(e){return!1}},_testPlaybackRate:function(t){var e,s=.5;t="string"==typeof t?t:"audio",e=document.createElement(t);try{return"playbackRate"in e?(e.playbackRate=s,e.playbackRate===s):!1}catch(i){return!1}},_uaBlocklist:function(e){var s=navigator.userAgent.toLowerCase(),i=!1;return t.each(e,function(t,e){return e&&e.test(s)?(i=!0,!1):void 0}),i},_restrictNativeVideoControls:function(){this.require.audio&&this.status.nativeVideoControls&&(this.status.nativeVideoControls=!1,this.status.noFullWindow=!0)},_updateNativeVideoControls:function(){this.html.video.available&&this.html.used&&(this.htmlElement.video.controls=this.status.nativeVideoControls,this._updateAutohide(),this.status.nativeVideoControls&&this.require.video?(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height})):this.status.waitForPlay&&this.status.video&&(this.internal.poster.jq.show(),this.internal.video.jq.css({width:"0px",height:"0px"})))},_addHtmlEventListeners:function(e,s){var i=this;e.preload=this.options.preload,e.muted=this.options.muted,e.volume=this.options.volume,this.status.playbackRateEnabled&&(e.defaultPlaybackRate=this.options.defaultPlaybackRate,e.playbackRate=this.options.playbackRate),e.addEventListener("progress",function(){s.gate&&(i.internal.cmdsIgnored&&this.readyState>0&&(i.internal.cmdsIgnored=!1),i._getHtmlStatus(e),i._updateInterface(),i._trigger(t.jPlayer.event.progress))},!1),e.addEventListener("loadeddata",function(){s.gate&&(i.androidFix.setMedia=!1,i.androidFix.play&&(i.androidFix.play=!1,i.play(i.androidFix.time)),i.androidFix.pause&&(i.androidFix.pause=!1,i.pause(i.androidFix.time)),i._trigger(t.jPlayer.event.loadeddata))},!1),e.addEventListener("timeupdate",function(){s.gate&&(i._getHtmlStatus(e),i._updateInterface(),i._trigger(t.jPlayer.event.timeupdate))},!1),e.addEventListener("durationchange",function(){s.gate&&(i._getHtmlStatus(e),i._updateInterface(),i._trigger(t.jPlayer.event.durationchange))},!1),e.addEventListener("play",function(){s.gate&&(i._updateButtons(!0),i._html_checkWaitForPlay(),i._trigger(t.jPlayer.event.play))},!1),e.addEventListener("playing",function(){s.gate&&(i._updateButtons(!0),i._seeked(),i._trigger(t.jPlayer.event.playing))},!1),e.addEventListener("pause",function(){s.gate&&(i._updateButtons(!1),i._trigger(t.jPlayer.event.pause))},!1),e.addEventListener("waiting",function(){s.gate&&(i._seeking(),i._trigger(t.jPlayer.event.waiting))},!1),e.addEventListener("seeking",function(){s.gate&&(i._seeking(),i._trigger(t.jPlayer.event.seeking))},!1),e.addEventListener("seeked",function(){s.gate&&(i._seeked(),i._trigger(t.jPlayer.event.seeked))},!1),e.addEventListener("volumechange",function(){s.gate&&(i.options.volume=e.volume,i.options.muted=e.muted,i._updateMute(),i._updateVolume(),i._trigger(t.jPlayer.event.volumechange))},!1),e.addEventListener("ratechange",function(){s.gate&&(i.options.defaultPlaybackRate=e.defaultPlaybackRate,i.options.playbackRate=e.playbackRate,i._updatePlaybackRate(),i._trigger(t.jPlayer.event.ratechange))},!1),e.addEventListener("suspend",function(){s.gate&&(i._seeked(),i._trigger(t.jPlayer.event.suspend))},!1),e.addEventListener("ended",function(){s.gate&&(t.jPlayer.browser.webkit||(i.htmlElement.media.currentTime=0),i.htmlElement.media.pause(),i._updateButtons(!1),i._getHtmlStatus(e,!0),i._updateInterface(),i._trigger(t.jPlayer.event.ended))},!1),e.addEventListener("error",function(){s.gate&&(i._updateButtons(!1),i._seeked(),i.status.srcSet&&(clearTimeout(i.internal.htmlDlyCmdId),i.status.waitForLoad=!0,i.status.waitForPlay=!0,i.status.video&&!i.status.nativeVideoControls&&i.internal.video.jq.css({width:"0px",height:"0px"}),i._validString(i.status.media.poster)&&!i.status.nativeVideoControls&&i.internal.poster.jq.show(),i.css.jq.videoPlay.length&&i.css.jq.videoPlay.show(),i._error({type:t.jPlayer.error.URL,context:i.status.src,message:t.jPlayer.errorMsg.URL,hint:t.jPlayer.errorHint.URL})))},!1),t.each(t.jPlayer.htmlEvent,function(a,n){e.addEventListener(this,function(){s.gate&&i._trigger(t.jPlayer.event[n])},!1)})},_getHtmlStatus:function(t,e){var s=0,i=0,a=0,n=0;isFinite(t.duration)&&(this.status.duration=t.duration),s=t.currentTime,i=this.status.duration>0?100*s/this.status.duration:0,"object"==typeof t.seekable&&t.seekable.length>0?(a=this.status.duration>0?100*t.seekable.end(t.seekable.length-1)/this.status.duration:100,n=this.status.duration>0?100*t.currentTime/t.seekable.end(t.seekable.length-1):0):(a=100,n=i),e&&(s=0,n=0,i=0),this.status.seekPercent=a,this.status.currentPercentRelative=n,this.status.currentPercentAbsolute=i,this.status.currentTime=s,this.status.remaining=this.status.duration-this.status.currentTime,this.status.videoWidth=t.videoWidth,this.status.videoHeight=t.videoHeight,this.status.readyState=t.readyState,this.status.networkState=t.networkState,this.status.playbackRate=t.playbackRate,this.status.ended=t.ended},_resetStatus:function(){this.status=t.extend({},this.status,t.jPlayer.prototype.status)},_trigger:function(e,s,i){var a=t.Event(e);a.jPlayer={},a.jPlayer.version=t.extend({},this.version),a.jPlayer.options=t.extend(!0,{},this.options),a.jPlayer.status=t.extend(!0,{},this.status),a.jPlayer.html=t.extend(!0,{},this.html),a.jPlayer.flash=t.extend(!0,{},this.flash),s&&(a.jPlayer.error=t.extend({},s)),i&&(a.jPlayer.warning=t.extend({},i)),this.element.trigger(a)},jPlayerFlashEvent:function(e,s){if(e===t.jPlayer.event.ready)if(this.internal.ready){if(this.flash.gate){if(this.status.srcSet){var i=this.status.currentTime,a=this.status.paused;this.setMedia(this.status.media),this.volumeWorker(this.options.volume),i>0&&(a?this.pause(i):this.play(i))}this._trigger(t.jPlayer.event.flashreset)}}else this.internal.ready=!0,this.internal.flash.jq.css({width:"0px",height:"0px"}),this.version.flash=s.version,this.version.needFlash!==this.version.flash&&this._error({type:t.jPlayer.error.VERSION,context:this.version.flash,message:t.jPlayer.errorMsg.VERSION+this.version.flash,hint:t.jPlayer.errorHint.VERSION}),this._trigger(t.jPlayer.event.repeat),this._trigger(e);if(this.flash.gate)switch(e){case t.jPlayer.event.progress:this._getFlashStatus(s),this._updateInterface(),this._trigger(e);break;case t.jPlayer.event.timeupdate:this._getFlashStatus(s),this._updateInterface(),this._trigger(e);break;case t.jPlayer.event.play:this._seeked(),this._updateButtons(!0),this._trigger(e);break;case t.jPlayer.event.pause:this._updateButtons(!1),this._trigger(e);break;case t.jPlayer.event.ended:this._updateButtons(!1),this._trigger(e);break;case t.jPlayer.event.click:this._trigger(e);break;case t.jPlayer.event.error:this.status.waitForLoad=!0,this.status.waitForPlay=!0,this.status.video&&this.internal.flash.jq.css({width:"0px",height:"0px"}),this._validString(this.status.media.poster)&&this.internal.poster.jq.show(),this.css.jq.videoPlay.length&&this.status.video&&this.css.jq.videoPlay.show(),this.status.video?this._flash_setVideo(this.status.media):this._flash_setAudio(this.status.media),this._updateButtons(!1),this._error({type:t.jPlayer.error.URL,context:s.src,message:t.jPlayer.errorMsg.URL,hint:t.jPlayer.errorHint.URL});break;case t.jPlayer.event.seeking:this._seeking(),this._trigger(e);break;case t.jPlayer.event.seeked:this._seeked(),this._trigger(e);break;case t.jPlayer.event.ready:break;default:this._trigger(e)}return!1},_getFlashStatus:function(t){this.status.seekPercent=t.seekPercent,this.status.currentPercentRelative=t.currentPercentRelative,this.status.currentPercentAbsolute=t.currentPercentAbsolute,this.status.currentTime=t.currentTime,this.status.duration=t.duration,this.status.remaining=t.duration-t.currentTime,this.status.videoWidth=t.videoWidth,this.status.videoHeight=t.videoHeight,this.status.readyState=4,this.status.networkState=0,this.status.playbackRate=1,this.status.ended=!1},_updateButtons:function(t){t===e?t=!this.status.paused:this.status.paused=!t,t?this.addStateClass("playing"):this.removeStateClass("playing"),!this.status.noFullWindow&&this.options.fullWindow?this.addStateClass("fullScreen"):this.removeStateClass("fullScreen"),this.options.loop?this.addStateClass("looped"):this.removeStateClass("looped"),this.css.jq.play.length&&this.css.jq.pause.length&&(t?(this.css.jq.play.hide(),this.css.jq.pause.show()):(this.css.jq.play.show(),this.css.jq.pause.hide())),this.css.jq.restoreScreen.length&&this.css.jq.fullScreen.length&&(this.status.noFullWindow?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.hide()):this.options.fullWindow?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.show()):(this.css.jq.fullScreen.show(),this.css.jq.restoreScreen.hide())),this.css.jq.repeat.length&&this.css.jq.repeatOff.length&&(this.options.loop?(this.css.jq.repeat.hide(),this.css.jq.repeatOff.show()):(this.css.jq.repeat.show(),this.css.jq.repeatOff.hide()))},_updateInterface:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.width(this.status.seekPercent+"%"),this.css.jq.playBar.length&&(this.options.smoothPlayBar?this.css.jq.playBar.stop().animate({width:this.status.currentPercentAbsolute+"%"},250,"linear"):this.css.jq.playBar.width(this.status.currentPercentRelative+"%"));var t="";this.css.jq.currentTime.length&&(t=this._convertTime(this.status.currentTime),t!==this.css.jq.currentTime.text()&&this.css.jq.currentTime.text(this._convertTime(this.status.currentTime)));var e="",s=this.status.duration,i=this.status.remaining;this.css.jq.duration.length&&("string"==typeof this.status.media.duration?e=this.status.media.duration:("number"==typeof this.status.media.duration&&(s=this.status.media.duration,i=s-this.status.currentTime),e=this.options.remainingDuration?(i>0?"-":"")+this._convertTime(i):this._convertTime(s)),e!==this.css.jq.duration.text()&&this.css.jq.duration.text(e))},_convertTime:s.prototype.time,_seeking:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.addClass("jp-seeking-bg"),this.addStateClass("seeking")},_seeked:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.removeClass("jp-seeking-bg"),this.removeStateClass("seeking")},_resetGate:function(){this.html.audio.gate=!1,this.html.video.gate=!1,this.flash.gate=!1},_resetActive:function(){this.html.active=!1,this.flash.active=!1},_escapeHtml:function(t){return t.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;").split('"').join("&quot;")},_qualifyURL:function(t){var e=document.createElement("div");return e.innerHTML='<a href="'+this._escapeHtml(t)+'">x</a>',e.firstChild.href},_absoluteMediaUrls:function(e){var s=this;return t.each(e,function(t,i){i&&s.format[t]&&(e[t]=s._qualifyURL(i))}),e},addStateClass:function(t){this.ancestorJq.length&&this.ancestorJq.addClass(this.options.stateClass[t])},removeStateClass:function(t){this.ancestorJq.length&&this.ancestorJq.removeClass(this.options.stateClass[t])},setMedia:function(e){var s=this,i=!1,a=this.status.media.poster!==e.poster;this._resetMedia(),this._resetGate(),this._resetActive(),this.androidFix.setMedia=!1,this.androidFix.play=!1,this.androidFix.pause=!1,e=this._absoluteMediaUrls(e),t.each(this.formats,function(a,n){var o="video"===s.format[n].media;return t.each(s.solutions,function(a,r){if(s[r].support[n]&&s._validString(e[n])){var l="html"===r;return o?(l?(s.html.video.gate=!0,s._html_setVideo(e),s.html.active=!0):(s.flash.gate=!0,s._flash_setVideo(e),s.flash.active=!0),s.css.jq.videoPlay.length&&s.css.jq.videoPlay.show(),s.status.video=!0):(l?(s.html.audio.gate=!0,s._html_setAudio(e),s.html.active=!0,t.jPlayer.platform.android&&(s.androidFix.setMedia=!0)):(s.flash.gate=!0,s._flash_setAudio(e),s.flash.active=!0),s.css.jq.videoPlay.length&&s.css.jq.videoPlay.hide(),s.status.video=!1),i=!0,!1}}),i?!1:void 0}),i?(this.status.nativeVideoControls&&this.html.video.gate||this._validString(e.poster)&&(a?this.htmlElement.poster.src=e.poster:this.internal.poster.jq.show()),this.css.jq.title.length&&"string"==typeof e.title&&(this.css.jq.title.html(e.title),this.htmlElement.audio&&this.htmlElement.audio.setAttribute("title",e.title),this.htmlElement.video&&this.htmlElement.video.setAttribute("title",e.title)),this.status.srcSet=!0,this.status.media=t.extend({},e),this._updateButtons(!1),this._updateInterface(),this._trigger(t.jPlayer.event.setmedia)):this._error({type:t.jPlayer.error.NO_SUPPORT,context:"{supplied:'"+this.options.supplied+"'}",message:t.jPlayer.errorMsg.NO_SUPPORT,hint:t.jPlayer.errorHint.NO_SUPPORT})},_resetMedia:function(){this._resetStatus(),this._updateButtons(!1),this._updateInterface(),this._seeked(),this.internal.poster.jq.hide(),clearTimeout(this.internal.htmlDlyCmdId),this.html.active?this._html_resetMedia():this.flash.active&&this._flash_resetMedia()},clearMedia:function(){this._resetMedia(),this.html.active?this._html_clearMedia():this.flash.active&&this._flash_clearMedia(),this._resetGate(),this._resetActive()},load:function(){this.status.srcSet?this.html.active?this._html_load():this.flash.active&&this._flash_load():this._urlNotSetError("load")},focus:function(){this.options.keyEnabled&&(t.jPlayer.focus=this)},play:function(t){var e="object"==typeof t;e&&this.options.useStateClassSkin&&!this.status.paused?this.pause(t):(t="number"==typeof t?t:0/0,this.status.srcSet?(this.focus(),this.html.active?this._html_play(t):this.flash.active&&this._flash_play(t)):this._urlNotSetError("play"))},videoPlay:function(){this.play()
2
  },pause:function(t){t="number"==typeof t?t:0/0,this.status.srcSet?this.html.active?this._html_pause(t):this.flash.active&&this._flash_pause(t):this._urlNotSetError("pause")},tellOthers:function(e,s){var i=this,a="function"==typeof s,n=Array.prototype.slice.call(arguments);"string"==typeof e&&(a&&n.splice(1,1),t.each(this.instances,function(){i.element!==this&&(!a||s.call(this.data("jPlayer"),i))&&this.jPlayer.apply(this,n)}))},pauseOthers:function(t){this.tellOthers("pause",function(){return this.status.srcSet},t)},stop:function(){this.status.srcSet?this.html.active?this._html_pause(0):this.flash.active&&this._flash_pause(0):this._urlNotSetError("stop")},playHead:function(t){t=this._limitValue(t,0,100),this.status.srcSet?this.html.active?this._html_playHead(t):this.flash.active&&this._flash_playHead(t):this._urlNotSetError("playHead")},_muted:function(t){this.mutedWorker(t),this.options.globalVolume&&this.tellOthers("mutedWorker",function(){return this.options.globalVolume},t)},mutedWorker:function(e){this.options.muted=e,this.html.used&&this._html_setProperty("muted",e),this.flash.used&&this._flash_mute(e),this.html.video.gate||this.html.audio.gate||(this._updateMute(e),this._updateVolume(this.options.volume),this._trigger(t.jPlayer.event.volumechange))},mute:function(t){var s="object"==typeof t;s&&this.options.useStateClassSkin&&this.options.muted?this._muted(!1):(t=t===e?!0:!!t,this._muted(t))},unmute:function(t){t=t===e?!0:!!t,this._muted(!t)},_updateMute:function(t){t===e&&(t=this.options.muted),t?this.addStateClass("muted"):this.removeStateClass("muted"),this.css.jq.mute.length&&this.css.jq.unmute.length&&(this.status.noVolume?(this.css.jq.mute.hide(),this.css.jq.unmute.hide()):t?(this.css.jq.mute.hide(),this.css.jq.unmute.show()):(this.css.jq.mute.show(),this.css.jq.unmute.hide()))},volume:function(t){this.volumeWorker(t),this.options.globalVolume&&this.tellOthers("volumeWorker",function(){return this.options.globalVolume},t)},volumeWorker:function(e){e=this._limitValue(e,0,1),this.options.volume=e,this.html.used&&this._html_setProperty("volume",e),this.flash.used&&this._flash_volume(e),this.html.video.gate||this.html.audio.gate||(this._updateVolume(e),this._trigger(t.jPlayer.event.volumechange))},volumeBar:function(e){if(this.css.jq.volumeBar.length){var s=t(e.currentTarget),i=s.offset(),a=e.pageX-i.left,n=s.width(),o=s.height()-e.pageY+i.top,r=s.height();this.volume(this.options.verticalVolume?o/r:a/n)}this.options.muted&&this._muted(!1)},_updateVolume:function(t){t===e&&(t=this.options.volume),t=this.options.muted?0:t,this.status.noVolume?(this.css.jq.volumeBar.length&&this.css.jq.volumeBar.hide(),this.css.jq.volumeBarValue.length&&this.css.jq.volumeBarValue.hide(),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.hide()):(this.css.jq.volumeBar.length&&this.css.jq.volumeBar.show(),this.css.jq.volumeBarValue.length&&(this.css.jq.volumeBarValue.show(),this.css.jq.volumeBarValue[this.options.verticalVolume?"height":"width"](100*t+"%")),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.show())},volumeMax:function(){this.volume(1),this.options.muted&&this._muted(!1)},_cssSelectorAncestor:function(e){var s=this;this.options.cssSelectorAncestor=e,this._removeUiClass(),this.ancestorJq=e?t(e):[],e&&1!==this.ancestorJq.length&&this._warning({type:t.jPlayer.warning.CSS_SELECTOR_COUNT,context:e,message:t.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.ancestorJq.length+" found for cssSelectorAncestor.",hint:t.jPlayer.warningHint.CSS_SELECTOR_COUNT}),this._addUiClass(),t.each(this.options.cssSelector,function(t,e){s._cssSelector(t,e)}),this._updateInterface(),this._updateButtons(),this._updateAutohide(),this._updateVolume(),this._updateMute()},_cssSelector:function(e,s){var i=this;if("string"==typeof s)if(t.jPlayer.prototype.options.cssSelector[e]){if(this.css.jq[e]&&this.css.jq[e].length&&this.css.jq[e].unbind(".jPlayer"),this.options.cssSelector[e]=s,this.css.cs[e]=this.options.cssSelectorAncestor+" "+s,this.css.jq[e]=s?t(this.css.cs[e]):[],this.css.jq[e].length&&this[e]){var a=function(s){s.preventDefault(),i[e](s),i.options.autoBlur&&t(this).blur()};this.css.jq[e].bind("click.jPlayer",a)}s&&1!==this.css.jq[e].length&&this._warning({type:t.jPlayer.warning.CSS_SELECTOR_COUNT,context:this.css.cs[e],message:t.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.css.jq[e].length+" found for "+e+" method.",hint:t.jPlayer.warningHint.CSS_SELECTOR_COUNT})}else this._warning({type:t.jPlayer.warning.CSS_SELECTOR_METHOD,context:e,message:t.jPlayer.warningMsg.CSS_SELECTOR_METHOD,hint:t.jPlayer.warningHint.CSS_SELECTOR_METHOD});else this._warning({type:t.jPlayer.warning.CSS_SELECTOR_STRING,context:s,message:t.jPlayer.warningMsg.CSS_SELECTOR_STRING,hint:t.jPlayer.warningHint.CSS_SELECTOR_STRING})},duration:function(t){this.options.toggleDuration&&(this.options.captureDuration&&t.stopPropagation(),this._setOption("remainingDuration",!this.options.remainingDuration))},seekBar:function(e){if(this.css.jq.seekBar.length){var s=t(e.currentTarget),i=s.offset(),a=e.pageX-i.left,n=s.width(),o=100*a/n;this.playHead(o)}},playbackRate:function(t){this._setOption("playbackRate",t)},playbackRateBar:function(e){if(this.css.jq.playbackRateBar.length){var s,i,a=t(e.currentTarget),n=a.offset(),o=e.pageX-n.left,r=a.width(),l=a.height()-e.pageY+n.top,h=a.height();s=this.options.verticalPlaybackRate?l/h:o/r,i=s*(this.options.maxPlaybackRate-this.options.minPlaybackRate)+this.options.minPlaybackRate,this.playbackRate(i)}},_updatePlaybackRate:function(){var t=this.options.playbackRate,e=(t-this.options.minPlaybackRate)/(this.options.maxPlaybackRate-this.options.minPlaybackRate);this.status.playbackRateEnabled?(this.css.jq.playbackRateBar.length&&this.css.jq.playbackRateBar.show(),this.css.jq.playbackRateBarValue.length&&(this.css.jq.playbackRateBarValue.show(),this.css.jq.playbackRateBarValue[this.options.verticalPlaybackRate?"height":"width"](100*e+"%"))):(this.css.jq.playbackRateBar.length&&this.css.jq.playbackRateBar.hide(),this.css.jq.playbackRateBarValue.length&&this.css.jq.playbackRateBarValue.hide())},repeat:function(t){var e="object"==typeof t;this._loop(e&&this.options.useStateClassSkin&&this.options.loop?!1:!0)},repeatOff:function(){this._loop(!1)},_loop:function(e){this.options.loop!==e&&(this.options.loop=e,this._updateButtons(),this._trigger(t.jPlayer.event.repeat))},option:function(s,i){var a=s;if(0===arguments.length)return t.extend(!0,{},this.options);if("string"==typeof s){var n=s.split(".");if(i===e){for(var o=t.extend(!0,{},this.options),r=0;r<n.length;r++){if(o[n[r]]===e)return this._warning({type:t.jPlayer.warning.OPTION_KEY,context:s,message:t.jPlayer.warningMsg.OPTION_KEY,hint:t.jPlayer.warningHint.OPTION_KEY}),e;o=o[n[r]]}return o}a={};for(var l=a,h=0;h<n.length;h++)h<n.length-1?(l[n[h]]={},l=l[n[h]]):l[n[h]]=i}return this._setOptions(a),this},_setOptions:function(e){var s=this;return t.each(e,function(t,e){s._setOption(t,e)}),this},_setOption:function(e,s){var i=this;switch(e){case"volume":this.volume(s);break;case"muted":this._muted(s);break;case"globalVolume":this.options[e]=s;break;case"cssSelectorAncestor":this._cssSelectorAncestor(s);break;case"cssSelector":t.each(s,function(t,e){i._cssSelector(t,e)});break;case"playbackRate":this.options[e]=s=this._limitValue(s,this.options.minPlaybackRate,this.options.maxPlaybackRate),this.html.used&&this._html_setProperty("playbackRate",s),this._updatePlaybackRate();break;case"defaultPlaybackRate":this.options[e]=s=this._limitValue(s,this.options.minPlaybackRate,this.options.maxPlaybackRate),this.html.used&&this._html_setProperty("defaultPlaybackRate",s),this._updatePlaybackRate();break;case"minPlaybackRate":this.options[e]=s=this._limitValue(s,.1,this.options.maxPlaybackRate-.1),this._updatePlaybackRate();break;case"maxPlaybackRate":this.options[e]=s=this._limitValue(s,this.options.minPlaybackRate+.1,16),this._updatePlaybackRate();break;case"fullScreen":if(this.options[e]!==s){var a=t.jPlayer.nativeFeatures.fullscreen.used.webkitVideo;(!a||a&&!this.status.waitForPlay)&&(a||(this.options[e]=s),s?this._requestFullscreen():this._exitFullscreen(),a||this._setOption("fullWindow",s))}break;case"fullWindow":this.options[e]!==s&&(this._removeUiClass(),this.options[e]=s,this._refreshSize());break;case"size":this.options.fullWindow||this.options[e].cssClass===s.cssClass||this._removeUiClass(),this.options[e]=t.extend({},this.options[e],s),this._refreshSize();break;case"sizeFull":this.options.fullWindow&&this.options[e].cssClass!==s.cssClass&&this._removeUiClass(),this.options[e]=t.extend({},this.options[e],s),this._refreshSize();break;case"autohide":this.options[e]=t.extend({},this.options[e],s),this._updateAutohide();break;case"loop":this._loop(s);break;case"remainingDuration":this.options[e]=s,this._updateInterface();break;case"toggleDuration":this.options[e]=s;break;case"nativeVideoControls":this.options[e]=t.extend({},this.options[e],s),this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls),this._restrictNativeVideoControls(),this._updateNativeVideoControls();break;case"noFullWindow":this.options[e]=t.extend({},this.options[e],s),this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls),this.status.noFullWindow=this._uaBlocklist(this.options.noFullWindow),this._restrictNativeVideoControls(),this._updateButtons();break;case"noVolume":this.options[e]=t.extend({},this.options[e],s),this.status.noVolume=this._uaBlocklist(this.options.noVolume),this._updateVolume(),this._updateMute();break;case"emulateHtml":this.options[e]!==s&&(this.options[e]=s,s?this._emulateHtmlBridge():this._destroyHtmlBridge());break;case"timeFormat":this.options[e]=t.extend({},this.options[e],s);break;case"keyEnabled":this.options[e]=s,s||this!==t.jPlayer.focus||(t.jPlayer.focus=null);break;case"keyBindings":this.options[e]=t.extend(!0,{},this.options[e],s);break;case"audioFullScreen":this.options[e]=s;break;case"autoBlur":this.options[e]=s}return this},_refreshSize:function(){this._setSize(),this._addUiClass(),this._updateSize(),this._updateButtons(),this._updateAutohide(),this._trigger(t.jPlayer.event.resize)},_setSize:function(){this.options.fullWindow?(this.status.width=this.options.sizeFull.width,this.status.height=this.options.sizeFull.height,this.status.cssClass=this.options.sizeFull.cssClass):(this.status.width=this.options.size.width,this.status.height=this.options.size.height,this.status.cssClass=this.options.size.cssClass),this.element.css({width:this.status.width,height:this.status.height})},_addUiClass:function(){this.ancestorJq.length&&this.ancestorJq.addClass(this.status.cssClass)},_removeUiClass:function(){this.ancestorJq.length&&this.ancestorJq.removeClass(this.status.cssClass)},_updateSize:function(){this.internal.poster.jq.css({width:this.status.width,height:this.status.height}),!this.status.waitForPlay&&this.html.active&&this.status.video||this.html.video.available&&this.html.used&&this.status.nativeVideoControls?this.internal.video.jq.css({width:this.status.width,height:this.status.height}):!this.status.waitForPlay&&this.flash.active&&this.status.video&&this.internal.flash.jq.css({width:this.status.width,height:this.status.height})},_updateAutohide:function(){var t=this,e="mousemove.jPlayer",s=".jPlayerAutohide",i=e+s,a=function(){t.css.jq.gui.fadeIn(t.options.autohide.fadeIn,function(){clearTimeout(t.internal.autohideId),t.internal.autohideId=setTimeout(function(){t.css.jq.gui.fadeOut(t.options.autohide.fadeOut)},t.options.autohide.hold)})};this.css.jq.gui.length&&(this.css.jq.gui.stop(!0,!0),clearTimeout(this.internal.autohideId),this.element.unbind(s),this.css.jq.gui.unbind(s),this.status.nativeVideoControls?this.css.jq.gui.hide():this.options.fullWindow&&this.options.autohide.full||!this.options.fullWindow&&this.options.autohide.restored?(this.element.bind(i,a),this.css.jq.gui.bind(i,a),this.css.jq.gui.hide()):this.css.jq.gui.show())},fullScreen:function(t){var e="object"==typeof t;e&&this.options.useStateClassSkin&&this.options.fullScreen?this._setOption("fullScreen",!1):this._setOption("fullScreen",!0)},restoreScreen:function(){this._setOption("fullScreen",!1)},_fullscreenAddEventListeners:function(){var e=this,s=t.jPlayer.nativeFeatures.fullscreen;s.api.fullscreenEnabled&&s.event.fullscreenchange&&("function"!=typeof this.internal.fullscreenchangeHandler&&(this.internal.fullscreenchangeHandler=function(){e._fullscreenchange()}),document.addEventListener(s.event.fullscreenchange,this.internal.fullscreenchangeHandler,!1))},_fullscreenRemoveEventListeners:function(){var e=t.jPlayer.nativeFeatures.fullscreen;this.internal.fullscreenchangeHandler&&document.removeEventListener(e.event.fullscreenchange,this.internal.fullscreenchangeHandler,!1)},_fullscreenchange:function(){this.options.fullScreen&&!t.jPlayer.nativeFeatures.fullscreen.api.fullscreenElement()&&this._setOption("fullScreen",!1)},_requestFullscreen:function(){var e=this.ancestorJq.length?this.ancestorJq[0]:this.element[0],s=t.jPlayer.nativeFeatures.fullscreen;s.used.webkitVideo&&(e=this.htmlElement.video),s.api.fullscreenEnabled&&s.api.requestFullscreen(e)},_exitFullscreen:function(){var e,s=t.jPlayer.nativeFeatures.fullscreen;s.used.webkitVideo&&(e=this.htmlElement.video),s.api.fullscreenEnabled&&s.api.exitFullscreen(e)},_html_initMedia:function(e){var s=t(this.htmlElement.media).empty();t.each(e.track||[],function(t,e){var i=document.createElement("track");i.setAttribute("kind",e.kind?e.kind:""),i.setAttribute("src",e.src?e.src:""),i.setAttribute("srclang",e.srclang?e.srclang:""),i.setAttribute("label",e.label?e.label:""),e.def&&i.setAttribute("default",e.def),s.append(i)}),this.htmlElement.media.src=this.status.src,"none"!==this.options.preload&&this._html_load(),this._trigger(t.jPlayer.event.timeupdate)},_html_setFormat:function(e){var s=this;t.each(this.formats,function(t,i){return s.html.support[i]&&e[i]?(s.status.src=e[i],s.status.format[i]=!0,s.status.formatType=i,!1):void 0})},_html_setAudio:function(t){this._html_setFormat(t),this.htmlElement.media=this.htmlElement.audio,this._html_initMedia(t)},_html_setVideo:function(t){this._html_setFormat(t),this.status.nativeVideoControls&&(this.htmlElement.video.poster=this._validString(t.poster)?t.poster:""),this.htmlElement.media=this.htmlElement.video,this._html_initMedia(t)},_html_resetMedia:function(){this.htmlElement.media&&(this.htmlElement.media.id!==this.internal.video.id||this.status.nativeVideoControls||this.internal.video.jq.css({width:"0px",height:"0px"}),this.htmlElement.media.pause())},_html_clearMedia:function(){this.htmlElement.media&&(this.htmlElement.media.src="about:blank",this.htmlElement.media.load())},_html_load:function(){this.status.waitForLoad&&(this.status.waitForLoad=!1,this.htmlElement.media.load()),clearTimeout(this.internal.htmlDlyCmdId)},_html_play:function(t){var e=this,s=this.htmlElement.media;if(this.androidFix.pause=!1,this._html_load(),this.androidFix.setMedia)this.androidFix.play=!0,this.androidFix.time=t;else if(isNaN(t))s.play();else{this.internal.cmdsIgnored&&s.play();try{if(s.seekable&&!("object"==typeof s.seekable&&s.seekable.length>0))throw 1;s.currentTime=t,s.play()}catch(i){return void(this.internal.htmlDlyCmdId=setTimeout(function(){e.play(t)},250))}}this._html_checkWaitForPlay()},_html_pause:function(t){var e=this,s=this.htmlElement.media;if(this.androidFix.play=!1,t>0?this._html_load():clearTimeout(this.internal.htmlDlyCmdId),s.pause(),this.androidFix.setMedia)this.androidFix.pause=!0,this.androidFix.time=t;else if(!isNaN(t))try{if(s.seekable&&!("object"==typeof s.seekable&&s.seekable.length>0))throw 1;s.currentTime=t}catch(i){return void(this.internal.htmlDlyCmdId=setTimeout(function(){e.pause(t)},250))}t>0&&this._html_checkWaitForPlay()},_html_playHead:function(t){var e=this,s=this.htmlElement.media;this._html_load();try{if("object"==typeof s.seekable&&s.seekable.length>0)s.currentTime=t*s.seekable.end(s.seekable.length-1)/100;else{if(!(s.duration>0)||isNaN(s.duration))throw"e";s.currentTime=t*s.duration/100}}catch(i){return void(this.internal.htmlDlyCmdId=setTimeout(function(){e.playHead(t)},250))}this.status.waitForLoad||this._html_checkWaitForPlay()},_html_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height})))},_html_setProperty:function(t,e){this.html.audio.available&&(this.htmlElement.audio[t]=e),this.html.video.available&&(this.htmlElement.video[t]=e)},_flash_setAudio:function(e){var s=this;try{t.each(this.formats,function(t,i){if(s.flash.support[i]&&e[i]){switch(i){case"m4a":case"fla":s._getMovie().fl_setAudio_m4a(e[i]);break;case"mp3":s._getMovie().fl_setAudio_mp3(e[i]);break;case"rtmpa":s._getMovie().fl_setAudio_rtmp(e[i])}return s.status.src=e[i],s.status.format[i]=!0,s.status.formatType=i,!1}}),"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(i){this._flashError(i)}},_flash_setVideo:function(e){var s=this;try{t.each(this.formats,function(t,i){if(s.flash.support[i]&&e[i]){switch(i){case"m4v":case"flv":s._getMovie().fl_setVideo_m4v(e[i]);break;case"rtmpv":s._getMovie().fl_setVideo_rtmp(e[i])}return s.status.src=e[i],s.status.format[i]=!0,s.status.formatType=i,!1}}),"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(i){this._flashError(i)}},_flash_resetMedia:function(){this.internal.flash.jq.css({width:"0px",height:"0px"}),this._flash_pause(0/0)},_flash_clearMedia:function(){try{this._getMovie().fl_clearMedia()}catch(t){this._flashError(t)}},_flash_load:function(){try{this._getMovie().fl_load()}catch(t){this._flashError(t)}this.status.waitForLoad=!1},_flash_play:function(t){try{this._getMovie().fl_play(t)}catch(e){this._flashError(e)}this.status.waitForLoad=!1,this._flash_checkWaitForPlay()},_flash_pause:function(t){try{this._getMovie().fl_pause(t)}catch(e){this._flashError(e)}t>0&&(this.status.waitForLoad=!1,this._flash_checkWaitForPlay())},_flash_playHead:function(t){try{this._getMovie().fl_play_head(t)}catch(e){this._flashError(e)}this.status.waitForLoad||this._flash_checkWaitForPlay()},_flash_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.flash.jq.css({width:this.status.width,height:this.status.height})))},_flash_volume:function(t){try{this._getMovie().fl_volume(t)}catch(e){this._flashError(e)}},_flash_mute:function(t){try{this._getMovie().fl_mute(t)}catch(e){this._flashError(e)}},_getMovie:function(){return document[this.internal.flash.id]},_getFlashPluginVersion:function(){var t,e=0;if(window.ActiveXObject)try{if(t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")){var s=t.GetVariable("$version");s&&(s=s.split(" ")[1].split(","),e=parseInt(s[0],10)+"."+parseInt(s[1],10))}}catch(i){}else navigator.plugins&&navigator.mimeTypes.length>0&&(t=navigator.plugins["Shockwave Flash"],t&&(e=navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/,"$1")));return 1*e},_checkForFlash:function(t){var e=!1;return this._getFlashPluginVersion()>=t&&(e=!0),e},_validString:function(t){return t&&"string"==typeof t},_limitValue:function(t,e,s){return e>t?e:t>s?s:t},_urlNotSetError:function(e){this._error({type:t.jPlayer.error.URL_NOT_SET,context:e,message:t.jPlayer.errorMsg.URL_NOT_SET,hint:t.jPlayer.errorHint.URL_NOT_SET})},_flashError:function(e){var s;s=this.internal.ready?"FLASH_DISABLED":"FLASH",this._error({type:t.jPlayer.error[s],context:this.internal.flash.swf,message:t.jPlayer.errorMsg[s]+e.message,hint:t.jPlayer.errorHint[s]}),this.internal.flash.jq.css({width:"1px",height:"1px"})},_error:function(e){this._trigger(t.jPlayer.event.error,e),this.options.errorAlerts&&this._alert("Error!"+(e.message?"\n"+e.message:"")+(e.hint?"\n"+e.hint:"")+"\nContext: "+e.context)},_warning:function(s){this._trigger(t.jPlayer.event.warning,e,s),this.options.warningAlerts&&this._alert("Warning!"+(s.message?"\n"+s.message:"")+(s.hint?"\n"+s.hint:"")+"\nContext: "+s.context)},_alert:function(t){var e="jPlayer "+this.version.script+" : id='"+this.internal.self.id+"' : "+t;this.options.consoleAlerts?window.console&&window.console.log&&window.console.log(e):alert(e)},_emulateHtmlBridge:function(){var e=this;t.each(t.jPlayer.emulateMethods.split(/\s+/g),function(t,s){e.internal.domNode[s]=function(t){e[s](t)}}),t.each(t.jPlayer.event,function(s,i){var a=!0;t.each(t.jPlayer.reservedEvent.split(/\s+/g),function(t,e){return e===s?(a=!1,!1):void 0}),a&&e.element.bind(i+".jPlayer.jPlayerHtml",function(){e._emulateHtmlUpdate();var t=document.createEvent("Event");t.initEvent(s,!1,!0),e.internal.domNode.dispatchEvent(t)})})},_emulateHtmlUpdate:function(){var e=this;t.each(t.jPlayer.emulateStatus.split(/\s+/g),function(t,s){e.internal.domNode[s]=e.status[s]}),t.each(t.jPlayer.emulateOptions.split(/\s+/g),function(t,s){e.internal.domNode[s]=e.options[s]})},_destroyHtmlBridge:function(){var e=this;this.element.unbind(".jPlayerHtml");var s=t.jPlayer.emulateMethods+" "+t.jPlayer.emulateStatus+" "+t.jPlayer.emulateOptions;t.each(s.split(/\s+/g),function(t,s){delete e.internal.domNode[s]})}},t.jPlayer.error={FLASH:"e_flash",FLASH_DISABLED:"e_flash_disabled",NO_SOLUTION:"e_no_solution",NO_SUPPORT:"e_no_support",URL:"e_url",URL_NOT_SET:"e_url_not_set",VERSION:"e_version"},t.jPlayer.errorMsg={FLASH:"jPlayer's Flash fallback is not configured correctly, or a command was issued before the jPlayer Ready event. Details: ",FLASH_DISABLED:"jPlayer's Flash fallback has been disabled by the browser due to the CSS rules you have used. Details: ",NO_SOLUTION:"No solution can be found by jPlayer in this browser. Neither HTML nor Flash can be used.",NO_SUPPORT:"It is not possible to play any media format provided in setMedia() on this browser using your current options.",URL:"Media URL could not be loaded.",URL_NOT_SET:"Attempt to issue media playback commands, while no media url is set.",VERSION:"jPlayer "+t.jPlayer.prototype.version.script+" needs Jplayer.swf version "+t.jPlayer.prototype.version.needFlash+" but found "},t.jPlayer.errorHint={FLASH:"Check your swfPath option and that Jplayer.swf is there.",FLASH_DISABLED:"Check that you have not display:none; the jPlayer entity or any ancestor.",NO_SOLUTION:"Review the jPlayer options: support and supplied.",NO_SUPPORT:"Video or audio formats defined in the supplied option are missing.",URL:"Check media URL is valid.",URL_NOT_SET:"Use setMedia() to set the media URL.",VERSION:"Update jPlayer files."},t.jPlayer.warning={CSS_SELECTOR_COUNT:"e_css_selector_count",CSS_SELECTOR_METHOD:"e_css_selector_method",CSS_SELECTOR_STRING:"e_css_selector_string",OPTION_KEY:"e_option_key"},t.jPlayer.warningMsg={CSS_SELECTOR_COUNT:"The number of css selectors found did not equal one: ",CSS_SELECTOR_METHOD:"The methodName given in jPlayer('cssSelector') is not a valid jPlayer method.",CSS_SELECTOR_STRING:"The methodCssSelector given in jPlayer('cssSelector') is not a String or is empty.",OPTION_KEY:"The option requested in jPlayer('option') is undefined."},t.jPlayer.warningHint={CSS_SELECTOR_COUNT:"Check your css selector and the ancestor.",CSS_SELECTOR_METHOD:"Check your method name.",CSS_SELECTOR_STRING:"Check your css selector is a string.",OPTION_KEY:"Check your option name."}});
js/jquery.js CHANGED
@@ -1,167 +1,167 @@
1
- /*!
2
- * jQuery JavaScript Library v1.4.4
3
- * http://jquery.com/
4
- *
5
- * Copyright 2010, John Resig
6
- * Dual licensed under the MIT or GPL Version 2 licenses.
7
- * http://jquery.org/license
8
- *
9
- * Includes Sizzle.js
10
- * http://sizzlejs.com/
11
- * Copyright 2010, The Dojo Foundation
12
- * Released under the MIT, BSD, and GPL Licenses.
13
- *
14
- * Date: Thu Nov 11 19:04:53 2010 -0500
15
- */
16
- (function(E,B){function ka(a,b,d){if(d===B&&a.nodeType===1){d=a.getAttribute("data-"+b);if(typeof d==="string"){try{d=d==="true"?true:d==="false"?false:d==="null"?null:!c.isNaN(d)?parseFloat(d):Ja.test(d)?c.parseJSON(d):d}catch(e){}c.data(a,b,d)}else d=B}return d}function U(){return false}function ca(){return true}function la(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function Ka(a){var b,d,e,f,h,l,k,o,x,r,A,C=[];f=[];h=c.data(this,this.nodeType?"events":"__events__");if(typeof h==="function")h=
17
- h.events;if(!(a.liveFired===this||!h||!h.live||a.button&&a.type==="click")){if(a.namespace)A=RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");a.liveFired=this;var J=h.live.slice(0);for(k=0;k<J.length;k++){h=J[k];h.origType.replace(X,"")===a.type?f.push(h.selector):J.splice(k--,1)}f=c(a.target).closest(f,a.currentTarget);o=0;for(x=f.length;o<x;o++){r=f[o];for(k=0;k<J.length;k++){h=J[k];if(r.selector===h.selector&&(!A||A.test(h.namespace))){l=r.elem;e=null;if(h.preType==="mouseenter"||
18
- h.preType==="mouseleave"){a.type=h.preType;e=c(a.relatedTarget).closest(h.selector)[0]}if(!e||e!==l)C.push({elem:l,handleObj:h,level:r.level})}}}o=0;for(x=C.length;o<x;o++){f=C[o];if(d&&f.level>d)break;a.currentTarget=f.elem;a.data=f.handleObj.data;a.handleObj=f.handleObj;A=f.handleObj.origHandler.apply(f.elem,arguments);if(A===false||a.isPropagationStopped()){d=f.level;if(A===false)b=false;if(a.isImmediatePropagationStopped())break}}return b}}function Y(a,b){return(a&&a!=="*"?a+".":"")+b.replace(La,
19
- "`").replace(Ma,"&")}function ma(a,b,d){if(c.isFunction(b))return c.grep(a,function(f,h){return!!b.call(f,h,f)===d});else if(b.nodeType)return c.grep(a,function(f){return f===b===d});else if(typeof b==="string"){var e=c.grep(a,function(f){return f.nodeType===1});if(Na.test(b))return c.filter(b,e,!d);else b=c.filter(b,e)}return c.grep(a,function(f){return c.inArray(f,b)>=0===d})}function na(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var e=c.data(a[d++]),f=c.data(this,
20
- e);if(e=e&&e.events){delete f.handle;f.events={};for(var h in e)for(var l in e[h])c.event.add(this,h,e[h][l],e[h][l].data)}}})}function Oa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function oa(a,b,d){var e=b==="width"?a.offsetWidth:a.offsetHeight;if(d==="border")return e;c.each(b==="width"?Pa:Qa,function(){d||(e-=parseFloat(c.css(a,"padding"+this))||0);if(d==="margin")e+=parseFloat(c.css(a,
21
- "margin"+this))||0;else e-=parseFloat(c.css(a,"border"+this+"Width"))||0});return e}function da(a,b,d,e){if(c.isArray(b)&&b.length)c.each(b,function(f,h){d||Ra.test(a)?e(a,h):da(a+"["+(typeof h==="object"||c.isArray(h)?f:"")+"]",h,d,e)});else if(!d&&b!=null&&typeof b==="object")c.isEmptyObject(b)?e(a,""):c.each(b,function(f,h){da(a+"["+f+"]",h,d,e)});else e(a,b)}function S(a,b){var d={};c.each(pa.concat.apply([],pa.slice(0,b)),function(){d[this]=a});return d}function qa(a){if(!ea[a]){var b=c("<"+
22
- a+">").appendTo("body"),d=b.css("display");b.remove();if(d==="none"||d==="")d="block";ea[a]=d}return ea[a]}function fa(a){return c.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var t=E.document,c=function(){function a(){if(!b.isReady){try{t.documentElement.doScroll("left")}catch(j){setTimeout(a,1);return}b.ready()}}var b=function(j,s){return new b.fn.init(j,s)},d=E.jQuery,e=E.$,f,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,l=/\S/,k=/^\s+/,o=/\s+$/,x=/\W/,r=/\d/,A=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,
23
- C=/^[\],:{}\s]*$/,J=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,w=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,I=/(?:^|:|,)(?:\s*\[)+/g,L=/(webkit)[ \/]([\w.]+)/,g=/(opera)(?:.*version)?[ \/]([\w.]+)/,i=/(msie) ([\w.]+)/,n=/(mozilla)(?:.*? rv:([\w.]+))?/,m=navigator.userAgent,p=false,q=[],u,y=Object.prototype.toString,F=Object.prototype.hasOwnProperty,M=Array.prototype.push,N=Array.prototype.slice,O=String.prototype.trim,D=Array.prototype.indexOf,R={};b.fn=b.prototype={init:function(j,
24
- s){var v,z,H;if(!j)return this;if(j.nodeType){this.context=this[0]=j;this.length=1;return this}if(j==="body"&&!s&&t.body){this.context=t;this[0]=t.body;this.selector="body";this.length=1;return this}if(typeof j==="string")if((v=h.exec(j))&&(v[1]||!s))if(v[1]){H=s?s.ownerDocument||s:t;if(z=A.exec(j))if(b.isPlainObject(s)){j=[t.createElement(z[1])];b.fn.attr.call(j,s,true)}else j=[H.createElement(z[1])];else{z=b.buildFragment([v[1]],[H]);j=(z.cacheable?z.fragment.cloneNode(true):z.fragment).childNodes}return b.merge(this,
25
- j)}else{if((z=t.getElementById(v[2]))&&z.parentNode){if(z.id!==v[2])return f.find(j);this.length=1;this[0]=z}this.context=t;this.selector=j;return this}else if(!s&&!x.test(j)){this.selector=j;this.context=t;j=t.getElementsByTagName(j);return b.merge(this,j)}else return!s||s.jquery?(s||f).find(j):b(s).find(j);else if(b.isFunction(j))return f.ready(j);if(j.selector!==B){this.selector=j.selector;this.context=j.context}return b.makeArray(j,this)},selector:"",jquery:"1.4.4",length:0,size:function(){return this.length},
26
- toArray:function(){return N.call(this,0)},get:function(j){return j==null?this.toArray():j<0?this.slice(j)[0]:this[j]},pushStack:function(j,s,v){var z=b();b.isArray(j)?M.apply(z,j):b.merge(z,j);z.prevObject=this;z.context=this.context;if(s==="find")z.selector=this.selector+(this.selector?" ":"")+v;else if(s)z.selector=this.selector+"."+s+"("+v+")";return z},each:function(j,s){return b.each(this,j,s)},ready:function(j){b.bindReady();if(b.isReady)j.call(t,b);else q&&q.push(j);return this},eq:function(j){return j===
27
- -1?this.slice(j):this.slice(j,+j+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(N.apply(this,arguments),"slice",N.call(arguments).join(","))},map:function(j){return this.pushStack(b.map(this,function(s,v){return j.call(s,v,s)}))},end:function(){return this.prevObject||b(null)},push:M,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var j,s,v,z,H,G=arguments[0]||{},K=1,Q=arguments.length,ga=false;
28
- if(typeof G==="boolean"){ga=G;G=arguments[1]||{};K=2}if(typeof G!=="object"&&!b.isFunction(G))G={};if(Q===K){G=this;--K}for(;K<Q;K++)if((j=arguments[K])!=null)for(s in j){v=G[s];z=j[s];if(G!==z)if(ga&&z&&(b.isPlainObject(z)||(H=b.isArray(z)))){if(H){H=false;v=v&&b.isArray(v)?v:[]}else v=v&&b.isPlainObject(v)?v:{};G[s]=b.extend(ga,v,z)}else if(z!==B)G[s]=z}return G};b.extend({noConflict:function(j){E.$=e;if(j)E.jQuery=d;return b},isReady:false,readyWait:1,ready:function(j){j===true&&b.readyWait--;
29
- if(!b.readyWait||j!==true&&!b.isReady){if(!t.body)return setTimeout(b.ready,1);b.isReady=true;if(!(j!==true&&--b.readyWait>0))if(q){var s=0,v=q;for(q=null;j=v[s++];)j.call(t,b);b.fn.trigger&&b(t).trigger("ready").unbind("ready")}}},bindReady:function(){if(!p){p=true;if(t.readyState==="complete")return setTimeout(b.ready,1);if(t.addEventListener){t.addEventListener("DOMContentLoaded",u,false);E.addEventListener("load",b.ready,false)}else if(t.attachEvent){t.attachEvent("onreadystatechange",u);E.attachEvent("onload",
30
- b.ready);var j=false;try{j=E.frameElement==null}catch(s){}t.documentElement.doScroll&&j&&a()}}},isFunction:function(j){return b.type(j)==="function"},isArray:Array.isArray||function(j){return b.type(j)==="array"},isWindow:function(j){return j&&typeof j==="object"&&"setInterval"in j},isNaN:function(j){return j==null||!r.test(j)||isNaN(j)},type:function(j){return j==null?String(j):R[y.call(j)]||"object"},isPlainObject:function(j){if(!j||b.type(j)!=="object"||j.nodeType||b.isWindow(j))return false;if(j.constructor&&
31
- !F.call(j,"constructor")&&!F.call(j.constructor.prototype,"isPrototypeOf"))return false;for(var s in j);return s===B||F.call(j,s)},isEmptyObject:function(j){for(var s in j)return false;return true},error:function(j){throw j;},parseJSON:function(j){if(typeof j!=="string"||!j)return null;j=b.trim(j);if(C.test(j.replace(J,"@").replace(w,"]").replace(I,"")))return E.JSON&&E.JSON.parse?E.JSON.parse(j):(new Function("return "+j))();else b.error("Invalid JSON: "+j)},noop:function(){},globalEval:function(j){if(j&&
32
- l.test(j)){var s=t.getElementsByTagName("head")[0]||t.documentElement,v=t.createElement("script");v.type="text/javascript";if(b.support.scriptEval)v.appendChild(t.createTextNode(j));else v.text=j;s.insertBefore(v,s.firstChild);s.removeChild(v)}},nodeName:function(j,s){return j.nodeName&&j.nodeName.toUpperCase()===s.toUpperCase()},each:function(j,s,v){var z,H=0,G=j.length,K=G===B||b.isFunction(j);if(v)if(K)for(z in j){if(s.apply(j[z],v)===false)break}else for(;H<G;){if(s.apply(j[H++],v)===false)break}else if(K)for(z in j){if(s.call(j[z],
33
- z,j[z])===false)break}else for(v=j[0];H<G&&s.call(v,H,v)!==false;v=j[++H]);return j},trim:O?function(j){return j==null?"":O.call(j)}:function(j){return j==null?"":j.toString().replace(k,"").replace(o,"")},makeArray:function(j,s){var v=s||[];if(j!=null){var z=b.type(j);j.length==null||z==="string"||z==="function"||z==="regexp"||b.isWindow(j)?M.call(v,j):b.merge(v,j)}return v},inArray:function(j,s){if(s.indexOf)return s.indexOf(j);for(var v=0,z=s.length;v<z;v++)if(s[v]===j)return v;return-1},merge:function(j,
34
- s){var v=j.length,z=0;if(typeof s.length==="number")for(var H=s.length;z<H;z++)j[v++]=s[z];else for(;s[z]!==B;)j[v++]=s[z++];j.length=v;return j},grep:function(j,s,v){var z=[],H;v=!!v;for(var G=0,K=j.length;G<K;G++){H=!!s(j[G],G);v!==H&&z.push(j[G])}return z},map:function(j,s,v){for(var z=[],H,G=0,K=j.length;G<K;G++){H=s(j[G],G,v);if(H!=null)z[z.length]=H}return z.concat.apply([],z)},guid:1,proxy:function(j,s,v){if(arguments.length===2)if(typeof s==="string"){v=j;j=v[s];s=B}else if(s&&!b.isFunction(s)){v=
35
- s;s=B}if(!s&&j)s=function(){return j.apply(v||this,arguments)};if(j)s.guid=j.guid=j.guid||s.guid||b.guid++;return s},access:function(j,s,v,z,H,G){var K=j.length;if(typeof s==="object"){for(var Q in s)b.access(j,Q,s[Q],z,H,v);return j}if(v!==B){z=!G&&z&&b.isFunction(v);for(Q=0;Q<K;Q++)H(j[Q],s,z?v.call(j[Q],Q,H(j[Q],s)):v,G);return j}return K?H(j[0],s):B},now:function(){return(new Date).getTime()},uaMatch:function(j){j=j.toLowerCase();j=L.exec(j)||g.exec(j)||i.exec(j)||j.indexOf("compatible")<0&&n.exec(j)||
36
- [];return{browser:j[1]||"",version:j[2]||"0"}},browser:{}});b.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(j,s){R["[object "+s+"]"]=s.toLowerCase()});m=b.uaMatch(m);if(m.browser){b.browser[m.browser]=true;b.browser.version=m.version}if(b.browser.webkit)b.browser.safari=true;if(D)b.inArray=function(j,s){return D.call(s,j)};if(!/\s/.test("\u00a0")){k=/^[\s\xA0]+/;o=/[\s\xA0]+$/}f=b(t);if(t.addEventListener)u=function(){t.removeEventListener("DOMContentLoaded",u,
37
- false);b.ready()};else if(t.attachEvent)u=function(){if(t.readyState==="complete"){t.detachEvent("onreadystatechange",u);b.ready()}};return E.jQuery=E.$=b}();(function(){c.support={};var a=t.documentElement,b=t.createElement("script"),d=t.createElement("div"),e="script"+c.now();d.style.display="none";d.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var f=d.getElementsByTagName("*"),h=d.getElementsByTagName("a")[0],l=t.createElement("select"),
38
- k=l.appendChild(t.createElement("option"));if(!(!f||!f.length||!h)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(h.getAttribute("style")),hrefNormalized:h.getAttribute("href")==="/a",opacity:/^0.55$/.test(h.style.opacity),cssFloat:!!h.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:k.selected,deleteExpando:true,optDisabled:false,checkClone:false,
39
- scriptEval:false,noCloneEvent:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};l.disabled=true;c.support.optDisabled=!k.disabled;b.type="text/javascript";try{b.appendChild(t.createTextNode("window."+e+"=1;"))}catch(o){}a.insertBefore(b,a.firstChild);if(E[e]){c.support.scriptEval=true;delete E[e]}try{delete b.test}catch(x){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function r(){c.support.noCloneEvent=
40
- false;d.detachEvent("onclick",r)});d.cloneNode(true).fireEvent("onclick")}d=t.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=t.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var r=t.createElement("div");r.style.width=r.style.paddingLeft="1px";t.body.appendChild(r);c.boxModel=c.support.boxModel=r.offsetWidth===2;if("zoom"in r.style){r.style.display="inline";r.style.zoom=
41
- 1;c.support.inlineBlockNeedsLayout=r.offsetWidth===2;r.style.display="";r.innerHTML="<div style='width:4px;'></div>";c.support.shrinkWrapBlocks=r.offsetWidth!==2}r.innerHTML="<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";var A=r.getElementsByTagName("td");c.support.reliableHiddenOffsets=A[0].offsetHeight===0;A[0].style.display="";A[1].style.display="none";c.support.reliableHiddenOffsets=c.support.reliableHiddenOffsets&&A[0].offsetHeight===0;r.innerHTML="";t.body.removeChild(r).style.display=
42
- "none"});a=function(r){var A=t.createElement("div");r="on"+r;var C=r in A;if(!C){A.setAttribute(r,"return;");C=typeof A[r]==="function"}return C};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=f=h=null}})();var ra={},Ja=/^(?:\{.*\}|\[.*\])$/;c.extend({cache:{},uuid:0,expando:"jQuery"+c.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(a,b,d){if(c.acceptData(a)){a=a==E?ra:a;var e=a.nodeType,f=e?a[c.expando]:null,h=
43
- c.cache;if(!(e&&!f&&typeof b==="string"&&d===B)){if(e)f||(a[c.expando]=f=++c.uuid);else h=a;if(typeof b==="object")if(e)h[f]=c.extend(h[f],b);else c.extend(h,b);else if(e&&!h[f])h[f]={};a=e?h[f]:h;if(d!==B)a[b]=d;return typeof b==="string"?a[b]:a}}},removeData:function(a,b){if(c.acceptData(a)){a=a==E?ra:a;var d=a.nodeType,e=d?a[c.expando]:a,f=c.cache,h=d?f[e]:e;if(b){if(h){delete h[b];d&&c.isEmptyObject(h)&&c.removeData(a)}}else if(d&&c.support.deleteExpando)delete a[c.expando];else if(a.removeAttribute)a.removeAttribute(c.expando);
44
- else if(d)delete f[e];else for(var l in a)delete a[l]}},acceptData:function(a){if(a.nodeName){var b=c.noData[a.nodeName.toLowerCase()];if(b)return!(b===true||a.getAttribute("classid")!==b)}return true}});c.fn.extend({data:function(a,b){var d=null;if(typeof a==="undefined"){if(this.length){var e=this[0].attributes,f;d=c.data(this[0]);for(var h=0,l=e.length;h<l;h++){f=e[h].name;if(f.indexOf("data-")===0){f=f.substr(5);ka(this[0],f,d[f])}}}return d}else if(typeof a==="object")return this.each(function(){c.data(this,
45
- a)});var k=a.split(".");k[1]=k[1]?"."+k[1]:"";if(b===B){d=this.triggerHandler("getData"+k[1]+"!",[k[0]]);if(d===B&&this.length){d=c.data(this[0],a);d=ka(this[0],a,d)}return d===B&&k[1]?this.data(k[0]):d}else return this.each(function(){var o=c(this),x=[k[0],b];o.triggerHandler("setData"+k[1]+"!",x);c.data(this,a,b);o.triggerHandler("changeData"+k[1]+"!",x)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var e=
46
- c.data(a,b);if(!d)return e||[];if(!e||c.isArray(d))e=c.data(a,b,c.makeArray(d));else e.push(d);return e}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),e=d.shift();if(e==="inprogress")e=d.shift();if(e){b==="fx"&&d.unshift("inprogress");e.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===B)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,
47
- a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var sa=/[\n\t]/g,ha=/\s+/,Sa=/\r/g,Ta=/^(?:href|src|style)$/,Ua=/^(?:button|input)$/i,Va=/^(?:button|input|object|select|textarea)$/i,Wa=/^a(?:rea)?$/i,ta=/^(?:radio|checkbox)$/i;c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",
48
- colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};c.fn.extend({attr:function(a,b){return c.access(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(x){var r=c(this);r.addClass(a.call(this,x,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ha),d=0,e=this.length;d<e;d++){var f=this[d];if(f.nodeType===
49
- 1)if(f.className){for(var h=" "+f.className+" ",l=f.className,k=0,o=b.length;k<o;k++)if(h.indexOf(" "+b[k]+" ")<0)l+=" "+b[k];f.className=c.trim(l)}else f.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(o){var x=c(this);x.removeClass(a.call(this,o,x.attr("class")))});if(a&&typeof a==="string"||a===B)for(var b=(a||"").split(ha),d=0,e=this.length;d<e;d++){var f=this[d];if(f.nodeType===1&&f.className)if(a){for(var h=(" "+f.className+" ").replace(sa," "),
50
- l=0,k=b.length;l<k;l++)h=h.replace(" "+b[l]+" "," ");f.className=c.trim(h)}else f.className=""}return this},toggleClass:function(a,b){var d=typeof a,e=typeof b==="boolean";if(c.isFunction(a))return this.each(function(f){var h=c(this);h.toggleClass(a.call(this,f,h.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var f,h=0,l=c(this),k=b,o=a.split(ha);f=o[h++];){k=e?k:!l.hasClass(f);l[k?"addClass":"removeClass"](f)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,
51
- "__className__",this.className);this.className=this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(sa," ").indexOf(a)>-1)return true;return false},val:function(a){if(!arguments.length){var b=this[0];if(b){if(c.nodeName(b,"option")){var d=b.attributes.value;return!d||d.specified?b.value:b.text}if(c.nodeName(b,"select")){var e=b.selectedIndex;d=[];var f=b.options;b=b.type==="select-one";
52
- if(e<0)return null;var h=b?e:0;for(e=b?e+1:f.length;h<e;h++){var l=f[h];if(l.selected&&(c.support.optDisabled?!l.disabled:l.getAttribute("disabled")===null)&&(!l.parentNode.disabled||!c.nodeName(l.parentNode,"optgroup"))){a=c(l).val();if(b)return a;d.push(a)}}return d}if(ta.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Sa,"")}return B}var k=c.isFunction(a);return this.each(function(o){var x=c(this),r=a;if(this.nodeType===1){if(k)r=
53
- a.call(this,o,x.val());if(r==null)r="";else if(typeof r==="number")r+="";else if(c.isArray(r))r=c.map(r,function(C){return C==null?"":C+""});if(c.isArray(r)&&ta.test(this.type))this.checked=c.inArray(x.val(),r)>=0;else if(c.nodeName(this,"select")){var A=c.makeArray(r);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),A)>=0});if(!A.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},
54
- attr:function(a,b,d,e){if(!a||a.nodeType===3||a.nodeType===8)return B;if(e&&b in c.attrFn)return c(a)[b](d);e=a.nodeType!==1||!c.isXMLDoc(a);var f=d!==B;b=e&&c.props[b]||b;var h=Ta.test(b);if((b in a||a[b]!==B)&&e&&!h){if(f){b==="type"&&Ua.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");if(d===null)a.nodeType===1&&a.removeAttribute(b);else a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&
55
- b.specified?b.value:Va.test(a.nodeName)||Wa.test(a.nodeName)&&a.href?0:B;return a[b]}if(!c.support.style&&e&&b==="style"){if(f)a.style.cssText=""+d;return a.style.cssText}f&&a.setAttribute(b,""+d);if(!a.attributes[b]&&a.hasAttribute&&!a.hasAttribute(b))return B;a=!c.support.hrefNormalized&&e&&h?a.getAttribute(b,2):a.getAttribute(b);return a===null?B:a}});var X=/\.(.*)$/,ia=/^(?:textarea|input|select)$/i,La=/\./g,Ma=/ /g,Xa=/[^\w\s.|`]/g,Ya=function(a){return a.replace(Xa,"\\$&")},ua={focusin:0,focusout:0};
56
- c.event={add:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(c.isWindow(a)&&a!==E&&!a.frameElement)a=E;if(d===false)d=U;else if(!d)return;var f,h;if(d.handler){f=d;d=f.handler}if(!d.guid)d.guid=c.guid++;if(h=c.data(a)){var l=a.nodeType?"events":"__events__",k=h[l],o=h.handle;if(typeof k==="function"){o=k.handle;k=k.events}else if(!k){a.nodeType||(h[l]=h=function(){});h.events=k={}}if(!o)h.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,
57
- arguments):B};o.elem=a;b=b.split(" ");for(var x=0,r;l=b[x++];){h=f?c.extend({},f):{handler:d,data:e};if(l.indexOf(".")>-1){r=l.split(".");l=r.shift();h.namespace=r.slice(0).sort().join(".")}else{r=[];h.namespace=""}h.type=l;if(!h.guid)h.guid=d.guid;var A=k[l],C=c.event.special[l]||{};if(!A){A=k[l]=[];if(!C.setup||C.setup.call(a,e,r,o)===false)if(a.addEventListener)a.addEventListener(l,o,false);else a.attachEvent&&a.attachEvent("on"+l,o)}if(C.add){C.add.call(a,h);if(!h.handler.guid)h.handler.guid=
58
- d.guid}A.push(h);c.event.global[l]=true}a=null}}},global:{},remove:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(d===false)d=U;var f,h,l=0,k,o,x,r,A,C,J=a.nodeType?"events":"__events__",w=c.data(a),I=w&&w[J];if(w&&I){if(typeof I==="function"){w=I;I=I.events}if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(f in I)c.event.remove(a,f+b)}else{for(b=b.split(" ");f=b[l++];){r=f;k=f.indexOf(".")<0;o=[];if(!k){o=f.split(".");f=o.shift();x=RegExp("(^|\\.)"+
59
- c.map(o.slice(0).sort(),Ya).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(A=I[f])if(d){r=c.event.special[f]||{};for(h=e||0;h<A.length;h++){C=A[h];if(d.guid===C.guid){if(k||x.test(C.namespace)){e==null&&A.splice(h--,1);r.remove&&r.remove.call(a,C)}if(e!=null)break}}if(A.length===0||e!=null&&A.length===1){if(!r.teardown||r.teardown.call(a,o)===false)c.removeEvent(a,f,w.handle);delete I[f]}}else for(h=0;h<A.length;h++){C=A[h];if(k||x.test(C.namespace)){c.event.remove(a,r,C.handler,h);A.splice(h--,1)}}}if(c.isEmptyObject(I)){if(b=
60
- w.handle)b.elem=null;delete w.events;delete w.handle;if(typeof w==="function")c.removeData(a,J);else c.isEmptyObject(w)&&c.removeData(a)}}}}},trigger:function(a,b,d,e){var f=a.type||a;if(!e){a=typeof a==="object"?a[c.expando]?a:c.extend(c.Event(f),a):c.Event(f);if(f.indexOf("!")>=0){a.type=f=f.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[f]&&c.each(c.cache,function(){this.events&&this.events[f]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===
61
- 8)return B;a.result=B;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(e=d.nodeType?c.data(d,"handle"):(c.data(d,"__events__")||{}).handle)&&e.apply(d,b);e=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+f]&&d["on"+f].apply(d,b)===false){a.result=false;a.preventDefault()}}catch(h){}if(!a.isPropagationStopped()&&e)c.event.trigger(a,b,e,true);else if(!a.isDefaultPrevented()){var l;e=a.target;var k=f.replace(X,""),o=c.nodeName(e,"a")&&k===
62
- "click",x=c.event.special[k]||{};if((!x._default||x._default.call(d,a)===false)&&!o&&!(e&&e.nodeName&&c.noData[e.nodeName.toLowerCase()])){try{if(e[k]){if(l=e["on"+k])e["on"+k]=null;c.event.triggered=true;e[k]()}}catch(r){}if(l)e["on"+k]=l;c.event.triggered=false}}},handle:function(a){var b,d,e,f;d=[];var h=c.makeArray(arguments);a=h[0]=c.event.fix(a||E.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){e=a.type.split(".");a.type=e.shift();d=e.slice(0).sort();e=RegExp("(^|\\.)"+
63
- d.join("\\.(?:.*\\.)?")+"(\\.|$)")}a.namespace=a.namespace||d.join(".");f=c.data(this,this.nodeType?"events":"__events__");if(typeof f==="function")f=f.events;d=(f||{})[a.type];if(f&&d){d=d.slice(0);f=0;for(var l=d.length;f<l;f++){var k=d[f];if(b||e.test(k.namespace)){a.handler=k.handler;a.data=k.data;a.handleObj=k;k=k.handler.apply(this,h);if(k!==B){a.result=k;if(k===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
64
- fix:function(a){if(a[c.expando])return a;var b=a;a=c.Event(b);for(var d=this.props.length,e;d;){e=this.props[--d];a[e]=b[e]}if(!a.target)a.target=a.srcElement||t;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=t.documentElement;d=t.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
65
- d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(a.which==null&&(a.charCode!=null||a.keyCode!=null))a.which=a.charCode!=null?a.charCode:a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==B)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,Y(a.origType,a.selector),c.extend({},a,{handler:Ka,guid:a.handler.guid}))},remove:function(a){c.event.remove(this,
66
- Y(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,d){if(c.isWindow(this))this.onbeforeunload=d},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};c.removeEvent=t.removeEventListener?function(a,b,d){a.removeEventListener&&a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent&&a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp=
67
- c.now();this[c.expando]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=ca;var a=this.originalEvent;if(a)if(a.preventDefault)a.preventDefault();else a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=ca;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ca;this.stopPropagation()},isDefaultPrevented:U,isPropagationStopped:U,isImmediatePropagationStopped:U};
68
- var va=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(d){}},wa=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?wa:va,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?wa:va)}}});if(!c.support.submitBubbles)c.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!==
69
- "form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length){a.liveFired=B;return la("submit",this,arguments)}});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13){a.liveFired=B;return la("submit",this,arguments)}})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};if(!c.support.changeBubbles){var V,
70
- xa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(e){return e.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},Z=function(a,b){var d=a.target,e,f;if(!(!ia.test(d.nodeName)||d.readOnly)){e=c.data(d,"_change_data");f=xa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",f);if(!(e===B||f===e))if(e!=null||f){a.type="change";a.liveFired=
71
- B;return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:Z,beforedeactivate:Z,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return Z.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return Z.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,"_change_data",xa(a))}},setup:function(){if(this.type===
72
- "file")return false;for(var a in V)c.event.add(this,a+".specialChange",V[a]);return ia.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return ia.test(this.nodeName)}};V=c.event.special.change.filters;V.focus=V.beforeactivate}t.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(e){e=c.event.fix(e);e.type=b;return c.event.trigger(e,null,e.target)}c.event.special[b]={setup:function(){ua[b]++===0&&t.addEventListener(a,d,true)},teardown:function(){--ua[b]===
73
- 0&&t.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,e,f){if(typeof d==="object"){for(var h in d)this[b](h,e,d[h],f);return this}if(c.isFunction(e)||e===false){f=e;e=B}var l=b==="one"?c.proxy(f,function(o){c(this).unbind(o,l);return f.apply(this,arguments)}):f;if(d==="unload"&&b!=="one")this.one(d,e,f);else{h=0;for(var k=this.length;h<k;h++)c.event.add(this[h],d,l,e)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault)for(var d in a)this.unbind(d,
74
- a[d]);else{d=0;for(var e=this.length;d<e;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,e){return this.live(b,d,e,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){var d=c.Event(a);d.preventDefault();d.stopPropagation();c.event.trigger(d,b,this[0]);return d.result}},toggle:function(a){for(var b=arguments,d=
75
- 1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(e){var f=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,f+1);e.preventDefault();return b[f].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var ya={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,e,f,h){var l,k=0,o,x,r=h||this.selector;h=h?this:c(this.context);if(typeof d===
76
- "object"&&!d.preventDefault){for(l in d)h[b](l,e,d[l],r);return this}if(c.isFunction(e)){f=e;e=B}for(d=(d||"").split(" ");(l=d[k++])!=null;){o=X.exec(l);x="";if(o){x=o[0];l=l.replace(X,"")}if(l==="hover")d.push("mouseenter"+x,"mouseleave"+x);else{o=l;if(l==="focus"||l==="blur"){d.push(ya[l]+x);l+=x}else l=(ya[l]||l)+x;if(b==="live"){x=0;for(var A=h.length;x<A;x++)c.event.add(h[x],"live."+Y(l,r),{data:e,selector:r,handler:f,origType:l,origHandler:f,preType:o})}else h.unbind("live."+Y(l,r),f)}}return this}});
77
- c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){c.fn[b]=function(d,e){if(e==null){e=d;d=null}return arguments.length>0?this.bind(b,d,e):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});E.attachEvent&&!E.addEventListener&&c(E).bind("unload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});
78
- (function(){function a(g,i,n,m,p,q){p=0;for(var u=m.length;p<u;p++){var y=m[p];if(y){var F=false;for(y=y[g];y;){if(y.sizcache===n){F=m[y.sizset];break}if(y.nodeType===1&&!q){y.sizcache=n;y.sizset=p}if(y.nodeName.toLowerCase()===i){F=y;break}y=y[g]}m[p]=F}}}function b(g,i,n,m,p,q){p=0;for(var u=m.length;p<u;p++){var y=m[p];if(y){var F=false;for(y=y[g];y;){if(y.sizcache===n){F=m[y.sizset];break}if(y.nodeType===1){if(!q){y.sizcache=n;y.sizset=p}if(typeof i!=="string"){if(y===i){F=true;break}}else if(k.filter(i,
79
- [y]).length>0){F=y;break}}y=y[g]}m[p]=F}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,h=false,l=true;[0,0].sort(function(){l=false;return 0});var k=function(g,i,n,m){n=n||[];var p=i=i||t;if(i.nodeType!==1&&i.nodeType!==9)return[];if(!g||typeof g!=="string")return n;var q,u,y,F,M,N=true,O=k.isXML(i),D=[],R=g;do{d.exec("");if(q=d.exec(R)){R=q[3];D.push(q[1]);if(q[2]){F=q[3];
80
- break}}}while(q);if(D.length>1&&x.exec(g))if(D.length===2&&o.relative[D[0]])u=L(D[0]+D[1],i);else for(u=o.relative[D[0]]?[i]:k(D.shift(),i);D.length;){g=D.shift();if(o.relative[g])g+=D.shift();u=L(g,u)}else{if(!m&&D.length>1&&i.nodeType===9&&!O&&o.match.ID.test(D[0])&&!o.match.ID.test(D[D.length-1])){q=k.find(D.shift(),i,O);i=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]}if(i){q=m?{expr:D.pop(),set:C(m)}:k.find(D.pop(),D.length===1&&(D[0]==="~"||D[0]==="+")&&i.parentNode?i.parentNode:i,O);u=q.expr?k.filter(q.expr,
81
- q.set):q.set;if(D.length>0)y=C(u);else N=false;for(;D.length;){q=M=D.pop();if(o.relative[M])q=D.pop();else M="";if(q==null)q=i;o.relative[M](y,q,O)}}else y=[]}y||(y=u);y||k.error(M||g);if(f.call(y)==="[object Array]")if(N)if(i&&i.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&k.contains(i,y[g])))n.push(u[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&n.push(u[g]);else n.push.apply(n,y);else C(y,n);if(F){k(F,p,n,m);k.uniqueSort(n)}return n};k.uniqueSort=function(g){if(w){h=
82
- l;g.sort(w);if(h)for(var i=1;i<g.length;i++)g[i]===g[i-1]&&g.splice(i--,1)}return g};k.matches=function(g,i){return k(g,null,null,i)};k.matchesSelector=function(g,i){return k(i,null,null,[g]).length>0};k.find=function(g,i,n){var m;if(!g)return[];for(var p=0,q=o.order.length;p<q;p++){var u,y=o.order[p];if(u=o.leftMatch[y].exec(g)){var F=u[1];u.splice(1,1);if(F.substr(F.length-1)!=="\\"){u[1]=(u[1]||"").replace(/\\/g,"");m=o.find[y](u,i,n);if(m!=null){g=g.replace(o.match[y],"");break}}}}m||(m=i.getElementsByTagName("*"));
83
- return{set:m,expr:g}};k.filter=function(g,i,n,m){for(var p,q,u=g,y=[],F=i,M=i&&i[0]&&k.isXML(i[0]);g&&i.length;){for(var N in o.filter)if((p=o.leftMatch[N].exec(g))!=null&&p[2]){var O,D,R=o.filter[N];D=p[1];q=false;p.splice(1,1);if(D.substr(D.length-1)!=="\\"){if(F===y)y=[];if(o.preFilter[N])if(p=o.preFilter[N](p,F,n,y,m,M)){if(p===true)continue}else q=O=true;if(p)for(var j=0;(D=F[j])!=null;j++)if(D){O=R(D,p,j,F);var s=m^!!O;if(n&&O!=null)if(s)q=true;else F[j]=false;else if(s){y.push(D);q=true}}if(O!==
84
- B){n||(F=y);g=g.replace(o.match[N],"");if(!q)return[];break}}}if(g===u)if(q==null)k.error(g);else break;u=g}return F};k.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var o=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+\-]*)\))?/,
85
- POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(g){return g.getAttribute("href")}},relative:{"+":function(g,i){var n=typeof i==="string",m=n&&!/\W/.test(i);n=n&&!m;if(m)i=i.toLowerCase();m=0;for(var p=g.length,q;m<p;m++)if(q=g[m]){for(;(q=q.previousSibling)&&q.nodeType!==1;);g[m]=n||q&&q.nodeName.toLowerCase()===
86
- i?q||false:q===i}n&&k.filter(i,g,true)},">":function(g,i){var n,m=typeof i==="string",p=0,q=g.length;if(m&&!/\W/.test(i))for(i=i.toLowerCase();p<q;p++){if(n=g[p]){n=n.parentNode;g[p]=n.nodeName.toLowerCase()===i?n:false}}else{for(;p<q;p++)if(n=g[p])g[p]=m?n.parentNode:n.parentNode===i;m&&k.filter(i,g,true)}},"":function(g,i,n){var m,p=e++,q=b;if(typeof i==="string"&&!/\W/.test(i)){m=i=i.toLowerCase();q=a}q("parentNode",i,p,g,m,n)},"~":function(g,i,n){var m,p=e++,q=b;if(typeof i==="string"&&!/\W/.test(i)){m=
87
- i=i.toLowerCase();q=a}q("previousSibling",i,p,g,m,n)}},find:{ID:function(g,i,n){if(typeof i.getElementById!=="undefined"&&!n)return(g=i.getElementById(g[1]))&&g.parentNode?[g]:[]},NAME:function(g,i){if(typeof i.getElementsByName!=="undefined"){for(var n=[],m=i.getElementsByName(g[1]),p=0,q=m.length;p<q;p++)m[p].getAttribute("name")===g[1]&&n.push(m[p]);return n.length===0?null:n}},TAG:function(g,i){return i.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,i,n,m,p,q){g=" "+g[1].replace(/\\/g,
88
- "")+" ";if(q)return g;q=0;for(var u;(u=i[q])!=null;q++)if(u)if(p^(u.className&&(" "+u.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0))n||m.push(u);else if(n)i[q]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},CHILD:function(g){if(g[1]==="nth"){var i=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=i[1]+(i[2]||1)-0;g[3]=i[3]-0}g[0]=e++;return g},ATTR:function(g,i,n,
89
- m,p,q){i=g[1].replace(/\\/g,"");if(!q&&o.attrMap[i])g[1]=o.attrMap[i];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,i,n,m,p){if(g[1]==="not")if((d.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,i);else{g=k.filter(g[3],i,n,true^p);n||m.push.apply(m,g);return false}else if(o.match.POS.test(g[0])||o.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===
90
- true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,i,n){return!!k(n[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===
91
- g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,i){return i===0},last:function(g,i,n,m){return i===m.length-1},even:function(g,i){return i%2===0},odd:function(g,i){return i%2===1},lt:function(g,i,n){return i<n[3]-0},gt:function(g,i,n){return i>n[3]-0},nth:function(g,i,n){return n[3]-
92
- 0===i},eq:function(g,i,n){return n[3]-0===i}},filter:{PSEUDO:function(g,i,n,m){var p=i[1],q=o.filters[p];if(q)return q(g,n,i,m);else if(p==="contains")return(g.textContent||g.innerText||k.getText([g])||"").indexOf(i[3])>=0;else if(p==="not"){i=i[3];n=0;for(m=i.length;n<m;n++)if(i[n]===g)return false;return true}else k.error("Syntax error, unrecognized expression: "+p)},CHILD:function(g,i){var n=i[1],m=g;switch(n){case "only":case "first":for(;m=m.previousSibling;)if(m.nodeType===1)return false;if(n===
93
- "first")return true;m=g;case "last":for(;m=m.nextSibling;)if(m.nodeType===1)return false;return true;case "nth":n=i[2];var p=i[3];if(n===1&&p===0)return true;var q=i[0],u=g.parentNode;if(u&&(u.sizcache!==q||!g.nodeIndex)){var y=0;for(m=u.firstChild;m;m=m.nextSibling)if(m.nodeType===1)m.nodeIndex=++y;u.sizcache=q}m=g.nodeIndex-p;return n===0?m===0:m%n===0&&m/n>=0}},ID:function(g,i){return g.nodeType===1&&g.getAttribute("id")===i},TAG:function(g,i){return i==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===
94
- i},CLASS:function(g,i){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(i)>-1},ATTR:function(g,i){var n=i[1];n=o.attrHandle[n]?o.attrHandle[n](g):g[n]!=null?g[n]:g.getAttribute(n);var m=n+"",p=i[2],q=i[4];return n==null?p==="!=":p==="="?m===q:p==="*="?m.indexOf(q)>=0:p==="~="?(" "+m+" ").indexOf(q)>=0:!q?m&&n!==false:p==="!="?m!==q:p==="^="?m.indexOf(q)===0:p==="$="?m.substr(m.length-q.length)===q:p==="|="?m===q||m.substr(0,q.length+1)===q+"-":false},POS:function(g,i,n,m){var p=o.setFilters[i[2]];
95
- if(p)return p(g,n,i,m)}}},x=o.match.POS,r=function(g,i){return"\\"+(i-0+1)},A;for(A in o.match){o.match[A]=RegExp(o.match[A].source+/(?![^\[]*\])(?![^\(]*\))/.source);o.leftMatch[A]=RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[A].source.replace(/\\(\d+)/g,r))}var C=function(g,i){g=Array.prototype.slice.call(g,0);if(i){i.push.apply(i,g);return i}return g};try{Array.prototype.slice.call(t.documentElement.childNodes,0)}catch(J){C=function(g,i){var n=0,m=i||[];if(f.call(g)==="[object Array]")Array.prototype.push.apply(m,
96
- g);else if(typeof g.length==="number")for(var p=g.length;n<p;n++)m.push(g[n]);else for(;g[n];n++)m.push(g[n]);return m}}var w,I;if(t.documentElement.compareDocumentPosition)w=function(g,i){if(g===i){h=true;return 0}if(!g.compareDocumentPosition||!i.compareDocumentPosition)return g.compareDocumentPosition?-1:1;return g.compareDocumentPosition(i)&4?-1:1};else{w=function(g,i){var n,m,p=[],q=[];n=g.parentNode;m=i.parentNode;var u=n;if(g===i){h=true;return 0}else if(n===m)return I(g,i);else if(n){if(!m)return 1}else return-1;
97
- for(;u;){p.unshift(u);u=u.parentNode}for(u=m;u;){q.unshift(u);u=u.parentNode}n=p.length;m=q.length;for(u=0;u<n&&u<m;u++)if(p[u]!==q[u])return I(p[u],q[u]);return u===n?I(g,q[u],-1):I(p[u],i,1)};I=function(g,i,n){if(g===i)return n;for(g=g.nextSibling;g;){if(g===i)return-1;g=g.nextSibling}return 1}}k.getText=function(g){for(var i="",n,m=0;g[m];m++){n=g[m];if(n.nodeType===3||n.nodeType===4)i+=n.nodeValue;else if(n.nodeType!==8)i+=k.getText(n.childNodes)}return i};(function(){var g=t.createElement("div"),
98
- i="script"+(new Date).getTime(),n=t.documentElement;g.innerHTML="<a name='"+i+"'/>";n.insertBefore(g,n.firstChild);if(t.getElementById(i)){o.find.ID=function(m,p,q){if(typeof p.getElementById!=="undefined"&&!q)return(p=p.getElementById(m[1]))?p.id===m[1]||typeof p.getAttributeNode!=="undefined"&&p.getAttributeNode("id").nodeValue===m[1]?[p]:B:[]};o.filter.ID=function(m,p){var q=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&q&&q.nodeValue===p}}n.removeChild(g);
99
- n=g=null})();(function(){var g=t.createElement("div");g.appendChild(t.createComment(""));if(g.getElementsByTagName("*").length>0)o.find.TAG=function(i,n){var m=n.getElementsByTagName(i[1]);if(i[1]==="*"){for(var p=[],q=0;m[q];q++)m[q].nodeType===1&&p.push(m[q]);m=p}return m};g.innerHTML="<a href='#'></a>";if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")o.attrHandle.href=function(i){return i.getAttribute("href",2)};g=null})();t.querySelectorAll&&
100
- function(){var g=k,i=t.createElement("div");i.innerHTML="<p class='TEST'></p>";if(!(i.querySelectorAll&&i.querySelectorAll(".TEST").length===0)){k=function(m,p,q,u){p=p||t;m=m.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!u&&!k.isXML(p))if(p.nodeType===9)try{return C(p.querySelectorAll(m),q)}catch(y){}else if(p.nodeType===1&&p.nodeName.toLowerCase()!=="object"){var F=p.getAttribute("id"),M=F||"__sizzle__";F||p.setAttribute("id",M);try{return C(p.querySelectorAll("#"+M+" "+m),q)}catch(N){}finally{F||
101
- p.removeAttribute("id")}}return g(m,p,q,u)};for(var n in g)k[n]=g[n];i=null}}();(function(){var g=t.documentElement,i=g.matchesSelector||g.mozMatchesSelector||g.webkitMatchesSelector||g.msMatchesSelector,n=false;try{i.call(t.documentElement,"[test!='']:sizzle")}catch(m){n=true}if(i)k.matchesSelector=function(p,q){q=q.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(p))try{if(n||!o.match.PSEUDO.test(q)&&!/!=/.test(q))return i.call(p,q)}catch(u){}return k(q,null,null,[p]).length>0}})();(function(){var g=
102
- t.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){o.order.splice(1,0,"CLASS");o.find.CLASS=function(i,n,m){if(typeof n.getElementsByClassName!=="undefined"&&!m)return n.getElementsByClassName(i[1])};g=null}}})();k.contains=t.documentElement.contains?function(g,i){return g!==i&&(g.contains?g.contains(i):true)}:t.documentElement.compareDocumentPosition?
103
- function(g,i){return!!(g.compareDocumentPosition(i)&16)}:function(){return false};k.isXML=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false};var L=function(g,i){for(var n,m=[],p="",q=i.nodeType?[i]:i;n=o.match.PSEUDO.exec(g);){p+=n[0];g=g.replace(o.match.PSEUDO,"")}g=o.relative[g]?g+"*":g;n=0;for(var u=q.length;n<u;n++)k(g,q[n],m);return k.filter(p,m)};c.find=k;c.expr=k.selectors;c.expr[":"]=c.expr.filters;c.unique=k.uniqueSort;c.text=k.getText;c.isXMLDoc=k.isXML;
104
- c.contains=k.contains})();var Za=/Until$/,$a=/^(?:parents|prevUntil|prevAll)/,ab=/,/,Na=/^.[^:#\[\.,]*$/,bb=Array.prototype.slice,cb=c.expr.match.POS;c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,e=0,f=this.length;e<f;e++){d=b.length;c.find(a,this[e],b);if(e>0)for(var h=d;h<b.length;h++)for(var l=0;l<d;l++)if(b[l]===b[h]){b.splice(h--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,e=b.length;d<e;d++)if(c.contains(this,b[d]))return true})},
105
- not:function(a){return this.pushStack(ma(this,a,false),"not",a)},filter:function(a){return this.pushStack(ma(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){var d=[],e,f,h=this[0];if(c.isArray(a)){var l,k={},o=1;if(h&&a.length){e=0;for(f=a.length;e<f;e++){l=a[e];k[l]||(k[l]=c.expr.match.POS.test(l)?c(l,b||this.context):l)}for(;h&&h.ownerDocument&&h!==b;){for(l in k){e=k[l];if(e.jquery?e.index(h)>-1:c(h).is(e))d.push({selector:l,elem:h,level:o})}h=
106
- h.parentNode;o++}}return d}l=cb.test(a)?c(a,b||this.context):null;e=0;for(f=this.length;e<f;e++)for(h=this[e];h;)if(l?l.index(h)>-1:c.find.matchesSelector(h,a)){d.push(h);break}else{h=h.parentNode;if(!h||!h.ownerDocument||h===b)break}d=d.length>1?c.unique(d):d;return this.pushStack(d,"closest",a)},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var d=typeof a==="string"?c(a,b||this.context):
107
- c.makeArray(a),e=c.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:c.unique(e))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,
108
- 2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,
109
- b){c.fn[a]=function(d,e){var f=c.map(this,b,d);Za.test(a)||(e=d);if(e&&typeof e==="string")f=c.filter(e,f);f=this.length>1?c.unique(f):f;if((this.length>1||ab.test(e))&&$a.test(a))f=f.reverse();return this.pushStack(f,a,bb.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return b.length===1?c.find.matchesSelector(b[0],a)?[b[0]]:[]:c.find.matches(a,b)},dir:function(a,b,d){var e=[];for(a=a[b];a&&a.nodeType!==9&&(d===B||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&
110
- e.push(a);a=a[b]}return e},nth:function(a,b,d){b=b||1;for(var e=0;a;a=a[d])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var za=/ jQuery\d+="(?:\d+|null)"/g,$=/^\s+/,Aa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ba=/<([\w:]+)/,db=/<tbody/i,eb=/<|&#?\w+;/,Ca=/<(?:script|object|embed|option|style)/i,Da=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=/\=([^="'>\s]+\/)>/g,P={option:[1,
111
- "<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};P.optgroup=P.option;P.tbody=P.tfoot=P.colgroup=P.caption=P.thead;P.th=P.td;if(!c.support.htmlSerialize)P._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=
112
- c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==B)return this.empty().append((this[0]&&this[0].ownerDocument||t).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},
113
- wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},
114
- prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,
115
- this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,e;(e=this[d])!=null;d++)if(!a||c.filter(a,[e]).length){if(!b&&e.nodeType===1){c.cleanData(e.getElementsByTagName("*"));c.cleanData([e])}e.parentNode&&e.parentNode.removeChild(e)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);
116
- return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,e=this.ownerDocument;if(!d){d=e.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(za,"").replace(fb,'="$1">').replace($,"")],e)[0]}else return this.cloneNode(true)});if(a===true){na(this,b);na(this.find("*"),b.find("*"))}return b},html:function(a){if(a===B)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(za,""):null;
117
- else if(typeof a==="string"&&!Ca.test(a)&&(c.support.leadingWhitespace||!$.test(a))&&!P[(Ba.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Aa,"<$1></$2>");try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(e){this.empty().append(a)}}else c.isFunction(a)?this.each(function(f){var h=c(this);h.html(a.call(this,f,h.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=
118
- c(this),e=d.html();d.replaceWith(a.call(this,b,e))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){var e,f,h,l=a[0],k=[];if(!c.support.checkClone&&arguments.length===3&&typeof l==="string"&&Da.test(l))return this.each(function(){c(this).domManip(a,
119
- b,d,true)});if(c.isFunction(l))return this.each(function(x){var r=c(this);a[0]=l.call(this,x,b?r.html():B);r.domManip(a,b,d)});if(this[0]){e=l&&l.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:c.buildFragment(a,this,k);h=e.fragment;if(f=h.childNodes.length===1?h=h.firstChild:h.firstChild){b=b&&c.nodeName(f,"tr");f=0;for(var o=this.length;f<o;f++)d.call(b?c.nodeName(this[f],"table")?this[f].getElementsByTagName("tbody")[0]||this[f].appendChild(this[f].ownerDocument.createElement("tbody")):
120
- this[f]:this[f],f>0||e.cacheable||this.length>1?h.cloneNode(true):h)}k.length&&c.each(k,Oa)}return this}});c.buildFragment=function(a,b,d){var e,f,h;b=b&&b[0]?b[0].ownerDocument||b[0]:t;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===t&&!Ca.test(a[0])&&(c.support.checkClone||!Da.test(a[0]))){f=true;if(h=c.fragments[a[0]])if(h!==1)e=h}if(!e){e=b.createDocumentFragment();c.clean(a,b,e,d)}if(f)c.fragments[a[0]]=h?e:1;return{fragment:e,cacheable:f}};c.fragments={};c.each({appendTo:"append",
121
- prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var e=[];d=c(d);var f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1){d[b](this[0]);return this}else{f=0;for(var h=d.length;f<h;f++){var l=(f>0?this.clone(true):this).get();c(d[f])[b](l);e=e.concat(l)}return this.pushStack(e,a,d.selector)}}});c.extend({clean:function(a,b,d,e){b=b||t;if(typeof b.createElement==="undefined")b=b.ownerDocument||
122
- b[0]&&b[0].ownerDocument||t;for(var f=[],h=0,l;(l=a[h])!=null;h++){if(typeof l==="number")l+="";if(l){if(typeof l==="string"&&!eb.test(l))l=b.createTextNode(l);else if(typeof l==="string"){l=l.replace(Aa,"<$1></$2>");var k=(Ba.exec(l)||["",""])[1].toLowerCase(),o=P[k]||P._default,x=o[0],r=b.createElement("div");for(r.innerHTML=o[1]+l+o[2];x--;)r=r.lastChild;if(!c.support.tbody){x=db.test(l);k=k==="table"&&!x?r.firstChild&&r.firstChild.childNodes:o[1]==="<table>"&&!x?r.childNodes:[];for(o=k.length-
123
- 1;o>=0;--o)c.nodeName(k[o],"tbody")&&!k[o].childNodes.length&&k[o].parentNode.removeChild(k[o])}!c.support.leadingWhitespace&&$.test(l)&&r.insertBefore(b.createTextNode($.exec(l)[0]),r.firstChild);l=r.childNodes}if(l.nodeType)f.push(l);else f=c.merge(f,l)}}if(d)for(h=0;f[h];h++)if(e&&c.nodeName(f[h],"script")&&(!f[h].type||f[h].type.toLowerCase()==="text/javascript"))e.push(f[h].parentNode?f[h].parentNode.removeChild(f[h]):f[h]);else{f[h].nodeType===1&&f.splice.apply(f,[h+1,0].concat(c.makeArray(f[h].getElementsByTagName("script"))));
124
- d.appendChild(f[h])}return f},cleanData:function(a){for(var b,d,e=c.cache,f=c.event.special,h=c.support.deleteExpando,l=0,k;(k=a[l])!=null;l++)if(!(k.nodeName&&c.noData[k.nodeName.toLowerCase()]))if(d=k[c.expando]){if((b=e[d])&&b.events)for(var o in b.events)f[o]?c.event.remove(k,o):c.removeEvent(k,o,b.handle);if(h)delete k[c.expando];else k.removeAttribute&&k.removeAttribute(c.expando);delete e[d]}}});var Ea=/alpha\([^)]*\)/i,gb=/opacity=([^)]*)/,hb=/-([a-z])/ig,ib=/([A-Z])/g,Fa=/^-?\d+(?:px)?$/i,
125
- jb=/^-?\d/,kb={position:"absolute",visibility:"hidden",display:"block"},Pa=["Left","Right"],Qa=["Top","Bottom"],W,Ga,aa,lb=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){if(arguments.length===2&&b===B)return this;return c.access(this,a,b,true,function(d,e,f){return f!==B?c.style(d,e,f):c.css(d,e)})};c.extend({cssHooks:{opacity:{get:function(a,b){if(b){var d=W(a,"opacity","opacity");return d===""?"1":d}else return a.style.opacity}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true,
126
- zoom:true,lineHeight:true},cssProps:{"float":c.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,d,e){if(!(!a||a.nodeType===3||a.nodeType===8||!a.style)){var f,h=c.camelCase(b),l=a.style,k=c.cssHooks[h];b=c.cssProps[h]||h;if(d!==B){if(!(typeof d==="number"&&isNaN(d)||d==null)){if(typeof d==="number"&&!c.cssNumber[h])d+="px";if(!k||!("set"in k)||(d=k.set(a,d))!==B)try{l[b]=d}catch(o){}}}else{if(k&&"get"in k&&(f=k.get(a,false,e))!==B)return f;return l[b]}}},css:function(a,b,d){var e,f=c.camelCase(b),
127
- h=c.cssHooks[f];b=c.cssProps[f]||f;if(h&&"get"in h&&(e=h.get(a,true,d))!==B)return e;else if(W)return W(a,b,f)},swap:function(a,b,d){var e={},f;for(f in b){e[f]=a.style[f];a.style[f]=b[f]}d.call(a);for(f in b)a.style[f]=e[f]},camelCase:function(a){return a.replace(hb,lb)}});c.curCSS=c.css;c.each(["height","width"],function(a,b){c.cssHooks[b]={get:function(d,e,f){var h;if(e){if(d.offsetWidth!==0)h=oa(d,b,f);else c.swap(d,kb,function(){h=oa(d,b,f)});if(h<=0){h=W(d,b,b);if(h==="0px"&&aa)h=aa(d,b,b);
128
- if(h!=null)return h===""||h==="auto"?"0px":h}if(h<0||h==null){h=d.style[b];return h===""||h==="auto"?"0px":h}return typeof h==="string"?h:h+"px"}},set:function(d,e){if(Fa.test(e)){e=parseFloat(e);if(e>=0)return e+"px"}else return e}}});if(!c.support.opacity)c.cssHooks.opacity={get:function(a,b){return gb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var d=a.style;d.zoom=1;var e=c.isNaN(b)?"":"alpha(opacity="+b*100+")",f=
129
- d.filter||"";d.filter=Ea.test(f)?f.replace(Ea,e):d.filter+" "+e}};if(t.defaultView&&t.defaultView.getComputedStyle)Ga=function(a,b,d){var e;d=d.replace(ib,"-$1").toLowerCase();if(!(b=a.ownerDocument.defaultView))return B;if(b=b.getComputedStyle(a,null)){e=b.getPropertyValue(d);if(e===""&&!c.contains(a.ownerDocument.documentElement,a))e=c.style(a,d)}return e};if(t.documentElement.currentStyle)aa=function(a,b){var d,e,f=a.currentStyle&&a.currentStyle[b],h=a.style;if(!Fa.test(f)&&jb.test(f)){d=h.left;
130
- e=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;h.left=b==="fontSize"?"1em":f||0;f=h.pixelLeft+"px";h.left=d;a.runtimeStyle.left=e}return f===""?"auto":f};W=Ga||aa;if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!c.support.reliableHiddenOffsets&&(a.style.display||c.css(a,"display"))==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var mb=c.now(),nb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
131
- ob=/^(?:select|textarea)/i,pb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,qb=/^(?:GET|HEAD)$/,Ra=/\[\]$/,T=/\=\?(&|$)/,ja=/\?/,rb=/([?&])_=[^&]*/,sb=/^(\w+:)?\/\/([^\/?#]+)/,tb=/%20/g,ub=/#.*$/,Ha=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!=="string"&&Ha)return Ha.apply(this,arguments);else if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var f=a.slice(e,a.length);a=a.slice(0,e)}e="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b===
132
- "object"){b=c.param(b,c.ajaxSettings.traditional);e="POST"}var h=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(l,k){if(k==="success"||k==="notmodified")h.html(f?c("<div>").append(l.responseText.replace(nb,"")).find(f):l.responseText);d&&h.each(d,[l.responseText,k,l])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&
133
- !this.disabled&&(this.checked||ob.test(this.nodeName)||pb.test(this.type))}).map(function(a,b){var d=c(this).val();return d==null?null:c.isArray(d)?c.map(d,function(e){return{name:b.name,value:e}}):{name:b.name,value:d}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:e})},
134
- getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:e})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new E.XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html",
135
- script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},ajax:function(a){var b=c.extend(true,{},c.ajaxSettings,a),d,e,f,h=b.type.toUpperCase(),l=qb.test(h);b.url=b.url.replace(ub,"");b.context=a&&a.context!=null?a.context:b;if(b.data&&b.processData&&typeof b.data!=="string")b.data=c.param(b.data,b.traditional);if(b.dataType==="jsonp"){if(h==="GET")T.test(b.url)||(b.url+=(ja.test(b.url)?"&":"?")+(b.jsonp||"callback")+"=?");else if(!b.data||
136
- !T.test(b.data))b.data=(b.data?b.data+"&":"")+(b.jsonp||"callback")+"=?";b.dataType="json"}if(b.dataType==="json"&&(b.data&&T.test(b.data)||T.test(b.url))){d=b.jsonpCallback||"jsonp"+mb++;if(b.data)b.data=(b.data+"").replace(T,"="+d+"$1");b.url=b.url.replace(T,"="+d+"$1");b.dataType="script";var k=E[d];E[d]=function(m){if(c.isFunction(k))k(m);else{E[d]=B;try{delete E[d]}catch(p){}}f=m;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);r&&r.removeChild(A)}}if(b.dataType==="script"&&b.cache===null)b.cache=
137
- false;if(b.cache===false&&l){var o=c.now(),x=b.url.replace(rb,"$1_="+o);b.url=x+(x===b.url?(ja.test(b.url)?"&":"?")+"_="+o:"")}if(b.data&&l)b.url+=(ja.test(b.url)?"&":"?")+b.data;b.global&&c.active++===0&&c.event.trigger("ajaxStart");o=(o=sb.exec(b.url))&&(o[1]&&o[1].toLowerCase()!==location.protocol||o[2].toLowerCase()!==location.host);if(b.dataType==="script"&&h==="GET"&&o){var r=t.getElementsByTagName("head")[0]||t.documentElement,A=t.createElement("script");if(b.scriptCharset)A.charset=b.scriptCharset;
138
- A.src=b.url;if(!d){var C=false;A.onload=A.onreadystatechange=function(){if(!C&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){C=true;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);A.onload=A.onreadystatechange=null;r&&A.parentNode&&r.removeChild(A)}}}r.insertBefore(A,r.firstChild);return B}var J=false,w=b.xhr();if(w){b.username?w.open(h,b.url,b.async,b.username,b.password):w.open(h,b.url,b.async);try{if(b.data!=null&&!l||a&&a.contentType)w.setRequestHeader("Content-Type",
139
- b.contentType);if(b.ifModified){c.lastModified[b.url]&&w.setRequestHeader("If-Modified-Since",c.lastModified[b.url]);c.etag[b.url]&&w.setRequestHeader("If-None-Match",c.etag[b.url])}o||w.setRequestHeader("X-Requested-With","XMLHttpRequest");w.setRequestHeader("Accept",b.dataType&&b.accepts[b.dataType]?b.accepts[b.dataType]+", */*; q=0.01":b.accepts._default)}catch(I){}if(b.beforeSend&&b.beforeSend.call(b.context,w,b)===false){b.global&&c.active--===1&&c.event.trigger("ajaxStop");w.abort();return false}b.global&&
140
- c.triggerGlobal(b,"ajaxSend",[w,b]);var L=w.onreadystatechange=function(m){if(!w||w.readyState===0||m==="abort"){J||c.handleComplete(b,w,e,f);J=true;if(w)w.onreadystatechange=c.noop}else if(!J&&w&&(w.readyState===4||m==="timeout")){J=true;w.onreadystatechange=c.noop;e=m==="timeout"?"timeout":!c.httpSuccess(w)?"error":b.ifModified&&c.httpNotModified(w,b.url)?"notmodified":"success";var p;if(e==="success")try{f=c.httpData(w,b.dataType,b)}catch(q){e="parsererror";p=q}if(e==="success"||e==="notmodified")d||
141
- c.handleSuccess(b,w,e,f);else c.handleError(b,w,e,p);d||c.handleComplete(b,w,e,f);m==="timeout"&&w.abort();if(b.async)w=null}};try{var g=w.abort;w.abort=function(){w&&Function.prototype.call.call(g,w);L("abort")}}catch(i){}b.async&&b.timeout>0&&setTimeout(function(){w&&!J&&L("timeout")},b.timeout);try{w.send(l||b.data==null?null:b.data)}catch(n){c.handleError(b,w,null,n);c.handleComplete(b,w,e,f)}b.async||L();return w}},param:function(a,b){var d=[],e=function(h,l){l=c.isFunction(l)?l():l;d[d.length]=
142
- encodeURIComponent(h)+"="+encodeURIComponent(l)};if(b===B)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery)c.each(a,function(){e(this.name,this.value)});else for(var f in a)da(f,a[f],b,e);return d.join("&").replace(tb,"+")}});c.extend({active:0,lastModified:{},etag:{},handleError:function(a,b,d,e){a.error&&a.error.call(a.context,b,d,e);a.global&&c.triggerGlobal(a,"ajaxError",[b,a,e])},handleSuccess:function(a,b,d,e){a.success&&a.success.call(a.context,e,d,b);a.global&&c.triggerGlobal(a,"ajaxSuccess",
143
- [b,a])},handleComplete:function(a,b,d){a.complete&&a.complete.call(a.context,b,d);a.global&&c.triggerGlobal(a,"ajaxComplete",[b,a]);a.global&&c.active--===1&&c.event.trigger("ajaxStop")},triggerGlobal:function(a,b,d){(a.context&&a.context.url==null?c(a.context):c.event).trigger(b,d)},httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),
144
- e=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(e)c.etag[b]=e;return a.status===304},httpData:function(a,b,d){var e=a.getResponseHeader("content-type")||"",f=b==="xml"||!b&&e.indexOf("xml")>=0;a=f?a.responseXML:a.responseText;f&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b==="json"||!b&&e.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&e.indexOf("javascript")>=0)c.globalEval(a);return a}});
145
- if(E.ActiveXObject)c.ajaxSettings.xhr=function(){if(E.location.protocol!=="file:")try{return new E.XMLHttpRequest}catch(a){}try{return new E.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}};c.support.ajax=!!c.ajaxSettings.xhr();var ea={},vb=/^(?:toggle|show|hide)$/,wb=/^([+\-]=)?([\d+.\-]+)(.*)$/,ba,pa=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b,d){if(a||a===0)return this.animate(S("show",
146
- 3),a,b,d);else{d=0;for(var e=this.length;d<e;d++){a=this[d];b=a.style.display;if(!c.data(a,"olddisplay")&&b==="none")b=a.style.display="";b===""&&c.css(a,"display")==="none"&&c.data(a,"olddisplay",qa(a.nodeName))}for(d=0;d<e;d++){a=this[d];b=a.style.display;if(b===""||b==="none")a.style.display=c.data(a,"olddisplay")||""}return this}},hide:function(a,b,d){if(a||a===0)return this.animate(S("hide",3),a,b,d);else{a=0;for(b=this.length;a<b;a++){d=c.css(this[a],"display");d!=="none"&&c.data(this[a],"olddisplay",
147
- d)}for(a=0;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b,d){var e=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||e?this.each(function(){var f=e?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(S("toggle",3),a,b,d);return this},fadeTo:function(a,b,d,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d,e)},animate:function(a,b,d,e){var f=c.speed(b,
148
- d,e);if(c.isEmptyObject(a))return this.each(f.complete);return this[f.queue===false?"each":"queue"](function(){var h=c.extend({},f),l,k=this.nodeType===1,o=k&&c(this).is(":hidden"),x=this;for(l in a){var r=c.camelCase(l);if(l!==r){a[r]=a[l];delete a[l];l=r}if(a[l]==="hide"&&o||a[l]==="show"&&!o)return h.complete.call(this);if(k&&(l==="height"||l==="width")){h.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(c.css(this,"display")==="inline"&&c.css(this,"float")==="none")if(c.support.inlineBlockNeedsLayout)if(qa(this.nodeName)===
149
- "inline")this.style.display="inline-block";else{this.style.display="inline";this.style.zoom=1}else this.style.display="inline-block"}if(c.isArray(a[l])){(h.specialEasing=h.specialEasing||{})[l]=a[l][1];a[l]=a[l][0]}}if(h.overflow!=null)this.style.overflow="hidden";h.curAnim=c.extend({},a);c.each(a,function(A,C){var J=new c.fx(x,h,A);if(vb.test(C))J[C==="toggle"?o?"show":"hide":C](a);else{var w=wb.exec(C),I=J.cur()||0;if(w){var L=parseFloat(w[2]),g=w[3]||"px";if(g!=="px"){c.style(x,A,(L||1)+g);I=(L||
150
- 1)/J.cur()*I;c.style(x,A,I+g)}if(w[1])L=(w[1]==="-="?-1:1)*L+I;J.custom(I,L,g)}else J.custom(I,C,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);this.each(function(){for(var e=d.length-1;e>=0;e--)if(d[e].elem===this){b&&d[e](true);d.splice(e,1)}});b||this.dequeue();return this}});c.each({slideDown:S("show",1),slideUp:S("hide",1),slideToggle:S("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){c.fn[a]=function(d,e,f){return this.animate(b,
151
- d,e,f)}});c.extend({speed:function(a,b,d){var e=a&&typeof a==="object"?c.extend({},a):{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};e.duration=c.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in c.fx.speeds?c.fx.speeds[e.duration]:c.fx.speeds._default;e.old=e.complete;e.complete=function(){e.queue!==false&&c(this).dequeue();c.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,d,e){return d+e*a},swing:function(a,b,d,e){return(-Math.cos(a*
152
- Math.PI)/2+0.5)*e+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a=parseFloat(c.css(this.elem,this.prop));return a&&a>-1E4?a:0},custom:function(a,b,d){function e(l){return f.step(l)}
153
- var f=this,h=c.fx;this.startTime=c.now();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;e.elem=this.elem;if(e()&&c.timers.push(e)&&!ba)ba=setInterval(h.tick,h.interval)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;
154
- this.custom(this.cur(),0)},step:function(a){var b=c.now(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var e in this.options.curAnim)if(this.options.curAnim[e]!==true)d=false;if(d){if(this.options.overflow!=null&&!c.support.shrinkWrapBlocks){var f=this.elem,h=this.options;c.each(["","X","Y"],function(k,o){f.style["overflow"+o]=h.overflow[k]})}this.options.hide&&c(this.elem).hide();if(this.options.hide||
155
- this.options.show)for(var l in this.options.curAnim)c.style(this.elem,l,this.options.orig[l]);this.options.complete.call(this.elem)}return false}else{a=b-this.startTime;this.state=a/this.options.duration;b=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||b](this.state,a,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=
156
- c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||c.fx.stop()},interval:13,stop:function(){clearInterval(ba);ba=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===
157
- b.elem}).length};var xb=/^t(?:able|d|h)$/i,Ia=/^(?:body|html)$/i;c.fn.offset="getBoundingClientRect"in t.documentElement?function(a){var b=this[0],d;if(a)return this.each(function(l){c.offset.setOffset(this,a,l)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);try{d=b.getBoundingClientRect()}catch(e){}var f=b.ownerDocument,h=f.documentElement;if(!d||!c.contains(h,b))return d||{top:0,left:0};b=f.body;f=fa(f);return{top:d.top+(f.pageYOffset||c.support.boxModel&&
158
- h.scrollTop||b.scrollTop)-(h.clientTop||b.clientTop||0),left:d.left+(f.pageXOffset||c.support.boxModel&&h.scrollLeft||b.scrollLeft)-(h.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(x){c.offset.setOffset(this,a,x)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d,e=b.offsetParent,f=b.ownerDocument,h=f.documentElement,l=f.body;d=(f=f.defaultView)?f.getComputedStyle(b,null):b.currentStyle;
159
- for(var k=b.offsetTop,o=b.offsetLeft;(b=b.parentNode)&&b!==l&&b!==h;){if(c.offset.supportsFixedPosition&&d.position==="fixed")break;d=f?f.getComputedStyle(b,null):b.currentStyle;k-=b.scrollTop;o-=b.scrollLeft;if(b===e){k+=b.offsetTop;o+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&xb.test(b.nodeName))){k+=parseFloat(d.borderTopWidth)||0;o+=parseFloat(d.borderLeftWidth)||0}e=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"){k+=
160
- parseFloat(d.borderTopWidth)||0;o+=parseFloat(d.borderLeftWidth)||0}d=d}if(d.position==="relative"||d.position==="static"){k+=l.offsetTop;o+=l.offsetLeft}if(c.offset.supportsFixedPosition&&d.position==="fixed"){k+=Math.max(h.scrollTop,l.scrollTop);o+=Math.max(h.scrollLeft,l.scrollLeft)}return{top:k,left:o}};c.offset={initialize:function(){var a=t.body,b=t.createElement("div"),d,e,f,h=parseFloat(c.css(a,"marginTop"))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",
161
- height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(b,a.firstChild);d=b.firstChild;e=d.firstChild;f=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=e.offsetTop!==5;this.doesAddBorderForTableAndCells=
162
- f.offsetTop===5;e.style.position="fixed";e.style.top="20px";this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15;e.style.position=e.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==h;a.removeChild(b);c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.css(a,
163
- "marginTop"))||0;d+=parseFloat(c.css(a,"marginLeft"))||0}return{top:b,left:d}},setOffset:function(a,b,d){var e=c.css(a,"position");if(e==="static")a.style.position="relative";var f=c(a),h=f.offset(),l=c.css(a,"top"),k=c.css(a,"left"),o=e==="absolute"&&c.inArray("auto",[l,k])>-1;e={};var x={};if(o)x=f.position();l=o?x.top:parseInt(l,10)||0;k=o?x.left:parseInt(k,10)||0;if(c.isFunction(b))b=b.call(a,d,h);if(b.top!=null)e.top=b.top-h.top+l;if(b.left!=null)e.left=b.left-h.left+k;"using"in b?b.using.call(a,
164
- e):f.css(e)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=Ia.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.css(a,"marginTop"))||0;d.left-=parseFloat(c.css(a,"marginLeft"))||0;e.top+=parseFloat(c.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(c.css(b[0],"borderLeftWidth"))||0;return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||t.body;a&&!Ia.test(a.nodeName)&&
165
- c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(e){var f=this[0],h;if(!f)return null;if(e!==B)return this.each(function(){if(h=fa(this))h.scrollTo(!a?e:c(h).scrollLeft(),a?e:c(h).scrollTop());else this[d]=e});else return(h=fa(f))?"pageXOffset"in h?h[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&h.document.documentElement[d]||h.document.body[d]:f[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();
166
- c.fn["inner"+b]=function(){return this[0]?parseFloat(c.css(this[0],d,"padding")):null};c.fn["outer"+b]=function(e){return this[0]?parseFloat(c.css(this[0],d,e?"margin":"border")):null};c.fn[d]=function(e){var f=this[0];if(!f)return e==null?null:this;if(c.isFunction(e))return this.each(function(l){var k=c(this);k[d](e.call(this,l,k[d]()))});if(c.isWindow(f))return f.document.compatMode==="CSS1Compat"&&f.document.documentElement["client"+b]||f.document.body["client"+b];else if(f.nodeType===9)return Math.max(f.documentElement["client"+
167
- b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documentElement["offset"+b]);else if(e===B){f=c.css(f,d);var h=parseFloat(f);return c.isNaN(h)?f:h}else return this.css(d,typeof e==="string"?e:e+"px")}})})(window);
1
+ /*!
2
+ * jQuery JavaScript Library v1.4.4
3
+ * http://jquery.com/
4
+ *
5
+ * Copyright 2010, John Resig
6
+ * Dual licensed under the MIT or GPL Version 2 licenses.
7
+ * http://jquery.org/license
8
+ *
9
+ * Includes Sizzle.js
10
+ * http://sizzlejs.com/
11
+ * Copyright 2010, The Dojo Foundation
12
+ * Released under the MIT, BSD, and GPL Licenses.
13
+ *
14
+ * Date: Thu Nov 11 19:04:53 2010 -0500
15
+ */
16
+ (function(E,B){function ka(a,b,d){if(d===B&&a.nodeType===1){d=a.getAttribute("data-"+b);if(typeof d==="string"){try{d=d==="true"?true:d==="false"?false:d==="null"?null:!c.isNaN(d)?parseFloat(d):Ja.test(d)?c.parseJSON(d):d}catch(e){}c.data(a,b,d)}else d=B}return d}function U(){return false}function ca(){return true}function la(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function Ka(a){var b,d,e,f,h,l,k,o,x,r,A,C=[];f=[];h=c.data(this,this.nodeType?"events":"__events__");if(typeof h==="function")h=
17
+ h.events;if(!(a.liveFired===this||!h||!h.live||a.button&&a.type==="click")){if(a.namespace)A=RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");a.liveFired=this;var J=h.live.slice(0);for(k=0;k<J.length;k++){h=J[k];h.origType.replace(X,"")===a.type?f.push(h.selector):J.splice(k--,1)}f=c(a.target).closest(f,a.currentTarget);o=0;for(x=f.length;o<x;o++){r=f[o];for(k=0;k<J.length;k++){h=J[k];if(r.selector===h.selector&&(!A||A.test(h.namespace))){l=r.elem;e=null;if(h.preType==="mouseenter"||
18
+ h.preType==="mouseleave"){a.type=h.preType;e=c(a.relatedTarget).closest(h.selector)[0]}if(!e||e!==l)C.push({elem:l,handleObj:h,level:r.level})}}}o=0;for(x=C.length;o<x;o++){f=C[o];if(d&&f.level>d)break;a.currentTarget=f.elem;a.data=f.handleObj.data;a.handleObj=f.handleObj;A=f.handleObj.origHandler.apply(f.elem,arguments);if(A===false||a.isPropagationStopped()){d=f.level;if(A===false)b=false;if(a.isImmediatePropagationStopped())break}}return b}}function Y(a,b){return(a&&a!=="*"?a+".":"")+b.replace(La,
19
+ "`").replace(Ma,"&")}function ma(a,b,d){if(c.isFunction(b))return c.grep(a,function(f,h){return!!b.call(f,h,f)===d});else if(b.nodeType)return c.grep(a,function(f){return f===b===d});else if(typeof b==="string"){var e=c.grep(a,function(f){return f.nodeType===1});if(Na.test(b))return c.filter(b,e,!d);else b=c.filter(b,e)}return c.grep(a,function(f){return c.inArray(f,b)>=0===d})}function na(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var e=c.data(a[d++]),f=c.data(this,
20
+ e);if(e=e&&e.events){delete f.handle;f.events={};for(var h in e)for(var l in e[h])c.event.add(this,h,e[h][l],e[h][l].data)}}})}function Oa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function oa(a,b,d){var e=b==="width"?a.offsetWidth:a.offsetHeight;if(d==="border")return e;c.each(b==="width"?Pa:Qa,function(){d||(e-=parseFloat(c.css(a,"padding"+this))||0);if(d==="margin")e+=parseFloat(c.css(a,
21
+ "margin"+this))||0;else e-=parseFloat(c.css(a,"border"+this+"Width"))||0});return e}function da(a,b,d,e){if(c.isArray(b)&&b.length)c.each(b,function(f,h){d||Ra.test(a)?e(a,h):da(a+"["+(typeof h==="object"||c.isArray(h)?f:"")+"]",h,d,e)});else if(!d&&b!=null&&typeof b==="object")c.isEmptyObject(b)?e(a,""):c.each(b,function(f,h){da(a+"["+f+"]",h,d,e)});else e(a,b)}function S(a,b){var d={};c.each(pa.concat.apply([],pa.slice(0,b)),function(){d[this]=a});return d}function qa(a){if(!ea[a]){var b=c("<"+
22
+ a+">").appendTo("body"),d=b.css("display");b.remove();if(d==="none"||d==="")d="block";ea[a]=d}return ea[a]}function fa(a){return c.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var t=E.document,c=function(){function a(){if(!b.isReady){try{t.documentElement.doScroll("left")}catch(j){setTimeout(a,1);return}b.ready()}}var b=function(j,s){return new b.fn.init(j,s)},d=E.jQuery,e=E.$,f,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,l=/\S/,k=/^\s+/,o=/\s+$/,x=/\W/,r=/\d/,A=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,
23
+ C=/^[\],:{}\s]*$/,J=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,w=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,I=/(?:^|:|,)(?:\s*\[)+/g,L=/(webkit)[ \/]([\w.]+)/,g=/(opera)(?:.*version)?[ \/]([\w.]+)/,i=/(msie) ([\w.]+)/,n=/(mozilla)(?:.*? rv:([\w.]+))?/,m=navigator.userAgent,p=false,q=[],u,y=Object.prototype.toString,F=Object.prototype.hasOwnProperty,M=Array.prototype.push,N=Array.prototype.slice,O=String.prototype.trim,D=Array.prototype.indexOf,R={};b.fn=b.prototype={init:function(j,
24
+ s){var v,z,H;if(!j)return this;if(j.nodeType){this.context=this[0]=j;this.length=1;return this}if(j==="body"&&!s&&t.body){this.context=t;this[0]=t.body;this.selector="body";this.length=1;return this}if(typeof j==="string")if((v=h.exec(j))&&(v[1]||!s))if(v[1]){H=s?s.ownerDocument||s:t;if(z=A.exec(j))if(b.isPlainObject(s)){j=[t.createElement(z[1])];b.fn.attr.call(j,s,true)}else j=[H.createElement(z[1])];else{z=b.buildFragment([v[1]],[H]);j=(z.cacheable?z.fragment.cloneNode(true):z.fragment).childNodes}return b.merge(this,
25
+ j)}else{if((z=t.getElementById(v[2]))&&z.parentNode){if(z.id!==v[2])return f.find(j);this.length=1;this[0]=z}this.context=t;this.selector=j;return this}else if(!s&&!x.test(j)){this.selector=j;this.context=t;j=t.getElementsByTagName(j);return b.merge(this,j)}else return!s||s.jquery?(s||f).find(j):b(s).find(j);else if(b.isFunction(j))return f.ready(j);if(j.selector!==B){this.selector=j.selector;this.context=j.context}return b.makeArray(j,this)},selector:"",jquery:"1.4.4",length:0,size:function(){return this.length},
26
+ toArray:function(){return N.call(this,0)},get:function(j){return j==null?this.toArray():j<0?this.slice(j)[0]:this[j]},pushStack:function(j,s,v){var z=b();b.isArray(j)?M.apply(z,j):b.merge(z,j);z.prevObject=this;z.context=this.context;if(s==="find")z.selector=this.selector+(this.selector?" ":"")+v;else if(s)z.selector=this.selector+"."+s+"("+v+")";return z},each:function(j,s){return b.each(this,j,s)},ready:function(j){b.bindReady();if(b.isReady)j.call(t,b);else q&&q.push(j);return this},eq:function(j){return j===
27
+ -1?this.slice(j):this.slice(j,+j+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(N.apply(this,arguments),"slice",N.call(arguments).join(","))},map:function(j){return this.pushStack(b.map(this,function(s,v){return j.call(s,v,s)}))},end:function(){return this.prevObject||b(null)},push:M,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var j,s,v,z,H,G=arguments[0]||{},K=1,Q=arguments.length,ga=false;
28
+ if(typeof G==="boolean"){ga=G;G=arguments[1]||{};K=2}if(typeof G!=="object"&&!b.isFunction(G))G={};if(Q===K){G=this;--K}for(;K<Q;K++)if((j=arguments[K])!=null)for(s in j){v=G[s];z=j[s];if(G!==z)if(ga&&z&&(b.isPlainObject(z)||(H=b.isArray(z)))){if(H){H=false;v=v&&b.isArray(v)?v:[]}else v=v&&b.isPlainObject(v)?v:{};G[s]=b.extend(ga,v,z)}else if(z!==B)G[s]=z}return G};b.extend({noConflict:function(j){E.$=e;if(j)E.jQuery=d;return b},isReady:false,readyWait:1,ready:function(j){j===true&&b.readyWait--;
29
+ if(!b.readyWait||j!==true&&!b.isReady){if(!t.body)return setTimeout(b.ready,1);b.isReady=true;if(!(j!==true&&--b.readyWait>0))if(q){var s=0,v=q;for(q=null;j=v[s++];)j.call(t,b);b.fn.trigger&&b(t).trigger("ready").unbind("ready")}}},bindReady:function(){if(!p){p=true;if(t.readyState==="complete")return setTimeout(b.ready,1);if(t.addEventListener){t.addEventListener("DOMContentLoaded",u,false);E.addEventListener("load",b.ready,false)}else if(t.attachEvent){t.attachEvent("onreadystatechange",u);E.attachEvent("onload",
30
+ b.ready);var j=false;try{j=E.frameElement==null}catch(s){}t.documentElement.doScroll&&j&&a()}}},isFunction:function(j){return b.type(j)==="function"},isArray:Array.isArray||function(j){return b.type(j)==="array"},isWindow:function(j){return j&&typeof j==="object"&&"setInterval"in j},isNaN:function(j){return j==null||!r.test(j)||isNaN(j)},type:function(j){return j==null?String(j):R[y.call(j)]||"object"},isPlainObject:function(j){if(!j||b.type(j)!=="object"||j.nodeType||b.isWindow(j))return false;if(j.constructor&&
31
+ !F.call(j,"constructor")&&!F.call(j.constructor.prototype,"isPrototypeOf"))return false;for(var s in j);return s===B||F.call(j,s)},isEmptyObject:function(j){for(var s in j)return false;return true},error:function(j){throw j;},parseJSON:function(j){if(typeof j!=="string"||!j)return null;j=b.trim(j);if(C.test(j.replace(J,"@").replace(w,"]").replace(I,"")))return E.JSON&&E.JSON.parse?E.JSON.parse(j):(new Function("return "+j))();else b.error("Invalid JSON: "+j)},noop:function(){},globalEval:function(j){if(j&&
32
+ l.test(j)){var s=t.getElementsByTagName("head")[0]||t.documentElement,v=t.createElement("script");v.type="text/javascript";if(b.support.scriptEval)v.appendChild(t.createTextNode(j));else v.text=j;s.insertBefore(v,s.firstChild);s.removeChild(v)}},nodeName:function(j,s){return j.nodeName&&j.nodeName.toUpperCase()===s.toUpperCase()},each:function(j,s,v){var z,H=0,G=j.length,K=G===B||b.isFunction(j);if(v)if(K)for(z in j){if(s.apply(j[z],v)===false)break}else for(;H<G;){if(s.apply(j[H++],v)===false)break}else if(K)for(z in j){if(s.call(j[z],
33
+ z,j[z])===false)break}else for(v=j[0];H<G&&s.call(v,H,v)!==false;v=j[++H]);return j},trim:O?function(j){return j==null?"":O.call(j)}:function(j){return j==null?"":j.toString().replace(k,"").replace(o,"")},makeArray:function(j,s){var v=s||[];if(j!=null){var z=b.type(j);j.length==null||z==="string"||z==="function"||z==="regexp"||b.isWindow(j)?M.call(v,j):b.merge(v,j)}return v},inArray:function(j,s){if(s.indexOf)return s.indexOf(j);for(var v=0,z=s.length;v<z;v++)if(s[v]===j)return v;return-1},merge:function(j,
34
+ s){var v=j.length,z=0;if(typeof s.length==="number")for(var H=s.length;z<H;z++)j[v++]=s[z];else for(;s[z]!==B;)j[v++]=s[z++];j.length=v;return j},grep:function(j,s,v){var z=[],H;v=!!v;for(var G=0,K=j.length;G<K;G++){H=!!s(j[G],G);v!==H&&z.push(j[G])}return z},map:function(j,s,v){for(var z=[],H,G=0,K=j.length;G<K;G++){H=s(j[G],G,v);if(H!=null)z[z.length]=H}return z.concat.apply([],z)},guid:1,proxy:function(j,s,v){if(arguments.length===2)if(typeof s==="string"){v=j;j=v[s];s=B}else if(s&&!b.isFunction(s)){v=
35
+ s;s=B}if(!s&&j)s=function(){return j.apply(v||this,arguments)};if(j)s.guid=j.guid=j.guid||s.guid||b.guid++;return s},access:function(j,s,v,z,H,G){var K=j.length;if(typeof s==="object"){for(var Q in s)b.access(j,Q,s[Q],z,H,v);return j}if(v!==B){z=!G&&z&&b.isFunction(v);for(Q=0;Q<K;Q++)H(j[Q],s,z?v.call(j[Q],Q,H(j[Q],s)):v,G);return j}return K?H(j[0],s):B},now:function(){return(new Date).getTime()},uaMatch:function(j){j=j.toLowerCase();j=L.exec(j)||g.exec(j)||i.exec(j)||j.indexOf("compatible")<0&&n.exec(j)||
36
+ [];return{browser:j[1]||"",version:j[2]||"0"}},browser:{}});b.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(j,s){R["[object "+s+"]"]=s.toLowerCase()});m=b.uaMatch(m);if(m.browser){b.browser[m.browser]=true;b.browser.version=m.version}if(b.browser.webkit)b.browser.safari=true;if(D)b.inArray=function(j,s){return D.call(s,j)};if(!/\s/.test("\u00a0")){k=/^[\s\xA0]+/;o=/[\s\xA0]+$/}f=b(t);if(t.addEventListener)u=function(){t.removeEventListener("DOMContentLoaded",u,
37
+ false);b.ready()};else if(t.attachEvent)u=function(){if(t.readyState==="complete"){t.detachEvent("onreadystatechange",u);b.ready()}};return E.jQuery=E.$=b}();(function(){c.support={};var a=t.documentElement,b=t.createElement("script"),d=t.createElement("div"),e="script"+c.now();d.style.display="none";d.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var f=d.getElementsByTagName("*"),h=d.getElementsByTagName("a")[0],l=t.createElement("select"),
38
+ k=l.appendChild(t.createElement("option"));if(!(!f||!f.length||!h)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(h.getAttribute("style")),hrefNormalized:h.getAttribute("href")==="/a",opacity:/^0.55$/.test(h.style.opacity),cssFloat:!!h.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:k.selected,deleteExpando:true,optDisabled:false,checkClone:false,
39
+ scriptEval:false,noCloneEvent:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};l.disabled=true;c.support.optDisabled=!k.disabled;b.type="text/javascript";try{b.appendChild(t.createTextNode("window."+e+"=1;"))}catch(o){}a.insertBefore(b,a.firstChild);if(E[e]){c.support.scriptEval=true;delete E[e]}try{delete b.test}catch(x){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function r(){c.support.noCloneEvent=
40
+ false;d.detachEvent("onclick",r)});d.cloneNode(true).fireEvent("onclick")}d=t.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=t.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var r=t.createElement("div");r.style.width=r.style.paddingLeft="1px";t.body.appendChild(r);c.boxModel=c.support.boxModel=r.offsetWidth===2;if("zoom"in r.style){r.style.display="inline";r.style.zoom=
41
+ 1;c.support.inlineBlockNeedsLayout=r.offsetWidth===2;r.style.display="";r.innerHTML="<div style='width:4px;'></div>";c.support.shrinkWrapBlocks=r.offsetWidth!==2}r.innerHTML="<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";var A=r.getElementsByTagName("td");c.support.reliableHiddenOffsets=A[0].offsetHeight===0;A[0].style.display="";A[1].style.display="none";c.support.reliableHiddenOffsets=c.support.reliableHiddenOffsets&&A[0].offsetHeight===0;r.innerHTML="";t.body.removeChild(r).style.display=
42
+ "none"});a=function(r){var A=t.createElement("div");r="on"+r;var C=r in A;if(!C){A.setAttribute(r,"return;");C=typeof A[r]==="function"}return C};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=f=h=null}})();var ra={},Ja=/^(?:\{.*\}|\[.*\])$/;c.extend({cache:{},uuid:0,expando:"jQuery"+c.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(a,b,d){if(c.acceptData(a)){a=a==E?ra:a;var e=a.nodeType,f=e?a[c.expando]:null,h=
43
+ c.cache;if(!(e&&!f&&typeof b==="string"&&d===B)){if(e)f||(a[c.expando]=f=++c.uuid);else h=a;if(typeof b==="object")if(e)h[f]=c.extend(h[f],b);else c.extend(h,b);else if(e&&!h[f])h[f]={};a=e?h[f]:h;if(d!==B)a[b]=d;return typeof b==="string"?a[b]:a}}},removeData:function(a,b){if(c.acceptData(a)){a=a==E?ra:a;var d=a.nodeType,e=d?a[c.expando]:a,f=c.cache,h=d?f[e]:e;if(b){if(h){delete h[b];d&&c.isEmptyObject(h)&&c.removeData(a)}}else if(d&&c.support.deleteExpando)delete a[c.expando];else if(a.removeAttribute)a.removeAttribute(c.expando);
44
+ else if(d)delete f[e];else for(var l in a)delete a[l]}},acceptData:function(a){if(a.nodeName){var b=c.noData[a.nodeName.toLowerCase()];if(b)return!(b===true||a.getAttribute("classid")!==b)}return true}});c.fn.extend({data:function(a,b){var d=null;if(typeof a==="undefined"){if(this.length){var e=this[0].attributes,f;d=c.data(this[0]);for(var h=0,l=e.length;h<l;h++){f=e[h].name;if(f.indexOf("data-")===0){f=f.substr(5);ka(this[0],f,d[f])}}}return d}else if(typeof a==="object")return this.each(function(){c.data(this,
45
+ a)});var k=a.split(".");k[1]=k[1]?"."+k[1]:"";if(b===B){d=this.triggerHandler("getData"+k[1]+"!",[k[0]]);if(d===B&&this.length){d=c.data(this[0],a);d=ka(this[0],a,d)}return d===B&&k[1]?this.data(k[0]):d}else return this.each(function(){var o=c(this),x=[k[0],b];o.triggerHandler("setData"+k[1]+"!",x);c.data(this,a,b);o.triggerHandler("changeData"+k[1]+"!",x)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var e=
46
+ c.data(a,b);if(!d)return e||[];if(!e||c.isArray(d))e=c.data(a,b,c.makeArray(d));else e.push(d);return e}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),e=d.shift();if(e==="inprogress")e=d.shift();if(e){b==="fx"&&d.unshift("inprogress");e.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===B)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,
47
+ a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var sa=/[\n\t]/g,ha=/\s+/,Sa=/\r/g,Ta=/^(?:href|src|style)$/,Ua=/^(?:button|input)$/i,Va=/^(?:button|input|object|select|textarea)$/i,Wa=/^a(?:rea)?$/i,ta=/^(?:radio|checkbox)$/i;c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",
48
+ colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};c.fn.extend({attr:function(a,b){return c.access(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(x){var r=c(this);r.addClass(a.call(this,x,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ha),d=0,e=this.length;d<e;d++){var f=this[d];if(f.nodeType===
49
+ 1)if(f.className){for(var h=" "+f.className+" ",l=f.className,k=0,o=b.length;k<o;k++)if(h.indexOf(" "+b[k]+" ")<0)l+=" "+b[k];f.className=c.trim(l)}else f.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(o){var x=c(this);x.removeClass(a.call(this,o,x.attr("class")))});if(a&&typeof a==="string"||a===B)for(var b=(a||"").split(ha),d=0,e=this.length;d<e;d++){var f=this[d];if(f.nodeType===1&&f.className)if(a){for(var h=(" "+f.className+" ").replace(sa," "),
50
+ l=0,k=b.length;l<k;l++)h=h.replace(" "+b[l]+" "," ");f.className=c.trim(h)}else f.className=""}return this},toggleClass:function(a,b){var d=typeof a,e=typeof b==="boolean";if(c.isFunction(a))return this.each(function(f){var h=c(this);h.toggleClass(a.call(this,f,h.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var f,h=0,l=c(this),k=b,o=a.split(ha);f=o[h++];){k=e?k:!l.hasClass(f);l[k?"addClass":"removeClass"](f)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,
51
+ "__className__",this.className);this.className=this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(sa," ").indexOf(a)>-1)return true;return false},val:function(a){if(!arguments.length){var b=this[0];if(b){if(c.nodeName(b,"option")){var d=b.attributes.value;return!d||d.specified?b.value:b.text}if(c.nodeName(b,"select")){var e=b.selectedIndex;d=[];var f=b.options;b=b.type==="select-one";
52
+ if(e<0)return null;var h=b?e:0;for(e=b?e+1:f.length;h<e;h++){var l=f[h];if(l.selected&&(c.support.optDisabled?!l.disabled:l.getAttribute("disabled")===null)&&(!l.parentNode.disabled||!c.nodeName(l.parentNode,"optgroup"))){a=c(l).val();if(b)return a;d.push(a)}}return d}if(ta.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Sa,"")}return B}var k=c.isFunction(a);return this.each(function(o){var x=c(this),r=a;if(this.nodeType===1){if(k)r=
53
+ a.call(this,o,x.val());if(r==null)r="";else if(typeof r==="number")r+="";else if(c.isArray(r))r=c.map(r,function(C){return C==null?"":C+""});if(c.isArray(r)&&ta.test(this.type))this.checked=c.inArray(x.val(),r)>=0;else if(c.nodeName(this,"select")){var A=c.makeArray(r);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),A)>=0});if(!A.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},
54
+ attr:function(a,b,d,e){if(!a||a.nodeType===3||a.nodeType===8)return B;if(e&&b in c.attrFn)return c(a)[b](d);e=a.nodeType!==1||!c.isXMLDoc(a);var f=d!==B;b=e&&c.props[b]||b;var h=Ta.test(b);if((b in a||a[b]!==B)&&e&&!h){if(f){b==="type"&&Ua.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");if(d===null)a.nodeType===1&&a.removeAttribute(b);else a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&
55
+ b.specified?b.value:Va.test(a.nodeName)||Wa.test(a.nodeName)&&a.href?0:B;return a[b]}if(!c.support.style&&e&&b==="style"){if(f)a.style.cssText=""+d;return a.style.cssText}f&&a.setAttribute(b,""+d);if(!a.attributes[b]&&a.hasAttribute&&!a.hasAttribute(b))return B;a=!c.support.hrefNormalized&&e&&h?a.getAttribute(b,2):a.getAttribute(b);return a===null?B:a}});var X=/\.(.*)$/,ia=/^(?:textarea|input|select)$/i,La=/\./g,Ma=/ /g,Xa=/[^\w\s.|`]/g,Ya=function(a){return a.replace(Xa,"\\$&")},ua={focusin:0,focusout:0};
56
+ c.event={add:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(c.isWindow(a)&&a!==E&&!a.frameElement)a=E;if(d===false)d=U;else if(!d)return;var f,h;if(d.handler){f=d;d=f.handler}if(!d.guid)d.guid=c.guid++;if(h=c.data(a)){var l=a.nodeType?"events":"__events__",k=h[l],o=h.handle;if(typeof k==="function"){o=k.handle;k=k.events}else if(!k){a.nodeType||(h[l]=h=function(){});h.events=k={}}if(!o)h.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,
57
+ arguments):B};o.elem=a;b=b.split(" ");for(var x=0,r;l=b[x++];){h=f?c.extend({},f):{handler:d,data:e};if(l.indexOf(".")>-1){r=l.split(".");l=r.shift();h.namespace=r.slice(0).sort().join(".")}else{r=[];h.namespace=""}h.type=l;if(!h.guid)h.guid=d.guid;var A=k[l],C=c.event.special[l]||{};if(!A){A=k[l]=[];if(!C.setup||C.setup.call(a,e,r,o)===false)if(a.addEventListener)a.addEventListener(l,o,false);else a.attachEvent&&a.attachEvent("on"+l,o)}if(C.add){C.add.call(a,h);if(!h.handler.guid)h.handler.guid=
58
+ d.guid}A.push(h);c.event.global[l]=true}a=null}}},global:{},remove:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(d===false)d=U;var f,h,l=0,k,o,x,r,A,C,J=a.nodeType?"events":"__events__",w=c.data(a),I=w&&w[J];if(w&&I){if(typeof I==="function"){w=I;I=I.events}if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(f in I)c.event.remove(a,f+b)}else{for(b=b.split(" ");f=b[l++];){r=f;k=f.indexOf(".")<0;o=[];if(!k){o=f.split(".");f=o.shift();x=RegExp("(^|\\.)"+
59
+ c.map(o.slice(0).sort(),Ya).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(A=I[f])if(d){r=c.event.special[f]||{};for(h=e||0;h<A.length;h++){C=A[h];if(d.guid===C.guid){if(k||x.test(C.namespace)){e==null&&A.splice(h--,1);r.remove&&r.remove.call(a,C)}if(e!=null)break}}if(A.length===0||e!=null&&A.length===1){if(!r.teardown||r.teardown.call(a,o)===false)c.removeEvent(a,f,w.handle);delete I[f]}}else for(h=0;h<A.length;h++){C=A[h];if(k||x.test(C.namespace)){c.event.remove(a,r,C.handler,h);A.splice(h--,1)}}}if(c.isEmptyObject(I)){if(b=
60
+ w.handle)b.elem=null;delete w.events;delete w.handle;if(typeof w==="function")c.removeData(a,J);else c.isEmptyObject(w)&&c.removeData(a)}}}}},trigger:function(a,b,d,e){var f=a.type||a;if(!e){a=typeof a==="object"?a[c.expando]?a:c.extend(c.Event(f),a):c.Event(f);if(f.indexOf("!")>=0){a.type=f=f.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[f]&&c.each(c.cache,function(){this.events&&this.events[f]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===
61
+ 8)return B;a.result=B;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(e=d.nodeType?c.data(d,"handle"):(c.data(d,"__events__")||{}).handle)&&e.apply(d,b);e=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+f]&&d["on"+f].apply(d,b)===false){a.result=false;a.preventDefault()}}catch(h){}if(!a.isPropagationStopped()&&e)c.event.trigger(a,b,e,true);else if(!a.isDefaultPrevented()){var l;e=a.target;var k=f.replace(X,""),o=c.nodeName(e,"a")&&k===
62
+ "click",x=c.event.special[k]||{};if((!x._default||x._default.call(d,a)===false)&&!o&&!(e&&e.nodeName&&c.noData[e.nodeName.toLowerCase()])){try{if(e[k]){if(l=e["on"+k])e["on"+k]=null;c.event.triggered=true;e[k]()}}catch(r){}if(l)e["on"+k]=l;c.event.triggered=false}}},handle:function(a){var b,d,e,f;d=[];var h=c.makeArray(arguments);a=h[0]=c.event.fix(a||E.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){e=a.type.split(".");a.type=e.shift();d=e.slice(0).sort();e=RegExp("(^|\\.)"+
63
+ d.join("\\.(?:.*\\.)?")+"(\\.|$)")}a.namespace=a.namespace||d.join(".");f=c.data(this,this.nodeType?"events":"__events__");if(typeof f==="function")f=f.events;d=(f||{})[a.type];if(f&&d){d=d.slice(0);f=0;for(var l=d.length;f<l;f++){var k=d[f];if(b||e.test(k.namespace)){a.handler=k.handler;a.data=k.data;a.handleObj=k;k=k.handler.apply(this,h);if(k!==B){a.result=k;if(k===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
64
+ fix:function(a){if(a[c.expando])return a;var b=a;a=c.Event(b);for(var d=this.props.length,e;d;){e=this.props[--d];a[e]=b[e]}if(!a.target)a.target=a.srcElement||t;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=t.documentElement;d=t.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
65
+ d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(a.which==null&&(a.charCode!=null||a.keyCode!=null))a.which=a.charCode!=null?a.charCode:a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==B)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,Y(a.origType,a.selector),c.extend({},a,{handler:Ka,guid:a.handler.guid}))},remove:function(a){c.event.remove(this,
66
+ Y(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,d){if(c.isWindow(this))this.onbeforeunload=d},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};c.removeEvent=t.removeEventListener?function(a,b,d){a.removeEventListener&&a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent&&a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp=
67
+ c.now();this[c.expando]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=ca;var a=this.originalEvent;if(a)if(a.preventDefault)a.preventDefault();else a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=ca;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ca;this.stopPropagation()},isDefaultPrevented:U,isPropagationStopped:U,isImmediatePropagationStopped:U};
68
+ var va=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(d){}},wa=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?wa:va,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?wa:va)}}});if(!c.support.submitBubbles)c.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!==
69
+ "form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length){a.liveFired=B;return la("submit",this,arguments)}});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13){a.liveFired=B;return la("submit",this,arguments)}})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};if(!c.support.changeBubbles){var V,
70
+ xa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(e){return e.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},Z=function(a,b){var d=a.target,e,f;if(!(!ia.test(d.nodeName)||d.readOnly)){e=c.data(d,"_change_data");f=xa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",f);if(!(e===B||f===e))if(e!=null||f){a.type="change";a.liveFired=
71
+ B;return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:Z,beforedeactivate:Z,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return Z.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return Z.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,"_change_data",xa(a))}},setup:function(){if(this.type===
72
+ "file")return false;for(var a in V)c.event.add(this,a+".specialChange",V[a]);return ia.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return ia.test(this.nodeName)}};V=c.event.special.change.filters;V.focus=V.beforeactivate}t.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(e){e=c.event.fix(e);e.type=b;return c.event.trigger(e,null,e.target)}c.event.special[b]={setup:function(){ua[b]++===0&&t.addEventListener(a,d,true)},teardown:function(){--ua[b]===
73
+ 0&&t.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,e,f){if(typeof d==="object"){for(var h in d)this[b](h,e,d[h],f);return this}if(c.isFunction(e)||e===false){f=e;e=B}var l=b==="one"?c.proxy(f,function(o){c(this).unbind(o,l);return f.apply(this,arguments)}):f;if(d==="unload"&&b!=="one")this.one(d,e,f);else{h=0;for(var k=this.length;h<k;h++)c.event.add(this[h],d,l,e)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault)for(var d in a)this.unbind(d,
74
+ a[d]);else{d=0;for(var e=this.length;d<e;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,e){return this.live(b,d,e,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){var d=c.Event(a);d.preventDefault();d.stopPropagation();c.event.trigger(d,b,this[0]);return d.result}},toggle:function(a){for(var b=arguments,d=
75
+ 1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(e){var f=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,f+1);e.preventDefault();return b[f].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var ya={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,e,f,h){var l,k=0,o,x,r=h||this.selector;h=h?this:c(this.context);if(typeof d===
76
+ "object"&&!d.preventDefault){for(l in d)h[b](l,e,d[l],r);return this}if(c.isFunction(e)){f=e;e=B}for(d=(d||"").split(" ");(l=d[k++])!=null;){o=X.exec(l);x="";if(o){x=o[0];l=l.replace(X,"")}if(l==="hover")d.push("mouseenter"+x,"mouseleave"+x);else{o=l;if(l==="focus"||l==="blur"){d.push(ya[l]+x);l+=x}else l=(ya[l]||l)+x;if(b==="live"){x=0;for(var A=h.length;x<A;x++)c.event.add(h[x],"live."+Y(l,r),{data:e,selector:r,handler:f,origType:l,origHandler:f,preType:o})}else h.unbind("live."+Y(l,r),f)}}return this}});
77
+ c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){c.fn[b]=function(d,e){if(e==null){e=d;d=null}return arguments.length>0?this.bind(b,d,e):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});E.attachEvent&&!E.addEventListener&&c(E).bind("unload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});
78
+ (function(){function a(g,i,n,m,p,q){p=0;for(var u=m.length;p<u;p++){var y=m[p];if(y){var F=false;for(y=y[g];y;){if(y.sizcache===n){F=m[y.sizset];break}if(y.nodeType===1&&!q){y.sizcache=n;y.sizset=p}if(y.nodeName.toLowerCase()===i){F=y;break}y=y[g]}m[p]=F}}}function b(g,i,n,m,p,q){p=0;for(var u=m.length;p<u;p++){var y=m[p];if(y){var F=false;for(y=y[g];y;){if(y.sizcache===n){F=m[y.sizset];break}if(y.nodeType===1){if(!q){y.sizcache=n;y.sizset=p}if(typeof i!=="string"){if(y===i){F=true;break}}else if(k.filter(i,
79
+ [y]).length>0){F=y;break}}y=y[g]}m[p]=F}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,h=false,l=true;[0,0].sort(function(){l=false;return 0});var k=function(g,i,n,m){n=n||[];var p=i=i||t;if(i.nodeType!==1&&i.nodeType!==9)return[];if(!g||typeof g!=="string")return n;var q,u,y,F,M,N=true,O=k.isXML(i),D=[],R=g;do{d.exec("");if(q=d.exec(R)){R=q[3];D.push(q[1]);if(q[2]){F=q[3];
80
+ break}}}while(q);if(D.length>1&&x.exec(g))if(D.length===2&&o.relative[D[0]])u=L(D[0]+D[1],i);else for(u=o.relative[D[0]]?[i]:k(D.shift(),i);D.length;){g=D.shift();if(o.relative[g])g+=D.shift();u=L(g,u)}else{if(!m&&D.length>1&&i.nodeType===9&&!O&&o.match.ID.test(D[0])&&!o.match.ID.test(D[D.length-1])){q=k.find(D.shift(),i,O);i=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]}if(i){q=m?{expr:D.pop(),set:C(m)}:k.find(D.pop(),D.length===1&&(D[0]==="~"||D[0]==="+")&&i.parentNode?i.parentNode:i,O);u=q.expr?k.filter(q.expr,
81
+ q.set):q.set;if(D.length>0)y=C(u);else N=false;for(;D.length;){q=M=D.pop();if(o.relative[M])q=D.pop();else M="";if(q==null)q=i;o.relative[M](y,q,O)}}else y=[]}y||(y=u);y||k.error(M||g);if(f.call(y)==="[object Array]")if(N)if(i&&i.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&k.contains(i,y[g])))n.push(u[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&n.push(u[g]);else n.push.apply(n,y);else C(y,n);if(F){k(F,p,n,m);k.uniqueSort(n)}return n};k.uniqueSort=function(g){if(w){h=
82
+ l;g.sort(w);if(h)for(var i=1;i<g.length;i++)g[i]===g[i-1]&&g.splice(i--,1)}return g};k.matches=function(g,i){return k(g,null,null,i)};k.matchesSelector=function(g,i){return k(i,null,null,[g]).length>0};k.find=function(g,i,n){var m;if(!g)return[];for(var p=0,q=o.order.length;p<q;p++){var u,y=o.order[p];if(u=o.leftMatch[y].exec(g)){var F=u[1];u.splice(1,1);if(F.substr(F.length-1)!=="\\"){u[1]=(u[1]||"").replace(/\\/g,"");m=o.find[y](u,i,n);if(m!=null){g=g.replace(o.match[y],"");break}}}}m||(m=i.getElementsByTagName("*"));
83
+ return{set:m,expr:g}};k.filter=function(g,i,n,m){for(var p,q,u=g,y=[],F=i,M=i&&i[0]&&k.isXML(i[0]);g&&i.length;){for(var N in o.filter)if((p=o.leftMatch[N].exec(g))!=null&&p[2]){var O,D,R=o.filter[N];D=p[1];q=false;p.splice(1,1);if(D.substr(D.length-1)!=="\\"){if(F===y)y=[];if(o.preFilter[N])if(p=o.preFilter[N](p,F,n,y,m,M)){if(p===true)continue}else q=O=true;if(p)for(var j=0;(D=F[j])!=null;j++)if(D){O=R(D,p,j,F);var s=m^!!O;if(n&&O!=null)if(s)q=true;else F[j]=false;else if(s){y.push(D);q=true}}if(O!==
84
+ B){n||(F=y);g=g.replace(o.match[N],"");if(!q)return[];break}}}if(g===u)if(q==null)k.error(g);else break;u=g}return F};k.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var o=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+\-]*)\))?/,
85
+ POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(g){return g.getAttribute("href")}},relative:{"+":function(g,i){var n=typeof i==="string",m=n&&!/\W/.test(i);n=n&&!m;if(m)i=i.toLowerCase();m=0;for(var p=g.length,q;m<p;m++)if(q=g[m]){for(;(q=q.previousSibling)&&q.nodeType!==1;);g[m]=n||q&&q.nodeName.toLowerCase()===
86
+ i?q||false:q===i}n&&k.filter(i,g,true)},">":function(g,i){var n,m=typeof i==="string",p=0,q=g.length;if(m&&!/\W/.test(i))for(i=i.toLowerCase();p<q;p++){if(n=g[p]){n=n.parentNode;g[p]=n.nodeName.toLowerCase()===i?n:false}}else{for(;p<q;p++)if(n=g[p])g[p]=m?n.parentNode:n.parentNode===i;m&&k.filter(i,g,true)}},"":function(g,i,n){var m,p=e++,q=b;if(typeof i==="string"&&!/\W/.test(i)){m=i=i.toLowerCase();q=a}q("parentNode",i,p,g,m,n)},"~":function(g,i,n){var m,p=e++,q=b;if(typeof i==="string"&&!/\W/.test(i)){m=
87
+ i=i.toLowerCase();q=a}q("previousSibling",i,p,g,m,n)}},find:{ID:function(g,i,n){if(typeof i.getElementById!=="undefined"&&!n)return(g=i.getElementById(g[1]))&&g.parentNode?[g]:[]},NAME:function(g,i){if(typeof i.getElementsByName!=="undefined"){for(var n=[],m=i.getElementsByName(g[1]),p=0,q=m.length;p<q;p++)m[p].getAttribute("name")===g[1]&&n.push(m[p]);return n.length===0?null:n}},TAG:function(g,i){return i.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,i,n,m,p,q){g=" "+g[1].replace(/\\/g,
88
+ "")+" ";if(q)return g;q=0;for(var u;(u=i[q])!=null;q++)if(u)if(p^(u.className&&(" "+u.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0))n||m.push(u);else if(n)i[q]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},CHILD:function(g){if(g[1]==="nth"){var i=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=i[1]+(i[2]||1)-0;g[3]=i[3]-0}g[0]=e++;return g},ATTR:function(g,i,n,
89
+ m,p,q){i=g[1].replace(/\\/g,"");if(!q&&o.attrMap[i])g[1]=o.attrMap[i];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,i,n,m,p){if(g[1]==="not")if((d.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,i);else{g=k.filter(g[3],i,n,true^p);n||m.push.apply(m,g);return false}else if(o.match.POS.test(g[0])||o.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===
90
+ true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,i,n){return!!k(n[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===
91
+ g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,i){return i===0},last:function(g,i,n,m){return i===m.length-1},even:function(g,i){return i%2===0},odd:function(g,i){return i%2===1},lt:function(g,i,n){return i<n[3]-0},gt:function(g,i,n){return i>n[3]-0},nth:function(g,i,n){return n[3]-
92
+ 0===i},eq:function(g,i,n){return n[3]-0===i}},filter:{PSEUDO:function(g,i,n,m){var p=i[1],q=o.filters[p];if(q)return q(g,n,i,m);else if(p==="contains")return(g.textContent||g.innerText||k.getText([g])||"").indexOf(i[3])>=0;else if(p==="not"){i=i[3];n=0;for(m=i.length;n<m;n++)if(i[n]===g)return false;return true}else k.error("Syntax error, unrecognized expression: "+p)},CHILD:function(g,i){var n=i[1],m=g;switch(n){case "only":case "first":for(;m=m.previousSibling;)if(m.nodeType===1)return false;if(n===
93
+ "first")return true;m=g;case "last":for(;m=m.nextSibling;)if(m.nodeType===1)return false;return true;case "nth":n=i[2];var p=i[3];if(n===1&&p===0)return true;var q=i[0],u=g.parentNode;if(u&&(u.sizcache!==q||!g.nodeIndex)){var y=0;for(m=u.firstChild;m;m=m.nextSibling)if(m.nodeType===1)m.nodeIndex=++y;u.sizcache=q}m=g.nodeIndex-p;return n===0?m===0:m%n===0&&m/n>=0}},ID:function(g,i){return g.nodeType===1&&g.getAttribute("id")===i},TAG:function(g,i){return i==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===
94
+ i},CLASS:function(g,i){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(i)>-1},ATTR:function(g,i){var n=i[1];n=o.attrHandle[n]?o.attrHandle[n](g):g[n]!=null?g[n]:g.getAttribute(n);var m=n+"",p=i[2],q=i[4];return n==null?p==="!=":p==="="?m===q:p==="*="?m.indexOf(q)>=0:p==="~="?(" "+m+" ").indexOf(q)>=0:!q?m&&n!==false:p==="!="?m!==q:p==="^="?m.indexOf(q)===0:p==="$="?m.substr(m.length-q.length)===q:p==="|="?m===q||m.substr(0,q.length+1)===q+"-":false},POS:function(g,i,n,m){var p=o.setFilters[i[2]];
95
+ if(p)return p(g,n,i,m)}}},x=o.match.POS,r=function(g,i){return"\\"+(i-0+1)},A;for(A in o.match){o.match[A]=RegExp(o.match[A].source+/(?![^\[]*\])(?![^\(]*\))/.source);o.leftMatch[A]=RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[A].source.replace(/\\(\d+)/g,r))}var C=function(g,i){g=Array.prototype.slice.call(g,0);if(i){i.push.apply(i,g);return i}return g};try{Array.prototype.slice.call(t.documentElement.childNodes,0)}catch(J){C=function(g,i){var n=0,m=i||[];if(f.call(g)==="[object Array]")Array.prototype.push.apply(m,
96
+ g);else if(typeof g.length==="number")for(var p=g.length;n<p;n++)m.push(g[n]);else for(;g[n];n++)m.push(g[n]);return m}}var w,I;if(t.documentElement.compareDocumentPosition)w=function(g,i){if(g===i){h=true;return 0}if(!g.compareDocumentPosition||!i.compareDocumentPosition)return g.compareDocumentPosition?-1:1;return g.compareDocumentPosition(i)&4?-1:1};else{w=function(g,i){var n,m,p=[],q=[];n=g.parentNode;m=i.parentNode;var u=n;if(g===i){h=true;return 0}else if(n===m)return I(g,i);else if(n){if(!m)return 1}else return-1;
97
+ for(;u;){p.unshift(u);u=u.parentNode}for(u=m;u;){q.unshift(u);u=u.parentNode}n=p.length;m=q.length;for(u=0;u<n&&u<m;u++)if(p[u]!==q[u])return I(p[u],q[u]);return u===n?I(g,q[u],-1):I(p[u],i,1)};I=function(g,i,n){if(g===i)return n;for(g=g.nextSibling;g;){if(g===i)return-1;g=g.nextSibling}return 1}}k.getText=function(g){for(var i="",n,m=0;g[m];m++){n=g[m];if(n.nodeType===3||n.nodeType===4)i+=n.nodeValue;else if(n.nodeType!==8)i+=k.getText(n.childNodes)}return i};(function(){var g=t.createElement("div"),
98
+ i="script"+(new Date).getTime(),n=t.documentElement;g.innerHTML="<a name='"+i+"'/>";n.insertBefore(g,n.firstChild);if(t.getElementById(i)){o.find.ID=function(m,p,q){if(typeof p.getElementById!=="undefined"&&!q)return(p=p.getElementById(m[1]))?p.id===m[1]||typeof p.getAttributeNode!=="undefined"&&p.getAttributeNode("id").nodeValue===m[1]?[p]:B:[]};o.filter.ID=function(m,p){var q=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&q&&q.nodeValue===p}}n.removeChild(g);
99
+ n=g=null})();(function(){var g=t.createElement("div");g.appendChild(t.createComment(""));if(g.getElementsByTagName("*").length>0)o.find.TAG=function(i,n){var m=n.getElementsByTagName(i[1]);if(i[1]==="*"){for(var p=[],q=0;m[q];q++)m[q].nodeType===1&&p.push(m[q]);m=p}return m};g.innerHTML="<a href='#'></a>";if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")o.attrHandle.href=function(i){return i.getAttribute("href",2)};g=null})();t.querySelectorAll&&
100
+ function(){var g=k,i=t.createElement("div");i.innerHTML="<p class='TEST'></p>";if(!(i.querySelectorAll&&i.querySelectorAll(".TEST").length===0)){k=function(m,p,q,u){p=p||t;m=m.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!u&&!k.isXML(p))if(p.nodeType===9)try{return C(p.querySelectorAll(m),q)}catch(y){}else if(p.nodeType===1&&p.nodeName.toLowerCase()!=="object"){var F=p.getAttribute("id"),M=F||"__sizzle__";F||p.setAttribute("id",M);try{return C(p.querySelectorAll("#"+M+" "+m),q)}catch(N){}finally{F||
101
+ p.removeAttribute("id")}}return g(m,p,q,u)};for(var n in g)k[n]=g[n];i=null}}();(function(){var g=t.documentElement,i=g.matchesSelector||g.mozMatchesSelector||g.webkitMatchesSelector||g.msMatchesSelector,n=false;try{i.call(t.documentElement,"[test!='']:sizzle")}catch(m){n=true}if(i)k.matchesSelector=function(p,q){q=q.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(p))try{if(n||!o.match.PSEUDO.test(q)&&!/!=/.test(q))return i.call(p,q)}catch(u){}return k(q,null,null,[p]).length>0}})();(function(){var g=
102
+ t.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){o.order.splice(1,0,"CLASS");o.find.CLASS=function(i,n,m){if(typeof n.getElementsByClassName!=="undefined"&&!m)return n.getElementsByClassName(i[1])};g=null}}})();k.contains=t.documentElement.contains?function(g,i){return g!==i&&(g.contains?g.contains(i):true)}:t.documentElement.compareDocumentPosition?
103
+ function(g,i){return!!(g.compareDocumentPosition(i)&16)}:function(){return false};k.isXML=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false};var L=function(g,i){for(var n,m=[],p="",q=i.nodeType?[i]:i;n=o.match.PSEUDO.exec(g);){p+=n[0];g=g.replace(o.match.PSEUDO,"")}g=o.relative[g]?g+"*":g;n=0;for(var u=q.length;n<u;n++)k(g,q[n],m);return k.filter(p,m)};c.find=k;c.expr=k.selectors;c.expr[":"]=c.expr.filters;c.unique=k.uniqueSort;c.text=k.getText;c.isXMLDoc=k.isXML;
104
+ c.contains=k.contains})();var Za=/Until$/,$a=/^(?:parents|prevUntil|prevAll)/,ab=/,/,Na=/^.[^:#\[\.,]*$/,bb=Array.prototype.slice,cb=c.expr.match.POS;c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,e=0,f=this.length;e<f;e++){d=b.length;c.find(a,this[e],b);if(e>0)for(var h=d;h<b.length;h++)for(var l=0;l<d;l++)if(b[l]===b[h]){b.splice(h--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,e=b.length;d<e;d++)if(c.contains(this,b[d]))return true})},
105
+ not:function(a){return this.pushStack(ma(this,a,false),"not",a)},filter:function(a){return this.pushStack(ma(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){var d=[],e,f,h=this[0];if(c.isArray(a)){var l,k={},o=1;if(h&&a.length){e=0;for(f=a.length;e<f;e++){l=a[e];k[l]||(k[l]=c.expr.match.POS.test(l)?c(l,b||this.context):l)}for(;h&&h.ownerDocument&&h!==b;){for(l in k){e=k[l];if(e.jquery?e.index(h)>-1:c(h).is(e))d.push({selector:l,elem:h,level:o})}h=
106
+ h.parentNode;o++}}return d}l=cb.test(a)?c(a,b||this.context):null;e=0;for(f=this.length;e<f;e++)for(h=this[e];h;)if(l?l.index(h)>-1:c.find.matchesSelector(h,a)){d.push(h);break}else{h=h.parentNode;if(!h||!h.ownerDocument||h===b)break}d=d.length>1?c.unique(d):d;return this.pushStack(d,"closest",a)},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var d=typeof a==="string"?c(a,b||this.context):
107
+ c.makeArray(a),e=c.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:c.unique(e))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,
108
+ 2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,
109
+ b){c.fn[a]=function(d,e){var f=c.map(this,b,d);Za.test(a)||(e=d);if(e&&typeof e==="string")f=c.filter(e,f);f=this.length>1?c.unique(f):f;if((this.length>1||ab.test(e))&&$a.test(a))f=f.reverse();return this.pushStack(f,a,bb.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return b.length===1?c.find.matchesSelector(b[0],a)?[b[0]]:[]:c.find.matches(a,b)},dir:function(a,b,d){var e=[];for(a=a[b];a&&a.nodeType!==9&&(d===B||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&
110
+ e.push(a);a=a[b]}return e},nth:function(a,b,d){b=b||1;for(var e=0;a;a=a[d])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var za=/ jQuery\d+="(?:\d+|null)"/g,$=/^\s+/,Aa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ba=/<([\w:]+)/,db=/<tbody/i,eb=/<|&#?\w+;/,Ca=/<(?:script|object|embed|option|style)/i,Da=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=/\=([^="'>\s]+\/)>/g,P={option:[1,
111
+ "<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};P.optgroup=P.option;P.tbody=P.tfoot=P.colgroup=P.caption=P.thead;P.th=P.td;if(!c.support.htmlSerialize)P._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=
112
+ c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==B)return this.empty().append((this[0]&&this[0].ownerDocument||t).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},
113
+ wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},
114
+ prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,
115
+ this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,e;(e=this[d])!=null;d++)if(!a||c.filter(a,[e]).length){if(!b&&e.nodeType===1){c.cleanData(e.getElementsByTagName("*"));c.cleanData([e])}e.parentNode&&e.parentNode.removeChild(e)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);
116
+ return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,e=this.ownerDocument;if(!d){d=e.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(za,"").replace(fb,'="$1">').replace($,"")],e)[0]}else return this.cloneNode(true)});if(a===true){na(this,b);na(this.find("*"),b.find("*"))}return b},html:function(a){if(a===B)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(za,""):null;
117
+ else if(typeof a==="string"&&!Ca.test(a)&&(c.support.leadingWhitespace||!$.test(a))&&!P[(Ba.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Aa,"<$1></$2>");try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(e){this.empty().append(a)}}else c.isFunction(a)?this.each(function(f){var h=c(this);h.html(a.call(this,f,h.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=
118
+ c(this),e=d.html();d.replaceWith(a.call(this,b,e))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){var e,f,h,l=a[0],k=[];if(!c.support.checkClone&&arguments.length===3&&typeof l==="string"&&Da.test(l))return this.each(function(){c(this).domManip(a,
119
+ b,d,true)});if(c.isFunction(l))return this.each(function(x){var r=c(this);a[0]=l.call(this,x,b?r.html():B);r.domManip(a,b,d)});if(this[0]){e=l&&l.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:c.buildFragment(a,this,k);h=e.fragment;if(f=h.childNodes.length===1?h=h.firstChild:h.firstChild){b=b&&c.nodeName(f,"tr");f=0;for(var o=this.length;f<o;f++)d.call(b?c.nodeName(this[f],"table")?this[f].getElementsByTagName("tbody")[0]||this[f].appendChild(this[f].ownerDocument.createElement("tbody")):
120
+ this[f]:this[f],f>0||e.cacheable||this.length>1?h.cloneNode(true):h)}k.length&&c.each(k,Oa)}return this}});c.buildFragment=function(a,b,d){var e,f,h;b=b&&b[0]?b[0].ownerDocument||b[0]:t;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===t&&!Ca.test(a[0])&&(c.support.checkClone||!Da.test(a[0]))){f=true;if(h=c.fragments[a[0]])if(h!==1)e=h}if(!e){e=b.createDocumentFragment();c.clean(a,b,e,d)}if(f)c.fragments[a[0]]=h?e:1;return{fragment:e,cacheable:f}};c.fragments={};c.each({appendTo:"append",
121
+ prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var e=[];d=c(d);var f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1){d[b](this[0]);return this}else{f=0;for(var h=d.length;f<h;f++){var l=(f>0?this.clone(true):this).get();c(d[f])[b](l);e=e.concat(l)}return this.pushStack(e,a,d.selector)}}});c.extend({clean:function(a,b,d,e){b=b||t;if(typeof b.createElement==="undefined")b=b.ownerDocument||
122
+ b[0]&&b[0].ownerDocument||t;for(var f=[],h=0,l;(l=a[h])!=null;h++){if(typeof l==="number")l+="";if(l){if(typeof l==="string"&&!eb.test(l))l=b.createTextNode(l);else if(typeof l==="string"){l=l.replace(Aa,"<$1></$2>");var k=(Ba.exec(l)||["",""])[1].toLowerCase(),o=P[k]||P._default,x=o[0],r=b.createElement("div");for(r.innerHTML=o[1]+l+o[2];x--;)r=r.lastChild;if(!c.support.tbody){x=db.test(l);k=k==="table"&&!x?r.firstChild&&r.firstChild.childNodes:o[1]==="<table>"&&!x?r.childNodes:[];for(o=k.length-
123
+ 1;o>=0;--o)c.nodeName(k[o],"tbody")&&!k[o].childNodes.length&&k[o].parentNode.removeChild(k[o])}!c.support.leadingWhitespace&&$.test(l)&&r.insertBefore(b.createTextNode($.exec(l)[0]),r.firstChild);l=r.childNodes}if(l.nodeType)f.push(l);else f=c.merge(f,l)}}if(d)for(h=0;f[h];h++)if(e&&c.nodeName(f[h],"script")&&(!f[h].type||f[h].type.toLowerCase()==="text/javascript"))e.push(f[h].parentNode?f[h].parentNode.removeChild(f[h]):f[h]);else{f[h].nodeType===1&&f.splice.apply(f,[h+1,0].concat(c.makeArray(f[h].getElementsByTagName("script"))));
124
+ d.appendChild(f[h])}return f},cleanData:function(a){for(var b,d,e=c.cache,f=c.event.special,h=c.support.deleteExpando,l=0,k;(k=a[l])!=null;l++)if(!(k.nodeName&&c.noData[k.nodeName.toLowerCase()]))if(d=k[c.expando]){if((b=e[d])&&b.events)for(var o in b.events)f[o]?c.event.remove(k,o):c.removeEvent(k,o,b.handle);if(h)delete k[c.expando];else k.removeAttribute&&k.removeAttribute(c.expando);delete e[d]}}});var Ea=/alpha\([^)]*\)/i,gb=/opacity=([^)]*)/,hb=/-([a-z])/ig,ib=/([A-Z])/g,Fa=/^-?\d+(?:px)?$/i,
125
+ jb=/^-?\d/,kb={position:"absolute",visibility:"hidden",display:"block"},Pa=["Left","Right"],Qa=["Top","Bottom"],W,Ga,aa,lb=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){if(arguments.length===2&&b===B)return this;return c.access(this,a,b,true,function(d,e,f){return f!==B?c.style(d,e,f):c.css(d,e)})};c.extend({cssHooks:{opacity:{get:function(a,b){if(b){var d=W(a,"opacity","opacity");return d===""?"1":d}else return a.style.opacity}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true,
126
+ zoom:true,lineHeight:true},cssProps:{"float":c.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,d,e){if(!(!a||a.nodeType===3||a.nodeType===8||!a.style)){var f,h=c.camelCase(b),l=a.style,k=c.cssHooks[h];b=c.cssProps[h]||h;if(d!==B){if(!(typeof d==="number"&&isNaN(d)||d==null)){if(typeof d==="number"&&!c.cssNumber[h])d+="px";if(!k||!("set"in k)||(d=k.set(a,d))!==B)try{l[b]=d}catch(o){}}}else{if(k&&"get"in k&&(f=k.get(a,false,e))!==B)return f;return l[b]}}},css:function(a,b,d){var e,f=c.camelCase(b),
127
+ h=c.cssHooks[f];b=c.cssProps[f]||f;if(h&&"get"in h&&(e=h.get(a,true,d))!==B)return e;else if(W)return W(a,b,f)},swap:function(a,b,d){var e={},f;for(f in b){e[f]=a.style[f];a.style[f]=b[f]}d.call(a);for(f in b)a.style[f]=e[f]},camelCase:function(a){return a.replace(hb,lb)}});c.curCSS=c.css;c.each(["height","width"],function(a,b){c.cssHooks[b]={get:function(d,e,f){var h;if(e){if(d.offsetWidth!==0)h=oa(d,b,f);else c.swap(d,kb,function(){h=oa(d,b,f)});if(h<=0){h=W(d,b,b);if(h==="0px"&&aa)h=aa(d,b,b);
128
+ if(h!=null)return h===""||h==="auto"?"0px":h}if(h<0||h==null){h=d.style[b];return h===""||h==="auto"?"0px":h}return typeof h==="string"?h:h+"px"}},set:function(d,e){if(Fa.test(e)){e=parseFloat(e);if(e>=0)return e+"px"}else return e}}});if(!c.support.opacity)c.cssHooks.opacity={get:function(a,b){return gb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var d=a.style;d.zoom=1;var e=c.isNaN(b)?"":"alpha(opacity="+b*100+")",f=
129
+ d.filter||"";d.filter=Ea.test(f)?f.replace(Ea,e):d.filter+" "+e}};if(t.defaultView&&t.defaultView.getComputedStyle)Ga=function(a,b,d){var e;d=d.replace(ib,"-$1").toLowerCase();if(!(b=a.ownerDocument.defaultView))return B;if(b=b.getComputedStyle(a,null)){e=b.getPropertyValue(d);if(e===""&&!c.contains(a.ownerDocument.documentElement,a))e=c.style(a,d)}return e};if(t.documentElement.currentStyle)aa=function(a,b){var d,e,f=a.currentStyle&&a.currentStyle[b],h=a.style;if(!Fa.test(f)&&jb.test(f)){d=h.left;
130
+ e=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;h.left=b==="fontSize"?"1em":f||0;f=h.pixelLeft+"px";h.left=d;a.runtimeStyle.left=e}return f===""?"auto":f};W=Ga||aa;if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!c.support.reliableHiddenOffsets&&(a.style.display||c.css(a,"display"))==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var mb=c.now(),nb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
131
+ ob=/^(?:select|textarea)/i,pb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,qb=/^(?:GET|HEAD)$/,Ra=/\[\]$/,T=/\=\?(&|$)/,ja=/\?/,rb=/([?&])_=[^&]*/,sb=/^(\w+:)?\/\/([^\/?#]+)/,tb=/%20/g,ub=/#.*$/,Ha=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!=="string"&&Ha)return Ha.apply(this,arguments);else if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var f=a.slice(e,a.length);a=a.slice(0,e)}e="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b===
132
+ "object"){b=c.param(b,c.ajaxSettings.traditional);e="POST"}var h=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(l,k){if(k==="success"||k==="notmodified")h.html(f?c("<div>").append(l.responseText.replace(nb,"")).find(f):l.responseText);d&&h.each(d,[l.responseText,k,l])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&
133
+ !this.disabled&&(this.checked||ob.test(this.nodeName)||pb.test(this.type))}).map(function(a,b){var d=c(this).val();return d==null?null:c.isArray(d)?c.map(d,function(e){return{name:b.name,value:e}}):{name:b.name,value:d}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:e})},
134
+ getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:e})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new E.XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html",
135
+ script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},ajax:function(a){var b=c.extend(true,{},c.ajaxSettings,a),d,e,f,h=b.type.toUpperCase(),l=qb.test(h);b.url=b.url.replace(ub,"");b.context=a&&a.context!=null?a.context:b;if(b.data&&b.processData&&typeof b.data!=="string")b.data=c.param(b.data,b.traditional);if(b.dataType==="jsonp"){if(h==="GET")T.test(b.url)||(b.url+=(ja.test(b.url)?"&":"?")+(b.jsonp||"callback")+"=?");else if(!b.data||
136
+ !T.test(b.data))b.data=(b.data?b.data+"&":"")+(b.jsonp||"callback")+"=?";b.dataType="json"}if(b.dataType==="json"&&(b.data&&T.test(b.data)||T.test(b.url))){d=b.jsonpCallback||"jsonp"+mb++;if(b.data)b.data=(b.data+"").replace(T,"="+d+"$1");b.url=b.url.replace(T,"="+d+"$1");b.dataType="script";var k=E[d];E[d]=function(m){if(c.isFunction(k))k(m);else{E[d]=B;try{delete E[d]}catch(p){}}f=m;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);r&&r.removeChild(A)}}if(b.dataType==="script"&&b.cache===null)b.cache=
137
+ false;if(b.cache===false&&l){var o=c.now(),x=b.url.replace(rb,"$1_="+o);b.url=x+(x===b.url?(ja.test(b.url)?"&":"?")+"_="+o:"")}if(b.data&&l)b.url+=(ja.test(b.url)?"&":"?")+b.data;b.global&&c.active++===0&&c.event.trigger("ajaxStart");o=(o=sb.exec(b.url))&&(o[1]&&o[1].toLowerCase()!==location.protocol||o[2].toLowerCase()!==location.host);if(b.dataType==="script"&&h==="GET"&&o){var r=t.getElementsByTagName("head")[0]||t.documentElement,A=t.createElement("script");if(b.scriptCharset)A.charset=b.scriptCharset;
138
+ A.src=b.url;if(!d){var C=false;A.onload=A.onreadystatechange=function(){if(!C&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){C=true;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);A.onload=A.onreadystatechange=null;r&&A.parentNode&&r.removeChild(A)}}}r.insertBefore(A,r.firstChild);return B}var J=false,w=b.xhr();if(w){b.username?w.open(h,b.url,b.async,b.username,b.password):w.open(h,b.url,b.async);try{if(b.data!=null&&!l||a&&a.contentType)w.setRequestHeader("Content-Type",
139
+ b.contentType);if(b.ifModified){c.lastModified[b.url]&&w.setRequestHeader("If-Modified-Since",c.lastModified[b.url]);c.etag[b.url]&&w.setRequestHeader("If-None-Match",c.etag[b.url])}o||w.setRequestHeader("X-Requested-With","XMLHttpRequest");w.setRequestHeader("Accept",b.dataType&&b.accepts[b.dataType]?b.accepts[b.dataType]+", */*; q=0.01":b.accepts._default)}catch(I){}if(b.beforeSend&&b.beforeSend.call(b.context,w,b)===false){b.global&&c.active--===1&&c.event.trigger("ajaxStop");w.abort();return false}b.global&&
140
+ c.triggerGlobal(b,"ajaxSend",[w,b]);var L=w.onreadystatechange=function(m){if(!w||w.readyState===0||m==="abort"){J||c.handleComplete(b,w,e,f);J=true;if(w)w.onreadystatechange=c.noop}else if(!J&&w&&(w.readyState===4||m==="timeout")){J=true;w.onreadystatechange=c.noop;e=m==="timeout"?"timeout":!c.httpSuccess(w)?"error":b.ifModified&&c.httpNotModified(w,b.url)?"notmodified":"success";var p;if(e==="success")try{f=c.httpData(w,b.dataType,b)}catch(q){e="parsererror";p=q}if(e==="success"||e==="notmodified")d||
141
+ c.handleSuccess(b,w,e,f);else c.handleError(b,w,e,p);d||c.handleComplete(b,w,e,f);m==="timeout"&&w.abort();if(b.async)w=null}};try{var g=w.abort;w.abort=function(){w&&Function.prototype.call.call(g,w);L("abort")}}catch(i){}b.async&&b.timeout>0&&setTimeout(function(){w&&!J&&L("timeout")},b.timeout);try{w.send(l||b.data==null?null:b.data)}catch(n){c.handleError(b,w,null,n);c.handleComplete(b,w,e,f)}b.async||L();return w}},param:function(a,b){var d=[],e=function(h,l){l=c.isFunction(l)?l():l;d[d.length]=
142
+ encodeURIComponent(h)+"="+encodeURIComponent(l)};if(b===B)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery)c.each(a,function(){e(this.name,this.value)});else for(var f in a)da(f,a[f],b,e);return d.join("&").replace(tb,"+")}});c.extend({active:0,lastModified:{},etag:{},handleError:function(a,b,d,e){a.error&&a.error.call(a.context,b,d,e);a.global&&c.triggerGlobal(a,"ajaxError",[b,a,e])},handleSuccess:function(a,b,d,e){a.success&&a.success.call(a.context,e,d,b);a.global&&c.triggerGlobal(a,"ajaxSuccess",
143
+ [b,a])},handleComplete:function(a,b,d){a.complete&&a.complete.call(a.context,b,d);a.global&&c.triggerGlobal(a,"ajaxComplete",[b,a]);a.global&&c.active--===1&&c.event.trigger("ajaxStop")},triggerGlobal:function(a,b,d){(a.context&&a.context.url==null?c(a.context):c.event).trigger(b,d)},httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),
144
+ e=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(e)c.etag[b]=e;return a.status===304},httpData:function(a,b,d){var e=a.getResponseHeader("content-type")||"",f=b==="xml"||!b&&e.indexOf("xml")>=0;a=f?a.responseXML:a.responseText;f&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b==="json"||!b&&e.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&e.indexOf("javascript")>=0)c.globalEval(a);return a}});
145
+ if(E.ActiveXObject)c.ajaxSettings.xhr=function(){if(E.location.protocol!=="file:")try{return new E.XMLHttpRequest}catch(a){}try{return new E.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}};c.support.ajax=!!c.ajaxSettings.xhr();var ea={},vb=/^(?:toggle|show|hide)$/,wb=/^([+\-]=)?([\d+.\-]+)(.*)$/,ba,pa=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b,d){if(a||a===0)return this.animate(S("show",
146
+ 3),a,b,d);else{d=0;for(var e=this.length;d<e;d++){a=this[d];b=a.style.display;if(!c.data(a,"olddisplay")&&b==="none")b=a.style.display="";b===""&&c.css(a,"display")==="none"&&c.data(a,"olddisplay",qa(a.nodeName))}for(d=0;d<e;d++){a=this[d];b=a.style.display;if(b===""||b==="none")a.style.display=c.data(a,"olddisplay")||""}return this}},hide:function(a,b,d){if(a||a===0)return this.animate(S("hide",3),a,b,d);else{a=0;for(b=this.length;a<b;a++){d=c.css(this[a],"display");d!=="none"&&c.data(this[a],"olddisplay",
147
+ d)}for(a=0;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b,d){var e=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||e?this.each(function(){var f=e?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(S("toggle",3),a,b,d);return this},fadeTo:function(a,b,d,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d,e)},animate:function(a,b,d,e){var f=c.speed(b,
148
+ d,e);if(c.isEmptyObject(a))return this.each(f.complete);return this[f.queue===false?"each":"queue"](function(){var h=c.extend({},f),l,k=this.nodeType===1,o=k&&c(this).is(":hidden"),x=this;for(l in a){var r=c.camelCase(l);if(l!==r){a[r]=a[l];delete a[l];l=r}if(a[l]==="hide"&&o||a[l]==="show"&&!o)return h.complete.call(this);if(k&&(l==="height"||l==="width")){h.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(c.css(this,"display")==="inline"&&c.css(this,"float")==="none")if(c.support.inlineBlockNeedsLayout)if(qa(this.nodeName)===
149
+ "inline")this.style.display="inline-block";else{this.style.display="inline";this.style.zoom=1}else this.style.display="inline-block"}if(c.isArray(a[l])){(h.specialEasing=h.specialEasing||{})[l]=a[l][1];a[l]=a[l][0]}}if(h.overflow!=null)this.style.overflow="hidden";h.curAnim=c.extend({},a);c.each(a,function(A,C){var J=new c.fx(x,h,A);if(vb.test(C))J[C==="toggle"?o?"show":"hide":C](a);else{var w=wb.exec(C),I=J.cur()||0;if(w){var L=parseFloat(w[2]),g=w[3]||"px";if(g!=="px"){c.style(x,A,(L||1)+g);I=(L||
150
+ 1)/J.cur()*I;c.style(x,A,I+g)}if(w[1])L=(w[1]==="-="?-1:1)*L+I;J.custom(I,L,g)}else J.custom(I,C,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);this.each(function(){for(var e=d.length-1;e>=0;e--)if(d[e].elem===this){b&&d[e](true);d.splice(e,1)}});b||this.dequeue();return this}});c.each({slideDown:S("show",1),slideUp:S("hide",1),slideToggle:S("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){c.fn[a]=function(d,e,f){return this.animate(b,
151
+ d,e,f)}});c.extend({speed:function(a,b,d){var e=a&&typeof a==="object"?c.extend({},a):{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};e.duration=c.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in c.fx.speeds?c.fx.speeds[e.duration]:c.fx.speeds._default;e.old=e.complete;e.complete=function(){e.queue!==false&&c(this).dequeue();c.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,d,e){return d+e*a},swing:function(a,b,d,e){return(-Math.cos(a*
152
+ Math.PI)/2+0.5)*e+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a=parseFloat(c.css(this.elem,this.prop));return a&&a>-1E4?a:0},custom:function(a,b,d){function e(l){return f.step(l)}
153
+ var f=this,h=c.fx;this.startTime=c.now();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;e.elem=this.elem;if(e()&&c.timers.push(e)&&!ba)ba=setInterval(h.tick,h.interval)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;
154
+ this.custom(this.cur(),0)},step:function(a){var b=c.now(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var e in this.options.curAnim)if(this.options.curAnim[e]!==true)d=false;if(d){if(this.options.overflow!=null&&!c.support.shrinkWrapBlocks){var f=this.elem,h=this.options;c.each(["","X","Y"],function(k,o){f.style["overflow"+o]=h.overflow[k]})}this.options.hide&&c(this.elem).hide();if(this.options.hide||
155
+ this.options.show)for(var l in this.options.curAnim)c.style(this.elem,l,this.options.orig[l]);this.options.complete.call(this.elem)}return false}else{a=b-this.startTime;this.state=a/this.options.duration;b=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||b](this.state,a,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=
156
+ c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||c.fx.stop()},interval:13,stop:function(){clearInterval(ba);ba=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===
157
+ b.elem}).length};var xb=/^t(?:able|d|h)$/i,Ia=/^(?:body|html)$/i;c.fn.offset="getBoundingClientRect"in t.documentElement?function(a){var b=this[0],d;if(a)return this.each(function(l){c.offset.setOffset(this,a,l)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);try{d=b.getBoundingClientRect()}catch(e){}var f=b.ownerDocument,h=f.documentElement;if(!d||!c.contains(h,b))return d||{top:0,left:0};b=f.body;f=fa(f);return{top:d.top+(f.pageYOffset||c.support.boxModel&&
158
+ h.scrollTop||b.scrollTop)-(h.clientTop||b.clientTop||0),left:d.left+(f.pageXOffset||c.support.boxModel&&h.scrollLeft||b.scrollLeft)-(h.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(x){c.offset.setOffset(this,a,x)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d,e=b.offsetParent,f=b.ownerDocument,h=f.documentElement,l=f.body;d=(f=f.defaultView)?f.getComputedStyle(b,null):b.currentStyle;
159
+ for(var k=b.offsetTop,o=b.offsetLeft;(b=b.parentNode)&&b!==l&&b!==h;){if(c.offset.supportsFixedPosition&&d.position==="fixed")break;d=f?f.getComputedStyle(b,null):b.currentStyle;k-=b.scrollTop;o-=b.scrollLeft;if(b===e){k+=b.offsetTop;o+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&xb.test(b.nodeName))){k+=parseFloat(d.borderTopWidth)||0;o+=parseFloat(d.borderLeftWidth)||0}e=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"){k+=
160
+ parseFloat(d.borderTopWidth)||0;o+=parseFloat(d.borderLeftWidth)||0}d=d}if(d.position==="relative"||d.position==="static"){k+=l.offsetTop;o+=l.offsetLeft}if(c.offset.supportsFixedPosition&&d.position==="fixed"){k+=Math.max(h.scrollTop,l.scrollTop);o+=Math.max(h.scrollLeft,l.scrollLeft)}return{top:k,left:o}};c.offset={initialize:function(){var a=t.body,b=t.createElement("div"),d,e,f,h=parseFloat(c.css(a,"marginTop"))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",
161
+ height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(b,a.firstChild);d=b.firstChild;e=d.firstChild;f=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=e.offsetTop!==5;this.doesAddBorderForTableAndCells=
162
+ f.offsetTop===5;e.style.position="fixed";e.style.top="20px";this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15;e.style.position=e.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==h;a.removeChild(b);c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.css(a,
163
+ "marginTop"))||0;d+=parseFloat(c.css(a,"marginLeft"))||0}return{top:b,left:d}},setOffset:function(a,b,d){var e=c.css(a,"position");if(e==="static")a.style.position="relative";var f=c(a),h=f.offset(),l=c.css(a,"top"),k=c.css(a,"left"),o=e==="absolute"&&c.inArray("auto",[l,k])>-1;e={};var x={};if(o)x=f.position();l=o?x.top:parseInt(l,10)||0;k=o?x.left:parseInt(k,10)||0;if(c.isFunction(b))b=b.call(a,d,h);if(b.top!=null)e.top=b.top-h.top+l;if(b.left!=null)e.left=b.left-h.left+k;"using"in b?b.using.call(a,
164
+ e):f.css(e)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=Ia.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.css(a,"marginTop"))||0;d.left-=parseFloat(c.css(a,"marginLeft"))||0;e.top+=parseFloat(c.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(c.css(b[0],"borderLeftWidth"))||0;return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||t.body;a&&!Ia.test(a.nodeName)&&
165
+ c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(e){var f=this[0],h;if(!f)return null;if(e!==B)return this.each(function(){if(h=fa(this))h.scrollTo(!a?e:c(h).scrollLeft(),a?e:c(h).scrollTop());else this[d]=e});else return(h=fa(f))?"pageXOffset"in h?h[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&h.document.documentElement[d]||h.document.body[d]:f[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();
166
+ c.fn["inner"+b]=function(){return this[0]?parseFloat(c.css(this[0],d,"padding")):null};c.fn["outer"+b]=function(e){return this[0]?parseFloat(c.css(this[0],d,e?"margin":"border")):null};c.fn[d]=function(e){var f=this[0];if(!f)return e==null?null:this;if(c.isFunction(e))return this.each(function(l){var k=c(this);k[d](e.call(this,l,k[d]()))});if(c.isWindow(f))return f.document.compatMode==="CSS1Compat"&&f.document.documentElement["client"+b]||f.document.body["client"+b];else if(f.nodeType===9)return Math.max(f.documentElement["client"+
167
+ b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documentElement["offset"+b]);else if(e===B){f=c.css(f,d);var h=parseFloat(f);return c.isNaN(h)?f:h}else return this.css(d,typeof e==="string"?e:e+"px")}})})(window);
js/jquery.ui.touch-punch.min.js CHANGED
@@ -1,11 +1,11 @@
1
- /*
2
- * jQuery UI Touch Punch 0.2.2
3
- *
4
- * Copyright 2011, Dave Furfero
5
- * Dual licensed under the MIT or GPL Version 2 licenses.
6
- *
7
- * Depends:
8
- * jquery.ui.widget.js
9
- * jquery.ui.mouse.js
10
- */
11
  (function(b){b.support.touch="ontouchend" in document;if(!b.support.touch){return;}var c=b.ui.mouse.prototype,e=c._mouseInit,a;function d(g,h){if(g.originalEvent.touches.length>1){return;}g.preventDefault();var i=g.originalEvent.changedTouches[0],f=document.createEvent("MouseEvents");f.initMouseEvent(h,true,true,window,1,i.screenX,i.screenY,i.clientX,i.clientY,false,false,false,false,0,null);g.target.dispatchEvent(f);}c._touchStart=function(g){var f=this;if(a||!f._mouseCapture(g.originalEvent.changedTouches[0])){return;}a=true;f._touchMoved=false;d(g,"mouseover");d(g,"mousemove");d(g,"mousedown");};c._touchMove=function(f){if(!a){return;}this._touchMoved=true;d(f,"mousemove");};c._touchEnd=function(f){if(!a){return;}d(f,"mouseup");d(f,"mouseout");if(!this._touchMoved){d(f,"click");}a=false;};c._mouseInit=function(){var f=this;f.element.bind("touchstart",b.proxy(f,"_touchStart")).bind("touchmove",b.proxy(f,"_touchMove")).bind("touchend",b.proxy(f,"_touchEnd"));e.call(f);};})(jQuery);
1
+ /*
2
+ * jQuery UI Touch Punch 0.2.2
3
+ *
4
+ * Copyright 2011, Dave Furfero
5
+ * Dual licensed under the MIT or GPL Version 2 licenses.
6
+ *
7
+ * Depends:
8
+ * jquery.ui.widget.js
9
+ * jquery.ui.mouse.js
10
+ */
11
  (function(b){b.support.touch="ontouchend" in document;if(!b.support.touch){return;}var c=b.ui.mouse.prototype,e=c._mouseInit,a;function d(g,h){if(g.originalEvent.touches.length>1){return;}g.preventDefault();var i=g.originalEvent.changedTouches[0],f=document.createEvent("MouseEvents");f.initMouseEvent(h,true,true,window,1,i.screenX,i.screenY,i.clientX,i.clientY,false,false,false,false,0,null);g.target.dispatchEvent(f);}c._touchStart=function(g){var f=this;if(a||!f._mouseCapture(g.originalEvent.changedTouches[0])){return;}a=true;f._touchMoved=false;d(g,"mouseover");d(g,"mousemove");d(g,"mousedown");};c._touchMove=function(f){if(!a){return;}this._touchMoved=true;d(f,"mousemove");};c._touchEnd=function(f){if(!a){return;}d(f,"mouseup");d(f,"mouseout");if(!this._touchMoved){d(f,"click");}a=false;};c._mouseInit=function(){var f=this;f.element.bind("touchstart",b.proxy(f,"_touchStart")).bind("touchmove",b.proxy(f,"_touchMove")).bind("touchend",b.proxy(f,"_touchEnd"));e.call(f);};})(jQuery);
js/mp3-jplayer-1.8.10.js CHANGED
@@ -1,807 +1,807 @@
1
- /*
2
- MP3-jPlayer 1.8.10
3
- www.sjward.org
4
- */
5
-
6
- var MP3_JPLAYER = {
7
-
8
- tID: '',
9
- state: '',
10
- pl_info: [],
11
- load_pc: 0,
12
- played_t: 0,
13
- dl_dialogs: [],
14
- timeoutIDs: [],
15
- intervalIDs: [],
16
- jperrorIDs: [],
17
- dl_domain: '',
18
- jp_audio: {},
19
- jp_seekable: 0,
20
- sliding: false,
21
- launched_ID: null,
22
- jpID: '#mp3_jplayer_1_8',
23
- plugin_path: '',
24
- lastformats: '',
25
- was_playing: false,
26
-
27
- vars: {
28
- play_f: false,
29
- stylesheet_url: '',
30
- dload_text: 'DOWNLOAD MP3',
31
- pp_width: 280,
32
- pp_maxheight: 350,
33
- pp_bodycolour: '#fff',
34
- pp_bodyimg: '',
35
- pp_fixedcss: false,
36
- pp_windowheight: 600,
37
- pp_playerheight: 100+142,
38
- force_dload: false,
39
- message_interval: '<h2>Download MP3</h2><p style="margin-top:34px !important;">Your download should start in a second!</p>',
40
- message_ok: '',
41
- message_indark: '<h2>Download MP3</h2><p>Your download should start in a second!</p>',
42
- message_promtlink: '<h2>Download MP3</h2><p>Link to the file:</p><h3><a target="_blank" href="#1">#2</a></h3><p>Depending on your browser settings, you may need to right click the link to save it.</p>',
43
- message_fail: '<h2>Download Failed</h2><p>Sorry, something went wrong!</p>',
44
- message_timeout: '<h2>Download<br />Unavailable</h2><p>please try again later!</p>',
45
- dl_remote_path: ''
46
- },
47
-
48
- eID: {
49
- play: '#playpause_mp3j_',
50
- playW: '#playpause_wrap_mp3j_',
51
- stp: '#stop_mp3j_',
52
- prev: '#Prev_mp3j_',
53
- next: '#Next_mp3j_',
54
- vol: '#vol_mp3j_',
55
- loader: '#load_mp3j_',
56
- pos: '#posbar_mp3j_',
57
- poscol: '#poscol_mp3j_',
58
- title: '#T_mp3j_',
59
- caption: '#C_mp3j_',
60
- pT: '#P-Time-MI_',
61
- tT: '#T-Time-MI_',
62
- dload: '#download_mp3j_',
63
- plwrap: '#L_mp3j_',
64
- ul: '#UL_mp3j_',
65
- a: 'mp3j_A_', //No hash!
66
- indiM: '#statusMI_',
67
- toglist: '#playlist-toggle_',
68
- lPP: '#lpp_mp3j_',
69
- pplink: '#mp3j_popout_',
70
- img: '#MI_image_'
71
- },
72
-
73
- init: function () {
74
- var plpath, that = this;
75
-
76
- plpath = this.plugin_path.split('/');
77
- this.dl_domain = plpath[2].replace(/^www./i, "");
78
-
79
- this.unwrap();
80
- this.write_controls();
81
- this.add_jpconstruct_div();
82
-
83
- jQuery(this.jpID).jPlayer({
84
- ready: function () {
85
- that.startup();
86
- },
87
- swfPath: that.plugin_path + '/js/Jplayer271.swf',
88
- volume: 1,
89
- supplied: "mp3",
90
- wmode: "window",
91
- solution:"html, flash",
92
- preload: "none"
93
- });
94
- jQuery(this.jpID).bind(jQuery.jPlayer.event.ended, function(event) {
95
- that.E_complete(that.tID);
96
- });
97
- jQuery(this.jpID).bind(jQuery.jPlayer.event.timeupdate, function(event) {
98
- var lp = that.get_loaded(event);
99
- var ppA = event.jPlayer.status.currentPercentAbsolute;
100
- var pt = event.jPlayer.status.currentTime;
101
- var tt = event.jPlayer.status.duration;
102
- that.E_update(that.tID, lp, ppA, pt, tt);
103
- });
104
- jQuery(this.jpID).bind(jQuery.jPlayer.event.ready, function(event) {
105
- if(event.jPlayer.html.used && event.jPlayer.html.audio.available) {
106
- that.jp_audio = jQuery(that.jpID).data("jPlayer").htmlElement.audio;
107
- } else {
108
- that.jp_audio = 'flash';
109
- }
110
- });
111
- jQuery(this.jpID).bind(jQuery.jPlayer.event.progress, function(event) {
112
- var lp = that.get_loaded(event);
113
- var pt = event.jPlayer.status.currentTime;
114
- var tt = event.jPlayer.status.duration;
115
- that.E_loading( that.tID, lp, tt, pt );
116
- });
117
- },
118
-
119
-
120
- ////
121
- ////
122
- check_show_jperrors: function ( event ) {
123
- if ( this.tID !== '' && this.jperrorIDs[ this.tID ] !== true ) {
124
- if ( event.jPlayer.error.type === 'e_no_solution' || event.jPlayer.error.type === 'e_no_support' ) {
125
- this.show_nosolution( this.tID );
126
- this.jperrorIDs[ this.tID ] = true;
127
- }
128
- }
129
- },
130
-
131
- show_nosolution: function ( j ) {
132
- jQuery('#mp3j_nosolution_' + j).empty().append(this.vars.message_nosolution).fadeIn(200);
133
- },
134
-
135
- add_jpconstruct_div: function () {
136
- var html = '<div id="mp3_jplayer_items" style="position:relative; overflow:hidden; margin:0; padding:0; border:0; width:0px; height:0px;"><div id="mp3_jplayer_1_8" style="left:-999em;"></div></div>';
137
- jQuery('body').prepend( html );
138
- },
139
-
140
- ////
141
- ////
142
-
143
-
144
-
145
- get_loaded: function (event) {
146
- var lp;
147
- if ( typeof this.jp_audio.buffered === "object" ) {
148
- if( this.jp_audio.buffered.length > 0 && this.jp_audio.duration > 0 ) {
149
- lp = 100 * this.jp_audio.buffered.end(this.jp_audio.buffered.length-1) / this.jp_audio.duration;
150
- } else {
151
- lp = 0;
152
- }
153
- } else {
154
- lp = event.jPlayer.status.seekPercent;
155
- }
156
- this.jp_seekable = event.jPlayer.status.seekPercent; //use this for slider calcs for both html/flash solution
157
- this.load_pc = lp;
158
- return lp;
159
- },
160
-
161
- Tformat: function ( sec ) {
162
- var t = sec,
163
- s = Math.floor((t)%60),
164
- m = Math.floor((t/60)%60),
165
- h = Math.floor(t/3600);
166
- return ((h > 0) ? h+':' : '') + ((m > 9) ? m : '0'+m) + ':' + ((s > 9) ? s : '0'+s);
167
- },
168
-
169
- E_loading: function ( j, lp, tt, pt ) {
170
- if (j !== '') {
171
- jQuery(this.eID.loader + j).css( "width", lp + '%' );
172
- if (this.pl_info[j].type === 'MI') {
173
- if (tt > 0 && this.played_t > 0) {
174
- jQuery(this.eID.tT + j).text(this.Tformat(tt));
175
- }
176
- }
177
- if ( this.jp_audio !== 'flash' && lp < 100 ) {
178
- if ( pt === this.played_t && this.state === 'playing' && pt > 0 && !this.sliding ) {
179
- if (this.pl_info[j].type === 'MI') {
180
- jQuery(this.eID.indiM + j).empty().append('<span class="mp3-finding"></span><span class="mp3-tint"></span>Buffering');
181
- }
182
- if (this.pl_info[j].type === 'single' ) {
183
- jQuery(this.eID.indiM + j).empty().append('<span class="Smp3-finding"></span><span class="mp3-gtint"></span> ' + this.Tformat(pt));
184
- }
185
- }
186
- this.played_t = pt;
187
- }
188
- }
189
- },
190
-
191
- E_update: function (j, lp, ppA, pt, tt) {
192
- if (j !== '') {
193
- jQuery(this.eID.loader + j).css( "width", lp + '%' );
194
- jQuery(this.eID.poscol + j).css( "width", ppA + '%' );
195
- if ( jQuery(this.eID.pos + j + ' div.ui-widget-header').length > 0 ) {
196
- jQuery(this.eID.pos + j).slider('option', 'value', 10*ppA);
197
- }
198
- if (pt > 0) {
199
- jQuery(this.eID.pos + j).css( 'visibility', 'visible' );
200
- }
201
- if (this.pl_info[j].type === 'MI') {
202
- jQuery(this.eID.pT + j).text(this.Tformat(pt));
203
- }
204
- if ('playing' === this.state) {
205
- if ('MI' === this.pl_info[j].type) {
206
- if (tt > 0 && this.played_t === pt && lp < 100 && !this.sliding ) {
207
- jQuery(this.eID.indiM + j).empty().append('<span class="mp3-finding"></span><span class="mp3-tint"></span>Buffering');
208
- jQuery(this.eID.tT + j).text(this.Tformat(tt));
209
- } else if (pt > 0) {
210
- jQuery(this.eID.indiM + j).empty().append('Playing');
211
- jQuery(this.eID.tT + j).text(this.Tformat(tt));
212
- }
213
- }
214
- if ('single' === this.pl_info[j].type){
215
- if (pt > 0 ) {
216
- if (this.played_t === pt && lp < 100 && !this.sliding ) {
217
- jQuery(this.eID.indiM + j).empty().append('<span class="Smp3-finding"></span><span class="mp3-gtint"></span> ' + this.Tformat(pt));
218
- } else {
219
- jQuery(this.eID.indiM + j).empty().append('<span class="mp3-tint tintmarg"></span> ' + this.Tformat(pt));
220
- }
221
- }
222
- }
223
- }
224
- this.played_t = pt;
225
- }
226
- },
227
-
228
- E_complete: function (j) {
229
- var p = this.pl_info[j];
230
- if ('MI' === p.type) {
231
- if (p.loop || p.tr+1 < p.list.length) {
232
- this.E_change_track(j, 'next');
233
- } else {
234
- this.E_dblstop(j);
235
- this.startup();
236
- }
237
- }
238
- if ('single' === p.type) {
239
- if (p.loop) {
240
- this.E_change_track(j, 'next');
241
- } else {
242
- this.E_stop(j);
243
- this.startup();
244
- }
245
- }
246
- },
247
-
248
- write_controls: function () {
249
- var j;
250
- for (j = 0; j < this.pl_info.length; j += 1) {
251
- this.setup_a_player(j);
252
- }
253
- },
254
-
255
- startup: function () {
256
- var j;
257
- for (j = 0; j < this.pl_info.length; j += 1) {
258
- //if (this.pl_info[j].autoplay) {
259
- if ( this.pl_info[j].autoplay && (this.pl_info[j].type === 'single' || this.pl_info[j].type === 'MI') ) {
260
- this.pl_info[j].autoplay = false;
261
- this.E_change_track(j, this.pl_info[j].tr);
262
- return;
263
- }
264
- }
265
- },
266
-
267
- setup_a_player: function (j) {
268
- var i, li, sel, that = this, p = this.pl_info[j];
269
-
270
- //PLAYLISTERS and SINGLES
271
- if ('MI' === p.type || 'single' === p.type) {
272
-
273
- jQuery(this.eID.vol + j).slider({
274
- value : p.vol,
275
- max: 100,
276
- range: 'min',
277
- animate: false,
278
- slide: function (event, ui) {
279
- p.vol = ui.value;
280
- if (j === that.tID) {
281
- jQuery(that.jpID).jPlayer("volume", ui.value/100);
282
- }
283
- }
284
- });
285
-
286
- jQuery(this.eID.pos + j).mouseup(function (e) { //for posbar
287
- that.sliding = false;
288
- });
289
-
290
- sel = ('MI' === p.type) ? this.eID.play : this.eID.playW;
291
- jQuery(sel + j).click(function () { //play-pause click
292
- that.E_change_track(j, p.tr);
293
- jQuery(this).blur();
294
- });
295
- jQuery(sel + j).dblclick(function () { //play-pause dbl click
296
- if (that.state !== "playing") {
297
- that.E_change_track(j, p.tr);
298
- }
299
- jQuery(this).blur();
300
- });
301
-
302
- this.titles(j, p.tr);
303
- }
304
-
305
- //PLAYLISTERS
306
- if ('MI' === p.type) {
307
- jQuery(this.eID.pT + j).text('00:00');
308
- jQuery(this.eID.indiM + j).text('Ready');
309
- jQuery(this.eID.stp + j).click(function () {
310
- that.E_stop(j);
311
- });
312
- jQuery(this.eID.stp + j).dblclick(function () {
313
- that.E_dblstop(j);
314
- });
315
-
316
- jQuery(this.eID.plwrap + j).hide();
317
- if (p.list.length > 1) {
318
- jQuery(this.eID.next + j).click(function () {
319
- that.E_change_track(j, 'next');
320
- });
321
- jQuery(this.eID.prev + j).click(function () {
322
- that.E_change_track(j, 'prev');
323
- });
324
- jQuery(this.eID.ul + j).empty();
325
- for (i = 0; i < p.list.length; i += 1) {
326
- li = '<li>';
327
- li += '<a href="#" id="' + this.eID.a + j + '_' + i + '">' + p.list[i].name + '</a></li>';
328
- jQuery(this.eID.ul + j).append(li);
329
- this.add_ul_click(j, i);
330
- }
331
- jQuery('#' + this.eID.a + j + '_' + p.tr).addClass('mp3j_A_current');
332
- jQuery(this.eID.toglist + j).click(function () {
333
- that.togglelist(j);
334
- });
335
- if (p.lstate === true) {
336
- jQuery(this.eID.plwrap + j).show();
337
- }
338
- }
339
-
340
- this.writedownload(j, p.tr);
341
- if ( this.vars.force_dload === true ) {
342
- this.dl_closeinfo_click(j);
343
- }
344
-
345
- jQuery(this.eID.lPP + j).click(function () {
346
- return that.E_launchPP(j);
347
- });
348
- }
349
-
350
- //POPOUT LINKS
351
- if ('popout' === p.type) {
352
- jQuery(this.eID.pplink + j).click(function () {
353
- return that.E_launchPP(j);
354
- });
355
- }
356
- },
357
-
358
- add_ul_click: function (j, i) { //playlist item click
359
- var that = this;
360
- jQuery('#' + this.eID.a + j + "_" + i).click(function (e) {
361
- that.E_change_track(j, i);
362
- e.preventDefault();
363
- });
364
- },
365
-
366
- unwrap: function () {
367
- var i, j, arr;
368
- if (this.vars.play_f === true && typeof this.lists !== "undefined" && this.lists.length > 0) {
369
- for (i = 0; i < this.lists.length; i += 1) {
370
- arr = this.lists[i];
371
- for (j = 0; j < arr.length; j += 1) {
372
- arr[j].mp3 = this.f_undo.f_con(arr[j].mp3);
373
- }
374
- }
375
- }
376
- },
377
-
378
- f_undo: {
379
- keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
380
- f_con : function (input) {
381
- var output = "", i = 0, chr1, chr2, chr3, enc1, enc2, enc3, enc4;
382
- input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
383
- while (i < input.length) {
384
- enc1 = this.keyStr.indexOf(input.charAt(i++)); enc2 = this.keyStr.indexOf(input.charAt(i++));
385
- enc3 = this.keyStr.indexOf(input.charAt(i++)); enc4 = this.keyStr.indexOf(input.charAt(i++));
386
- chr1 = (enc1 << 2) | (enc2 >> 4); chr2 = ((enc2 & 15) << 4) | (enc3 >> 2); chr3 = ((enc3 & 3) << 6) | enc4;
387
- output = output + String.fromCharCode(chr1);
388
- if (enc3 !== 64) { output = output + String.fromCharCode(chr2); }
389
- if (enc4 !== 64) { output = output + String.fromCharCode(chr3); }
390
- }
391
- output = this.utf8_f_con(output);
392
- return output;
393
- },
394
- utf8_f_con : function (utftext) {
395
- var string = "", i = 0, c, c1, c2, c3;
396
- while (i < utftext.length) {
397
- c = utftext.charCodeAt(i);
398
- if (c < 128) {
399
- string += String.fromCharCode(c); i++;
400
- } else if ((c > 191) && (c < 224)) {
401
- c2 = utftext.charCodeAt(i + 1); string += String.fromCharCode(((c & 31) << 6) | (c2 & 63)); i += 2;
402
- } else {
403
- c2 = utftext.charCodeAt(i + 1); c3 = utftext.charCodeAt(i + 2); string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)); i += 3;
404
- }
405
- }
406
- return string;
407
- }
408
- },
409
-
410
-
411
- E_stop: function (j) {
412
- if (j === this.tID && j !== '') {
413
- this.clearit();
414
- if ( jQuery(this.eID.pos + j + ' div.ui-widget-header').length > 0 ) {
415
- jQuery(this.eID.pos + j).slider('destroy');
416
- }
417
- jQuery(this.eID.loader + j).css( "width", '0%' );
418
- this.button(j, 'play');
419
- if (this.pl_info[j].type === 'MI') {
420
- jQuery(this.eID.poscol + j).css( "width", '0%' );
421
- jQuery(this.eID.tT + j).empty();
422
- jQuery(this.eID.indiM + j).text('Stopped');
423
- jQuery(this.eID.pT + j).text(this.Tformat(0));
424
- } else {
425
- jQuery(this.eID.indiM + j).empty();
426
- }
427
- this.load_pc = 0;
428
- this.played_t = 0;
429
- }
430
- },
431
-
432
- E_dblstop: function (j) {
433
- this.listclass(j, this.pl_info[j].tr, 0);
434
- if ( this.pl_info[j].tr !== 0 ) {
435
- this.titles(j, 0);
436
- }
437
- this.writedownload(j, 0);
438
- this.E_stop(j);
439
- jQuery(this.eID.indiM + j).text('Ready');
440
- this.pl_info[j].tr = 0;
441
- },
442
-
443
- E_change_track: function (j, change) {
444
- var track, txt, p = this.pl_info[j];
445
- if (j === this.tID && change === p.tr) {
446
- if ('playing' === this.state) {
447
- if (this.load_pc === 0) {
448
- this.E_stop(j);
449
- } else {
450
- this.pauseit();
451
- this.button(j, 'play');
452
- if ('MI' === p.type) {
453
- jQuery(this.eID.indiM + j).text('Paused');
454
- }
455
- }
456
- return;
457
- } else if ('paused' === this.state || 'set' === this.state) {
458
- this.playit();
459
- this.button(j, 'pause');
460
- return;
461
- }
462
- }
463
- this.E_stop(this.tID);
464
- if ('prev' === change) {
465
- track = (p.tr-1 < 0) ? p.list.length-1 : p.tr-1;
466
- } else if ('next' === change) {
467
- track = (p.tr+1 < p.list.length) ? p.tr+1 : 0;
468
- } else {
469
- track = change;
470
- }
471
- jQuery(this.jpID).jPlayer("volume", 1 ); //Vol scaling fix
472
- this.setit(p.list[track].mp3);
473
- this.playit();
474
- jQuery(this.jpID).jPlayer("volume", p.vol/100 ); //Reset to correct vol
475
- txt = ('MI' === p.type) ? '<span class="mp3-finding"></span><span class="mp3-tint"></span>Connecting' : '<span class="Smp3-finding"></span><span class="mp3-gtint"></span>';
476
- jQuery(this.eID.indiM + j).empty().append(txt);
477
- this.button(j, 'pause');
478
- this.makeslider(j);
479
- if ('MI' === p.type) {
480
- this.listclass(j, p.tr, track);
481
- if ( p.tr !== track ) {
482
- this.titles(j, track);
483
- }
484
- if (p.download) {
485
- this.writedownload(j, track);
486
- jQuery(this.eID.dload + j).hide().addClass('whilelinks').fadeIn(400);
487
- }
488
- }
489
- p.tr = track;
490
- this.tID = j;
491
- },
492
-
493
- E_launchPP: function (j) {
494
- var li_height = 28;
495
- if ( this.pl_info[j].height !== false ) {
496
- this.vars.pp_playerheight = 100 + this.pl_info[j].height;
497
- }
498
- this.vars.pp_windowheight = ( this.pl_info[j].list.length > 1 ) ? this.vars.pp_playerheight + ( this.pl_info[j].list.length * li_height) : this.vars.pp_playerheight;
499
- if ( this.vars.pp_windowheight > this.vars.pp_maxheight ) {
500
- this.vars.pp_windowheight = this.vars.pp_maxheight;
501
- }
502
- this.launched_ID = j;
503
- this.was_playing = ( this.state === "playing" ) ? true : false;
504
-
505
- this.E_stop(this.tID);
506
- this.setit(this.plugin_path + '/mp3/silence.mp3');
507
- this.playit(); //make chrome let go of last track (incase it didn't finish loading)
508
- this.clearit();
509
-
510
- var newwindow = window.open(this.plugin_path + '/popout.php', 'mp3jpopout', 'height=300, width=600, location=1, status=1, scrollbars=1, resizable=1, left=25, top=25');
511
- if ( this.pl_info[j].lstate === true ) {
512
- newwindow.resizeTo( this.vars.pp_width, this.vars.pp_windowheight );
513
- } else {
514
- newwindow.resizeTo( this.vars.pp_width, this.vars.pp_playerheight );
515
- }
516
- if (window.focus) {
517
- newwindow.focus();
518
- }
519
- return false;
520
- },
521
-
522
- setit: function (file) {
523
- this.state = 'set';
524
- jQuery(this.jpID).jPlayer("setMedia", {mp3: file});
525
- },
526
- playit: function () {
527
- this.state = 'playing';
528
- jQuery(this.jpID).jPlayer("play");
529
- },
530
- pauseit: function () {
531
- this.state = 'paused';
532
- jQuery(this.jpID).jPlayer("pause");
533
- },
534
- clearit: function () {
535
- this.state = '';
536
- jQuery(this.jpID).jPlayer("clearMedia");
537
- },
538
-
539
- button: function (j, type) {
540
- if (j === '') { return; }
541
- if ('pause' === type) {
542
- if (this.pl_info[j].play_txt === '#USE_G#') {
543
- jQuery(this.eID.play + j).removeClass('buttons_mp3j').addClass('buttons_mp3jpause');
544
- } else {
545
- jQuery(this.eID.play + j).text(this.pl_info[j].pause_txt);
546
- }
547
- }
548
- if ('play' === type) {
549
- if (this.pl_info[j].play_txt === '#USE_G#') {
550
- jQuery(this.eID.play + j).removeClass('buttons_mp3jpause').addClass('buttons_mp3j');
551
- } else {
552
- jQuery(this.eID.play + j).text(this.pl_info[j].play_txt);
553
- }
554
- }
555
- },
556
-
557
- listclass: function ( j, rem, add ) {
558
- jQuery('#'+ this.eID.a + j +'_'+ rem).removeClass('mp3j_A_current');
559
- jQuery('#'+ this.eID.a + j +'_'+ add).addClass('mp3j_A_current');
560
- },
561
-
562
- titles: function ( j, track ) {
563
- var p = this.pl_info[j], Olink = '', Clink = '';
564
- if (p.type === "MI") {
565
- jQuery(this.eID.title + j).empty().append(p.list[track].name).append('<br /><span>' + p.list[track].artist + '</span>');
566
- if (p.list[track].image !== '') {
567
- if (p.list[track].imgurl !== '') {
568
- Olink = '<a href="' + p.list[track].imgurl + '">';
569
- Clink = '</a>';
570
- }
571
- jQuery(this.eID.img + j).empty().hide().append(Olink + '<img src="' + p.list[track].image + '" />' + Clink).fadeIn(300);
572
- }
573
- }
574
- },
575
-
576
- writedownload: function ( j, track ) {
577
- var p = this.pl_info[j];
578
- if (p.download) {
579
- jQuery(this.eID.dload + j).empty().removeClass('whilelinks').append('<a id="mp3j_dlanchor_' + j + '" href="' + p.list[track].mp3 + '" target="_blank">' + this.vars.dload_text + '</a>');
580
- if ( this.vars.force_dload === true ) {
581
- this.dl_button_click( j );
582
- }
583
- }
584
- },
585
-
586
- togglelist: function ( j ) {
587
- if (this.pl_info[j].lstate === true) {
588
- jQuery(this.eID.plwrap + j).fadeOut(300);
589
- jQuery(this.eID.toglist + j).text('SHOW');
590
- this.pl_info[j].lstate = false;
591
- } else if (this.pl_info[j].lstate === false) {
592
- jQuery(this.eID.plwrap + j).fadeIn("slow");
593
- jQuery(this.eID.toglist + j).text('HIDE');
594
- this.pl_info[j].lstate = true;
595
- }
596
- },
597
-
598
- makeslider: function (j) {
599
- var phmove, cssmove, that = this;
600
- jQuery(this.eID.pos + j).css( 'visibility', 'hidden' );
601
- jQuery(this.eID.pos + j).slider({
602
- max: 1000,
603
- range: 'min',
604
- animate: false,
605
- slide: function (event, ui) {
606
- if ((ui.value/10) < that.load_pc) {
607
- cssmove = ui.value/10;
608
- phmove = ui.value*(10.0/that.jp_seekable);
609
- } else {
610
- cssmove = 0.99*that.load_pc;
611
- phmove = (9.9*that.load_pc)*(10.0/that.jp_seekable);
612
- }
613
- jQuery(that.eID.poscol + j).css('width', cssmove + '%');
614
- jQuery(that.jpID).jPlayer("playHead", phmove );
615
- if (that.state === 'paused') {
616
- that.button(j, 'pause');
617
- that.playit();
618
- }
619
- that.state = 'playing';
620
- that.sliding = true;
621
- }
622
- });
623
- }
624
-
625
- };
626
-
627
- // Force browser download
628
- MP3_JPLAYER.dl_button_click = function ( j ) {
629
- var that = this, p = this.pl_info[j];
630
- jQuery('#mp3j_dlanchor_' + j).click(function (e) {
631
- that.dl_runinfo( p.list[p.tr].mp3, j, e );
632
- e.preventDefault();
633
- });
634
- };
635
-
636
- MP3_JPLAYER.dl_closeinfo_click = function ( j ) {
637
- var that = this;
638
- jQuery('#mp3j_finfo_close_' + j).click(function () {
639
- that.dl_dialogue( j, '', 'close');
640
- that.clear_timers( j );
641
- });
642
- };
643
-
644
- MP3_JPLAYER.dl_runinfo = function ( get, j, e ) {
645
- var can_write,
646
- dlpath,
647
- message,
648
- that = this,
649
- dlframe = false,
650
- p = this.pl_info[j],
651
- is_local = this.is_local_dload( get );
652
-
653
- var enc_get;
654
-
655
- if ( !this.intervalIDs[ j ] && !this.timeoutIDs[ j ] ) { //if timers not already running for this player
656
- can_write = this.write_cookie('mp3Download' + j, 'waiting', '');
657
- if ( is_local ) {
658
- if ( can_write !== false ) {
659
- this.dl_dialogue( j, this.vars.message_interval, 'check');
660
- } else {
661
- this.dl_dialogue( j, this.vars.message_indark, 'indark');
662
- }
663
- this.intervalIDs[ j ] = setInterval( function(){ that.dl_interval_check( j, can_write ); }, 500);
664
- this.timeoutIDs[ j ] = setTimeout( function(){ that.dl_timeout( j, can_write ); }, 7000);
665
- dlframe = true;
666
- } else {
667
- if ( this.vars.dl_remote_path === '' ) {
668
- message = this.vars.message_promtlink.replace('#1', get);
669
- message = message.replace('#2', p.list[p.tr].name);
670
- this.dl_dialogue( j, message, 'indark');
671
- } else {
672
- message = this.vars.message_indark.replace('#1', get);
673
- message = message.replace('#2', p.list[p.tr].name);
674
- this.dl_dialogue( j, message, 'indark');
675
- dlframe = true;
676
- }
677
- }
678
- this.dl_dialogs[ j ] = 'false';
679
- if ( dlframe ) {
680
- dlpath = this.get_dloader_path( get );
681
- enc_get = encodeURIComponent( get );
682
- //jQuery('#mp3j_dlf_' + j).empty().append('<iframe id="mp3j_dlframe_' + j + '" name="mp3j_dlframe_' + j + '" class="mp3j-dlframe" src="' + dlpath + '?mp3=loc' + get + '&pID=' + j + '" style="display:none;"></iframe>');
683
- jQuery('#mp3j_dlf_' + j).empty().append('<iframe id="mp3j_dlframe_' + j + '" name="mp3j_dlframe_' + j + '" class="mp3j-dlframe" src="' + dlpath + '?mp3=loc' + enc_get + '&pID=' + j + '" style="display:none;"></iframe>');
684
- }
685
- }
686
- };
687
-
688
- MP3_JPLAYER.dl_interval_check = function ( j, can_write ) {
689
- if ( can_write !== false && this.read_cookie('mp3Download' + j) === 'true' ) { //got cookie back, all should be good
690
- this.dl_dialogue( j, this.vars.message_ok, 'hide');
691
- //jQuery('#debug').append('<br />check: cookie '+j+' true');
692
- this.clear_timers( j );
693
- } else if ( this.dl_dialogs[ j ] !== 'false' ) { //got a message back
694
- this.dl_dialogue( j, this.dl_dialogs[ j ], 'add');
695
- //jQuery('#debug').append('<br />check: dialog'+j+' true');
696
- this.clear_timers( j );
697
- } //else {
698
- //jQuery('#debug').append('<br />check: neither '+j+'...# ');
699
- //}
700
- };
701
-
702
- MP3_JPLAYER.dl_timeout = function ( j, can_write ) {
703
- this.clear_timers( j );
704
- if ( can_write !== false ) {
705
- this.dl_dialogue( j, this.vars.message_timeout, 'add');
706
- }
707
- //jQuery('#debug').append('<br />no responses ('+j+' timed out) ');
708
- };
709
-
710
- MP3_JPLAYER.clear_timers = function ( j ) {
711
- if ( this.intervalIDs[ j ] !== null && this.timeoutIDs[ j ] !== null ) {
712
- clearInterval( this.intervalIDs[j] );
713
- clearTimeout( this.timeoutIDs[j] );
714
- this.intervalIDs[ j ] = null;
715
- this.timeoutIDs[j] = null;
716
- }
717
- jQuery('#mp3j_dlf_' + j).empty(); //ditch iframe
718
- this.write_cookie('mp3Download' + j, '', -1); //clear any cookie
719
- //jQuery('#debug').append('<br />cookie/frame '+j+' cleared');
720
- };
721
-
722
- MP3_JPLAYER.dl_dialogue = function ( j, text, state ) {
723
- if ( 'check' === state ) {
724
- jQuery('#mp3j_finfo_gif_' + j).show();
725
- jQuery('#mp3j_finfo_txt_' + j).empty().append(text).show();
726
- jQuery('#mp3j_finfo_' + j).show();
727
- } else if ( 'add' === state ) {
728
- jQuery('#mp3j_finfo_gif_' + j).hide();
729
- jQuery('#mp3j_finfo_txt_' + j).empty().append(text).show();
730
- } else if ( 'indark' === state ) {
731
- jQuery('#mp3j_finfo_gif_' + j).hide();
732
- jQuery('#mp3j_finfo_txt_' + j).empty().append(text).show();
733
- jQuery('#mp3j_finfo_' + j).fadeIn(100);
734
- } else if ( 'close' === state ) {
735
- jQuery('#mp3j_finfo_gif_' + j).hide();
736
- jQuery('#mp3j_finfo_' + j).hide();
737
- } else {
738
- jQuery('#mp3j_finfo_gif_' + j).hide();
739
- if ( text !== '' ) {
740
- jQuery('#mp3j_finfo_txt_' + j).empty().append(text).show();
741
- }
742
- jQuery('#mp3j_finfo_' + j).fadeOut(1000);
743
- }
744
- };
745
-
746
- MP3_JPLAYER.read_cookie = function ( name ) {
747
- var i, cookie, allCookies = document.cookie.split('; ');
748
- if ( allCookies.length > 0 ) {
749
- for ( i = 0; i < allCookies.length; i += 1 ) {
750
- cookie = allCookies[i].split( '=' );
751
- if ( cookie[0] === name ) {
752
- return cookie[1];
753
- }
754
- }
755
- }
756
- return false;
757
- };
758
-
759
- MP3_JPLAYER.write_cookie = function ( name, value, days ) {
760
- var date, expires = "";
761
- if ( days ) {
762
- date = new Date();
763
- date.setTime( date.getTime() + (days*24*60*60*1000) );
764
- expires = "; expires=" + date.toGMTString();
765
- }
766
- document.cookie = name + "=" + value + expires + "; path=/";
767
- return this.read_cookie( name );
768
- };
769
-
770
- MP3_JPLAYER.get_dloader_path = function ( loc ) {
771
- var k, path = "", file = "", chunks;
772
- chunks = loc.split('/');
773
- file = chunks[chunks.length-1];
774
- //jQuery('#debug').append('<br />');
775
- //for ( k = 0; k < chunks.length; k += 1 ) {
776
- // jQuery('#debug').append('<br />[' + k + '] ' + chunks[k]);
777
- //}
778
- //jQuery('#debug').append('<br />file:' + file);
779
- if ( loc.charAt(0) === '/' ) {
780
- path = this.plugin_path + '/download.php';
781
- } else {
782
- path = chunks[2].replace(/^www./i, "");
783
- if ( path === this.dl_domain ) {
784
- path = this.plugin_path + '/download.php';
785
- } else {
786
- path = chunks[0] + '//' + chunks[2] + this.vars.dl_remote_path;
787
- }
788
- }
789
- //jQuery('#debug').append('<br />path:' + path);
790
- return path;
791
- };
792
-
793
- MP3_JPLAYER.is_local_dload = function ( loc ) {
794
- var domain = "", file = "", chunks, is_local = false;
795
- chunks = loc.split('/');
796
- file = chunks[chunks.length-1];
797
- if ( loc.charAt(0) === '/' ) {
798
- is_local = true;
799
- } else {
800
- domain = chunks[2].replace(/^www./i, "");
801
- if ( domain === this.dl_domain ) {
802
- is_local = true;
803
- }
804
- }
805
- return is_local;
806
- };
807
-
1
+ /*
2
+ MP3-jPlayer 1.8.10
3
+ www.sjward.org
4
+ */
5
+
6
+ var MP3_JPLAYER = {
7
+
8
+ tID: '',
9
+ state: '',
10
+ pl_info: [],
11
+ load_pc: 0,
12
+ played_t: 0,
13
+ dl_dialogs: [],
14
+ timeoutIDs: [],
15
+ intervalIDs: [],
16
+ jperrorIDs: [],
17
+ dl_domain: '',
18
+ jp_audio: {},
19
+ jp_seekable: 0,
20
+ sliding: false,
21
+ launched_ID: null,
22
+ jpID: '#mp3_jplayer_1_8',
23
+ plugin_path: '',
24
+ lastformats: '',
25
+ was_playing: false,
26
+
27
+ vars: {
28
+ play_f: false,
29
+ stylesheet_url: '',
30
+ dload_text: 'DOWNLOAD MP3',
31
+ pp_width: 280,
32
+ pp_maxheight: 350,
33
+ pp_bodycolour: '#fff',
34
+ pp_bodyimg: '',
35
+ pp_fixedcss: false,
36
+ pp_windowheight: 600,
37
+ pp_playerheight: 100+142,
38
+ force_dload: false,
39
+ message_interval: '<h2>Download MP3</h2><p style="margin-top:34px !important;">Your download should start in a second!</p>',
40
+ message_ok: '',
41
+ message_indark: '<h2>Download MP3</h2><p>Your download should start in a second!</p>',
42
+ message_promtlink: '<h2>Download MP3</h2><p>Link to the file:</p><h3><a target="_blank" href="#1">#2</a></h3><p>Depending on your browser settings, you may need to right click the link to save it.</p>',
43
+ message_fail: '<h2>Download Failed</h2><p>Sorry, something went wrong!</p>',
44
+ message_timeout: '<h2>Download<br />Unavailable</h2><p>please try again later!</p>',
45
+ dl_remote_path: ''
46
+ },
47
+
48
+ eID: {
49
+ play: '#playpause_mp3j_',
50
+ playW: '#playpause_wrap_mp3j_',
51
+ stp: '#stop_mp3j_',
52
+ prev: '#Prev_mp3j_',
53
+ next: '#Next_mp3j_',
54
+ vol: '#vol_mp3j_',
55
+ loader: '#load_mp3j_',
56
+ pos: '#posbar_mp3j_',
57
+ poscol: '#poscol_mp3j_',
58
+ title: '#T_mp3j_',
59
+ caption: '#C_mp3j_',
60
+ pT: '#P-Time-MI_',
61
+ tT: '#T-Time-MI_',
62
+ dload: '#download_mp3j_',
63
+ plwrap: '#L_mp3j_',
64
+ ul: '#UL_mp3j_',
65
+ a: 'mp3j_A_', //No hash!
66
+ indiM: '#statusMI_',
67
+ toglist: '#playlist-toggle_',
68
+ lPP: '#lpp_mp3j_',
69
+ pplink: '#mp3j_popout_',
70
+ img: '#MI_image_'
71
+ },
72
+
73
+ init: function () {
74
+ var plpath, that = this;
75
+
76
+ plpath = this.plugin_path.split('/');
77
+ this.dl_domain = plpath[2].replace(/^www./i, "");
78
+
79
+ this.unwrap();
80
+ this.write_controls();
81
+ this.add_jpconstruct_div();
82
+
83
+ jQuery(this.jpID).jPlayer({
84
+ ready: function () {
85
+ that.startup();
86
+ },
87
+ swfPath: that.plugin_path + '/js/Jplayer271.swf',
88
+ volume: 1,
89
+ supplied: "mp3",
90
+ wmode: "window",
91
+ solution:"html, flash",
92
+ preload: "none"
93
+ });
94
+ jQuery(this.jpID).bind(jQuery.jPlayer.event.ended, function(event) {
95
+ that.E_complete(that.tID);
96
+ });
97
+ jQuery(this.jpID).bind(jQuery.jPlayer.event.timeupdate, function(event) {
98
+ var lp = that.get_loaded(event);
99
+ var ppA = event.jPlayer.status.currentPercentAbsolute;
100
+ var pt = event.jPlayer.status.currentTime;
101
+ var tt = event.jPlayer.status.duration;
102
+ that.E_update(that.tID, lp, ppA, pt, tt);
103
+ });
104
+ jQuery(this.jpID).bind(jQuery.jPlayer.event.ready, function(event) {
105
+ if(event.jPlayer.html.used && event.jPlayer.html.audio.available) {
106
+ that.jp_audio = jQuery(that.jpID).data("jPlayer").htmlElement.audio;
107
+ } else {
108
+ that.jp_audio = 'flash';
109
+ }
110
+ });
111
+ jQuery(this.jpID).bind(jQuery.jPlayer.event.progress, function(event) {
112
+ var lp = that.get_loaded(event);
113
+ var pt = event.jPlayer.status.currentTime;
114
+ var tt = event.jPlayer.status.duration;
115
+ that.E_loading( that.tID, lp, tt, pt );
116
+ });
117
+ },
118
+
119
+
120
+ ////
121
+ ////
122
+ check_show_jperrors: function ( event ) {
123
+ if ( this.tID !== '' && this.jperrorIDs[ this.tID ] !== true ) {
124
+ if ( event.jPlayer.error.type === 'e_no_solution' || event.jPlayer.error.type === 'e_no_support' ) {
125
+ this.show_nosolution( this.tID );
126
+ this.jperrorIDs[ this.tID ] = true;
127
+ }
128
+ }
129
+ },
130
+
131
+ show_nosolution: function ( j ) {
132
+ jQuery('#mp3j_nosolution_' + j).empty().append(this.vars.message_nosolution).fadeIn(200);
133
+ },
134
+
135
+ add_jpconstruct_div: function () {
136
+ var html = '<div id="mp3_jplayer_items" style="position:relative; overflow:hidden; margin:0; padding:0; border:0; width:0px; height:0px;"><div id="mp3_jplayer_1_8" style="left:-999em;"></div></div>';
137
+ jQuery('body').prepend( html );
138
+ },
139
+
140
+ ////
141
+ ////
142
+
143
+
144
+
145
+ get_loaded: function (event) {
146
+ var lp;
147
+ if ( typeof this.jp_audio.buffered === "object" ) {
148
+ if( this.jp_audio.buffered.length > 0 && this.jp_audio.duration > 0 ) {
149
+ lp = 100 * this.jp_audio.buffered.end(this.jp_audio.buffered.length-1) / this.jp_audio.duration;
150
+ } else {
151
+ lp = 0;
152
+ }
153
+ } else {
154
+ lp = event.jPlayer.status.seekPercent;
155
+ }
156
+ this.jp_seekable = event.jPlayer.status.seekPercent; //use this for slider calcs for both html/flash solution
157
+ this.load_pc = lp;
158
+ return lp;
159
+ },
160
+
161
+ Tformat: function ( sec ) {
162
+ var t = sec,
163
+ s = Math.floor((t)%60),
164
+ m = Math.floor((t/60)%60),
165
+ h = Math.floor(t/3600);
166
+ return ((h > 0) ? h+':' : '') + ((m > 9) ? m : '0'+m) + ':' + ((s > 9) ? s : '0'+s);
167
+ },
168
+
169
+ E_loading: function ( j, lp, tt, pt ) {
170
+ if (j !== '') {
171
+ jQuery(this.eID.loader + j).css( "width", lp + '%' );
172
+ if (this.pl_info[j].type === 'MI') {
173
+ if (tt > 0 && this.played_t > 0) {
174
+ jQuery(this.eID.tT + j).text(this.Tformat(tt));
175
+ }
176
+ }
177
+ if ( this.jp_audio !== 'flash' && lp < 100 ) {
178
+ if ( pt === this.played_t && this.state === 'playing' && pt > 0 && !this.sliding ) {
179
+ if (this.pl_info[j].type === 'MI') {
180
+ jQuery(this.eID.indiM + j).empty().append('<span class="mp3-finding"></span><span class="mp3-tint"></span>Buffering');
181
+ }
182
+ if (this.pl_info[j].type === 'single' ) {
183
+ jQuery(this.eID.indiM + j).empty().append('<span class="Smp3-finding"></span><span class="mp3-gtint"></span> ' + this.Tformat(pt));
184
+ }
185
+ }
186
+ this.played_t = pt;
187
+ }
188
+ }
189
+ },
190
+
191
+ E_update: function (j, lp, ppA, pt, tt) {
192
+ if (j !== '') {
193
+ jQuery(this.eID.loader + j).css( "width", lp + '%' );
194
+ jQuery(this.eID.poscol + j).css( "width", ppA + '%' );
195
+ if ( jQuery(this.eID.pos + j + ' div.ui-widget-header').length > 0 ) {
196
+ jQuery(this.eID.pos + j).slider('option', 'value', 10*ppA);
197
+ }
198
+ if (pt > 0) {
199
+ jQuery(this.eID.pos + j).css( 'visibility', 'visible' );
200
+ }
201
+ if (this.pl_info[j].type === 'MI') {
202
+ jQuery(this.eID.pT + j).text(this.Tformat(pt));
203
+ }
204
+ if ('playing' === this.state) {
205
+ if ('MI' === this.pl_info[j].type) {
206
+ if (tt > 0 && this.played_t === pt && lp < 100 && !this.sliding ) {
207
+ jQuery(this.eID.indiM + j).empty().append('<span class="mp3-finding"></span><span class="mp3-tint"></span>Buffering');
208
+ jQuery(this.eID.tT + j).text(this.Tformat(tt));
209
+ } else if (pt > 0) {
210
+ jQuery(this.eID.indiM + j).empty().append('Playing');
211
+ jQuery(this.eID.tT + j).text(this.Tformat(tt));
212
+ }
213
+ }
214
+ if ('single' === this.pl_info[j].type){
215
+ if (pt > 0 ) {
216
+ if (this.played_t === pt && lp < 100 && !this.sliding ) {
217
+ jQuery(this.eID.indiM + j).empty().append('<span class="Smp3-finding"></span><span class="mp3-gtint"></span> ' + this.Tformat(pt));
218
+ } else {
219
+ jQuery(this.eID.indiM + j).empty().append('<span class="mp3-tint tintmarg"></span> ' + this.Tformat(pt));
220
+ }
221
+ }
222
+ }
223
+ }
224
+ this.played_t = pt;
225
+ }
226
+ },
227
+
228
+ E_complete: function (j) {
229
+ var p = this.pl_info[j];
230
+ if ('MI' === p.type) {
231
+ if (p.loop || p.tr+1 < p.list.length) {
232
+ this.E_change_track(j, 'next');
233
+ } else {
234
+ this.E_dblstop(j);
235
+ this.startup();
236
+ }
237
+ }
238
+ if ('single' === p.type) {
239
+ if (p.loop) {
240
+ this.E_change_track(j, 'next');
241
+ } else {
242
+ this.E_stop(j);
243
+ this.startup();
244
+ }
245
+ }
246
+ },
247
+
248
+ write_controls: function () {
249
+ var j;
250
+ for (j = 0; j < this.pl_info.length; j += 1) {
251
+ this.setup_a_player(j);
252
+ }
253
+ },
254
+
255
+ startup: function () {
256
+ var j;
257
+ for (j = 0; j < this.pl_info.length; j += 1) {
258
+ //if (this.pl_info[j].autoplay) {
259
+ if ( this.pl_info[j].autoplay && (this.pl_info[j].type === 'single' || this.pl_info[j].type === 'MI') ) {
260
+ this.pl_info[j].autoplay = false;
261
+ this.E_change_track(j, this.pl_info[j].tr);
262
+ return;
263
+ }
264
+ }
265
+ },
266
+
267
+ setup_a_player: function (j) {
268
+ var i, li, sel, that = this, p = this.pl_info[j];
269
+
270
+ //PLAYLISTERS and SINGLES
271
+ if ('MI' === p.type || 'single' === p.type) {
272
+
273
+ jQuery(this.eID.vol + j).slider({
274
+ value : p.vol,
275
+ max: 100,
276
+ range: 'min',
277
+ animate: false,
278
+ slide: function (event, ui) {
279
+ p.vol = ui.value;
280
+ if (j === that.tID) {
281
+ jQuery(that.jpID).jPlayer("volume", ui.value/100);
282
+ }
283
+ }
284
+ });
285
+
286
+ jQuery(this.eID.pos + j).mouseup(function (e) { //for posbar
287
+ that.sliding = false;
288
+ });
289
+
290
+ sel = ('MI' === p.type) ? this.eID.play : this.eID.playW;
291
+ jQuery(sel + j).click(function () { //play-pause click
292
+ that.E_change_track(j, p.tr);
293
+ jQuery(this).blur();
294
+ });
295
+ jQuery(sel + j).dblclick(function () { //play-pause dbl click
296
+ if (that.state !== "playing") {
297
+ that.E_change_track(j, p.tr);
298
+ }
299
+ jQuery(this).blur();
300
+ });
301
+
302
+ this.titles(j, p.tr);
303
+ }
304
+
305
+ //PLAYLISTERS
306
+ if ('MI' === p.type) {
307
+ jQuery(this.eID.pT + j).text('00:00');
308
+ jQuery(this.eID.indiM + j).text('Ready');
309
+ jQuery(this.eID.stp + j).click(function () {
310
+ that.E_stop(j);
311
+ });
312
+ jQuery(this.eID.stp + j).dblclick(function () {
313
+ that.E_dblstop(j);
314
+ });
315
+
316
+ jQuery(this.eID.plwrap + j).hide();
317
+ if (p.list.length > 1) {
318
+ jQuery(this.eID.next + j).click(function () {
319
+ that.E_change_track(j, 'next');
320
+ });
321
+ jQuery(this.eID.prev + j).click(function () {
322
+ that.E_change_track(j, 'prev');
323
+ });
324
+ jQuery(this.eID.ul + j).empty();
325
+ for (i = 0; i < p.list.length; i += 1) {
326
+ li = '<li>';
327
+ li += '<a href="#" id="' + this.eID.a + j + '_' + i + '">' + p.list[i].name + '</a></li>';
328
+ jQuery(this.eID.ul + j).append(li);
329
+ this.add_ul_click(j, i);
330
+ }
331
+ jQuery('#' + this.eID.a + j + '_' + p.tr).addClass('mp3j_A_current');
332
+ jQuery(this.eID.toglist + j).click(function () {
333
+ that.togglelist(j);
334
+ });
335
+ if (p.lstate === true) {
336
+ jQuery(this.eID.plwrap + j).show();
337
+ }
338
+ }
339
+
340
+ this.writedownload(j, p.tr);
341
+ if ( this.vars.force_dload === true ) {
342
+ this.dl_closeinfo_click(j);
343
+ }
344
+
345
+ jQuery(this.eID.lPP + j).click(function () {
346
+ return that.E_launchPP(j);
347
+ });
348
+ }
349
+
350
+ //POPOUT LINKS
351
+ if ('popout' === p.type) {
352
+ jQuery(this.eID.pplink + j).click(function () {
353
+ return that.E_launchPP(j);
354
+ });
355
+ }
356
+ },
357
+
358
+ add_ul_click: function (j, i) { //playlist item click
359
+ var that = this;
360
+ jQuery('#' + this.eID.a + j + "_" + i).click(function (e) {
361
+ that.E_change_track(j, i);
362
+ e.preventDefault();
363
+ });
364
+ },
365
+
366
+ unwrap: function () {
367
+ var i, j, arr;
368
+ if (this.vars.play_f === true && typeof this.lists !== "undefined" && this.lists.length > 0) {
369
+ for (i = 0; i < this.lists.length; i += 1) {
370
+ arr = this.lists[i];
371
+ for (j = 0; j < arr.length; j += 1) {
372
+ arr[j].mp3 = this.f_undo.f_con(arr[j].mp3);
373
+ }
374
+ }
375
+ }
376
+ },
377
+
378
+ f_undo: {
379
+ keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
380
+ f_con : function (input) {
381
+ var output = "", i = 0, chr1, chr2, chr3, enc1, enc2, enc3, enc4;
382
+ input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
383
+ while (i < input.length) {
384
+ enc1 = this.keyStr.indexOf(input.charAt(i++)); enc2 = this.keyStr.indexOf(input.charAt(i++));
385
+ enc3 = this.keyStr.indexOf(input.charAt(i++)); enc4 = this.keyStr.indexOf(input.charAt(i++));
386
+ chr1 = (enc1 << 2) | (enc2 >> 4); chr2 = ((enc2 & 15) << 4) | (enc3 >> 2); chr3 = ((enc3 & 3) << 6) | enc4;
387
+ output = output + String.fromCharCode(chr1);
388
+ if (enc3 !== 64) { output = output + String.fromCharCode(chr2); }
389
+ if (enc4 !== 64) { output = output + String.fromCharCode(chr3); }
390
+ }
391
+ output = this.utf8_f_con(output);
392
+ return output;
393
+ },
394
+ utf8_f_con : function (utftext) {
395
+ var string = "", i = 0, c, c1, c2, c3;
396
+ while (i < utftext.length) {
397
+ c = utftext.charCodeAt(i);
398
+ if (c < 128) {
399
+ string += String.fromCharCode(c); i++;
400
+ } else if ((c > 191) && (c < 224)) {
401
+ c2 = utftext.charCodeAt(i + 1); string += String.fromCharCode(((c & 31) << 6) | (c2 & 63)); i += 2;
402
+ } else {
403
+ c2 = utftext.charCodeAt(i + 1); c3 = utftext.charCodeAt(i + 2); string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)); i += 3;
404
+ }
405
+ }
406
+ return string;
407
+ }
408
+ },
409
+
410
+
411
+ E_stop: function (j) {
412
+ if (j === this.tID && j !== '') {
413
+ this.clearit();
414
+ if ( jQuery(this.eID.pos + j + ' div.ui-widget-header').length > 0 ) {
415
+ jQuery(this.eID.pos + j).slider('destroy');
416
+ }
417
+ jQuery(this.eID.loader + j).css( "width", '0%' );
418
+ this.button(j, 'play');
419
+ if (this.pl_info[j].type === 'MI') {
420
+ jQuery(this.eID.poscol + j).css( "width", '0%' );
421
+ jQuery(this.eID.tT + j).empty();
422
+ jQuery(this.eID.indiM + j).text('Stopped');
423
+ jQuery(this.eID.pT + j).text(this.Tformat(0));
424
+ } else {
425
+ jQuery(this.eID.indiM + j).empty();
426
+ }
427
+ this.load_pc = 0;
428
+ this.played_t = 0;
429
+ }
430
+ },
431
+
432
+ E_dblstop: function (j) {
433
+ this.listclass(j, this.pl_info[j].tr, 0);
434
+ if ( this.pl_info[j].tr !== 0 ) {
435
+ this.titles(j, 0);
436
+ }
437
+ this.writedownload(j, 0);
438
+ this.E_stop(j);
439
+ jQuery(this.eID.indiM + j).text('Ready');
440
+ this.pl_info[j].tr = 0;
441
+ },
442
+
443
+ E_change_track: function (j, change) {
444
+ var track, txt, p = this.pl_info[j];
445
+ if (j === this.tID && change === p.tr) {
446
+ if ('playing' === this.state) {
447
+ if (this.load_pc === 0) {
448
+ this.E_stop(j);
449
+ } else {
450
+ this.pauseit();
451
+ this.button(j, 'play');
452
+ if ('MI' === p.type) {
453
+ jQuery(this.eID.indiM + j).text('Paused');
454
+ }
455
+ }
456
+ return;
457
+ } else if ('paused' === this.state || 'set' === this.state) {
458
+ this.playit();
459
+ this.button(j, 'pause');
460
+ return;
461
+ }
462
+ }
463
+ this.E_stop(this.tID);
464
+ if ('prev' === change) {
465
+ track = (p.tr-1 < 0) ? p.list.length-1 : p.tr-1;
466
+ } else if ('next' === change) {
467
+ track = (p.tr+1 < p.list.length) ? p.tr+1 : 0;
468
+ } else {
469
+ track = change;
470
+ }
471
+ jQuery(this.jpID).jPlayer("volume", 1 ); //Vol scaling fix
472
+ this.setit(p.list[track].mp3);
473
+ this.playit();
474
+ jQuery(this.jpID).jPlayer("volume", p.vol/100 ); //Reset to correct vol
475
+ txt = ('MI' === p.type) ? '<span class="mp3-finding"></span><span class="mp3-tint"></span>Connecting' : '<span class="Smp3-finding"></span><span class="mp3-gtint"></span>';
476
+ jQuery(this.eID.indiM + j).empty().append(txt);
477
+ this.button(j, 'pause');
478
+ this.makeslider(j);
479
+ if ('MI' === p.type) {
480
+ this.listclass(j, p.tr, track);
481
+ if ( p.tr !== track ) {
482
+ this.titles(j, track);
483
+ }
484
+ if (p.download) {
485
+ this.writedownload(j, track);
486
+ jQuery(this.eID.dload + j).hide().addClass('whilelinks').fadeIn(400);
487
+ }
488
+ }
489
+ p.tr = track;
490
+ this.tID = j;
491
+ },
492
+
493
+ E_launchPP: function (j) {
494
+ var li_height = 28;
495
+ if ( this.pl_info[j].height !== false ) {
496
+ this.vars.pp_playerheight = 100 + this.pl_info[j].height;
497
+ }
498
+ this.vars.pp_windowheight = ( this.pl_info[j].list.length > 1 ) ? this.vars.pp_playerheight + ( this.pl_info[j].list.length * li_height) : this.vars.pp_playerheight;
499
+ if ( this.vars.pp_windowheight > this.vars.pp_maxheight ) {
500
+ this.vars.pp_windowheight = this.vars.pp_maxheight;
501
+ }
502
+ this.launched_ID = j;
503
+ this.was_playing = ( this.state === "playing" ) ? true : false;
504
+
505
+ this.E_stop(this.tID);
506
+ this.setit(this.plugin_path + '/mp3/silence.mp3');
507
+ this.playit(); //make chrome let go of last track (incase it didn't finish loading)
508
+ this.clearit();
509
+
510
+ var newwindow = window.open(this.plugin_path + '/popout.php', 'mp3jpopout', 'height=300, width=600, location=1, status=1, scrollbars=1, resizable=1, left=25, top=25');
511
+ if ( this.pl_info[j].lstate === true ) {
512
+ newwindow.resizeTo( this.vars.pp_width, this.vars.pp_windowheight );
513
+ } else {
514
+ newwindow.resizeTo( this.vars.pp_width, this.vars.pp_playerheight );
515
+ }
516
+ if (window.focus) {
517
+ newwindow.focus();
518
+ }
519
+ return false;
520
+ },
521
+
522
+ setit: function (file) {
523
+ this.state = 'set';
524
+ jQuery(this.jpID).jPlayer("setMedia", {mp3: file});
525
+ },
526
+ playit: function () {
527
+ this.state = 'playing';
528
+ jQuery(this.jpID).jPlayer("play");
529
+ },
530
+ pauseit: function () {
531
+ this.state = 'paused';
532
+ jQuery(this.jpID).jPlayer("pause");
533
+ },
534
+ clearit: function () {
535
+ this.state = '';
536
+ jQuery(this.jpID).jPlayer("clearMedia");
537
+ },
538
+
539
+ button: function (j, type) {
540
+ if (j === '') { return; }
541
+ if ('pause' === type) {
542
+ if (this.pl_info[j].play_txt === '#USE_G#') {
543
+ jQuery(this.eID.play + j).removeClass('buttons_mp3j').addClass('buttons_mp3jpause');
544
+ } else {
545
+ jQuery(this.eID.play + j).text(this.pl_info[j].pause_txt);
546
+ }
547
+ }
548
+ if ('play' === type) {
549
+ if (this.pl_info[j].play_txt === '#USE_G#') {
550
+ jQuery(this.eID.play + j).removeClass('buttons_mp3jpause').addClass('buttons_mp3j');
551
+ } else {
552
+ jQuery(this.eID.play + j).text(this.pl_info[j].play_txt);
553
+ }
554
+ }
555
+ },
556
+
557
+ listclass: function ( j, rem, add ) {
558
+ jQuery('#'+ this.eID.a + j +'_'+ rem).removeClass('mp3j_A_current');
559
+ jQuery('#'+ this.eID.a + j +'_'+ add).addClass('mp3j_A_current');
560
+ },
561
+
562
+ titles: function ( j, track ) {
563
+ var p = this.pl_info[j], Olink = '', Clink = '';
564
+ if (p.type === "MI") {
565
+ jQuery(this.eID.title + j).empty().append(p.list[track].name).append('<br /><span>' + p.list[track].artist + '</span>');
566
+ if (p.list[track].image !== '') {
567
+ if (p.list[track].imgurl !== '') {
568
+ Olink = '<a href="' + p.list[track].imgurl + '">';
569
+ Clink = '</a>';
570
+ }
571
+ jQuery(this.eID.img + j).empty().hide().append(Olink + '<img src="' + p.list[track].image + '" />' + Clink).fadeIn(300);
572
+ }
573
+ }
574
+ },
575
+
576
+ writedownload: function ( j, track ) {
577
+ var p = this.pl_info[j];
578
+ if (p.download) {
579
+ jQuery(this.eID.dload + j).empty().removeClass('whilelinks').append('<a id="mp3j_dlanchor_' + j + '" href="' + p.list[track].mp3 + '" target="_blank">' + this.vars.dload_text + '</a>');
580
+ if ( this.vars.force_dload === true ) {
581
+ this.dl_button_click( j );
582
+ }
583
+ }
584
+ },
585
+
586
+ togglelist: function ( j ) {
587
+ if (this.pl_info[j].lstate === true) {
588
+ jQuery(this.eID.plwrap + j).fadeOut(300);
589
+ jQuery(this.eID.toglist + j).text('SHOW');
590
+ this.pl_info[j].lstate = false;
591
+ } else if (this.pl_info[j].lstate === false) {
592
+ jQuery(this.eID.plwrap + j).fadeIn("slow");
593
+ jQuery(this.eID.toglist + j).text('HIDE');
594
+ this.pl_info[j].lstate = true;
595
+ }
596
+ },
597
+
598
+ makeslider: function (j) {
599
+ var phmove, cssmove, that = this;
600
+ jQuery(this.eID.pos + j).css( 'visibility', 'hidden' );
601
+ jQuery(this.eID.pos + j).slider({
602
+ max: 1000,
603
+ range: 'min',
604
+ animate: false,
605
+ slide: function (event, ui) {
606
+ if ((ui.value/10) < that.load_pc) {
607
+ cssmove = ui.value/10;
608
+ phmove = ui.value*(10.0/that.jp_seekable);
609
+ } else {
610
+ cssmove = 0.99*that.load_pc;
611
+ phmove = (9.9*that.load_pc)*(10.0/that.jp_seekable);
612
+ }
613
+ jQuery(that.eID.poscol + j).css('width', cssmove + '%');
614
+ jQuery(that.jpID).jPlayer("playHead", phmove );
615
+ if (that.state === 'paused') {
616
+ that.button(j, 'pause');
617
+ that.playit();
618
+ }
619
+ that.state = 'playing';
620
+ that.sliding = true;
621
+ }
622
+ });
623
+ }
624
+
625
+ };
626
+
627
+ // Force browser download
628
+ MP3_JPLAYER.dl_button_click = function ( j ) {
629
+ var that = this, p = this.pl_info[j];
630
+ jQuery('#mp3j_dlanchor_' + j).click(function (e) {
631
+ that.dl_runinfo( p.list[p.tr].mp3, j, e );
632
+ e.preventDefault();
633
+ });
634
+ };
635
+
636
+ MP3_JPLAYER.dl_closeinfo_click = function ( j ) {
637
+ var that = this;
638
+ jQuery('#mp3j_finfo_close_' + j).click(function () {
639
+ that.dl_dialogue( j, '', 'close');
640
+ that.clear_timers( j );
641
+ });
642
+ };
643
+
644
+ MP3_JPLAYER.dl_runinfo = function ( get, j, e ) {
645
+ var can_write,
646
+ dlpath,
647
+ message,
648
+ that = this,
649
+ dlframe = false,
650
+ p = this.pl_info[j],
651
+ is_local = this.is_local_dload( get );
652
+
653
+ var enc_get;
654
+
655
+ if ( !this.intervalIDs[ j ] && !this.timeoutIDs[ j ] ) { //if timers not already running for this player
656
+ can_write = this.write_cookie('mp3Download' + j, 'waiting', '');
657
+ if ( is_local ) {
658
+ if ( can_write !== false ) {
659
+ this.dl_dialogue( j, this.vars.message_interval, 'check');
660
+ } else {
661
+ this.dl_dialogue( j, this.vars.message_indark, 'indark');
662
+ }
663
+ this.intervalIDs[ j ] = setInterval( function(){ that.dl_interval_check( j, can_write ); }, 500);
664
+ this.timeoutIDs[ j ] = setTimeout( function(){ that.dl_timeout( j, can_write ); }, 7000);
665
+ dlframe = true;
666
+ } else {
667
+ if ( this.vars.dl_remote_path === '' ) {
668
+ message = this.vars.message_promtlink.replace('#1', get);
669
+ message = message.replace('#2', p.list[p.tr].name);
670
+ this.dl_dialogue( j, message, 'indark');
671
+ } else {
672
+ message = this.vars.message_indark.replace('#1', get);
673
+ message = message.replace('#2', p.list[p.tr].name);
674
+ this.dl_dialogue( j, message, 'indark');
675
+ dlframe = true;
676
+ }
677
+ }
678
+ this.dl_dialogs[ j ] = 'false';
679
+ if ( dlframe ) {
680
+ dlpath = this.get_dloader_path( get );
681
+ enc_get = encodeURIComponent( get );
682
+ //jQuery('#mp3j_dlf_' + j).empty().append('<iframe id="mp3j_dlframe_' + j + '" name="mp3j_dlframe_' + j + '" class="mp3j-dlframe" src="' + dlpath + '?mp3=loc' + get + '&pID=' + j + '" style="display:none;"></iframe>');
683
+ jQuery('#mp3j_dlf_' + j).empty().append('<iframe id="mp3j_dlframe_' + j + '" name="mp3j_dlframe_' + j + '" class="mp3j-dlframe" src="' + dlpath + '?mp3=loc' + enc_get + '&pID=' + j + '" style="display:none;"></iframe>');
684
+ }
685
+ }
686
+ };
687
+
688
+ MP3_JPLAYER.dl_interval_check = function ( j, can_write ) {
689
+ if ( can_write !== false && this.read_cookie('mp3Download' + j) === 'true' ) { //got cookie back, all should be good
690
+ this.dl_dialogue( j, this.vars.message_ok, 'hide');
691
+ //jQuery('#debug').append('<br />check: cookie '+j+' true');
692
+ this.clear_timers( j );
693
+ } else if ( this.dl_dialogs[ j ] !== 'false' ) { //got a message back
694
+ this.dl_dialogue( j, this.dl_dialogs[ j ], 'add');
695
+ //jQuery('#debug').append('<br />check: dialog'+j+' true');
696
+ this.clear_timers( j );
697
+ } //else {
698
+ //jQuery('#debug').append('<br />check: neither '+j+'...# ');
699
+ //}
700
+ };
701
+
702
+ MP3_JPLAYER.dl_timeout = function ( j, can_write ) {
703
+ this.clear_timers( j );
704
+ if ( can_write !== false ) {
705
+ this.dl_dialogue( j, this.vars.message_timeout, 'add');
706
+ }
707
+ //jQuery('#debug').append('<br />no responses ('+j+' timed out) ');
708
+ };
709
+
710
+ MP3_JPLAYER.clear_timers = function ( j ) {
711
+ if ( this.intervalIDs[ j ] !== null && this.timeoutIDs[ j ] !== null ) {
712
+ clearInterval( this.intervalIDs[j] );
713
+ clearTimeout( this.timeoutIDs[j] );
714
+ this.intervalIDs[ j ] = null;
715
+ this.timeoutIDs[j] = null;
716
+ }
717
+ jQuery('#mp3j_dlf_' + j).empty(); //ditch iframe
718
+ this.write_cookie('mp3Download' + j, '', -1); //clear any cookie
719
+ //jQuery('#debug').append('<br />cookie/frame '+j+' cleared');
720
+ };
721
+
722
+ MP3_JPLAYER.dl_dialogue = function ( j, text, state ) {
723
+ if ( 'check' === state ) {
724
+ jQuery('#mp3j_finfo_gif_' + j).show();
725
+ jQuery('#mp3j_finfo_txt_' + j).empty().append(text).show();
726
+ jQuery('#mp3j_finfo_' + j).show();
727
+ } else if ( 'add' === state ) {
728
+ jQuery('#mp3j_finfo_gif_' + j).hide();
729
+ jQuery('#mp3j_finfo_txt_' + j).empty().append(text).show();
730
+ } else if ( 'indark' === state ) {
731
+ jQuery('#mp3j_finfo_gif_' + j).hide();
732
+ jQuery('#mp3j_finfo_txt_' + j).empty().append(text).show();
733
+ jQuery('#mp3j_finfo_' + j).fadeIn(100);
734
+ } else if ( 'close' === state ) {
735
+ jQuery('#mp3j_finfo_gif_' + j).hide();
736
+ jQuery('#mp3j_finfo_' + j).hide();
737
+ } else {
738
+ jQuery('#mp3j_finfo_gif_' + j).hide();
739
+ if ( text !== '' ) {
740
+ jQuery('#mp3j_finfo_txt_' + j).empty().append(text).show();
741
+ }
742
+ jQuery('#mp3j_finfo_' + j).fadeOut(1000);
743
+ }
744
+ };
745
+
746
+ MP3_JPLAYER.read_cookie = function ( name ) {
747
+ var i, cookie, allCookies = document.cookie.split('; ');
748
+ if ( allCookies.length > 0 ) {
749
+ for ( i = 0; i < allCookies.length; i += 1 ) {
750
+ cookie = allCookies[i].split( '=' );
751
+ if ( cookie[0] === name ) {
752
+ return cookie[1];
753
+ }
754
+ }
755
+ }
756
+ return false;
757
+ };
758
+
759
+ MP3_JPLAYER.write_cookie = function ( name, value, days ) {
760
+ var date, expires = "";
761
+ if ( days ) {
762
+ date = new Date();
763
+ date.setTime( date.getTime() + (days*24*60*60*1000) );
764
+ expires = "; expires=" + date.toGMTString();
765
+ }
766
+ document.cookie = name + "=" + value + expires + "; path=/";
767
+ return this.read_cookie( name );
768
+ };
769
+
770
+ MP3_JPLAYER.get_dloader_path = function ( loc ) {
771
+ var k, path = "", file = "", chunks;
772
+ chunks = loc.split('/');
773
+ file = chunks[chunks.length-1];
774
+ //jQuery('#debug').append('<br />');
775
+ //for ( k = 0; k < chunks.length; k += 1 ) {
776
+ // jQuery('#debug').append('<br />[' + k + '] ' + chunks[k]);
777
+ //}
778
+ //jQuery('#debug').append('<br />file:' + file);
779
+ if ( loc.charAt(0) === '/' ) {
780
+ path = this.plugin_path + '/download.php';
781
+ } else {
782
+ path = chunks[2].replace(/^www./i, "");
783
+ if ( path === this.dl_domain ) {
784
+ path = this.plugin_path + '/download.php';
785
+ } else {
786
+ path = chunks[0] + '//' + chunks[2] + this.vars.dl_remote_path;
787
+ }
788
+ }
789
+ //jQuery('#debug').append('<br />path:' + path);
790
+ return path;
791
+ };
792
+
793
+ MP3_JPLAYER.is_local_dload = function ( loc ) {
794
+ var domain = "", file = "", chunks, is_local = false;
795
+ chunks = loc.split('/');
796
+ file = chunks[chunks.length-1];
797
+ if ( loc.charAt(0) === '/' ) {
798
+ is_local = true;
799
+ } else {
800
+ domain = chunks[2].replace(/^www./i, "");
801
+ if ( domain === this.dl_domain ) {
802
+ is_local = true;
803
+ }
804
+ }
805
+ return is_local;
806
+ };
807
+
js/mp3-jplayer-1.8.9.js CHANGED
@@ -1,807 +1,807 @@
1
- /*
2
- MP3-jPlayer 1.8.9
3
- www.sjward.org
4
- */
5
-
6
- var MP3_JPLAYER = {
7
-
8
- tID: '',
9
- state: '',
10
- pl_info: [],
11
- load_pc: 0,
12
- played_t: 0,
13
- dl_dialogs: [],
14
- timeoutIDs: [],
15
- intervalIDs: [],
16
- jperrorIDs: [],
17
- dl_domain: '',
18
- jp_audio: {},
19
- jp_seekable: 0,
20
- sliding: false,
21
- launched_ID: null,
22
- jpID: '#mp3_jplayer_1_8',
23
- plugin_path: '',
24
- lastformats: '',
25
- was_playing: false,
26
-
27
- vars: {
28
- play_f: false,
29
- stylesheet_url: '',
30
- dload_text: 'DOWNLOAD MP3',
31
- pp_width: 280,
32
- pp_maxheight: 350,
33
- pp_bodycolour: '#fff',
34
- pp_bodyimg: '',
35
- pp_fixedcss: false,
36
- pp_windowheight: 600,
37
- pp_playerheight: 100+142,
38
- force_dload: false,
39
- message_interval: '<h2>Download MP3</h2><p style="margin-top:34px !important;">Your download should start in a second!</p>',
40
- message_ok: '',
41
- message_indark: '<h2>Download MP3</h2><p>Your download should start in a second!</p>',
42
- message_promtlink: '<h2>Download MP3</h2><p>Link to the file:</p><h3><a target="_blank" href="#1">#2</a></h3><p>Depending on your browser settings, you may need to right click the link to save it.</p>',
43
- message_fail: '<h2>Download Failed</h2><p>Sorry, something went wrong!</p>',
44
- message_timeout: '<h2>Download<br />Unavailable</h2><p>please try again later!</p>',
45
- dl_remote_path: ''
46
- },
47
-
48
- eID: {
49
- play: '#playpause_mp3j_',
50
- playW: '#playpause_wrap_mp3j_',
51
- stp: '#stop_mp3j_',
52
- prev: '#Prev_mp3j_',
53
- next: '#Next_mp3j_',
54
- vol: '#vol_mp3j_',
55
- loader: '#load_mp3j_',
56
- pos: '#posbar_mp3j_',
57
- poscol: '#poscol_mp3j_',
58
- title: '#T_mp3j_',
59
- caption: '#C_mp3j_',
60
- pT: '#P-Time-MI_',
61
- tT: '#T-Time-MI_',
62
- dload: '#download_mp3j_',
63
- plwrap: '#L_mp3j_',
64
- ul: '#UL_mp3j_',
65
- a: 'mp3j_A_', //No hash!
66
- indiM: '#statusMI_',
67
- toglist: '#playlist-toggle_',
68
- lPP: '#lpp_mp3j_',
69
- pplink: '#mp3j_popout_',
70
- img: '#MI_image_'
71
- },
72
-
73
- init: function () {
74
- var plpath, that = this;
75
-
76
- plpath = this.plugin_path.split('/');
77
- this.dl_domain = plpath[2].replace(/^www./i, "");
78
-
79
- this.unwrap();
80
- this.write_controls();
81
- this.add_jpconstruct_div();
82
-
83
- jQuery(this.jpID).jPlayer({
84
- ready: function () {
85
- that.startup();
86
- },
87
- swfPath: that.plugin_path + '/js/Jplayer271.swf',
88
- volume: 1,
89
- supplied: "mp3",
90
- wmode: "window",
91
- solution:"html, flash",
92
- preload: "none"
93
- });
94
- jQuery(this.jpID).bind(jQuery.jPlayer.event.ended, function(event) {
95
- that.E_complete(that.tID);
96
- });
97
- jQuery(this.jpID).bind(jQuery.jPlayer.event.timeupdate, function(event) {
98
- var lp = that.get_loaded(event);
99
- var ppA = event.jPlayer.status.currentPercentAbsolute;
100
- var pt = event.jPlayer.status.currentTime;
101
- var tt = event.jPlayer.status.duration;
102
- that.E_update(that.tID, lp, ppA, pt, tt);
103
- });
104
- jQuery(this.jpID).bind(jQuery.jPlayer.event.ready, function(event) {
105
- if(event.jPlayer.html.used && event.jPlayer.html.audio.available) {
106
- that.jp_audio = jQuery(that.jpID).data("jPlayer").htmlElement.audio;
107
- } else {
108
- that.jp_audio = 'flash';
109
- }
110
- });
111
- jQuery(this.jpID).bind(jQuery.jPlayer.event.progress, function(event) {
112
- var lp = that.get_loaded(event);
113
- var pt = event.jPlayer.status.currentTime;
114
- var tt = event.jPlayer.status.duration;
115
- that.E_loading( that.tID, lp, tt, pt );
116
- });
117
- },
118
-
119
-
120
- ////
121
- ////
122
- check_show_jperrors: function ( event ) {
123
- if ( this.tID !== '' && this.jperrorIDs[ this.tID ] !== true ) {
124
- if ( event.jPlayer.error.type === 'e_no_solution' || event.jPlayer.error.type === 'e_no_support' ) {
125
- this.show_nosolution( this.tID );
126
- this.jperrorIDs[ this.tID ] = true;
127
- }
128
- }
129
- },
130
-
131
- show_nosolution: function ( j ) {
132
- jQuery('#mp3j_nosolution_' + j).empty().append(this.vars.message_nosolution).fadeIn(200);
133
- },
134
-
135
- add_jpconstruct_div: function () {
136
- var html = '<div id="mp3_jplayer_items" style="position:relative; overflow:hidden; margin:0; padding:0; border:0; width:0px; height:0px;"><div id="mp3_jplayer_1_8" style="left:-999em;"></div></div>';
137
- jQuery('body').prepend( html );
138
- },
139
-
140
- ////
141
- ////
142
-
143
-
144
-
145
- get_loaded: function (event) {
146
- var lp;
147
- if ( typeof this.jp_audio.buffered === "object" ) {
148
- if( this.jp_audio.buffered.length > 0 && this.jp_audio.duration > 0 ) {
149
- lp = 100 * this.jp_audio.buffered.end(this.jp_audio.buffered.length-1) / this.jp_audio.duration;
150
- } else {
151
- lp = 0;
152
- }
153
- } else {
154
- lp = event.jPlayer.status.seekPercent;
155
- }
156
- this.jp_seekable = event.jPlayer.status.seekPercent; //use this for slider calcs for both html/flash solution
157
- this.load_pc = lp;
158
- return lp;
159
- },
160
-
161
- Tformat: function ( sec ) {
162
- var t = sec,
163
- s = Math.floor((t)%60),
164
- m = Math.floor((t/60)%60),
165
- h = Math.floor(t/3600);
166
- return ((h > 0) ? h+':' : '') + ((m > 9) ? m : '0'+m) + ':' + ((s > 9) ? s : '0'+s);
167
- },
168
-
169
- E_loading: function ( j, lp, tt, pt ) {
170
- if (j !== '') {
171
- jQuery(this.eID.loader + j).css( "width", lp + '%' );
172
- if (this.pl_info[j].type === 'MI') {
173
- if (tt > 0 && this.played_t > 0) {
174
- jQuery(this.eID.tT + j).text(this.Tformat(tt));
175
- }
176
- }
177
- if ( this.jp_audio !== 'flash' && lp < 100 ) {
178
- if ( pt === this.played_t && this.state === 'playing' && pt > 0 && !this.sliding ) {
179
- if (this.pl_info[j].type === 'MI') {
180
- jQuery(this.eID.indiM + j).empty().append('<span class="mp3-finding"></span><span class="mp3-tint"></span>Buffering');
181
- }
182
- if (this.pl_info[j].type === 'single' ) {
183
- jQuery(this.eID.indiM + j).empty().append('<span class="Smp3-finding"></span><span class="mp3-gtint"></span> ' + this.Tformat(pt));
184
- }
185
- }
186
- this.played_t = pt;
187
- }
188
- }
189
- },
190
-
191
- E_update: function (j, lp, ppA, pt, tt) {
192
- if (j !== '') {
193
- jQuery(this.eID.loader + j).css( "width", lp + '%' );
194
- jQuery(this.eID.poscol + j).css( "width", ppA + '%' );
195
- if ( jQuery(this.eID.pos + j + ' div.ui-widget-header').length > 0 ) {
196
- jQuery(this.eID.pos + j).slider('option', 'value', 10*ppA);
197
- }
198
- if (pt > 0) {
199
- jQuery(this.eID.pos + j).css( 'visibility', 'visible' );
200
- }
201
- if (this.pl_info[j].type === 'MI') {
202
- jQuery(this.eID.pT + j).text(this.Tformat(pt));
203
- }
204
- if ('playing' === this.state) {
205
- if ('MI' === this.pl_info[j].type) {
206
- if (tt > 0 && this.played_t === pt && lp < 100 && !this.sliding ) {
207
- jQuery(this.eID.indiM + j).empty().append('<span class="mp3-finding"></span><span class="mp3-tint"></span>Buffering');
208
- jQuery(this.eID.tT + j).text(this.Tformat(tt));
209
- } else if (pt > 0) {
210
- jQuery(this.eID.indiM + j).empty().append('Playing');
211
- jQuery(this.eID.tT + j).text(this.Tformat(tt));
212
- }
213
- }
214
- if ('single' === this.pl_info[j].type){
215
- if (pt > 0 ) {
216
- if (this.played_t === pt && lp < 100 && !this.sliding ) {
217
- jQuery(this.eID.indiM + j).empty().append('<span class="Smp3-finding"></span><span class="mp3-gtint"></span> ' + this.Tformat(pt));
218
- } else {
219
- jQuery(this.eID.indiM + j).empty().append('<span class="mp3-tint tintmarg"></span> ' + this.Tformat(pt));
220
- }
221
- }
222
- }
223
- }
224
- this.played_t = pt;
225
- }
226
- },
227
-
228
- E_complete: function (j) {
229
- var p = this.pl_info[j];
230
- if ('MI' === p.type) {
231
- if (p.loop || p.tr+1 < p.list.length) {
232
- this.E_change_track(j, 'next');
233
- } else {
234
- this.E_dblstop(j);
235
- this.startup();
236
- }
237
- }
238
- if ('single' === p.type) {
239
- if (p.loop) {
240
- this.E_change_track(j, 'next');
241
- } else {
242
- this.E_stop(j);
243
- this.startup();
244
- }
245
- }
246
- },
247
-
248
- write_controls: function () {
249
- var j;
250
- for (j = 0; j < this.pl_info.length; j += 1) {
251
- this.setup_a_player(j);
252
- }
253
- },
254
-
255
- startup: function () {
256
- var j;
257
- for (j = 0; j < this.pl_info.length; j += 1) {
258
- //if (this.pl_info[j].autoplay) {
259
- if ( this.pl_info[j].autoplay && (this.pl_info[j].type === 'single' || this.pl_info[j].type === 'MI') ) {
260
- this.pl_info[j].autoplay = false;
261
- this.E_change_track(j, this.pl_info[j].tr);
262
- return;
263
- }
264
- }
265
- },
266
-
267
- setup_a_player: function (j) {
268
- var i, li, sel, that = this, p = this.pl_info[j];
269
-
270
- //PLAYLISTERS and SINGLES
271
- if ('MI' === p.type || 'single' === p.type) {
272
-
273
- jQuery(this.eID.vol + j).slider({
274
- value : p.vol,
275
- max: 100,
276
- range: 'min',
277
- animate: false,
278
- slide: function (event, ui) {
279
- p.vol = ui.value;
280
- if (j === that.tID) {
281
- jQuery(that.jpID).jPlayer("volume", ui.value/100);
282
- }
283
- }
284
- });
285
-
286
- jQuery(this.eID.pos + j).mouseup(function (e) { //for posbar
287
- that.sliding = false;
288
- });
289
-
290
- sel = ('MI' === p.type) ? this.eID.play : this.eID.playW;
291
- jQuery(sel + j).click(function () { //play-pause click
292
- that.E_change_track(j, p.tr);
293
- jQuery(this).blur();
294
- });
295
- jQuery(sel + j).dblclick(function () { //play-pause dbl click
296
- if (that.state !== "playing") {
297
- that.E_change_track(j, p.tr);
298
- }
299
- jQuery(this).blur();
300
- });
301
-
302
- this.titles(j, p.tr);
303
- }
304
-
305
- //PLAYLISTERS
306
- if ('MI' === p.type) {
307
- jQuery(this.eID.pT + j).text('00:00');
308
- jQuery(this.eID.indiM + j).text('Ready');
309
- jQuery(this.eID.stp + j).click(function () {
310
- that.E_stop(j);
311
- });
312
- jQuery(this.eID.stp + j).dblclick(function () {
313
- that.E_dblstop(j);
314
- });
315
-
316
- jQuery(this.eID.plwrap + j).hide();
317
- if (p.list.length > 1) {
318
- jQuery(this.eID.next + j).click(function () {
319
- that.E_change_track(j, 'next');
320
- });
321
- jQuery(this.eID.prev + j).click(function () {
322
- that.E_change_track(j, 'prev');
323
- });
324
- jQuery(this.eID.ul + j).empty();
325
- for (i = 0; i < p.list.length; i += 1) {
326
- li = '<li>';
327
- li += '<a href="#" id="' + this.eID.a + j + '_' + i + '">' + p.list[i].name + '</a></li>';
328
- jQuery(this.eID.ul + j).append(li);
329
- this.add_ul_click(j, i);
330
- }
331
- jQuery('#' + this.eID.a + j + '_' + p.tr).addClass('mp3j_A_current');
332
- jQuery(this.eID.toglist + j).click(function () {
333
- that.togglelist(j);
334
- });
335
- if (p.lstate === true) {
336
- jQuery(this.eID.plwrap + j).show();
337
- }
338
- }
339
-
340
- this.writedownload(j, p.tr);
341
- if ( this.vars.force_dload === true ) {
342
- this.dl_closeinfo_click(j);
343
- }
344
-
345
- jQuery(this.eID.lPP + j).click(function () {
346
- return that.E_launchPP(j);
347
- });
348
- }
349
-
350
- //POPOUT LINKS
351
- if ('popout' === p.type) {
352
- jQuery(this.eID.pplink + j).click(function () {
353
- return that.E_launchPP(j);
354
- });
355
- }
356
- },
357
-
358
- add_ul_click: function (j, i) { //playlist item click
359
- var that = this;
360
- jQuery('#' + this.eID.a + j + "_" + i).click(function (e) {
361
- that.E_change_track(j, i);
362
- e.preventDefault();
363
- });
364
- },
365
-
366
- unwrap: function () {
367
- var i, j, arr;
368
- if (this.vars.play_f === true && typeof this.lists !== "undefined" && this.lists.length > 0) {
369
- for (i = 0; i < this.lists.length; i += 1) {
370
- arr = this.lists[i];
371
- for (j = 0; j < arr.length; j += 1) {
372
- arr[j].mp3 = this.f_undo.f_con(arr[j].mp3);
373
- }
374
- }
375
- }
376
- },
377
-
378
- f_undo: {
379
- keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
380
- f_con : function (input) {
381
- var output = "", i = 0, chr1, chr2, chr3, enc1, enc2, enc3, enc4;
382
- input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
383
- while (i < input.length) {
384
- enc1 = this.keyStr.indexOf(input.charAt(i++)); enc2 = this.keyStr.indexOf(input.charAt(i++));
385
- enc3 = this.keyStr.indexOf(input.charAt(i++)); enc4 = this.keyStr.indexOf(input.charAt(i++));
386
- chr1 = (enc1 << 2) | (enc2 >> 4); chr2 = ((enc2 & 15) << 4) | (enc3 >> 2); chr3 = ((enc3 & 3) << 6) | enc4;
387
- output = output + String.fromCharCode(chr1);
388
- if (enc3 !== 64) { output = output + String.fromCharCode(chr2); }
389
- if (enc4 !== 64) { output = output + String.fromCharCode(chr3); }
390
- }
391
- output = this.utf8_f_con(output);
392
- return output;
393
- },
394
- utf8_f_con : function (utftext) {
395
- var string = "", i = 0, c, c1, c2, c3;
396
- while (i < utftext.length) {
397
- c = utftext.charCodeAt(i);
398
- if (c < 128) {
399
- string += String.fromCharCode(c); i++;
400
- } else if ((c > 191) && (c < 224)) {
401
- c2 = utftext.charCodeAt(i + 1); string += String.fromCharCode(((c & 31) << 6) | (c2 & 63)); i += 2;
402
- } else {
403
- c2 = utftext.charCodeAt(i + 1); c3 = utftext.charCodeAt(i + 2); string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)); i += 3;
404
- }
405
- }
406
- return string;
407
- }
408
- },
409
-
410
-
411
- E_stop: function (j) {
412
- if (j === this.tID && j !== '') {
413
- this.clearit();
414
- if ( jQuery(this.eID.pos + j + ' div.ui-widget-header').length > 0 ) {
415
- jQuery(this.eID.pos + j).slider('destroy');
416
- }
417
- jQuery(this.eID.loader + j).css( "width", '0%' );
418
- this.button(j, 'play');
419
- if (this.pl_info[j].type === 'MI') {
420
- jQuery(this.eID.poscol + j).css( "width", '0%' );
421
- jQuery(this.eID.tT + j).empty();
422
- jQuery(this.eID.indiM + j).text('Stopped');
423
- jQuery(this.eID.pT + j).text(this.Tformat(0));
424
- } else {
425
- jQuery(this.eID.indiM + j).empty();
426
- }
427
- this.load_pc = 0;
428
- this.played_t = 0;
429
- }
430
- },
431
-
432
- E_dblstop: function (j) {
433
- this.listclass(j, this.pl_info[j].tr, 0);
434
- if ( this.pl_info[j].tr !== 0 ) {
435
- this.titles(j, 0);
436
- }
437
- this.writedownload(j, 0);
438
- this.E_stop(j);
439
- jQuery(this.eID.indiM + j).text('Ready');
440
- this.pl_info[j].tr = 0;
441
- },
442
-
443
- E_change_track: function (j, change) {
444
- var track, txt, p = this.pl_info[j];
445
- if (j === this.tID && change === p.tr) {
446
- if ('playing' === this.state) {
447
- if (this.load_pc === 0) {
448
- this.E_stop(j);
449
- } else {
450
- this.pauseit();
451
- this.button(j, 'play');
452
- if ('MI' === p.type) {
453
- jQuery(this.eID.indiM + j).text('Paused');
454
- }
455
- }
456
- return;
457
- } else if ('paused' === this.state || 'set' === this.state) {
458
- this.playit();
459
- this.button(j, 'pause');
460
- return;
461
- }
462
- }
463
- this.E_stop(this.tID);
464
- if ('prev' === change) {
465
- track = (p.tr-1 < 0) ? p.list.length-1 : p.tr-1;
466
- } else if ('next' === change) {
467
- track = (p.tr+1 < p.list.length) ? p.tr+1 : 0;
468
- } else {
469
- track = change;
470
- }
471
- jQuery(this.jpID).jPlayer("volume", 1 ); //Vol scaling fix
472
- this.setit(p.list[track].mp3);
473
- this.playit();
474
- jQuery(this.jpID).jPlayer("volume", p.vol/100 ); //Reset to correct vol
475
- txt = ('MI' === p.type) ? '<span class="mp3-finding"></span><span class="mp3-tint"></span>Connecting' : '<span class="Smp3-finding"></span><span class="mp3-gtint"></span>';
476
- jQuery(this.eID.indiM + j).empty().append(txt);
477
- this.button(j, 'pause');
478
- this.makeslider(j);
479
- if ('MI' === p.type) {
480
- this.listclass(j, p.tr, track);
481
- if ( p.tr !== track ) {
482
- this.titles(j, track);
483
- }
484
- if (p.download) {
485
- this.writedownload(j, track);
486
- jQuery(this.eID.dload + j).hide().addClass('whilelinks').fadeIn(400);
487
- }
488
- }
489
- p.tr = track;
490
- this.tID = j;
491
- },
492
-
493
- E_launchPP: function (j) {
494
- var li_height = 28;
495
- if ( this.pl_info[j].height !== false ) {
496
- this.vars.pp_playerheight = 100 + this.pl_info[j].height;
497
- }
498
- this.vars.pp_windowheight = ( this.pl_info[j].list.length > 1 ) ? this.vars.pp_playerheight + ( this.pl_info[j].list.length * li_height) : this.vars.pp_playerheight;
499
- if ( this.vars.pp_windowheight > this.vars.pp_maxheight ) {
500
- this.vars.pp_windowheight = this.vars.pp_maxheight;
501
- }
502
- this.launched_ID = j;
503
- this.was_playing = ( this.state === "playing" ) ? true : false;
504
-
505
- this.E_stop(this.tID);
506
- this.setit(this.plugin_path + '/mp3/silence.mp3');
507
- this.playit(); //make chrome let go of last track (incase it didn't finish loading)
508
- this.clearit();
509
-
510
- var newwindow = window.open(this.plugin_path + '/popout.php', 'mp3jpopout', 'height=300, width=600, location=1, status=1, scrollbars=1, resizable=1, left=25, top=25');
511
- if ( this.pl_info[j].lstate === true ) {
512
- newwindow.resizeTo( this.vars.pp_width, this.vars.pp_windowheight );
513
- } else {
514
- newwindow.resizeTo( this.vars.pp_width, this.vars.pp_playerheight );
515
- }
516
- if (window.focus) {
517
- newwindow.focus();
518
- }
519
- return false;
520
- },
521
-
522
- setit: function (file) {
523
- this.state = 'set';
524
- jQuery(this.jpID).jPlayer("setMedia", {mp3: file});
525
- },
526
- playit: function () {
527
- this.state = 'playing';
528
- jQuery(this.jpID).jPlayer("play");
529
- },
530
- pauseit: function () {
531
- this.state = 'paused';
532
- jQuery(this.jpID).jPlayer("pause");
533
- },
534
- clearit: function () {
535
- this.state = '';
536
- jQuery(this.jpID).jPlayer("clearMedia");
537
- },
538
-
539
- button: function (j, type) {
540
- if (j === '') { return; }
541
- if ('pause' === type) {
542
- if (this.pl_info[j].play_txt === '#USE_G#') {
543
- jQuery(this.eID.play + j).removeClass('buttons_mp3j').addClass('buttons_mp3jpause');
544
- } else {
545
- jQuery(this.eID.play + j).text(this.pl_info[j].pause_txt);
546
- }
547
- }
548
- if ('play' === type) {
549
- if (this.pl_info[j].play_txt === '#USE_G#') {
550
- jQuery(this.eID.play + j).removeClass('buttons_mp3jpause').addClass('buttons_mp3j');
551
- } else {
552
- jQuery(this.eID.play + j).text(this.pl_info[j].play_txt);
553
- }
554
- }
555
- },
556
-
557
- listclass: function ( j, rem, add ) {
558
- jQuery('#'+ this.eID.a + j +'_'+ rem).removeClass('mp3j_A_current');
559
- jQuery('#'+ this.eID.a + j +'_'+ add).addClass('mp3j_A_current');
560
- },
561
-
562
- titles: function ( j, track ) {
563
- var p = this.pl_info[j], Olink = '', Clink = '';
564
- if (p.type === "MI") {
565
- jQuery(this.eID.title + j).empty().append(p.list[track].name).append('<br /><span>' + p.list[track].artist + '</span>');
566
- if (p.list[track].image !== '') {
567
- if (p.list[track].imgurl !== '') {
568
- Olink = '<a href="' + p.list[track].imgurl + '">';
569
- Clink = '</a>';
570
- }
571
- jQuery(this.eID.img + j).empty().hide().append(Olink + '<img src="' + p.list[track].image + '" />' + Clink).fadeIn(300);
572
- }
573
- }
574
- },
575
-
576
- writedownload: function ( j, track ) {
577
- var p = this.pl_info[j];
578
- if (p.download) {
579
- jQuery(this.eID.dload + j).empty().removeClass('whilelinks').append('<a id="mp3j_dlanchor_' + j + '" href="' + p.list[track].mp3 + '" target="_blank">' + this.vars.dload_text + '</a>');
580
- if ( this.vars.force_dload === true ) {
581
- this.dl_button_click( j );
582
- }
583
- }
584
- },
585
-
586
- togglelist: function ( j ) {
587
- if (this.pl_info[j].lstate === true) {
588
- jQuery(this.eID.plwrap + j).fadeOut(300);
589
- jQuery(this.eID.toglist + j).text('SHOW');
590
- this.pl_info[j].lstate = false;
591
- } else if (this.pl_info[j].lstate === false) {
592
- jQuery(this.eID.plwrap + j).fadeIn("slow");
593
- jQuery(this.eID.toglist + j).text('HIDE');
594
- this.pl_info[j].lstate = true;
595
- }
596
- },
597
-
598
- makeslider: function (j) {
599
- var phmove, cssmove, that = this;
600
- jQuery(this.eID.pos + j).css( 'visibility', 'hidden' );
601
- jQuery(this.eID.pos + j).slider({
602
- max: 1000,
603
- range: 'min',
604
- animate: false,
605
- slide: function (event, ui) {
606
- if ((ui.value/10) < that.load_pc) {
607
- cssmove = ui.value/10;
608
- phmove = ui.value*(10.0/that.jp_seekable);
609
- } else {
610
- cssmove = 0.99*that.load_pc;
611
- phmove = (9.9*that.load_pc)*(10.0/that.jp_seekable);
612
- }
613
- jQuery(that.eID.poscol + j).css('width', cssmove + '%');
614
- jQuery(that.jpID).jPlayer("playHead", phmove );
615
- if (that.state === 'paused') {
616
- that.button(j, 'pause');
617
- that.playit();
618
- }
619
- that.state = 'playing';
620
- that.sliding = true;
621
- }
622
- });
623
- }
624
-
625
- };
626
-
627
- // Force browser download
628
- MP3_JPLAYER.dl_button_click = function ( j ) {
629
- var that = this, p = this.pl_info[j];
630
- jQuery('#mp3j_dlanchor_' + j).click(function (e) {
631
- that.dl_runinfo( p.list[p.tr].mp3, j, e );
632
- e.preventDefault();
633
- });
634
- };
635
-
636
- MP3_JPLAYER.dl_closeinfo_click = function ( j ) {
637
- var that = this;
638
- jQuery('#mp3j_finfo_close_' + j).click(function () {
639
- that.dl_dialogue( j, '', 'close');
640
- that.clear_timers( j );
641
- });
642
- };
643
-
644
- MP3_JPLAYER.dl_runinfo = function ( get, j, e ) {
645
- var can_write,
646
- dlpath,
647
- message,
648
- that = this,
649
- dlframe = false,
650
- p = this.pl_info[j],
651
- is_local = this.is_local_dload( get );
652
-
653
- var enc_get;
654
-
655
- if ( !this.intervalIDs[ j ] && !this.timeoutIDs[ j ] ) { //if timers not already running for this player
656
- can_write = this.write_cookie('mp3Download' + j, 'waiting', '');
657
- if ( is_local ) {
658
- if ( can_write !== false ) {
659
- this.dl_dialogue( j, this.vars.message_interval, 'check');
660
- } else {
661
- this.dl_dialogue( j, this.vars.message_indark, 'indark');
662
- }
663
- this.intervalIDs[ j ] = setInterval( function(){ that.dl_interval_check( j, can_write ); }, 500);
664
- this.timeoutIDs[ j ] = setTimeout( function(){ that.dl_timeout( j, can_write ); }, 7000);
665
- dlframe = true;
666
- } else {
667
- if ( this.vars.dl_remote_path === '' ) {
668
- message = this.vars.message_promtlink.replace('#1', get);
669
- message = message.replace('#2', p.list[p.tr].name);
670
- this.dl_dialogue( j, message, 'indark');
671
- } else {
672
- message = this.vars.message_indark.replace('#1', get);
673
- message = message.replace('#2', p.list[p.tr].name);
674
- this.dl_dialogue( j, message, 'indark');
675
- dlframe = true;
676
- }
677
- }
678
- this.dl_dialogs[ j ] = 'false';
679
- if ( dlframe ) {
680
- dlpath = this.get_dloader_path( get );
681
- enc_get = encodeURIComponent( get );
682
- //jQuery('#mp3j_dlf_' + j).empty().append('<iframe id="mp3j_dlframe_' + j + '" name="mp3j_dlframe_' + j + '" class="mp3j-dlframe" src="' + dlpath + '?mp3=loc' + get + '&pID=' + j + '" style="display:none;"></iframe>');
683
- jQuery('#mp3j_dlf_' + j).empty().append('<iframe id="mp3j_dlframe_' + j + '" name="mp3j_dlframe_' + j + '" class="mp3j-dlframe" src="' + dlpath + '?mp3=loc' + enc_get + '&pID=' + j + '" style="display:none;"></iframe>');
684
- }
685
- }
686
- };
687
-
688
- MP3_JPLAYER.dl_interval_check = function ( j, can_write ) {
689
- if ( can_write !== false && this.read_cookie('mp3Download' + j) === 'true' ) { //got cookie back, all should be good
690
- this.dl_dialogue( j, this.vars.message_ok, 'hide');
691
- //jQuery('#debug').append('<br />check: cookie '+j+' true');
692
- this.clear_timers( j );
693
- } else if ( this.dl_dialogs[ j ] !== 'false' ) { //got a message back
694
- this.dl_dialogue( j, this.dl_dialogs[ j ], 'add');
695
- //jQuery('#debug').append('<br />check: dialog'+j+' true');
696
- this.clear_timers( j );
697
- } //else {
698
- //jQuery('#debug').append('<br />check: neither '+j+'...# ');
699
- //}
700
- };
701
-
702
- MP3_JPLAYER.dl_timeout = function ( j, can_write ) {
703
- this.clear_timers( j );
704
- if ( can_write !== false ) {
705
- this.dl_dialogue( j, this.vars.message_timeout, 'add');
706
- }
707
- //jQuery('#debug').append('<br />no responses ('+j+' timed out) ');
708
- };
709
-
710
- MP3_JPLAYER.clear_timers = function ( j ) {
711
- if ( this.intervalIDs[ j ] !== null && this.timeoutIDs[ j ] !== null ) {
712
- clearInterval( this.intervalIDs[j] );
713
- clearTimeout( this.timeoutIDs[j] );
714
- this.intervalIDs[ j ] = null;
715
- this.timeoutIDs[j] = null;
716
- }
717
- jQuery('#mp3j_dlf_' + j).empty(); //ditch iframe
718
- this.write_cookie('mp3Download' + j, '', -1); //clear any cookie
719
- //jQuery('#debug').append('<br />cookie/frame '+j+' cleared');
720
- };
721
-
722
- MP3_JPLAYER.dl_dialogue = function ( j, text, state ) {
723
- if ( 'check' === state ) {
724
- jQuery('#mp3j_finfo_gif_' + j).show();
725
- jQuery('#mp3j_finfo_txt_' + j).empty().append(text).show();
726
- jQuery('#mp3j_finfo_' + j).show();
727
- } else if ( 'add' === state ) {
728
- jQuery('#mp3j_finfo_gif_' + j).hide();
729
- jQuery('#mp3j_finfo_txt_' + j).empty().append(text).show();
730
- } else if ( 'indark' === state ) {
731
- jQuery('#mp3j_finfo_gif_' + j).hide();
732
- jQuery('#mp3j_finfo_txt_' + j).empty().append(text).show();
733
- jQuery('#mp3j_finfo_' + j).fadeIn(100);
734
- } else if ( 'close' === state ) {
735
- jQuery('#mp3j_finfo_gif_' + j).hide();
736
- jQuery('#mp3j_finfo_' + j).hide();
737
- } else {
738
- jQuery('#mp3j_finfo_gif_' + j).hide();
739
- if ( text !== '' ) {
740
- jQuery('#mp3j_finfo_txt_' + j).empty().append(text).show();
741
- }
742
- jQuery('#mp3j_finfo_' + j).fadeOut(1000);
743
- }
744
- };
745
-
746
- MP3_JPLAYER.read_cookie = function ( name ) {
747
- var i, cookie, allCookies = document.cookie.split('; ');
748
- if ( allCookies.length > 0 ) {
749
- for ( i = 0; i < allCookies.length; i += 1 ) {
750
- cookie = allCookies[i].split( '=' );
751
- if ( cookie[0] === name ) {
752
- return cookie[1];
753
- }
754
- }
755
- }
756
- return false;
757
- };
758
-
759
- MP3_JPLAYER.write_cookie = function ( name, value, days ) {
760
- var date, expires = "";
761
- if ( days ) {
762
- date = new Date();
763
- date.setTime( date.getTime() + (days*24*60*60*1000) );
764
- expires = "; expires=" + date.toGMTString();
765
- }
766
- document.cookie = name + "=" + value + expires + "; path=/";
767
- return this.read_cookie( name );
768
- };
769
-
770
- MP3_JPLAYER.get_dloader_path = function ( loc ) {
771
- var k, path = "", file = "", chunks;
772
- chunks = loc.split('/');
773
- file = chunks[chunks.length-1];
774
- //jQuery('#debug').append('<br />');
775
- //for ( k = 0; k < chunks.length; k += 1 ) {
776
- // jQuery('#debug').append('<br />[' + k + '] ' + chunks[k]);
777
- //}
778
- //jQuery('#debug').append('<br />file:' + file);
779
- if ( loc.charAt(0) === '/' ) {
780
- path = this.plugin_path + '/download.php';
781
- } else {
782
- path = chunks[2].replace(/^www./i, "");
783
- if ( path === this.dl_domain ) {
784
- path = this.plugin_path + '/download.php';
785
- } else {
786
- path = chunks[0] + '//' + chunks[2] + this.vars.dl_remote_path;
787
- }
788
- }
789
- //jQuery('#debug').append('<br />path:' + path);
790
- return path;
791
- };
792
-
793
- MP3_JPLAYER.is_local_dload = function ( loc ) {
794
- var domain = "", file = "", chunks, is_local = false;
795
- chunks = loc.split('/');
796
- file = chunks[chunks.length-1];
797
- if ( loc.charAt(0) === '/' ) {
798
- is_local = true;
799
- } else {
800
- domain = chunks[2].replace(/^www./i, "");
801
- if ( domain === this.dl_domain ) {
802
- is_local = true;
803
- }
804
- }
805
- return is_local;
806
- };
807
-
1
+ /*
2
+ MP3-jPlayer 1.8.9
3
+ www.sjward.org
4
+ */
5
+
6
+ var MP3_JPLAYER = {
7
+
8
+ tID: '',
9
+ state: '',
10
+ pl_info: [],
11
+ load_pc: 0,
12
+ played_t: 0,
13
+ dl_dialogs: [],
14
+ timeoutIDs: [],
15
+ intervalIDs: [],
16
+ jperrorIDs: [],
17
+ dl_domain: '',
18
+ jp_audio: {},
19
+ jp_seekable: 0,
20
+ sliding: false,
21
+ launched_ID: null,
22
+ jpID: '#mp3_jplayer_1_8',
23
+ plugin_path: '',
24
+ lastformats: '',
25
+ was_playing: false,
26
+
27
+ vars: {
28
+ play_f: false,
29
+ stylesheet_url: '',
30
+ dload_text: 'DOWNLOAD MP3',
31
+ pp_width: 280,
32
+ pp_maxheight: 350,
33
+ pp_bodycolour: '#fff',
34
+ pp_bodyimg: '',
35
+ pp_fixedcss: false,
36
+ pp_windowheight: 600,
37
+ pp_playerheight: 100+142,
38
+ force_dload: false,
39
+ message_interval: '<h2>Download MP3</h2><p style="margin-top:34px !important;">Your download should start in a second!</p>',
40
+ message_ok: '',
41
+ message_indark: '<h2>Download MP3</h2><p>Your download should start in a second!</p>',
42
+ message_promtlink: '<h2>Download MP3</h2><p>Link to the file:</p><h3><a target="_blank" href="#1">#2</a></h3><p>Depending on your browser settings, you may need to right click the link to save it.</p>',
43
+ message_fail: '<h2>Download Failed</h2><p>Sorry, something went wrong!</p>',
44
+ message_timeout: '<h2>Download<br />Unavailable</h2><p>please try again later!</p>',
45
+ dl_remote_path: ''
46
+ },
47
+
48
+ eID: {
49
+ play: '#playpause_mp3j_',
50
+ playW: '#playpause_wrap_mp3j_',
51
+ stp: '#stop_mp3j_',
52
+ prev: '#Prev_mp3j_',
53
+ next: '#Next_mp3j_',
54
+ vol: '#vol_mp3j_',
55
+ loader: '#load_mp3j_',
56
+ pos: '#posbar_mp3j_',
57
+ poscol: '#poscol_mp3j_',
58
+ title: '#T_mp3j_',
59
+ caption: '#C_mp3j_',
60
+ pT: '#P-Time-MI_',
61
+ tT: '#T-Time-MI_',
62
+ dload: '#download_mp3j_',
63
+ plwrap: '#L_mp3j_',
64
+ ul: '#UL_mp3j_',
65
+ a: 'mp3j_A_', //No hash!
66
+ indiM: '#statusMI_',
67
+ toglist: '#playlist-toggle_',
68
+ lPP: '#lpp_mp3j_',
69
+ pplink: '#mp3j_popout_',
70
+ img: '#MI_image_'
71
+ },
72
+
73
+ init: function () {
74
+ var plpath, that = this;
75
+
76
+ plpath = this.plugin_path.split('/');
77
+ this.dl_domain = plpath[2].replace(/^www./i, "");
78
+
79
+ this.unwrap();
80
+ this.write_controls();
81
+ this.add_jpconstruct_div();
82
+
83
+ jQuery(this.jpID).jPlayer({
84
+ ready: function () {
85
+ that.startup();
86
+ },
87
+ swfPath: that.plugin_path + '/js/Jplayer271.swf',
88
+ volume: 1,
89
+ supplied: "mp3",
90
+ wmode: "window",
91
+ solution:"html, flash",
92
+ preload: "none"
93
+ });
94
+ jQuery(this.jpID).bind(jQuery.jPlayer.event.ended, function(event) {
95
+ that.E_complete(that.tID);
96
+ });
97
+ jQuery(this.jpID).bind(jQuery.jPlayer.event.timeupdate, function(event) {
98
+ var lp = that.get_loaded(event);
99
+ var ppA = event.jPlayer.status.currentPercentAbsolute;
100
+ var pt = event.jPlayer.status.currentTime;
101
+ var tt = event.jPlayer.status.duration;
102
+ that.E_update(that.tID, lp, ppA, pt, tt);
103
+ });
104
+ jQuery(this.jpID).bind(jQuery.jPlayer.event.ready, function(event) {
105
+ if(event.jPlayer.html.used && event.jPlayer.html.audio.available) {
106
+ that.jp_audio = jQuery(that.jpID).data("jPlayer").htmlElement.audio;
107
+ } else {
108
+ that.jp_audio = 'flash';
109
+ }
110
+ });
111
+ jQuery(this.jpID).bind(jQuery.jPlayer.event.progress, function(event) {
112
+ var lp = that.get_loaded(event);
113
+ var pt = event.jPlayer.status.currentTime;
114
+ var tt = event.jPlayer.status.duration;
115
+ that.E_loading( that.tID, lp, tt, pt );
116
+ });
117
+ },
118
+
119
+
120
+ ////
121
+ ////
122
+ check_show_jperrors: function ( event ) {
123
+ if ( this.tID !== '' && this.jperrorIDs[ this.tID ] !== true ) {
124
+ if ( event.jPlayer.error.type === 'e_no_solution' || event.jPlayer.error.type === 'e_no_support' ) {
125
+ this.show_nosolution( this.tID );
126
+ this.jperrorIDs[ this.tID ] = true;
127
+ }
128
+ }
129
+ },
130
+
131
+ show_nosolution: function ( j ) {
132
+ jQuery('#mp3j_nosolution_' + j).empty().append(this.vars.message_nosolution).fadeIn(200);
133
+ },
134
+
135
+ add_jpconstruct_div: function () {
136
+ var html = '<div id="mp3_jplayer_items" style="position:relative; overflow:hidden; margin:0; padding:0; border:0; width:0px; height:0px;"><div id="mp3_jplayer_1_8" style="left:-999em;"></div></div>';
137
+ jQuery('body').prepend( html );
138
+ },
139
+
140
+ ////
141
+ ////
142
+
143
+
144
+
145
+ get_loaded: function (event) {
146
+ var lp;
147
+ if ( typeof this.jp_audio.buffered === "object" ) {
148
+ if( this.jp_audio.buffered.length > 0 && this.jp_audio.duration > 0 ) {
149
+ lp = 100 * this.jp_audio.buffered.end(this.jp_audio.buffered.length-1) / this.jp_audio.duration;
150
+ } else {
151
+ lp = 0;
152
+ }
153
+ } else {
154
+ lp = event.jPlayer.status.seekPercent;
155
+ }
156
+ this.jp_seekable = event.jPlayer.status.seekPercent; //use this for slider calcs for both html/flash solution
157
+ this.load_pc = lp;
158
+ return lp;
159
+ },
160
+
161
+ Tformat: function ( sec ) {
162
+ var t = sec,
163
+ s = Math.floor((t)%60),
164
+ m = Math.floor((t/60)%60),
165
+ h = Math.floor(t/3600);
166
+ return ((h > 0) ? h+':' : '') + ((m > 9) ? m : '0'+m) + ':' + ((s > 9) ? s : '0'+s);
167
+ },
168
+
169
+ E_loading: function ( j, lp, tt, pt ) {
170
+ if (j !== '') {
171
+ jQuery(this.eID.loader + j).css( "width", lp + '%' );
172
+ if (this.pl_info[j].type === 'MI') {
173
+ if (tt > 0 && this.played_t > 0) {
174
+ jQuery(this.eID.tT + j).text(this.Tformat(tt));
175
+ }
176
+ }
177
+ if ( this.jp_audio !== 'flash' && lp < 100 ) {
178
+ if ( pt === this.played_t && this.state === 'playing' && pt > 0 && !this.sliding ) {
179
+ if (this.pl_info[j].type === 'MI') {
180
+ jQuery(this.eID.indiM + j).empty().append('<span class="mp3-finding"></span><span class="mp3-tint"></span>Buffering');
181
+ }
182
+ if (this.pl_info[j].type === 'single' ) {
183
+ jQuery(this.eID.indiM + j).empty().append('<span class="Smp3-finding"></span><span class="mp3-gtint"></span> ' + this.Tformat(pt));
184
+ }
185
+ }
186
+ this.played_t = pt;
187
+ }
188
+ }
189
+ },
190
+
191
+ E_update: function (j, lp, ppA, pt, tt) {
192
+ if (j !== '') {
193
+ jQuery(this.eID.loader + j).css( "width", lp + '%' );
194
+ jQuery(this.eID.poscol + j).css( "width", ppA + '%' );
195
+ if ( jQuery(this.eID.pos + j + ' div.ui-widget-header').length > 0 ) {
196
+ jQuery(this.eID.pos + j).slider('option', 'value', 10*ppA);
197
+ }
198
+ if (pt > 0) {
199
+ jQuery(this.eID.pos + j).css( 'visibility', 'visible' );
200
+ }
201
+ if (this.pl_info[j].type === 'MI') {
202
+ jQuery(this.eID.pT + j).text(this.Tformat(pt));
203
+ }
204
+ if ('playing' === this.state) {
205
+ if ('MI' === this.pl_info[j].type) {
206
+ if (tt > 0 && this.played_t === pt && lp < 100 && !this.sliding ) {
207
+ jQuery(this.eID.indiM + j).empty().append('<span class="mp3-finding"></span><span class="mp3-tint"></span>Buffering');
208
+ jQuery(this.eID.tT + j).text(this.Tformat(tt));
209
+ } else if (pt > 0) {
210
+ jQuery(this.eID.indiM + j).empty().append('Playing');
211
+ jQuery(this.eID.tT + j).text(this.Tformat(tt));
212
+ }
213
+ }
214
+ if ('single' === this.pl_info[j].type){
215
+ if (pt > 0 ) {
216
+ if (this.played_t === pt && lp < 100 && !this.sliding ) {
217
+ jQuery(this.eID.indiM + j).empty().append('<span class="Smp3-finding"></span><span class="mp3-gtint"></span> ' + this.Tformat(pt));
218
+ } else {
219
+ jQuery(this.eID.indiM + j).empty().append('<span class="mp3-tint tintmarg"></span> ' + this.Tformat(pt));
220
+ }
221
+ }
222
+ }
223
+ }
224
+ this.played_t = pt;
225
+ }
226
+ },
227
+
228
+ E_complete: function (j) {
229
+ var p = this.pl_info[j];
230
+ if ('MI' === p.type) {
231
+ if (p.loop || p.tr+1 < p.list.length) {
232
+ this.E_change_track(j, 'next');
233
+ } else {
234
+ this.E_dblstop(j);
235
+ this.startup();
236
+ }
237
+ }
238
+ if ('single' === p.type) {
239
+ if (p.loop) {
240
+ this.E_change_track(j, 'next');
241
+ } else {
242
+ this.E_stop(j);
243
+ this.startup();
244
+ }
245
+ }
246
+ },
247
+
248
+ write_controls: function () {
249
+ var j;
250
+ for (j = 0; j < this.pl_info.length; j += 1) {
251
+ this.setup_a_player(j);
252
+ }
253
+ },
254
+
255
+ startup: function () {
256
+ var j;
257
+ for (j = 0; j < this.pl_info.length; j += 1) {
258
+ //if (this.pl_info[j].autoplay) {
259
+ if ( this.pl_info[j].autoplay && (this.pl_info[j].type === 'single' || this.pl_info[j].type === 'MI') ) {
260
+ this.pl_info[j].autoplay = false;
261
+ this.E_change_track(j, this.pl_info[j].tr);
262
+ return;
263
+ }
264
+ }
265
+ },
266
+
267
+ setup_a_player: function (j) {
268
+ var i, li, sel, that = this, p = this.pl_info[j];
269
+
270
+ //PLAYLISTERS and SINGLES
271
+ if ('MI' === p.type || 'single' === p.type) {
272
+
273
+ jQuery(this.eID.vol + j).slider({
274
+ value : p.vol,
275
+ max: 100,
276
+ range: 'min',
277
+ animate: false,
278
+ slide: function (event, ui) {
279
+ p.vol = ui.value;
280
+ if (j === that.tID) {
281
+ jQuery(that.jpID).jPlayer("volume", ui.value/100);
282
+ }
283
+ }
284
+ });
285
+
286
+ jQuery(this.eID.pos + j).mouseup(function (e) { //for posbar
287
+ that.sliding = false;
288
+ });
289
+
290
+ sel = ('MI' === p.type) ? this.eID.play : this.eID.playW;
291
+ jQuery(sel + j).click(function () { //play-pause click
292
+ that.E_change_track(j, p.tr);
293
+ jQuery(this).blur();
294
+ });
295
+ jQuery(sel + j).dblclick(function () { //play-pause dbl click
296
+ if (that.state !== "playing") {
297
+ that.E_change_track(j, p.tr);
298
+ }
299
+ jQuery(this).blur();
300
+ });
301
+
302
+ this.titles(j, p.tr);
303
+ }
304
+
305
+ //PLAYLISTERS
306
+ if ('MI' === p.type) {
307
+ jQuery(this.eID.pT + j).text('00:00');
308
+ jQuery(this.eID.indiM + j).text('Ready');
309
+ jQuery(this.eID.stp + j).click(function () {
310
+ that.E_stop(j);
311
+ });
312
+ jQuery(this.eID.stp + j).dblclick(function () {
313
+ that.E_dblstop(j);
314
+ });
315
+
316
+ jQuery(this.eID.plwrap + j).hide();
317
+ if (p.list.length > 1) {
318
+ jQuery(this.eID.next + j).click(function () {
319
+ that.E_change_track(j, 'next');
320
+ });
321
+ jQuery(this.eID.prev + j).click(function () {
322
+ that.E_change_track(j, 'prev');
323
+ });
324
+ jQuery(this.eID.ul + j).empty();
325
+ for (i = 0; i < p.list.length; i += 1) {
326
+ li = '<li>';
327
+ li += '<a href="#" id="' + this.eID.a + j + '_' + i + '">' + p.list[i].name + '</a></li>';
328
+ jQuery(this.eID.ul + j).append(li);
329
+ this.add_ul_click(j, i);
330
+ }
331
+ jQuery('#' + this.eID.a + j + '_' + p.tr).addClass('mp3j_A_current');
332
+ jQuery(this.eID.toglist + j).click(function () {
333
+ that.togglelist(j);
334
+ });
335
+ if (p.lstate === true) {
336
+ jQuery(this.eID.plwrap + j).show();
337
+ }
338
+ }
339
+
340
+ this.writedownload(j, p.tr);
341
+ if ( this.vars.force_dload === true ) {
342
+ this.dl_closeinfo_click(j);
343
+ }
344
+
345
+ jQuery(this.eID.lPP + j).click(function () {
346
+ return that.E_launchPP(j);
347
+ });
348
+ }
349
+
350
+ //POPOUT LINKS
351
+ if ('popout' === p.type) {
352
+ jQuery(this.eID.pplink + j).click(function () {
353
+ return that.E_launchPP(j);
354
+ });
355
+ }
356
+ },
357
+
358
+ add_ul_click: function (j, i) { //playlist item click
359
+ var that = this;
360
+ jQuery('#' + this.eID.a + j + "_" + i).click(function (e) {
361
+ that.E_change_track(j, i);
362
+ e.preventDefault();
363
+ });
364
+ },
365
+
366
+ unwrap: function () {
367
+ var i, j, arr;
368
+ if (this.vars.play_f === true && typeof this.lists !== "undefined" && this.lists.length > 0) {
369
+ for (i = 0; i < this.lists.length; i += 1) {
370
+ arr = this.lists[i];
371
+ for (j = 0; j < arr.length; j += 1) {
372
+ arr[j].mp3 = this.f_undo.f_con(arr[j].mp3);
373
+ }
374
+ }
375
+ }
376
+ },
377
+
378
+ f_undo: {
379
+ keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
380
+ f_con : function (input) {
381
+ var output = "", i = 0, chr1, chr2, chr3, enc1, enc2, enc3, enc4;
382
+ input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
383
+ while (i < input.length) {
384
+ enc1 = this.keyStr.indexOf(input.charAt(i++)); enc2 = this.keyStr.indexOf(input.charAt(i++));
385
+ enc3 = this.keyStr.indexOf(input.charAt(i++)); enc4 = this.keyStr.indexOf(input.charAt(i++));
386
+ chr1 = (enc1 << 2) | (enc2 >> 4); chr2 = ((enc2 & 15) << 4) | (enc3 >> 2); chr3 = ((enc3 & 3) << 6) | enc4;
387
+ output = output + String.fromCharCode(chr1);
388
+ if (enc3 !== 64) { output = output + String.fromCharCode(chr2); }
389
+ if (enc4 !== 64) { output = output + String.fromCharCode(chr3); }
390
+ }
391
+ output = this.utf8_f_con(output);
392
+ return output;
393
+ },
394
+ utf8_f_con : function (utftext) {
395
+ var string = "", i = 0, c, c1, c2, c3;
396
+ while (i < utftext.length) {
397
+ c = utftext.charCodeAt(i);
398
+ if (c < 128) {
399
+ string += String.fromCharCode(c); i++;
400
+ } else if ((c > 191) && (c < 224)) {
401
+ c2 = utftext.charCodeAt(i + 1); string += String.fromCharCode(((c & 31) << 6) | (c2 & 63)); i += 2;
402
+ } else {
403
+ c2 = utftext.charCodeAt(i + 1); c3 = utftext.charCodeAt(i + 2); string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)); i += 3;
404
+ }
405
+ }
406
+ return string;
407
+ }
408
+ },
409
+
410
+
411
+ E_stop: function (j) {
412
+ if (j === this.tID && j !== '') {
413
+ this.clearit();
414
+ if ( jQuery(this.eID.pos + j + ' div.ui-widget-header').length > 0 ) {
415
+ jQuery(this.eID.pos + j).slider('destroy');
416
+ }
417
+ jQuery(this.eID.loader + j).css( "width", '0%' );
418
+ this.button(j, 'play');
419
+ if (this.pl_info[j].type === 'MI') {
420
+ jQuery(this.eID.poscol + j).css( "width", '0%' );
421
+ jQuery(this.eID.tT + j).empty();
422
+ jQuery(this.eID.indiM + j).text('Stopped');
423
+ jQuery(this.eID.pT + j).text(this.Tformat(0));
424
+ } else {
425
+ jQuery(this.eID.indiM + j).empty();
426
+ }
427
+ this.load_pc = 0;
428
+ this.played_t = 0;
429
+ }
430
+ },
431
+
432
+ E_dblstop: function (j) {
433
+ this.listclass(j, this.pl_info[j].tr, 0);
434
+ if ( this.pl_info[j].tr !== 0 ) {
435
+ this.titles(j, 0);
436
+ }
437
+ this.writedownload(j, 0);
438
+ this.E_stop(j);
439
+ jQuery(this.eID.indiM + j).text('Ready');
440
+ this.pl_info[j].tr = 0;
441
+ },
442
+
443
+ E_change_track: function (j, change) {
444
+ var track, txt, p = this.pl_info[j];
445
+ if (j === this.tID && change === p.tr) {
446
+ if ('playing' === this.state) {
447
+ if (this.load_pc === 0) {
448
+ this.E_stop(j);
449
+ } else {
450
+ this.pauseit();
451
+ this.button(j, 'play');
452
+ if ('MI' === p.type) {
453
+ jQuery(this.eID.indiM + j).text('Paused');
454
+ }
455
+ }
456
+ return;
457
+ } else if ('paused' === this.state || 'set' === this.state) {
458
+ this.playit();
459
+ this.button(j, 'pause');
460
+ return;
461
+ }
462
+ }
463
+ this.E_stop(this.tID);
464
+ if ('prev' === change) {
465
+ track = (p.tr-1 < 0) ? p.list.length-1 : p.tr-1;
466
+ } else if ('next' === change) {
467
+ track = (p.tr+1 < p.list.length) ? p.tr+1 : 0;
468
+ } else {
469
+ track = change;
470
+ }
471
+ jQuery(this.jpID).jPlayer("volume", 1 ); //Vol scaling fix
472
+ this.setit(p.list[track].mp3);
473
+ this.playit();
474
+ jQuery(this.jpID).jPlayer("volume", p.vol/100 ); //Reset to correct vol
475
+ txt = ('MI' === p.type) ? '<span class="mp3-finding"></span><span class="mp3-tint"></span>Connecting' : '<span class="Smp3-finding"></span><span class="mp3-gtint"></span>';
476
+ jQuery(this.eID.indiM + j).empty().append(txt);
477
+ this.button(j, 'pause');
478
+ this.makeslider(j);
479
+ if ('MI' === p.type) {
480
+ this.listclass(j, p.tr, track);
481
+ if ( p.tr !== track ) {
482
+ this.titles(j, track);
483
+ }
484
+ if (p.download) {
485
+ this.writedownload(j, track);
486
+ jQuery(this.eID.dload + j).hide().addClass('whilelinks').fadeIn(400);
487
+ }
488
+ }
489
+ p.tr = track;
490
+ this.tID = j;
491
+ },
492
+
493
+ E_launchPP: function (j) {
494
+ var li_height = 28;
495
+ if ( this.pl_info[j].height !== false ) {
496
+ this.vars.pp_playerheight = 100 + this.pl_info[j].height;
497
+ }
498
+ this.vars.pp_windowheight = ( this.pl_info[j].list.length > 1 ) ? this.vars.pp_playerheight + ( this.pl_info[j].list.length * li_height) : this.vars.pp_playerheight;
499
+ if ( this.vars.pp_windowheight > this.vars.pp_maxheight ) {
500
+ this.vars.pp_windowheight = this.vars.pp_maxheight;
501
+ }
502
+ this.launched_ID = j;
503
+ this.was_playing = ( this.state === "playing" ) ? true : false;
504
+
505
+ this.E_stop(this.tID);
506
+ this.setit(this.plugin_path + '/mp3/silence.mp3');
507
+ this.playit(); //make chrome let go of last track (incase it didn't finish loading)
508
+ this.clearit();
509
+
510
+ var newwindow = window.open(this.plugin_path + '/popout.php', 'mp3jpopout', 'height=300, width=600, location=1, status=1, scrollbars=1, resizable=1, left=25, top=25');
511
+ if ( this.pl_info[j].lstate === true ) {
512
+ newwindow.resizeTo( this.vars.pp_width, this.vars.pp_windowheight );
513
+ } else {
514
+ newwindow.resizeTo( this.vars.pp_width, this.vars.pp_playerheight );
515
+ }
516
+ if (window.focus) {
517
+ newwindow.focus();
518
+ }
519
+ return false;
520
+ },
521
+
522
+ setit: function (file) {
523
+ this.state = 'set';
524
+ jQuery(this.jpID).jPlayer("setMedia", {mp3: file});
525
+ },
526
+ playit: function () {
527
+ this.state = 'playing';
528
+ jQuery(this.jpID).jPlayer("play");
529
+ },
530
+ pauseit: function () {
531
+ this.state = 'paused';
532
+ jQuery(this.jpID).jPlayer("pause");
533
+ },
534
+ clearit: function () {
535
+ this.state = '';
536
+ jQuery(this.jpID).jPlayer("clearMedia");
537
+ },
538
+
539
+ button: function (j, type) {
540
+ if (j === '') { return; }
541
+ if ('pause' === type) {
542
+ if (this.pl_info[j].play_txt === '#USE_G#') {
543
+ jQuery(this.eID.play + j).removeClass('buttons_mp3j').addClass('buttons_mp3jpause');
544
+ } else {
545
+ jQuery(this.eID.play + j).text(this.pl_info[j].pause_txt);
546
+ }
547
+ }
548
+ if ('play' === type) {
549
+ if (this.pl_info[j].play_txt === '#USE_G#') {
550
+ jQuery(this.eID.play + j).removeClass('buttons_mp3jpause').addClass('buttons_mp3j');
551
+ } else {
552
+ jQuery(this.eID.play + j).text(this.pl_info[j].play_txt);
553
+ }
554
+ }
555
+ },
556
+
557
+ listclass: function ( j, rem, add ) {
558
+ jQuery('#'+ this.eID.a + j +'_'+ rem).removeClass('mp3j_A_current');
559
+ jQuery('#'+ this.eID.a + j +'_'+ add).addClass('mp3j_A_current');
560
+ },
561
+
562
+ titles: function ( j, track ) {
563
+ var p = this.pl_info[j], Olink = '', Clink = '';
564
+ if (p.type === "MI") {
565
+ jQuery(this.eID.title + j).empty().append(p.list[track].name).append('<br /><span>' + p.list[track].artist + '</span>');
566
+ if (p.list[track].image !== '') {
567
+ if (p.list[track].imgurl !== '') {
568
+ Olink = '<a href="' + p.list[track].imgurl + '">';
569
+ Clink = '</a>';
570
+ }
571
+ jQuery(this.eID.img + j).empty().hide().append(Olink + '<img src="' + p.list[track].image + '" />' + Clink).fadeIn(300);
572
+ }
573
+ }
574
+ },
575
+
576
+ writedownload: function ( j, track ) {
577
+ var p = this.pl_info[j];
578
+ if (p.download) {
579
+ jQuery(this.eID.dload + j).empty().removeClass('whilelinks').append('<a id="mp3j_dlanchor_' + j + '" href="' + p.list[track].mp3 + '" target="_blank">' + this.vars.dload_text + '</a>');
580
+ if ( this.vars.force_dload === true ) {
581
+ this.dl_button_click( j );
582
+ }
583
+ }
584
+ },
585
+
586
+ togglelist: function ( j ) {
587
+ if (this.pl_info[j].lstate === true) {
588
+ jQuery(this.eID.plwrap + j).fadeOut(300);
589
+ jQuery(this.eID.toglist + j).text('SHOW');
590
+ this.pl_info[j].lstate = false;
591
+ } else if (this.pl_info[j].lstate === false) {
592
+ jQuery(this.eID.plwrap + j).fadeIn("slow");
593
+ jQuery(this.eID.toglist + j).text('HIDE');
594
+ this.pl_info[j].lstate = true;
595
+ }
596
+ },
597
+
598
+ makeslider: function (j) {
599
+ var phmove, cssmove, that = this;
600
+ jQuery(this.eID.pos + j).css( 'visibility', 'hidden' );
601
+ jQuery(this.eID.pos + j).slider({
602
+ max: 1000,
603
+ range: 'min',
604
+ animate: false,
605
+ slide: function (event, ui) {
606
+ if ((ui.value/10) < that.load_pc) {
607
+ cssmove = ui.value/10;
608
+ phmove = ui.value*(10.0/that.jp_seekable);
609
+ } else {
610
+ cssmove = 0.99*that.load_pc;
611
+ phmove = (9.9*that.load_pc)*(10.0/that.jp_seekable);
612
+ }
613
+ jQuery(that.eID.poscol + j).css('width', cssmove + '%');
614
+ jQuery(that.jpID).jPlayer("playHead", phmove );
615
+ if (that.state === 'paused') {
616
+ that.button(j, 'pause');
617
+ that.playit();
618
+ }
619
+ that.state = 'playing';
620
+ that.sliding = true;
621
+ }
622
+ });
623
+ }
624
+
625
+ };
626
+
627
+ // Force browser download
628
+ MP3_JPLAYER.dl_button_click = function ( j ) {
629
+ var that = this, p = this.pl_info[j];
630
+ jQuery('#mp3j_dlanchor_' + j).click(function (e) {
631
+ that.dl_runinfo( p.list[p.tr].mp3, j, e );
632
+ e.preventDefault();
633
+ });
634
+ };
635
+
636
+ MP3_JPLAYER.dl_closeinfo_click = function ( j ) {
637
+ var that = this;
638
+ jQuery('#mp3j_finfo_close_' + j).click(function () {
639
+ that.dl_dialogue( j, '', 'close');
640
+ that.clear_timers( j );
641
+ });
642
+ };
643
+
644
+ MP3_JPLAYER.dl_runinfo = function ( get, j, e ) {
645
+ var can_write,
646
+ dlpath,
647
+ message,
648
+ that = this,
649
+ dlframe = false,
650
+ p = this.pl_info[j],
651
+ is_local = this.is_local_dload( get );
652
+
653
+ var enc_get;
654
+
655
+ if ( !this.intervalIDs[ j ] && !this.timeoutIDs[ j ] ) { //if timers not already running for this player
656
+ can_write = this.write_cookie('mp3Download' + j, 'waiting', '');
657
+ if ( is_local ) {
658
+ if ( can_write !== false ) {
659
+ this.dl_dialogue( j, this.vars.message_interval, 'check');
660
+ } else {
661
+ this.dl_dialogue( j, this.vars.message_indark, 'indark');
662
+ }
663
+ this.intervalIDs[ j ] = setInterval( function(){ that.dl_interval_check( j, can_write ); }, 500);
664
+ this.timeoutIDs[ j ] = setTimeout( function(){ that.dl_timeout( j, can_write ); }, 7000);
665
+ dlframe = true;
666
+ } else {
667
+ if ( this.vars.dl_remote_path === '' ) {
668
+ message = this.vars.message_promtlink.replace('#1', get);
669
+ message = message.replace('#2', p.list[p.tr].name);
670
+ this.dl_dialogue( j, message, 'indark');
671
+ } else {
672
+ message = this.vars.message_indark.replace('#1', get);
673
+ message = message.replace('#2', p.list[p.tr].name);
674
+ this.dl_dialogue( j, message, 'indark');
675
+ dlframe = true;
676
+ }
677
+ }
678
+ this.dl_dialogs[ j ] = 'false';
679
+ if ( dlframe ) {
680
+ dlpath = this.get_dloader_path( get );
681
+ enc_get = encodeURIComponent( get );
682
+ //jQuery('#mp3j_dlf_' + j).empty().append('<iframe id="mp3j_dlframe_' + j + '" name="mp3j_dlframe_' + j + '" class="mp3j-dlframe" src="' + dlpath + '?mp3=loc' + get + '&pID=' + j + '" style="display:none;"></iframe>');
683
+ jQuery('#mp3j_dlf_' + j).empty().append('<iframe id="mp3j_dlframe_' + j + '" name="mp3j_dlframe_' + j + '" class="mp3j-dlframe" src="' + dlpath + '?mp3=loc' + enc_get + '&pID=' + j + '" style="display:none;"></iframe>');
684
+ }
685
+ }
686
+ };
687
+
688
+ MP3_JPLAYER.dl_interval_check = function ( j, can_write ) {
689
+ if ( can_write !== false && this.read_cookie('mp3Download' + j) === 'true' ) { //got cookie back, all should be good
690
+ this.dl_dialogue( j, this.vars.message_ok, 'hide');
691
+ //jQuery('#debug').append('<br />check: cookie '+j+' true');
692
+ this.clear_timers( j );
693
+ } else if ( this.dl_dialogs[ j ] !== 'false' ) { //got a message back
694
+ this.dl_dialogue( j, this.dl_dialogs[ j ], 'add');
695
+ //jQuery('#debug').append('<br />check: dialog'+j+' true');
696
+ this.clear_timers( j );
697
+ } //else {
698
+ //jQuery('#debug').append('<br />check: neither '+j+'...# ');
699
+ //}
700
+ };
701
+
702
+ MP3_JPLAYER.dl_timeout = function ( j, can_write ) {
703
+ this.clear_timers( j );
704
+ if ( can_write !== false ) {
705
+ this.dl_dialogue( j, this.vars.message_timeout, 'add');
706
+ }
707
+ //jQuery('#debug').append('<br />no responses ('+j+' timed out) ');
708
+ };
709
+
710
+ MP3_JPLAYER.clear_timers = function ( j ) {
711
+ if ( this.intervalIDs[ j ] !== null && this.timeoutIDs[ j ] !== null ) {
712
+ clearInterval( this.intervalIDs[j] );
713
+ clearTimeout( this.timeoutIDs[j] );
714
+ this.intervalIDs[ j ] = null;
715
+ this.timeoutIDs[j] = null;
716
+ }
717
+ jQuery('#mp3j_dlf_' + j).empty(); //ditch iframe
718
+ this.write_cookie('mp3Download' + j, '', -1); //clear any cookie
719
+ //jQuery('#debug').append('<br />cookie/frame '+j+' cleared');
720
+ };
721
+
722
+ MP3_JPLAYER.dl_dialogue = function ( j, text, state ) {
723
+ if ( 'check' === state ) {
724
+ jQuery('#mp3j_finfo_gif_' + j).show();
725
+ jQuery('#mp3j_finfo_txt_' + j).empty().append(text).show();
726
+ jQuery('#mp3j_finfo_' + j).show();
727
+ } else if ( 'add' === state ) {
728
+ jQuery('#mp3j_finfo_gif_' + j).hide();
729
+ jQuery('#mp3j_finfo_txt_' + j).empty().append(text).show();
730
+ } else if ( 'indark' === state ) {
731
+ jQuery('#mp3j_finfo_gif_' + j).hide();
732
+ jQuery('#mp3j_finfo_txt_' + j).empty().append(text).show();
733
+ jQuery('#mp3j_finfo_' + j).fadeIn(100);
734
+ } else if ( 'close' === state ) {
735
+ jQuery('#mp3j_finfo_gif_' + j).hide();
736
+ jQuery('#mp3j_finfo_' + j).hide();
737
+ } else {
738
+ jQuery('#mp3j_finfo_gif_' + j).hide();
739
+ if ( text !== '' ) {
740
+ jQuery('#mp3j_finfo_txt_' + j).empty().append(text).show();
741
+ }
742
+ jQuery('#mp3j_finfo_' + j).fadeOut(1000);
743
+ }
744
+ };
745
+
746
+ MP3_JPLAYER.read_cookie = function ( name ) {
747
+ var i, cookie, allCookies = document.cookie.split('; ');
748
+ if ( allCookies.length > 0 ) {
749
+ for ( i = 0; i < allCookies.length; i += 1 ) {
750
+ cookie = allCookies[i].split( '=' );
751
+ if ( cookie[0] === name ) {
752
+ return cookie[1];
753
+ }
754
+ }
755
+ }
756
+ return false;
757
+ };
758
+
759
+ MP3_JPLAYER.write_cookie = function ( name, value, days ) {
760
+ var date, expires = "";
761
+ if ( days ) {
762
+ date = new Date();
763
+ date.setTime( date.getTime() + (days*24*60*60*1000) );
764
+ expires = "; expires=" + date.toGMTString();
765
+ }
766
+ document.cookie = name + "=" + value + expires + "; path=/";
767
+ return this.read_cookie( name );
768
+ };
769
+
770
+ MP3_JPLAYER.get_dloader_path = function ( loc ) {
771
+ var k, path = "", file = "", chunks;
772
+ chunks = loc.split('/');
773
+ file = chunks[chunks.length-1];
774
+ //jQuery('#debug').append('<br />');
775
+ //for ( k = 0; k < chunks.length; k += 1 ) {
776
+ // jQuery('#debug').append('<br />[' + k + '] ' + chunks[k]);
777
+ //}
778
+ //jQuery('#debug').append('<br />file:' + file);
779
+ if ( loc.charAt(0) === '/' ) {
780
+ path = this.plugin_path + '/download.php';
781
+ } else {
782
+ path = chunks[2].replace(/^www./i, "");
783
+ if ( path === this.dl_domain ) {
784
+ path = this.plugin_path + '/download.php';
785
+ } else {
786
+ path = chunks[0] + '//' + chunks[2] + this.vars.dl_remote_path;
787
+ }
788
+ }
789
+ //jQuery('#debug').append('<br />path:' + path);
790
+ return path;
791
+ };
792
+
793
+ MP3_JPLAYER.is_local_dload = function ( loc ) {
794
+ var domain = "", file = "", chunks, is_local = false;
795
+ chunks = loc.split('/');
796
+ file = chunks[chunks.length-1];
797
+ if ( loc.charAt(0) === '/' ) {
798
+ is_local = true;
799
+ } else {
800
+ domain = chunks[2].replace(/^www./i, "");
801
+ if ( domain === this.dl_domain ) {
802
+ is_local = true;
803
+ }
804
+ }
805
+ return is_local;
806
+ };
807
+
js/ui.core.js CHANGED
@@ -1,17 +1,17 @@
1
- /*!
2
- * jQuery UI 1.8.10
3
- *
4
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
5
- * Dual licensed under the MIT or GPL Version 2 licenses.
6
- * http://jquery.org/license
7
- *
8
- * http://docs.jquery.com/UI
9
- */
10
- (function(c,j){function k(a){return!c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility")==="hidden"||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.10",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,
11
- NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});c.fn.extend({_focus:c.fn.focus,focus:function(a,b){return typeof a==="number"?this.each(function(){var d=this;setTimeout(function(){c(d).focus();b&&b.call(d)},a)}):this._focus.apply(this,arguments)},scrollParent:function(){var a;a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,
12
- "position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?c(document):a},zIndex:function(a){if(a!==j)return this.css("zIndex",a);if(this.length){a=c(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position");
13
- if(b==="absolute"||b==="relative"||b==="fixed"){b=parseInt(a.css("zIndex"),10);if(!isNaN(b)&&b!==0)return b}a=a.parent()}}return 0},disableSelection:function(){return this.bind((c.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});c.each(["Width","Height"],function(a,b){function d(f,g,l,m){c.each(e,function(){g-=parseFloat(c.curCSS(f,"padding"+this,true))||0;if(l)g-=parseFloat(c.curCSS(f,
14
- "border"+this+"Width",true))||0;if(m)g-=parseFloat(c.curCSS(f,"margin"+this,true))||0});return g}var e=b==="Width"?["Left","Right"]:["Top","Bottom"],h=b.toLowerCase(),i={innerWidth:c.fn.innerWidth,innerHeight:c.fn.innerHeight,outerWidth:c.fn.outerWidth,outerHeight:c.fn.outerHeight};c.fn["inner"+b]=function(f){if(f===j)return i["inner"+b].call(this);return this.each(function(){c(this).css(h,d(this,f)+"px")})};c.fn["outer"+b]=function(f,g){if(typeof f!=="number")return i["outer"+b].call(this,f);return this.each(function(){c(this).css(h,
15
- d(this,f,true,g)+"px")})}});c.extend(c.expr[":"],{data:function(a,b,d){return!!c.data(a,d[3])},focusable:function(a){var b=a.nodeName.toLowerCase(),d=c.attr(a,"tabindex");if("area"===b){b=a.parentNode;d=b.name;if(!a.href||!d||b.nodeName.toLowerCase()!=="map")return false;a=c("img[usemap=#"+d+"]")[0];return!!a&&k(a)}return(/input|select|textarea|button|object/.test(b)?!a.disabled:"a"==b?a.href||!isNaN(d):!isNaN(d))&&k(a)},tabbable:function(a){var b=c.attr(a,"tabindex");return(isNaN(b)||b>=0)&&c(a).is(":focusable")}});
16
- c(function(){var a=document.body,b=a.appendChild(b=document.createElement("div"));c.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});c.support.minHeight=b.offsetHeight===100;c.support.selectstart="onselectstart"in b;a.removeChild(b).style.display="none"});c.extend(c.ui,{plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&&a.element[0].parentNode)for(var e=0;e<b.length;e++)a.options[b[e][0]]&&
17
- b[e][1].apply(a.element,d)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,b){if(c(a).css("overflow")==="hidden")return false;b=b&&b==="left"?"scrollLeft":"scrollTop";var d=false;if(a[b]>0)return true;a[b]=1;d=a[b]>0;a[b]=0;return d},isOverAxis:function(a,b,d){return a>b&&a<b+d},isOver:function(a,b,d,e,h,i){return c.ui.isOverAxis(a,d,h)&&c.ui.isOverAxis(b,e,i)}})}})(jQuery);
1
+ /*!
2
+ * jQuery UI 1.8.10
3
+ *
4
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
5
+ * Dual licensed under the MIT or GPL Version 2 licenses.
6
+ * http://jquery.org/license
7
+ *
8
+ * http://docs.jquery.com/UI
9
+ */
10
+ (function(c,j){function k(a){return!c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility")==="hidden"||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.10",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,
11
+ NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});c.fn.extend({_focus:c.fn.focus,focus:function(a,b){return typeof a==="number"?this.each(function(){var d=this;setTimeout(function(){c(d).focus();b&&b.call(d)},a)}):this._focus.apply(this,arguments)},scrollParent:function(){var a;a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,
12
+ "position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?c(document):a},zIndex:function(a){if(a!==j)return this.css("zIndex",a);if(this.length){a=c(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position");
13
+ if(b==="absolute"||b==="relative"||b==="fixed"){b=parseInt(a.css("zIndex"),10);if(!isNaN(b)&&b!==0)return b}a=a.parent()}}return 0},disableSel