Case Study Week 2
Print by: ASHLEY PAGE QSO-600-X3257 15TW3 / Chapter 09 Case Questions
|
|
|
|
|
|
|
|
|
|
Case Problem 9.2 (Essay)
|
|
Moore Housing Contractors
Moore
Housing Contractors is negotiating a deal with Countryside Realtors to
build six houses in a new development. Countryside wants Moore Contractors
to start in late winter or early spring when the weather begins to
moderate and build through the summer into the fall. The summer months are
a busy time for the realty company, and it believes it can sell the houses
almost as soon as they are ready—sometimes before. The houses all have
similar floor plans and are of approximately equal size; only the
exteriors are noticeably different. The completion time is so critical for
Countryside Realtors that it is insisting a project management network
accompany the contractor’s bid for the job with an estimate of the
completion time for a house. The realtor also needs to be able to plan its
offerings and marketing for the summer. The realtor wants each house to be
completed within 45 days after it is started. If a house is not completed
within this time frame, the realtor wants to be able to charge the
contractor a penalty. Mary and Sandy Moore, the president and vice
president of Moore Housing Contractors, are concerned about the prospect
of a penalty. They want to be confident they can meet the deadline for a
house before entering into any agreement with a penalty involved. (If
there is a reasonable likelihood they cannot finish a house within 45
days, they want to increase their bid to cover potential penalty
charges.)
The Moores are experienced home builders, so it was not
difficult for them to list the activities involved in building a house or
to estimate activity times. However, they made their estimates
conservatively and tended to increase their pessimistic estimates to
compensate for the possibility of bad weather and variations in their
workforce. Following is a list of the activities for building a house and
the activity time estimates:
Warning
|
|
|
|
|
|
|
|
|
|
Develop a CPM/PERT network for Moore House Contractors and determine the probability that the contractors can complete a house within 45 days. Does it appear that the Moores might need to increase their bid to compensate for potential penalties?
Warning
|
|
|
|
Indicate which project activities Moore Contractors should be particularly diligent to keep on schedule by making sure workers and materials are always available. Also indicate which activities the company might shift workers from as the need arises.
Warning
|
|
|
|
|
| Copyright © 2000-2015 by John Wiley & Sons, Inc. or related companies. All rights reserved. |
.button { OUTLINE-WIDTH: 0px } .left { FLOAT: left !important } .right { FLOAT: right !important } .button { MARGIN: 0px; PADDING-LEFT: 12px; ZOOM: 1; DISPLAY: inline; BACKGROUND-POSITION: left 0px; VERTICAL-ALIGN: middle } .button { LINE-HEIGHT: 24px; HEIGHT: 24px } .button * { LINE-HEIGHT: 24px; HEIGHT: 24px } .button A { PADDING-BOTTOM: 0px; TEXT-TRANSFORM: uppercase; MARGIN: 0px -12px; PADDING-LEFT: 12px; PADDING-RIGHT: 12px; DISPLAY: block; FONT-FAMILY: verdana, sans-serif; WHITE-SPACE: nowrap; COLOR: #ffffff; FONT-SIZE: 10px; VERTICAL-ALIGN: middle; FONT-WEIGHT: bold; TEXT-DECORATION: none !important; PADDING-TOP: 0px } .button SPAN { PADDING-BOTTOM: 0px; TEXT-TRANSFORM: uppercase; MARGIN: 0px -12px; PADDING-LEFT: 12px; PADDING-RIGHT: 12px; DISPLAY: block; FONT-FAMILY: verdana, sans-serif; WHITE-SPACE: nowrap; COLOR: #ffffff; FONT-SIZE: 10px; VERTICAL-ALIGN: middle; FONT-WEIGHT: bold; TEXT-DECORATION: none !important; PADDING-TOP: 0px } .button A B { POSITION: relative; LINE-HEIGHT: 18px } .button SPAN B { POSITION: relative; LINE-HEIGHT: 18px } .button A:visited { COLOR: #ffffff } .button { BACKGROUND-IMAGE: url(../art_v4_9/buttons/large_primary_style/background.png); BACKGROUND-REPEAT: no-repeat } .button DIV { BACKGROUND-IMAGE: url(../art_v4_9/buttons/large_primary_style/background.png); BACKGROUND-REPEAT: no-repeat } .large-style { BACKGROUND-IMAGE: url(../art_v4_9/buttons/large_style/background.png) } .large-style DIV { BACKGROUND-IMAGE: url(../art_v4_9/buttons/large_style/background.png) } .header-style { BACKGROUND-IMAGE: url(../art_v4_9/buttons/header_style/background.png) } .header-style DIV { BACKGROUND-IMAGE: url(../art_v4_9/buttons/header_style/background.png) } .small-primary-style { BACKGROUND-IMAGE: url(../art_v4_9/buttons/small_primary_style/background.png) } .small-primary-style DIV { BACKGROUND-IMAGE: url(../art_v4_9/buttons/small_primary_style/background.png) } .small-style { BACKGROUND-IMAGE: url(../art_v4_9/buttons/small_style/background.png) } .small-style DIV { BACKGROUND-IMAGE: url(../art_v4_9/buttons/small_style/background.png) } .orange-style { BACKGROUND-IMAGE: url(../art_v4_9/buttons/orange_style/background.png) } .orange-style DIV { BACKGROUND-IMAGE: url(../art_v4_9/buttons/orange_style/background.png) } .header-style A { COLOR: #285592 } .large-style A { COLOR: #285592 } .small-style A { COLOR: #285592 } .header-style A:visited { COLOR: #285592 } .large-style A:visited { COLOR: #285592 } .small-style A:visited { COLOR: #285592 } .header-style SPAN { COLOR: #285592 } .large-style SPAN { COLOR: #285592 } .small-style SPAN { COLOR: #285592 } .small-style A { FONT-SIZE: 9px } .small-style SPAN { FONT-SIZE: 9px } .orange-style A { FONT-SIZE: 9px } .orange-style SPAN { FONT-SIZE: 9px } .button:hover { BACKGROUND-POSITION: left -48px } .bHover { BACKGROUND-POSITION: left -48px } .bExample { BACKGROUND-POSITION: left 0px } .bDisabled { BACKGROUND-POSITION: left -24px } .header-style:hover A { COLOR: #ffffff } .large-style:hover A { COLOR: #ffffff } .small-style:hover A { COLOR: #ffffff } .bHover A { COLOR: #ffffff } .bHover A { COLOR: #ffffff } .bHover A { COLOR: #ffffff } .bDisabled A { COLOR: #ffffff !important } .bDisabled A { COLOR: #86a9c2 !important } .bDisabled A { COLOR: #86a9c2 !important } .bDisabled { CURSOR: default !important } .bDisabled * { CURSOR: default !important } .button DIV { PADDING-RIGHT: 12px; BACKGROUND-POSITION: right -144px } .button:hover DIV { BACKGROUND-POSITION: right -192px } .bHover DIV { BACKGROUND-POSITION: right -192px } .bExample DIV { BACKGROUND-POSITION: right -144px } .bDisabled DIV { BACKGROUND-POSITION: right -168px } .button DIV DIV { PADDING-BOTTOM: 0px; MARGIN: 0px -2px; PADDING-LEFT: 2px; PADDING-RIGHT: 2px; BACKGROUND-REPEAT: repeat-x; BACKGROUND-POSITION: left -72px; PADDING-TOP: 0px } .button:hover DIV DIV { BACKGROUND-POSITION: left -120px } .bHover DIV DIV { BACKGROUND-POSITION: left -120px } .bExample DIV DIV { BACKGROUND-POSITION: left -72px } .bDisabled DIV DIV { BACKGROUND-POSITION: left -96px } .large-style { LINE-HEIGHT: 23px; HEIGHT: 23px } .large-style * { LINE-HEIGHT: 23px; HEIGHT: 23px } .large-non-hover-style { LINE-HEIGHT: 23px; HEIGHT: 23px } .large-non-hover-style * { LINE-HEIGHT: 23px; HEIGHT: 23px } .small-style { LINE-HEIGHT: 20px; HEIGHT: 20px } .small-style * { LINE-HEIGHT: 20px; HEIGHT: 20px } .orange-style { LINE-HEIGHT: 20px; HEIGHT: 20px } .orange-style * { LINE-HEIGHT: 20px; HEIGHT: 20px } .header-style { LINE-HEIGHT: 22px; HEIGHT: 22px } .header-style * { LINE-HEIGHT: 22px; HEIGHT: 22px } .header-style { PADDING-LEFT: 10px } .large-style { PADDING-LEFT: 10px } .large-non-hover-style { PADDING-LEFT: 10px } .header-style A { PADDING-BOTTOM: 0px; MARGIN: 0px -10px; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 0px } .large-style A { PADDING-BOTTOM: 0px; MARGIN: 0px -10px; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 0px } .large-non-hover-style A { PADDING-BOTTOM: 0px; MARGIN: 0px -10px; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 0px } .header-style DIV { PADDING-RIGHT: 10px } .large-style DIV { PADDING-RIGHT: 10px } .large-non-hover-style DIV { PADDING-RIGHT: 10px } .header-style DIV DIV { PADDING-BOTTOM: 0px; MARGIN: 0px -2px; PADDING-LEFT: 2px; PADDING-RIGHT: 2px; PADDING-TOP: 0px } .large-style DIV DIV { PADDING-BOTTOM: 0px; MARGIN: 0px -2px; PADDING-LEFT: 2px; PADDING-RIGHT: 2px; PADDING-TOP: 0px } .large-non-hover-style DIV DIV { PADDING-BOTTOM: 0px; MARGIN: 0px -2px; PADDING-LEFT: 2px; PADDING-RIGHT: 2px; PADDING-TOP: 0px } .small-style { PADDING-LEFT: 5px } .orange-style { PADDING-LEFT: 5px } .small-style A { PADDING-BOTTOM: 0px; MARGIN: 0px -5px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; PADDING-TOP: 0px } .orange-style A { PADDING-BOTTOM: 0px; MARGIN: 0px -5px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; PADDING-TOP: 0px } .small-style DIV { PADDING-RIGHT: 5px } .orange-style DIV { PADDING-RIGHT: 5px } .small-style DIV DIV { PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 1px; PADDING-RIGHT: 1px; PADDING-TOP: 0px } .orange-style DIV DIV { PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 1px; PADDING-RIGHT: 1px; PADDING-TOP: 0px } .button A IMG { BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; BORDER-TOP: medium none; BORDER-RIGHT: medium none } .button A IMG.arrow-left { WIDTH: 4px; HEIGHT: 7px } .button A IMG.arrow-right { WIDTH: 4px; HEIGHT: 7px } .button A IMG.arrow-left { BACKGROUND-IMAGE: url(../art_v4_9/buttons/large_primary_style/arrow_left.gif) } .button A IMG.arrow-right { BACKGROUND-IMAGE: url(../art_v4_9/buttons/large_primary_style/arrow_right.gif) } .large-style A IMG.arrow-left { BACKGROUND-IMAGE: url(../art_v4_9/buttons/large_style/arrow_left.gif) } .large-style A IMG.arrow-right { BACKGROUND-IMAGE: url(../art_v4_9/buttons/large_style/arrow_right.gif) } .large-style:hover A IMG.arrow-left { BACKGROUND-POSITION: left -7px } .bHover A IMG.arrow-left { BACKGROUND-POSITION: left -7px } .large-style:hover A IMG.arrow-right { BACKGROUND-POSITION: left -7px } .bHover A IMG.arrow-right { BACKGROUND-POSITION: left -7px } .large-non-hover-style { BACKGROUND-IMAGE: url(../art_v4_9/buttons/large_non_hover_style/background.png) } .large-non-hover-style DIV { BACKGROUND-IMAGE: url(../art_v4_9/buttons/large_non_hover_style/background.png) } .large-non-hover-style A.show-toc { WIDTH: 12px; BACKGROUND: url(../art_v4_9/common/icons/show_toc.png) no-repeat 4px 3px } .large-non-hover-style A.hide-toc { WIDTH: 12px; BACKGROUND: url(../art_v4_9/common/icons/hide_toc.png) no-repeat 4px 3px }
@import url( buttons.css ); .ie9 BUTTON { FILTER: none !important } .ie9 BUTTON:hover { FILTER: none !important } DIV.notice-block { BORDER-BOTTOM: #e35016 1px solid; BORDER-LEFT: #e35016 1px solid; MARGIN: 1em 0px; HEIGHT: 17px; BORDER-TOP: #e35016 1px solid; BORDER-RIGHT: #e35016 1px solid } DIV.notice { BORDER-BOTTOM: #e35016 1px solid; BORDER-LEFT: #e35016 1px solid; MARGIN: 1em 0px; HEIGHT: 17px; BORDER-TOP: #e35016 1px solid; BORDER-RIGHT: #e35016 1px solid } BODY { FONT-FAMILY: verdana, arial, sans-serif; FONT-SIZE: 12px } FORM { PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px } TD { FONT-FAMILY: verdana, arial, sans-serif; EMPTY-CELLS: show; COLOR: #000; FONT-SIZE: 12px } TH { FONT-FAMILY: verdana, arial, sans-serif; EMPTY-CELLS: show; COLOR: #000; FONT-SIZE: 12px } P { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #000; FONT-SIZE: 12px } P.total { MARGIN: 0px } SPAN { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #000; FONT-SIZE: 12px } SPAN.required { COLOR: #a00 } SELECT { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #000; FONT-SIZE: 12px } INPUT { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #000; FONT-SIZE: 12px } A { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #0d5486; FONT-SIZE: 12px } A:visited { COLOR: #0d5486 } A.userline { COLOR: #36566e } A.colorRed { COLOR: #fb0d0e } PRE { FONT-FAMILY: verdana, arial, sans-serif; FONT-SIZE: 12px } .lti-button { BORDER-BOTTOM: medium none; TEXT-ALIGN: right; BORDER-LEFT: medium none; PADDING-BOTTOM: 1em; MARGIN-TOP: 1em; PADDING-LEFT: 1em; PADDING-RIGHT: 1em; HEIGHT: 20px; BORDER-TOP: #909090 1px dotted; BORDER-RIGHT: medium none; PADDING-TOP: 1em } .lti-button INPUT { WIDTH: 6em; MARGIN-RIGHT: 1em } .gray { COLOR: #c6d1dc } .textBlack { COLOR: #000 } .textGrey { COLOR: #666 } .textDarkGrey { COLOR: #333 } .textRed { COLOR: #c30 } .textOrange { COLOR: #e35016 } .textColorInherit { COLOR: } .textQRed { COLOR: #fb0d0e } .textQGreen { COLOR: #093 } .isogrk3 { FONT-FAMILY: serif; FONT-SIZE: larger } .lwshead { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #ffffb9; FONT-SIZE: 14px; FONT-WEIGHT: bold; TEXT-DECORATION: none; fontsize: 15px; fontweight: bold } .lwsheadlink { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #fff; FONT-SIZE: 14px; FONT-WEIGHT: normal; fontsize: 15px; fontweight: normal } .unihead { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #fff; FONT-SIZE: 15px; FONT-WEIGHT: bold; TEXT-DECORATION: none; fontsize: 16px; fontweight: bold } .egrade { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #ff8080; FONT-SIZE: 15px; FONT-WEIGHT: bold; TEXT-DECORATION: none; fontsize: 16px; fontweight: bold } .pagetitle { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #000; FONT-SIZE: 13px; FONT-WEIGHT: bold; TEXT-DECORATION: none; fontsize: 14px; fontweight: bold } .titlink { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #930; FONT-SIZE: 13px; FONT-WEIGHT: bold; fontsize: 14px; fontweight: bold } .response { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #000; FONT-SIZE: 9px; FONT-WEIGHT: normal; TEXT-DECORATION: none; fontsize: 10px; fontweight: normal } .accessbtn { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #000; FONT-SIZE: 10px; TEXT-DECORATION: none; fontsize: 11px } .saccessbtn { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #930; FONT-SIZE: 10px; FONT-WEIGHT: bold; TEXT-DECORATION: none; fontsize: 11px; fontweight: bold } .accesstab { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #fff; FONT-SIZE: 10px; TEXT-DECORATION: none; fontsize: 11px } .saccesstab { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #930; FONT-SIZE: 10px; FONT-WEIGHT: bold; TEXT-DECORATION: none; fontsize: 11px; fontweight: bold } .switcher { FONT-FAMILY: verdana, arial, sans-serif; FONT-SIZE: 12px; FONT-WEIGHT: bold; TEXT-DECORATION: none; fontsize: 13px; fontweight: bold } .section1 { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #909090; FONT-SIZE: 10px; FONT-WEIGHT: bold; TEXT-DECORATION: none; fontsize: 11px; fontweight: bold } .homepagelinks { FONT-FAMILY: verdana, sans-serif; COLOR: #36566e; FONT-SIZE: 12px; FONT-WEIGHT: bold; fontsize: 11px; fontweight: bold; fontfamily: 'verdana','sans-serif' } .homepagewelcome { FONT-FAMILY: verdana, arial, sans-serif; FONT-SIZE: 12px; FONT-WEIGHT: bold } .spSec1 { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #000; FONT-SIZE: 18px; FONT-WEIGHT: bold; fontsize: 19px; fontweight: bold } .spSec2 { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #000; FONT-SIZE: 13px; FONT-WEIGHT: bold; fontsize: 14px; fontweight: bold } .welcome { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #000; FONT-SIZE: 13px; TEXT-DECORATION: none; fontsize: 14px } .welcome12 { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #000; FONT-SIZE: 11px; TEXT-DECORATION: none } .login { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #000; FONT-SIZE: 11px; TEXT-DECORATION: none } .labelcap { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #000; FONT-SIZE: 11px; FONT-WEIGHT: bold; TEXT-DECORATION: none; fontweight: bold } .rights { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #444; FONT-SIZE: 10px; TEXT-DECORATION: none; fontsize: 11px } .license { FONT-FAMILY: courier, monospace; COLOR: #000; FONT-SIZE: 11px; fontfamily: 'courier','monospace' } .btitle2 { FONT-STYLE: italic; FONT-FAMILY: verdana, arial, sans-serif; COLOR: #000; FONT-SIZE: 32px; FONT-WEIGHT: bold; TEXT-DECORATION: none; fontsize: 32px; fontweight: bold; fontstyle: italic } .boxtitle { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #fff; FONT-SIZE: 11px } .admth { BACKGROUND-COLOR: #cc9; FONT-FAMILY: verdana, arial, sans-serif; COLOR: #36566e; FONT-SIZE: 11px; FONT-WEIGHT: bold; TEXT-DECORATION: none; fontweight: bold; backgroundcolor: #cc9 } .admtd { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #000; FONT-SIZE: 11px; FONT-WEIGHT: normal; TEXT-DECORATION: none; fontweight: normal } .section1admin { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #666; FONT-SIZE: 14px; FONT-WEIGHT: bold; TEXT-DECORATION: none; fontsize: 15px; fontweight: bold } .tabbed { MARGIN-LEFT: 32px } .fw { WIDTH: 100% } TABLE#lti-consumer-list { WIDTH: 100%; BORDER-COLLAPSE: collapse; EMPTY-CELLS: show } TABLE#lti-consumer-list TH { BORDER-BOTTOM: #000 2px solid; PADDING-BOTTOM: 0.5em; MARGIN: 0px; PADDING-LEFT: 2em; PADDING-RIGHT: 2em; BORDER-TOP: #000 2px solid; PADDING-TOP: 0.5em } TABLE#lti-consumer-list TD { BORDER-BOTTOM: #000 1px solid; PADDING-BOTTOM: 0.5em; MARGIN: 0px; PADDING-LEFT: 2em; PADDING-RIGHT: 2em; PADDING-TOP: 0.5em } TABLE#lti-consumer-list TD.noframe { BORDER-BOTTOM: medium none; PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px } TABLE.assistance_block { BORDER-BOTTOM: #cad3de 1px solid; BORDER-LEFT: #cad3de 1px solid; BORDER-COLLAPSE: collapse; BORDER-TOP: #cad3de 1px solid; BORDER-RIGHT: #cad3de 1px solid } TABLE.assistance_block TD { BORDER-BOTTOM: #cad3de 1px solid; BORDER-LEFT: #cad3de 1px solid; BORDER-TOP: #cad3de 1px solid; BORDER-RIGHT: #cad3de 1px solid } TABLE IMG.sorting-mark { MARGIN-LEFT: 4px } .input { BORDER-BOTTOM: #c3c3c3 1px ridge; BORDER-LEFT: #c3c3c3 1px ridge; BACKGROUND-COLOR: #fff; WIDTH: 300px; COLOR: #000; BORDER-TOP: #c3c3c3 1px ridge; BORDER-RIGHT: #c3c3c3 1px ridge } .input1 { BORDER-BOTTOM: #c3c3c3 1px ridge; BORDER-LEFT: #c3c3c3 1px ridge; BACKGROUND-COLOR: #fff; COLOR: #000; BORDER-TOP: #c3c3c3 1px ridge; BORDER-RIGHT: #c3c3c3 1px ridge } .copyright { FONT-FAMILY: arial, sans-serif; COLOR: #aaa; FONT-SIZE: 9px; fontsize: 10px; fontfamily: 'arial','sans-serif' } .crlink { FONT-FAMILY: arial, sans-serif; COLOR: #aaa; FONT-SIZE: 9px; fontsize: 10px; fontfamily: 'arial','sans-serif' } .agmap { FONT-FAMILY: arial, sans-serif; COLOR: #aaa; FONT-SIZE: 9px; fontsize: 10px; fontfamily: 'arial','sans-serif' } .agmaplegend { FONT-FAMILY: verdana, sans-serif; COLOR: #acacac; FONT-SIZE: 9px; fontsize: 10px; fontfamily: 'verdana','sans-serif' } .colorRed { COLOR: #fb0d0e } .colorBlue { COLOR: #0d5486 } .colorGrey { COLOR: #ccc } .aginfotitle { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #c6d1dc; FONT-SIZE: 15px; FONT-WEIGHT: bold; fontsize: 16px; fontweight: bold } .aginfo { FONT-FAMILY: verdana, arial, sans-serif; COLOR: #000; FONT-SIZE: 13px; fontsize: 14px } .rightinput { TEXT-ALIGN: right } .input50 { BACKGROUND-COLOR: #fff; WIDTH: 50px; COLOR: #000 } .input100 { BACKGROUND-COLOR: #fff; WIDTH: 100px; COLOR: #000 } .input120 { BACKGROUND-COLOR: #fff; WIDTH: 120px; COLOR: #000 } .input150 { BACKGROUND-COLOR: #fff; WIDTH: 150px; COLOR: #000 } .input200 { BACKGROUND-COLOR: #fff; WIDTH: 200px; COLOR: #000 } .input300 { BACKGROUND-COLOR: #fff; WIDTH: 300px; COLOR: #000 } .input580 { WIDTH: 580px } .qtiInput { PADDING-BOTTOM: 1px; PADDING-LEFT: 1px; WIDTH: 160px; PADDING-RIGHT: 1px; PADDING-TOP: 1px } .qtiInputIndent { PADDING-BOTTOM: 1px; PADDING-LEFT: 20px; WIDTH: 141px; PADDING-RIGHT: 1px; PADDING-TOP: 1px } .qtiFinRespInputText { BACKGROUND-COLOR: #e2e2e2; COLOR: #666 } .qtiFinRespTextarea { BACKGROUND-COLOR: #e2e2e2; COLOR: #666 } .qtiFinRespSelect { BACKGROUND-COLOR: #e2e2e2; COLOR: #666 } .assignmenttips { Z-INDEX: 1; POSITION: absolute; DISPLAY: none } .assignmenttips .content { BORDER-BOTTOM: #ddd 1px solid; POSITION: absolute; BORDER-LEFT: #ddd 1px solid; BORDER-TOP: #ddd 1px solid; BORDER-RIGHT: #ddd 1px solid; TOP: 0px; LEFT: 0px } .assignmenttips IFRAME { WIDTH: 530px; HEIGHT: 24px } .assignmenttips TD { FONT-STYLE: italic; FONT-FAMILY: verdana, arial, sans-serif; COLOR: #000; FONT-SIZE: 11px; fontstyle: italic } DL { MARGIN: 0px 0px 0.3em; CLEAR: both } DT { TEXT-ALIGN: right; WIDTH: 14em; FLOAT: left; MARGIN-RIGHT: 1em } .mapleStatisticTable TD { PADDING-BOTTOM: 5px !important; PADDING-LEFT: 3px !important; PADDING-RIGHT: 3px !important; PADDING-TOP: 5px !important } .mapleStatisticTable TH { PADDING-BOTTOM: 5px !important; PADDING-LEFT: 3px !important; PADDING-RIGHT: 3px !important; PADDING-TOP: 5px !important } lti-add-consumer-button { MARGIN: 0px 1em } DIV.row { MARGIN-BOTTOM: 0.7em; CLEAR: both } DIV.row LABEL { TEXT-ALIGN: right; LINE-HEIGHT: 2em; WIDTH: 14em; DISPLAY: block; FLOAT: left; HEIGHT: 2em; MARGIN-RIGHT: 1em } DIV.row LABEL.tool-provider { TEXT-ALIGN: right; LINE-HEIGHT: 2em; WIDTH: 17em; DISPLAY: block; FLOAT: left; HEIGHT: 2em; MARGIN-RIGHT: 1em } DIV.row LABEL.left-text { TEXT-ALIGN: left } DIV.notice { DISPLAY: none } DIV.modal-placeholder { Z-INDEX: 1000; POSITION: absolute; BACKGROUND-COLOR: #000; WIDTH: 100%; DISPLAY: none; HEIGHT: 100%; TOP: 0px; LEFT: 0px } DIV.request-placeholder { Z-INDEX: 2000; POSITION: absolute; BACKGROUND-COLOR: #fff; WIDTH: 100%; DISPLAY: none; HEIGHT: 100%; TOP: 0px; LEFT: 0px } DIV#request-loader { Z-INDEX: 2001; BORDER-BOTTOM: #909090 4px solid; POSITION: absolute; TEXT-ALIGN: center; BORDER-LEFT: #909090 4px solid; BACKGROUND-COLOR: #eee; MARGIN-TOP: -2.5em; WIDTH: 12em; DISPLAY: none; HEIGHT: 8em; MARGIN-LEFT: -5em; BORDER-TOP: #909090 4px solid; BORDER-RIGHT: #909090 4px solid; TOP: 50%; LEFT: 50% } DIV#radio-btn-holder { PADDING-LEFT: 30px; WIDTH: 100% } #lti-consumer-form { PADDING-BOTTOM: 1em; MARGIN: 0px auto; PADDING-LEFT: 1em; WIDTH: 48em; PADDING-RIGHT: 1em; PADDING-TOP: 1em } #lti-consumer-form INPUT.ri { WIDTH: 30em } #lti-tool-provider-form { PADDING-BOTTOM: 1em; MARGIN: 0px auto; PADDING-LEFT: 1em; WIDTH: 51em; PADDING-RIGHT: 1em; PADDING-TOP: 1em } #lti-tool-provider-form .hint { MARGIN-LEFT: 18em } #lti-tool-provider-form .error { MARGIN-LEFT: 18em } #lti-tool-provider-form INPUT.ri { WIDTH: 30em } .right { TEXT-ALIGN: right } .error { DISPLAY: none; COLOR: #fb0d0e; MARGIN-LEFT: 15em } .hint { COLOR: #a5a5a5; MARGIN-LEFT: 15em } #content-table { DISPLAY: none } #content-error { DISPLAY: none } #content-loader { TEXT-ALIGN: center } .course-mapping-upload { BORDER-BOTTOM: #000 1px solid; BORDER-LEFT: #000 1px solid; WIDTH: 320px; BORDER-TOP: #000 1px solid; BORDER-RIGHT: #000 1px solid } .course-mapping-upload-title { BACKGROUND-COLOR: #ccc } #lti-consumer-form-inner { PADDING-BOTTOM: 1em; PADDING-LEFT: 1em; PADDING-RIGHT: 1em; PADDING-TOP: 1em } .email-placeholder { MARGIN-LEFT: 11.4em } .email-placeholder .hint { MARGIN: 0px } #genericEMailList { WHITE-SPACE: normal } .hidden { DISPLAY: none } #content-wrapper { WIDTH: 1260px; FLOAT: left } #content-wrapper #table-content { MARGIN-TOP: 15px; FLOAT: left } #content-wrapper #user-data-table { BORDER-BOTTOM: 1px; BORDER-LEFT: 1px; FONT-FAMILY: verdana, arial, sans-serif; FONT-SIZE: 11px; BORDER-TOP: 1px; BORDER-RIGHT: 1px } #content-wrapper #user-data-table .user-key-column { WIDTH: 400px } #content-wrapper #user-data-table .user-secret-column { WIDTH: 400px } #content-wrapper #user-data-table TH { TEXT-ALIGN: center; BACKGROUND: #eeeeda } #content-wrapper #user-data-table TD { TEXT-ALIGN: left; PADDING-BOTTOM: 2px } #content-wrapper #user-data-table TD .lti-input-edit { WIDTH: 298px; FLOAT: left } #content-wrapper #user-data-table TD A { DISPLAY: block; HEIGHT: 22px } #content-wrapper #user-data-table TD A.editing-buttons { BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; MARGIN: 2px 2px 0px; WIDTH: 45px; FLOAT: left; BORDER-TOP: 0px; BORDER-RIGHT: 0px; TEXT-DECORATION: none } #content-wrapper #user-data-table TD A#save-btn { MARGIN-TOP: -2px; BACKGROUND: url(../art2/buttons/admin_lti/save_45x22.jpg) #fff no-repeat 0px 0px } #content-wrapper #user-data-table TD A#cancel-btn { MARGIN-TOP: -2px; BACKGROUND: url(../art2/buttons/admin_lti/cancel_45x22.jpg) #fff no-repeat 0px 0px } #content-wrapper #user-data-table TD#deletion-column { BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; WIDTH: 25px; BORDER-TOP: 0px; BORDER-RIGHT: 0px } #content-wrapper #user-data-table TD#deletion-column A#deletion-link { WIDTH: 16px; DISPLAY: block; BACKGROUND: url(../art2/buttons/admin_lti/delete_16x20.jpg) #fff no-repeat 0px 0px; HEIGHT: 20px; TEXT-DECORATION: none } #content-wrapper #clear-nonce-btn-box { MARGIN-TOP: 10px; WIDTH: 1230px; FLOAT: left; HEIGHT: 40px } #content-wrapper #clear-nonce-btn-box #clear-nonce { MARGIN-TOP: 15px; DISPLAY: block; FLOAT: left; MARGIN-RIGHT: 20px } #content-wrapper #add-new-btn-box { MARGIN-TOP: 10px; WIDTH: 1230px; FLOAT: left; HEIGHT: 40px } #content-wrapper #add-new-btn-box #add-new-a { DISPLAY: block; FLOAT: right; TEXT-DECORATION: none } #content-wrapper #add-new-btn-box #add-new-img { BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; WIDTH: 30px; HEIGHT: 22px; BORDER-TOP: 0px; BORDER-RIGHT: 0px } #content-wrapper #add-new-item-panel { BORDER-BOTTOM: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; WIDTH: 1225px; DISPLAY: none; BACKGROUND: #eeeeda; FLOAT: left; HEIGHT: 75px; BORDER-TOP: #ccc 1px solid; BORDER-RIGHT: #ccc 1px solid } #content-wrapper #add-new-item-panel .new-field { TEXT-ALIGN: center; WIDTH: 404px; DISPLAY: block; BACKGROUND: #eeeeda; FLOAT: left; HEIGHT: 25px } #content-wrapper #add-new-item-panel .new-field INPUT { TEXT-ALIGN: left; WIDTH: 373px; FLOAT: left; MARGIN-LEFT: 15px } #content-wrapper #add-new-item-panel .new-field#button-holder { WIDTH: 1212px; HEIGHT: 25px } #content-wrapper #add-new-item-panel .new-field#button-holder A#save-btn-new { MARGIN-TOP: 2px; MARGIN-LEFT: 10px; TEXT-DECORATION: none } #content-wrapper #add-new-item-panel .new-field#button-holder A#save-btn-new IMG { BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-TOP: 0px; BORDER-RIGHT: 0px } #content-wrapper #add-new-item-panel .new-field#button-holder A#cancel-btn-new { MARGIN-TOP: 2px; MARGIN-RIGHT: 10px; TEXT-DECORATION: none } #content-wrapper #add-new-item-panel .new-field#button-holder A#cancel-btn-new IMG { BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-TOP: 0px; BORDER-RIGHT: 0px } .section-reports-main-wrapper { WIDTH: 100%; FLOAT: left } .section-reports-main-wrapper DIV { FLOAT: left } .section-reports-main-wrapper #left-side { TEXT-ALIGN: right; WIDTH: 170px; PADDING-TOP: 30px; parring-right: 20px } .section-reports-main-wrapper #right-side { WIDTH: 700px; PADDING-TOP: 60px } .section-reports-main-wrapper #right-side #lower-inputs { MARGIN-TOP: 20px } .section-reports-main-wrapper #right-side #lower-inputs #select-input { WIDTH: 160px } .section-reports-main-wrapper #right-side #submit-row { TEXT-ALIGN: right } .section-reports-main-wrapper #table-start { MARGIN-TOP: 40px } .section-reports-main-wrapper #search-results { WIDTH: 100% } .section-reports-main-wrapper #search-results #search-table { WIDTH: 100% } .section-reports-main-wrapper #search-results #status-bar { WIDTH: 100% } .section-reports-main-wrapper #search-results #status-bar #download-btn { FLOAT: right } .section-reports-main-wrapper #search-results #status-bar #download-btn A { TEXT-DECORATION: none } .section-reports-main-wrapper #search-results #status-bar #status-text #number-records { FONT-WEIGHT: bold } .section-reports-main-wrapper #pagination { POSITION: absolute; MARGIN-LEFT: -450px; LEFT: 50% } .section-reports-main-wrapper #pagination IMG { BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; BORDER-TOP: medium none; BORDER-RIGHT: medium none; text-decoraiton: none } .section-reports-main-wrapper #pagination .btn-div { TEXT-ALIGN: center; WIDTH: 42px } .section-reports-main-wrapper #pagination .btn-div A#prev { WIDTH: 42px; DISPLAY: block; BACKGROUND: url(../art2/btn/type2/arrow_left.gif) no-repeat 14px 0px; HEIGHT: 19px; TEXT-DECORATION: none } .section-reports-main-wrapper #pagination .btn-div A#next { WIDTH: 42px; DISPLAY: block; BACKGROUND: url(../art2/btn/type2/arrow_right.gif) no-repeat 14px 0px; HEIGHT: 19px; TEXT-DECORATION: none } .section-reports-main-wrapper #pagination .btn-div A#first { WIDTH: 42px; DISPLAY: block; BACKGROUND: url(../art2/btn/type2/first.gif) no-repeat 1px 0px; HEIGHT: 19px; TEXT-DECORATION: none } .section-reports-main-wrapper #pagination .btn-div A#last { WIDTH: 42px; DISPLAY: block; BACKGROUND: url(../art2/btn/type2/last.gif) no-repeat 1px 0px; HEIGHT: 19px; TEXT-DECORATION: none } .section-reports-main-wrapper #pagination .btn-div DIV#prev { WIDTH: 42px; DISPLAY: block; BACKGROUND: url(../art2/btn/type2/arrow_left_grey.gif) no-repeat 14px 0px; HEIGHT: 19px; TEXT-DECORATION: none } .section-reports-main-wrapper #pagination .btn-div DIV#next { WIDTH: 42px; DISPLAY: block; BACKGROUND: url(../art2/btn/type2/arrow_right_grey.gif) no-repeat 14px 0px; HEIGHT: 19px; TEXT-DECORATION: none } .section-reports-main-wrapper #pagination .btn-div DIV#first { WIDTH: 42px; DISPLAY: block; BACKGROUND: url(../art2/btn/type2/first_grey.gif) no-repeat 1px 0px; HEIGHT: 19px; TEXT-DECORATION: none } .section-reports-main-wrapper #pagination .btn-div DIV#last { WIDTH: 42px; DISPLAY: block; BACKGROUND: url(../art2/btn/type2/last_grey.gif) no-repeat 1px 0px; HEIGHT: 19px; TEXT-DECORATION: none } .section-reports-main-wrapper #pagination .delimiter-div { TEXT-ALIGN: center; WIDTH: 42px; BACKGROUND: url(../art2/btn/type2/triple_circle_button_6px.gif) no-repeat 12px 9px; HEIGHT: 20px } .section-reports-main-wrapper #pagination .cur-btn-div { TEXT-ALIGN: center; WIDTH: 60px } .section-reports-main-wrapper #bottom-part { POSITION: absolute; MARGIN-TOP: 20px; WIDTH: 330px; MARGIN-LEFT: -165px; FONT-WEIGHT: bold; LEFT: 50% } .gc { FLOAT: left; CLEAR: right } .gcb-first { PADDING-RIGHT: 16px } .gcb { PADDING-LEFT: 16px } .w-20 { WIDTH: 20% } .w-25 { WIDTH: 25% } .w-33 { WIDTH: 33.33% } .w-40 { WIDTH: 40% } .w-50 { WIDTH: 50% } .w-60 { WIDTH: 60% } .w-66 { WIDTH: 66.66% } .w-75 { WIDTH: 75% } .w-80 { WIDTH: 80% } UNKNOWN { BACKGROUND-COLOR: #e2e2e2; COLOR: #666 } .qti-presentation INPUT { MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px } .qti-presentation TD > P:first-child { MARGIN-TOP: 0px } .qti-presentation TD > LABEL > P:first-child { MARGIN-TOP: 0px } .qti-presentation LABEL > SPAN { PADDING-RIGHT: 3px } .visualGradingContainer { POSITION: relative; MARGIN-TOP: 5px; DISPLAY: inline-block; TOP: 2px } .visualGradingContainer4matching { TOP: -10px } .changeValueLabelsContainer { MARGIN-BOTTOM: 10px } .changeValueLabelsContainer TD { PADDING-RIGHT: 12px } .showWork { PADDING-LEFT: 15px } .showWorkCopy { PADDING-TOP: 5px } *[align=center] > TABLE { TEXT-ALIGN: left } .qti-presentation-feedback TD > P:first-child { MARGIN-TOP: 3px; MARGIN-BOTTOM: 2px } .reinit { PADDING-BOTTOM: 13px; MARGIN: 5px; PADDING-LEFT: 13px; WIDTH: 0px; PADDING-RIGHT: 13px; BACKGROUND: url(../art_v4_9/buttons/maple_reinit/reinit_normal.png); FLOAT: right; HEIGHT: 0px; CURSOR: pointer; PADDING-TOP: 13px; background-size: auto } .reinit:hover { BACKGROUND: url(../art_v4_9/buttons/maple_reinit/reinit_hover.png) } .placeholderFlash { BORDER-BOTTOM: #cad3de 1px solid; TEXT-ALIGN: center; BORDER-LEFT: #cad3de 1px solid; MARGIN: 2px; WIDTH: 360px; FONT-FAMILY: Verdana, sans-serif; HEIGHT: 120px; FONT-SIZE: 12px; BORDER-TOP: #cad3de 1px solid; BORDER-RIGHT: #cad3de 1px solid; PADDING-TOP: 20px } .MathJax { } .MathJax SPAN { }
@page {size: 210mm 297mm; margin: 2cm; } .qprintsec { COLOR: #000000 } .qprintsec { FONT-FAMILY: arial,sans-serif; FONT-SIZE: 24px } .qprintsec { fontsize: 24px; fontfamily: "Arial","Sans-serif" } .qprintitem { COLOR: #000000 } .qprintitem { FONT-FAMILY: arial,sans-serif; FONT-SIZE: 20px } .qprintitem { fontsize: 20px; fontfamily: "Arial","Sans-serif" } .printHeader { PADDING-BOTTOM: 12px; PADDING-LEFT: 24px; PADDING-RIGHT: 24px; PADDING-TOP: 12px } .printHeader SPAN { FONT-FAMILY: arial,sans-serif; FONT-SIZE: 11pt; FONT-WEIGHT: bold } .printSpanInput { BORDER-BOTTOM: grey 1px solid; BORDER-LEFT: grey 1px solid; PADDING-BOTTOM: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; WHITE-SPACE: nowrap; BORDER-TOP: grey 1px solid; BORDER-RIGHT: grey 1px solid; PADDING-TOP: 0px } .pageBreakertrue { PAGE-BREAK-AFTER: always }
/* This file contains functions to generate OBJECT and EMBED tags for QuickTime and Flash content. These functions assemble the tags from parameters passed to them as parameters. WP_WriteOBJECT() - generate HTML tags and insert them into the calling document WP_WriteOBJECT_XHTML() - generate XHTML tags and insert them into the calling document WP_GenerateOBJECTText() - generate HTML tags and return them as a string WP_GenerateOBJECTText_XHTML() - generate XHTML tags and return them as a string To call one of these functions, pass the url, width, height, objectType [qt|flash] and pass all other attributes and parameters that you would otherwise specify for the OBJECT, PARAM, and EMBED tags as pairs of parameters: <script language="JavaScript" type="text/javascript"> WP_WriteOBJECT(srcURL, width, height, objectType, "attributeName1=attributeValue1", "attributeName1=attributeValue2", "attributeName1=attributeValue3", "attributeName1=attributeValue4", ... "attributeNameN=attributeValueN" ); </script> These functions automatically add appropriate "classid", "codebase", and "pluginspage" tags to the OBJECT and/or EMBED tags with standard values if they are not specified in the parameter list, so you need not supply these tags unless you require non-standard values. Although the OBJECT and EMBED tags typically have the same attributes and parameters, it is sometimes useful to have different values for each. Any attribute name prefixed with "obj#" is added to the OBJECT tag only, any attribute name prefixed with "emb#" is added to the EMBED tag only. <script language="JavaScript" type="text/javascript"> WP_WriteOBJECT('http://www.domain.com/sample.mov', '480', '288', 'qt', 'emb#bgcolor', '#FFFFFF'); </script> */ // additional objects should be described here function wpMediaObjectData(in_type){ this.type = in_type; var wpMedia_protocol_s = ''; if (window.location.href.slice(0, 5) == 'https') wpMedia_protocol_s = 's'; if (this.type == 'flash'){ this.classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"; this.codebase = "http" + wpMedia_protocol_s + "://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0"; this.pluginspage = "http" + wpMedia_protocol_s + "://www.macromedia.com/go/getflashplayer"; } else if(this.type == 'qt'){ this.classid = "clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"; this.codebase = "http" + wpMedia_protocol_s + "://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"; this.pluginspage = "http" + wpMedia_protocol_s + "://www.apple.com/quicktime/download/"; } else{ this.classid = "unknown"; this.codebase = "unknown"; this.pluginspage = "unknown"; } } var gTagAttrs = null; function _WPAddAttribute(prefix, slotName, tagName) { var value; value = gTagAttrs[prefix + slotName]; if ( null == value ) value = gTagAttrs[slotName]; if ( null != value ) { if ( 0 == slotName.indexOf(prefix) && (null == tagName) ) tagName = slotName.substring(prefix.length); if ( null == tagName ) tagName = slotName; return tagName + '="' + value + '" '; } else return ""; } function _WPAddObjectAttr(slotName, tagName) { // don't bother if it is only for the embed tag if ( 0 == slotName.indexOf("emb#") ) return ""; if ( 0 == slotName.indexOf("obj#") && (null == tagName) ) tagName = slotName.substring(4); return _WPAddAttribute("obj#", slotName, tagName); } function _WPAddEmbedAttr(slotName, tagName) { // don't bother if it is only for the object tag if ( 0 == slotName.indexOf("obj#") ) return ""; if ( 0 == slotName.indexOf("emb#") && (null == tagName) ) tagName = slotName.substring(4); return _WPAddAttribute("emb#", slotName, tagName); } function _WPAddObjectParam(slotName, generateXHTML) { var paramValue; var paramStr = ""; var endTagChar = (generateXHTML) ? ' />' : '>'; if ( -1 == slotName.indexOf("emb#") ) { // look for the OBJECT-only param first. if there is none, look for a generic one paramValue = gTagAttrs["obj#" + slotName]; if ( null == paramValue ) paramValue = gTagAttrs[slotName]; if ( 0 == slotName.indexOf("obj#") ) slotName = slotName.substring(4); if ( null != paramValue ) paramStr = ' <param name="' + slotName + '" value="' + paramValue + '"' + endTagChar + '\n'; } return paramStr; } function _WPDeleteTagAttrs() { for ( var ndx = 0; ndx < arguments.length; ndx++ ) { var attrName = arguments[ndx]; delete gTagAttrs[attrName]; delete gTagAttrs["emb#" + attrName]; delete gTagAttrs["obj#" + attrName]; } } // generate an embed and object tag, return as a string function _WPGenerate(callingFcnName, generateXHTML, args) { // is the number of optional arguments even? if (args.length < 4){ alert( callingFcnName + " function requires at least 4 attributes.") return ""; } // allocate an array, fill in the required attributes with fixed place params and defaults gTagAttrs = new Array(); gTagAttrs["src"] = args[0]; gTagAttrs["width"] = args[1]; gTagAttrs["height"] = args[2]; // set up codebase and other ActiveX descriptors (depends on it's type [flash|qt]) var m_object = new wpMediaObjectData(args[3]); gTagAttrs["classid"] = m_object.classid; gTagAttrs["pluginspage"] = m_object.pluginspage; gTagAttrs["codebase"] = m_object.codebase; var attrName, attrValue; // add all of the optional attributes to the array for ( var i = 4; i < args.length; i += 1){ attrName = args[i].split("||")[0].toLowerCase(); attrValue = args[i].split("||")[1]; // "name" and "id" should have the same value, the former goes in the embed and the later goes in // the object. use one array slot if ( "name" == attrName || "id" == attrName ) gTagAttrs["name"] = attrValue; else gTagAttrs[attrName] = attrValue; } gTagAttrs['wmode'] = 'opaque'; // init both tags with the required and "special" attributes var objTag = '<object ' + _WPAddObjectAttr("classid") + _WPAddObjectAttr("width") + _WPAddObjectAttr("height") + _WPAddObjectAttr("codebase") + _WPAddObjectAttr("name", "id") + _WPAddObjectAttr("tabindex") + _WPAddObjectAttr("hspace") + _WPAddObjectAttr("vspace") + _WPAddObjectAttr("border") + _WPAddObjectAttr("align") + _WPAddObjectAttr("class") + _WPAddObjectAttr("title") + _WPAddObjectAttr("accesskey") + _WPAddObjectAttr("noexternaldata") + '>\n' + _WPAddObjectParam("src", generateXHTML); var embedTag = ' <embed ' + _WPAddEmbedAttr("src") + _WPAddEmbedAttr("width") + _WPAddEmbedAttr("height") + _WPAddEmbedAttr("pluginspage") + _WPAddEmbedAttr("name") + _WPAddEmbedAttr("align") + _WPAddEmbedAttr("tabindex"); // delete the attributes/params we have already added _WPDeleteTagAttrs("src","width","height","pluginspage","classid","codebase","name","tabindex", "hspace","vspace","border","align","noexternaldata","class","title","accesskey"); // and finally, add all of the remaining attributes to the embed and object try{ for ( var attrName in gTagAttrs ) { attrValue = gTagAttrs[attrName]; if ( null != attrValue ) { embedTag += _WPAddEmbedAttr(attrName); objTag += _WPAddObjectParam(attrName, generateXHTML); } } } catch (err){ //We need this TRY block to resolve problem with additional elements from Prototype JS framework } // end both tags, we're done return objTag + embedTag + '> </em' + 'bed>\n</ob' + 'ject' + '>'; } // return the object/embed as a string function WP_GenerateOBJECTText(){ return _WPGenerate("WP_GenerateOBJECTText", false, arguments); } // return the object/embed as a string XHTML function WP_GenerateOBJECTText_XHTML(){ return _WPGenerate("WP_GenerateOBJECTText_XHTML", true, arguments); } function WP_WriteOBJECT(){ document.writeln(_WPGenerate("WP_WriteOBJECT", false, arguments)); } function WP_WriteOBJECT_XHTML(){ document.writeln(_WPGenerate("WP_WriteOBJECT_XHTML", true, arguments)); }
/*! * jQuery JavaScript Library v1.4.2 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. * * Date: Sat Feb 13 22:33:48 2010 -0500 */ (function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(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 X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o<i;o++)e(a[o],b,f?d.call(a[o],o,e(a[o],b)):d,j);return a}return i? e(a[0],b):w}function J(){return(new Date).getTime()}function Y(){return false}function Z(){return true}function na(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function oa(a){var b,d=[],f=[],e=arguments,j,i,o,k,n,r;i=c.data(this,"events");if(!(a.liveFired===this||!i||!i.live||a.button&&a.type==="click")){a.liveFired=this;var u=i.live.slice(0);for(k=0;k<u.length;k++){i=u[k];i.origType.replace(O,"")===a.type?f.push(i.selector):u.splice(k--,1)}j=c(a.target).closest(f,a.currentTarget);n=0;for(r= j.length;n<r;n++)for(k=0;k<u.length;k++){i=u[k];if(j[n].selector===i.selector){o=j[n].elem;f=null;if(i.preType==="mouseenter"||i.preType==="mouseleave")f=c(a.relatedTarget).closest(i.selector)[0];if(!f||f!==o)d.push({elem:o,handleObj:i})}}n=0;for(r=d.length;n<r;n++){j=d[n];a.currentTarget=j.elem;a.data=j.handleObj.data;a.handleObj=j.handleObj;if(j.handleObj.origHandler.apply(j.elem,e)===false){b=false;break}}return b}}function pa(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g, "&")}function qa(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function ra(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var f=c.data(a[d++]),e=c.data(this,f);if(f=f&&f.events){delete e.handle;e.events={};for(var j in f)for(var i in f[j])c.event.add(this,j,f[j][i],f[j][i].data)}}})}function sa(a,b,d){var f,e,j;b=b&&b[0]?b[0].ownerDocument||b[0]:s;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===s&&!ta.test(a[0])&&(c.support.checkClone||!ua.test(a[0]))){e= true;if(j=c.fragments[a[0]])if(j!==1)f=j}if(!f){f=b.createDocumentFragment();c.clean(a,b,f,d)}if(e)c.fragments[a[0]]=j?f:1;return{fragment:f,cacheable:e}}function K(a,b){var d={};c.each(va.concat.apply([],va.slice(0,b)),function(){d[this]=a});return d}function wa(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var c=function(a,b){return new c.fn.init(a,b)},Ra=A.jQuery,Sa=A.$,s=A.document,T,Ta=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/, Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&& (d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this, a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b=== "find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this, function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=arguments[b])!=null)for(j in e){i=a[j];o=e[j];if(a!==o)if(f&&o&&(c.isPlainObject(o)||c.isArray(o))){i=i&&(c.isPlainObject(i)|| c.isArray(i))?i:c.isArray(o)?[]:{};a[j]=c.extend(f,i,o)}else if(o!==w)a[j]=o}return a};c.extend({noConflict:function(a){A.$=Sa;if(a)A.jQuery=Ra;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&&c(s).triggerHandler("ready")}},bindReady:function(){if(!xa){xa=true;if(s.readyState==="complete")return c.ready();if(s.addEventListener){s.addEventListener("DOMContentLoaded", L,false);A.addEventListener("load",c.ready,false)}else if(s.attachEvent){s.attachEvent("onreadystatechange",L);A.attachEvent("onload",c.ready);var a=false;try{a=A.frameElement==null}catch(b){}s.documentElement.doScroll&&a&&ma()}}},isFunction:function(a){return $.call(a)==="[object Function]"},isArray:function(a){return $.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||$.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!aa.call(a,"constructor")&&!aa.call(a.constructor.prototype, "isPrototypeOf"))return false;var b;for(b in a);return b===w||aa.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=c.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return A.JSON&&A.JSON.parse?A.JSON.parse(a):(new Function("return "+ a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&Va.test(a)){var b=s.getElementsByTagName("head")[0]||s.documentElement,d=s.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(s.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,j=a.length,i=j===w||c.isFunction(a);if(d)if(i)for(f in a){if(b.apply(a[f], d)===false)break}else for(;e<j;){if(b.apply(a[e++],d)===false)break}else if(i)for(f in a){if(b.call(a[f],f,a[f])===false)break}else for(d=a[0];e<j&&b.call(d,e,d)!==false;d=a[++e]);return a},trim:function(a){return(a||"").replace(Wa,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?ba.call(b,a):c.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var d=0,f=b.length;d<f;d++)if(b[d]=== a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e=b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==w;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,j=a.length;e<j;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:function(a,b,d){for(var f=[],e,j=0,i=a.length;j<i;j++){e=b(a[j],j,d);if(e!=null)f[f.length]=e}return f.concat.apply([],f)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b==="string"){d=a;a=d[b];b=w}else if(b&& !c.isFunction(b)){d=b;b=w}if(!b&&a)b=function(){return a.apply(d||this,arguments)};if(a)b.guid=a.guid=a.guid||b.guid||c.guid++;return b},uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},browser:{}});P=c.uaMatch(P);if(P.browser){c.browser[P.browser]=true;c.browser.version=P.version}if(c.browser.webkit)c.browser.safari= true;if(ya)c.inArray=function(a,b){return ya.call(b,a)};T=c(s);if(s.addEventListener)L=function(){s.removeEventListener("DOMContentLoaded",L,false);c.ready()};else if(s.attachEvent)L=function(){if(s.readyState==="complete"){s.detachEvent("onreadystatechange",L);c.ready()}};(function(){c.support={};var a=s.documentElement,b=s.createElement("script"),d=s.createElement("div"),f="script"+J();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 e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected, parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent= false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n= s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true, applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&&typeof b==="string"&&d===w)return null;f||(f=++Ya);if(typeof b==="object"){a[G]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[G]=f;e[f]={}}a=e[f];if(d!==w)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando]; else a.removeAttribute&&a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length)f=c.data(this[0],a);return f===w&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this, a,b)})},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 f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b=== w)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,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 Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i, cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(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(n){var r=c(this);r.addClass(a.call(this,n,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1)if(e.className){for(var j=" "+e.className+" ", i=e.className,o=0,k=b.length;o<k;o++)if(j.indexOf(" "+b[o]+" ")<0)i+=" "+b[o];e.className=c.trim(i)}else e.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(k){var n=c(this);n.removeClass(a.call(this,k,n.attr("class")))});if(a&&typeof a==="string"||a===w)for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1&&e.className)if(a){for(var j=(" "+e.className+" ").replace(Aa," "),i=0,o=b.length;i<o;i++)j=j.replace(" "+b[i]+" ", " ");e.className=c.trim(j)}else e.className=""}return this},toggleClass:function(a,b){var d=typeof a,f=typeof b==="boolean";if(c.isFunction(a))return this.each(function(e){var j=c(this);j.toggleClass(a.call(this,e,j.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var e,j=0,i=c(this),o=b,k=a.split(ca);e=k[j++];){o=f?o:!i.hasClass(e);i[o?"addClass":"removeClass"](e)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__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(Aa," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j<d;j++){var i= e[j];if(i.selected){a=c(i).val();if(b)return a;f.push(a)}}return f}if(Ba.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Za,"")}return w}var o=c.isFunction(a);return this.each(function(k){var n=c(this),r=a;if(this.nodeType===1){if(o)r=a.call(this,k,n.val());if(typeof r==="number")r+="";if(c.isArray(r)&&Ba.test(this.type))this.checked=c.inArray(n.val(),r)>=0;else if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected= c.inArray(c(this).val(),u)>=0});if(!u.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},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&&f&&!j){if(e){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed"); a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g, function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split("."); k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}u.push(j);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a), C=z&&z.events;if(z&&C){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in C)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[j++];){n=e;i=e.indexOf(".")<0;o=[];if(!i){o=e.split(".");e=o.shift();k=new RegExp("(^|\\.)"+c.map(o.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(r=C[e])if(d){n=c.event.special[e]||{};for(B=f||0;B<r.length;B++){u=r[B];if(d.guid===u.guid){if(i||k.test(u.namespace)){f==null&&r.splice(B--,1);n.remove&&n.remove.call(a,u)}if(f!= null)break}}if(r.length===0||f!=null&&r.length===1){if(!n.teardown||n.teardown.call(a,o)===false)Ca(a,e,z.handle);delete C[e]}}else for(var B=0;B<r.length;B++){u=r[B];if(i||k.test(u.namespace)){c.event.remove(a,n,u.handler,B);r.splice(B--,1)}}}if(c.isEmptyObject(C)){if(b=z.handle)b.elem=null;delete z.events;delete z.handle;c.isEmptyObject(z)&&c.removeData(a)}}}}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[G]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf("!")>=0){a.type= e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&& f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive; if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e<j;e++){var i=d[e];if(b||f.test(i.namespace)){a.handler=i.handler;a.data=i.data;a.handleObj=i;i=i.handler.apply(this,arguments);if(i!==w){a.result=i;if(i===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 originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "), fix:function(a){if(a[G])return a;var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=b[f]}if(!a.target)a.target=a.srcElement||s;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=s.documentElement;d=s.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|| d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==w)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,a.origType,c.extend({},a,{handler:oa}))},remove:function(a){var b=true,d=a.origType.replace(O,"");c.each(c.data(this, "events").live||[],function(){if(d===this.origType.replace(O,""))return b=false});b&&c.event.remove(this,a.origType,oa)}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};var Ca=s.removeEventListener?function(a,b,d){a.removeEventListener(b,d,false)}:function(a,b,d){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=J();this[G]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z;this.stopPropagation()},isDefaultPrevented:Y,isPropagationStopped:Y, isImmediatePropagationStopped:Y};var Da=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){}},Ea=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?Ea:Da,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Ea:Da)}}});if(!c.support.submitBubbles)c.event.special.submit= {setup:function(){if(this.nodeName.toLowerCase()!=="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)return na("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)return na("submit",this,arguments)})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}}; if(!c.support.changeBubbles){var da=/textarea|input|select/i,ea,Fa=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(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data", e);if(!(f===w||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.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 fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a, "_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a, d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j<o;j++)c.event.add(this[j],d,i,f)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&& !a.preventDefault)for(var d in a)this.unbind(d,a[d]);else{d=0;for(var f=this.length;d<f;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,f){return this.live(b,d,f,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]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}}, toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(f){var e=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Ga={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,f,e,j){var i,o=0,k,n,r=j||this.selector, u=j?this:c(this.context);if(c.isFunction(f)){e=f;f=w}for(d=(d||"").split(" ");(i=d[o++])!=null;){j=O.exec(i);k="";if(j){k=j[0];i=i.replace(O,"")}if(i==="hover")d.push("mouseenter"+k,"mouseleave"+k);else{n=i;if(i==="focus"||i==="blur"){d.push(Ga[i]+k);i+=k}else i=(Ga[i]||i)+k;b==="live"?u.each(function(){c.event.add(this,pa(i,r),{data:f,selector:r,handler:e,origType:i,origHandler:e,preType:n})}):u.unbind(pa(i,r),e)}}return this}});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){return d?this.bind(b,d):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});A.attachEvent&&!A.addEventListener&&A.attachEvent("onunload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});(function(){function a(g){for(var h="",l,m=0;g[m];m++){l=g[m];if(l.nodeType===3||l.nodeType===4)h+=l.nodeValue;else if(l.nodeType!==8)h+=a(l.childNodes)}return h}function b(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q]; if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1&&!p){t.sizcache=l;t.sizset=q}if(t.nodeName.toLowerCase()===h){y=t;break}t=t[g]}m[q]=y}}}function d(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q];if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1){if(!p){t.sizcache=l;t.sizset=q}if(typeof h!=="string"){if(t===h){y=true;break}}else if(k.filter(h,[t]).length>0){y=t;break}}t=t[g]}m[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, e=0,j=Object.prototype.toString,i=false,o=true;[0,0].sort(function(){o=false;return 0});var k=function(g,h,l,m){l=l||[];var q=h=h||s;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||typeof g!=="string")return l;for(var p=[],v,t,y,S,H=true,M=x(h),I=g;(f.exec(""),v=f.exec(I))!==null;){I=v[3];p.push(v[1]);if(v[2]){S=v[3];break}}if(p.length>1&&r.exec(g))if(p.length===2&&n.relative[p[0]])t=ga(p[0]+p[1],h);else for(t=n.relative[p[0]]?[h]:k(p.shift(),h);p.length;){g=p.shift();if(n.relative[g])g+=p.shift(); t=ga(g,t)}else{if(!m&&p.length>1&&h.nodeType===9&&!M&&n.match.ID.test(p[0])&&!n.match.ID.test(p[p.length-1])){v=k.find(p.shift(),h,M);h=v.expr?k.filter(v.expr,v.set)[0]:v.set[0]}if(h){v=m?{expr:p.pop(),set:z(m)}:k.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=v.expr?k.filter(v.expr,v.set):v.set;if(p.length>0)y=z(t);else H=false;for(;p.length;){var D=p.pop();v=D;if(n.relative[D])v=p.pop();else D="";if(v==null)v=h;n.relative[D](y,v,M)}}else y=[]}y||(y=t);y||k.error(D|| g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h<g.length;h++)g[h]===g[h-1]&&g.splice(h--,1)}return g};k.matches=function(g,h){return k(g,null,null,h)};k.find=function(g,h,l){var m,q;if(!g)return[]; for(var p=0,v=n.order.length;p<v;p++){var t=n.order[p];if(q=n.leftMatch[t].exec(g)){var y=q[1];q.splice(1,1);if(y.substr(y.length-1)!=="\\"){q[1]=(q[1]||"").replace(/\\/g,"");m=n.find[t](q,h,l);if(m!=null){g=g.replace(n.match[t],"");break}}}}m||(m=h.getElementsByTagName("*"));return{set:m,expr:g}};k.filter=function(g,h,l,m){for(var q=g,p=[],v=h,t,y,S=h&&h[0]&&x(h[0]);g&&h.length;){for(var H in n.filter)if((t=n.leftMatch[H].exec(g))!=null&&t[2]){var M=n.filter[H],I,D;D=t[1];y=false;t.splice(1,1);if(D.substr(D.length- 1)!=="\\"){if(v===p)p=[];if(n.preFilter[H])if(t=n.preFilter[H](t,v,l,p,m,S)){if(t===true)continue}else y=I=true;if(t)for(var U=0;(D=v[U])!=null;U++)if(D){I=M(D,t,U,v);var Ha=m^!!I;if(l&&I!=null)if(Ha)y=true;else v[U]=false;else if(Ha){p.push(D);y=true}}if(I!==w){l||(v=p);g=g.replace(n.match[H],"");if(!y)return[];break}}}if(g===q)if(y==null)k.error(g);else break;q=g}return v};k.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var n=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+-]*)\))?/,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,h){var l=typeof h==="string",m=l&&!/\W/.test(h);l=l&&!m;if(m)h=h.toLowerCase();m=0;for(var q=g.length,p;m<q;m++)if(p=g[m]){for(;(p=p.previousSibling)&&p.nodeType!==1;);g[m]=l||p&&p.nodeName.toLowerCase()===h?p||false:p===h}l&&k.filter(h,g,true)},">":function(g,h){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m<q;m++){var p=g[m];if(p){l=p.parentNode;g[m]=l.nodeName.toLowerCase()===h?l:false}}}else{m=0;for(q=g.length;m<q;m++)if(p=g[m])g[m]= l?p.parentNode:p.parentNode===h;l&&k.filter(h,g,true)}},"":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("parentNode",h,m,g,p,l)},"~":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("previousSibling",h,m,g,p,l)}},find:{ID:function(g,h,l){if(typeof h.getElementById!=="undefined"&&!l)return(g=h.getElementById(g[1]))?[g]:[]},NAME:function(g,h){if(typeof h.getElementsByName!=="undefined"){var l=[]; h=h.getElementsByName(g[1]);for(var m=0,q=h.length;m<q;m++)h[m].getAttribute("name")===g[1]&&l.push(h[m]);return l.length===0?null:l}},TAG:function(g,h){return h.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,h,l,m,q,p){g=" "+g[1].replace(/\\/g,"")+" ";if(p)return g;p=0;for(var v;(v=h[p])!=null;p++)if(v)if(q^(v.className&&(" "+v.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0))l||m.push(v);else if(l)h[p]=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 h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,l,m,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,h);else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m, g);return false}else if(n.match.POS.test(g[0])||n.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===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,h,l){return!!k(l[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"===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,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return h<l[3]-0},gt:function(g,h,l){return h>l[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h= h[3];l=0;for(m=h.length;l<m;l++)if(h[l]===g)return false;return true}else k.error("Syntax error, unrecognized expression: "+q)},CHILD:function(g,h){var l=h[1],m=g;switch(l){case "only":case "first":for(;m=m.previousSibling;)if(m.nodeType===1)return false;if(l==="first")return true;m=g;case "last":for(;m=m.nextSibling;)if(m.nodeType===1)return false;return true;case "nth":l=h[2];var q=h[3];if(l===1&&q===0)return true;h=h[0];var p=g.parentNode;if(p&&(p.sizcache!==h||!g.nodeIndex)){var v=0;for(m=p.firstChild;m;m= m.nextSibling)if(m.nodeType===1)m.nodeIndex=++v;p.sizcache=h}g=g.nodeIndex-q;return l===0?g===0:g%l===0&&g/l>=0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m=== "="?l===h:m==="*="?l.indexOf(h)>=0:m==="~="?(" "+l+" ").indexOf(h)>=0:!h?l&&g!==false:m==="!="?l!==h:m==="^="?l.indexOf(h)===0:m==="$="?l.substr(l.length-h.length)===h:m==="|="?l===h||l.substr(0,h.length+1)===h+"-":false},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q)return q(g,l,h,m)}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g, h){return"\\"+(h-0+1)}))}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){z=function(g,h){h=h||[];if(j.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var l=0,m=g.length;l<m;l++)h.push(g[l]);else for(l=0;g[l];l++)h.push(g[l]);return h}}var B;if(s.documentElement.compareDocumentPosition)B=function(g,h){if(!g.compareDocumentPosition|| !h.compareDocumentPosition){if(g==h)i=true;return g.compareDocumentPosition?-1:1}g=g.compareDocumentPosition(h)&4?-1:g===h?0:1;if(g===0)i=true;return g};else if("sourceIndex"in s.documentElement)B=function(g,h){if(!g.sourceIndex||!h.sourceIndex){if(g==h)i=true;return g.sourceIndex?-1:1}g=g.sourceIndex-h.sourceIndex;if(g===0)i=true;return g};else if(s.createRange)B=function(g,h){if(!g.ownerDocument||!h.ownerDocument){if(g==h)i=true;return g.ownerDocument?-1:1}var l=g.ownerDocument.createRange(),m= h.ownerDocument.createRange();l.setStart(g,0);l.setEnd(g,0);m.setStart(h,0);m.setEnd(h,0);g=l.compareBoundaryPoints(Range.START_TO_END,m);if(g===0)i=true;return g};(function(){var g=s.createElement("div"),h="script"+(new Date).getTime();g.innerHTML="<a name='"+h+"'/>";var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&& q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;l[m];m++)l[m].nodeType===1&&h.push(l[m]);l=h}return l};g.innerHTML="<a href='#'></a>"; if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="<p class='TEST'></p>";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}(); (function(){var g=s.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){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}: function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q<p;q++)k(g,h[q],l);return k.filter(m,l)};c.find=k;c.expr=k.selectors;c.expr[":"]=c.expr.filters;c.unique=k.uniqueSort;c.text=a;c.isXMLDoc=x;c.contains=E})();var eb=/Until$/,fb=/^(?:parents|prevUntil|prevAll)/, gb=/,/;R=Array.prototype.slice;var Ia=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,j){return!!b.call(e,j,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Ua.test(b))return c.filter(b,f,!d);else b=c.filter(b,f)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length; c.find(a,this[f],b);if(f>0)for(var j=d;j<b.length;j++)for(var i=0;i<d;i++)if(b[i]===b[j]){b.splice(j--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Ia(this,a,false),"not",a)},filter:function(a){return this.pushStack(Ia(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j= {},i;if(f&&a.length){e=0;for(var o=a.length;e<o;e++){i=a[e];j[i]||(j[i]=c.expr.match.POS.test(i)?c(i,b||this.context):i)}for(;f&&f.ownerDocument&&f!==b;){for(i in j){e=j[i];if(e.jquery?e.index(f)>-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},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){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},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,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,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType=== 1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===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 Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/<tbody/i,jb=/<|&#?\w+;/,ta=/<script|<object|<embed|<option|<style/i,ua=/checked\s*(?:[^=]|=\s*.checked.)/i,Ma=function(a,b,d){return hb.test(d)? a:b+"></"+d+">"},F={option:[1,"<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,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d= c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).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}, 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)})}, 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, 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,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}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); return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja, ""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);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(f){this.empty().append(a)}}else c.isFunction(a)?this.each(function(e){var j=c(this),i=j.html();j.empty().append(function(){return a.call(this,e,i)})}):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=c(this),f=d.html();d.replaceWith(a.call(this,b,f))});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){function f(u){return c.nodeName(u,"table")?u.getElementsByTagName("tbody")[0]|| u.appendChild(u.ownerDocument.createElement("tbody")):u}var e,j,i=a[0],o=[],k;if(!c.support.checkClone&&arguments.length===3&&typeof i==="string"&&ua.test(i))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(i))return this.each(function(u){var z=c(this);a[0]=i.call(this,u,b?z.html():w);z.domManip(a,b,d)});if(this[0]){e=i&&i.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:sa(a,this,o);k=e.fragment;if(j=k.childNodes.length=== 1?(k=k.firstChild):k.firstChild){b=b&&c.nodeName(j,"tr");for(var n=0,r=this.length;n<r;n++)d.call(b?f(this[n],j):this[n],n>0||e.cacheable||this.length>1?k.cloneNode(true):k)}o.length&&c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]); return this}else{e=0;for(var j=d.length;e<j;e++){var i=(e>0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number")i+="";if(i){if(typeof i==="string"&&!jb.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["", ""])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement("div");for(r.innerHTML=k[1]+i+k[2];n--;)r=r.lastChild;if(!c.support.tbody){n=ib.test(i);o=o==="table"&&!n?r.firstChild&&r.firstChild.childNodes:k[1]==="<table>"&&!n?r.childNodes:[];for(k=o.length-1;k>=0;--k)c.nodeName(o[k],"tbody")&&!o[k].childNodes.length&&o[k].parentNode.removeChild(o[k])}!c.support.leadingWhitespace&&V.test(i)&&r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes}if(i.nodeType)e.push(i);else e= c.merge(e,i)}}if(d)for(j=0;e[j];j++)if(f&&c.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript"))f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);else{e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName("script"))));d.appendChild(e[j])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++)if(d=o[c.expando]){b=f[d];if(b.events)for(var k in b.events)e[k]? c.event.remove(o,k):Ca(o,k,b.handle);if(j)delete o[c.expando];else o.removeAttribute&&o.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=s.defaultView&&s.defaultView.getComputedStyle,Pa=c.support.cssFloat?"cssFloat":"styleFloat",ja= function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter= Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a, "border"+this+"Width",true))||0})}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ha.test(b))b=Pa;if(!d&&e&&e[b])f=e[b];else if(rb){if(ha.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f= a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b= a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=/<script(.|\s)*?\/script>/gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!== "string")return zb.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var j=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(i,o){if(o==="success"||o==="notmodified")j.html(e?c("<div />").append(i.responseText.replace(tb,"")).find(e):i.responseText);d&&j.each(d,[i.responseText,o,i])}});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&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).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,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},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,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},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:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){e.success&& e.success.call(k,o,i,x);e.global&&f("ajaxSuccess",[x,e])}function d(){e.complete&&e.complete.call(k,x,i);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(q,p){(e.context?c(e.context):c.event).trigger(q,p)}var e=c.extend(true,{},c.ajaxSettings,a),j,i,o,k=a&&a.context||e,n=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(n==="GET")N.test(e.url)||(e.url+=(ka.test(e.url)? "&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!N.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&N.test(e.data)||N.test(e.url))){j=e.jsonpCallback||"jsonp"+sb++;if(e.data)e.data=(e.data+"").replace(N,"="+j+"$1");e.url=e.url.replace(N,"="+j+"$1");e.dataType="script";A[j]=A[j]||function(q){o=q;b();d();A[j]=w;try{delete A[j]}catch(p){}z&&z.removeChild(C)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache=== false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"")}if(e.data&&n==="GET")e.url+=(ka.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&&(r[1]&&r[1]!==location.protocol||r[2]!==location.host);if(e.dataType==="script"&&n==="GET"&&r){var z=s.getElementsByTagName("head")[0]||s.documentElement,C=s.createElement("script");C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!j){var B= false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType)x.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since", c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(ga){}if(e.beforeSend&&e.beforeSend.call(k,x,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");x.abort();return false}e.global&&f("ajaxSend",[x,e]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q==="abort"){E|| d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parsererror";p=v}if(i==="success"||i==="notmodified")j||b();else c.handleError(e,x,i,p);d();q==="timeout"&&x.abort();if(e.async)x=null}};try{var h=x.abort;x.abort=function(){x&&h.call(x); g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status=== 1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b=== "json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n)});else!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional; if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay"); this[a].style.display=d||"";if(c.css(this[a],"display")==="none"){d=this[a].nodeName;var f;if(la[d])f=la[d];else{var e=c("<"+d+" />").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();la[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a<b;a++)this[a].style.display=c.data(this[a],"olddisplay")||"";return this}},hide:function(a,b){if(a||a===0)return this.animate(K("hide",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");!d&&d!=="none"&&c.data(this[a], "olddisplay",c.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||d?this.each(function(){var f=d?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(K("toggle",3),a,b);return this},fadeTo:function(a,b,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d)}, animate:function(a,b,d,f){var e=c.speed(b,d,f);if(c.isEmptyObject(a))return this.each(e.complete);return this[e.queue===false?"each":"queue"](function(){var j=c.extend({},e),i,o=this.nodeType===1&&c(this).is(":hidden"),k=this;for(i in a){var n=i.replace(ia,ja);if(i!==n){a[n]=a[i];delete a[i];i=n}if(a[i]==="hide"&&o||a[i]==="show"&&!o)return j.complete.call(this);if((i==="height"||i==="width")&&this.style){j.display=c.css(this,"display");j.overflow=this.style.overflow}if(c.isArray(a[i])){(j.specialEasing= j.specialEasing||{})[i]=a[i][1];a[i]=a[i][0]}}if(j.overflow!=null)this.style.overflow="hidden";j.curAnim=c.extend({},a);c.each(a,function(r,u){var z=new c.fx(k,j,r);if(Ab.test(u))z[u==="toggle"?o?"show":"hide":u](a);else{var C=Bb.exec(u),B=z.cur(true)||0;if(C){u=parseFloat(C[2]);var E=C[3]||"px";if(E!=="px"){k.style[r]=(u||1)+E;B=(u||1)/z.cur(true)*B;k.style[r]=B+E}if(C[1])u=(C[1]==="-="?-1:1)*u+B;z.custom(B,u,E)}else z.custom(B,u,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]); this.each(function(){for(var f=d.length-1;f>=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration=== "number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+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);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start; this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},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;this.custom(this.cur(),0)},step:function(a){var b=J(),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 f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem, e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,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=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length|| c.fx.stop()},stop:function(){clearInterval(W);W=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===b.elem}).length};c.fn.offset="getBoundingClientRect"in s.documentElement? function(a){var b=this[0];if(a)return this.each(function(e){c.offset.setOffset(this,a,e)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);var d=b.getBoundingClientRect(),f=b.ownerDocument;b=f.body;f=f.documentElement;return{top:d.top+(self.pageYOffset||c.support.boxModel&&f.scrollTop||b.scrollTop)-(f.clientTop||b.clientTop||0),left:d.left+(self.pageXOffset||c.support.boxModel&&f.scrollLeft||b.scrollLeft)-(f.clientLeft||b.clientLeft||0)}}:function(a){var b= this[0];if(a)return this.each(function(r){c.offset.setOffset(this,a,r)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d=b.offsetParent,f=b,e=b.ownerDocument,j,i=e.documentElement,o=e.body;f=(e=e.defaultView)?e.getComputedStyle(b,null):b.currentStyle;for(var k=b.offsetTop,n=b.offsetLeft;(b=b.parentNode)&&b!==o&&b!==i;){if(c.offset.supportsFixedPosition&&f.position==="fixed")break;j=e?e.getComputedStyle(b,null):b.currentStyle; k-=b.scrollTop;n-=b.scrollLeft;if(b===d){k+=b.offsetTop;n+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=d;d=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&j.overflow!=="visible"){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=j}if(f.position==="relative"||f.position==="static"){k+=o.offsetTop;n+=o.offsetLeft}if(c.offset.supportsFixedPosition&& f.position==="fixed"){k+=Math.max(i.scrollTop,o.scrollTop);n+=Math.max(i.scrollLeft,o.scrollLeft)}return{top:k,left:n}};c.offset={initialize:function(){var a=s.body,b=s.createElement("div"),d,f,e,j=parseFloat(c.curCSS(a,"marginTop",true))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",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;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;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.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,"top",true),10)||0,i=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a, d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top- f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&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(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset": "pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return"scrollTo"in e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window);
// ======================================================================== // TES JavaScripts Library V1.0 // // File default.js // // Copyright (c) 2002-2005 John Wiley and Sons, Inc. // ======================================================================== (function (fn) { if (window.addEventListener) window.addEventListener("load", fn, false); else if (window.attachEvent) return window.attachEvent("onload", fn); })(function(){ window.getScrollLeft = function(){ return this.document.body.getScrollLeft(); }; document.getScrollLeft = function(){ return this.body.getScrollLeft(); }; document.body.getScrollLeft = function(){ return this.ownerDocument.documentElement.scrollLeft | this.scrollLeft; }; window.getScrollTop = function(){ return this.document.body.getScrollTop(); }; document.getScrollTop = function(){ return this.body.getScrollTop(); }; document.body.getScrollTop = function(){ return this.ownerDocument.documentElement.scrollTop | this.scrollTop; }; }); function getControls() { return top; } function validSubmit(in_form){ if (validate(in_form)){ in_form.submit(); } } function checkPwdLength(in_inputObj){ var s_maxLength = 25; if (in_inputObj.value.length > s_maxLength){ alert("Please choose a new password that is fewer than "+ s_maxLength +" characters."); in_inputObj.value = ""; } } function checkCommentAreaLength(in_inputObj){ var s_maxLength = 900; var s_valueStore = in_inputObj.value; if (in_inputObj.value.length > s_maxLength){ alert("This assignment type has a maximum character limit of 900."); in_inputObj.value = s_valueStore.substring(0, 899); return true; } } function checkTextAreaLength(in_inputObj){ var s_maxLength = 10000; var s_valueStore = in_inputObj.value; if (in_inputObj.value.length > s_maxLength){ alert("This assignment type has a maximum character limit of 10000."); in_inputObj.value = s_valueStore.substring(0, 9999); return true; } } function itemsSelect(in_form, in_controlObj, in_itemName){ var switcherState = in_controlObj.checked; var curElm = null; for(var i=0; i< in_form.length; i++) { curElm = in_form.elements[i]; if ((in_form.elements[i].name == in_itemName) || ((arguments[3] != null) && (in_form.elements[i].name == arguments[3]))) { if (in_form.elements[i].type == 'checkbox'){ curElm.checked = switcherState; } } } } function containsWsOnly(in_str){ var s_result = true; for(var i=0; i < in_str.length; i++) { if (in_str.charAt(i) != " " ){ s_result = false; break; } } return s_result; } function callHelp(){ var s_helpMode = ""; if (arguments[0] != null) { s_helpMode = arguments[0]; } uni_help(s_helpMode); } function uni_contextHelp() { if (self.location==top.location){ opener.top.uni_help("context"); } else{ top.uni_help("context"); } } function notImp(feature) { alert("The '" + feature + "' is not implemented yet."); } var decodeEntityArray = (function () { var element = document.createElement('div'); function decodeHTMLEntityArray(array) { var resultArray = []; for (var i = 0; i < array.length; i++) { element.innerHTML = array[i]; resultArray.push(element.innerHTML); element.innerHTML = ''; } return resultArray; } return decodeHTMLEntityArray; })(); function makeUniqueArray(in_array){ var decodedArray = decodeEntityArray(in_array); decodedArray.sort(); var item = decodedArray[0]; var resArray = [item]; for(var i=1; i<decodedArray.length; i++){ if (decodedArray[i] != item ){ item = decodedArray[i]; resArray.push( decodedArray[i] ); } } return resArray; } function Is() { var agent = navigator.userAgent.toLowerCase(); this.major = parseInt(navigator.appVersion); this.minor = parseFloat(navigator.appVersion); this.ns = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1))); this.ns2 = (this.ns && (this.major == 2)); this.ns3 = (this.ns && (this.major == 3)); this.ns4 = (this.ns && (this.major == 4)); this.ns5 = (this.ns && (this.major > 4)); this.ns6 = (this.ns && (agent.indexOf('netscape6')!=-1) ); this.ns7 = (this.ns && (agent.indexOf('netscape/7')!=-1) ); this.ns7pr = (this.ns && (agent.indexOf('netscape/7.0b1')!=-1) ); this.ns71 = (this.ns && (agent.indexOf('netscape/7.1')!=-1) ); this.ns72 = (this.ns && (agent.indexOf('netscape/7.2')!=-1) ); this.ie = (agent.indexOf("msie") != -1); this.ie3 = (this.ie && (this.major == 2)); this.ie4 = (this.ie && (this.major >= 4)); this.ie5 = (this.ie && (this.major == 4) && (agent.indexOf("msie 5.0") != -1)); this.ie55 = (this.ie && (this.major == 4) && (agent.indexOf("msie 5.5") != -1)); this.ie6 = (this.ie && (agent.indexOf("msie 6.0")!=-1)); this.op3 = (agent.indexOf("opera") != -1); this.pc = (agent.indexOf("win") != -1); this.mac = (agent.indexOf("mac")!=-1); // Mac detect this.client = ( (navigator.userAgent.indexOf('AOL')!=-1) || (navigator.userAgent.indexOf('CS 2000')!=-1) )? 1 : 0; this.moz = ( this.ns && (agent.indexOf("netscape/") == -1) ); if (this.moz) this.ns = 0; } function gotoURL(in_url){ window.location = in_url; } var stnTimer; var stnTimeoutForMessage = "5 minutes"; var stnTimeout; var sessionTerminated = false; var isRestartRequired = true; function getSTNMessage() { return "Due to system inactivity your WileyPLUS session will automatically timeout in " + stnTimeoutForMessage + ".\nWould you like to continue working in WileyPLUS?"; } function startSTNTimer() { if (typeof(stnTimeout) != "undefined" && !sessionTerminated) { stnTimer = setTimeout(showNotification, stnTimeout); } } function stopSTNTimer() { if (typeof(stnTimer) != "undefined") { clearTimeout(stnTimer); } } function resetSTNTimer() { if (typeof(stnTimer) != "undefined" && !sessionTerminated) { clearTimeout(stnTimer); if (isRestartRequired) { startSTNTimer(); } } } function doOnLoadSTN(sessionTimeout, notifTimeout) { if (findTopWindow(window) == self && typeof(sessionTimeout) != "undefined" && typeof(notifTimeout) != "undefined") { var sessionTimeoutNum = parseInt(sessionTimeout); var notifTimeoutNum = parseInt(notifTimeout); if (sessionTimeoutNum != Number.NaN && notifTimeoutNum != Number.NaN && notifTimeoutNum > 0 && sessionTimeoutNum > notifTimeoutNum) { var notifTimeoutSeconds = notifTimeoutNum % 60; var notifTimeoutMinutes = (notifTimeoutNum - notifTimeoutSeconds) / 60; stnTimeoutForMessage = notifTimeoutMinutes.toString() + " minutes"; if (notifTimeoutSeconds > 0) { stnTimeoutForMessage += " " + notifTimeoutSeconds.toString() + " seconds"; } stnTimeout = (sessionTimeoutNum - notifTimeoutNum) * 1000; setSTNOnLoadListener(window); startSTNTimer(); } } } function loadSTNListenerClass(wnd) { this.handler = function() { setSTNOnLoadListener(wnd); with (findTopWindow(window)) { if (typeof(resetSTNTimer) != "undefined") resetSTNTimer(); } } } function setSTNOnLoadListener(wnd) { setSTNFrameOnLoadListener(wnd, wnd.document.getElementsByTagName('frame')); setSTNFrameOnLoadListener(wnd, wnd.document.getElementsByTagName('iframe')); } function setSTNFrameOnLoadListener(wnd, frms) { if (frms != null) { for (var i = 0; i < frms.length; i++) { var frm = frms[i]; var frmWnd = frm.contentWindow ? frm.contentWindow : wnd.frames[i].window; var cls = new loadSTNListenerClass(frmWnd); if (window.addEventListener) frm.addEventListener("load", cls.handler, false); else if (window.attachEvent) frm.attachEvent("onload", cls.handler); setSTNOnLoadListener(frmWnd); } } } var setSTNPopupOnLoadListener = function(wnd) { if (wnd.addEventListener) { wnd.addEventListener("load", function() { var cls = new loadSTNListenerClass(wnd); cls.handler(); }, false); } else if (wnd.attachEvent) { var cls = new loadSTNListenerClass(wnd); cls.handler(); } } function showNotification() { var res = confirm(getSTNMessage()); if (res) { requestSessionMonitor(true); } else { var res2 = confirm("Are you sure you want to log out?"); if (res2) { (typeof(performLogout) != "undefined") ? performLogout() : requestSessionMonitor(false); } else { requestSessionMonitor(true); } } } function requestSessionMonitor(isExtend) { var xmlHttpReq = false; var self = this; var str = window.location.href.split('/edugen/'); var strURL = str[0] + "/edugen/global/session_monitor.uni"; if (window.XMLHttpRequest) { self.xmlHttpReq = new XMLHttpRequest(); } else if (window.ActiveXObject) { self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP"); } if (self.xmlHttpReq) { try { self.xmlHttpReq.onreadystatechange = function() { if (self.xmlHttpReq.readyState == 4) { var httpStatus = self.xmlHttpReq.status; if (httpStatus == 200) { // Request processed successfully. if (self.xmlHttpReq.responseText.indexOf("Timeout alert") > 0 && isExtend) { alert("Your WileyPLUS session has expired."); if (typeof(performLogout) != "undefined") { performLogout(); } } else if (self.xmlHttpReq.responseText.indexOf("<![CDATA[terminate]]>") > 0) { self.location.replace('/edugen/shared/alerts/terminate.uni'); } else if (isExtend) { resetSTNTimer(); } else { sessionTerminated = true; if (typeof(performLogout) != "undefined") { performLogout(); } } } else { alert("An error occurred while requesting the server."); } } } self.xmlHttpReq.open("POST", strURL, true); self.xmlHttpReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); var actionParam = isExtend ? "extend" : "terminate"; self.xmlHttpReq.send("smaction=" + actionParam); } catch (err) { alert("An error occurred while requesting the server."); } } } function deleteServerId() { //document.cookie = "ServerID=; path=/edugen; expires=" + (new Date(0)).toUTCString(); } function showDisablePlex(zindex) { var plex; if (zindex == 'fresh') { if (plex = document.getElementById("disablePlexId")) { plex.style.width = document.body.scrollWidth; plex.style.height = document.body.scrollHeight; } return; } plex = document.createElement('div'); var plexOpacity = 50; plex.setAttribute("id", "disablePlexId"); plex.style.position = 'absolute'; plex.style.top = 0; plex.style.left = 0; plex.style.width = d_getWindowWidth(); plex.style.height = d_getWindowHeight(); plex.style.backgroundColor = '#FFFFFF'; plex.style.zIndex = zindex; if (plex.style.opacity != undefined) plex.style.opacity = (plexOpacity / 100); if (plex.style.filter != undefined) plex.style.filter = 'alpha(opacity=' + plexOpacity + ')'; plex.style.display = 'block'; document.body.insertBefore(plex, document.body.childNodes[0]); setTimeout('showDisablePlex("fresh")', 512); } function hideDisablePlex() { try { document.body.removeChild(document.getElementById("disablePlexId")); } catch(e) {} } function showSplash() { try { var splash = document.createElement('div'); splash.style.display = "none"; splash.style.backgroundColor = "#FFFFFF"; splash.style.position = "absolute"; splash.style.width = "128px"; splash.id = "splashDivId"; if (arguments[0]) splash.style.zIndex = parseInt(arguments[0]); if (arguments[1]) showDisablePlex(arguments[1]); if (typeof splash.style.filter != 'undefined') splash.style.filter = "alpha(opacity=70)"; if (typeof splash.style.opacity != 'undefined') splash.style.opacity = 0.7; splash.innerHTML = '<table border="1" cellspacing="0" cellpadding="6" width="100%" height="100%" rules="none">' + '<tr align="center"><td><img src="' + (arguments[2]?arguments[2]:'/edugen') + '/art2/mwp-graphics/ajax-loader-big.gif" width="100" height="100" alt="" border="0" />' + '</td></tr></table>'; document.body.insertBefore(splash, document.body.childNodes[0]); splash.style.display = 'block'; splash.style.top = d_getScrollTop() + Math.round((d_getWindowHeight() - d_getScrollTop()) / 2) - 100 + 'px'; splash.style.left = d_getScrollLeft() + Math.round((d_getWindowWidth() - d_getScrollLeft()) / 2) - 100 + 'px'; } catch(e) {} } function hideSplash() { try { document.body.removeChild(document.getElementById("splashDivId")); } catch(e) {} hideDisablePlex(); } function getFlashVersion() { function getControlFlashVersion() { var version; var axo; // NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry try { // version will be set for 7.X or greater players axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); version = axo.GetVariable("$version"); } catch (e) {} if (!version) { try { // version will be set for 6.X players only axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); // installed player is some revision of 6.0 // GetVariable("$version") crashes for versions 6.0.22 through 6.0.29, // so we have to be careful. // default to the first public version version = "WIN 6,0,21,0"; // throws if AllowScripAccess does not exist (introduced in 6.0r47) axo.AllowScriptAccess = "always"; // safe to call for 6.0r47 or greater version = axo.GetVariable("$version"); } catch (e) {} } if (!version) { try { // version will be set for 4.X or 5.X player axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); version = axo.GetVariable("$version"); } catch (e) {} } if (!version) { try { // version will be set for 3.X player axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); version = "WIN 3,0,18,0"; } catch (e) {} } if (!version) { try { // version will be set for 2.X player axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); version = "WIN 2,0,0,11"; } catch (e) { version = -1; } } return version; } // NS/Opera version >= 3 check for Flash plugin in plugin array var flashVer = -1; if (navigator.plugins != null && navigator.plugins.length > 0) { if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) { var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : ""; var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description; var descArray = flashDescription.split(" "); var tempArrayMajor = descArray[2].split("."); var versionMajor = tempArrayMajor[0]; var versionMinor = tempArrayMajor[1]; var versionRevision = descArray[3]; if (versionRevision == "") { versionRevision = descArray[4]; } if (versionRevision[0] == "d") { versionRevision = versionRevision.substring(1); } else if (versionRevision[0] == "r") { versionRevision = versionRevision.substring(1); if (versionRevision.indexOf("d") > 0) { versionRevision = versionRevision.substring(0, versionRevision.indexOf("d")); } } flashVer = versionMajor + "." + versionMinor + "." + versionRevision; } } // MSN/WebTV 2.6 supports Flash 4 else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4; // WebTV 2.5 supports Flash 3 else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3; // older WebTV supports Flash 2 else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2; else if ((navigator.appVersion.indexOf("MSIE") != -1) && (navigator.appVersion.toLowerCase().indexOf("win") != -1) && (navigator.userAgent.indexOf("Opera") == -1)) { flashVer = getControlFlashVersion(); } return flashVer; } function d_getScrollWidth() { return document.body.scrollWidth; } function d_getScrollHeight() { return document.body.scrollHeight; } function d_getScrollTop() { return document.body.scrollTop || document.documentElement.scrollTop || window.pageYOffset || 0; } function d_getScrollLeft() { return document.body.scrollLeft || document.documentElement.scrollLeft || window.pageXOffset || 0; } function d_getWindowWidth() { var tmp1 = document.body.width || 0; var tmp2 = document.documentElement.scrollWidth || window.outerWidth; return tmp1 > tmp2 ? tmp1 : tmp2; } function d_getWindowHeight() { var tmp1 = document.body.height || 0; var tmp2 = document.documentElement.scrollHeight || window.outerHeight; return tmp1 > tmp2 ? tmp1 : tmp2; } function showMod(attr) { if (!document.body) { alert("Cannot show modal window without 'document.body'."); return null; } var modBorderColor = '#6E88A2', shadeColor = '#CCCCCC', plexColor = '#FFFFFF', modColor = '#FFFFFF'; function getPlexId() { return "plexiglass" + attr.id; } function getShadeId() { return "shade" + attr.id; } function getModalId() { return "modal" + attr.id; } var curScrollWidth = d_getScrollWidth(); var curScrollHeight = d_getScrollHeight(); var curScrollTop = d_getScrollTop(); var curScrollLeft = d_getScrollLeft(); var curWindowWidth = d_getWindowWidth(); var curWindowHeight = d_getWindowHeight(); if ((!attr) || (!attr.id)) attr = {'id': attr.toString()}; var defaultAttr = {'width': 256, 'height': 128, 'index': 1, 'top': 0, 'left': 0, 'opacity': 40, 'modBorder': 1, 'shadeDelta': 6, 'startX': 0, 'startY': 0, 'startCenter': 0}; function getCorrectAttrValue(attrName) { var str = "if (!attr." + attrName + ") attr." + attrName + " = defaultAttr." + attrName + ";"; str += "attr." + attrName + " = parseInt(attr." + attrName + ");"; str+="if((attr."+attrName+"==NaN)||(attr."+attrName+"<0))attr."+attrName+"=defaultAttr"+attrName+";"; eval(str); } for (var i in defaultAttr) getCorrectAttrValue(i); function getModLeft(width) { if (attr.startCenter > 0) return curScrollLeft + Math.round((curWindowWidth - curScrollLeft - attr.width) / 2) + attr.left; if (attr.startX > 0) return attr.startX - Math.round(attr.width / 2) + attr.left; return Math.round((width - attr.width) / 2) + attr.left; } function getModTop(height) { var t = 0; if (attr.startCenter > 0) { t = curScrollTop + Math.round((curWindowHeight - curScrollTop - attr.height) / 2) + attr.top; } else if (attr.startY > 0) { t = attr.startY - Math.round(attr.height / 2) + attr.top; } else { t = Math.round((height - attr.height) / 2) + attr.top; } if ( t <= 4 ) { t = 4; } return (t); } var div; if ((!attr.id) || (!(div = document.getElementById(attr.id)))) { attr.id = 'dataDivId' + Math.round(Math.random()*8192); div = document.createElement('div'); div.setAttribute("id", attr.id); //div.setAttribute("style", "display: none;"); div.style.display = 'none'; div.innerHTML = "Source for this modal window not found!<br/><form action=''>" + "<input type='button' value='Close' onclick='try{document.body.removeChild(document.getElementById(\"" + getPlexId() + "\"));" + "document.body.removeChild(document.getElementById(\"" + getShadeId() + "\"));" + "document.body.removeChild(document.getElementById(\"" + getModalId() + "\"));}catch(e){}'/></form>"; document.body.appendChild(div); } var modal = document.createElement('div'); modal.setAttribute("id", getModalId()); modal.style.position = 'absolute'; modal.style.top = '0px'; modal.style.left = '0px'; modal.style.overflow = 'hidden'; function setModalLayout(modaler, modalTop, modalLeft) { modaler.style.top = modalTop + 'px'; modaler.style.left = modalLeft + 'px'; modaler.style.width = attr.width + 'px'; modaler.style.height = attr.height + 'px'; } modal.style.backgroundColor = modColor; modal.style.border = attr.modBorder + 'px solid ' + modBorderColor; var index = 0, tmp; if (document.body.style && (tmp = document.body.style.zIndex)) index = tmp; index += attr.index; modal.style.zIndex = index + 5; modal.style.visibility = 'hidden'; modal.style.display = 'block'; modal.style.width = attr.width + 'px'; modal.innerHTML = div.value.replace(/_textarea/g, 'textarea'); document.body.appendChild(modal); if (attr.doOnOpen) { try { eval(attr.doOnOpen); } catch(e){} } if (modal.offsetWidth > attr.width) { attr.width = modal.offsetWidth; modal.style.width = attr.width + 'px'; } if (modal.offsetHeight > attr.height) attr.height = modal.offsetHeight; setModalLayout(modal, getModTop(curWindowHeight), getModLeft(curWindowWidth)); var plexiglass = document.createElement('div'); plexiglass.setAttribute("id", getPlexId()); plexiglass.style.position = 'absolute'; function setPlexiglassLayout(plex, plexWidth, plexHeight) { plex.style.top = '0px'; plex.style.left = '0px'; plex.style.width = plexWidth + 'px'; plex.style.height = plexHeight + 'px'; } setPlexiglassLayout(plexiglass, curWindowWidth, curWindowHeight); plexiglass.style.backgroundColor = plexColor; plexiglass.style.zIndex = index + 1; if (plexiglass.style.opacity != undefined) plexiglass.style.opacity = (attr.opacity / 100); if (plexiglass.style.filter != undefined) plexiglass.style.filter = 'alpha(opacity=' + attr.opacity + ')'; plexiglass.style.display = 'block'; document.body.appendChild(plexiglass); var shadeIF = document.createElement('iframe'); shadeIF.setAttribute("id", getShadeId()+"iframe"); shadeIF.setAttribute("src", "about:blank"); shadeIF.setAttribute("frameborder", "0"); shadeIF.setAttribute("scrolling", "no"); shadeIF.style.position = 'absolute'; setShadeLayout(shadeIF, getModTop(curWindowHeight), getModLeft(curWindowWidth)); shadeIF.style.backgroundColor = shadeColor; shadeIF.style.zIndex = index + 2; shadeIF.style.display = 'block'; document.body.appendChild(shadeIF); var modalIF = document.createElement('iframe'); modalIF.setAttribute("id", getModalId()+"iframe"); modalIF.setAttribute("src", "about:blank"); modalIF.setAttribute("frameborder", "0"); modalIF.setAttribute("scrolling", "no"); modalIF.style.position = 'absolute'; setModalLayout(modalIF, getModTop(curWindowHeight), getModLeft(curWindowWidth)); modalIF.style.backgroundColor = modColor; modalIF.style.zIndex = index + 4; modalIF.style.display = 'block'; document.body.appendChild(modalIF); var shade = document.createElement('div'); shade.setAttribute("id", getShadeId()); shade.style.position = 'absolute'; function setShadeLayout(shader, shadeTop, shadeLeft) { shader.style.top = shadeTop + attr.shadeDelta + attr.modBorder + 'px'; shader.style.left = shadeLeft + attr.shadeDelta + attr.modBorder + 'px'; shader.style.width = attr.width + 'px'; shader.style.height = attr.height + 'px'; } setShadeLayout(shade, getModTop(curWindowHeight), getModLeft(curWindowWidth)); shade.style.backgroundColor = shadeColor; shade.style.zIndex = index + 3; shade.style.display = 'block'; document.body.appendChild(shade); if (attr.doOnshow) { try { eval(attr.doOnshow); } catch(e){} } modal.style.visibility = 'visible'; function closeDiv(dv) { try { dv.style.display = 'none'; dv.innerHTML = ''; dv.setAttribute('id', ''); document.body.removeChild(dv); } catch(e){} } var closeThis = function() { if (!plexiglass.getAttribute('id')) return true; if (attr.doOnBeforeClose) { try { eval(attr.doOnBeforeClose); } catch(e) {} } closeDiv(modal); closeDiv(shade); closeDiv(plexiglass); try { document.body.removeChild(modalIF); document.body.removeChild(shadeIF); } catch(e) {} if (attr.doOnClose) { try { eval(attr.doOnClose); } catch(e) {} } }; var resizeThis = function() { try { //moveFlag = false; curScrollWidth = d_getScrollWidth(); curScrollHeight = d_getScrollHeight(); curWindowWidth = d_getWindowWidth(); curWindowHeight = d_getWindowHeight(); curScrollTop = d_getScrollTop(); curScrollLeft = d_getScrollLeft(); setPlexiglassLayout(plexiglass, curWindowWidth, curWindowHeight); setShadeLayout(shadeIF, getModTop(curWindowHeight), getModLeft(curWindowWidth)); setShadeLayout(shade, getModTop(curWindowHeight), getModLeft(curWindowWidth)); setModalLayout(modalIF, getModTop(curWindowHeight), getModLeft(curWindowWidth)); setModalLayout(modal, getModTop(curWindowHeight), getModLeft(curWindowWidth)); return true; } catch(e) { return false; } }; var moveFlag = false; var x = attr.left; var y = attr.top; var startMoveThis = function(e) { try { moveFlag = true; x = e.clientX; y = e.clientY; return true; } catch(e) { return false; } }; var endMoveThis = function() { moveFlag = false; }; var moveThis = function(e) { try { if (moveFlag) { var _x = e.clientX, _y = e.clientY; attr.left -= x - _x; attr.top -= y - _y; x = _x, y = _y; setShadeLayout(shadeIF, getModTop(curWindowHeight), getModLeft(curWindowWidth)); setShadeLayout(shade, getModTop(curWindowHeight), getModLeft(curWindowWidth)); setModalLayout(modalIF, getModTop(curWindowHeight), getModLeft(curWindowWidth)); setModalLayout(modal, getModTop(curWindowHeight), getModLeft(curWindowWidth)); } return true; } catch(e) { return false; } }; return {'id': attr.id, 'close': closeThis, 'resize': resizeThis, 'move': moveThis, 'startMove': startMoveThis, 'endMove': endMoveThis}; } function findTopWindow(aWindow){ function _findTopWindow(aWindow){ try{ var checkAccess = aWindow.parent.name; if(aWindow.parent == aWindow){ return aWindow.parent; } } catch (e){ return aWindow; } return _findTopWindow(aWindow.parent); } try{ var checkAccess = top.name; return top; } catch(e){ return _findTopWindow(aWindow); } } function getLoadingBlock(in_webroot){ return '<div style="display:inline-block; height:100%; width:50%; vertical-align: middle"><!--//--></div><img src="' + in_webroot +'/art2/common/loading.gif" style="display:inline-block; vertical-align: middle; margin:20px 0 20px -16px;">'; } // ========================================================================
var topWindow = findTopWindow(window); function checkNewValues(element){ if(topWindow.buttonsAllowed){ if(takeOldValue(element) != element.value){ makeParentExistsNonClosedQuestion(window, takeElementName(element), true); } else { makeParentExistsNonClosedQuestion(window, takeElementName(element), false); } } } function checkNewValuesRestInputs(element){ makeParentExistsNonClosedQuestion(window, "otherInputs", true); } function checkNewValuesTypeGroup(element){ if(topWindow.buttonsAllowed){ if(element != null && !checkRadioByName(element.name)){ makeParentExistsNonClosedQuestion(window, element.name, true); } else { makeParentExistsNonClosedQuestion(window, element.name, false); } } } function makeParentModified(element){ var readonlyAttribute = element.getAttribute("readonly"); if(!isNullOrBlank(readonlyAttribute)){ return; } if(element.parentElement != null){ var className = element.parentElement.className; if(className != null){ if (className.indexOf("visualGradingIncorrectSkin") != -1|| className.indexOf("visualGradingPartiallyCorrectSkin") != -1){ if(className.indexOf("modified") == -1 ){ element.parentElement.className = className + " modified"; makeAnswerMarkerModified(element); } return; } } makeParentModified(element.parentElement); } } function makeAnswerMarkerModified(element){ var iMarkId = element.parentElement.getAttribute("data-markid"); if(!isNullOrBlank(iMarkId)){ var iMarkElm = document.getElementById(iMarkId); if (iMarkElm !=null){ iMarkElm.alt = iMarkElm.alt + " now contains modified data"; } } } function takeElementFromArray(inputs, elementName){ for(var i = 0 ; i < inputs.length; i++){ var input = inputs[i]; if(input.name == elementName){ return input; } } return null; } function makeParentExistsNonClosedQuestion(aWindow, elementName, isInputNonSaved){ var inputs = topWindow.existsNonClosedQuestion; var element = takeElementFromArray(inputs, elementName); if(element == null){ topWindow.existsNonClosedQuestion.push({name:elementName, nonSavedInput:isInputNonSaved}); } else { element.nonSavedInput = isInputNonSaved; } } function checkRadioByName(name){ var rads = document.getElementsByName(name); if(rads == null){ return false; } for(var i = 0 ; i < rads.length; i++){ if(rads[i].checked && rads[i].getAttribute("data-oldValue") != "true"){ return false; } if((!rads[i].checked) && rads[i].getAttribute("data-oldValue") == "true"){ return false; } } return true; } function takeOldValue(element){ var elementName = takeElementName(element); if(elementName != null){ var oldValueElement = document.getElementById(elementName + "_oldValue"); return oldValueElement!= null ? oldValueElement.innerHTML : ""; } return ""; } function takeElementName(element){ if(element.id){ return element.id; } if(element.name){ return element.name; } return null; } function isNullOrBlank(aValue){ return aValue == null || aValue.length == 0; } function removeOnBeforeUnLoad(){ topWindow.onbeforeunload = null; window.onbeforeunload = null; } function takeTimedActivityValue(){ return topWindow.isTimedActivity; } function takeIsSecurityTestValue(){ return topWindow.isSecureTest; } function takeUserNotificationAllowed(){ return topWindow.isUserNotificationAllowed; } function takeSaveForLaterChecked(){ return topWindow.isSaveForLaterChecked; } function takeTenPercentsTimeRemaining(){ return topWindow.isTenPercentsTimeRemaining; } function takeTimeReached(){ return topWindow.isTimeReached; } function takeTimeStarted(){ return topWindow.isTimeStarted; } function areThereNonSavedInputs(){ var inputs = topWindow.existsNonClosedQuestion; for(var i = 0; i < inputs.length; i++){ var input = inputs[i]; if(input.nonSavedInput){ return true; } } return false; } function takeUnsavedDataMessage(aWindow, props){ var existsNonClosedQuestion = areThereNonSavedInputs(); var isActivityTimed = takeTimedActivityValue(); var isSecurityTest = takeIsSecurityTestValue(); var isUserNotificationAllowed = takeUserNotificationAllowed(); var isSaveForLaterChecked = takeSaveForLaterChecked() && !isSecurityTest; var isTenPercentsTimeRemaining = takeTenPercentsTimeRemaining(); var isTimeReached = takeTimeReached(); var isTimeStarted = takeTimeStarted(); var isUserSwitchesWithinAssignment = props.isUserSwitchesWithinAssignment; var isUserSwitchesMode = props.isUserSwitchesMode; var isLogoutPressed = props.isLogoutPressed; var isClickedFromOnBeforeUnload = props.isClickedFromOnBeforeUnload; var message = takeMessage(isActivityTimed, isUserNotificationAllowed, isSaveForLaterChecked, isTenPercentsTimeRemaining, isTimeReached, isUserSwitchesWithinAssignment, isUserSwitchesMode, existsNonClosedQuestion, isLogoutPressed, isClickedFromOnBeforeUnload, isTimeStarted, isSecurityTest); if(isSecurityTest){ return message == null ? null : message.replaceAll("timed assignment", "secure test").replaceAll("unsaved", "unsubmitted"); } return message; } String.prototype.replaceAll = function(search, replace){ return this.split(search).join(replace); } function takeMessage(isActivityTimed, isUserNotificationAllowed, isSaveForLaterChecked, isTenPercentsTimeRemaining, isTimeReached, isUserSwitchesWithinAssignment, isUserSwitchesMode, existsNonClosedQuestion, isLogoutPressed, isClickedFromOnBeforeUnload, isTimeStarted, isSecurityTest) { if(isActivityTimed || isSecurityTest){ if(!isTimeStarted || isTimeReached){ return ""; } if(isUserNotificationAllowed){ if(isSaveForLaterChecked){ if(existsNonClosedQuestion){ if(isLogoutPressed){ return "You are about to exit a timed assignment and log out. Upon exiting this assignment, you will no longer have access to it even if you have time left. Make sure you don't have any unsaved work. Click “OK” to proceed with exiting this assignment and log out. <br />Click “Cancel” if you want to resume working on it."; } if(isUserSwitchesMode || isUserSwitchesWithinAssignment){ return "Are you sure you want to continue? Make sure you don't have any unsaved work before leaving this question. Click “OK” to proceed with exiting this question. <br />Click “Cancel” if you want to resume working on it."; } if(isClickedFromOnBeforeUnload){ return "You are about to exit a timed assignment by reloading the page. Upon exiting this assignment, you will no longer have access to it even if you have time left. Make sure you don't have any unsaved work."; } return "You are about to exit a timed assignment. Upon exiting this assignment, you will no longer have access to it even if you have time left. Make sure you don't have any unsaved work. Click “OK” to proceed with exiting this assignment. <br />Click “Cancel” if you want to resume working on it."; } if(isLogoutPressed){ return "You are about to exit a timed assignment and log out. Upon exiting this assignment, you will no longer have access to it even if you have time left. Click “OK” to proceed with exiting this assignment and log out. <br />Click “Cancel” if you want to resume working on it."; } if (!isUserSwitchesMode && !isUserSwitchesWithinAssignment){ if(isClickedFromOnBeforeUnload){ return "You are about to exit a timed assignment and log out. Upon exiting this assignment, you will no longer have access to it even if you have time left."; } return "You are about to exit a timed assignment. Upon exiting this assignment, you will no longer have access to it even if you have time left. Click “OK” to proceed with exiting this assignment. <br />Click “Cancel” if you want to resume working on it. "; } } else { if(existsNonClosedQuestion){ if(isLogoutPressed){ return "You are about to exit a timed assignment and log out. Upon exiting this assignment, you will no longer have access to it even if you have time left. Make sure you don't have any unsubmitted work. Click “OK” to proceed with exiting this assignment and log out. <br />Click “Cancel” if you want to resume working on it."; } if(isUserSwitchesMode || isUserSwitchesWithinAssignment){ return "Are you sure you want to continue? Make sure you don't have any unsubmitted work before leaving this question. Click “OK” to proceed with exiting this question. <br />Click “Cancel” if you want to resume working on it."; } if(isClickedFromOnBeforeUnload){ return "You are about to exit a timed assignment by reloading the page. Upon exiting this assignment, you will no longer have access to it even if you have time left. Make sure you don't have any unsubmitted work."; } return "You are about to exit a timed assignment. Upon exiting this assignment, you will no longer have access to it even if you have time left. Make sure you don't have any unsubmitted work. Click “OK” to proceed with exiting this assignment. <br />Click “Cancel” if you want to resume working on it."; } if(isLogoutPressed){ return "You are about to exit a timed assignment and log out. Upon exiting this assignment, you will no longer have access to it even if you have time left. Click “OK” to proceed with exiting this assignment and log out <br />Click “Cancel” if you want to resume working on it."; } if (!isUserSwitchesMode && !isUserSwitchesWithinAssignment){ if(isClickedFromOnBeforeUnload){ return "You are about to exit a timed assignment and log out. Upon exiting this assignment, you will no longer have access to it even if you have time left."; } return "You are about to exit a timed assignment. Upon exiting this assignment, you will no longer have access to it even if you have time left. Click “OK” to proceed with exiting this assignment. <br />Click “Cancel” if you want to resume working on it."; } } return null; } else { if(isLogoutPressed){ return "Are you sure you want to log out?"; } if(isClickedFromOnBeforeUnload){ return ""; } if(!isUserSwitchesWithinAssignment){ return "You are about to exit a timed assignment. Upon exiting this assignment, you will no longer have access to it even if you have time left. Click “OK” to proceed with exiting this assignment. <br />Click “Cancel” if you want to resume working on it."; } return ""; } } else { if(isUserNotificationAllowed){ if(isSaveForLaterChecked){ if(isLogoutPressed){ if(existsNonClosedQuestion){ return "Are you sure you want to log out? Make sure you don't have any unsaved work before leaving the assignment. Click “OK” to proceed with exiting this assignment and log out. <br />Click “Cancel” if you want to resume working on it."; } return "Are you sure you want to log out?"; } else { if(existsNonClosedQuestion){ var isPracticeOrSelfQuiz = topWindow.isPracticeOrSelfQuiz; if(isPracticeOrSelfQuiz && !isUserSwitchesWithinAssignment){ return ""; } if(isUserSwitchesMode){ return "Are you sure you want to continue? Make sure you don't have any unsaved work before leaving this question. Click “OK” to proceed with exiting this question. <br />Click “Cancel” if you want to resume working on it."; } if(isUserSwitchesWithinAssignment){ return "Are you sure you want to continue? Make sure you don't have any unsaved work before leaving this question. Click “OK” to proceed with exiting this question. <br />Click “Cancel” if you want to resume working on it."; } if(isClickedFromOnBeforeUnload){ return "Make sure you don't have any unsaved work before leaving the assignment."; } return "Are you sure you want to continue? Make sure you don't have any unsaved work before leaving the assignment. Click “OK” to proceed with exiting this assignment. Click “Cancel” if you want to resume working in this assignment."; } } } else { if(isLogoutPressed){ if(existsNonClosedQuestion){ return "Are you sure you want to log out? Make sure you don't have any unsubmitted work before leaving the assignment. Click “OK” to proceed with exiting this assignment. <br />Click “Cancel” if you want to resume working on it."; } return "Are you sure you want to log out?"; } else { if(existsNonClosedQuestion){ var isPracticeOrSelfQuiz = topWindow.isPracticeOrSelfQuiz; if(isPracticeOrSelfQuiz && !isUserSwitchesWithinAssignment){ return ""; } if(isUserSwitchesMode){ return "Are you sure you want to continue? Make sure you don't have any unsubmitted work before leaving this question. Click “OK” to proceed with exiting this question. <br />Click “Cancel” if you want to resume working on it."; } if(isUserSwitchesWithinAssignment){ return "Are you sure you want to continue? Make sure you don't have any unsubmitted work before leaving this question. Click “OK” to proceed with exiting this question. <br />Click “Cancel” if you want to resume working on it."; } if(isClickedFromOnBeforeUnload){ return "Make sure you don't have any unsubmitted work before leaving the assignment."; } return "Are you sure you want to continue? Make sure you don't have any unsubmitted work before leaving the assignment. Click “OK” to proceed with exiting this assignment. Click “Cancel” if you want to resume working in this assignment."; } } } return null; } else { if(isUserSwitchesMode){ return "Make sure you don't have any unsaved work before switching from one view to another."; } if(isLogoutPressed){ return "Are you sure you want to log out?"; } } } return ""; } function takeParentWindow(aWindow){ try{ var href = aWindow.parent.href; return aWindow.parent; } catch (e) { return aWindow; } } function substituteOnBeforeUnLoad(aWindow){ aWindow.onbeforeunload = function (e) { var message = takeUnsavedDataMessage(aWindow, { isLogoutPressed : false, isUserSwitchesWithinAssignment : false, isUserSwitchesMode : false, isClickedFromOnBeforeUnload : true } ); if(topWindow.isMiddleware){ jQuery.ajax({url:topWindow.appWebRoot + '/gradescoresync', type: 'POST', async: false}); } if(message != "" && message != null) { message = message.replaceAll("<br />", "\r\n"); e = e || event || {}; e.returnValue = message; return message; } } } function getRootElement (aWindow){ function _getRootElement (aWindow, previousWindow){ try { if(aWindow.jQuery != undefined && aWindow.jQuery.jqm != undefined){ return aWindow; } if(aWindow.parent != aWindow){ return _getRootElement(aWindow.parent, aWindow); } } catch (e) { return previousWindow; } } return _getRootElement(aWindow, aWindow); } function beforeUnLoad(targetElement, aFunction, isMiddleware){ var props = { isLogoutPressed : targetElement.hasClass("logout_marker_class"), isUserSwitchesWithinAssignment : targetElement.hasClass("switcher_within_assignment_marker_class"), isUserSwitchesMode : targetElement.hasClass("switcher_within_modes_marker_class"), isClickedFromOnBeforeUnload : false } if (isMiddleware && !props.isUserSwitchesWithinAssignment) { jQuery.ajax({url: topWindow.appWebRoot + '/gradescoresync', type: 'POST', async: false}); } var message = takeUnsavedDataMessage(window, props); if(message==null){ removeOnBeforeUnLoad(); } else if(message != ""){ if(props.isUserSwitchesWithinAssignment){ if(topWindow.assignmentDoNotShowAlertsChecked != "true"){ var rootElement= getRootElement(window); var assignmentAlertsModalWindow = topWindow.questionPlayerWindow.jQuery('#assignmentAlertsModalWindow')[0].cloneNode(true); if(rootElement.jQuery("#assignmentAlertsModalWindow")[0]==undefined && topWindow.questionPlayerWindow != null){ rootElement.document.body.appendChild(assignmentAlertsModalWindow); } rootElement.jQuery('#message_place_id')[0].innerHTML = message; rootElement.jQuery('#assignmentAlertsModalWindow').jqm({modal:true, toTop:true, shadow: true}); rootElement.jQuery('#assignmentAlertsModalWindow').jqmShow(); rootElement.jQuery('#Close')[0].onclick = function (){ rootElement.jQuery('#assignmentAlertsModalWindow').jqmHide(); rootElement.jQuery('#show_assignment_warning')[0].checked = false; }; rootElement.jQuery('#Continue')[0].onclick = function (){ var clickFunction = function (){ removeOnBeforeUnLoad(); rootElement.jQuery('#assignmentAlertsModalWindow').jqmHide(); if(assignmentAlertsModalWindow && assignmentAlertsModalWindow.parentNode){ assignmentAlertsModalWindow.parentNode.removeChild(assignmentAlertsModalWindow); } aFunction(); }; if(rootElement.jQuery('#show_assignment_warning')[0].checked){ topWindow.assignmentDoNotShowAlertsChecked = "true"; var url = "/edugen/student/assignment/assignment_send_do_not_show_again.uni"; jQuery.ajax( { url: url, type: 'GET', dataType: "text", async: false, success: clickFunction }); } else { clickFunction(); } return false; }; return false; } removeOnBeforeUnLoad(); return true; } else if(props.isLogoutPressed){ message = message.replaceAll("<br />", "\r\n"); if(window.confirm(message)){ removeOnBeforeUnLoad(); topWindow.performLogout(); } } else if(window.confirm(message.replaceAll("<br />", "\r\n"))){ removeOnBeforeUnLoad(); return true; } return false; } return true; }
function beforeUnloadIntercept(selector){ if(jQuery!==undefined){ jQuery(document).ready( function(){ var wpTop = (function(){ function findTopWindow(aWindow){ try{ var checkAccess = aWindow.parent.name; if(aWindow.parent == aWindow){ return aWindow.parent; } } catch (e){ return aWindow; } return findTopWindow(aWindow.parent); } try{ var checkAccess = top.name; return top; } catch(e){ return findTopWindow(window); } })(); jQuery(selector).each( function(){ var click = this.onclick; var href = this.href; var targetElement = jQuery(this); this.onclick = function(evt){ if(wpTop != null && wpTop.customBeforeUnLoad != undefined) { var doLeavePage = wpTop.customBeforeUnLoad(targetElement, function(){ var result = true; if(click != undefined){ result = click(); } if(result!==false && href != null){ if(href.indexOf('javascript:') != -1){ eval(href); } else{ self.location = href; } } }); if(doLeavePage){ if(click != undefined){ return click(); } if(href != undefined && href.indexOf('javascript:') != -1){ eval(href); return false; } } return doLeavePage; } else if(click != undefined){ return click(); } } } ); } ); } } function beforeUnloadInterceptForLinks(selector){ if(jQuery!==undefined){ jQuery(document).ready( function(){ jQuery(selector).each( function(){ var click = this.onclick; var href = this.href; this.onclick = function(evt){ if(click != undefined){ return click(); } if(href != undefined && href.indexOf('javascript:') != -1){ eval(href); return false; } return true; } } ); } ); } }