Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/LICENSE.txt
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/LICENSE.txt	(revision 157)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/LICENSE.txt	(revision 157)
@@ -0,0 +1,84 @@
+COMMERCIAL LICENSE FOR OPEN VIDEO ADS
+
+Please read this License carefully before using, downloading or installing any of the Licensed Programs (as defined below). By using, downloading or installing any of the Licensed Programs, Licensee is agreeing to be bound by this License and the licenses granted hereunder are subject to compliance with any and all terms of this License. IF YOU DO NOT ACCEPT THE TERMS AND CONDITIONS OF THIS LICENSE, DO NOT USE, DOWNLOAD OR INSTALL ANY OF THE LICENSED PROGRAMS.
+
+Definitions
+
+1. "Adaptation" means a derivative work based upon the Licensed Programs resulting from any addition to, editing of or deletion from the substance or structure of the original source code or a compiled version of the Licensed Programs or any previous Adaptations or a work that programmatically interacts with the Licensed Programs.
+2. "Development Purposes" means the process of altering, debugging, designing, editing or creating an Adaptation.
+3. "JW Player" means the JW Player for Flash and the JW Player for HTML5, which are media playback components written in ActionScript 3.0 and JavaScript that can be embedded in a website, web service, desktop software or any Flash environment to play video, audio and/or images.
+4. "Flowplayer" means the video player by Flowplayer.org, which is a media playback component written in ActionScript 3.0 and JavaScript that can be embedded in a website, web service, desktop software or any Flash environment to play video, audio and/or images.
+5. "OVA for AS3" means the Open Video Ads framework, which is a video advertising component written in ActionScript 3 that can be integrated into a Flash video player.
+6. "OVA for JW Player" means a specific implementation of the Open Video Ads framework, written as a JW Player plugin.
+7. "OVA for Flowplayer" means a specific implementation of the Open Video Ads framework, written as a Flowplayer plugin.
+8. "OVA Product" means one of the following: (1) OVA for AS3, (2) OVA for JW Player, or (3) OVA for Flowplayer. Each OVA Product is a separately licensed product within the Open Video Ads product family.Â 
+9. "License" means this document.
+10. "Licensor" means LongTail Ad Solutions, Inc.
+11. "Licensed Program" means a single OVA Product for which the Licensee has purchased a license.
+12. "Licensed Domains" means the domain(s) for which the Licensee has purchased an OVA Product license.Â  A domain refers to any top-level domain or sub-domain, owned by the Licensee, on which a unique website is operated.
+13. "Licensee" means an individual or entity exercising rights under and complying with the terms of this License who has not previously violated the terms of this License with respect to a Licensed Program, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation.
+14. "Reproduce" means to make copies of the Licensed Program.
+
+License Grant
+
+Subject to the terms and conditions hereof, Licensor hereby grants and Licensee accepts, a non-exclusive, limited right and license to use the Licensed Program for its own use on the Licensed Domains.Â  Further, Licensor grants Licensee the right to use, modify, and compile the source code for the Licensed Program subject to the Limitations on License described below.
+
+Notwithstanding anything set forth in this License, and except as specifically agreed between Licensor and Licensee, any use whatsoever of the Licensed Programs or any Adaptation that results in excess of 500,000 served advertisements per month shall be prohibited.
+
+Limitations on License
+
+The Licensed Program is licensed solely for use by Licensee and Licensee shall use the Licensed Program only for the specific purposes stated therein. Specifically, OVA for JW Player and OVA for Flowplayer may not be repurposed for use within another Flash video player, and only OVA for AS3 may be licensed for such purpose. All rights not expressly granted by Licensor are hereby reserved.
+
+Licensee may not (a) remove any product identification, copyright notices or other notices or proprietary restrictions from the Licensed Program; (b) copy, distribute, relicense, sell, lease, transfer, encumber, assign or make available for public use the Licensed Programs; or (c) cause or permit reverse engineering, disassembly or decompilation of any Licensed Program. Any attempt to take any such actions will automatically terminate your rights under this License.
+
+Approval
+
+The terms of each Licensed Program shall set forth any approval necessary. If Licensee is not approved to use the Licensed Program for any reason, or if approval is revoked by Licensor for any reason, Licensee shall immediately cease using the Licensed Programs and return any copies of the Licensed Programs to Licensor or certify to Licensor that it has destroyed all copies of the Licensed Programs.
+
+License Fee; Effective Date; Term
+
+The terms of each Licensed Program shall set forth any license fee payable there under and any Licensee that uses a fee-based Licensed Program hereunder must pay the License Fee specified in the invoice provided by Licensor to Licensee. Licensor reserves the right to modify the License Fee in its sole discretion without notice or justification at any time. The rights and licenses granted hereunder shall commence on the date any of the Licensed Programs are electronically delivered to Licensee. Licensor agrees to make the Licensed Programs available for use to Licensee promptly after receipt by Licensor of any applicable License Fee. Unless otherwise stated by the Licensor, the term of the License shall be twelve (12) months.
+
+Termination of License
+
+This License is subject to termination by Licensor at any time if (a) Licensee violates any terms of this License, (b) Licensor has a reasonable basis to believe that Licensee's business is impairing Licensor's business, or (c) Licensor has a reasonable basis to believe that Licensee is not abiding by the spirit of this License, or (d) Licensee becomes insolvent, declares bankruptcy or a receiver or trustee is appointed for Licensee. Upon termination of this License for any reason, Licensee shall immediately cease using the Licensed Programs and return any copies of the Licensed Programs to Licensor or certify to Licensor that it has destroyed all copies of the Licensed Programs.
+
+Maintenance and Support
+
+All installations of the Licensed Programs for use by Licensee shall be at the sole expense of Licensee. Licensor shall not at any time have any obligation to provide any technical support, updates, enhancement or maintenance for the Licensed Programs.
+
+Ownership of Intellectual Property
+
+Licensor is the sole owner of all intellectual property rights pertaining to Licensed Programs.
+
+No Warranty
+
+Except as expressly set forth in this License, the Licensed Programs are provided on an "as is" basis, without warranties or conditions of any kind, either express or implied including, without limitation, any warranties or conditions of title, non-infringement, merchantability or fitness for a particular purpose. Each Licensee is solely responsible for determining the appropriateness of using the Licensed Programs and assumes all risks associated with its exercise of rights under this agreement, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, suitability for hosting and unavailability or interruption of operations.
+
+Limitation of Liability
+
+Except to the extent required by applicable law, in no event will Licensor be liable on any legal theory for any special, incidental, consequential, punitive or exemplary damages arising out of this License or the use of the Licensed Programs, even if Licensor has been advised of the possibility of such damages.
+
+Indemnity
+
+Licensee shall indemnify Licensor, its employees, officers, licensee and agents for all damages, costs and expenses, including, without limitation, attorneys' fees, arising from any claims arising as a result of Licensee's use of the Licensed Programs as provided hereunder.
+
+Export
+
+Licensee agrees and certifies that it will not export or re-export, directly or indirectly, the Licensed Programs contrary to the laws of the United States or any other country.
+
+Severability
+
+If for any reason a court of competent jurisdiction finds any provision of this License or portion thereof, to be unenforceable, that provision of the License shall be enforced to the maximum extent permissible so as to affect the intent of the parties, and the remainder of this License shall continue in full force and effect.
+
+Governing Law
+
+This License shall be governed by the laws of the State of New York. Any disputes arising under this License shall be heard in New York County, New York.
+
+Complete Agreement
+
+This License constitutes the entire agreement between Licensor and Licensee with respect to the use of the Licensed Programs and supersedes all prior or contemporaneous understandings or agreements, written or oral, regarding such subject matter. No one other than Licensor has the right to modify or amend this License.
+
+Waiver of Breach
+
+No term or provision of this License shall be deemed waived and no breach excused, unless such waiver or consent shall be in writing and signed by Licensor. Any consent by Licensor to, or waiver of, a breach by Licensee whether expressed or implied, shall not constitute a consent to, waiver of, or excuse for, any other breach or any subsequent breach, except as may be expressly provided by Licensor.
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/samples/sample.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/samples/sample.xml	(revision 141)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/samples/sample.xml	(revision 141)
@@ -0,0 +1,40 @@
+<config>
+   <ova.title>
+       Sample Configuration
+   </ova.title>
+   <ova.json>
+       {
+		    "ads": {
+		       "servers": [
+		             {
+		                  "type": "OpenX",
+		                  "apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php"
+		             }
+		       ],
+		       "notice": { "textStyle": "smalltext" },
+		       "displayCompanions": true,
+		       "companions": [
+		             {
+		                  "id":"companion",
+		                  "width":"200",
+		                  "height":"240"
+		             }
+		       ],
+		       "schedule": [
+		             {
+		                  "zone": "47",
+		                  "position": "pre-roll"
+		             },
+		             {
+		                  "zone": "48",
+		                  "position": "auto:bottom",
+		                  "width": 320,
+		                  "height": 80,
+		                  "startTime": "00:00:02",
+		                  "duration": "15"
+		             }
+		        ]
+		    }
+       }
+   </ova.json>
+</config>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/samples/demo1.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/samples/demo1.xml	(revision 143)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/samples/demo1.xml	(revision 143)
@@ -0,0 +1,32 @@
+<config>
+   <ova.title>
+       Demo 1 - Linear Pre-Roll with Companion
+   </ova.title>
+   <ova.json>
+       {
+		    "ads": {
+		       "servers": [
+		             {
+		                  "type": "OpenX",
+		                  "apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php"
+		             }
+		       ],
+		       "notice": { "textStyle": "smalltext" },
+		       "displayCompanions": true,
+		       "companions": [
+		             {
+		                  "id":"companion",
+		                  "width":"200",
+		                  "height":"240"
+		             }
+		       ],
+		       "schedule": [
+		             {
+		                  "zone": "47",
+		                  "position": "pre-roll"
+		             }
+		        ]
+		    }
+       }
+   </ova.json>
+</config>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/samples/sample.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/samples/sample.html	(revision 141)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/samples/sample.html	(revision 141)
@@ -0,0 +1,26 @@
+<html>
+<body>
+<div id="player-block">
+	<div id="player1" style="float:left;">
+		<embed
+		  id="ply"
+		  data="../swf/4.6.swf"
+		  src="../swf/4.6.swf"
+		  width="320"
+		  height="240"
+		  allowscriptaccess="always"
+		  allowfullscreen="true"
+		  flashvars="plugins=../swf/ova.swf&config=sample.xml&file=http://streaming.openvideoads.org/shows/the-black-hole.mp4&duration=30&provider=video"
+		/>
+	</div>
+	<div id="companion" class="companion" style="margin-left:5px;width: 200px;height:240px;background: #CCCCCC;float:left;">
+		<br/><br/><br/><br/>
+		<em>
+		<span style="font-family:verdana,geneva,sans-serif;"><span style="font-size:12px;">A<br />
+		companion ad<br />will appear<br />here
+		</span>
+		</em>
+    </div>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/samples/demo2.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/samples/demo2.xml	(revision 143)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/samples/demo2.xml	(revision 143)
@@ -0,0 +1,36 @@
+<config>
+   <ova.title>
+       Demo 2 - Non-Linear (Overlay) with Companion
+   </ova.title>
+   <ova.json>
+       {
+		    "ads": {
+		       "servers": [
+		             {
+		                  "type": "OpenX",
+		                  "apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php"
+		             }
+		       ],
+		       "notice": { "textStyle": "smalltext" },
+		       "displayCompanions": true,
+		       "companions": [
+		             {
+		                  "id":"companion",
+		                  "width":"200",
+		                  "height":"240"
+		             }
+		       ],
+		       "schedule": [
+		             {
+		                  "zone": "48",
+		                  "position": "auto:bottom",
+		                  "width": 320,
+		                  "height": 80,
+		                  "startTime": "00:00:02",
+		                  "duration": "15"
+		             }
+		        ]
+		    }
+       }
+   </ova.json>
+</config>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/samples/demo1.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/samples/demo1.html	(revision 143)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/samples/demo1.html	(revision 143)
@@ -0,0 +1,31 @@
+<html>
+<head>
+<title>OVA for JW Player 4 Demo 1 - Linear Pre-Roll with Companion</title>
+</head>
+<body>
+<h3>Linear Pre-Roll with Companion</h3>
+<body>
+<div id="player-block">
+	<div id="player1" style="float:left;">
+		<embed
+		  id="ply"
+		  data="../swf/4.6.swf"
+		  src="../swf/4.6.swf"
+		  width="320"
+		  height="240"
+		  allowscriptaccess="always"
+		  allowfullscreen="true"
+		  flashvars="plugins=../swf/ova.swf&config=demo1.xml&file=http://streaming.openvideoads.org/shows/the-black-hole.mp4&duration=30&provider=video"
+		/>
+	</div>
+	<div id="companion" class="companion" style="margin-left:5px;width: 200px;height:240px;background: #CCCCCC;float:left;">
+		<br/><br/><br/><br/>
+		<em>
+		<span style="font-family:verdana,geneva,sans-serif;"><span style="font-size:12px;">A<br />
+		companion ad<br />will appear<br />here
+		</span>
+		</em>
+    </div>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/samples/demo2.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/samples/demo2.html	(revision 143)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/samples/demo2.html	(revision 143)
@@ -0,0 +1,31 @@
+<html>
+<head>
+<title>OVA for JW Player 4 Demo 2 - Non-Linear (Overlay) with Companion</title>
+</head>
+<body>
+<h3>Non-Linear (Overlay) with Companion</h3>
+<body>
+<div id="player-block">
+	<div id="player1" style="float:left;">
+		<embed
+		  id="ply"
+		  data="../swf/4.6.swf"
+		  src="../swf/4.6.swf"
+		  width="320"
+		  height="240"
+		  allowscriptaccess="always"
+		  allowfullscreen="true"
+		  flashvars="plugins=../swf/ova.swf&config=demo2.xml&file=http://streaming.openvideoads.org/shows/the-black-hole.mp4&duration=30&provider=video"
+		/>
+	</div>
+	<div id="companion" class="companion" style="margin-left:5px;width: 200px;height:240px;background: #CCCCCC;float:left;">
+		<br/><br/><br/><br/>
+		<em>
+		<span style="font-family:verdana,geneva,sans-serif;"><span style="font-size:12px;">A<br />
+		companion ad<br />will appear<br />here
+		</span>
+		</em>
+    </div>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/css/global.css
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/css/global.css	(revision 253)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/css/global.css	(revision 253)
@@ -0,0 +1,312 @@
+a.example {
+  display:block;
+  width:640px;
+  height:360px;
+  text-align:center;
+}
+a.player614x345 {
+  display:block;
+  width:614px;
+  height:345px;
+  text-align:center;
+}
+a.example img {
+  border:0px;
+  margin-top:140px;
+}
+p.example {
+    width:800px;
+}
+ul.example {
+    width:640px;
+}
+div.manual {
+    width:800px;
+}
+
+#description {
+    font-size:12px;
+    font-weight:normal;
+}
+
+#container {
+/*    display: table; */
+}
+
+#player_row  {
+    display: table-row;
+}
+
+#player_left {
+  float:left;/*fix for  buggy browsers*/
+    display: table-cell;
+    width:550px;
+    height:360px;
+}
+
+#player_right {
+  float:left;/*fix for  buggy browsers*/
+    display: table-cell;
+    width:150px;
+    height:360px;
+    text-align:center;
+}
+
+#companion {
+    width:150px;
+    height:360px;
+    border:2px solid #999999;
+    text-align: center;
+    line-height: 120px;
+    font-family: arial;
+    font-weight: light;
+    font-size: 12px;
+}
+
+#player-left-619 {
+  float:left;/*fix for  buggy browsers*/
+    display: table-cell;
+    width:519px;
+    height:600px;
+}
+
+#player-left-500 {
+  float:left;/*fix for  buggy browsers*/
+    display: table-cell;
+    width:619px;
+    height:500px;
+}
+
+#player-right-600 {
+  float:left;/*fix for  buggy browsers*/
+    display: table-cell;
+    width:150px;
+    height:620px;
+    text-align:center;
+}
+
+#player-right-500 {
+  float:left;/*fix for  buggy browsers*/
+    display: table-cell;
+    width:105px;
+    height:500px;
+    text-align:center;
+}
+
+#player-left-345 {
+  float:left;/*fix for  buggy browsers*/
+    display: table-cell;
+    width:619px;
+    height:345px;
+}
+
+#player-right-345 {
+  float:left;/*fix for  buggy browsers*/
+    display: table-cell;
+    width:200px;
+    height:345px;
+    text-align:center;
+    border:2px solid #999999;
+}
+
+#cssTextArea {
+	width: 180px;
+	height: 260px;
+	padding: 5px;
+	background-position: bottom right;
+	background-repeat: no-repeat;
+	overflow: hidden;
+}
+
+#container-614x280 {
+    width:614px;
+    height:260px;
+}
+
+#event-container-614x160 {
+    width:614px;
+    height:160px;
+//    border:2px solid #999999;
+    text-align:center;
+}
+
+#event-container-160x505 {
+    width:100px;
+    height:505px;
+//    border:2px solid #999999;
+}
+
+.event-container-160x68 {
+    width:100px;
+    height:68px;
+    border:1px solid #999999;
+    background-color: #DDDDDD;
+}
+
+.event-container-148x68 {
+    width:151px;
+    height:68px;
+    border:1px solid #999999;
+    background-color: #DDDDDD;
+}
+
+#event-container-150x140 {
+    width:153px;
+    height:160px;
+    float: left;
+    margin-top: 5px;
+}
+
+#companion-160x600 {
+    width:160px;
+    height:600px;
+    border:2px solid #999999;
+    text-align: center;
+    line-height: 120px;
+    font-family: arial;
+    font-weight: light;
+    font-size: 12px;
+}
+
+#companion-300x250 {
+    margin-top: 5px;
+    width:300px;
+    height:250px;
+    border:2px solid #999999;
+    text-align: center;
+    line-height: 70px;
+    font-family: arial;
+    font-weight: light;
+    font-size: 12px;
+    float: left;
+}
+
+#companion-728x90 {
+    margin-top: 5px;
+    width:728px;
+    height:90px;
+    border:2px solid #999999;
+    text-align: center;
+    line-height: 70px;
+    font-family: arial;
+    font-weight: light;
+    font-size: 12px;
+    float: left;
+}
+
+#filler-310x254 {
+    margin-top: 5px;
+    width:210px;
+    height:254px;
+    text-align: center;
+    line-height: 70px;
+    font-family: arial;
+    font-weight: light;
+    font-size: 12px;
+    background: #CCCCCC;
+    float: left;
+}
+
+#row  {
+    display: table-row;
+    width:950px;
+}
+
+#left {
+  float:left;/*fix for  buggy browsers*/
+    display: table-cell;
+    width:950px;
+    background-color:#ffffff;
+}
+
+#templateText {
+  width: 600px;
+  height: 465px;
+}
+
+.codebox {
+    width:800px;
+    border:2px solid #999999;
+    background-color:#f8f8ff;
+	font-family: "Lucida Console",Courier;
+	font-size: 11px;
+}
+
+#pl {
+	height:80px;
+	background:#f5fbfb url(../images/gradient/h150.png) repeat-x;
+	border:1px solid #ddd;
+	width:584px;
+	position:relative;
+	overflow:hidden;
+	padding:5px 0;
+	float:left;
+}
+
+#pl div.entries {
+	height:80px;
+	position:absolute;
+	width:10000em;
+}
+
+#pl div.entries a {
+	background:transparent url(../images/entry.png) no-repeat scroll 0%;
+	color:#666;
+	float:left;
+	font-family:"bitstream vera sans","lucida grande","verdana";
+	font-size:11px;
+	height:60px;
+	margin:0px 4px;
+	padding:10px;
+	text-decoration:none;
+	width:117px;
+
+}
+
+#pl div.entries a:hover {
+	background-position:-140px 0;
+	color:#000;
+}
+
+#pl div.entries a.playing {
+	background-position:-280px 0;
+	color:#000;
+}
+
+#pl div.entries a.paused {
+	background-position:-420px 0;
+	color:#000;
+}
+
+#pl div.entries a.progress {
+	opacity:0.8;
+}
+
+#pl div.entries em {
+	float:right;
+	margin-top:15px;
+	color:red;
+	font-style:normal;
+}
+
+a.nextPage, a.prevPage {
+	display:block;
+	width:18px;
+	height:18px;
+	background:url(../images/left.png) no-repeat;
+	margin:30px 10px;
+	cursor:pointer;
+	float:left;
+}
+
+a.nextPage:hover, a.prevPage:hover {
+	background-position:0px -18px;
+}
+
+a.nextPage {
+	background-image:url(../images/right.png);
+}
+
+a.nextPage.disabled, a.prevPage.disabled {
+	visibility:hidden;
+}
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/js/ova-companions-jquery.js
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/js/ova-companions-jquery.js	(revision 190)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/js/ova-companions-jquery.js	(revision 190)
@@ -0,0 +1,62 @@
+/**
+ * Advanced companion processing scripts - supports insertion of javascript based
+ * companion ad types.
+ *
+ * Original code contributed by Joe Connor April 28, 2010
+ *
+ * These javascript functions handle the DIV insertion of companion ad code - they
+ * support advanced companion types that use SWF or Javascript embed code to
+ * facilitate the display of the companion ad.
+ *
+ * These methods will only work when the ova plugin has the following config enabled:
+ *
+ *     "processCompanionsExternally": true
+ *
+ * When enabled, the OVA plugin will call these javascript functions to insert the
+ * companion ad code rather than try to insert the code itself via the ExternalInterface.call
+ * method.
+ *
+ * These methods rely on the prior inclusion of JQuery into the page.
+ *
+ */
+
+var ova = new function(){
+  this.readHTML = function(companion){
+    return jQuery('#' + companion).html();
+  }
+
+  this.writeCompanion = function(companion, src){
+    jQuery('#' + companion).writeCompanion(src);
+  }
+
+  this.writeHTML = function(companion, src){
+    jQuery('#' + companion).writeOriginal(src);
+  }
+
+  /*
+  note: not active - SWF treated as pre-formatted HTML with Object tags
+  this.flashembed = function(companion, configuration){
+    jQuery('#' + companion).flashembed(configuration);
+  }
+   */
+}
+
+
+// These jQuery functions are trigged from ova class
+jQuery.fn.writeCompanion = function(src) {
+  // Store jQuery(this) in a variable otherwise it will be out of scope in document.write
+  var companionElem = jQuery(this);
+  var tmpDocWrite = document.write;
+  var tmpDocWriteln = document.writeln;
+  document.write = function(arg){ jQuery(companionElem).append(arg); };
+  document.writeln = function(arg){ jQuery(companionElem).append(arg) + '\n'; };
+
+  // Function to retrieve a new advert from the server.
+  jQuery(companionElem).html(jQuery(src));
+};
+
+
+jQuery.fn.writeOriginal = function(src) {
+  var companionElem = jQuery(this);
+  jQuery(companionElem).html(src);
+};
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/js/swfobject.js
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/js/swfobject.js	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/js/swfobject.js	(revision 7)
@@ -0,0 +1,4 @@
+/*	SWFObject v2.2 <http://code.google.com/p/swfobject/> 
+	is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
+*/
+var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/js/jquery-1.3.1.js
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/js/jquery-1.3.1.js	(revision 86)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/js/jquery-1.3.1.js	(revision 86)
@@ -0,0 +1,4241 @@
+/*!
+ * jQuery JavaScript Library v1.3.1
+ * http://jquery.com/
+ *
+ * Copyright (c) 2009 John Resig
+ * Dual licensed under the MIT and GPL licenses.
+ * http://docs.jquery.com/License
+ *
+ * Date: 2009-01-21 20:42:16 -0500 (Wed, 21 Jan 2009)
+ * Revision: 6158
+ */
+(function(){
+
+var 
+	// Will speed up references to window, and allows munging its name.
+	window = this,
+	// Will speed up references to undefined, and allows munging its name.
+	undefined,
+	// Map over jQuery in case of overwrite
+	_jQuery = window.jQuery,
+	// Map over the $ in case of overwrite
+	_$ = window.$,
+
+	jQuery = window.jQuery = window.$ = function( selector, context ) {
+		// The jQuery object is actually just the init constructor 'enhanced'
+		return new jQuery.fn.init( selector, context );
+	},
+
+	// A simple way to check for HTML strings or ID strings
+	// (both of which we optimize for)
+	quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,
+	// Is it a simple selector
+	isSimple = /^.[^:#\[\.,]*$/;
+
+jQuery.fn = jQuery.prototype = {
+	init: function( selector, context ) {
+		// Make sure that a selection was provided
+		selector = selector || document;
+
+		// Handle $(DOMElement)
+		if ( selector.nodeType ) {
+			this[0] = selector;
+			this.length = 1;
+			this.context = selector;
+			return this;
+		}
+		// Handle HTML strings
+		if ( typeof selector === "string" ) {
+			// Are we dealing with HTML string or an ID?
+			var match = quickExpr.exec( selector );
+
+			// Verify a match, and that no context was specified for #id
+			if ( match && (match[1] || !context) ) {
+
+				// HANDLE: $(html) -> $(array)
+				if ( match[1] )
+					selector = jQuery.clean( [ match[1] ], context );
+
+				// HANDLE: $("#id")
+				else {
+					var elem = document.getElementById( match[3] );
+
+					// Handle the case where IE and Opera return items
+					// by name instead of ID
+					if ( elem && elem.id != match[3] )
+						return jQuery().find( selector );
+
+					// Otherwise, we inject the element directly into the jQuery object
+					var ret = jQuery( elem || [] );
+					ret.context = document;
+					ret.selector = selector;
+					return ret;
+				}
+
+			// HANDLE: $(expr, [context])
+			// (which is just equivalent to: $(content).find(expr)
+			} else
+				return jQuery( context ).find( selector );
+
+		// HANDLE: $(function)
+		// Shortcut for document ready
+		} else if ( jQuery.isFunction( selector ) )
+			return jQuery( document ).ready( selector );
+
+		// Make sure that old selector state is passed along
+		if ( selector.selector && selector.context ) {
+			this.selector = selector.selector;
+			this.context = selector.context;
+		}
+
+		return this.setArray(jQuery.makeArray(selector));
+	},
+
+	// Start with an empty selector
+	selector: "",
+
+	// The current version of jQuery being used
+	jquery: "1.3.1",
+
+	// The number of elements contained in the matched element set
+	size: function() {
+		return this.length;
+	},
+
+	// Get the Nth element in the matched element set OR
+	// Get the whole matched element set as a clean array
+	get: function( num ) {
+		return num === undefined ?
+
+			// Return a 'clean' array
+			jQuery.makeArray( this ) :
+
+			// Return just the object
+			this[ num ];
+	},
+
+	// Take an array of elements and push it onto the stack
+	// (returning the new matched element set)
+	pushStack: function( elems, name, selector ) {
+		// Build a new jQuery matched element set
+		var ret = jQuery( elems );
+
+		// Add the old object onto the stack (as a reference)
+		ret.prevObject = this;
+
+		ret.context = this.context;
+
+		if ( name === "find" )
+			ret.selector = this.selector + (this.selector ? " " : "") + selector;
+		else if ( name )
+			ret.selector = this.selector + "." + name + "(" + selector + ")";
+
+		// Return the newly-formed element set
+		return ret;
+	},
+
+	// Force the current matched set of elements to become
+	// the specified array of elements (destroying the stack in the process)
+	// You should use pushStack() in order to do this, but maintain the stack
+	setArray: function( elems ) {
+		// Resetting the length to 0, then using the native Array push
+		// is a super-fast way to populate an object with array-like properties
+		this.length = 0;
+		Array.prototype.push.apply( this, elems );
+
+		return this;
+	},
+
+	// Execute a callback for every element in the matched set.
+	// (You can seed the arguments with an array of args, but this is
+	// only used internally.)
+	each: function( callback, args ) {
+		return jQuery.each( this, callback, args );
+	},
+
+	// Determine the position of an element within
+	// the matched set of elements
+	index: function( elem ) {
+		// Locate the position of the desired element
+		return jQuery.inArray(
+			// If it receives a jQuery object, the first element is used
+			elem && elem.jquery ? elem[0] : elem
+		, this );
+	},
+
+	attr: function( name, value, type ) {
+		var options = name;
+
+		// Look for the case where we're accessing a style value
+		if ( typeof name === "string" )
+			if ( value === undefined )
+				return this[0] && jQuery[ type || "attr" ]( this[0], name );
+
+			else {
+				options = {};
+				options[ name ] = value;
+			}
+
+		// Check to see if we're setting style values
+		return this.each(function(i){
+			// Set all the styles
+			for ( name in options )
+				jQuery.attr(
+					type ?
+						this.style :
+						this,
+					name, jQuery.prop( this, options[ name ], type, i, name )
+				);
+		});
+	},
+
+	css: function( key, value ) {
+		// ignore negative width and height values
+		if ( (key == 'width' || key == 'height') && parseFloat(value) < 0 )
+			value = undefined;
+		return this.attr( key, value, "curCSS" );
+	},
+
+	text: function( text ) {
+		if ( typeof text !== "object" && text != null )
+			return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
+
+		var ret = "";
+
+		jQuery.each( text || this, function(){
+			jQuery.each( this.childNodes, function(){
+				if ( this.nodeType != 8 )
+					ret += this.nodeType != 1 ?
+						this.nodeValue :
+						jQuery.fn.text( [ this ] );
+			});
+		});
+
+		return ret;
+	},
+
+	wrapAll: function( html ) {
+		if ( this[0] ) {
+			// The elements to wrap the target around
+			var wrap = jQuery( html, this[0].ownerDocument ).clone();
+
+			if ( this[0].parentNode )
+				wrap.insertBefore( this[0] );
+
+			wrap.map(function(){
+				var elem = this;
+
+				while ( elem.firstChild )
+					elem = elem.firstChild;
+
+				return elem;
+			}).append(this);
+		}
+
+		return this;
+	},
+
+	wrapInner: function( html ) {
+		return this.each(function(){
+			jQuery( this ).contents().wrapAll( html );
+		});
+	},
+
+	wrap: function( html ) {
+		return this.each(function(){
+			jQuery( this ).wrapAll( html );
+		});
+	},
+
+	append: function() {
+		return this.domManip(arguments, true, function(elem){
+			if (this.nodeType == 1)
+				this.appendChild( elem );
+		});
+	},
+
+	prepend: function() {
+		return this.domManip(arguments, true, function(elem){
+			if (this.nodeType == 1)
+				this.insertBefore( elem, this.firstChild );
+		});
+	},
+
+	before: function() {
+		return this.domManip(arguments, false, function(elem){
+			this.parentNode.insertBefore( elem, this );
+		});
+	},
+
+	after: function() {
+		return this.domManip(arguments, false, function(elem){
+			this.parentNode.insertBefore( elem, this.nextSibling );
+		});
+	},
+
+	end: function() {
+		return this.prevObject || jQuery( [] );
+	},
+
+	// For internal use only.
+	// Behaves like an Array's .push method, not like a jQuery method.
+	push: [].push,
+
+	find: function( selector ) {
+		if ( this.length === 1 && !/,/.test(selector) ) {
+			var ret = this.pushStack( [], "find", selector );
+			ret.length = 0;
+			jQuery.find( selector, this[0], ret );
+			return ret;
+		} else {
+			var elems = jQuery.map(this, function(elem){
+				return jQuery.find( selector, elem );
+			});
+
+			return this.pushStack( /[^+>] [^+>]/.test( selector ) ?
+				jQuery.unique( elems ) :
+				elems, "find", selector );
+		}
+	},
+
+	clone: function( events ) {
+		// Do the clone
+		var ret = this.map(function(){
+			if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) {
+				// IE copies events bound via attachEvent when
+				// using cloneNode. Calling detachEvent on the
+				// clone will also remove the events from the orignal
+				// In order to get around this, we use innerHTML.
+				// Unfortunately, this means some modifications to
+				// attributes in IE that are actually only stored
+				// as properties will not be copied (such as the
+				// the name attribute on an input).
+				var clone = this.cloneNode(true),
+					container = document.createElement("div");
+				container.appendChild(clone);
+				return jQuery.clean([container.innerHTML])[0];
+			} else
+				return this.cloneNode(true);
+		});
+
+		// Need to set the expando to null on the cloned set if it exists
+		// removeData doesn't work here, IE removes it from the original as well
+		// this is primarily for IE but the data expando shouldn't be copied over in any browser
+		var clone = ret.find("*").andSelf().each(function(){
+			if ( this[ expando ] !== undefined )
+				this[ expando ] = null;
+		});
+
+		// Copy the events from the original to the clone
+		if ( events === true )
+			this.find("*").andSelf().each(function(i){
+				if (this.nodeType == 3)
+					return;
+				var events = jQuery.data( this, "events" );
+
+				for ( var type in events )
+					for ( var handler in events[ type ] )
+						jQuery.event.add( clone[ i ], type, events[ type ][ handler ], events[ type ][ handler ].data );
+			});
+
+		// Return the cloned set
+		return ret;
+	},
+
+	filter: function( selector ) {
+		return this.pushStack(
+			jQuery.isFunction( selector ) &&
+			jQuery.grep(this, function(elem, i){
+				return selector.call( elem, i );
+			}) ||
+
+			jQuery.multiFilter( selector, jQuery.grep(this, function(elem){
+				return elem.nodeType === 1;
+			}) ), "filter", selector );
+	},
+
+	closest: function( selector ) {
+		var pos = jQuery.expr.match.POS.test( selector ) ? jQuery(selector) : null;
+
+		return this.map(function(){
+			var cur = this;
+			while ( cur && cur.ownerDocument ) {
+				if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) )
+					return cur;
+				cur = cur.parentNode;
+			}
+		});
+	},
+
+	not: function( selector ) {
+		if ( typeof selector === "string" )
+			// test special case where just one selector is passed in
+			if ( isSimple.test( selector ) )
+				return this.pushStack( jQuery.multiFilter( selector, this, true ), "not", selector );
+			else
+				selector = jQuery.multiFilter( selector, this );
+
+		var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType;
+		return this.filter(function() {
+			return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector;
+		});
+	},
+
+	add: function( selector ) {
+		return this.pushStack( jQuery.unique( jQuery.merge(
+			this.get(),
+			typeof selector === "string" ?
+				jQuery( selector ) :
+				jQuery.makeArray( selector )
+		)));
+	},
+
+	is: function( selector ) {
+		return !!selector && jQuery.multiFilter( selector, this ).length > 0;
+	},
+
+	hasClass: function( selector ) {
+		return !!selector && this.is( "." + selector );
+	},
+
+	val: function( value ) {
+		if ( value === undefined ) {			
+			var elem = this[0];
+
+			if ( elem ) {
+				if( jQuery.nodeName( elem, 'option' ) )
+					return (elem.attributes.value || {}).specified ? elem.value : elem.text;
+				
+				// We need to handle select boxes special
+				if ( jQuery.nodeName( elem, "select" ) ) {
+					var index = elem.selectedIndex,
+						values = [],
+						options = elem.options,
+						one = elem.type == "select-one";
+
+					// Nothing was selected
+					if ( index < 0 )
+						return null;
+
+					// Loop through all the selected options
+					for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) {
+						var option = options[ i ];
+
+						if ( option.selected ) {
+							// Get the specifc value for the option
+							value = jQuery(option).val();
+
+							// We don't need an array for one selects
+							if ( one )
+								return value;
+
+							// Multi-Selects return an array
+							values.push( value );
+						}
+					}
+
+					return values;				
+				}
+
+				// Everything else, we just grab the value
+				return (elem.value || "").replace(/\r/g, "");
+
+			}
+
+			return undefined;
+		}
+
+		if ( typeof value === "number" )
+			value += '';
+
+		return this.each(function(){
+			if ( this.nodeType != 1 )
+				return;
+
+			if ( jQuery.isArray(value) && /radio|checkbox/.test( this.type ) )
+				this.checked = (jQuery.inArray(this.value, value) >= 0 ||
+					jQuery.inArray(this.name, value) >= 0);
+
+			else if ( jQuery.nodeName( this, "select" ) ) {
+				var values = jQuery.makeArray(value);
+
+				jQuery( "option", this ).each(function(){
+					this.selected = (jQuery.inArray( this.value, values ) >= 0 ||
+						jQuery.inArray( this.text, values ) >= 0);
+				});
+
+				if ( !values.length )
+					this.selectedIndex = -1;
+
+			} else
+				this.value = value;
+		});
+	},
+
+	html: function( value ) {
+		return value === undefined ?
+			(this[0] ?
+				this[0].innerHTML :
+				null) :
+			this.empty().append( value );
+	},
+
+	replaceWith: function( value ) {
+		return this.after( value ).remove();
+	},
+
+	eq: function( i ) {
+		return this.slice( i, +i + 1 );
+	},
+
+	slice: function() {
+		return this.pushStack( Array.prototype.slice.apply( this, arguments ),
+			"slice", Array.prototype.slice.call(arguments).join(",") );
+	},
+
+	map: function( callback ) {
+		return this.pushStack( jQuery.map(this, function(elem, i){
+			return callback.call( elem, i, elem );
+		}));
+	},
+
+	andSelf: function() {
+		return this.add( this.prevObject );
+	},
+
+	domManip: function( args, table, callback ) {
+		if ( this[0] ) {
+			var fragment = (this[0].ownerDocument || this[0]).createDocumentFragment(),
+				scripts = jQuery.clean( args, (this[0].ownerDocument || this[0]), fragment ),
+				first = fragment.firstChild,
+				extra = this.length > 1 ? fragment.cloneNode(true) : fragment;
+
+			if ( first )
+				for ( var i = 0, l = this.length; i < l; i++ )
+					callback.call( root(this[i], first), i > 0 ? extra.cloneNode(true) : fragment );
+			
+			if ( scripts )
+				jQuery.each( scripts, evalScript );
+		}
+
+		return this;
+		
+		function root( elem, cur ) {
+			return table && jQuery.nodeName(elem, "table") && jQuery.nodeName(cur, "tr") ?
+				(elem.getElementsByTagName("tbody")[0] ||
+				elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
+				elem;
+		}
+	}
+};
+
+// Give the init function the jQuery prototype for later instantiation
+jQuery.fn.init.prototype = jQuery.fn;
+
+function evalScript( i, elem ) {
+	if ( elem.src )
+		jQuery.ajax({
+			url: elem.src,
+			async: false,
+			dataType: "script"
+		});
+
+	else
+		jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" );
+
+	if ( elem.parentNode )
+		elem.parentNode.removeChild( elem );
+}
+
+function now(){
+	return +new Date;
+}
+
+jQuery.extend = jQuery.fn.extend = function() {
+	// copy reference to target object
+	var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options;
+
+	// Handle a deep copy situation
+	if ( typeof target === "boolean" ) {
+		deep = target;
+		target = arguments[1] || {};
+		// skip the boolean and the target
+		i = 2;
+	}
+
+	// Handle case when target is a string or something (possible in deep copy)
+	if ( typeof target !== "object" && !jQuery.isFunction(target) )
+		target = {};
+
+	// extend jQuery itself if only one argument is passed
+	if ( length == i ) {
+		target = this;
+		--i;
+	}
+
+	for ( ; i < length; i++ )
+		// Only deal with non-null/undefined values
+		if ( (options = arguments[ i ]) != null )
+			// Extend the base object
+			for ( var name in options ) {
+				var src = target[ name ], copy = options[ name ];
+
+				// Prevent never-ending loop
+				if ( target === copy )
+					continue;
+
+				// Recurse if we're merging object values
+				if ( deep && copy && typeof copy === "object" && !copy.nodeType )
+					target[ name ] = jQuery.extend( deep, 
+						// Never move original objects, clone them
+						src || ( copy.length != null ? [ ] : { } )
+					, copy );
+
+				// Don't bring in undefined values
+				else if ( copy !== undefined )
+					target[ name ] = copy;
+
+			}
+
+	// Return the modified object
+	return target;
+};
+
+// exclude the following css properties to add px
+var	exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i,
+	// cache defaultView
+	defaultView = document.defaultView || {},
+	toString = Object.prototype.toString;
+
+jQuery.extend({
+	noConflict: function( deep ) {
+		window.$ = _$;
+
+		if ( deep )
+			window.jQuery = _jQuery;
+
+		return jQuery;
+	},
+
+	// See test/unit/core.js for details concerning isFunction.
+	// Since version 1.3, DOM methods and functions like alert
+	// aren't supported. They return false on IE (#2968).
+	isFunction: function( obj ) {
+		return toString.call(obj) === "[object Function]";
+	},
+
+	isArray: function( obj ) {
+		return toString.call(obj) === "[object Array]";
+	},
+
+	// check if an element is in a (or is an) XML document
+	isXMLDoc: function( elem ) {
+		return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" ||
+			!!elem.ownerDocument && jQuery.isXMLDoc( elem.ownerDocument );
+	},
+
+	// Evalulates a script in a global context
+	globalEval: function( data ) {
+		data = jQuery.trim( data );
+
+		if ( data ) {
+			// Inspired by code by Andrea Giammarchi
+			// http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html
+			var head = document.getElementsByTagName("head")[0] || document.documentElement,
+				script = document.createElement("script");
+
+			script.type = "text/javascript";
+			if ( jQuery.support.scriptEval )
+				script.appendChild( document.createTextNode( data ) );
+			else
+				script.text = data;
+
+			// Use insertBefore instead of appendChild  to circumvent an IE6 bug.
+			// This arises when a base node is used (#2709).
+			head.insertBefore( script, head.firstChild );
+			head.removeChild( script );
+		}
+	},
+
+	nodeName: function( elem, name ) {
+		return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase();
+	},
+
+	// args is for internal usage only
+	each: function( object, callback, args ) {
+		var name, i = 0, length = object.length;
+
+		if ( args ) {
+			if ( length === undefined ) {
+				for ( name in object )
+					if ( callback.apply( object[ name ], args ) === false )
+						break;
+			} else
+				for ( ; i < length; )
+					if ( callback.apply( object[ i++ ], args ) === false )
+						break;
+
+		// A special, fast, case for the most common use of each
+		} else {
+			if ( length === undefined ) {
+				for ( name in object )
+					if ( callback.call( object[ name ], name, object[ name ] ) === false )
+						break;
+			} else
+				for ( var value = object[0];
+					i < length && callback.call( value, i, value ) !== false; value = object[++i] ){}
+		}
+
+		return object;
+	},
+
+	prop: function( elem, value, type, i, name ) {
+		// Handle executable functions
+		if ( jQuery.isFunction( value ) )
+			value = value.call( elem, i );
+
+		// Handle passing in a number to a CSS property
+		return typeof value === "number" && type == "curCSS" && !exclude.test( name ) ?
+			value + "px" :
+			value;
+	},
+
+	className: {
+		// internal only, use addClass("class")
+		add: function( elem, classNames ) {
+			jQuery.each((classNames || "").split(/\s+/), function(i, className){
+				if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) )
+					elem.className += (elem.className ? " " : "") + className;
+			});
+		},
+
+		// internal only, use removeClass("class")
+		remove: function( elem, classNames ) {
+			if (elem.nodeType == 1)
+				elem.className = classNames !== undefined ?
+					jQuery.grep(elem.className.split(/\s+/), function(className){
+						return !jQuery.className.has( classNames, className );
+					}).join(" ") :
+					"";
+		},
+
+		// internal only, use hasClass("class")
+		has: function( elem, className ) {
+			return elem && jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1;
+		}
+	},
+
+	// A method for quickly swapping in/out CSS properties to get correct calculations
+	swap: function( elem, options, callback ) {
+		var old = {};
+		// Remember the old values, and insert the new ones
+		for ( var name in options ) {
+			old[ name ] = elem.style[ name ];
+			elem.style[ name ] = options[ name ];
+		}
+
+		callback.call( elem );
+
+		// Revert the old values
+		for ( var name in options )
+			elem.style[ name ] = old[ name ];
+	},
+
+	css: function( elem, name, force ) {
+		if ( name == "width" || name == "height" ) {
+			var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ];
+
+			function getWH() {
+				val = name == "width" ? elem.offsetWidth : elem.offsetHeight;
+				var padding = 0, border = 0;
+				jQuery.each( which, function() {
+					padding += parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0;
+					border += parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0;
+				});
+				val -= Math.round(padding + border);
+			}
+
+			if ( jQuery(elem).is(":visible") )
+				getWH();
+			else
+				jQuery.swap( elem, props, getWH );
+
+			return Math.max(0, val);
+		}
+
+		return jQuery.curCSS( elem, name, force );
+	},
+
+	curCSS: function( elem, name, force ) {
+		var ret, style = elem.style;
+
+		// We need to handle opacity special in IE
+		if ( name == "opacity" && !jQuery.support.opacity ) {
+			ret = jQuery.attr( style, "opacity" );
+
+			return ret == "" ?
+				"1" :
+				ret;
+		}
+
+		// Make sure we're using the right name for getting the float value
+		if ( name.match( /float/i ) )
+			name = styleFloat;
+
+		if ( !force && style && style[ name ] )
+			ret = style[ name ];
+
+		else if ( defaultView.getComputedStyle ) {
+
+			// Only "float" is needed here
+			if ( name.match( /float/i ) )
+				name = "float";
+
+			name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase();
+
+			var computedStyle = defaultView.getComputedStyle( elem, null );
+
+			if ( computedStyle )
+				ret = computedStyle.getPropertyValue( name );
+
+			// We should always get a number back from opacity
+			if ( name == "opacity" && ret == "" )
+				ret = "1";
+
+		} else if ( elem.currentStyle ) {
+			var camelCase = name.replace(/\-(\w)/g, function(all, letter){
+				return letter.toUpperCase();
+			});
+
+			ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ];
+
+			// From the awesome hack by Dean Edwards
+			// http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
+
+			// If we're not dealing with a regular pixel number
+			// but a number that has a weird ending, we need to convert it to pixels
+			if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) {
+				// Remember the original values
+				var left = style.left, rsLeft = elem.runtimeStyle.left;
+
+				// Put in the new values to get a computed value out
+				elem.runtimeStyle.left = elem.currentStyle.left;
+				style.left = ret || 0;
+				ret = style.pixelLeft + "px";
+
+				// Revert the changed values
+				style.left = left;
+				elem.runtimeStyle.left = rsLeft;
+			}
+		}
+
+		return ret;
+	},
+
+	clean: function( elems, context, fragment ) {
+		context = context || document;
+
+		// !context.createElement fails in IE with an error but returns typeof 'object'
+		if ( typeof context.createElement === "undefined" )
+			context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
+
+		// If a single string is passed in and it's a single tag
+		// just do a createElement and skip the rest
+		if ( !fragment && elems.length === 1 && typeof elems[0] === "string" ) {
+			var match = /^<(\w+)\s*\/?>$/.exec(elems[0]);
+			if ( match )
+				return [ context.createElement( match[1] ) ];
+		}
+
+		var ret = [], scripts = [], div = context.createElement("div");
+
+		jQuery.each(elems, function(i, elem){
+			if ( typeof elem === "number" )
+				elem += '';
+
+			if ( !elem )
+				return;
+
+			// Convert html string into DOM nodes
+			if ( typeof elem === "string" ) {
+				// Fix "XHTML"-style tags in all browsers
+				elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){
+					return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ?
+						all :
+						front + "></" + tag + ">";
+				});
+
+				// Trim whitespace, otherwise indexOf won't work as expected
+				var tags = jQuery.trim( elem ).toLowerCase();
+
+				var wrap =
+					// option or optgroup
+					!tags.indexOf("<opt") &&
+					[ 1, "<select multiple='multiple'>", "</select>" ] ||
+
+					!tags.indexOf("<leg") &&
+					[ 1, "<fieldset>", "</fieldset>" ] ||
+
+					tags.match(/^<(thead|tbody|tfoot|colg|cap)/) &&
+					[ 1, "<table>", "</table>" ] ||
+
+					!tags.indexOf("<tr") &&
+					[ 2, "<table><tbody>", "</tbody></table>" ] ||
+
+				 	// <thead> matched above
+					(!tags.indexOf("<td") || !tags.indexOf("<th")) &&
+					[ 3, "<table><tbody><tr>", "</tr></tbody></table>" ] ||
+
+					!tags.indexOf("<col") &&
+					[ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ] ||
+
+					// IE can't serialize <link> and <script> tags normally
+					!jQuery.support.htmlSerialize &&
+					[ 1, "div<div>", "</div>" ] ||
+
+					[ 0, "", "" ];
+
+				// Go to html and back, then peel off extra wrappers
+				div.innerHTML = wrap[1] + elem + wrap[2];
+
+				// Move to the right depth
+				while ( wrap[0]-- )
+					div = div.lastChild;
+
+				// Remove IE's autoinserted <tbody> from table fragments
+				if ( !jQuery.support.tbody ) {
+
+					// String was a <table>, *may* have spurious <tbody>
+					var tbody = !tags.indexOf("<table") && tags.indexOf("<tbody") < 0 ?
+						div.firstChild && div.firstChild.childNodes :
+
+						// String was a bare <thead> or <tfoot>
+						wrap[1] == "<table>" && tags.indexOf("<tbody") < 0 ?
+							div.childNodes :
+							[];
+
+					for ( var j = tbody.length - 1; j >= 0 ; --j )
+						if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length )
+							tbody[ j ].parentNode.removeChild( tbody[ j ] );
+
+					}
+
+				// IE completely kills leading whitespace when innerHTML is used
+				if ( !jQuery.support.leadingWhitespace && /^\s/.test( elem ) )
+					div.insertBefore( context.createTextNode( elem.match(/^\s*/)[0] ), div.firstChild );
+				
+				elem = jQuery.makeArray( div.childNodes );
+			}
+
+			if ( elem.nodeType )
+				ret.push( elem );
+			else
+				ret = jQuery.merge( ret, elem );
+
+		});
+
+		if ( fragment ) {
+			for ( var i = 0; ret[i]; i++ ) {
+				if ( jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
+					scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );
+				} else {
+					if ( ret[i].nodeType === 1 )
+						ret.splice.apply( ret, [i + 1, 0].concat(jQuery.makeArray(ret[i].getElementsByTagName("script"))) );
+					fragment.appendChild( ret[i] );
+				}
+			}
+			
+			return scripts;
+		}
+
+		return ret;
+	},
+
+	attr: function( elem, name, value ) {
+		// don't set attributes on text and comment nodes
+		if (!elem || elem.nodeType == 3 || elem.nodeType == 8)
+			return undefined;
+
+		var notxml = !jQuery.isXMLDoc( elem ),
+			// Whether we are setting (or getting)
+			set = value !== undefined;
+
+		// Try to normalize/fix the name
+		name = notxml && jQuery.props[ name ] || name;
+
+		// Only do all the following if this is a node (faster for style)
+		// IE elem.getAttribute passes even for style
+		if ( elem.tagName ) {
+
+			// These attributes require special treatment
+			var special = /href|src|style/.test( name );
+
+			// Safari mis-reports the default selected property of a hidden option
+			// Accessing the parent's selectedIndex property fixes it
+			if ( name == "selected" && elem.parentNode )
+				elem.parentNode.selectedIndex;
+
+			// If applicable, access the attribute via the DOM 0 way
+			if ( name in elem && notxml && !special ) {
+				if ( set ){
+					// We can't allow the type property to be changed (since it causes problems in IE)
+					if ( name == "type" && jQuery.nodeName( elem, "input" ) && elem.parentNode )
+						throw "type property can't be changed";
+
+					elem[ name ] = value;
+				}
+
+				// browsers index elements by id/name on forms, give priority to attributes.
+				if( jQuery.nodeName( elem, "form" ) && elem.getAttributeNode(name) )
+					return elem.getAttributeNode( name ).nodeValue;
+
+				// elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
+				// http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
+				if ( name == "tabIndex" ) {
+					var attributeNode = elem.getAttributeNode( "tabIndex" );
+					return attributeNode && attributeNode.specified
+						? attributeNode.value
+						: elem.nodeName.match(/(button|input|object|select|textarea)/i)
+							? 0
+							: elem.nodeName.match(/^(a|area)$/i) && elem.href
+								? 0
+								: undefined;
+				}
+
+				return elem[ name ];
+			}
+
+			if ( !jQuery.support.style && notxml &&  name == "style" )
+				return jQuery.attr( elem.style, "cssText", value );
+
+			if ( set )
+				// convert the value to a string (all browsers do this but IE) see #1070
+				elem.setAttribute( name, "" + value );
+
+			var attr = !jQuery.support.hrefNormalized && notxml && special
+					// Some attributes require a special call on IE
+					? elem.getAttribute( name, 2 )
+					: elem.getAttribute( name );
+
+			// Non-existent attributes return null, we normalize to undefined
+			return attr === null ? undefined : attr;
+		}
+
+		// elem is actually elem.style ... set the style
+
+		// IE uses filters for opacity
+		if ( !jQuery.support.opacity && name == "opacity" ) {
+			if ( set ) {
+				// IE has trouble with opacity if it does not have layout
+				// Force it by setting the zoom level
+				elem.zoom = 1;
+
+				// Set the alpha filter to set the opacity
+				elem.filter = (elem.filter || "").replace( /alpha\([^)]*\)/, "" ) +
+					(parseInt( value ) + '' == "NaN" ? "" : "alpha(opacity=" + value * 100 + ")");
+			}
+
+			return elem.filter && elem.filter.indexOf("opacity=") >= 0 ?
+				(parseFloat( elem.filter.match(/opacity=([^)]*)/)[1] ) / 100) + '':
+				"";
+		}
+
+		name = name.replace(/-([a-z])/ig, function(all, letter){
+			return letter.toUpperCase();
+		});
+
+		if ( set )
+			elem[ name ] = value;
+
+		return elem[ name ];
+	},
+
+	trim: function( text ) {
+		return (text || "").replace( /^\s+|\s+$/g, "" );
+	},
+
+	makeArray: function( array ) {
+		var ret = [];
+
+		if( array != null ){
+			var i = array.length;
+			// The window, strings (and functions) also have 'length'
+			if( i == null || typeof array === "string" || jQuery.isFunction(array) || array.setInterval )
+				ret[0] = array;
+			else
+				while( i )
+					ret[--i] = array[i];
+		}
+
+		return ret;
+	},
+
+	inArray: function( elem, array ) {
+		for ( var i = 0, length = array.length; i < length; i++ )
+		// Use === because on IE, window == document
+			if ( array[ i ] === elem )
+				return i;
+
+		return -1;
+	},
+
+	merge: function( first, second ) {
+		// We have to loop this way because IE & Opera overwrite the length
+		// expando of getElementsByTagName
+		var i = 0, elem, pos = first.length;
+		// Also, we need to make sure that the correct elements are being returned
+		// (IE returns comment nodes in a '*' query)
+		if ( !jQuery.support.getAll ) {
+			while ( (elem = second[ i++ ]) != null )
+				if ( elem.nodeType != 8 )
+					first[ pos++ ] = elem;
+
+		} else
+			while ( (elem = second[ i++ ]) != null )
+				first[ pos++ ] = elem;
+
+		return first;
+	},
+
+	unique: function( array ) {
+		var ret = [], done = {};
+
+		try {
+
+			for ( var i = 0, length = array.length; i < length; i++ ) {
+				var id = jQuery.data( array[ i ] );
+
+				if ( !done[ id ] ) {
+					done[ id ] = true;
+					ret.push( array[ i ] );
+				}
+			}
+
+		} catch( e ) {
+			ret = array;
+		}
+
+		return ret;
+	},
+
+	grep: function( elems, callback, inv ) {
+		var ret = [];
+
+		// Go through the array, only saving the items
+		// that pass the validator function
+		for ( var i = 0, length = elems.length; i < length; i++ )
+			if ( !inv != !callback( elems[ i ], i ) )
+				ret.push( elems[ i ] );
+
+		return ret;
+	},
+
+	map: function( elems, callback ) {
+		var ret = [];
+
+		// Go through the array, translating each of the items to their
+		// new value (or values).
+		for ( var i = 0, length = elems.length; i < length; i++ ) {
+			var value = callback( elems[ i ], i );
+
+			if ( value != null )
+				ret[ ret.length ] = value;
+		}
+
+		return ret.concat.apply( [], ret );
+	}
+});
+
+// Use of jQuery.browser is deprecated.
+// It's included for backwards compatibility and plugins,
+// although they should work to migrate away.
+
+var userAgent = navigator.userAgent.toLowerCase();
+
+// Figure out what browser is being used
+jQuery.browser = {
+	version: (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1],
+	safari: /webkit/.test( userAgent ),
+	opera: /opera/.test( userAgent ),
+	msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),
+	mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent )
+};
+
+jQuery.each({
+	parent: function(elem){return elem.parentNode;},
+	parents: function(elem){return jQuery.dir(elem,"parentNode");},
+	next: function(elem){return jQuery.nth(elem,2,"nextSibling");},
+	prev: function(elem){return jQuery.nth(elem,2,"previousSibling");},
+	nextAll: function(elem){return jQuery.dir(elem,"nextSibling");},
+	prevAll: function(elem){return jQuery.dir(elem,"previousSibling");},
+	siblings: function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},
+	children: function(elem){return jQuery.sibling(elem.firstChild);},
+	contents: function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}
+}, function(name, fn){
+	jQuery.fn[ name ] = function( selector ) {
+		var ret = jQuery.map( this, fn );
+
+		if ( selector && typeof selector == "string" )
+			ret = jQuery.multiFilter( selector, ret );
+
+		return this.pushStack( jQuery.unique( ret ), name, selector );
+	};
+});
+
+jQuery.each({
+	appendTo: "append",
+	prependTo: "prepend",
+	insertBefore: "before",
+	insertAfter: "after",
+	replaceAll: "replaceWith"
+}, function(name, original){
+	jQuery.fn[ name ] = function() {
+		var args = arguments;
+
+		return this.each(function(){
+			for ( var i = 0, length = args.length; i < length; i++ )
+				jQuery( args[ i ] )[ original ]( this );
+		});
+	};
+});
+
+jQuery.each({
+	removeAttr: function( name ) {
+		jQuery.attr( this, name, "" );
+		if (this.nodeType == 1)
+			this.removeAttribute( name );
+	},
+
+	addClass: function( classNames ) {
+		jQuery.className.add( this, classNames );
+	},
+
+	removeClass: function( classNames ) {
+		jQuery.className.remove( this, classNames );
+	},
+
+	toggleClass: function( classNames, state ) {
+		if( typeof state !== "boolean" )
+			state = !jQuery.className.has( this, classNames );
+		jQuery.className[ state ? "add" : "remove" ]( this, classNames );
+	},
+
+	remove: function( selector ) {
+		if ( !selector || jQuery.filter( selector, [ this ] ).length ) {
+			// Prevent memory leaks
+			jQuery( "*", this ).add([this]).each(function(){
+				jQuery.event.remove(this);
+				jQuery.removeData(this);
+			});
+			if (this.parentNode)
+				this.parentNode.removeChild( this );
+		}
+	},
+
+	empty: function() {
+		// Remove element nodes and prevent memory leaks
+		jQuery( ">*", this ).remove();
+
+		// Remove any remaining nodes
+		while ( this.firstChild )
+			this.removeChild( this.firstChild );
+	}
+}, function(name, fn){
+	jQuery.fn[ name ] = function(){
+		return this.each( fn, arguments );
+	};
+});
+
+// Helper function used by the dimensions and offset modules
+function num(elem, prop) {
+	return elem[0] && parseInt( jQuery.curCSS(elem[0], prop, true), 10 ) || 0;
+}
+var expando = "jQuery" + now(), uuid = 0, windowData = {};
+
+jQuery.extend({
+	cache: {},
+
+	data: function( elem, name, data ) {
+		elem = elem == window ?
+			windowData :
+			elem;
+
+		var id = elem[ expando ];
+
+		// Compute a unique ID for the element
+		if ( !id )
+			id = elem[ expando ] = ++uuid;
+
+		// Only generate the data cache if we're
+		// trying to access or manipulate it
+		if ( name && !jQuery.cache[ id ] )
+			jQuery.cache[ id ] = {};
+
+		// Prevent overriding the named cache with undefined values
+		if ( data !== undefined )
+			jQuery.cache[ id ][ name ] = data;
+
+		// Return the named cache data, or the ID for the element
+		return name ?
+			jQuery.cache[ id ][ name ] :
+			id;
+	},
+
+	removeData: function( elem, name ) {
+		elem = elem == window ?
+			windowData :
+			elem;
+
+		var id = elem[ expando ];
+
+		// If we want to remove a specific section of the element's data
+		if ( name ) {
+			if ( jQuery.cache[ id ] ) {
+				// Remove the section of cache data
+				delete jQuery.cache[ id ][ name ];
+
+				// If we've removed all the data, remove the element's cache
+				name = "";
+
+				for ( name in jQuery.cache[ id ] )
+					break;
+
+				if ( !name )
+					jQuery.removeData( elem );
+			}
+
+		// Otherwise, we want to remove all of the element's data
+		} else {
+			// Clean up the element expando
+			try {
+				delete elem[ expando ];
+			} catch(e){
+				// IE has trouble directly removing the expando
+				// but it's ok with using removeAttribute
+				if ( elem.removeAttribute )
+					elem.removeAttribute( expando );
+			}
+
+			// Completely remove the data cache
+			delete jQuery.cache[ id ];
+		}
+	},
+	queue: function( elem, type, data ) {
+		if ( elem ){
+	
+			type = (type || "fx") + "queue";
+	
+			var q = jQuery.data( elem, type );
+	
+			if ( !q || jQuery.isArray(data) )
+				q = jQuery.data( elem, type, jQuery.makeArray(data) );
+			else if( data )
+				q.push( data );
+	
+		}
+		return q;
+	},
+
+	dequeue: function( elem, type ){
+		var queue = jQuery.queue( elem, type ),
+			fn = queue.shift();
+		
+		if( !type || type === "fx" )
+			fn = queue[0];
+			
+		if( fn !== undefined )
+			fn.call(elem);
+	}
+});
+
+jQuery.fn.extend({
+	data: function( key, value ){
+		var parts = key.split(".");
+		parts[1] = parts[1] ? "." + parts[1] : "";
+
+		if ( value === undefined ) {
+			var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
+
+			if ( data === undefined && this.length )
+				data = jQuery.data( this[0], key );
+
+			return data === undefined && parts[1] ?
+				this.data( parts[0] ) :
+				data;
+		} else
+			return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function(){
+				jQuery.data( this, key, value );
+			});
+	},
+
+	removeData: function( key ){
+		return this.each(function(){
+			jQuery.removeData( this, key );
+		});
+	},
+	queue: function(type, data){
+		if ( typeof type !== "string" ) {
+			data = type;
+			type = "fx";
+		}
+
+		if ( data === undefined )
+			return jQuery.queue( this[0], type );
+
+		return this.each(function(){
+			var queue = jQuery.queue( this, type, data );
+			
+			 if( type == "fx" && queue.length == 1 )
+				queue[0].call(this);
+		});
+	},
+	dequeue: function(type){
+		return this.each(function(){
+			jQuery.dequeue( this, type );
+		});
+	}
+});/*!
+ * Sizzle CSS Selector Engine - v0.9.3
+ *  Copyright 2009, The Dojo Foundation
+ *  Released under the MIT, BSD, and GPL Licenses.
+ *  More information: http://sizzlejs.com/
+ */
+(function(){
+
+var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]+['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[]+)+|[>+~])(\s*,\s*)?/g,
+	done = 0,
+	toString = Object.prototype.toString;
+
+var Sizzle = function(selector, context, results, seed) {
+	results = results || [];
+	context = context || document;
+
+	if ( context.nodeType !== 1 && context.nodeType !== 9 )
+		return [];
+	
+	if ( !selector || typeof selector !== "string" ) {
+		return results;
+	}
+
+	var parts = [], m, set, checkSet, check, mode, extra, prune = true;
+	
+	// Reset the position of the chunker regexp (start from head)
+	chunker.lastIndex = 0;
+	
+	while ( (m = chunker.exec(selector)) !== null ) {
+		parts.push( m[1] );
+		
+		if ( m[2] ) {
+			extra = RegExp.rightContext;
+			break;
+		}
+	}
+
+	if ( parts.length > 1 && origPOS.exec( selector ) ) {
+		if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
+			set = posProcess( parts[0] + parts[1], context );
+		} else {
+			set = Expr.relative[ parts[0] ] ?
+				[ context ] :
+				Sizzle( parts.shift(), context );
+
+			while ( parts.length ) {
+				selector = parts.shift();
+
+				if ( Expr.relative[ selector ] )
+					selector += parts.shift();
+
+				set = posProcess( selector, set );
+			}
+		}
+	} else {
+		var ret = seed ?
+			{ expr: parts.pop(), set: makeArray(seed) } :
+			Sizzle.find( parts.pop(), parts.length === 1 && context.parentNode ? context.parentNode : context, isXML(context) );
+		set = Sizzle.filter( ret.expr, ret.set );
+
+		if ( parts.length > 0 ) {
+			checkSet = makeArray(set);
+		} else {
+			prune = false;
+		}
+
+		while ( parts.length ) {
+			var cur = parts.pop(), pop = cur;
+
+			if ( !Expr.relative[ cur ] ) {
+				cur = "";
+			} else {
+				pop = parts.pop();
+			}
+
+			if ( pop == null ) {
+				pop = context;
+			}
+
+			Expr.relative[ cur ]( checkSet, pop, isXML(context) );
+		}
+	}
+
+	if ( !checkSet ) {
+		checkSet = set;
+	}
+
+	if ( !checkSet ) {
+		throw "Syntax error, unrecognized expression: " + (cur || selector);
+	}
+
+	if ( toString.call(checkSet) === "[object Array]" ) {
+		if ( !prune ) {
+			results.push.apply( results, checkSet );
+		} else if ( context.nodeType === 1 ) {
+			for ( var i = 0; checkSet[i] != null; i++ ) {
+				if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && contains(context, checkSet[i])) ) {
+					results.push( set[i] );
+				}
+			}
+		} else {
+			for ( var i = 0; checkSet[i] != null; i++ ) {
+				if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
+					results.push( set[i] );
+				}
+			}
+		}
+	} else {
+		makeArray( checkSet, results );
+	}
+
+	if ( extra ) {
+		Sizzle( extra, context, results, seed );
+	}
+
+	return results;
+};
+
+Sizzle.matches = function(expr, set){
+	return Sizzle(expr, null, null, set);
+};
+
+Sizzle.find = function(expr, context, isXML){
+	var set, match;
+
+	if ( !expr ) {
+		return [];
+	}
+
+	for ( var i = 0, l = Expr.order.length; i < l; i++ ) {
+		var type = Expr.order[i], match;
+		
+		if ( (match = Expr.match[ type ].exec( expr )) ) {
+			var left = RegExp.leftContext;
+
+			if ( left.substr( left.length - 1 ) !== "\\" ) {
+				match[1] = (match[1] || "").replace(/\\/g, "");
+				set = Expr.find[ type ]( match, context, isXML );
+				if ( set != null ) {
+					expr = expr.replace( Expr.match[ type ], "" );
+					break;
+				}
+			}
+		}
+	}
+
+	if ( !set ) {
+		set = context.getElementsByTagName("*");
+	}
+
+	return {set: set, expr: expr};
+};
+
+Sizzle.filter = function(expr, set, inplace, not){
+	var old = expr, result = [], curLoop = set, match, anyFound;
+
+	while ( expr && set.length ) {
+		for ( var type in Expr.filter ) {
+			if ( (match = Expr.match[ type ].exec( expr )) != null ) {
+				var filter = Expr.filter[ type ], found, item;
+				anyFound = false;
+
+				if ( curLoop == result ) {
+					result = [];
+				}
+
+				if ( Expr.preFilter[ type ] ) {
+					match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not );
+
+					if ( !match ) {
+						anyFound = found = true;
+					} else if ( match === true ) {
+						continue;
+					}
+				}
+
+				if ( match ) {
+					for ( var i = 0; (item = curLoop[i]) != null; i++ ) {
+						if ( item ) {
+							found = filter( item, match, i, curLoop );
+							var pass = not ^ !!found;
+
+							if ( inplace && found != null ) {
+								if ( pass ) {
+									anyFound = true;
+								} else {
+									curLoop[i] = false;
+								}
+							} else if ( pass ) {
+								result.push( item );
+								anyFound = true;
+							}
+						}
+					}
+				}
+
+				if ( found !== undefined ) {
+					if ( !inplace ) {
+						curLoop = result;
+					}
+
+					expr = expr.replace( Expr.match[ type ], "" );
+
+					if ( !anyFound ) {
+						return [];
+					}
+
+					break;
+				}
+			}
+		}
+
+		expr = expr.replace(/\s*,\s*/, "");
+
+		// Improper expression
+		if ( expr == old ) {
+			if ( anyFound == null ) {
+				throw "Syntax error, unrecognized expression: " + expr;
+			} else {
+				break;
+			}
+		}
+
+		old = expr;
+	}
+
+	return curLoop;
+};
+
+var Expr = Sizzle.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\(\)]*)+)\2\))?/
+	},
+	attrMap: {
+		"class": "className",
+		"for": "htmlFor"
+	},
+	attrHandle: {
+		href: function(elem){
+			return elem.getAttribute("href");
+		}
+	},
+	relative: {
+		"+": function(checkSet, part){
+			for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+				var elem = checkSet[i];
+				if ( elem ) {
+					var cur = elem.previousSibling;
+					while ( cur && cur.nodeType !== 1 ) {
+						cur = cur.previousSibling;
+					}
+					checkSet[i] = typeof part === "string" ?
+						cur || false :
+						cur === part;
+				}
+			}
+
+			if ( typeof part === "string" ) {
+				Sizzle.filter( part, checkSet, true );
+			}
+		},
+		">": function(checkSet, part, isXML){
+			if ( typeof part === "string" && !/\W/.test(part) ) {
+				part = isXML ? part : part.toUpperCase();
+
+				for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+					var elem = checkSet[i];
+					if ( elem ) {
+						var parent = elem.parentNode;
+						checkSet[i] = parent.nodeName === part ? parent : false;
+					}
+				}
+			} else {
+				for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+					var elem = checkSet[i];
+					if ( elem ) {
+						checkSet[i] = typeof part === "string" ?
+							elem.parentNode :
+							elem.parentNode === part;
+					}
+				}
+
+				if ( typeof part === "string" ) {
+					Sizzle.filter( part, checkSet, true );
+				}
+			}
+		},
+		"": function(checkSet, part, isXML){
+			var doneName = "done" + (done++), checkFn = dirCheck;
+
+			if ( !part.match(/\W/) ) {
+				var nodeCheck = part = isXML ? part : part.toUpperCase();
+				checkFn = dirNodeCheck;
+			}
+
+			checkFn("parentNode", part, doneName, checkSet, nodeCheck, isXML);
+		},
+		"~": function(checkSet, part, isXML){
+			var doneName = "done" + (done++), checkFn = dirCheck;
+
+			if ( typeof part === "string" && !part.match(/\W/) ) {
+				var nodeCheck = part = isXML ? part : part.toUpperCase();
+				checkFn = dirNodeCheck;
+			}
+
+			checkFn("previousSibling", part, doneName, checkSet, nodeCheck, isXML);
+		}
+	},
+	find: {
+		ID: function(match, context, isXML){
+			if ( typeof context.getElementById !== "undefined" && !isXML ) {
+				var m = context.getElementById(match[1]);
+				return m ? [m] : [];
+			}
+		},
+		NAME: function(match, context, isXML){
+			if ( typeof context.getElementsByName !== "undefined" && !isXML ) {
+				return context.getElementsByName(match[1]);
+			}
+		},
+		TAG: function(match, context){
+			return context.getElementsByTagName(match[1]);
+		}
+	},
+	preFilter: {
+		CLASS: function(match, curLoop, inplace, result, not){
+			match = " " + match[1].replace(/\\/g, "") + " ";
+
+			var elem;
+			for ( var i = 0; (elem = curLoop[i]) != null; i++ ) {
+				if ( elem ) {
+					if ( not ^ (" " + elem.className + " ").indexOf(match) >= 0 ) {
+						if ( !inplace )
+							result.push( elem );
+					} else if ( inplace ) {
+						curLoop[i] = false;
+					}
+				}
+			}
+
+			return false;
+		},
+		ID: function(match){
+			return match[1].replace(/\\/g, "");
+		},
+		TAG: function(match, curLoop){
+			for ( var i = 0; curLoop[i] === false; i++ ){}
+			return curLoop[i] && isXML(curLoop[i]) ? match[1] : match[1].toUpperCase();
+		},
+		CHILD: function(match){
+			if ( match[1] == "nth" ) {
+				// parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
+				var test = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(
+					match[2] == "even" && "2n" || match[2] == "odd" && "2n+1" ||
+					!/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
+
+				// calculate the numbers (first)n+(last) including if they are negative
+				match[2] = (test[1] + (test[2] || 1)) - 0;
+				match[3] = test[3] - 0;
+			}
+
+			// TODO: Move to normal caching system
+			match[0] = "done" + (done++);
+
+			return match;
+		},
+		ATTR: function(match){
+			var name = match[1].replace(/\\/g, "");
+			
+			if ( Expr.attrMap[name] ) {
+				match[1] = Expr.attrMap[name];
+			}
+
+			if ( match[2] === "~=" ) {
+				match[4] = " " + match[4] + " ";
+			}
+
+			return match;
+		},
+		PSEUDO: function(match, curLoop, inplace, result, not){
+			if ( match[1] === "not" ) {
+				// If we're dealing with a complex expression, or a simple one
+				if ( match[3].match(chunker).length > 1 ) {
+					match[3] = Sizzle(match[3], null, null, curLoop);
+				} else {
+					var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
+					if ( !inplace ) {
+						result.push.apply( result, ret );
+					}
+					return false;
+				}
+			} else if ( Expr.match.POS.test( match[0] ) ) {
+				return true;
+			}
+			
+			return match;
+		},
+		POS: function(match){
+			match.unshift( true );
+			return match;
+		}
+	},
+	filters: {
+		enabled: function(elem){
+			return elem.disabled === false && elem.type !== "hidden";
+		},
+		disabled: function(elem){
+			return elem.disabled === true;
+		},
+		checked: function(elem){
+			return elem.checked === true;
+		},
+		selected: function(elem){
+			// Accessing this property makes selected-by-default
+			// options in Safari work properly
+			elem.parentNode.selectedIndex;
+			return elem.selected === true;
+		},
+		parent: function(elem){
+			return !!elem.firstChild;
+		},
+		empty: function(elem){
+			return !elem.firstChild;
+		},
+		has: function(elem, i, match){
+			return !!Sizzle( match[3], elem ).length;
+		},
+		header: function(elem){
+			return /h\d/i.test( elem.nodeName );
+		},
+		text: function(elem){
+			return "text" === elem.type;
+		},
+		radio: function(elem){
+			return "radio" === elem.type;
+		},
+		checkbox: function(elem){
+			return "checkbox" === elem.type;
+		},
+		file: function(elem){
+			return "file" === elem.type;
+		},
+		password: function(elem){
+			return "password" === elem.type;
+		},
+		submit: function(elem){
+			return "submit" === elem.type;
+		},
+		image: function(elem){
+			return "image" === elem.type;
+		},
+		reset: function(elem){
+			return "reset" === elem.type;
+		},
+		button: function(elem){
+			return "button" === elem.type || elem.nodeName.toUpperCase() === "BUTTON";
+		},
+		input: function(elem){
+			return /input|select|textarea|button/i.test(elem.nodeName);
+		}
+	},
+	setFilters: {
+		first: function(elem, i){
+			return i === 0;
+		},
+		last: function(elem, i, match, array){
+			return i === array.length - 1;
+		},
+		even: function(elem, i){
+			return i % 2 === 0;
+		},
+		odd: function(elem, i){
+			return i % 2 === 1;
+		},
+		lt: function(elem, i, match){
+			return i < match[3] - 0;
+		},
+		gt: function(elem, i, match){
+			return i > match[3] - 0;
+		},
+		nth: function(elem, i, match){
+			return match[3] - 0 == i;
+		},
+		eq: function(elem, i, match){
+			return match[3] - 0 == i;
+		}
+	},
+	filter: {
+		CHILD: function(elem, match){
+			var type = match[1], parent = elem.parentNode;
+
+			var doneName = match[0];
+			
+			if ( parent && (!parent[ doneName ] || !elem.nodeIndex) ) {
+				var count = 1;
+
+				for ( var node = parent.firstChild; node; node = node.nextSibling ) {
+					if ( node.nodeType == 1 ) {
+						node.nodeIndex = count++;
+					}
+				}
+
+				parent[ doneName ] = count - 1;
+			}
+
+			if ( type == "first" ) {
+				return elem.nodeIndex == 1;
+			} else if ( type == "last" ) {
+				return elem.nodeIndex == parent[ doneName ];
+			} else if ( type == "only" ) {
+				return parent[ doneName ] == 1;
+			} else if ( type == "nth" ) {
+				var add = false, first = match[2], last = match[3];
+
+				if ( first == 1 && last == 0 ) {
+					return true;
+				}
+
+				if ( first == 0 ) {
+					if ( elem.nodeIndex == last ) {
+						add = true;
+					}
+				} else if ( (elem.nodeIndex - last) % first == 0 && (elem.nodeIndex - last) / first >= 0 ) {
+					add = true;
+				}
+
+				return add;
+			}
+		},
+		PSEUDO: function(elem, match, i, array){
+			var name = match[1], filter = Expr.filters[ name ];
+
+			if ( filter ) {
+				return filter( elem, i, match, array );
+			} else if ( name === "contains" ) {
+				return (elem.textContent || elem.innerText || "").indexOf(match[3]) >= 0;
+			} else if ( name === "not" ) {
+				var not = match[3];
+
+				for ( var i = 0, l = not.length; i < l; i++ ) {
+					if ( not[i] === elem ) {
+						return false;
+					}
+				}
+
+				return true;
+			}
+		},
+		ID: function(elem, match){
+			return elem.nodeType === 1 && elem.getAttribute("id") === match;
+		},
+		TAG: function(elem, match){
+			return (match === "*" && elem.nodeType === 1) || elem.nodeName === match;
+		},
+		CLASS: function(elem, match){
+			return match.test( elem.className );
+		},
+		ATTR: function(elem, match){
+			var result = Expr.attrHandle[ match[1] ] ? Expr.attrHandle[ match[1] ]( elem ) : elem[ match[1] ] || elem.getAttribute( match[1] ), value = result + "", type = match[2], check = match[4];
+			return result == null ?
+				type === "!=" :
+				type === "=" ?
+				value === check :
+				type === "*=" ?
+				value.indexOf(check) >= 0 :
+				type === "~=" ?
+				(" " + value + " ").indexOf(check) >= 0 :
+				!match[4] ?
+				result :
+				type === "!=" ?
+				value != check :
+				type === "^=" ?
+				value.indexOf(check) === 0 :
+				type === "$=" ?
+				value.substr(value.length - check.length) === check :
+				type === "|=" ?
+				value === check || value.substr(0, check.length + 1) === check + "-" :
+				false;
+		},
+		POS: function(elem, match, i, array){
+			var name = match[2], filter = Expr.setFilters[ name ];
+
+			if ( filter ) {
+				return filter( elem, i, match, array );
+			}
+		}
+	}
+};
+
+var origPOS = Expr.match.POS;
+
+for ( var type in Expr.match ) {
+	Expr.match[ type ] = RegExp( Expr.match[ type ].source + /(?![^\[]*\])(?![^\(]*\))/.source );
+}
+
+var makeArray = function(array, results) {
+	array = Array.prototype.slice.call( array );
+
+	if ( results ) {
+		results.push.apply( results, array );
+		return results;
+	}
+	
+	return array;
+};
+
+// Perform a simple check to determine if the browser is capable of
+// converting a NodeList to an array using builtin methods.
+try {
+	Array.prototype.slice.call( document.documentElement.childNodes );
+
+// Provide a fallback method if it does not work
+} catch(e){
+	makeArray = function(array, results) {
+		var ret = results || [];
+
+		if ( toString.call(array) === "[object Array]" ) {
+			Array.prototype.push.apply( ret, array );
+		} else {
+			if ( typeof array.length === "number" ) {
+				for ( var i = 0, l = array.length; i < l; i++ ) {
+					ret.push( array[i] );
+				}
+			} else {
+				for ( var i = 0; array[i]; i++ ) {
+					ret.push( array[i] );
+				}
+			}
+		}
+
+		return ret;
+	};
+}
+
+// Check to see if the browser returns elements by name when
+// querying by getElementById (and provide a workaround)
+(function(){
+	// We're going to inject a fake input element with a specified name
+	var form = document.createElement("form"),
+		id = "script" + (new Date).getTime();
+	form.innerHTML = "<input name='" + id + "'/>";
+
+	// Inject it into the root element, check its status, and remove it quickly
+	var root = document.documentElement;
+	root.insertBefore( form, root.firstChild );
+
+	// The workaround has to do additional checks after a getElementById
+	// Which slows things down for other browsers (hence the branching)
+	if ( !!document.getElementById( id ) ) {
+		Expr.find.ID = function(match, context, isXML){
+			if ( typeof context.getElementById !== "undefined" && !isXML ) {
+				var m = context.getElementById(match[1]);
+				return m ? m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ? [m] : undefined : [];
+			}
+		};
+
+		Expr.filter.ID = function(elem, match){
+			var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
+			return elem.nodeType === 1 && node && node.nodeValue === match;
+		};
+	}
+
+	root.removeChild( form );
+})();
+
+(function(){
+	// Check to see if the browser returns only elements
+	// when doing getElementsByTagName("*")
+
+	// Create a fake element
+	var div = document.createElement("div");
+	div.appendChild( document.createComment("") );
+
+	// Make sure no comments are found
+	if ( div.getElementsByTagName("*").length > 0 ) {
+		Expr.find.TAG = function(match, context){
+			var results = context.getElementsByTagName(match[1]);
+
+			// Filter out possible comments
+			if ( match[1] === "*" ) {
+				var tmp = [];
+
+				for ( var i = 0; results[i]; i++ ) {
+					if ( results[i].nodeType === 1 ) {
+						tmp.push( results[i] );
+					}
+				}
+
+				results = tmp;
+			}
+
+			return results;
+		};
+	}
+
+	// Check to see if an attribute returns normalized href attributes
+	div.innerHTML = "<a href='#'></a>";
+	if ( div.firstChild && div.firstChild.getAttribute("href") !== "#" ) {
+		Expr.attrHandle.href = function(elem){
+			return elem.getAttribute("href", 2);
+		};
+	}
+})();
+
+if ( document.querySelectorAll ) (function(){
+	var oldSizzle = Sizzle, div = document.createElement("div");
+	div.innerHTML = "<p class='TEST'></p>";
+
+	// Safari can't handle uppercase or unicode characters when
+	// in quirks mode.
+	if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
+		return;
+	}
+	
+	Sizzle = function(query, context, extra, seed){
+		context = context || document;
+
+		// Only use querySelectorAll on non-XML documents
+		// (ID selectors don't work in non-HTML documents)
+		if ( !seed && context.nodeType === 9 && !isXML(context) ) {
+			try {
+				return makeArray( context.querySelectorAll(query), extra );
+			} catch(e){}
+		}
+		
+		return oldSizzle(query, context, extra, seed);
+	};
+
+	Sizzle.find = oldSizzle.find;
+	Sizzle.filter = oldSizzle.filter;
+	Sizzle.selectors = oldSizzle.selectors;
+	Sizzle.matches = oldSizzle.matches;
+})();
+
+if ( document.getElementsByClassName && document.documentElement.getElementsByClassName ) {
+	Expr.order.splice(1, 0, "CLASS");
+	Expr.find.CLASS = function(match, context) {
+		return context.getElementsByClassName(match[1]);
+	};
+}
+
+function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
+	for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+		var elem = checkSet[i];
+		if ( elem ) {
+			elem = elem[dir];
+			var match = false;
+
+			while ( elem && elem.nodeType ) {
+				var done = elem[doneName];
+				if ( done ) {
+					match = checkSet[ done ];
+					break;
+				}
+
+				if ( elem.nodeType === 1 && !isXML )
+					elem[doneName] = i;
+
+				if ( elem.nodeName === cur ) {
+					match = elem;
+					break;
+				}
+
+				elem = elem[dir];
+			}
+
+			checkSet[i] = match;
+		}
+	}
+}
+
+function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
+	for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+		var elem = checkSet[i];
+		if ( elem ) {
+			elem = elem[dir];
+			var match = false;
+
+			while ( elem && elem.nodeType ) {
+				if ( elem[doneName] ) {
+					match = checkSet[ elem[doneName] ];
+					break;
+				}
+
+				if ( elem.nodeType === 1 ) {
+					if ( !isXML )
+						elem[doneName] = i;
+
+					if ( typeof cur !== "string" ) {
+						if ( elem === cur ) {
+							match = true;
+							break;
+						}
+
+					} else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
+						match = elem;
+						break;
+					}
+				}
+
+				elem = elem[dir];
+			}
+
+			checkSet[i] = match;
+		}
+	}
+}
+
+var contains = document.compareDocumentPosition ?  function(a, b){
+	return a.compareDocumentPosition(b) & 16;
+} : function(a, b){
+	return a !== b && (a.contains ? a.contains(b) : true);
+};
+
+var isXML = function(elem){
+	return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" ||
+		!!elem.ownerDocument && isXML( elem.ownerDocument );
+};
+
+var posProcess = function(selector, context){
+	var tmpSet = [], later = "", match,
+		root = context.nodeType ? [context] : context;
+
+	// Position selectors must be done after the filter
+	// And so must :not(positional) so we move all PSEUDOs to the end
+	while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
+		later += match[0];
+		selector = selector.replace( Expr.match.PSEUDO, "" );
+	}
+
+	selector = Expr.relative[selector] ? selector + "*" : selector;
+
+	for ( var i = 0, l = root.length; i < l; i++ ) {
+		Sizzle( selector, root[i], tmpSet );
+	}
+
+	return Sizzle.filter( later, tmpSet );
+};
+
+// EXPOSE
+jQuery.find = Sizzle;
+jQuery.filter = Sizzle.filter;
+jQuery.expr = Sizzle.selectors;
+jQuery.expr[":"] = jQuery.expr.filters;
+
+Sizzle.selectors.filters.hidden = function(elem){
+	return "hidden" === elem.type ||
+		jQuery.css(elem, "display") === "none" ||
+		jQuery.css(elem, "visibility") === "hidden";
+};
+
+Sizzle.selectors.filters.visible = function(elem){
+	return "hidden" !== elem.type &&
+		jQuery.css(elem, "display") !== "none" &&
+		jQuery.css(elem, "visibility") !== "hidden";
+};
+
+Sizzle.selectors.filters.animated = function(elem){
+	return jQuery.grep(jQuery.timers, function(fn){
+		return elem === fn.elem;
+	}).length;
+};
+
+jQuery.multiFilter = function( expr, elems, not ) {
+	if ( not ) {
+		expr = ":not(" + expr + ")";
+	}
+
+	return Sizzle.matches(expr, elems);
+};
+
+jQuery.dir = function( elem, dir ){
+	var matched = [], cur = elem[dir];
+	while ( cur && cur != document ) {
+		if ( cur.nodeType == 1 )
+			matched.push( cur );
+		cur = cur[dir];
+	}
+	return matched;
+};
+
+jQuery.nth = function(cur, result, dir, elem){
+	result = result || 1;
+	var num = 0;
+
+	for ( ; cur; cur = cur[dir] )
+		if ( cur.nodeType == 1 && ++num == result )
+			break;
+
+	return cur;
+};
+
+jQuery.sibling = function(n, elem){
+	var r = [];
+
+	for ( ; n; n = n.nextSibling ) {
+		if ( n.nodeType == 1 && n != elem )
+			r.push( n );
+	}
+
+	return r;
+};
+
+return;
+
+window.Sizzle = Sizzle;
+
+})();
+/*
+ * A number of helper functions used for managing events.
+ * Many of the ideas behind this code originated from
+ * Dean Edwards' addEvent library.
+ */
+jQuery.event = {
+
+	// Bind an event to an element
+	// Original by Dean Edwards
+	add: function(elem, types, handler, data) {
+		if ( elem.nodeType == 3 || elem.nodeType == 8 )
+			return;
+
+		// For whatever reason, IE has trouble passing the window object
+		// around, causing it to be cloned in the process
+		if ( elem.setInterval && elem != window )
+			elem = window;
+
+		// Make sure that the function being executed has a unique ID
+		if ( !handler.guid )
+			handler.guid = this.guid++;
+
+		// if data is passed, bind to handler
+		if ( data !== undefined ) {
+			// Create temporary function pointer to original handler
+			var fn = handler;
+
+			// Create unique handler function, wrapped around original handler
+			handler = this.proxy( fn );
+
+			// Store data in unique handler
+			handler.data = data;
+		}
+
+		// Init the element's event structure
+		var events = jQuery.data(elem, "events") || jQuery.data(elem, "events", {}),
+			handle = jQuery.data(elem, "handle") || jQuery.data(elem, "handle", function(){
+				// Handle the second event of a trigger and when
+				// an event is called after a page has unloaded
+				return typeof jQuery !== "undefined" && !jQuery.event.triggered ?
+					jQuery.event.handle.apply(arguments.callee.elem, arguments) :
+					undefined;
+			});
+		// Add elem as a property of the handle function
+		// This is to prevent a memory leak with non-native
+		// event in IE.
+		handle.elem = elem;
+
+		// Handle multiple events separated by a space
+		// jQuery(...).bind("mouseover mouseout", fn);
+		jQuery.each(types.split(/\s+/), function(index, type) {
+			// Namespaced event handlers
+			var namespaces = type.split(".");
+			type = namespaces.shift();
+			handler.type = namespaces.slice().sort().join(".");
+
+			// Get the current list of functions bound to this event
+			var handlers = events[type];
+			
+			if ( jQuery.event.specialAll[type] )
+				jQuery.event.specialAll[type].setup.call(elem, data, namespaces);
+
+			// Init the event handler queue
+			if (!handlers) {
+				handlers = events[type] = {};
+
+				// Check for a special event handler
+				// Only use addEventListener/attachEvent if the special
+				// events handler returns false
+				if ( !jQuery.event.special[type] || jQuery.event.special[type].setup.call(elem, data, namespaces) === false ) {
+					// Bind the global event handler to the element
+					if (elem.addEventListener)
+						elem.addEventListener(type, handle, false);
+					else if (elem.attachEvent)
+						elem.attachEvent("on" + type, handle);
+				}
+			}
+
+			// Add the function to the element's handler list
+			handlers[handler.guid] = handler;
+
+			// Keep track of which events have been used, for global triggering
+			jQuery.event.global[type] = true;
+		});
+
+		// Nullify elem to prevent memory leaks in IE
+		elem = null;
+	},
+
+	guid: 1,
+	global: {},
+
+	// Detach an event or set of events from an element
+	remove: function(elem, types, handler) {
+		// don't do events on text and comment nodes
+		if ( elem.nodeType == 3 || elem.nodeType == 8 )
+			return;
+
+		var events = jQuery.data(elem, "events"), ret, index;
+
+		if ( events ) {
+			// Unbind all events for the element
+			if ( types === undefined || (typeof types === "string" && types.charAt(0) == ".") )
+				for ( var type in events )
+					this.remove( elem, type + (types || "") );
+			else {
+				// types is actually an event object here
+				if ( types.type ) {
+					handler = types.handler;
+					types = types.type;
+				}
+
+				// Handle multiple events seperated by a space
+				// jQuery(...).unbind("mouseover mouseout", fn);
+				jQuery.each(types.split(/\s+/), function(index, type){
+					// Namespaced event handlers
+					var namespaces = type.split(".");
+					type = namespaces.shift();
+					var namespace = RegExp("(^|\\.)" + namespaces.slice().sort().join(".*\\.") + "(\\.|$)");
+
+					if ( events[type] ) {
+						// remove the given handler for the given type
+						if ( handler )
+							delete events[type][handler.guid];
+
+						// remove all handlers for the given type
+						else
+							for ( var handle in events[type] )
+								// Handle the removal of namespaced events
+								if ( namespace.test(events[type][handle].type) )
+									delete events[type][handle];
+									
+						if ( jQuery.event.specialAll[type] )
+							jQuery.event.specialAll[type].teardown.call(elem, namespaces);
+
+						// remove generic event handler if no more handlers exist
+						for ( ret in events[type] ) break;
+						if ( !ret ) {
+							if ( !jQuery.event.special[type] || jQuery.event.special[type].teardown.call(elem, namespaces) === false ) {
+								if (elem.removeEventListener)
+									elem.removeEventListener(type, jQuery.data(elem, "handle"), false);
+								else if (elem.detachEvent)
+									elem.detachEvent("on" + type, jQuery.data(elem, "handle"));
+							}
+							ret = null;
+							delete events[type];
+						}
+					}
+				});
+			}
+
+			// Remove the expando if it's no longer used
+			for ( ret in events ) break;
+			if ( !ret ) {
+				var handle = jQuery.data( elem, "handle" );
+				if ( handle ) handle.elem = null;
+				jQuery.removeData( elem, "events" );
+				jQuery.removeData( elem, "handle" );
+			}
+		}
+	},
+
+	// bubbling is internal
+	trigger: function( event, data, elem, bubbling ) {
+		// Event object or event type
+		var type = event.type || event;
+
+		if( !bubbling ){
+			event = typeof event === "object" ?
+				// jQuery.Event object
+				event[expando] ? event :
+				// Object literal
+				jQuery.extend( jQuery.Event(type), event ) :
+				// Just the event type (string)
+				jQuery.Event(type);
+
+			if ( type.indexOf("!") >= 0 ) {
+				event.type = type = type.slice(0, -1);
+				event.exclusive = true;
+			}
+
+			// Handle a global trigger
+			if ( !elem ) {
+				// Don't bubble custom events when global (to avoid too much overhead)
+				event.stopPropagation();
+				// Only trigger if we've ever bound an event for it
+				if ( this.global[type] )
+					jQuery.each( jQuery.cache, function(){
+						if ( this.events && this.events[type] )
+							jQuery.event.trigger( event, data, this.handle.elem );
+					});
+			}
+
+			// Handle triggering a single element
+
+			// don't do events on text and comment nodes
+			if ( !elem || elem.nodeType == 3 || elem.nodeType == 8 )
+				return undefined;
+			
+			// Clean up in case it is reused
+			event.result = undefined;
+			event.target = elem;
+			
+			// Clone the incoming data, if any
+			data = jQuery.makeArray(data);
+			data.unshift( event );
+		}
+
+		event.currentTarget = elem;
+
+		// Trigger the event, it is assumed that "handle" is a function
+		var handle = jQuery.data(elem, "handle");
+		if ( handle )
+			handle.apply( elem, data );
+
+		// Handle triggering native .onfoo handlers (and on links since we don't call .click() for links)
+		if ( (!elem[type] || (jQuery.nodeName(elem, 'a') && type == "click")) && elem["on"+type] && elem["on"+type].apply( elem, data ) === false )
+			event.result = false;
+
+		// Trigger the native events (except for clicks on links)
+		if ( !bubbling && elem[type] && !event.isDefaultPrevented() && !(jQuery.nodeName(elem, 'a') && type == "click") ) {
+			this.triggered = true;
+			try {
+				elem[ type ]();
+			// prevent IE from throwing an error for some hidden elements
+			} catch (e) {}
+		}
+
+		this.triggered = false;
+
+		if ( !event.isPropagationStopped() ) {
+			var parent = elem.parentNode || elem.ownerDocument;
+			if ( parent )
+				jQuery.event.trigger(event, data, parent, true);
+		}
+	},
+
+	handle: function(event) {
+		// returned undefined or false
+		var all, handlers;
+
+		event = arguments[0] = jQuery.event.fix( event || window.event );
+
+		// Namespaced event handlers
+		var namespaces = event.type.split(".");
+		event.type = namespaces.shift();
+
+		// Cache this now, all = true means, any handler
+		all = !namespaces.length && !event.exclusive;
+		
+		var namespace = RegExp("(^|\\.)" + namespaces.slice().sort().join(".*\\.") + "(\\.|$)");
+
+		handlers = ( jQuery.data(this, "events") || {} )[event.type];
+
+		for ( var j in handlers ) {
+			var handler = handlers[j];
+
+			// Filter the functions by class
+			if ( all || namespace.test(handler.type) ) {
+				// Pass in a reference to the handler function itself
+				// So that we can later remove it
+				event.handler = handler;
+				event.data = handler.data;
+
+				var ret = handler.apply(this, arguments);
+
+				if( ret !== undefined ){
+					event.result = ret;
+					if ( ret === false ) {
+						event.preventDefault();
+						event.stopPropagation();
+					}
+				}
+
+				if( event.isImmediatePropagationStopped() )
+					break;
+
+			}
+		}
+	},
+
+	props: "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
+
+	fix: function(event) {
+		if ( event[expando] )
+			return event;
+
+		// store a copy of the original event object
+		// and "clone" to set read-only properties
+		var originalEvent = event;
+		event = jQuery.Event( originalEvent );
+
+		for ( var i = this.props.length, prop; i; ){
+			prop = this.props[ --i ];
+			event[ prop ] = originalEvent[ prop ];
+		}
+
+		// Fix target property, if necessary
+		if ( !event.target )
+			event.target = event.srcElement || document; // Fixes #1925 where srcElement might not be defined either
+
+		// check if target is a textnode (safari)
+		if ( event.target.nodeType == 3 )
+			event.target = event.target.parentNode;
+
+		// Add relatedTarget, if necessary
+		if ( !event.relatedTarget && event.fromElement )
+			event.relatedTarget = event.fromElement == event.target ? event.toElement : event.fromElement;
+
+		// Calculate pageX/Y if missing and clientX/Y available
+		if ( event.pageX == null && event.clientX != null ) {
+			var doc = document.documentElement, body = document.body;
+			event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc.clientLeft || 0);
+			event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc.clientTop || 0);
+		}
+
+		// Add which for key events
+		if ( !event.which && ((event.charCode || event.charCode === 0) ? event.charCode : event.keyCode) )
+			event.which = event.charCode || event.keyCode;
+
+		// Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs)
+		if ( !event.metaKey && event.ctrlKey )
+			event.metaKey = event.ctrlKey;
+
+		// Add which for click: 1 == left; 2 == middle; 3 == right
+		// Note: button is not normalized, so don't use it
+		if ( !event.which && event.button )
+			event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));
+
+		return event;
+	},
+
+	proxy: function( fn, proxy ){
+		proxy = proxy || function(){ return fn.apply(this, arguments); };
+		// Set the guid of unique handler to the same of original handler, so it can be removed
+		proxy.guid = fn.guid = fn.guid || proxy.guid || this.guid++;
+		// So proxy can be declared as an argument
+		return proxy;
+	},
+
+	special: {
+		ready: {
+			// Make sure the ready event is setup
+			setup: bindReady,
+			teardown: function() {}
+		}
+	},
+	
+	specialAll: {
+		live: {
+			setup: function( selector, namespaces ){
+				jQuery.event.add( this, namespaces[0], liveHandler );
+			},
+			teardown:  function( namespaces ){
+				if ( namespaces.length ) {
+					var remove = 0, name = RegExp("(^|\\.)" + namespaces[0] + "(\\.|$)");
+					
+					jQuery.each( (jQuery.data(this, "events").live || {}), function(){
+						if ( name.test(this.type) )
+							remove++;
+					});
+					
+					if ( remove < 1 )
+						jQuery.event.remove( this, namespaces[0], liveHandler );
+				}
+			}
+		}
+	}
+};
+
+jQuery.Event = function( src ){
+	// Allow instantiation without the 'new' keyword
+	if( !this.preventDefault )
+		return new jQuery.Event(src);
+	
+	// Event object
+	if( src && src.type ){
+		this.originalEvent = src;
+		this.type = src.type;
+	// Event type
+	}else
+		this.type = src;
+
+	// timeStamp is buggy for some events on Firefox(#3843)
+	// So we won't rely on the native value
+	this.timeStamp = now();
+	
+	// Mark it as fixed
+	this[expando] = true;
+};
+
+function returnFalse(){
+	return false;
+}
+function returnTrue(){
+	return true;
+}
+
+// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
+// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
+jQuery.Event.prototype = {
+	preventDefault: function() {
+		this.isDefaultPrevented = returnTrue;
+
+		var e = this.originalEvent;
+		if( !e )
+			return;
+		// if preventDefault exists run it on the original event
+		if (e.preventDefault)
+			e.preventDefault();
+		// otherwise set the returnValue property of the original event to false (IE)
+		e.returnValue = false;
+	},
+	stopPropagation: function() {
+		this.isPropagationStopped = returnTrue;
+
+		var e = this.originalEvent;
+		if( !e )
+			return;
+		// if stopPropagation exists run it on the original event
+		if (e.stopPropagation)
+			e.stopPropagation();
+		// otherwise set the cancelBubble property of the original event to true (IE)
+		e.cancelBubble = true;
+	},
+	stopImmediatePropagation:function(){
+		this.isImmediatePropagationStopped = returnTrue;
+		this.stopPropagation();
+	},
+	isDefaultPrevented: returnFalse,
+	isPropagationStopped: returnFalse,
+	isImmediatePropagationStopped: returnFalse
+};
+// Checks if an event happened on an element within another element
+// Used in jQuery.event.special.mouseenter and mouseleave handlers
+var withinElement = function(event) {
+	// Check if mouse(over|out) are still within the same parent element
+	var parent = event.relatedTarget;
+	// Traverse up the tree
+	while ( parent && parent != this )
+		try { parent = parent.parentNode; }
+		catch(e) { parent = this; }
+	
+	if( parent != this ){
+		// set the correct event type
+		event.type = event.data;
+		// handle event if we actually just moused on to a non sub-element
+		jQuery.event.handle.apply( this, arguments );
+	}
+};
+	
+jQuery.each({ 
+	mouseover: 'mouseenter', 
+	mouseout: 'mouseleave'
+}, function( orig, fix ){
+	jQuery.event.special[ fix ] = {
+		setup: function(){
+			jQuery.event.add( this, orig, withinElement, fix );
+		},
+		teardown: function(){
+			jQuery.event.remove( this, orig, withinElement );
+		}
+	};			   
+});
+
+jQuery.fn.extend({
+	bind: function( type, data, fn ) {
+		return type == "unload" ? this.one(type, data, fn) : this.each(function(){
+			jQuery.event.add( this, type, fn || data, fn && data );
+		});
+	},
+
+	one: function( type, data, fn ) {
+		var one = jQuery.event.proxy( fn || data, function(event) {
+			jQuery(this).unbind(event, one);
+			return (fn || data).apply( this, arguments );
+		});
+		return this.each(function(){
+			jQuery.event.add( this, type, one, fn && data);
+		});
+	},
+
+	unbind: function( type, fn ) {
+		return this.each(function(){
+			jQuery.event.remove( this, type, fn );
+		});
+	},
+
+	trigger: function( type, data ) {
+		return this.each(function(){
+			jQuery.event.trigger( type, data, this );
+		});
+	},
+
+	triggerHandler: function( type, data ) {
+		if( this[0] ){
+			var event = jQuery.Event(type);
+			event.preventDefault();
+			event.stopPropagation();
+			jQuery.event.trigger( event, data, this[0] );
+			return event.result;
+		}		
+	},
+
+	toggle: function( fn ) {
+		// Save reference to arguments for access in closure
+		var args = arguments, i = 1;
+
+		// link all the functions, so any of them can unbind this click handler
+		while( i < args.length )
+			jQuery.event.proxy( fn, args[i++] );
+
+		return this.click( jQuery.event.proxy( fn, function(event) {
+			// Figure out which function to execute
+			this.lastToggle = ( this.lastToggle || 0 ) % i;
+
+			// Make sure that clicks stop
+			event.preventDefault();
+
+			// and execute the function
+			return args[ this.lastToggle++ ].apply( this, arguments ) || false;
+		}));
+	},
+
+	hover: function(fnOver, fnOut) {
+		return this.mouseenter(fnOver).mouseleave(fnOut);
+	},
+
+	ready: function(fn) {
+		// Attach the listeners
+		bindReady();
+
+		// If the DOM is already ready
+		if ( jQuery.isReady )
+			// Execute the function immediately
+			fn.call( document, jQuery );
+
+		// Otherwise, remember the function for later
+		else
+			// Add the function to the wait list
+			jQuery.readyList.push( fn );
+
+		return this;
+	},
+	
+	live: function( type, fn ){
+		var proxy = jQuery.event.proxy( fn );
+		proxy.guid += this.selector + type;
+
+		jQuery(document).bind( liveConvert(type, this.selector), this.selector, proxy );
+
+		return this;
+	},
+	
+	die: function( type, fn ){
+		jQuery(document).unbind( liveConvert(type, this.selector), fn ? { guid: fn.guid + this.selector + type } : null );
+		return this;
+	}
+});
+
+function liveHandler( event ){
+	var check = RegExp("(^|\\.)" + event.type + "(\\.|$)"),
+		stop = true,
+		elems = [];
+
+	jQuery.each(jQuery.data(this, "events").live || [], function(i, fn){
+		if ( check.test(fn.type) ) {
+			var elem = jQuery(event.target).closest(fn.data)[0];
+			if ( elem )
+				elems.push({ elem: elem, fn: fn });
+		}
+	});
+
+	jQuery.each(elems, function(){
+		if ( this.fn.call(this.elem, event, this.fn.data) === false )
+			stop = false;
+	});
+
+	return stop;
+}
+
+function liveConvert(type, selector){
+	return ["live", type, selector.replace(/\./g, "`").replace(/ /g, "|")].join(".");
+}
+
+jQuery.extend({
+	isReady: false,
+	readyList: [],
+	// Handle when the DOM is ready
+	ready: function() {
+		// Make sure that the DOM is not already loaded
+		if ( !jQuery.isReady ) {
+			// Remember that the DOM is ready
+			jQuery.isReady = true;
+
+			// If there are functions bound, to execute
+			if ( jQuery.readyList ) {
+				// Execute all of them
+				jQuery.each( jQuery.readyList, function(){
+					this.call( document, jQuery );
+				});
+
+				// Reset the list of functions
+				jQuery.readyList = null;
+			}
+
+			// Trigger any bound ready events
+			jQuery(document).triggerHandler("ready");
+		}
+	}
+});
+
+var readyBound = false;
+
+function bindReady(){
+	if ( readyBound ) return;
+	readyBound = true;
+
+	// Mozilla, Opera and webkit nightlies currently support this event
+	if ( document.addEventListener ) {
+		// Use the handy event callback
+		document.addEventListener( "DOMContentLoaded", function(){
+			document.removeEventListener( "DOMContentLoaded", arguments.callee, false );
+			jQuery.ready();
+		}, false );
+
+	// If IE event model is used
+	} else if ( document.attachEvent ) {
+		// ensure firing before onload,
+		// maybe late but safe also for iframes
+		document.attachEvent("onreadystatechange", function(){
+			if ( document.readyState === "complete" ) {
+				document.detachEvent( "onreadystatechange", arguments.callee );
+				jQuery.ready();
+			}
+		});
+
+		// If IE and not an iframe
+		// continually check to see if the document is ready
+		if ( document.documentElement.doScroll && typeof window.frameElement === "undefined" ) (function(){
+			if ( jQuery.isReady ) return;
+
+			try {
+				// If IE is used, use the trick by Diego Perini
+				// http://javascript.nwbox.com/IEContentLoaded/
+				document.documentElement.doScroll("left");
+			} catch( error ) {
+				setTimeout( arguments.callee, 0 );
+				return;
+			}
+
+			// and execute any waiting functions
+			jQuery.ready();
+		})();
+	}
+
+	// A fallback to window.onload, that will always work
+	jQuery.event.add( window, "load", jQuery.ready );
+}
+
+jQuery.each( ("blur,focus,load,resize,scroll,unload,click,dblclick," +
+	"mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave," +
+	"change,select,submit,keydown,keypress,keyup,error").split(","), function(i, name){
+
+	// Handle event binding
+	jQuery.fn[name] = function(fn){
+		return fn ? this.bind(name, fn) : this.trigger(name);
+	};
+});
+
+// Prevent memory leaks in IE
+// And prevent errors on refresh with events like mouseover in other browsers
+// Window isn't included so as not to unbind existing unload events
+jQuery( window ).bind( 'unload', function(){ 
+	for ( var id in jQuery.cache )
+		// Skip the window
+		if ( id != 1 && jQuery.cache[ id ].handle )
+			jQuery.event.remove( jQuery.cache[ id ].handle.elem );
+}); 
+(function(){
+
+	jQuery.support = {};
+
+	var root = document.documentElement,
+		script = document.createElement("script"),
+		div = document.createElement("div"),
+		id = "script" + (new Date).getTime();
+
+	div.style.display = "none";
+	div.innerHTML = '   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';
+
+	var all = div.getElementsByTagName("*"),
+		a = div.getElementsByTagName("a")[0];
+
+	// Can't get basic test support
+	if ( !all || !all.length || !a ) {
+		return;
+	}
+
+	jQuery.support = {
+		// IE strips leading whitespace when .innerHTML is used
+		leadingWhitespace: div.firstChild.nodeType == 3,
+		
+		// Make sure that tbody elements aren't automatically inserted
+		// IE will insert them into empty tables
+		tbody: !div.getElementsByTagName("tbody").length,
+		
+		// Make sure that you can get all elements in an <object> element
+		// IE 7 always returns no results
+		objectAll: !!div.getElementsByTagName("object")[0]
+			.getElementsByTagName("*").length,
+		
+		// Make sure that link elements get serialized correctly by innerHTML
+		// This requires a wrapper element in IE
+		htmlSerialize: !!div.getElementsByTagName("link").length,
+		
+		// Get the style information from getAttribute
+		// (IE uses .cssText insted)
+		style: /red/.test( a.getAttribute("style") ),
+		
+		// Make sure that URLs aren't manipulated
+		// (IE normalizes it by default)
+		hrefNormalized: a.getAttribute("href") === "/a",
+		
+		// Make sure that element opacity exists
+		// (IE uses filter instead)
+		opacity: a.style.opacity === "0.5",
+		
+		// Verify style float existence
+		// (IE uses styleFloat instead of cssFloat)
+		cssFloat: !!a.style.cssFloat,
+
+		// Will be defined later
+		scriptEval: false,
+		noCloneEvent: true,
+		boxModel: null
+	};
+	
+	script.type = "text/javascript";
+	try {
+		script.appendChild( document.createTextNode( "window." + id + "=1;" ) );
+	} catch(e){}
+
+	root.insertBefore( script, root.firstChild );
+	
+	// Make sure that the execution of code works by injecting a script
+	// tag with appendChild/createTextNode
+	// (IE doesn't support this, fails, and uses .text instead)
+	if ( window[ id ] ) {
+		jQuery.support.scriptEval = true;
+		delete window[ id ];
+	}
+
+	root.removeChild( script );
+
+	if ( div.attachEvent && div.fireEvent ) {
+		div.attachEvent("onclick", function(){
+			// Cloning a node shouldn't copy over any
+			// bound event handlers (IE does this)
+			jQuery.support.noCloneEvent = false;
+			div.detachEvent("onclick", arguments.callee);
+		});
+		div.cloneNode(true).fireEvent("onclick");
+	}
+
+	// Figure out if the W3C box model works as expected
+	// document.body must exist before we can do this
+	jQuery(function(){
+		var div = document.createElement("div");
+		div.style.width = "1px";
+		div.style.paddingLeft = "1px";
+
+		document.body.appendChild( div );
+		jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;
+		document.body.removeChild( div );
+	});
+})();
+
+var styleFloat = jQuery.support.cssFloat ? "cssFloat" : "styleFloat";
+
+jQuery.props = {
+	"for": "htmlFor",
+	"class": "className",
+	"float": styleFloat,
+	cssFloat: styleFloat,
+	styleFloat: styleFloat,
+	readonly: "readOnly",
+	maxlength: "maxLength",
+	cellspacing: "cellSpacing",
+	rowspan: "rowSpan",
+	tabindex: "tabIndex"
+};
+jQuery.fn.extend({
+	// Keep a copy of the old load
+	_load: jQuery.fn.load,
+
+	load: function( url, params, callback ) {
+		if ( typeof url !== "string" )
+			return this._load( url );
+
+		var off = url.indexOf(" ");
+		if ( off >= 0 ) {
+			var selector = url.slice(off, url.length);
+			url = url.slice(0, off);
+		}
+
+		// Default to a GET request
+		var type = "GET";
+
+		// If the second parameter was provided
+		if ( params )
+			// If it's a function
+			if ( jQuery.isFunction( params ) ) {
+				// We assume that it's the callback
+				callback = params;
+				params = null;
+
+			// Otherwise, build a param string
+			} else if( typeof params === "object" ) {
+				params = jQuery.param( params );
+				type = "POST";
+			}
+
+		var self = this;
+
+		// Request the remote document
+		jQuery.ajax({
+			url: url,
+			type: type,
+			dataType: "html",
+			data: params,
+			complete: function(res, status){
+				// If successful, inject the HTML into all the matched elements
+				if ( status == "success" || status == "notmodified" )
+					// See if a selector was specified
+					self.html( selector ?
+						// Create a dummy div to hold the results
+						jQuery("<div/>")
+							// inject the contents of the document in, removing the scripts
+							// to avoid any 'Permission Denied' errors in IE
+							.append(res.responseText.replace(/<script(.|\s)*?\/script>/g, ""))
+
+							// Locate the specified elements
+							.find(selector) :
+
+						// If not, just inject the full result
+						res.responseText );
+
+				if( callback )
+					self.each( callback, [res.responseText, status, res] );
+			}
+		});
+		return this;
+	},
+
+	serialize: function() {
+		return jQuery.param(this.serializeArray());
+	},
+	serializeArray: function() {
+		return this.map(function(){
+			return this.elements ? jQuery.makeArray(this.elements) : this;
+		})
+		.filter(function(){
+			return this.name && !this.disabled &&
+				(this.checked || /select|textarea/i.test(this.nodeName) ||
+					/text|hidden|password/i.test(this.type));
+		})
+		.map(function(i, elem){
+			var val = jQuery(this).val();
+			return val == null ? null :
+				jQuery.isArray(val) ?
+					jQuery.map( val, function(val, i){
+						return {name: elem.name, value: val};
+					}) :
+					{name: elem.name, value: val};
+		}).get();
+	}
+});
+
+// Attach a bunch of functions for handling common AJAX events
+jQuery.each( "ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","), function(i,o){
+	jQuery.fn[o] = function(f){
+		return this.bind(o, f);
+	};
+});
+
+var jsc = now();
+
+jQuery.extend({
+  
+	get: function( url, data, callback, type ) {
+		// shift arguments if data argument was ommited
+		if ( jQuery.isFunction( data ) ) {
+			callback = data;
+			data = null;
+		}
+
+		return jQuery.ajax({
+			type: "GET",
+			url: url,
+			data: data,
+			success: callback,
+			dataType: type
+		});
+	},
+
+	getScript: function( url, callback ) {
+		return jQuery.get(url, null, callback, "script");
+	},
+
+	getJSON: function( url, data, callback ) {
+		return jQuery.get(url, data, callback, "json");
+	},
+
+	post: function( url, data, callback, type ) {
+		if ( jQuery.isFunction( data ) ) {
+			callback = data;
+			data = {};
+		}
+
+		return jQuery.ajax({
+			type: "POST",
+			url: url,
+			data: data,
+			success: callback,
+			dataType: type
+		});
+	},
+
+	ajaxSetup: function( settings ) {
+		jQuery.extend( jQuery.ajaxSettings, settings );
+	},
+
+	ajaxSettings: {
+		url: location.href,
+		global: true,
+		type: "GET",
+		contentType: "application/x-www-form-urlencoded",
+		processData: true,
+		async: true,
+		/*
+		timeout: 0,
+		data: null,
+		username: null,
+		password: null,
+		*/
+		// Create the request object; Microsoft failed to properly
+		// implement the XMLHttpRequest in IE7, so we use the ActiveXObject when it is available
+		// This function can be overriden by calling jQuery.ajaxSetup
+		xhr:function(){
+			return window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
+		},
+		accepts: {
+			xml: "application/xml, text/xml",
+			html: "text/html",
+			script: "text/javascript, application/javascript",
+			json: "application/json, text/javascript",
+			text: "text/plain",
+			_default: "*/*"
+		}
+	},
+
+	// Last-Modified header cache for next request
+	lastModified: {},
+
+	ajax: function( s ) {
+		// Extend the settings, but re-extend 's' so that it can be
+		// checked again later (in the test suite, specifically)
+		s = jQuery.extend(true, s, jQuery.extend(true, {}, jQuery.ajaxSettings, s));
+
+		var jsonp, jsre = /=\?(&|$)/g, status, data,
+			type = s.type.toUpperCase();
+
+		// convert data if not already a string
+		if ( s.data && s.processData && typeof s.data !== "string" )
+			s.data = jQuery.param(s.data);
+
+		// Handle JSONP Parameter Callbacks
+		if ( s.dataType == "jsonp" ) {
+			if ( type == "GET" ) {
+				if ( !s.url.match(jsre) )
+					s.url += (s.url.match(/\?/) ? "&" : "?") + (s.jsonp || "callback") + "=?";
+			} else if ( !s.data || !s.data.match(jsre) )
+				s.data = (s.data ? s.data + "&" : "") + (s.jsonp || "callback") + "=?";
+			s.dataType = "json";
+		}
+
+		// Build temporary JSONP function
+		if ( s.dataType == "json" && (s.data && s.data.match(jsre) || s.url.match(jsre)) ) {
+			jsonp = "jsonp" + jsc++;
+
+			// Replace the =? sequence both in the query string and the data
+			if ( s.data )
+				s.data = (s.data + "").replace(jsre, "=" + jsonp + "$1");
+			s.url = s.url.replace(jsre, "=" + jsonp + "$1");
+
+			// We need to make sure
+			// that a JSONP style response is executed properly
+			s.dataType = "script";
+
+			// Handle JSONP-style loading
+			window[ jsonp ] = function(tmp){
+				data = tmp;
+				success();
+				complete();
+				// Garbage collect
+				window[ jsonp ] = undefined;
+				try{ delete window[ jsonp ]; } catch(e){}
+				if ( head )
+					head.removeChild( script );
+			};
+		}
+
+		if ( s.dataType == "script" && s.cache == null )
+			s.cache = false;
+
+		if ( s.cache === false && type == "GET" ) {
+			var ts = now();
+			// try replacing _= if it is there
+			var ret = s.url.replace(/(\?|&)_=.*?(&|$)/, "$1_=" + ts + "$2");
+			// if nothing was replaced, add timestamp to the end
+			s.url = ret + ((ret == s.url) ? (s.url.match(/\?/) ? "&" : "?") + "_=" + ts : "");
+		}
+
+		// If data is available, append data to url for get requests
+		if ( s.data && type == "GET" ) {
+			s.url += (s.url.match(/\?/) ? "&" : "?") + s.data;
+
+			// IE likes to send both get and post data, prevent this
+			s.data = null;
+		}
+
+		// Watch for a new set of requests
+		if ( s.global && ! jQuery.active++ )
+			jQuery.event.trigger( "ajaxStart" );
+
+		// Matches an absolute URL, and saves the domain
+		var parts = /^(\w+:)?\/\/([^\/?#]+)/.exec( s.url );
+
+		// If we're requesting a remote document
+		// and trying to load JSON or Script with a GET
+		if ( s.dataType == "script" && type == "GET" && parts
+			&& ( parts[1] && parts[1] != location.protocol || parts[2] != location.host )){
+
+			var head = document.getElementsByTagName("head")[0];
+			var script = document.createElement("script");
+			script.src = s.url;
+			if (s.scriptCharset)
+				script.charset = s.scriptCharset;
+
+			// Handle Script loading
+			if ( !jsonp ) {
+				var done = false;
+
+				// Attach handlers for all browsers
+				script.onload = script.onreadystatechange = function(){
+					if ( !done && (!this.readyState ||
+							this.readyState == "loaded" || this.readyState == "complete") ) {
+						done = true;
+						success();
+						complete();
+						head.removeChild( script );
+					}
+				};
+			}
+
+			head.appendChild(script);
+
+			// We handle everything using the script element injection
+			return undefined;
+		}
+
+		var requestDone = false;
+
+		// Create the request object
+		var xhr = s.xhr();
+
+		// Open the socket
+		// Passing null username, generates a login popup on Opera (#2865)
+		if( s.username )
+			xhr.open(type, s.url, s.async, s.username, s.password);
+		else
+			xhr.open(type, s.url, s.async);
+
+		// Need an extra try/catch for cross domain requests in Firefox 3
+		try {
+			// Set the correct header, if data is being sent
+			if ( s.data )
+				xhr.setRequestHeader("Content-Type", s.contentType);
+
+			// Set the If-Modified-Since header, if ifModified mode.
+			if ( s.ifModified )
+				xhr.setRequestHeader("If-Modified-Since",
+					jQuery.lastModified[s.url] || "Thu, 01 Jan 1970 00:00:00 GMT" );
+
+			// Set header so the called script knows that it's an XMLHttpRequest
+			xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
+
+			// Set the Accepts header for the server, depending on the dataType
+			xhr.setRequestHeader("Accept", s.dataType && s.accepts[ s.dataType ] ?
+				s.accepts[ s.dataType ] + ", */*" :
+				s.accepts._default );
+		} catch(e){}
+
+		// Allow custom headers/mimetypes and early abort
+		if ( s.beforeSend && s.beforeSend(xhr, s) === false ) {
+			// Handle the global AJAX counter
+			if ( s.global && ! --jQuery.active )
+				jQuery.event.trigger( "ajaxStop" );
+			// close opended socket
+			xhr.abort();
+			return false;
+		}
+
+		if ( s.global )
+			jQuery.event.trigger("ajaxSend", [xhr, s]);
+
+		// Wait for a response to come back
+		var onreadystatechange = function(isTimeout){
+			// The request was aborted, clear the interval and decrement jQuery.active
+			if (xhr.readyState == 0) {
+				if (ival) {
+					// clear poll interval
+					clearInterval(ival);
+					ival = null;
+					// Handle the global AJAX counter
+					if ( s.global && ! --jQuery.active )
+						jQuery.event.trigger( "ajaxStop" );
+				}
+			// The transfer is complete and the data is available, or the request timed out
+			} else if ( !requestDone && xhr && (xhr.readyState == 4 || isTimeout == "timeout") ) {
+				requestDone = true;
+
+				// clear poll interval
+				if (ival) {
+					clearInterval(ival);
+					ival = null;
+				}
+
+				status = isTimeout == "timeout" ? "timeout" :
+					!jQuery.httpSuccess( xhr ) ? "error" :
+					s.ifModified && jQuery.httpNotModified( xhr, s.url ) ? "notmodified" :
+					"success";
+
+				if ( status == "success" ) {
+					// Watch for, and catch, XML document parse errors
+					try {
+						// process the data (runs the xml through httpData regardless of callback)
+						data = jQuery.httpData( xhr, s.dataType, s );
+					} catch(e) {
+						status = "parsererror";
+					}
+				}
+
+				// Make sure that the request was successful or notmodified
+				if ( status == "success" ) {
+					// Cache Last-Modified header, if ifModified mode.
+					var modRes;
+					try {
+						modRes = xhr.getResponseHeader("Last-Modified");
+					} catch(e) {} // swallow exception thrown by FF if header is not available
+
+					if ( s.ifModified && modRes )
+						jQuery.lastModified[s.url] = modRes;
+
+					// JSONP handles its own success callback
+					if ( !jsonp )
+						success();
+				} else
+					jQuery.handleError(s, xhr, status);
+
+				// Fire the complete handlers
+				complete();
+
+				if ( isTimeout )
+					xhr.abort();
+
+				// Stop memory leaks
+				if ( s.async )
+					xhr = null;
+			}
+		};
+
+		if ( s.async ) {
+			// don't attach the handler to the request, just poll it instead
+			var ival = setInterval(onreadystatechange, 13);
+
+			// Timeout checker
+			if ( s.timeout > 0 )
+				setTimeout(function(){
+					// Check to see if the request is still happening
+					if ( xhr && !requestDone )
+						onreadystatechange( "timeout" );
+				}, s.timeout);
+		}
+
+		// Send the data
+		try {
+			xhr.send(s.data);
+		} catch(e) {
+			jQuery.handleError(s, xhr, null, e);
+		}
+
+		// firefox 1.5 doesn't fire statechange for sync requests
+		if ( !s.async )
+			onreadystatechange();
+
+		function success(){
+			// If a local callback was specified, fire it and pass it the data
+			if ( s.success )
+				s.success( data, status );
+
+			// Fire the global callback
+			if ( s.global )
+				jQuery.event.trigger( "ajaxSuccess", [xhr, s] );
+		}
+
+		function complete(){
+			// Process result
+			if ( s.complete )
+				s.complete(xhr, status);
+
+			// The request was completed
+			if ( s.global )
+				jQuery.event.trigger( "ajaxComplete", [xhr, s] );
+
+			// Handle the global AJAX counter
+			if ( s.global && ! --jQuery.active )
+				jQuery.event.trigger( "ajaxStop" );
+		}
+
+		// return XMLHttpRequest to allow aborting the request etc.
+		return xhr;
+	},
+
+	handleError: function( s, xhr, status, e ) {
+		// If a local callback was specified, fire it
+		if ( s.error ) s.error( xhr, status, e );
+
+		// Fire the global callback
+		if ( s.global )
+			jQuery.event.trigger( "ajaxError", [xhr, s, e] );
+	},
+
+	// Counter for holding the number of active queries
+	active: 0,
+
+	// Determines if an XMLHttpRequest was successful or not
+	httpSuccess: function( xhr ) {
+		try {
+			// IE error sometimes returns 1223 when it should be 204 so treat it as success, see #1450
+			return !xhr.status && location.protocol == "file:" ||
+				( xhr.status >= 200 && xhr.status < 300 ) || xhr.status == 304 || xhr.status == 1223;
+		} catch(e){}
+		return false;
+	},
+
+	// Determines if an XMLHttpRequest returns NotModified
+	httpNotModified: function( xhr, url ) {
+		try {
+			var xhrRes = xhr.getResponseHeader("Last-Modified");
+
+			// Firefox always returns 200. check Last-Modified date
+			return xhr.status == 304 || xhrRes == jQuery.lastModified[url];
+		} catch(e){}
+		return false;
+	},
+
+	httpData: function( xhr, type, s ) {
+		var ct = xhr.getResponseHeader("content-type"),
+			xml = type == "xml" || !type && ct && ct.indexOf("xml") >= 0,
+			data = xml ? xhr.responseXML : xhr.responseText;
+
+		if ( xml && data.documentElement.tagName == "parsererror" )
+			throw "parsererror";
+			
+		// Allow a pre-filtering function to sanitize the response
+		// s != null is checked to keep backwards compatibility
+		if( s && s.dataFilter )
+			data = s.dataFilter( data, type );
+
+		// The filter can actually parse the response
+		if( typeof data === "string" ){
+
+			// If the type is "script", eval it in global context
+			if ( type == "script" )
+				jQuery.globalEval( data );
+
+			// Get the JavaScript object, if JSON is used.
+			if ( type == "json" )
+				data = window["eval"]("(" + data + ")");
+		}
+		
+		return data;
+	},
+
+	// Serialize an array of form elements or a set of
+	// key/values into a query string
+	param: function( a ) {
+		var s = [ ];
+
+		function add( key, value ){
+			s[ s.length ] = encodeURIComponent(key) + '=' + encodeURIComponent(value);
+		};
+
+		// If an array was passed in, assume that it is an array
+		// of form elements
+		if ( jQuery.isArray(a) || a.jquery )
+			// Serialize the form elements
+			jQuery.each( a, function(){
+				add( this.name, this.value );
+			});
+
+		// Otherwise, assume that it's an object of key/value pairs
+		else
+			// Serialize the key/values
+			for ( var j in a )
+				// If the value is an array then the key names need to be repeated
+				if ( jQuery.isArray(a[j]) )
+					jQuery.each( a[j], function(){
+						add( j, this );
+					});
+				else
+					add( j, jQuery.isFunction(a[j]) ? a[j]() : a[j] );
+
+		// Return the resulting serialization
+		return s.join("&").replace(/%20/g, "+");
+	}
+
+});
+var elemdisplay = {},
+	timerId,
+	fxAttrs = [
+		// height animations
+		[ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],
+		// width animations
+		[ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
+		// opacity animations
+		[ "opacity" ]
+	];
+
+function genFx( type, num ){
+	var obj = {};
+	jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice(0,num)), function(){
+		obj[ this ] = type;
+	});
+	return obj;
+}
+
+jQuery.fn.extend({
+	show: function(speed,callback){
+		if ( speed ) {
+			return this.animate( genFx("show", 3), speed, callback);
+		} else {
+			for ( var i = 0, l = this.length; i < l; i++ ){
+				var old = jQuery.data(this[i], "olddisplay");
+				
+				this[i].style.display = old || "";
+				
+				if ( jQuery.css(this[i], "display") === "none" ) {
+					var tagName = this[i].tagName, display;
+					
+					if ( elemdisplay[ tagName ] ) {
+						display = elemdisplay[ tagName ];
+					} else {
+						var elem = jQuery("<" + tagName + " />").appendTo("body");
+						
+						display = elem.css("display");
+						if ( display === "none" )
+							display = "block";
+						
+						elem.remove();
+						
+						elemdisplay[ tagName ] = display;
+					}
+					
+					this[i].style.display = jQuery.data(this[i], "olddisplay", display);
+				}
+			}
+			
+			return this;
+		}
+	},
+
+	hide: function(speed,callback){
+		if ( speed ) {
+			return this.animate( genFx("hide", 3), speed, callback);
+		} else {
+			for ( var i = 0, l = this.length; i < l; i++ ){
+				var old = jQuery.data(this[i], "olddisplay");
+				if ( !old && old !== "none" )
+					jQuery.data(this[i], "olddisplay", jQuery.css(this[i], "display"));
+				this[i].style.display = "none";
+			}
+			return this;
+		}
+	},
+
+	// Save the old toggle function
+	_toggle: jQuery.fn.toggle,
+
+	toggle: function( fn, fn2 ){
+		var bool = typeof fn === "boolean";
+
+		return jQuery.isFunction(fn) && jQuery.isFunction(fn2) ?
+			this._toggle.apply( this, arguments ) :
+			fn == null || bool ?
+				this.each(function(){
+					var state = bool ? fn : jQuery(this).is(":hidden");
+					jQuery(this)[ state ? "show" : "hide" ]();
+				}) :
+				this.animate(genFx("toggle", 3), fn, fn2);
+	},
+
+	fadeTo: function(speed,to,callback){
+		return this.animate({opacity: to}, speed, callback);
+	},
+
+	animate: function( prop, speed, easing, callback ) {
+		var optall = jQuery.speed(speed, easing, callback);
+
+		return this[ optall.queue === false ? "each" : "queue" ](function(){
+		
+			var opt = jQuery.extend({}, optall), p,
+				hidden = this.nodeType == 1 && jQuery(this).is(":hidden"),
+				self = this;
+	
+			for ( p in prop ) {
+				if ( prop[p] == "hide" && hidden || prop[p] == "show" && !hidden )
+					return opt.complete.call(this);
+
+				if ( ( p == "height" || p == "width" ) && this.style ) {
+					// Store display property
+					opt.display = jQuery.css(this, "display");
+
+					// Make sure that nothing sneaks out
+					opt.overflow = this.style.overflow;
+				}
+			}
+
+			if ( opt.overflow != null )
+				this.style.overflow = "hidden";
+
+			opt.curAnim = jQuery.extend({}, prop);
+
+			jQuery.each( prop, function(name, val){
+				var e = new jQuery.fx( self, opt, name );
+
+				if ( /toggle|show|hide/.test(val) )
+					e[ val == "toggle" ? hidden ? "show" : "hide" : val ]( prop );
+				else {
+					var parts = val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),
+						start = e.cur(true) || 0;
+
+					if ( parts ) {
+						var end = parseFloat(parts[2]),
+							unit = parts[3] || "px";
+
+						// We need to compute starting value
+						if ( unit != "px" ) {
+							self.style[ name ] = (end || 1) + unit;
+							start = ((end || 1) / e.cur(true)) * start;
+							self.style[ name ] = start + unit;
+						}
+
+						// If a +=/-= token was provided, we're doing a relative animation
+						if ( parts[1] )
+							end = ((parts[1] == "-=" ? -1 : 1) * end) + start;
+
+						e.custom( start, end, unit );
+					} else
+						e.custom( start, val, "" );
+				}
+			});
+
+			// For JS strict compliance
+			return true;
+		});
+	},
+
+	stop: function(clearQueue, gotoEnd){
+		var timers = jQuery.timers;
+
+		if (clearQueue)
+			this.queue([]);
+
+		this.each(function(){
+			// go in reverse order so anything added to the queue during the loop is ignored
+			for ( var i = timers.length - 1; i >= 0; i-- )
+				if ( timers[i].elem == this ) {
+					if (gotoEnd)
+						// force the next step to be the last
+						timers[i](true);
+					timers.splice(i, 1);
+				}
+		});
+
+		// start the next in the queue if the last step wasn't forced
+		if (!gotoEnd)
+			this.dequeue();
+
+		return this;
+	}
+
+});
+
+// Generate shortcuts for custom animations
+jQuery.each({
+	slideDown: genFx("show", 1),
+	slideUp: genFx("hide", 1),
+	slideToggle: genFx("toggle", 1),
+	fadeIn: { opacity: "show" },
+	fadeOut: { opacity: "hide" }
+}, function( name, props ){
+	jQuery.fn[ name ] = function( speed, callback ){
+		return this.animate( props, speed, callback );
+	};
+});
+
+jQuery.extend({
+
+	speed: function(speed, easing, fn) {
+		var opt = typeof speed === "object" ? speed : {
+			complete: fn || !fn && easing ||
+				jQuery.isFunction( speed ) && speed,
+			duration: speed,
+			easing: fn && easing || easing && !jQuery.isFunction(easing) && easing
+		};
+
+		opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
+			jQuery.fx.speeds[opt.duration] || jQuery.fx.speeds._default;
+
+		// Queueing
+		opt.old = opt.complete;
+		opt.complete = function(){
+			if ( opt.queue !== false )
+				jQuery(this).dequeue();
+			if ( jQuery.isFunction( opt.old ) )
+				opt.old.call( this );
+		};
+
+		return opt;
+	},
+
+	easing: {
+		linear: function( p, n, firstNum, diff ) {
+			return firstNum + diff * p;
+		},
+		swing: function( p, n, firstNum, diff ) {
+			return ((-Math.cos(p*Math.PI)/2) + 0.5) * diff + firstNum;
+		}
+	},
+
+	timers: [],
+
+	fx: function( elem, options, prop ){
+		this.options = options;
+		this.elem = elem;
+		this.prop = prop;
+
+		if ( !options.orig )
+			options.orig = {};
+	}
+
+});
+
+jQuery.fx.prototype = {
+
+	// Simple function for setting a style value
+	update: function(){
+		if ( this.options.step )
+			this.options.step.call( this.elem, this.now, this );
+
+		(jQuery.fx.step[this.prop] || jQuery.fx.step._default)( this );
+
+		// Set display property to block for height/width animations
+		if ( ( this.prop == "height" || this.prop == "width" ) && this.elem.style )
+			this.elem.style.display = "block";
+	},
+
+	// Get the current size
+	cur: function(force){
+		if ( this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null) )
+			return this.elem[ this.prop ];
+
+		var r = parseFloat(jQuery.css(this.elem, this.prop, force));
+		return r && r > -10000 ? r : parseFloat(jQuery.curCSS(this.elem, this.prop)) || 0;
+	},
+
+	// Start an animation from one number to another
+	custom: function(from, to, unit){
+		this.startTime = now();
+		this.start = from;
+		this.end = to;
+		this.unit = unit || this.unit || "px";
+		this.now = this.start;
+		this.pos = this.state = 0;
+
+		var self = this;
+		function t(gotoEnd){
+			return self.step(gotoEnd);
+		}
+
+		t.elem = this.elem;
+
+		if ( t() && jQuery.timers.push(t) == 1 ) {
+			timerId = setInterval(function(){
+				var timers = jQuery.timers;
+
+				for ( var i = 0; i < timers.length; i++ )
+					if ( !timers[i]() )
+						timers.splice(i--, 1);
+
+				if ( !timers.length ) {
+					clearInterval( timerId );
+				}
+			}, 13);
+		}
+	},
+
+	// Simple 'show' function
+	show: function(){
+		// Remember where we started, so that we can go back to it later
+		this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
+		this.options.show = true;
+
+		// Begin the animation
+		// Make sure that we start at a small width/height to avoid any
+		// flash of content
+		this.custom(this.prop == "width" || this.prop == "height" ? 1 : 0, this.cur());
+
+		// Start by showing the element
+		jQuery(this.elem).show();
+	},
+
+	// Simple 'hide' function
+	hide: function(){
+		// Remember where we started, so that we can go back to it later
+		this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
+		this.options.hide = true;
+
+		// Begin the animation
+		this.custom(this.cur(), 0);
+	},
+
+	// Each step of an animation
+	step: function(gotoEnd){
+		var t = now();
+
+		if ( gotoEnd || t >= this.options.duration + this.startTime ) {
+			this.now = this.end;
+			this.pos = this.state = 1;
+			this.update();
+
+			this.options.curAnim[ this.prop ] = true;
+
+			var done = true;
+			for ( var i in this.options.curAnim )
+				if ( this.options.curAnim[i] !== true )
+					done = false;
+
+			if ( done ) {
+				if ( this.options.display != null ) {
+					// Reset the overflow
+					this.elem.style.overflow = this.options.overflow;
+
+					// Reset the display
+					this.elem.style.display = this.options.display;
+					if ( jQuery.css(this.elem, "display") == "none" )
+						this.elem.style.display = "block";
+				}
+
+				// Hide the element if the "hide" operation was done
+				if ( this.options.hide )
+					jQuery(this.elem).hide();
+
+				// Reset the properties, if the item has been hidden or shown
+				if ( this.options.hide || this.options.show )
+					for ( var p in this.options.curAnim )
+						jQuery.attr(this.elem.style, p, this.options.orig[p]);
+					
+				// Execute the complete function
+				this.options.complete.call( this.elem );
+			}
+
+			return false;
+		} else {
+			var n = t - this.startTime;
+			this.state = n / this.options.duration;
+
+			// Perform the easing function, defaults to swing
+			this.pos = jQuery.easing[this.options.easing || (jQuery.easing.swing ? "swing" : "linear")](this.state, n, 0, 1, this.options.duration);
+			this.now = this.start + ((this.end - this.start) * this.pos);
+
+			// Perform the next step of the animation
+			this.update();
+		}
+
+		return true;
+	}
+
+};
+
+jQuery.extend( jQuery.fx, {
+	speeds:{
+		slow: 600,
+ 		fast: 200,
+ 		// Default speed
+ 		_default: 400
+	},
+	step: {
+
+		opacity: function(fx){
+			jQuery.attr(fx.elem.style, "opacity", fx.now);
+		},
+
+		_default: function(fx){
+			if ( fx.elem.style && fx.elem.style[ fx.prop ] != null )
+				fx.elem.style[ fx.prop ] = fx.now + fx.unit;
+			else
+				fx.elem[ fx.prop ] = fx.now;
+		}
+	}
+});
+if ( document.documentElement["getBoundingClientRect"] )
+	jQuery.fn.offset = function() {
+		if ( !this[0] ) return { top: 0, left: 0 };
+		if ( this[0] === this[0].ownerDocument.body ) return jQuery.offset.bodyOffset( this[0] );
+		var box  = this[0].getBoundingClientRect(), doc = this[0].ownerDocument, body = doc.body, docElem = doc.documentElement,
+			clientTop = docElem.clientTop || body.clientTop || 0, clientLeft = docElem.clientLeft || body.clientLeft || 0,
+			top  = box.top  + (self.pageYOffset || jQuery.boxModel && docElem.scrollTop  || body.scrollTop ) - clientTop,
+			left = box.left + (self.pageXOffset || jQuery.boxModel && docElem.scrollLeft || body.scrollLeft) - clientLeft;
+		return { top: top, left: left };
+	};
+else 
+	jQuery.fn.offset = function() {
+		if ( !this[0] ) return { top: 0, left: 0 };
+		if ( this[0] === this[0].ownerDocument.body ) return jQuery.offset.bodyOffset( this[0] );
+		jQuery.offset.initialized || jQuery.offset.initialize();
+
+		var elem = this[0], offsetParent = elem.offsetParent, prevOffsetParent = elem,
+			doc = elem.ownerDocument, computedStyle, docElem = doc.documentElement,
+			body = doc.body, defaultView = doc.defaultView,
+			prevComputedStyle = defaultView.getComputedStyle(elem, null),
+			top = elem.offsetTop, left = elem.offsetLeft;
+
+		while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
+			computedStyle = defaultView.getComputedStyle(elem, null);
+			top -= elem.scrollTop, left -= elem.scrollLeft;
+			if ( elem === offsetParent ) {
+				top += elem.offsetTop, left += elem.offsetLeft;
+				if ( jQuery.offset.doesNotAddBorder && !(jQuery.offset.doesAddBorderForTableAndCells && /^t(able|d|h)$/i.test(elem.tagName)) )
+					top  += parseInt( computedStyle.borderTopWidth,  10) || 0,
+					left += parseInt( computedStyle.borderLeftWidth, 10) || 0;
+				prevOffsetParent = offsetParent, offsetParent = elem.offsetParent;
+			}
+			if ( jQuery.offset.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" )
+				top  += parseInt( computedStyle.borderTopWidth,  10) || 0,
+				left += parseInt( computedStyle.borderLeftWidth, 10) || 0;
+			prevComputedStyle = computedStyle;
+		}
+
+		if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" )
+			top  += body.offsetTop,
+			left += body.offsetLeft;
+
+		if ( prevComputedStyle.position === "fixed" )
+			top  += Math.max(docElem.scrollTop, body.scrollTop),
+			left += Math.max(docElem.scrollLeft, body.scrollLeft);
+
+		return { top: top, left: left };
+	};
+
+jQuery.offset = {
+	initialize: function() {
+		if ( this.initialized ) return;
+		var body = document.body, container = document.createElement('div'), innerDiv, checkDiv, table, td, rules, prop, bodyMarginTop = body.style.marginTop,
+			html = '<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>';
+
+		rules = { position: 'absolute', top: 0, left: 0, margin: 0, border: 0, width: '1px', height: '1px', visibility: 'hidden' };
+		for ( prop in rules ) container.style[prop] = rules[prop];
+
+		container.innerHTML = html;
+		body.insertBefore(container, body.firstChild);
+		innerDiv = container.firstChild, checkDiv = innerDiv.firstChild, td = innerDiv.nextSibling.firstChild.firstChild;
+
+		this.doesNotAddBorder = (checkDiv.offsetTop !== 5);
+		this.doesAddBorderForTableAndCells = (td.offsetTop === 5);
+
+		innerDiv.style.overflow = 'hidden', innerDiv.style.position = 'relative';
+		this.subtractsBorderForOverflowNotVisible = (checkDiv.offsetTop === -5);
+
+		body.style.marginTop = '1px';
+		this.doesNotIncludeMarginInBodyOffset = (body.offsetTop === 0);
+		body.style.marginTop = bodyMarginTop;
+
+		body.removeChild(container);
+		this.initialized = true;
+	},
+
+	bodyOffset: function(body) {
+		jQuery.offset.initialized || jQuery.offset.initialize();
+		var top = body.offsetTop, left = body.offsetLeft;
+		if ( jQuery.offset.doesNotIncludeMarginInBodyOffset )
+			top  += parseInt( jQuery.curCSS(body, 'marginTop',  true), 10 ) || 0,
+			left += parseInt( jQuery.curCSS(body, 'marginLeft', true), 10 ) || 0;
+		return { top: top, left: left };
+	}
+};
+
+
+jQuery.fn.extend({
+	position: function() {
+		var left = 0, top = 0, results;
+
+		if ( this[0] ) {
+			// Get *real* offsetParent
+			var offsetParent = this.offsetParent(),
+
+			// Get correct offsets
+			offset       = this.offset(),
+			parentOffset = /^body|html$/i.test(offsetParent[0].tagName) ? { top: 0, left: 0 } : offsetParent.offset();
+
+			// Subtract element margins
+			// note: when an element has margin: auto the offsetLeft and marginLeft 
+			// are the same in Safari causing offset.left to incorrectly be 0
+			offset.top  -= num( this, 'marginTop'  );
+			offset.left -= num( this, 'marginLeft' );
+
+			// Add offsetParent borders
+			parentOffset.top  += num( offsetParent, 'borderTopWidth'  );
+			parentOffset.left += num( offsetParent, 'borderLeftWidth' );
+
+			// Subtract the two offsets
+			results = {
+				top:  offset.top  - parentOffset.top,
+				left: offset.left - parentOffset.left
+			};
+		}
+
+		return results;
+	},
+
+	offsetParent: function() {
+		var offsetParent = this[0].offsetParent || document.body;
+		while ( offsetParent && (!/^body|html$/i.test(offsetParent.tagName) && jQuery.css(offsetParent, 'position') == 'static') )
+			offsetParent = offsetParent.offsetParent;
+		return jQuery(offsetParent);
+	}
+});
+
+
+// Create scrollLeft and scrollTop methods
+jQuery.each( ['Left', 'Top'], function(i, name) {
+	var method = 'scroll' + name;
+	
+	jQuery.fn[ method ] = function(val) {
+		if (!this[0]) return null;
+
+		return val !== undefined ?
+
+			// Set the scroll offset
+			this.each(function() {
+				this == window || this == document ?
+					window.scrollTo(
+						!i ? val : jQuery(window).scrollLeft(),
+						 i ? val : jQuery(window).scrollTop()
+					) :
+					this[ method ] = val;
+			}) :
+
+			// Return the scroll offset
+			this[0] == window || this[0] == document ?
+				self[ i ? 'pageYOffset' : 'pageXOffset' ] ||
+					jQuery.boxModel && document.documentElement[ method ] ||
+					document.body[ method ] :
+				this[0][ method ];
+	};
+});
+// Create innerHeight, innerWidth, outerHeight and outerWidth methods
+jQuery.each([ "Height", "Width" ], function(i, name){
+
+	var tl = i ? "Left"  : "Top",  // top or left
+		br = i ? "Right" : "Bottom"; // bottom or right
+
+	// innerHeight and innerWidth
+	jQuery.fn["inner" + name] = function(){
+		return this[ name.toLowerCase() ]() +
+			num(this, "padding" + tl) +
+			num(this, "padding" + br);
+	};
+
+	// outerHeight and outerWidth
+	jQuery.fn["outer" + name] = function(margin) {
+		return this["inner" + name]() +
+			num(this, "border" + tl + "Width") +
+			num(this, "border" + br + "Width") +
+			(margin ?
+				num(this, "margin" + tl) + num(this, "margin" + br) : 0);
+	};
+	
+	var type = name.toLowerCase();
+
+	jQuery.fn[ type ] = function( size ) {
+		// Get window width or height
+		return this[0] == window ?
+			// Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
+			document.compatMode == "CSS1Compat" && document.documentElement[ "client" + name ] ||
+			document.body[ "client" + name ] :
+
+			// Get document width or height
+			this[0] == document ?
+				// Either scroll[Width/Height] or offset[Width/Height], whichever is greater
+				Math.max(
+					document.documentElement["client" + name],
+					document.body["scroll" + name], document.documentElement["scroll" + name],
+					document.body["offset" + name], document.documentElement["offset" + name]
+				) :
+
+				// Get or set width or height on the element
+				size === undefined ?
+					// Get width or height on the element
+					(this.length ? jQuery.css( this[0], type ) : null) :
+
+					// Set the width or height on the element (default to pixels if value is unitless)
+					this.css( type, typeof size === "string" ? size : size + "px" );
+	};
+
+});})();
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/js/ova-examples.js
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/js/ova-examples.js	(revision 347)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/js/ova-examples.js	(revision 347)
@@ -0,0 +1,77 @@
+// Environment configuration - change this section to configure appropriately
+
+var OVA_DIST_A_SWF_2 = "../../../dist/swf/";
+var OVA_DIST_A_SWF_3 = "../../../../dist/swf/";
+var OVA_DIST_B_SWF_2 = "../../../dist/swf/";
+var OVA_DIST_B_SWF_3 = "../../../../dist/swf/";
+var OVA_DIST_TEMPLATES_2 = "../../../dist/templates/";
+var OVA_DIST_TEMPLATES_3 = "../../../../dist/templates/";
+var OVA_DIST_IMAGES_2 = "../../../dist/images/";
+var OVA_DIST_IMAGES_3 = "../../../../dist/images/";
+var OVA_CONFIG_DOCROOT_2 = "../../config/";
+var OVA_CONFIG_DOCROOT_3 = "../../../config/";
+
+// Don't change from here down
+
+var OVA_PLUGIN_2 = OVA_DIST_A_SWF_2 + 'ova.swf';
+var OVA_PLUGIN_3 = OVA_DIST_A_SWF_3 + 'ova.swf';
+var OVA_PLAYER_2 = OVA_DIST_B_SWF_2 + '4.7.swf';
+var OVA_PLAYER_3 = OVA_DIST_B_SWF_3 + '4.7.swf'
+var BOTR_PLAYER = 'http://content.bitsontherun.com/staticfiles/videoplayer.swf';
+
+// Example specific functions
+
+function writePlayerEmbedCode(configFile, level, width, height, extraFlashVars, extraPlugins) {
+  	if(extraPlugins == null) extraPlugins = "";
+	var result =  '';
+    result += '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
+    result += ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0"';
+    result += ' WIDTH="' + width + '" HEIGHT="' + height + '" id="player">\n';
+    result += ' <PARAM NAME=movie VALUE="' + ((level == 2) ? OVA_PLAYER_2 : OVA_PLAYER_3) + '">\n';
+    result += ' <PARAM NAME=quality VALUE=high>\n';
+    result += ' <PARAM NAME=bgcolor VALUE=#000000>\n';
+    result += ' <PARAM NAME=allowfullscreen VALUE="true">\n';
+    result += ' <PARAM NAME=allowscriptaccess VALUE="always">\n';
+    if(level == 2) {
+    	result += ' <PARAM NAME=flashvars VALUE="plugins=' + OVA_PLUGIN_2 + extraPlugins + '&config=' + OVA_CONFIG_DOCROOT_2 + configFile + '">\n';
+    }
+    else {
+    	result += ' <PARAM NAME=flashvars VALUE="plugins=' + OVA_PLUGIN_3 + extraPlugins + '&config=' + OVA_CONFIG_DOCROOT_3 + configFile + '">\n';
+    }
+	result += '<EMBED\n';
+  	result += ' id="player"\n';
+  	if(level == 2) {
+	  	result += ' data="' + OVA_PLAYER_2 + '"\n';
+  		result += ' src="' + OVA_PLAYER_2 + '"\n';
+	}
+	else {
+	  	result += ' data="' + OVA_PLAYER_3 + '"\n';
+  		result += ' src="' + OVA_PLAYER_3 + '"\n';
+	}
+	result += ' width="' + width + '"\n';
+	result += ' height="' + height + '"\n';
+  	result += ' allowscriptaccess="always"\n';
+  	result += ' allowfullscreen="true"\n';
+  	if(level == 2) {
+  		result += ' flashvars="plugins=' + OVA_PLUGIN_2 + extraPlugins + '&config=' + OVA_CONFIG_DOCROOT_2 + configFile;
+  	}
+  	else {
+ 		result += ' flashvars="plugins=' + OVA_PLUGIN_3 + extraPlugins + '&config=' + OVA_CONFIG_DOCROOT_3 + configFile;
+  	}
+  	if(extraFlashVars != null) {
+  	    result += extraFlashVars;
+  	}
+  	result += '"\n>\n</EMBED>\n</OBJECT>\n';
+  	return result;
+}
+
+function htmlEncode(rawString) {
+	var result = rawString;
+
+	// less-thans (<)
+	result = result.replace(/\</g,'&lt;');
+	// greater-thans (>)
+	result = result.replace(/\>/g,'&gt;');
+
+	return result;
+}
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/wrapper/vast2-wrapper-no-template.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/wrapper/vast2-wrapper-no-template.xml	(revision 347)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/wrapper/vast2-wrapper-no-template.xml	(revision 347)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VAST version="2.0">
+  <Ad id="Adify">
+    <Wrapper>
+      <AdSystem>Doubleclick</AdSystem>
+      <VASTAdTagURI><![CDATA[http://ad.afy11.net/ad?enc=4&asId=1000003600607&sf=0&ct=256]]></VASTAdTagURI>
+      <Impression>http://ad.afy11.net/ad?ipc=6kgOCu0g9ESQC9Ios39zHx77MclX8VzWREZhgThqkEkLJuCZgQ7r8F++M3lI2uThr9ufi9TQ2eMUAa1orbxQAPKVK0+ez5fsbYU6uY2Taho=</Impression>
+    </Wrapper>
+  </Ad>
+</VAST>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/wrapper/vast2-wrapper-simple.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/wrapper/vast2-wrapper-simple.xml	(revision 347)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/wrapper/vast2-wrapper-simple.xml	(revision 347)
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VAST version="2.0">
+  <Ad id="602833">
+  <Wrapper>
+    <AdSystem>Open Video Ads Templates</AdSystem>
+    <VASTAdTagURI>http://static.openvideoads.org/tests/vast2-wrapper-simple-level1.xml</VASTAdTagURI>
+    <Impression>http://wrapper-myTrackingURL/impression1</Impression>
+	<Creatives>
+		<Creative AdID="602833">
+			<Linear>
+				<TrackingEvents>
+					<Tracking event="creativeView">http://wrapper-myTrackingURL/creativeView</Tracking>
+					<Tracking event="start">http://wrapper-myTrackingURL/start</Tracking>
+					<Tracking event="midpoint">http://wrapper-myTrackingURL/midpoint</Tracking>
+					<Tracking event="firstQuartile">http://wrapper-myTrackingURL/firstQuartile</Tracking>
+					<Tracking event="thirdQuartile">http://wrapper-myTrackingURL/thirdQuartile</Tracking>
+					<Tracking event="complete">http://wrapper-myTrackingURL/complete</Tracking>
+				</TrackingEvents>
+			</Linear>
+		</Creative>
+		<Creative AdID="602833-Companion">
+			<CompanionAds>
+				<Companion width="300" height="250">
+					<StaticResource creativeType="image/jpeg">http://demo.tremormedia.com/proddev/vast/300x250_banner1.jpg</StaticResource>
+					<TrackingEvents>
+						<Tracking event="creativeView">http://wrapper_myTrackingURL/wrapper/firstCompanionCreativeView</Tracking>
+					</TrackingEvents>
+					<CompanionClickThrough>http://www.tremormedia.com</CompanionClickThrough>
+				</Companion>
+				<Companion width="728" height="90">
+					<StaticResource creativeType="image/jpeg">http://demo.tremormedia.com/proddev/vast/728x90_banner1.jpg</StaticResource>
+					<CompanionClickThrough>http://www.tremormedia.com</CompanionClickThrough>
+				</Companion>
+			</CompanionAds>
+		</Creative>
+	</Creatives>
+  </Wrapper>
+  </Ad>
+</VAST>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/wrapper/vast2-wrapper-simple-level1.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/wrapper/vast2-wrapper-simple-level1.xml	(revision 347)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/wrapper/vast2-wrapper-simple-level1.xml	(revision 347)
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VAST version="2.0">
+  <Ad id="602833-level1">
+  <Wrapper>
+    <AdSystem>Acudeo Compatible - Level 2</AdSystem>
+    <VASTAdTagURI>http://static.openvideoads.org/tests/vast2-wrapper-simple-level2.xml</VASTAdTagURI>
+    <Impression>http://wrapper-myTrackingURL-level1/impression1</Impression>
+	<Creatives>
+		<Creative AdID="602833-level1">
+			<Linear>
+				<TrackingEvents>
+					<Tracking event="creativeView">http://wrapper-myTrackingURL-level1/creativeView</Tracking>
+					<Tracking event="start">http://wrapper-myTrackingURL-level1/start</Tracking>
+					<Tracking event="midpoint">http://wrapper-myTrackingURL-level1/midpoint</Tracking>
+					<Tracking event="firstQuartile">http://wrapper-myTrackingURL-level1/firstQuartile</Tracking>
+					<Tracking event="thirdQuartile">http://wrapper-myTrackingURL-level1/thirdQuartile</Tracking>
+					<Tracking event="complete">http://wrapper-myTrackingURL-level1/complete</Tracking>
+				</TrackingEvents>
+			</Linear>
+		</Creative>
+		<Creative AdID="602833-Companion-level1">
+			<CompanionAds>
+				<Companion width="300" height="250">
+					<StaticResource creativeType="image/jpeg">http://demo.tremormedia.com/proddev/vast/300x250_banner1.jpg</StaticResource>
+					<TrackingEvents>
+						<Tracking event="creativeView">http://wrapper_myTrackingURL-level2/wrapper/firstCompanionCreativeView</Tracking>
+					</TrackingEvents>
+					<CompanionClickThrough>http://www.tremormedia.com</CompanionClickThrough>
+				</Companion>
+				<Companion width="728" height="90">
+					<StaticResource creativeType="image/jpeg">http://demo.tremormedia.com/proddev/vast/728x90_banner1.jpg</StaticResource>
+					<CompanionClickThrough>http://www.tremormedia.com</CompanionClickThrough>
+				</Companion>
+			</CompanionAds>
+		</Creative>
+	</Creatives>
+  </Wrapper>
+  </Ad>
+</VAST>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/wrapper/vast2-wrapper-simple-level2.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/wrapper/vast2-wrapper-simple-level2.xml	(revision 347)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/wrapper/vast2-wrapper-simple-level2.xml	(revision 347)
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VAST version="2.0">
+  <Ad id="602833-level2">
+  <Wrapper>
+    <AdSystem>Acudeo Compatible - Level 2</AdSystem>
+    <VASTAdTagURI>http://demo.tremormedia.com/proddev/vast/vast_inline_linear.xml</VASTAdTagURI>
+    <Impression>http://wrapper-myTrackingURL-level2/impression1</Impression>
+	<Creatives>
+		<Creative AdID="602833-level2">
+			<Linear>
+				<TrackingEvents>
+					<Tracking event="creativeView">http://wrapper-myTrackingURL-level2/creativeView</Tracking>
+					<Tracking event="start">http://wrapper-myTrackingURL-level2/start</Tracking>
+					<Tracking event="midpoint">http://wrapper-myTrackingURL-level2/midpoint</Tracking>
+					<Tracking event="firstQuartile">http://wrapper-myTrackingURL-level2/firstQuartile</Tracking>
+					<Tracking event="thirdQuartile">http://wrapper-myTrackingURL-level2/thirdQuartile</Tracking>
+					<Tracking event="complete">http://wrapper-myTrackingURL-level2/complete</Tracking>
+				</TrackingEvents>
+			</Linear>
+		</Creative>
+		<Creative AdID="602833-Companion-level2">
+			<CompanionAds>
+				<Companion width="300" height="250">
+					<StaticResource creativeType="image/jpeg">http://demo.tremormedia.com/proddev/vast/300x250_banner1.jpg</StaticResource>
+					<TrackingEvents>
+						<Tracking event="creativeView">http://wrapper_myTrackingURL-level2/wrapper/firstCompanionCreativeView</Tracking>
+					</TrackingEvents>
+					<CompanionClickThrough>http://www.tremormedia.com</CompanionClickThrough>
+				</Companion>
+				<Companion width="728" height="90">
+					<StaticResource creativeType="image/jpeg">http://demo.tremormedia.com/proddev/vast/728x90_banner1.jpg</StaticResource>
+					<CompanionClickThrough>http://www.tremormedia.com</CompanionClickThrough>
+				</Companion>
+			</CompanionAds>
+		</Creative>
+	</Creatives>
+  </Wrapper>
+  </Ad>
+</VAST>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/wrapper/vast1-wrapper.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/wrapper/vast1-wrapper.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/wrapper/vast1-wrapper.xml	(revision 7)
@@ -0,0 +1,193 @@
+<VideoAdServingTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd">
+      <Ad id="preroll">
+          <Wrapper>
+             <AdSystem>MyAdSystem</AdSystem>
+                <VASTAdTagURL>
+                    <URL><![CDATA[http://adserver.adtech.de/?adrawdata/3.0/990.1/2366662/0/1725/noperf=1;cc=2;header=yes;alias=myalias;cookie=yes;adct=204;key=key1+key2;grp=[group];misc=[TIMESTAMP]]]></URL>
+                </VASTAdTagURL>
+                <Error>
+                   <URL><![CDATA[http://www.primarysite.com/tracker?noPlay=true&impressionTracked=false]]></URL>
+                </Error>
+                <TrackingEvents>
+                    <Tracking event="start">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=start]]></URL>
+                    </Tracking>
+                    <Tracking event="midpoint">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=midpoint]]></URL>
+                    </Tracking>
+                    <Tracking event="firstQuartile">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=firstquartile]]></URL>
+                    </Tracking>
+                    <Tracking event="thirdQuartile">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=thirdquartile]]></URL>
+                    </Tracking>
+                    <Tracking event="complete">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=complete]]></URL>
+                    </Tracking>
+                    <Tracking event="mute">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=mute]]></URL>
+                    </Tracking>
+                    <Tracking event="pause">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=pause]]></URL>
+                    </Tracking>
+                    <Tracking event="replay">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=replay]]></URL>
+                    </Tracking>
+                    <Tracking event="fullscreen">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=fullscreen]]></URL>
+                    </Tracking>
+                    <Tracking event="stop">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=stop]]></URL>
+                    </Tracking>
+                    <Tracking event="unmute">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=unmute]]></URL>
+                    </Tracking>
+                   <Tracking event="resume">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=resume]]></URL>
+                    </Tracking>
+                   <Tracking event="pause">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=pause]]></URL>
+                    </Tracking>
+                </TrackingEvents>
+          </Wrapper>
+      </Ad>
+      <Ad id="overlay">
+          <Wrapper>
+             <AdSystem>MyAdSystem</AdSystem>
+                <VASTAdTagURL>
+                    <URL><![CDATA[http://de.at.atwola.com/?adrawdata/3.0/515.1/2188759/0/1728/noperf=1;cc=2;header=yes;alias=myalias;cookie=yes;adct=204;key=key1+key2;grp=[group];misc=[TIMESTAMP]]]></URL>
+                </VASTAdTagURL>
+                <Error>
+                   <URL><![CDATA[http://www.primarysite.com/tracker?noPlay=true&impressionTracked=false]]></URL>
+                </Error>
+                <TrackingEvents>
+                    <Tracking event="start">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=start]]></URL>
+                    </Tracking>
+                    <Tracking event="midpoint">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=midpoint]]></URL>
+                    </Tracking>
+                    <Tracking event="firstQuartile">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=firstquartile]]></URL>
+                    </Tracking>
+                    <Tracking event="thirdQuartile">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=thirdquartile]]></URL>
+                    </Tracking>
+                    <Tracking event="complete">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=complete]]></URL>
+                    </Tracking>
+                    <Tracking event="mute">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=mute]]></URL>
+                    </Tracking>
+                    <Tracking event="pause">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=pause]]></URL>
+                    </Tracking>
+                    <Tracking event="replay">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=replay]]></URL>
+                    </Tracking>
+                    <Tracking event="fullscreen">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=fullscreen]]></URL>
+                    </Tracking>
+                    <Tracking event="stop">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=stop]]></URL>
+                    </Tracking>
+                    <Tracking event="unmute">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=unmute]]></URL>
+                    </Tracking>
+                   <Tracking event="resume">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=resume]]></URL>
+                    </Tracking>
+                   <Tracking event="pause">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=pause]]></URL>
+                    </Tracking>
+                </TrackingEvents>
+          </Wrapper>
+      </Ad>
+      <Ad id="post-roll2-0">
+          <InLine>
+                <AdSystem>OpenX</AdSystem>
+                <AdTitle><![CDATA[Heinz Mayo Video (30 secs)]]></AdTitle>
+                <Description><![CDATA[Inline Video Ad]]></Description>
+                <Impression>
+                    <URL id="primaryAdServer">
+                        <![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/lg.php?bannerid=4&campaignid=1&zoneid=1&loc=1&cb=56be04b91b]]>
+                    </URL>
+                </Impression>
+                <Video>
+                    <Duration>00:00:30</Duration>
+                    <AdID><![CDATA[4]]></AdID>
+                    <MediaFiles>
+                        <MediaFile delivery="streaming" bitrate="400" width="640" height="480" type="video/x-mp4">
+                            <URL><![CDATA[rtmp://ne7c0nwbit.rtmphost.com/VideoPlayer/mp4:ads/30secs/heinz_deli_mayo.mp4]]></URL>
+                        </MediaFile>
+                    </MediaFiles>
+                </Video>
+                <TrackingEvents>
+                    <Tracking event="start">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=start]]></URL>
+                    </Tracking>
+                    <Tracking event="midpoint">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=midpoint]]></URL>
+                    </Tracking>
+                    <Tracking event="firstQuartile">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=firstquartile]]></URL>
+                    </Tracking>
+                    <Tracking event="thirdQuartile">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=thirdquartile]]></URL>
+                    </Tracking>
+                    <Tracking event="complete">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=complete]]></URL>
+                    </Tracking>
+                    <Tracking event="mute">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=mute]]></URL>
+                    </Tracking>
+                    <Tracking event="pause">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=pause]]></URL>
+                    </Tracking>
+                    <Tracking event="replay">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=replay]]></URL>
+                    </Tracking>
+                    <Tracking event="fullscreen">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=fullscreen]]></URL>
+                    </Tracking>
+                    <Tracking event="stop">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=stop]]></URL>
+                    </Tracking>
+                    <Tracking event="unmute">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=unmute]]></URL>
+                   </Tracking>
+                   <Tracking event="resume">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=resume]]></URL>
+                   </Tracking>
+                   <Tracking event="pause">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=pause]]></URL>
+                    </Tracking>
+                </TrackingEvents>
+          </InLine>
+      </Ad>
+</VideoAdServingTemplate>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/playlists/example12.rss
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/playlists/example12.rss	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/playlists/example12.rss	(revision 7)
@@ -0,0 +1,47 @@
+<!-- :mode=xml: -->
+<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/">
+
+	<channel>
+		<title>Example media RSS playlist</title>
+		<link>http://www.flowplayer.org</link>
+
+		<item>
+			<!-- The title goes to the clip as a custom property -->
+			<title>Happy Feet</title>
+
+			<!-- description goes to the clip as a custom property -->
+			<description>The First Stream</description>
+
+			<!-- media:credit goes to the clip as a custom property called 'media:credit' -->
+			<media:credit role="author">Kim Aronson</media:credit>
+
+			<!-- media:content is used as the clip URL -->
+			<media:content url="/KimAronson-TwentySeconds58192.flv" duration="5" type="video/x-flv" />
+		</item>
+		<item>
+			<title>Beach and palms</title>
+			<description>The Second Stream</description>
+			<media:credit role="author">Kim Aronson</media:credit>
+			<media:content url="/KimAronson-TwentySeconds63617.flv" duration="5" type="video/x-flv" />
+		</item>
+		<item>
+			<title>Brown Carpet</title>
+
+			<!-- the link element is mapped to the clip's linkUrl property -->
+			<link>http://flowplayer.org</link>
+			<description>The Third Stream</description>
+			<media:credit role="author">Kim Aronson</media:credit>
+
+			<!-- custom duration -->
+			<media:content url="/KimAronson-TwentySeconds71844.flv" duration="5"  type="video/x-flv" />
+		</item>
+		<item>
+			<title>Stuff on a table</title>
+			<description>The Forth Stream</description>
+			<media:credit role="author">Kim Aronson</media:credit>
+			<media:content url="/KimAronson-TwentySeconds73213.flv" duration="5" type="video/x-flv" />
+		</item>
+
+	</channel>
+
+</rss>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/playlists/playlist.rss
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/playlists/playlist.rss	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/playlists/playlist.rss	(revision 7)
@@ -0,0 +1,47 @@
+<!-- :mode=xml: -->
+<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/">
+
+	<channel>
+		<title>Example media RSS playlist</title>
+		<link>http://www.flowplayer.org</link>
+
+		<item>
+			<!-- The title goes to the clip as a custom property -->
+			<title>Happy Feet</title>
+
+			<!-- description goes to the clip as a custom property -->
+			<description>The First Stream</description>
+
+			<!-- media:credit goes to the clip as a custom property called 'media:credit' -->
+			<media:credit role="author">Kim Aronson</media:credit>
+
+			<!-- media:content is used as the clip URL -->
+			<media:content url="http://blip.tv/file/get/KimAronson-TwentySeconds58192.flv" duration="5" type="video/x-flv" />
+		</item>
+		<item>
+			<title>Beach and palms</title>
+			<description>The Second Stream</description>
+			<media:credit role="author">Kim Aronson</media:credit>
+			<media:content url="http://blip.tv/file/get/KimAronson-TwentySeconds63617.flv" duration="5" type="video/x-flv" />
+		</item>
+		<item>
+			<title>Brown Carpet</title>
+
+			<!-- the link element is mapped to the clip's linkUrl property -->
+			<link>http://flowplayer.org</link>
+			<description>The Third Stream</description>
+			<media:credit role="author">Kim Aronson</media:credit>
+
+			<!-- custom duration -->
+			<media:content url="http://blip.tv/file/get/KimAronson-TwentySeconds71844.flv" duration="5"  type="video/x-flv" />
+		</item>
+		<item>
+			<title>Stuff on a table</title>
+			<description>The Forth Stream</description>
+			<media:credit role="author">Kim Aronson</media:credit>
+			<media:content url="http://blip.tv/file/get/KimAronson-TwentySeconds73213.flv" duration="5" type="video/x-flv" />
+		</item>
+
+	</channel>
+
+</rss>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/playlists/example08.rss
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/playlists/example08.rss	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/playlists/example08.rss	(revision 7)
@@ -0,0 +1,83 @@
+<!-- :mode=xml: -->
+<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/">
+
+	<channel>
+		<title>Example media RSS playlist</title>
+		<link>http://www.flowplayer.org</link>
+
+		<item>
+			<!-- The title goes to the clip as a custom property -->
+			<title>Happy Feet</title>
+
+			<!-- description goes to the clip as a custom property -->
+			<description>The First Stream</description>
+
+			<!-- media:credit goes to the clip as a custom property called 'media:credit' -->
+			<media:credit role="author">Kim Aronson</media:credit>
+
+			<!-- media:content is used as the clip URL -->
+			<media:content url="http://blip.tv/file/get/KimAronson-TwentySeconds58192.flv" duration="5" type="video/x-flv" />
+		</item>
+		<item>
+			<title>Beach and palms</title>
+			<description>The Second Stream</description>
+			<media:credit role="author">Kim Aronson</media:credit>
+			<media:content url="http://blip.tv/file/get/KimAronson-TwentySeconds63617.flv" duration="5" type="video/x-flv" />
+		</item>
+		<item>
+			<title>Brown Carpet</title>
+
+			<!-- the link element is mapped to the clip's linkUrl property -->
+			<link>http://flowplayer.org</link>
+			<description>The Third Stream</description>
+			<media:credit role="author">Kim Aronson</media:credit>
+
+			<!-- custom duration -->
+			<media:content url="http://blip.tv/file/get/KimAronson-TwentySeconds71844.flv" duration="5"  type="video/x-flv" />
+		</item>
+		<item>
+			<title>Stuff on a table</title>
+			<description>The Forth Stream</description>
+			<media:credit role="author">Kim Aronson</media:credit>
+			<media:content url="http://blip.tv/file/get/KimAronson-TwentySeconds73213.flv" duration="5" type="video/x-flv" />
+		</item>
+
+		<item>
+			<!-- The title goes to the clip as a custom property -->
+			<title>Happy Feet Again</title>
+
+			<!-- description goes to the clip as a custom property -->
+			<description>The Fifth Stream</description>
+
+			<!-- media:credit goes to the clip as a custom property called 'media:credit' -->
+			<media:credit role="author">Kim Aronson</media:credit>
+
+			<!-- media:content is used as the clip URL -->
+			<media:content url="http://blip.tv/file/get/KimAronson-TwentySeconds58192.flv" duration="5" type="video/x-flv" />
+		</item>
+		<item>
+			<title>Beach and palms gain</title>
+			<description>The Sixth Stream</description>
+			<media:credit role="author">Kim Aronson</media:credit>
+			<media:content url="http://blip.tv/file/get/KimAronson-TwentySeconds63617.flv" duration="5" type="video/x-flv" />
+		</item>
+		<item>
+			<title>Brown Carpet Again</title>
+
+			<!-- the link element is mapped to the clip's linkUrl property -->
+			<link>http://flowplayer.org</link>
+			<description>The Seventh Stream</description>
+			<media:credit role="author">Kim Aronson</media:credit>
+
+			<!-- custom duration -->
+			<media:content url="http://blip.tv/file/get/KimAronson-TwentySeconds71844.flv" duration="5"  type="video/x-flv" />
+		</item>
+		<item>
+			<title>Stuff on a table again</title>
+			<description>The Eighth Stream</description>
+			<media:credit role="author">Kim Aronson</media:credit>
+			<media:content url="http://blip.tv/file/get/KimAronson-TwentySeconds73213.flv" duration="5" type="video/x-flv" />
+		</item>
+	</channel>
+
+</rss>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/playlists/example-playlist.smil
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/playlists/example-playlist.smil	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/playlists/example-playlist.smil	(revision 7)
@@ -0,0 +1,8 @@
+<smil>
+  <head>
+    <meta base="rtmp://fms015.lo1.hwcdn.net/n9f8m6x7/_definst_" />
+  </head>
+  <body>
+    <video src="fms/donotchange3?doppl=8917af61c2431bf5&amp;dopsig=d1cea28b86ae4eb742106bd66906b88d"/>
+  </body>
+</smil>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/companions/companions-vast1.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/companions/companions-vast1.xml	(revision 108)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/companions/companions-vast1.xml	(revision 108)
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VideoAdServingTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd">
+<Ad id="pre-roll0-0">
+<InLine>
+<AdSystem>Custom</AdSystem>
+<AdTitle>preroll</AdTitle>
+<Impression>
+	<URL id="myadserver"><![CDATA[http://localhost/test?impression]]></URL>
+</Impression>
+<TrackingEvents>
+<Tracking event="firstQuartile">
+		<URL id="myadserver"><![CDATA[http://localhost/test?firstQuartile]]></URL>
+</Tracking>
+<Tracking event="midpoint">
+		<URL id="myadserver"><![CDATA[http://localhost/test?midpoint]]></URL>
+</Tracking>
+<Tracking event="thirdQuartile">
+		<URL id="myadserver"><![CDATA[http://localhost/test?thirdQuartile]]></URL>
+</Tracking>
+<Tracking event="complete">
+		<URL id="myadserver"><![CDATA[http://localhost/test?complete]]></URL>
+</Tracking>
+<Tracking event="mute">
+		<URL id="myadserver"><![CDATA[http://localhost/test?mute]]></URL>
+</Tracking>
+<Tracking event="pause">
+		<URL id="myadserver"><![CDATA[http://localhost/test?pause]]></URL>
+</Tracking>
+<Tracking event="replay">
+		<URL id="myadserver"><![CDATA[http://localhost/test?replay]]></URL>
+</Tracking>
+<Tracking event="fullscreen">
+		<URL id="myadserver"><![CDATA[http://localhost/test?fullscreen]]></URL>
+</Tracking>
+</TrackingEvents>
+<Video><Duration>00:00:11</Duration>
+<AdID></AdID>
+<VideoClicks>
+<ClickThrough>
+<URL><![CDATA[http://www.apple.com]]></URL>
+</ClickThrough>
+<ClickTracking>
+<URL id="myadserver"><![CDATA[[http://localhost/test?click]]]></URL>
+</ClickTracking>
+</VideoClicks>
+<MediaFiles>
+<MediaFile delivery="progressive" bitrate="256" width="800" height="528" type="video/x-flv"><URL><![CDATA[http://cdn.liverail.com/adasset/229/331/lo.flv]]></URL></MediaFile>
+<MediaFile delivery="progressive" bitrate="512" width="800" height="528" type="video/x-flv"><URL><![CDATA[http://cdn.liverail.com/adasset/229/331/me.flv]]></URL></MediaFile>
+<MediaFile delivery="progressive" bitrate="768" width="800" height="528" type="video/x-flv"><URL><![CDATA[http://cdn.liverail.com/adasset/229/331/hi.flv]]></URL></MediaFile>
+</MediaFiles>
+</Video>
+<CompanionAds>
+<Companion id="vast_companion_300x250_image" width="300" height="250" resourceType="static" creativeType="image/jpeg">
+    <URL>
+        <![CDATA[http://cdn.liverail.com/adasset/229/331/300x250.jpg]]>
+    </URL>
+</Companion>
+<Companion id="vast_companion_300x250_flash" width="300" height="250" resourceType="static" creativeType="application/x-shockwave-flash">
+    <URL>
+        <![CDATA[http://static.openvideoads.org/ads/companions/Schwab_300x250.swf]]>
+    </URL>
+</Companion>
+<Companion id="vast_companion_300x250_js" width="300" height="250" resourceType="script" creativeType="any">
+    <URL>
+        <![CDATA[http://static.openvideoads.org/ads/companions/300x250-script.js]]>
+    </URL>
+</Companion>
+<Companion id="vast_companion_300x250_iframe" width="300" height="250" resourceType="iframe" creativeType="any">
+    <URL>
+        <![CDATA[http://ad3.liverail.com/util/companions.php?type=image&content=http%3A%2F%2Fcdn.liverail.com%2Fadasset%2F229%2F331%2F300x250.jpg&clickthru=http%3A%2F%2Ft3.liverail.com%2F%3Fmetric%3Dcclickthru%26pos%3D50%26pid%3D1331%26coid%3D135%26nid%3D0%26cid%3D331%26kid%3D229%26vid%3D%26amid%3D%26cc%3Ddefault%26pp%3D%26url%3D%26cb%3D7114%26x%3D%26y%3D%26xy%3D%26redirect%3Dhttp%253A%252F%252Fliverail.com%252F]]>
+    </URL>
+</Companion>
+<Companion id="vast_companion_300x250_html" width="300" height="250" resourceType="html" creativeType="any">
+    <Code>
+        <![CDATA[<a href="http://t3.liverail.com/?metric=cclickthru&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=1389&x=&y=&xy=&redirect=http%3A%2F%2Fliverail.com%2F" target="_blank"><img src="http://cdn.liverail.com/adasset/229/331/300x250.jpg" border="0" style="border: 0px; margin: 0px;" /></a>]]>
+    </Code>
+</Companion>
+<Companion id="vast_companion_300x250_html_js" width="300" height="250" resourceType="script" creativeType="any">
+    <Code>
+        <![CDATA[document.write('<a href="http://www.apple.com"><img src="http://cdn.liverail.com/adasset/229/331/300x250.jpg"></a>');]]>
+    </Code>
+</Companion>
+</CompanionAds>
+</InLine>
+</Ad>
+</VideoAdServingTemplate>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/companions/companions-vast2.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/companions/companions-vast2.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/companions/companions-vast2.xml	(revision 7)
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="utf-8"?>
+<VAST version="2.0">
+    <Ad id="229">
+    	<InLine>
+    		<AdSystem version="3.0">LiveRail</AdSystem>
+    		<AdTitle><![CDATA[iPhone]]></AdTitle>
+    		<Description><![CDATA[]]></Description>
+    		<Impression id="LR"><![CDATA[http://static.openvideoads.org/tracking.php?impression1]]></Impression>
+            <Impression id="QC"><![CDATA[http://static.openvideoads.org/tracking.php?impression2]]></Impression>
+			<Creatives>
+				<Creative sequence="1" id="331">
+            		<Linear>
+            			<Duration>00:00:11</Duration>
+            			<VideoClicks>
+            				<ClickThrough><![CDATA[http://t3.liverail.com/?metric=clickthru&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=7114&x=&y=&xy=&redirect=http%3A%2F%2Fliverail.com%2F]]></ClickThrough>
+            			</VideoClicks>
+        	   			<MediaFiles>
+        					<MediaFile delivery="progressive" bitrate="256" width="800" height="528" type="video/x-flv"><![CDATA[http://cdn.liverail.com/adasset/229/331/lo.flv]]></MediaFile>
+        					<MediaFile delivery="progressive" bitrate="512" width="800" height="528" type="video/x-flv"><![CDATA[http://cdn.liverail.com/adasset/229/331/me.flv]]></MediaFile>
+        					<MediaFile delivery="progressive" bitrate="768" width="800" height="528" type="video/x-flv"><![CDATA[http://cdn.liverail.com/adasset/229/331/hi.flv]]></MediaFile>
+    					</MediaFiles>
+    			    	<TrackingEvents>
+							<Tracking event="firstQuartile"><![CDATA[http://static.openvideoads.org/tracking.php?firstQuartile]]></Tracking>
+							<Tracking event="midpoint"><![CDATA[http://static.openvideoads.org/tracking.php?midpoint]]></Tracking>
+							<Tracking event="thirdQuartile"><![CDATA[http://static.openvideoads.org/tracking.php?thirdQuartile]]></Tracking>
+							<Tracking event="complete"><![CDATA[http://static.openvideoads.org/tracking.php?complete]]></Tracking>
+							<Tracking event="mute"><![CDATA[http://static.openvideoads.org/tracking.php?mute]]></Tracking>
+							<Tracking event="pause"><![CDATA[http://static.openvideoads.org/tracking.php?pause]]></Tracking>
+							<Tracking event="close"><![CDATA[http://static.openvideoads.org/tracking.php?close]]></Tracking>
+							<Tracking event="acceptInvitation"><![CDATA[http://static.openvideoads.org/tracking.php?acceptInvitation]]></Tracking>
+    					</TrackingEvents>
+    				</Linear>
+    			</Creative>
+    			<Creative sequence="1" id="331">
+    				<CompanionAds>
+        				<Companion width="300" height="250">
+                            <StaticResource creativeType="image/jpeg"><![CDATA[http://cdn.liverail.com/adasset/229/331/300x250.jpg]]></StaticResource>
+                            <CompanionClickThrough><![CDATA[http://t3.liverail.com/?metric=cclickthru&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=7114&x=&y=&xy=&redirect=http%3A%2F%2Fliverail.com%2F]]></CompanionClickThrough>
+                            <TrackingEvents>
+                                <Tracking event="creativeView"><![CDATA[http://static.openvideoads.org/tracking.php?creativeView-static-image]]></Tracking>
+                            </TrackingEvents>
+                        </Companion>
+        				<Companion width="300" height="250">
+                            <StaticResource creativeType="application/x-shockwave-flash"><![CDATA[http://static.openvideoads.org/ads/companions/Schwab_300x250.swf]]></StaticResource>
+                            <CompanionClickThrough><![CDATA[http://t3.liverail.com/?metric=cclickthru&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=7114&x=&y=&xy=&redirect=http%3A%2F%2Fliverail.com%2F]]></CompanionClickThrough>
+                            <TrackingEvents>
+                                <Tracking event="creativeView"><![CDATA[http://static.openvideoads.org/tracking.php?creativeView-static-swf]]></Tracking>
+                            </TrackingEvents>
+                        </Companion>
+        				<Companion width="300" height="250">
+                            <StaticResource creativeType="text/javascript"><![CDATA[http://static.openvideoads.org/ads/companions/300x250-script.js]]></StaticResource>
+                            <CompanionClickThrough><![CDATA[http://t3.liverail.com/?metric=cclickthru&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=7114&x=&y=&xy=&redirect=http%3A%2F%2Fliverail.com%2F]]></CompanionClickThrough>
+                            <TrackingEvents>
+                                <Tracking event="creativeView"><![CDATA[http://static.openvideoads.org/tracking.php?creativeView-static-script]]></Tracking>
+                            </TrackingEvents>
+                        </Companion>
+                        <Companion width="300" height="250">
+                            <IFrameResource creativeType="text/html"><![CDATA[http://ad3.liverail.com/util/companions.php?type=image&content=http%3A%2F%2Fcdn.liverail.com%2Fadasset%2F229%2F331%2F300x250.jpg&clickthru=http%3A%2F%2Ft3.liverail.com%2F%3Fmetric%3Dcclickthru%26pos%3D50%26pid%3D1331%26coid%3D135%26nid%3D0%26cid%3D331%26kid%3D229%26vid%3D%26amid%3D%26cc%3Ddefault%26pp%3D%26url%3D%26cb%3D7114%26x%3D%26y%3D%26xy%3D%26redirect%3Dhttp%253A%252F%252Fliverail.com%252F]]></IFrameResource>
+                            <CompanionClickThrough><![CDATA[http://t3.liverail.com/?metric=cclickthru&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=7114&x=&y=&xy=&redirect=http%3A%2F%2Fliverail.com%2F]]></CompanionClickThrough>
+                            <TrackingEvents>
+                                <Tracking event="creativeView"><![CDATA[http://static.openvideoads.org/tracking.php?creativeView-iframe]]></Tracking>
+                            </TrackingEvents>
+                        </Companion>
+                        <Companion width="300" height="250">
+                            <HTMLResource>
+                                <![CDATA[<a href="http://t3.liverail.com/?metric=cclickthru&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=1389&x=&y=&xy=&redirect=http%3A%2F%2Fliverail.com%2F" target="_blank"><img src="http://cdn.liverail.com/adasset/229/331/300x250.jpg" border="0" style="border: 0px; margin: 0px;" /></a>]]>
+                            </HTMLResource>
+                            <TrackingEvents>
+                                <Tracking event="creativeView"><![CDATA[http://static.openvideoads.org/tracking.php?creativeView-html]]></Tracking>
+                            </TrackingEvents>
+                        </Companion>
+                        <Companion width="300" height="250">
+                            <HTMLResource>
+                                <![CDATA[document.write('<a href="http://www.apple.com"><img src="http://cdn.liverail.com/adasset/229/331/300x250.jpg"></a>');]]>
+                            </HTMLResource>
+                            <TrackingEvents>
+                                <Tracking event="creativeView"><![CDATA[http://static.openvideoads.org/tracking.php?creativeView-html-script]]></Tracking>
+                            </TrackingEvents>
+                        </Companion>
+    				</CompanionAds>
+    			</Creative>
+    		</Creatives>
+    	</InLine>
+    </Ad>
+</VAST>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/error-responses/bad-xml.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/error-responses/bad-xml.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/error-responses/bad-xml.xml	(revision 7)
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<VAST version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd">
+ <Ad id = "467201">
+    <InLine>
+        <AdSystem>MediaMind</AdSystem>
+        <AdTitle>vast</AdTitle>
+        <Description>vast</Description>
+        <Survey/>
+
+        <Error/>
+        <Impression id = "Impression"/>
+        <Creatives>
+            <Creative
+                id = "858460"
+                sequence = "1"
+                AdID = "858460">
+                <Linear>
+                    <Duration/>
+                    <VideoClicks>
+                        <ClickTracking><![CDATA[ ]]></ClickTracking>
+                    </VideoClicks>
+
+                    <MediaFiles>
+                        <MediaFile
+                            id = "1322504"
+                            delivery = ""
+                            type = "video/x-mp4"
+                            bitrate = "494"
+                            width = "300"
+                            height = "252"><![CDATA[http://ds.serving-sys-dev4.com/instream/assets/baileys_5sec.mp4]]></MediaFile>
+                    </MediaFiles>
+                </Linear>
+            </Creative>
+			<Creative
+                    id = "858460"
+                    sequence = "4"
+                    AdID = "858460">
+				<NonLinearAds>
+                        <NonLinear
+                            id = "1239135"
+                            width = "600"
+                            minSuggestedDuration = "30"
+                            height = "450">
+                            <StaticResource creativeType = "application/x-shockwave-flash"><![CDATA[http://ds.serving-sys-dev4.com/instream/assets/Untitled-1.swf]]></StaticResource>
+
+                        </NonLinear>
+				   </NonLinearAds>
+                </Creative>
+
+            <Creative
+                id = "858460"
+                sequence = "3"
+                AdID = "858460">
+                <CompanionAds>
+                    <Companion
+                        id = "1544111"
+                        Width = "85"
+                        height = "127">
+                        <StaticResource creativeType = "image/jpg"><![CDATA[http://ds.serving-sys-dev4.com/instream/assets/smallWorld.jpg]]></StaticResource>
+                    </Companion
+                    <Companion
+                        id = "1544108"
+                        width = "128"
+                        height = "95">
+                        <StaticResource creativeType = "image/jpg"><![CDATA[http://ds.serving-sys-dev4.com/instream/assets/house.jpg]]></StaticResource>
+                    </Companion>
+                </CompanionAds>
+            </Creative>
+        </Creatives>
+    </InLine>
+</Ad>
+</VAST>
+
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/error-responses/vast1.0/zero-duration.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/error-responses/vast1.0/zero-duration.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/error-responses/vast1.0/zero-duration.xml	(revision 7)
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<VideoAdServingTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd">
+  <Ad id="">
+<InLine>
+      <AdSystem>DFP</AdSystem>  <AdTitle>Tic Tac</AdTitle>  <Description/>
+    <Survey>
+          <URL><![CDATA[]]></URL>
+    </Survey>
+    <Error>
+          <URL><![CDATA[]]></URL>
+    </Error>
+    <Impression>
+          <URL id="ipd_vast_i"><![CDATA[]]></URL>  <URL id="ipd_vast_e"><![CDATA[]]></URL>
+<URL id="3rdparty"><![CDATA[]]></URL>
+    </Impression>
+    <TrackingEvents>
+        <Tracking event="start">
+             <URL
+id="ipd_vast_e"><![CDATA[http://ad.de.doubleclick.net/adj/sternde/;sz=1x1;adid=221748323;
+dcmt=text/xml;ord=7652526?]]></URL>
+        </Tracking>
+        <Tracking event="midpoint">
+              <URL
+id="ipd_vast_e"><![CDATA[http://ad.de.doubleclick.net/adj/sternde/;sz=1x1;adid=221771919;
+dcmt=text/xml;ord=7652526?]]></URL>  <URL id="3rdparty"><![CDATA[]]></URL>
+        </Tracking>
+        <Tracking event="firstQuartile">
+              <URL
+id="ipd_vast_e"><![CDATA[http://ad.de.doubleclick.net/adj/sternde/;sz=1x1;adid=221771909;
+dcmt=text/xml;ord=7652526?]]></URL>  <URL id="3rdparty"><![CDATA[]]></URL>
+        </Tracking>
+        <Tracking event="thirdQuartile">
+              <URL
+id="ipd_vast_e"><![CDATA[http://ad.de.doubleclick.net/adj/sternde/;sz=1x1;adid=221771920;
+dcmt=text/xml;ord=7652526?]]></URL>  <URL id="3rdparty"><![CDATA[]]></URL>
+        </Tracking>
+        <Tracking event="complete">
+              <URL
+id="ipd_vast_e"><![CDATA[http://ad.de.doubleclick.net/adj/sternde/;sz=1x1;adid=221771918;
+dcmt=text/xml;ord=7652526?]]></URL>  <URL id="3rdparty"><![CDATA[]]></URL>
+        </Tracking>
+        <Tracking event="mute">
+              <URL id="ipd_vast_e"><![CDATA[]]></URL>  <URL id="3rdparty"><![CDATA[]]></URL>
+        </Tracking>
+        <Tracking event="fullscreen">
+              <URL id="ipd_vast_e"><![CDATA[]]></URL>  <URL id="3rdparty"><![CDATA[]]></URL>
+        </Tracking>
+    </TrackingEvents>
+    <Video>
+          <Duration>0</Duration>  <AdID>219999139</AdID>
+        <VideoClicks>
+            <ClickThrough>
+                <URL id="dfp"><![CDATA[http://www.ip-deutschland.de]]></URL>
+            </ClickThrough>
+            <ClickTracking>
+                  <URL
+id="ipd_vast_i"><![CDATA[http://ad.de.doubleclick.net/click%3Bh=v8/3946/3/0/%2a/k%3B2199
+99139%3B0-0%3B1%3B42717742%3B780-
+320/240%3B34455631/34473509/1%3B%3B%7Eaopt%3D2/1/ff/2%3B%7Esscs%3D%3f]]></URL>
+<URL id="ipd_vast_e"><![CDATA[]]></URL>  <URL id="3rdparty"><![CDATA[]]></URL>
+            </ClickTracking>
+        </VideoClicks>
+        <MediaFiles>
+            <MediaFile delivery="streaming" bitrate="400" width="512" height="288" type="video/x-mp4">
+                <URL><![CDATA[http://static.bouncingminds.com/ads/30secs/heinz_deli_mayo.mp4]]></URL>
+            </MediaFile>
+        </MediaFiles>
+
+    </Video>
+    <NonLinearAds>
+
+        <NonLinear id="" width="" height="" resourceType="static" creativeType="SWF"
+maintainAspectRatio="true" scalable="true">
+             <URL><![CDATA[]]></URL>
+            <NonLinearClickThrough>
+                  <URL><![CDATA[]]></URL>
+            </NonLinearClickThrough>
+            <ClickTracking>
+                  <URL id="ipd_vast_i"><![CDATA[]]></URL>  <URL
+id="ipd_vast_e"><![CDATA[]]></URL>  <URL id="3rdparty"><![CDATA[]]></URL>
+            </ClickTracking>
+        </NonLinear>
+
+    </NonLinearAds>
+    <Extensions>
+
+        <Extension type="dfp">
+
+            <AdServingData>
+                <Industry/>
+                <LinearSwf>
+                      <Dimension width="300" height="250"/>
+                </LinearSwf>
+            </AdServingData>
+
+        </Extension>
+    </Extensions>
+
+</InLine>
+  </Ad>
+</VideoAdServingTemplate>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/error-responses/vast1.0/empty-ad-vast-response.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/error-responses/vast1.0/empty-ad-vast-response.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/error-responses/vast1.0/empty-ad-vast-response.xml	(revision 7)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<VideoAdServingTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd">
+  <Ad id="">
+     <InLine>
+        <AdSystem>Adtech</AdSystem>
+        <AdTitle />
+        <Description />
+        <Survey>
+           <URL />
+        </Survey>
+        <Error>
+           <URL />
+        </Error>
+        <Impression>
+           <URL id="myadsever">
+              <![CDATA[http://de.at.atwola.com/adcount/3.0/515/2306518/0/1725/AdId=2649607;BnId=1;ct=818113100;st=506;adcid=1;itime=603056618;reqtype=25]]>
+           </URL>
+        </Impression>
+     </InLine>
+  </Ad>
+</VideoAdServingTemplate>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/error-responses/vast1.0/vast-wrapper-test.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/error-responses/vast1.0/vast-wrapper-test.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/error-responses/vast1.0/vast-wrapper-test.xml	(revision 7)
@@ -0,0 +1,193 @@
+<VideoAdServingTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd">
+      <Ad id="preroll">
+          <Wrapper>
+             <AdSystem>MyAdSystem</AdSystem>
+                <VASTAdTagURL>
+                    <URL><![CDATA[http://de.at.atwola.com/?adrawdata/3.0/515.1/2188758/0/1725/noperf=1;cc=2;header=yes;alias=myalias;cookie=yes;adct=204;key=key1+key2;grp=[group];misc=[TIMESTAMP]]]></URL>
+                </VASTAdTagURL>
+                <Error>
+                   <URL><![CDATA[http://www.primarysite.com/tracker?noPlay=true&impressionTracked=false]]></URL>
+                </Error>
+                <TrackingEvents>
+                    <Tracking event="start">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=start]]></URL>
+                    </Tracking>
+                    <Tracking event="midpoint">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=midpoint]]></URL>
+                    </Tracking>
+                    <Tracking event="firstQuartile">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=firstquartile]]></URL>
+                    </Tracking>
+                    <Tracking event="thirdQuartile">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=thirdquartile]]></URL>
+                    </Tracking>
+                    <Tracking event="complete">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=complete]]></URL>
+                    </Tracking>
+                    <Tracking event="mute">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=mute]]></URL>
+                    </Tracking>
+                    <Tracking event="pause">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=pause]]></URL>
+                    </Tracking>
+                    <Tracking event="replay">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=replay]]></URL>
+                    </Tracking>
+                    <Tracking event="fullscreen">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=fullscreen]]></URL>
+                    </Tracking>
+                    <Tracking event="stop">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=stop]]></URL>
+                    </Tracking>
+                    <Tracking event="unmute">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=unmute]]></URL>
+                    </Tracking>
+                   <Tracking event="resume">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=resume]]></URL>
+                    </Tracking>
+                   <Tracking event="pause">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=pause]]></URL>
+                    </Tracking>
+                </TrackingEvents>
+          </Wrapper>
+      </Ad>
+      <Ad id="overlay">
+          <Wrapper>
+             <AdSystem>MyAdSystem</AdSystem>
+                <VASTAdTagURL>
+                    <URL><![CDATA[http://de.at.atwola.com/?adrawdata/3.0/515.1/2188759/0/1728/noperf=1;cc=2;header=yes;alias=myalias;cookie=yes;adct=204;key=key1+key2;grp=[group];misc=[TIMESTAMP]]]></URL>
+                </VASTAdTagURL>
+                <Error>
+                   <URL><![CDATA[http://www.primarysite.com/tracker?noPlay=true&impressionTracked=false]]></URL>
+                </Error>
+                <TrackingEvents>
+                    <Tracking event="start">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=start]]></URL>
+                    </Tracking>
+                    <Tracking event="midpoint">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=midpoint]]></URL>
+                    </Tracking>
+                    <Tracking event="firstQuartile">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=firstquartile]]></URL>
+                    </Tracking>
+                    <Tracking event="thirdQuartile">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=thirdquartile]]></URL>
+                    </Tracking>
+                    <Tracking event="complete">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=complete]]></URL>
+                    </Tracking>
+                    <Tracking event="mute">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=mute]]></URL>
+                    </Tracking>
+                    <Tracking event="pause">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=pause]]></URL>
+                    </Tracking>
+                    <Tracking event="replay">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=replay]]></URL>
+                    </Tracking>
+                    <Tracking event="fullscreen">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=fullscreen]]></URL>
+                    </Tracking>
+                    <Tracking event="stop">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=stop]]></URL>
+                    </Tracking>
+                    <Tracking event="unmute">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=unmute]]></URL>
+                    </Tracking>
+                   <Tracking event="resume">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=4&zone_id=1&source=&vast_event=resume]]></URL>
+                    </Tracking>
+                   <Tracking event="pause">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=pause]]></URL>
+                    </Tracking>
+                </TrackingEvents>
+          </Wrapper>
+      </Ad>
+     <Ad id="post-roll2-0">
+         <InLine>
+                <AdSystem>OpenX</AdSystem>
+                <AdTitle><![CDATA[Heinz Mayo Video (30 secs)]]></AdTitle>
+                <Description><![CDATA[Inline Video Ad]]></Description>
+                <Impression>
+                    <URL id="primaryAdServer">
+                        <![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/lg.php?bannerid=4&campaignid=1&zoneid=1&loc=1&cb=56be04b91b]]>
+                    </URL>
+                </Impression>
+                <Video>
+                    <Duration>00:00:30</Duration>
+                    <AdID><![CDATA[4]]></AdID>
+                    <MediaFiles>
+                        <MediaFile delivery="streaming" bitrate="400" width="640" height="480" type="video/x-mp4">
+                            <URL><![CDATA[rtmp://ne7c0nwbit.rtmphost.com/VideoPlayer/mp4:ads/30secs/heinz_deli_mayo.mp4]]></URL>
+                        </MediaFile>
+                    </MediaFiles>
+                </Video>
+                <TrackingEvents>
+                    <Tracking event="start">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=start]]></URL>
+                    </Tracking>
+                    <Tracking event="midpoint">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=midpoint]]></URL>
+                    </Tracking>
+                    <Tracking event="firstQuartile">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=firstquartile]]></URL>
+                    </Tracking>
+                    <Tracking event="thirdQuartile">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=thirdquartile]]></URL>
+                    </Tracking>
+                    <Tracking event="complete">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=complete]]></URL>
+                    </Tracking>
+                    <Tracking event="mute">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=mute]]></URL>
+                    </Tracking>
+                    <Tracking event="pause">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=pause]]></URL>
+                    </Tracking>
+                    <Tracking event="replay">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=replay]]></URL>
+                    </Tracking>
+                    <Tracking event="fullscreen">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=fullscreen]]></URL>
+                    </Tracking>
+                    <Tracking event="stop">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=stop]]></URL>
+                    </Tracking>
+                    <Tracking event="unmute">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=unmute]]></URL>
+                   </Tracking>
+                   <Tracking event="resume">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=resume]]></URL>
+                   </Tracking>
+                   <Tracking event="pause">
+                        <URL id="primaryAdServer"><![CDATA[http://www.bouncingminds.com/openx-2.8.2-rc22/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVa
+st&banner_id=4&zone_id=1&source=&vast_event=pause]]></URL>
+                    </Tracking>
+                </TrackingEvents>
+          </InLine>
+      </Ad>
+</VideoAdServingTemplate>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/error-responses/vast1.0/bad-duration.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/error-responses/vast1.0/bad-duration.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/error-responses/vast1.0/bad-duration.xml	(revision 7)
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<VideoAdServingTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd">
+  <Ad id="">
+<InLine>
+      <AdSystem>DFP</AdSystem>  <AdTitle>Tic Tac</AdTitle>  <Description/>
+    <Survey>
+          <URL><![CDATA[]]></URL>
+    </Survey>
+    <Error>
+          <URL><![CDATA[]]></URL>
+    </Error>
+    <Impression>
+          <URL id="ipd_vast_i"><![CDATA[]]></URL>  <URL id="ipd_vast_e"><![CDATA[]]></URL>
+<URL id="3rdparty"><![CDATA[]]></URL>
+    </Impression>
+    <TrackingEvents>
+        <Tracking event="start">
+             <URL
+id="ipd_vast_e"><![CDATA[http://ad.de.doubleclick.net/adj/sternde/;sz=1x1;adid=221748323;
+dcmt=text/xml;ord=7652526?]]></URL>
+        </Tracking>
+        <Tracking event="midpoint">
+              <URL
+id="ipd_vast_e"><![CDATA[http://ad.de.doubleclick.net/adj/sternde/;sz=1x1;adid=221771919;
+dcmt=text/xml;ord=7652526?]]></URL>  <URL id="3rdparty"><![CDATA[]]></URL>
+        </Tracking>
+        <Tracking event="firstQuartile">
+              <URL
+id="ipd_vast_e"><![CDATA[http://ad.de.doubleclick.net/adj/sternde/;sz=1x1;adid=221771909;
+dcmt=text/xml;ord=7652526?]]></URL>  <URL id="3rdparty"><![CDATA[]]></URL>
+        </Tracking>
+        <Tracking event="thirdQuartile">
+              <URL
+id="ipd_vast_e"><![CDATA[http://ad.de.doubleclick.net/adj/sternde/;sz=1x1;adid=221771920;
+dcmt=text/xml;ord=7652526?]]></URL>  <URL id="3rdparty"><![CDATA[]]></URL>
+        </Tracking>
+        <Tracking event="complete">
+              <URL
+id="ipd_vast_e"><![CDATA[http://ad.de.doubleclick.net/adj/sternde/;sz=1x1;adid=221771918;
+dcmt=text/xml;ord=7652526?]]></URL>  <URL id="3rdparty"><![CDATA[]]></URL>
+        </Tracking>
+        <Tracking event="mute">
+              <URL id="ipd_vast_e"><![CDATA[]]></URL>  <URL id="3rdparty"><![CDATA[]]></URL>
+        </Tracking>
+        <Tracking event="fullscreen">
+              <URL id="ipd_vast_e"><![CDATA[]]></URL>  <URL id="3rdparty"><![CDATA[]]></URL>
+        </Tracking>
+    </TrackingEvents>
+    <Video>
+          <Duration>19</Duration>  <AdID>219999139</AdID>
+        <VideoClicks>
+            <ClickThrough>
+                <URL id="dfp"><![CDATA[http://www.ip-deutschland.de]]></URL>
+            </ClickThrough>
+            <ClickTracking>
+                  <URL
+id="ipd_vast_i"><![CDATA[http://ad.de.doubleclick.net/click%3Bh=v8/3946/3/0/%2a/k%3B2199
+99139%3B0-0%3B1%3B42717742%3B780-
+320/240%3B34455631/34473509/1%3B%3B%7Eaopt%3D2/1/ff/2%3B%7Esscs%3D%3f]]></URL>
+<URL id="ipd_vast_e"><![CDATA[]]></URL>  <URL id="3rdparty"><![CDATA[]]></URL>
+            </ClickTracking>
+        </VideoClicks>
+        <MediaFiles>
+            <MediaFile delivery="streaming" bitrate="400" width="512" height="288" type="video/x-mp4">
+                <URL><![CDATA[http://static.bouncingminds.com/ads/30secs/heinz_deli_mayo.mp4]]></URL>
+            </MediaFile>
+        </MediaFiles>
+
+    </Video>
+    <NonLinearAds>
+
+        <NonLinear id="" width="" height="" resourceType="static" creativeType="SWF"
+maintainAspectRatio="true" scalable="true">
+             <URL><![CDATA[]]></URL>
+            <NonLinearClickThrough>
+                  <URL><![CDATA[]]></URL>
+            </NonLinearClickThrough>
+            <ClickTracking>
+                  <URL id="ipd_vast_i"><![CDATA[]]></URL>  <URL
+id="ipd_vast_e"><![CDATA[]]></URL>  <URL id="3rdparty"><![CDATA[]]></URL>
+            </ClickTracking>
+        </NonLinear>
+
+    </NonLinearAds>
+    <Extensions>
+
+        <Extension type="dfp">
+
+            <AdServingData>
+                <Industry/>
+                <LinearSwf>
+                      <Dimension width="300" height="250"/>
+                </LinearSwf>
+            </AdServingData>
+
+        </Extension>
+    </Extensions>
+
+</InLine>
+  </Ad>
+</VideoAdServingTemplate>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/error-responses/vast1.0/bad-vast-response.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/error-responses/vast1.0/bad-vast-response.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/error-responses/vast1.0/bad-vast-response.xml	(revision 7)
@@ -0,0 +1,1 @@
+this is a junk response
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/error-responses/vast1.0/blank-vast-response.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/error-responses/vast1.0/blank-vast-response.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/error-responses/vast1.0/blank-vast-response.xml	(revision 7)
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF_8"?>
+<VideoAdServingTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd">
+</VideoAdServingTemplate>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/error-responses/vast2.0/error-code.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/error-responses/vast2.0/error-code.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/error-responses/vast2.0/error-code.xml	(revision 7)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VAST version="2.0">
+   <error>
+      <![CDATA[Err code: 3]]>
+   </error>
+</VAST>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyeblaster/example06.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyeblaster/example06.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyeblaster/example06.xml	(revision 7)
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<VAST version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd">
+ <Ad id = "467201">
+    <InLine>
+        <AdSystem>MediaMind</AdSystem>
+        <AdTitle>vast</AdTitle>
+        <Description>vast</Description>
+        <Survey/>
+
+        <Error/>
+        <Impression id = "Impression"/>
+        <Creatives>
+            <Creative
+                id = "858460"
+                sequence = "1"
+                AdID = "858460">
+                <Linear>
+                    <Duration/>
+                    <VideoClicks>
+                        <ClickTracking><![CDATA[ ]]></ClickTracking>
+                    </VideoClicks>
+
+                    <MediaFiles>
+                        <MediaFile
+                            id = "1322504"
+                            delivery = ""
+                            type = "video/x-mp4"
+                            bitrate = "494"
+                            width = "300"
+                            height = "252"><![CDATA[http://ds.serving-sys-dev4.com/instream/assets/baileys_5sec.mp4]]></MediaFile>
+                    </MediaFiles>
+                </Linear>
+                <Linear>
+                    <Duration/>
+                    <VideoClicks>
+                        <ClickTracking><![CDATA[ ]]></ClickTracking>
+                    </VideoClicks>
+
+                    <MediaFiles>
+                        <MediaFile
+                            id = "1322504"
+                            delivery = ""
+                            type = "video/x-mp4"
+                            bitrate = "494"
+                            width = "300"
+                            height = "252"><![CDATA[http://ds.serving-sys-dev4.com/instream/assets/baileys_5xsec.mp4]]></MediaFile>
+                    </MediaFiles>
+                </Linear>
+            </Creative>
+			<Creative
+                    id = "858460"
+                    sequence = "4"
+                    AdID = "858460">
+				<NonLinearAds>
+                        <NonLinear
+                            id = "1239135"
+                            width = "600"
+                            minSuggestedDuration = "30"
+                            height = "450">
+                            <StaticResource creativeType = "application/x-shockwave-flash"><![CDATA[http://ds.serving-sys-dev4.com/instream/assets/Untitled-1.swf]]></StaticResource>
+
+                        </NonLinear>
+				   </NonLinearAds>
+                </Creative>
+
+            <Creative
+                id = "858460"
+                sequence = "3"
+                AdID = "858460">
+                <CompanionAds>
+                    <Companion
+                        id = "1544111"
+                        width = "85"
+                        height = "127">
+                        <CompanionClickThrough><![CDATA[www.yahoo.com]]></CompanionClickThrough>
+                        <StaticResource creativeType = "image/jpg"><![CDATA[http://ds.serving-sys-dev4.com/instream/assets/smallWorld.jpg]]></StaticResource>
+                    </Companion>
+                    <Companion
+                        id = "1544108"
+                        width = "128"
+                        height = "95">
+                        <CompanionClickThrough><![CDATA[www.google.com]]></CompanionClickThrough>
+                        <StaticResource creativeType = "image/jpg"><![CDATA[http://ds.serving-sys-dev4.com/instream/assets/house.jpg]]></StaticResource>
+                    </Companion>
+                </CompanionAds>
+            </Creative>
+        </Creatives>
+    </InLine>
+</Ad>
+</VAST>
+
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyeblaster/example02-8.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyeblaster/example02-8.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyeblaster/example02-8.xml	(revision 7)
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<VAST version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd">
+ <Ad id = "467201">
+    <InLine>
+        <AdSystem>MediaMind</AdSystem>
+        <AdTitle>vast</AdTitle>
+        <Description>vast</Description>
+        <Survey/>
+        <Error/>
+        <Impression id = "Impression"/>
+        <Creatives>
+            <Creative
+                id = "858460"
+                sequence = "1"
+                AdID = "858460">
+                <Linear>
+                    <Duration/>
+                    <VideoClicks>
+                        <ClickTracking><![CDATA[ ]]></ClickTracking>
+                    </VideoClicks>
+                    <MediaFiles>
+                        <MediaFile
+                            id = "1322504"
+                            delivery = ""
+                            type = "video/x-mp4"
+                            bitrate = "494"
+                            width = "300"
+                            height = "252"><![CDATA[http://ds.serving-sys-dev4.com/instream/assets/baileys_5sec.mp4]]></MediaFile>
+                    </MediaFiles>
+                </Linear>
+            </Creative>
+            <Creative
+                id = "858460"
+                sequence = "3"
+                AdID = "858460">
+                <CompanionAds>
+                        <Companion
+                            id = "468426"
+                            width = "300"
+                            height = "250">
+                            <HTMLResource>
+                                <![CDATA[<iframe src="http://bs.serving-sys-dev4.com/BurstingPipe/adServer.bs?cn=rsb&c=28&pli=470314&PluID=0&w=300&h=250&ord=[timestamp]&ifrm=2&ucm=true&z=0" width=300 height=250 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0  scrolling=no bordercolor="#000000"></iframe>]]>
+                            </HTMLResource>
+                            <CompanionClickThrough><![CDATA[]]></CompanionClickThrough>
+                        </Companion>
+                    </CompanionAds>
+            </Creative>
+        </Creatives>
+    </InLine>
+</Ad>
+</VAST>
+
+
+
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyeblaster/example02-1.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyeblaster/example02-1.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyeblaster/example02-1.xml	(revision 7)
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<VAST version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd">
+ <Ad id = "467201">
+    <InLine>
+        <AdSystem>MediaMind</AdSystem>
+        <AdTitle>vast</AdTitle>
+        <Description>vast</Description>
+        <Survey/>
+
+        <Error/>
+        <Impression id = "Impression"/>
+        <Creatives>
+            <Creative
+                id = "858460"
+                sequence = "1"
+                AdID = "858460">
+                <Linear>
+                    <Duration/>
+                    <VideoClicks>
+                        <ClickTracking><![CDATA[ ]]></ClickTracking>
+                    </VideoClicks>
+
+                    <MediaFiles>
+                        <MediaFile
+                            id = "1322504"
+                            delivery = ""
+                            type = "video/x-mp4"
+                            bitrate = "494"
+                            width = "300"
+                            height = "252"><![CDATA[http://ds.serving-sys-dev4.com/instream/assets/baileys_5sec.mp4]]></MediaFile>
+                    </MediaFiles>
+                </Linear>
+            </Creative>
+			<Creative
+                    id = "858460"
+                    sequence = "4"
+                    AdID = "858460">
+				<NonLinearAds>
+                        <NonLinear
+                            id = "1239135"
+                            width = "600"
+                            minSuggestedDuration = "30"
+                            height = "450">
+                            <StaticResource creativeType = "application/x-shockwave-flash"><![CDATA[http://ds.serving-sys-dev4.com/instream/assets/Untitled-1.swf]]></StaticResource>
+
+                        </NonLinear>
+				   </NonLinearAds>
+                </Creative>
+
+            <Creative
+                id = "858460"
+                sequence = "3"
+                AdID = "858460">
+                <CompanionAds>
+                    <Companion
+                        id = "1544111"
+                        width = "85"
+                        height = "127">
+                        <StaticResource creativeType = "image/jpg"><![CDATA[http://ds.serving-sys-dev4.com/instream/assets/smallWorld.jpg]]></StaticResource>
+                    </Companion>
+                    <Companion
+                        id = "1544108"
+                        width = "128"
+                        height = "95">
+                        <StaticResource creativeType = "image/jpg"><![CDATA[http://ds.serving-sys-dev4.com/instream/assets/house.jpg]]></StaticResource>
+                    </Companion>
+                </CompanionAds>
+            </Creative>
+        </Creatives>
+    </InLine>
+</Ad>
+</VAST>
+
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyeblaster/example01.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyeblaster/example01.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyeblaster/example01.xml	(revision 7)
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<VAST version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd">
+ <Ad id = "467201">
+    <InLine>
+        <AdSystem>MediaMind</AdSystem>
+        <AdTitle>vast</AdTitle>
+        <Description>vast</Description>
+        <Survey/>
+
+        <Error/>
+        <Impression id = "Impression"/>
+        <Creatives>
+            <Creative
+                id = "858460"
+                sequence = "1"
+                AdID = "858460">
+                <Linear>
+                    <Duration/>
+                    <VideoClicks>
+                        <ClickTracking><![CDATA[ ]]></ClickTracking>
+                    </VideoClicks>
+
+                    <MediaFiles>
+                        <MediaFile
+                            id = "1322504"
+                            delivery = ""
+                            type = "video/x-mp4"
+                            bitrate = "494"
+                            width = "300"
+                            height = "252"><![CDATA[http://ds.serving-sys-dev4.com/instream/assets/baileys_5sec.mp4]]></MediaFile>
+                    </MediaFiles>
+                </Linear>
+            </Creative>
+			<Creative
+                    id = "858460"
+                    sequence = "4"
+                    AdID = "858460">
+				<NonLinearAds>
+                        <NonLinear
+                            id = "1239135"
+                            width = "600"
+                            minSuggestedDuration = "30"
+                            height = "450">
+                            <StaticResource creativeType = "application/x-shockwave-flash"><![CDATA[http://ds.serving-sys-dev4.com/instream/assets/Untitled-1.swf]]></StaticResource>
+
+                        </NonLinear>
+				   </NonLinearAds>
+                </Creative>
+
+            <Creative
+                id = "858460"
+                sequence = "3"
+                AdID = "858460">
+                <CompanionAds>
+                    <Companion
+                        id = "1544111"
+                        width = "85"
+                        height = "127">
+                        <CompanionClickThrough><![CDATA[www.yahoo.com]]></CompanionClickThrough>
+                        <StaticResource creativeType = "image/jpg"><![CDATA[http://ds.serving-sys-dev4.com/instream/assets/smallWorld.jpg]]></StaticResource>
+                    </Companion>
+                    <Companion
+                        id = "1544108"
+                        width = "128"
+                        height = "95">
+                        <CompanionClickThrough><![CDATA[www.google.com]]></CompanionClickThrough>
+                        <StaticResource creativeType = "image/jpg"><![CDATA[http://ds.serving-sys-dev4.com/instream/assets/house.jpg]]></StaticResource>
+                    </Companion>
+                </CompanionAds>
+            </Creative>
+        </Creatives>
+    </InLine>
+</Ad>
+</VAST>
+
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyeblaster/example02-2.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyeblaster/example02-2.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyeblaster/example02-2.xml	(revision 7)
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<VAST version="2.0">
+    <Ad id="468365">
+        <InLine>
+            <AdSystem>
+                MediaMind
+            </AdSystem>
+            <AdTitle>
+                In Stream Scope Complete 22.6.10
+            </AdTitle>
+            <Description>
+
+                In Stream Scope Complete 22.6.10
+            </Description>
+            <Survey />
+            <Error />
+            <Creatives>
+                <Creative id="863191" sequence="1" AdID="863191">
+                    <Linear>
+                        <MediaFiles>
+                            <MediaFile
+                            id = "1322504"
+                            delivery = ""
+                            type = "video/x-mp4"
+                            bitrate = "494"
+                            width = "300"
+                            height = "252"><![CDATA[http://ds.serving-sys-dev4.com/instream/assets/baileys_5sec.mp4]]></MediaFile>
+
+                        </MediaFiles>
+                    </Linear>
+                </Creative>
+                <Creative id="863191" sequence="1" AdID="863191">
+                    <NonLinearAds>
+                        <NonLinear id="1576739" width="600" height="200">
+                            <StaticResource creativeType="application/x-shockwave-flash">
+                                <![CDATA[http://ds.serving-sys-dev4.com/BurstingCachedScripts/res/ebAdLoader.swf?adData=http://ds.serving-sys-dev4.com/BurstingRes/Site-14718/Type-24/863191_1bdf99ab-28df-49ab-9df5-0f492b59b68d_AdData.xml&ResourceID=1576739&isPreview=false]]>
+                            </StaticResource>
+
+                        </NonLinear>
+                    </NonLinearAds>
+                </Creative>
+                <Creative id="863191" sequence="1" AdID="863191">
+                    <CompanionAds>
+                        <Companion
+                        id = "1544108"
+                        width = "128"
+                        height = "95">
+                        <StaticResource creativeType = "image/jpg"><![CDATA[http://ds.serving-sys-dev4.com/instream/assets/house.jpg]]></StaticResource>
+                    </Companion>
+                    </CompanionAds>
+
+                </Creative>
+            </Creatives>
+        </InLine>
+    </Ad>
+</VAST>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyeblaster/example02.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyeblaster/example02.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyeblaster/example02.xml	(revision 7)
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<VAST version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd">
+ <Ad id = "467201">
+    <InLine>
+        <AdSystem>MediaMind</AdSystem>
+        <AdTitle>vast</AdTitle>
+        <Description>vast</Description>
+        <Survey/>
+
+        <Error/>
+        <Impression id = "Impression"/>
+        <Creatives>
+            <Creative
+                id = "858460"
+                sequence = "1"
+                AdID = "858460">
+                <Linear>
+                    <Duration/>
+                    <VideoClicks>
+                        <ClickTracking><![CDATA[ ]]></ClickTracking>
+                    </VideoClicks>
+
+                    <MediaFiles>
+                        <MediaFile
+                            id = "1322504"
+                            delivery = ""
+                            type = "video/x-mp4"
+                            bitrate = "494"
+                            width = "300"
+                            height = "252"><![CDATA[http://ds.serving-sys-dev4.com/instream/assets/baileys_5sec.mp4]]></MediaFile>
+                    </MediaFiles>
+                </Linear>
+            </Creative>
+			<Creative
+                    id = "858460"
+                    sequence = "4"
+                    AdID = "858460">
+			<NonLinearAds>
+                        <NonLinear
+                            id = "1239135"
+                            width = "450"
+                            minSuggestedDuration = "30"
+                            height = "50">
+                            <StaticResource creativeType = "application/x-shockwave-flash"><![CDATA[http://ds.serving-sys-dev4.com/instream/assets/450x50_flash_banner_3.swf]]></StaticResource>
+
+                        </NonLinear>
+						   </NonLinearAds>
+                </Creative>
+
+            <Creative
+                id = "858460"
+                sequence = "3"
+                AdID = "858460">
+                <CompanionAds>
+                    <Companion
+                        id = "1544111"
+                        width = "85"
+                        height = "127">
+                        <StaticResource creativeType = "image/jpg"><![CDATA[http://ds.serving-sys-dev4.com/instream/assets/smallWorld.jpg]]></StaticResource>
+                    </Companion>
+                    <Companion
+                        id = "1544108"
+                        width = "128"
+                        height = "95">
+
+                        <StaticResource creativeType = "image/jpg"><![CDATA[http://ds.serving-sys-dev4.com/instream/assets/house.jpg]]></StaticResource>
+                    </Companion>
+                </CompanionAds>
+            </Creative>
+        </Creatives>
+    </InLine>
+</Ad>
+</VAST>
+
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyeblaster/example02-4.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyeblaster/example02-4.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyeblaster/example02-4.xml	(revision 7)
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<VAST version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd">
+ <Ad id = "467201">
+    <InLine>
+        <AdSystem>MediaMind</AdSystem>
+        <AdTitle>vast</AdTitle>
+        <Description>vast</Description>
+        <Survey/>
+
+        <Error/>
+        <Impression id = "Impression"/>
+        <Creatives>
+			<Creative
+                    id = "858460"
+                    sequence = "4"
+                    AdID = "858460">
+			<NonLinearAds>
+                        <NonLinear
+                            id = "1239135"
+                             width = "128"
+                        height = "95">
+                            <StaticResource creativeType = "image/jpg"><![CDATA[http://ds.serving-sys-dev4.com/instream/assets/house.jpg]]></StaticResource>
+                        </NonLinear>
+						   </NonLinearAds>
+
+                </Creative>
+            <Creative
+                id = "858460"
+                sequence = "3"
+                AdID = "858460">
+                <CompanionAds>
+                    <Companion
+                        id = "1544111"
+                        width = "85"
+                        height = "127">
+                        <StaticResource creativeType = "image/jpg"><![CDATA[http://ds.serving-sys-dev4.com/instream/assets/smallWorld.jpg]]></StaticResource>
+                    </Companion>
+                    <Companion
+                        id = "1544108"
+                        width = "128"
+                        height = "95">
+                        <StaticResource creativeType = "image/jpg"><![CDATA[http://ds.serving-sys-dev4.com/instream/assets/house.jpg]]></StaticResource>
+                    </Companion>
+
+                </CompanionAds>
+            </Creative>
+        </Creatives>
+    </InLine>
+</Ad>
+</VAST>
+
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/doubleclick/dart-wrapper.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/doubleclick/dart-wrapper.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/doubleclick/dart-wrapper.xml	(revision 7)
@@ -0,0 +1,53 @@
+<VideoAdServingTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd">
+      <Ad id="preroll">
+		<Wrapper xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+			<AdSystem>DART</AdSystem>
+			<VASTAdTagURL>
+				<URL><![CDATA[http://static.openvideoads.org/tests/dart.xml]]></URL>
+			</VASTAdTagURL>
+			<Impression>
+				<URL id="DART_DFP"><![CDATA[http://ad.doubleclick.net/imp;v7;x;211401523;0-0;1;13452535;468/60;30037037/30054914/1;;~aopt=2/1/ff/1;~okv=;kw=angelaredirect;sz=468x60;dcmt=text/html;~cs=w%3fhttp://s0.2mdn.net/dot.gif]]></URL>
+			</Impression>
+			<TrackingEvents>
+				<Tracking event="start">
+					<URL id="DART_DFP"><![CDATA[http://ad.doubleclick.net/activity;src=1248596;met=1;v=1;pid=13452535;aid=211401523;ko=1;cid=30037037;rid=30054914;rv=1;timestamp=3834132;eid1=11;ecn1=1;etm1=0;]]></URL>
+				</Tracking>
+				<Tracking event="stop">
+					<URL id="DART_DFP"><![CDATA[http://ad.doubleclick.net/activity;src=1248596;met=1;v=1;pid=13452535;aid=211401523;ko=1;cid=30037037;rid=30054914;rv=1;timestamp=3834132;eid1=20;ecn1=1;etm1=0;]]></URL>
+				</Tracking>
+				<Tracking event="midpoint">
+					<URL id="DART_DFP"><![CDATA[http://ad.doubleclick.net/activity;src=1248596;met=1;v=1;pid=13452535;aid=211401523;ko=1;cid=30037037;rid=30054914;rv=1;timestamp=3834132;eid1=18;ecn1=1;etm1=0;]]></URL>
+				</Tracking>
+				<Tracking event="complete">
+					<URL id="DART_DFP"><![CDATA[http://ad.doubleclick.net/activity;src=1248596;met=1;v=1;pid=13452535;aid=211401523;ko=1;cid=30037037;rid=30054914;rv=1;timestamp=3834132;eid1=13;ecn1=1;etm1=0;]]></URL>
+				</Tracking>
+				<Tracking event="mute">
+					<URL id="DART_DFP"><![CDATA[http://ad.doubleclick.net/activity;src=1248596;met=1;v=1;pid=13452535;aid=211401523;ko=1;cid=30037037;rid=30054914;rv=1;timestamp=3834132;eid1=16;ecn1=1;etm1=0;]]></URL>
+				</Tracking>
+				<Tracking event="pause">
+					<URL id="DART_DFP"><![CDATA[http://ad.doubleclick.net/activity;src=1248596;met=1;v=1;pid=13452535;aid=211401523;ko=1;cid=30037037;rid=30054914;rv=1;timestamp=3834132;eid1=15;ecn1=1;etm1=0;]]></URL>
+				</Tracking>
+				<Tracking event="replay">
+					<URL id="DART_DFP"><![CDATA[http://ad.doubleclick.net/activity;src=1248596;met=1;v=1;pid=13452535;aid=211401523;ko=1;cid=30037037;rid=30054914;rv=1;timestamp=3834132;eid1=17;ecn1=1;etm1=0;]]></URL>
+				</Tracking>
+				<Tracking event="fullscreen">
+					<URL id="DART_DFP"><![CDATA[http://ad.doubleclick.net/activity;src=1248596;met=1;v=1;pid=13452535;aid=211401523;ko=1;cid=30037037;rid=30054914;rv=1;timestamp=3834132;eid1=19;ecn1=1;etm1=0;]]></URL>
+				</Tracking>
+			</TrackingEvents>
+			<VideoClicks>
+				<ClickTracking>
+					<URL id="DART_DFP"><![CDATA[http://ad.doubleclick.net/click%3Bh%3Dv8/3947/3/0/%2a/v%3B211401523%3B0-0%3B1%3B13452535%3B1-468/60%3B30037037/30054914/1%3B%3B%7Eaopt%3D2/1/ff/1%3B%7Esscs%3D%3fhttp://s0.2mdn.net/dot.gif]]></URL>
+				</ClickTracking>
+			</VideoClicks>
+			<Extensions>
+				<Extension type="dart">
+					<AdServingData>
+						<DeliveryData>
+							<GeoData><![CDATA[ct=UK&st=&ac=20&zp=&bw=2&dma=0&city=3711]]></GeoData>
+						</DeliveryData>
+					</AdServingData>
+				</Extension>
+			</Extensions>
+		</Wrapper>
+      </Ad>
+</VideoAdServingTemplate>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/doubleclick/dart.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/doubleclick/dart.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/doubleclick/dart.xml	(revision 7)
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<VideoAdServingTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd">
+  <Ad id="">
+	<InLine xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+		<AdSystem>DART</AdSystem>
+		<AdTitle>In-Stream Video</AdTitle>
+		<Description/>
+		<Survey>
+			<URL><![CDATA[]]></URL>
+		</Survey>
+		<Impression>
+			<URL id="DART_DFA"><![CDATA[http://ad.doubleclick.net/imp;v7;x;213149314;0-0;0;33418618;0/0;30756858/30774734/1;;~aopt=0/0/ff/0;~cs=b%3fhttp://s0.2mdn.net/dot.gif]]></URL>
+			<URL id="anotheradsever"><![CDATA[]]></URL>
+		</Impression>
+		<TrackingEvents>
+			<Tracking event="start">
+				<URL id="DART_DFA"><![CDATA[http://ad.doubleclick.net/activity;src=1379578;met=1;v=1;pid=33418618;aid=213149314;ko=0;cid=30756858;rid=30774734;rv=1;timestamp=5695755;eid1=11;ecn1=1;etm1=0;]]></URL> <URL id="anotheradsever"><![CDATA[]]></URL> </Tracking> <Tracking event="midpoint"> <URL id="DART_DFA"><![CDATA[http://ad.doubleclick.net/activity;src=1379578;met=1;v=1;pid=33418618;aid=213149314;ko=0;cid=30756858;rid=30774734;rv=1;timestamp=5695755;eid1=18;ecn1=1;etm1=0;]]></URL> <URL id="anotheradsever"><![CDATA[]]></URL>
+			</Tracking>
+			<Tracking event="firstQuartile">
+				<URL id="anotheradsever"><![CDATA[]]></URL>
+			</Tracking> <Tracking event="thirdQuartile">
+				<URL id="anotheradsever"><![CDATA[]]></URL>
+			</Tracking>
+			<Tracking event="complete">
+				<URL id="DART_DFA"><![CDATA[http://ad.doubleclick.net/activity;src=1379578;met=1;v=1;pid=33418618;aid=213149314;ko=0;cid=30756858;rid=30774734;rv=1;timestamp=5695755;eid1=13;ecn1=1;etm1=0;]]></URL> <URL id="anotheradsever"><![CDATA[]]></URL>
+			</Tracking>
+			<Tracking event="mute">
+				<URL id="DART_DFA"><![CDATA[http://ad.doubleclick.net/activity;src=1379578;met=1;v=1;pid=33418618;aid=213149314;ko=0;cid=30756858;rid=30774734;rv=1;timestamp=5695755;eid1=16;ecn1=1;etm1=0;]]></URL> <URL id="anotheradsever"><![CDATA[]]></URL>
+			</Tracking>
+			<Tracking event="pause">
+				<URL id="DART_DFA"><![CDATA[http://ad.doubleclick.net/activity;src=1379578;met=1;v=1;pid=33418618;aid=213149314;ko=0;cid=30756858;rid=30774734;rv=1;timestamp=5695755;eid1=15;ecn1=1;etm1=0;]]></URL> <URL id="anotheradsever"><![CDATA[]]></URL>
+			</Tracking> <Tracking event="replay">
+				<URL id="DART_DFA"><![CDATA[http://ad.doubleclick.net/activity;src=1379578;met=1;v=1;pid=33418618;aid=213149314;ko=0;cid=30756858;rid=30774734;rv=1;timestamp=5695755;eid1=17;ecn1=1;etm1=0;]]></URL> <URL id="anotheradsever"><![CDATA[]]></URL>
+			</Tracking>
+			<Tracking event="fullscreen">
+				<URL id="DART_DFA"><![CDATA[http://ad.doubleclick.net/activity;src=1379578;met=1;v=1;pid=33418618;aid=213149314;ko=0;cid=30756858;rid=30774734;rv=1;timestamp=5695755;eid1=19;ecn1=1;etm1=0;]]></URL> <URL id="anotheradsever"><![CDATA[]]></URL>
+			</Tracking>
+			<Tracking event="stop">
+				<URL id="DART_DFA"><![CDATA[http://ad.doubleclick.net/activity;src=1379578;met=1;v=1;pid=33418618;aid=213149314;ko=0;cid=30756858;rid=30774734;rv=1;timestamp=5695755;eid1=20;ecn1=1;etm1=0;]]></URL> <URL id="anotheradsever"><![CDATA[]]></URL>
+			</Tracking>
+		</TrackingEvents>
+		<Video>
+			<Duration>00:00:12</Duration>
+			<AdID/>
+			<AdParameters apiFramework="FlashVars"/>
+			<VideoClicks>
+				<ClickThrough>
+					<URL id="DART_DFA"><![CDATA[http://google.com]]></URL>
+				</ClickThrough>
+				<ClickTracking>
+					<URL id="DART_DFA"><![CDATA[http://ad.doubleclick.net/click%3Bh%3Dv8/3947/3/0/%2a/r%3B213149314%3B0-0%3B0%3B33418618%3B255-0/0%3B30756858/30774734/1%3B%3B%7Eaopt%3D0/0/ff/0%3B%7Esscs%3D%3fhttp://s0.2mdn.net/dot.gif]]></URL>
+					<URL id="anotheradsever"><![CDATA[]]></URL>
+				</ClickTracking>
+				<CustomClick>
+					<URL id="anotheradsever"><![CDATA[]]></URL>
+				</CustomClick>
+			</VideoClicks>
+			<MediaFiles>
+				<MediaFile id="1" delivery="progressive" bitrate="475" width="480" height="272" type="video/x-flv">
+					<URL><![CDATA[http://gcdn.2mdn.net/MotifFiles/html/1379578/PID_938961_1237818260000_women.flv]]></URL>
+				</MediaFile>
+			</MediaFiles>
+		</Video>
+		<CompanionAds/>
+		<NonLinearAds/>
+		<Extensions>
+			<Extension type="dart">
+				<AdServingData>
+					<DeliveryData>
+						<GeoData><![CDATA[ct=UK&st=&ac=20&zp=&bw=2&dma=0&city=3711]]></GeoData>
+					</DeliveryData>
+				</AdServingData>
+			</Extension>
+		</Extensions>
+	</InLine>
+  </Ad>
+</VideoAdServingTemplate>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyewonder/vpaid-non-linear-01.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyewonder/vpaid-non-linear-01.xml	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyewonder/vpaid-non-linear-01.xml	(revision 383)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VAST version="2.0">
+  <Ad id="linear-1">
+    <InLine>
+      <AdSystem>OVA Static Template</AdSystem>
+      <AdTitle>VPAID Linear Ad</AdTitle>
+      <Impression>
+        <URL id="test"><![CDATA[http://localhost/log?impression]]></URL>
+      </Impression>
+      <Creatives>
+        <Creative>
+          <Linear>
+              <Duration>00:00:00</Duration>
+		      <TrackingEvents>
+ 		        <Tracking event="creativeView">http://localhost/log?creativeView</Tracking>
+ 		        <Tracking event="start">http://localhost/log?start</Tracking>
+		        <Tracking event="firstQuartile">http://localhost/log?firstQuartile</Tracking>
+		        <Tracking event="midpoint">http://localhost/log?midpoint</Tracking>
+		        <Tracking event="thirdQuartile">http://localhost/log?thirdQuartile</Tracking>
+		        <Tracking event="complete">http://localhost/log?complete</Tracking>
+		        <Tracking event="pause">http://localhost/log?pause</Tracking>
+		        <Tracking event="resume">http://localhost/log?resume</Tracking>
+		        <Tracking event="rewind">http://localhost/log?rewind</Tracking>
+		        <Tracking event="mute">http://localhost/log?mute</Tracking>
+		        <Tracking event="unmute">http://localhost/log?unmute</Tracking>
+		        <Tracking event="fullscreen">http://localhost/log?fullscreen</Tracking>
+		        <Tracking event="expand">http://localhost/log?expand</Tracking>
+		        <Tracking event="collapse">http://localhost/log?collapse</Tracking>
+		        <Tracking event="acceptInvitation">http://localhost/log?acceptInvitation</Tracking>
+		        <Tracking event="close">http://localhost/log?close</Tracking>
+		      </TrackingEvents>
+              <MediaFiles>
+                 <MediaFile height="270" width="370" type="application/x-shockwave-flash" apiFramework="VPAID">
+	                 <![CDATA[http://cdn1.eyewonder.com/200125/instream/_modules/loaders/Custom/VPAID_as3/loader.swf?adLoaderWidth=320&adLoaderHeight=240&cp=http://cdn1.eyewonder.com/200125/752457/1224933/&loaderCreative=Ticker_Holder_as3.swf%3Fcp%3Dhttp%3A//cdn1.eyewonder.com/200125/752457/1224933/%26ewbase%3Dhttp%3A//cdn1.eyewonder.com/200125/752457/1224933/%26adLoaderWidth%3D320%26adLoaderHeight%3D240%26hAlign%3Dcenter%26vAlign%3Dbottom%26keywordNames%3DenableFriendlyIframe%2Cinflow_iframe_div%26keywordIDs%3D[48]%2C[52]%26ewbust%3D[timestamp]&adInstreamType=ticker&adTagAlignHorizontal=center&adTagAlignVertical=bottom&adMode=prog&qaReportUUID=common]]>
+                 </MediaFile>
+              </MediaFiles>
+           </Linear>
+        </Creative>
+      </Creatives>
+    </InLine>
+  </Ad>
+</VAST>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyewonder/vpaid-linear-01.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyewonder/vpaid-linear-01.xml	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyewonder/vpaid-linear-01.xml	(revision 383)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VAST version="2.0">
+  <Ad id="linear-1">
+    <InLine>
+      <AdSystem>OVA Static Template</AdSystem>
+      <AdTitle>VPAID Linear Ad</AdTitle>
+      <Impression>
+        <URL id="test"><![CDATA[http://localhost/log?impression]]></URL>
+      </Impression>
+      <Creatives>
+        <Creative>
+          <Linear>
+              <Duration>00:00:00</Duration>
+		      <TrackingEvents>
+ 		        <Tracking event="creativeView">http://localhost/log?creativeView</Tracking>
+ 		        <Tracking event="start">http://localhost/log?start</Tracking>
+		        <Tracking event="firstQuartile">http://localhost/log?firstQuartile</Tracking>
+		        <Tracking event="midpoint">http://localhost/log?midpoint</Tracking>
+		        <Tracking event="thirdQuartile">http://localhost/log?thirdQuartile</Tracking>
+		        <Tracking event="complete">http://localhost/log?complete</Tracking>
+		        <Tracking event="pause">http://localhost/log?pause</Tracking>
+		        <Tracking event="resume">http://localhost/log?resume</Tracking>
+		        <Tracking event="rewind">http://localhost/log?rewind</Tracking>
+		        <Tracking event="mute">http://localhost/log?mute</Tracking>
+		        <Tracking event="unmute">http://localhost/log?unmute</Tracking>
+		        <Tracking event="fullscreen">http://localhost/log?fullscreen</Tracking>
+		        <Tracking event="expand">http://localhost/log?expand</Tracking>
+		        <Tracking event="collapse">http://localhost/log?collapse</Tracking>
+		        <Tracking event="acceptInvitation">http://localhost/log?acceptInvitation</Tracking>
+		        <Tracking event="close">http://localhost/log?close</Tracking>
+		      </TrackingEvents>
+              <MediaFiles>
+                 <MediaFile height="270" width="370" type="application/x-shockwave-flash" apiFramework="VPAID">
+	                 <![CDATA[http://cdn1.eyewonder.com/200125/instream/documentation_test_tags/vpaid/as3/VPAID_2_0.swf?adLoaderWidth=320&adLoaderHeight=240&cp=http://cdn.eyewonder.com/100125/754851/1262098/&loaderCreative=Linear_Interactive_Holder_as3.swf%3Fcp%3Dhttp://cdn.eyewonder.com/100125/754851/1262098/%26ewbase%3Dhttp://cdn.eyewonder.com/100125/754851/1262098/%26adLoaderWidth%3D300%26adLoaderHeight%3D225%26hAlign%3Dcenter%26vAlign%3Dmiddle%26keywordNames%3Dinstream_VAST_2_0_TEST%26keywordIDs%3D[103]%26ewbust%3D[timestamp]&adInstreamType=fixedroll&adTagAlignHorizontal=center&adTagAlignVertical=middle&adMode=prog&qaReportUUID=common]]>
+                 </MediaFile>
+              </MediaFiles>
+           </Linear>
+        </Creative>
+      </Creatives>
+    </InLine>
+  </Ad>
+</VAST>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyewonder/vpaid-linear-02.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyewonder/vpaid-linear-02.xml	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/eyewonder/vpaid-linear-02.xml	(revision 383)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VAST version="2.0">
+  <Ad id="linear-1">
+    <InLine>
+      <AdSystem>OVA Static Template</AdSystem>
+      <AdTitle>VPAID Linear Ad</AdTitle>
+      <Impression>
+        <URL id="test"><![CDATA[http://localhost/log?impression]]></URL>
+      </Impression>
+      <Creatives>
+        <Creative>
+          <Linear>
+              <Duration>00:00:00</Duration>
+		      <TrackingEvents>
+ 		        <Tracking event="creativeView">http://localhost/log?creativeView</Tracking>
+ 		        <Tracking event="start">http://localhost/log?start</Tracking>
+		        <Tracking event="firstQuartile">http://localhost/log?firstQuartile</Tracking>
+		        <Tracking event="midpoint">http://localhost/log?midpoint</Tracking>
+		        <Tracking event="thirdQuartile">http://localhost/log?thirdQuartile</Tracking>
+		        <Tracking event="complete">http://localhost/log?complete</Tracking>
+		        <Tracking event="pause">http://localhost/log?pause</Tracking>
+		        <Tracking event="resume">http://localhost/log?resume</Tracking>
+		        <Tracking event="rewind">http://localhost/log?rewind</Tracking>
+		        <Tracking event="mute">http://localhost/log?mute</Tracking>
+		        <Tracking event="unmute">http://localhost/log?unmute</Tracking>
+		        <Tracking event="fullscreen">http://localhost/log?fullscreen</Tracking>
+		        <Tracking event="expand">http://localhost/log?expand</Tracking>
+		        <Tracking event="collapse">http://localhost/log?collapse</Tracking>
+		        <Tracking event="acceptInvitation">http://localhost/log?acceptInvitation</Tracking>
+		        <Tracking event="close">http://localhost/log?close</Tracking>
+		      </TrackingEvents>
+              <MediaFiles>
+                 <MediaFile height="270" width="370" type="application/x-shockwave-flash" apiFramework="VPAID">
+	                 <![CDATA[http://cdn1.eyewonder.com/200125/instream/_modules/loaders/Custom/VPAID_as3/loader.swf?adLoaderWidth=300&adLoaderHeight=225&cp=http://cdn.eyewonder.com/100125/754851/1242700/&loaderCreative=Linear_Holder_as3.swf%3Fcp%3Dhttp%3A//cdn.eyewonder.com/100125/754851/1242700/%26amp%3Bewbase%3Dhttp%3A//cdn.eyewonder.com/100125/754851/1242700/%26amp%3BadLoaderWidth%3D300%26amp%3BadLoaderHeight%3D225%26amp%3BhAlign%3Dcenter%26amp%3BvAlign%3Dmiddle%26amp%3BkeywordNames%3DenableFriendlyIframe%2Cinflow_iframe_div%26amp%3BkeywordIDs%3D%5B48%5D%2C%5B52%5D%26amp%3Bewbust%3D%5Btimestamp%5D&adInstreamType=fixedroll&adTagAlignHorizontal=center&adTagAlignVertical=middle&adMode=prog&qaReportUUID=common]]>
+                 </MediaFile>
+              </MediaFiles>
+           </Linear>
+        </Creative>
+      </Creatives>
+    </InLine>
+  </Ad>
+</VAST>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/scanscout/example05.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/scanscout/example05.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/scanscout/example05.xml	(revision 7)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VAST version="2.0">
+  <Ad id="preroll-1">
+    <InLine>
+      <AdSystem>2.0</AdSystem>
+      <AdTitle>5773100</AdTitle>
+      <Creatives>
+        <Creative>
+          <Linear>
+
+            <Duration>00:00:01</Duration>
+            <MediaFiles>
+              <MediaFile height="270" width="370" type="application/x-shockwave-flash"><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3Dnull%26HI%3D567|preroll|7496075541100999745%26AI%3D0]]></MediaFile>
+            </MediaFiles>
+          </Linear>
+          <CompanionAds>
+            <Companion height="250" width="300" id="573242">
+              <HTMLResource><![CDATA[<A onClick="var i= new Image(1,1); i.src='http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&RI=573242&CbC=1&CbF=true&EC=0&RC=0&SmC=2&CbM=1.0E-5&VI=44cfc3b2382300cb751ba129fe51f46a&admode=preroll&PRI=7496075541100999745&RprC=5&ADsn=20&VcaI=192,197&RrC=1&VgI=44cfc3b2382300cb751ba129fe51f46a&AVI=142&Ust=ma&Uctry=us&CI=1247549&AC=4&PI=567&Udma=506&ADI=5773100&VclF=true';" HREF="http://vaseline.com" target="_blank">
+<IMG SRC="http://media.scanscout.com/ads/vaseline300x250Companion.jpg" BORDER=0 WIDTH=300 HEIGHT=250 ALT="Click Here">
+</A>
+<img src="http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&RI=573242&CbC=1&CbF=true&EC=1&RC=0&SmC=2&CbM=1.0E-5&VI=44cfc3b2382300cb751ba129fe51f46a&admode=preroll&PRI=7496075541100999745&RprC=5&ADsn=20&VcaI=192,197&RrC=1&VgI=44cfc3b2382300cb751ba129fe51f46a&AVI=142&Ust=ma&Uctry=us&CI=1247549&AC=4&PI=567&Udma=506&ADI=5773100&VclF=true" height="1" width="1">]]></HTMLResource>
+            </Companion>
+          </CompanionAds>
+        </Creative>
+      </Creatives>
+    </InLine>
+  </Ad>
+</VAST>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/scanscout/example06.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/scanscout/example06.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/scanscout/example06.xml	(revision 7)
@@ -0,0 +1,155 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VAST version="2.0">
+  <Ad id="overlay-1">
+    <InLine>
+      <AdSystem>2.0</AdSystem>
+      <AdTitle>5750096</AdTitle>
+      <Creatives>
+        <Creative>
+          <NonLinearAds>
+            <NonLinear apiFramework="VPAID" id="overlay-1">
+              <StaticResource creativeType="application/x-shockwave-flash"><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3Dnull%26HI%3D567|overlay|8007663508947291089%26AI%3D0]]></StaticResource>
+            </NonLinear>
+          </NonLinearAds>
+        </Creative>
+      </Creatives>
+    </InLine>
+  </Ad>
+  <Ad id="overlay-2">
+    <InLine>
+      <AdSystem>2.0</AdSystem>
+      <AdTitle>5750094</AdTitle>
+      <Creatives>
+        <Creative>
+          <NonLinearAds>
+            <NonLinear apiFramework="VPAID" id="overlay-2">
+              <StaticResource creativeType="application/x-shockwave-flash"><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3Dnull%26HI%3D567|overlay|8007663508947291089%26AI%3D1]]></StaticResource>
+            </NonLinear>
+          </NonLinearAds>
+        </Creative>
+      </Creatives>
+    </InLine>
+  </Ad>
+  <Ad id="overlay-3">
+    <InLine>
+      <AdSystem>2.0</AdSystem>
+      <AdTitle>5750101</AdTitle>
+      <Creatives>
+        <Creative>
+          <NonLinearAds>
+            <NonLinear apiFramework="VPAID" id="overlay-3">
+              <StaticResource creativeType="application/x-shockwave-flash"><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3Dnull%26HI%3D567|overlay|8007663508947291089%26AI%3D2]]></StaticResource>
+            </NonLinear>
+          </NonLinearAds>
+        </Creative>
+      </Creatives>
+    </InLine>
+  </Ad>
+  <Ad id="overlay-4">
+    <InLine>
+      <AdSystem>2.0</AdSystem>
+      <AdTitle>5700029</AdTitle>
+      <Creatives>
+        <Creative>
+          <NonLinearAds>
+            <NonLinear apiFramework="VPAID" id="overlay-4">
+              <StaticResource creativeType="application/x-shockwave-flash"><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3Dnull%26HI%3D567|overlay|8007663508947291089%26AI%3D3]]></StaticResource>
+            </NonLinear>
+          </NonLinearAds>
+        </Creative>
+      </Creatives>
+    </InLine>
+  </Ad>
+  <Ad id="overlay-5">
+    <InLine>
+      <AdSystem>2.0</AdSystem>
+      <AdTitle>5750093</AdTitle>
+      <Creatives>
+        <Creative>
+          <NonLinearAds>
+            <NonLinear apiFramework="VPAID" id="overlay-5">
+              <StaticResource creativeType="application/x-shockwave-flash"><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3Dnull%26HI%3D567|overlay|8007663508947291089%26AI%3D4]]></StaticResource>
+            </NonLinear>
+          </NonLinearAds>
+        </Creative>
+      </Creatives>
+    </InLine>
+  </Ad>
+  <Ad id="overlay-6">
+    <InLine>
+      <AdSystem>2.0</AdSystem>
+      <AdTitle>5748118</AdTitle>
+      <Creatives>
+        <Creative>
+          <NonLinearAds>
+            <NonLinear apiFramework="VPAID" id="overlay-6">
+              <StaticResource creativeType="application/x-shockwave-flash"><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3Dnull%26HI%3D567|overlay|8007663508947291089%26AI%3D5]]></StaticResource>
+            </NonLinear>
+          </NonLinearAds>
+        </Creative>
+      </Creatives>
+    </InLine>
+  </Ad>
+  <Ad id="overlay-7">
+    <InLine>
+      <AdSystem>2.0</AdSystem>
+      <AdTitle>5700030</AdTitle>
+      <Creatives>
+        <Creative>
+          <NonLinearAds>
+            <NonLinear apiFramework="VPAID" id="overlay-7">
+              <StaticResource creativeType="application/x-shockwave-flash"><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3Dnull%26HI%3D567|overlay|8007663508947291089%26AI%3D6]]></StaticResource>
+            </NonLinear>
+          </NonLinearAds>
+        </Creative>
+      </Creatives>
+    </InLine>
+  </Ad>
+  <Ad id="overlay-8">
+    <InLine>
+      <AdSystem>2.0</AdSystem>
+      <AdTitle>5750098</AdTitle>
+      <Creatives>
+        <Creative>
+          <NonLinearAds>
+            <NonLinear apiFramework="VPAID" id="overlay-8">
+              <StaticResource creativeType="application/x-shockwave-flash"><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3Dnull%26HI%3D567|overlay|8007663508947291089%26AI%3D7]]></StaticResource>
+            </NonLinear>
+          </NonLinearAds>
+        </Creative>
+      </Creatives>
+    </InLine>
+  </Ad>
+  <Ad id="overlay-9">
+    <InLine>
+      <AdSystem>2.0</AdSystem>
+      <AdTitle>5750091</AdTitle>
+      <Creatives>
+        <Creative>
+          <NonLinearAds>
+            <NonLinear apiFramework="VPAID" id="overlay-9">
+              <StaticResource creativeType="application/x-shockwave-flash"><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3Dnull%26HI%3D567|overlay|8007663508947291089%26AI%3D8]]></StaticResource>
+            </NonLinear>
+          </NonLinearAds>
+        </Creative>
+      </Creatives>
+    </InLine>
+  </Ad>
+  <Ad id="overlay-10">
+    <InLine>
+      <AdSystem>2.0</AdSystem>
+      <AdTitle>5750089</AdTitle>
+      <Creatives>
+        <Creative>
+          <NonLinearAds>
+            <NonLinear apiFramework="VPAID" id="overlay-10">
+              <StaticResource creativeType="application/x-shockwave-flash"><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3Dnull%26HI%3D567|overlay|8007663508947291089%26AI%3D9]]></StaticResource>
+            </NonLinear>
+          </NonLinearAds>
+        </Creative>
+      </Creatives>
+    </InLine>
+  </Ad>
+</VAST>
+
+
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/scanscout/example01.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/scanscout/example01.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/scanscout/example01.xml	(revision 7)
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VideoAdServingTemplate>
+  <Ad id="preroll-1">
+    <InLine>
+      <AdSystem>scanscout</AdSystem>
+      <AdTitle>5700147</AdTitle>
+      <Impression>
+        <URL id="comscore"><![CDATA[http://b.scorecardresearch.com/b?C1=1&C2=6000003&C3=0000000200500000197000000&C4=us&C7=http://www.scanscout.com&C8=scanscout.com&C9=http://www.scanscout.com&C10=xn&rn=-1946315152]]></URL>
+        <URL id="comscore"><![CDATA[http://beacon.securestudies.com/scripts/beacon.dll?C1=1&C2=6000003&C3=&C4=&C5=070000&C6=2005&C7=&rn=149424314]]></URL>
+
+        <URL><![CDATA[http://domdex.com/l?c=26]]></URL>
+        <URL id="scanscout"><![CDATA[http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&CbC=1&CbF=true&EC=3&RC=3&SmC=2&AmN=1&CbM=1.0E-5&VI=5a33ec4ffcdc3cab1c5680270a506db2&admode=preroll&PRI=4789421146443017981&RvN=1&RprC=0&ADsn=15&VcaI=192,197&RrC=0&VgI=5a33ec4ffcdc3cab1c5680270a506db2&SfF=true&AVI=142&Ust=ma&Uctry=us&CI=1177822&AC=4&PI=567&Udma=506&ADI=5700147&VclF=true]]></URL>
+        <URL id="external"><![CDATA[http://demo.scanscout.com/product/trackingPixel.png]]></URL>
+        <URL id="comscore"><![CDATA[http://b.scorecardresearch.com/b?C1=1&C2=6000003&C3=0000117782200000197000000&C4=us&C7=http://www.scanscout.com&C8=scanscout.com&C9=http://www.scanscout.com&C10=xn&rn=-1262573570]]></URL>
+        <URL id="comscore"><![CDATA[http://beacon.securestudies.com/scripts/beacon.dll?C1=1&C2=6000003&C3=&C4=&C5=010000&C6=1177822&C7=&rn=2041004021]]></URL>
+      </Impression>
+      <TrackingEvents>
+        <Tracking event="start">
+          <URL id="scanscout"><![CDATA[http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&CbC=1&CbF=true&vastrequest=true&EC=7&RC=3&SmC=2&CbM=1.0E-5&VI=5a33ec4ffcdc3cab1c5680270a506db2&admode=preroll&PRI=4789421146443017981&RprC=0&ADsn=15&Eipct=0&VcaI=192,197&RrC=0&VgI=5a33ec4ffcdc3cab1c5680270a506db2&AVI=142&Ust=ma&Uctry=us&CI=1177822&AC=4&PI=567&Udma=506&ADI=5700147&EiN=1&VclF=true]]></URL>
+
+          <URL id="external"><![CDATA[http://demo.scanscout.com/product/trackingPixel.png?type=VideoStart]]></URL>
+        </Tracking>
+        <Tracking event="firstQuartile">
+          <URL id="scanscout"><![CDATA[http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&CbC=1&CbF=true&vastrequest=true&EC=7&RC=3&SmC=2&CbM=1.0E-5&VI=5a33ec4ffcdc3cab1c5680270a506db2&admode=preroll&PRI=4789421146443017981&RprC=0&ADsn=15&Eipct=25&VcaI=192,197&RrC=0&VgI=5a33ec4ffcdc3cab1c5680270a506db2&AVI=142&Ust=ma&Uctry=us&CI=1177822&AC=4&PI=567&Udma=506&ADI=5700147&EiN=1&VclF=true]]></URL>
+        </Tracking>
+        <Tracking event="midpoint">
+          <URL id="scanscout"><![CDATA[http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&CbC=1&CbF=true&vastrequest=true&EC=7&RC=3&SmC=2&CbM=1.0E-5&VI=5a33ec4ffcdc3cab1c5680270a506db2&admode=preroll&PRI=4789421146443017981&RprC=0&ADsn=15&Eipct=50&VcaI=192,197&RrC=0&VgI=5a33ec4ffcdc3cab1c5680270a506db2&AVI=142&Ust=ma&Uctry=us&CI=1177822&AC=4&PI=567&Udma=506&ADI=5700147&EiN=1&VclF=true]]></URL>
+        </Tracking>
+        <Tracking event="thirdQuartile">
+
+          <URL id="scanscout"><![CDATA[http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&CbC=1&CbF=true&vastrequest=true&EC=7&RC=3&SmC=2&CbM=1.0E-5&VI=5a33ec4ffcdc3cab1c5680270a506db2&admode=preroll&PRI=4789421146443017981&RprC=0&ADsn=15&Eipct=75&VcaI=192,197&RrC=0&VgI=5a33ec4ffcdc3cab1c5680270a506db2&AVI=142&Ust=ma&Uctry=us&CI=1177822&AC=4&PI=567&Udma=506&ADI=5700147&EiN=1&VclF=true]]></URL>
+        </Tracking>
+        <Tracking event="complete">
+          <URL id="scanscout"><![CDATA[http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&CbC=1&CbF=true&vastrequest=true&EC=7&RC=3&SmC=2&CbM=1.0E-5&VI=5a33ec4ffcdc3cab1c5680270a506db2&admode=preroll&PRI=4789421146443017981&RprC=0&ADsn=15&Eipct=100&VcaI=192,197&RrC=0&VgI=5a33ec4ffcdc3cab1c5680270a506db2&AVI=142&Ust=ma&Uctry=us&CI=1177822&AC=4&PI=567&Udma=506&ADI=5700147&EiN=1&VclF=true]]></URL>
+          <URL id="external"><![CDATA[http://demo.scanscout.com/product/trackingPixel.png?type=VideoComplete]]></URL>
+        </Tracking>
+        <Tracking event="pause">
+          <URL id="scanscout"><![CDATA[http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&CbC=1&CbF=true&EC=4&RC=3&SmC=2&CbM=1.0E-5&VI=5a33ec4ffcdc3cab1c5680270a506db2&admode=preroll&PRI=4789421146443017981&RprC=0&ADsn=15&VcaI=192,197&RrC=0&VgI=5a33ec4ffcdc3cab1c5680270a506db2&AVI=142&Ust=ma&Uctry=us&CI=1177822&AC=4&PI=567&Udma=506&ADI=5700147&VclF=true]]></URL>
+        </Tracking>
+
+      </TrackingEvents>
+      <Video>
+        <Duration>00:00:15</Duration>
+        <AdID>preroll-1</AdID>
+        <VideoClicks>
+          <ClickThrough>
+            <URL id="scanscout"><![CDATA[http://www.calphalon.com]]></URL>
+          </ClickThrough>
+
+          <ClickTracking>
+            <URL id="scanscout"><![CDATA[http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&CbC=1&CbF=true&EC=2&RC=3&SmC=2&CbM=1.0E-5&VI=5a33ec4ffcdc3cab1c5680270a506db2&admode=preroll&PRI=4789421146443017981&RprC=0&ADsn=15&VcaI=192,197&RrC=0&VgI=5a33ec4ffcdc3cab1c5680270a506db2&AVI=142&Ust=ma&Uctry=us&CI=1177822&AC=4&PI=567&Udma=506&ADI=5700147&VclF=true]]></URL>
+          </ClickTracking>
+        </VideoClicks>
+        <MediaFiles>
+          <MediaFile width="600" type="video/x-flv" height="396" delivery="progressive" bitrate="496">
+            <URL><![CDATA[http://media.scanscout.com/ads/partner1_ecdf0740-75b9-40ef-b4d6-06cf03306c8e.flv]]></URL>
+          </MediaFile>
+        </MediaFiles>
+
+      </Video>
+      <CompanionAds>
+        <Companion width="300" resourceType="HTML" id="532354" height="250">
+          <Code><![CDATA[<a onClick="alert('click');var i= new Image(1,1); i.src='http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&RI=532354&CbC=1&CbF=true&EC=0&RC=0&SmC=2&CbM=1.0E-5&VI=5a33ec4ffcdc3cab1c5680270a506db2&admode=preroll&PRI=4789421146443017981&RprC=0&ADsn=15&VcaI=192,197&RrC=1&VgI=5a33ec4ffcdc3cab1c5680270a506db2&AVI=142&Ust=ma&Uctry=us&CI=1177822&AC=4&PI=567&Udma=506&ADI=5700147&VclF=true';" href="http://www.calphalon.com" target="_blank"><img src="http://s0.2mdn.net/viewad/2401054/300x250_PreRollCompanionBanner_30k.jpg" width=300 height=250 border=0></a>
+<img src="http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&RI=532354&CbC=1&CbF=true&EC=1&RC=0&SmC=2&CbM=1.0E-5&VI=5a33ec4ffcdc3cab1c5680270a506db2&admode=preroll&PRI=4789421146443017981&RprC=0&ADsn=15&VcaI=192,197&RrC=1&VgI=5a33ec4ffcdc3cab1c5680270a506db2&AVI=142&Ust=ma&Uctry=us&CI=1177822&AC=4&PI=567&Udma=506&ADI=5700147&VclF=true" height="1" width="1">]]></Code>
+        </Companion>
+      </CompanionAds>
+    </InLine>
+  </Ad>
+</VideoAdServingTemplate>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/scanscout/example02.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/scanscout/example02.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/scanscout/example02.xml	(revision 7)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VideoAdServingTemplate>
+  <Ad id="preroll-1">
+    <InLine>
+      <AdSystem>scanscout</AdSystem>
+      <AdTitle>5773100</AdTitle>
+      <Video>
+        <Duration>00:00:01</Duration>
+        <AdID>preroll-1</AdID>
+        <AdParameters apiFramework="vpaid"/>
+        <MediaFiles>
+          <MediaFile width="370" type="application/x-shockwave-flash" height="270">
+            <URL><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3Dnull%26HI%3D567|preroll|-32349328493284293%26AI%3D0]]></URL>
+          </MediaFile>
+        </MediaFiles>
+      </Video>
+      <CompanionAds>
+        <Companion width="300" resourceType="HTML" id="573242" height="250">
+          <Code><![CDATA[<A onClick="var i= new Image(1,1); i.src='http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&RI=573242&CbC=1&CbF=true&EC=0&RC=0&SmC=2&CbM=1.0E-5&VI=44182204&admode=preroll&PRI=-32349328493284293&RprC=5&ADsn=20&VcaI=416&RrC=1&VgI=13fbab4090333fc8d691b4c61d7bd98e&AVI=142&Ust=ma&Uctry=us&CI=1247549&AC=4&PI=567&Udma=506&ADI=5773100&VclF=true';" HREF="http://vaseline.com" target="_blank">
+<IMG SRC="http://media.scanscout.com/ads/vaseline300x250Companion.jpg" BORDER=0 WIDTH=300 HEIGHT=250 ALT="Click Here">
+</A>
+<img src="http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&RI=573242&CbC=1&CbF=true&EC=1&RC=0&SmC=2&CbM=1.0E-5&VI=44182204&admode=preroll&PRI=-342394298999&RprC=5&ADsn=20&VcaI=416&RrC=1&VgI=4234238492842jjjk&AVI=142&Ust=ma&Uctry=us&CI=1247549&AC=4&PI=567&Udma=506&ADI=5773100&VclF=true" height="1" width="1">]]></Code>
+        </Companion>
+      </CompanionAds>
+    </InLine>
+  </Ad>
+</VideoAdServingTemplate>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/scanscout/example03.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/scanscout/example03.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/scanscout/example03.xml	(revision 7)
@@ -0,0 +1,138 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VideoAdServingTemplate>
+  <Ad id="overlay-1">
+    <InLine>
+      <AdSystem>scanscout</AdSystem>
+      <AdTitle>5750089</AdTitle>
+      <NonLinearAds>
+        <NonLinear resourceType="static" id="overlay-1"
+          creativeType="application/x-shockwave-flash" apiFramework="VPAID">
+          <URL><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3Dnull%26HI%3D567|overlay|-1916720418001641728%26AI%3D0]]></URL>
+
+        </NonLinear>
+      </NonLinearAds>
+    </InLine>
+  </Ad>
+  <Ad id="overlay-2">
+    <InLine>
+      <AdSystem>scanscout</AdSystem>
+      <AdTitle>5750098</AdTitle>
+
+      <NonLinearAds>
+        <NonLinear resourceType="static" id="overlay-2"
+          creativeType="application/x-shockwave-flash" apiFramework="VPAID">
+          <URL><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3Dnull%26HI%3D567|overlay|-1916720418001641728%26AI%3D1]]></URL>
+        </NonLinear>
+      </NonLinearAds>
+    </InLine>
+  </Ad>
+  <Ad id="overlay-3">
+    <InLine>
+
+      <AdSystem>scanscout</AdSystem>
+      <AdTitle>5750100</AdTitle>
+      <NonLinearAds>
+        <NonLinear resourceType="static" id="overlay-3"
+          creativeType="application/x-shockwave-flash" apiFramework="VPAID">
+          <URL><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3Dnull%26HI%3D567|overlay|-1916720418001641728%26AI%3D2]]></URL>
+        </NonLinear>
+      </NonLinearAds>
+    </InLine>
+
+  </Ad>
+  <Ad id="overlay-4">
+    <InLine>
+      <AdSystem>scanscout</AdSystem>
+      <AdTitle>5750090</AdTitle>
+      <NonLinearAds>
+        <NonLinear resourceType="static" id="overlay-4"
+          creativeType="application/x-shockwave-flash" apiFramework="VPAID">
+          <URL><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3Dnull%26HI%3D567|overlay|-1916720418001641728%26AI%3D3]]></URL>
+
+        </NonLinear>
+      </NonLinearAds>
+    </InLine>
+  </Ad>
+  <Ad id="overlay-5">
+    <InLine>
+      <AdSystem>scanscout</AdSystem>
+      <AdTitle>5750092</AdTitle>
+
+      <NonLinearAds>
+        <NonLinear resourceType="static" id="overlay-5"
+          creativeType="application/x-shockwave-flash" apiFramework="VPAID">
+          <URL><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3Dnull%26HI%3D567|overlay|-1916720418001641728%26AI%3D4]]></URL>
+        </NonLinear>
+      </NonLinearAds>
+    </InLine>
+  </Ad>
+  <Ad id="overlay-6">
+    <InLine>
+
+      <AdSystem>scanscout</AdSystem>
+      <AdTitle>5700028</AdTitle>
+      <NonLinearAds>
+        <NonLinear resourceType="static" id="overlay-6"
+          creativeType="application/x-shockwave-flash" apiFramework="VPAID">
+          <URL><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3Dnull%26HI%3D567|overlay|-1916720418001641728%26AI%3D5]]></URL>
+        </NonLinear>
+      </NonLinearAds>
+    </InLine>
+
+  </Ad>
+  <Ad id="overlay-7">
+    <InLine>
+      <AdSystem>scanscout</AdSystem>
+      <AdTitle>5748117</AdTitle>
+      <NonLinearAds>
+        <NonLinear resourceType="static" id="overlay-7"
+          creativeType="application/x-shockwave-flash" apiFramework="VPAID">
+          <URL><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3Dnull%26HI%3D567|overlay|-1916720418001641728%26AI%3D6]]></URL>
+
+        </NonLinear>
+      </NonLinearAds>
+    </InLine>
+  </Ad>
+  <Ad id="overlay-8">
+    <InLine>
+      <AdSystem>scanscout</AdSystem>
+      <AdTitle>5750096</AdTitle>
+
+      <NonLinearAds>
+        <NonLinear resourceType="static" id="overlay-8"
+          creativeType="application/x-shockwave-flash" apiFramework="VPAID">
+          <URL><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3Dnull%26HI%3D567|overlay|-1916720418001641728%26AI%3D7]]></URL>
+        </NonLinear>
+      </NonLinearAds>
+    </InLine>
+  </Ad>
+  <Ad id="overlay-9">
+    <InLine>
+
+      <AdSystem>scanscout</AdSystem>
+      <AdTitle>5700030</AdTitle>
+      <NonLinearAds>
+        <NonLinear resourceType="static" id="overlay-9"
+          creativeType="application/x-shockwave-flash" apiFramework="VPAID">
+          <URL><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3Dnull%26HI%3D567|overlay|-1916720418001641728%26AI%3D8]]></URL>
+        </NonLinear>
+      </NonLinearAds>
+    </InLine>
+
+  </Ad>
+  <Ad id="overlay-10">
+    <InLine>
+      <AdSystem>scanscout</AdSystem>
+      <AdTitle>5750094</AdTitle>
+      <NonLinearAds>
+        <NonLinear resourceType="static" id="overlay-10"
+          creativeType="application/x-shockwave-flash" apiFramework="VPAID">
+          <URL><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3Dnull%26HI%3D567|overlay|-1916720418001641728%26AI%3D9]]></URL>
+
+        </NonLinear>
+      </NonLinearAds>
+    </InLine>
+  </Ad>
+</VideoAdServingTemplate>
+
+
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/scanscout/example04.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/scanscout/example04.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/scanscout/example04.xml	(revision 7)
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VAST version="2.0">
+  <Ad id="preroll-1">
+    <InLine>
+      <AdSystem>2.0</AdSystem>
+      <AdTitle>5748406</AdTitle>
+      <Impression id="comscore"><![CDATA[http://b.scorecardresearch.com/b?C1=1&C2=6000003&C3=0000000200500000197000000&C4=us&C7=http://www.scanscout.com&C8=scanscout.com&C9=http://www.scanscout.com&C10=xn&rn=-103217130]]></Impression>
+      <Impression id="comscore"><![CDATA[http://beacon.securestudies.com/scripts/beacon.dll?C1=1&C2=6000003&C3=&C4=&C5=070000&C6=2005&C7=&rn=274566297]]></Impression>
+      <Impression id="scanscout"><![CDATA[http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&CbC=1&CbF=true&EC=3&RC=3&SmC=2&AmN=1&CbM=1.0E-5&VI=736e6b13bad531dc476bc3612749bc35&admode=preroll&PRI=-4827170214961170629&RvN=1&RprC=0&ADsn=17&VcaI=192,197&RrC=0&VgI=736e6b13bad531dc476bc3612749bc35&SfF=true&AVI=142&Ust=ma&Uctry=us&CI=1223187&AC=4&PI=567&Udma=506&ADI=5748406&VclF=true]]></Impression>
+      <Impression id="scanscout"><![CDATA[http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&CbC=1&CbF=true&EC=3&RC=3&SmC=2&AmN=1&CbM=1.0E-5&VI=736e6b13bad531dc476bc3612749bc35&admode=preroll&PRI=-4827170214961170629&RvN=1&RprC=0&ADsn=17&VcaI=192,197&RrC=0&VgI=736e6b13bad531dc476bc3612749bc35&SfF=true&AVI=142&Ust=ma&Uctry=us&CI=1223187&AC=4&PI=567&Udma=506&ADI=5748406&VclF=true]]></Impression>
+      <Impression id="external"><![CDATA[http://demo.scanscout.com/product/trackingPixel.png]]></Impression>
+      <Impression id="comscore"><![CDATA[http://b.scorecardresearch.com/b?C1=1&C2=6000003&C3=0000122318700000197000000&C4=us&C7=http://www.scanscout.com&C8=scanscout.com&C9=http://www.scanscout.com&C10=xn&rn=1572528551]]></Impression>
+      <Impression id="comscore"><![CDATA[http://beacon.securestudies.com/scripts/beacon.dll?C1=1&C2=6000003&C3=&C4=&C5=010000&C6=1223187&C7=&rn=1255844116]]></Impression>
+      <Creatives>
+        <Creative>
+          <Linear>
+            <Duration>00:00:30</Duration>
+
+            <TrackingEvents>
+              <Tracking event="start"><![CDATA[http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&CbC=1&CbF=true&vastrequest=true&EC=7&RC=3&SmC=2&CbM=1.0E-5&VI=736e6b13bad531dc476bc3612749bc35&admode=preroll&PRI=-4827170214961170629&RprC=0&ADsn=17&Eipct=0&VcaI=192,197&RrC=0&VgI=736e6b13bad531dc476bc3612749bc35&AVI=142&Ust=ma&Uctry=us&CI=1223187&AC=4&PI=567&Udma=506&ADI=5748406&EiN=1&VclF=true]]></Tracking>
+              <Tracking event="start"><![CDATA[http://demo.scanscout.com/product/trackingPixel.png?type=VideoStart]]></Tracking>
+              <Tracking event="firstQuartile"><![CDATA[http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&CbC=1&CbF=true&vastrequest=true&EC=7&RC=3&SmC=2&CbM=1.0E-5&VI=736e6b13bad531dc476bc3612749bc35&admode=preroll&PRI=-4827170214961170629&RprC=0&ADsn=17&Eipct=25&VcaI=192,197&RrC=0&VgI=736e6b13bad531dc476bc3612749bc35&AVI=142&Ust=ma&Uctry=us&CI=1223187&AC=4&PI=567&Udma=506&ADI=5748406&EiN=1&VclF=true]]></Tracking>
+              <Tracking event="midpoint"><![CDATA[http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&CbC=1&CbF=true&vastrequest=true&EC=7&RC=3&SmC=2&CbM=1.0E-5&VI=736e6b13bad531dc476bc3612749bc35&admode=preroll&PRI=-4827170214961170629&RprC=0&ADsn=17&Eipct=50&VcaI=192,197&RrC=0&VgI=736e6b13bad531dc476bc3612749bc35&AVI=142&Ust=ma&Uctry=us&CI=1223187&AC=4&PI=567&Udma=506&ADI=5748406&EiN=1&VclF=true]]></Tracking>
+              <Tracking event="thirdQuartile"><![CDATA[http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&CbC=1&CbF=true&vastrequest=true&EC=7&RC=3&SmC=2&CbM=1.0E-5&VI=736e6b13bad531dc476bc3612749bc35&admode=preroll&PRI=-4827170214961170629&RprC=0&ADsn=17&Eipct=75&VcaI=192,197&RrC=0&VgI=736e6b13bad531dc476bc3612749bc35&AVI=142&Ust=ma&Uctry=us&CI=1223187&AC=4&PI=567&Udma=506&ADI=5748406&EiN=1&VclF=true]]></Tracking>
+              <Tracking event="complete"><![CDATA[http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&CbC=1&CbF=true&vastrequest=true&EC=7&RC=3&SmC=2&CbM=1.0E-5&VI=736e6b13bad531dc476bc3612749bc35&admode=preroll&PRI=-4827170214961170629&RprC=0&ADsn=17&Eipct=100&VcaI=192,197&RrC=0&VgI=736e6b13bad531dc476bc3612749bc35&AVI=142&Ust=ma&Uctry=us&CI=1223187&AC=4&PI=567&Udma=506&ADI=5748406&EiN=1&VclF=true]]></Tracking>
+              <Tracking event="complete"><![CDATA[http://demo.scanscout.com/product/trackingPixel.png?type=VideoComplete]]></Tracking>
+              <Tracking event="pause"><![CDATA[http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&CbC=1&CbF=true&EC=4&RC=3&SmC=2&CbM=1.0E-5&VI=736e6b13bad531dc476bc3612749bc35&admode=preroll&PRI=-4827170214961170629&RprC=0&ADsn=17&VcaI=192,197&RrC=0&VgI=736e6b13bad531dc476bc3612749bc35&AVI=142&Ust=ma&Uctry=us&CI=1223187&AC=4&PI=567&Udma=506&ADI=5748406&VclF=true]]></Tracking>
+
+            </TrackingEvents>
+            <VideoClicks>
+              <ClickThrough id="scanscout"><![CDATA[http://www.target.com]]></ClickThrough>
+              <ClickTracking id="scanscout"><![CDATA[http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&CbC=1&CbF=true&EC=2&RC=3&SmC=2&CbM=1.0E-5&VI=736e6b13bad531dc476bc3612749bc35&admode=preroll&PRI=-4827170214961170629&RprC=0&ADsn=17&VcaI=192,197&RrC=0&VgI=736e6b13bad531dc476bc3612749bc35&AVI=142&Ust=ma&Uctry=us&CI=1223187&AC=4&PI=567&Udma=506&ADI=5748406&VclF=true]]></ClickTracking>
+            </VideoClicks>
+            <MediaFiles>
+                <MediaFile height="396" width="600" bitrate="496" type="video/x-flv" delivery="progressive"><![CDATA[http://media.scanscout.com/ads/partner1_a1d1fbbc-c4d4-419f-b6c8-e9db63fd4491.flv]]></MediaFile>
+            </MediaFiles>
+          </Linear>
+
+          <CompanionAds>
+            <Companion height="250" width="300" id="555750">
+              <HTMLResource><![CDATA[<A onClick="var i= new Image(1,1); i.src='http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&RI=555750&CbC=1&CbF=true&EC=0&RC=0&SmC=2&CbM=1.0E-5&VI=736e6b13bad531dc476bc3612749bc35&admode=preroll&PRI=-4827170214961170629&RprC=0&ADsn=17&VcaI=192,197&RrC=1&VgI=736e6b13bad531dc476bc3612749bc35&AVI=142&Ust=ma&Uctry=us&CI=1223187&AC=4&PI=567&Udma=506&ADI=5748406&VclF=true';" HREF="http://target.com" target="_blank">
+<IMG SRC="http://media.scanscout.com/ads/target300x250Companion.jpg" BORDER=0 WIDTH=300 HEIGHT=250 ALT="Click Here">
+</A>
+<img src="http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&RI=555750&CbC=1&CbF=true&EC=1&RC=0&SmC=2&CbM=1.0E-5&VI=736e6b13bad531dc476bc3612749bc35&admode=preroll&PRI=-4827170214961170629&RprC=0&ADsn=17&VcaI=192,197&RrC=1&VgI=736e6b13bad531dc476bc3612749bc35&AVI=142&Ust=ma&Uctry=us&CI=1223187&AC=4&PI=567&Udma=506&ADI=5748406&VclF=true" height="1" width="1">
+]]></HTMLResource>
+            </Companion>
+          </CompanionAds>
+        </Creative>
+      </Creatives>
+    </InLine>
+  </Ad>
+
+</VAST>
+
+
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/adjuggler/adjuggler.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/adjuggler/adjuggler.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/adjuggler/adjuggler.xml	(revision 7)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VAST xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd" version="2.0">
+  <Ad xmlns="" id="404d8e58-4da9-4ddd-9006-b740beb1ec92">
+    <InLine>
+		<AdSystem>AdJuggler</AdSystem>
+		<AdTitle><![CDATA[PB Casino Title]]></AdTitle>
+		<Impression><![CDATA[http://twc.rotator.hadj7.adjuggler.net:80/servlet/ajrotator/31536/0/vx?z=twc&kw=&click=&b=31126&c=30949]]></Impression>
+        <Creatives>
+	        <Creative>
+	        	<Linear>
+					<Duration>00:00:10</Duration>
+					<TrackingEvents>
+			          <Tracking event="start"><![CDATA[http://twc.rotator.hadj7.adjuggler.net/servlet/ajrotator/31536/0/cc?z=twc&?ajkey=V12DEFD7FD3J-573I700K22041187C0474187C0474K31126K30949QK31120QQP1G01G0G0Q6C&b=31126&c=30949&ajtrack=y&eventId=0&eventType=0&eventCount=1]]></Tracking>
+			          <Tracking event="close"><![CDATA[http://twc.rotator.hadj7.adjuggler.net/servlet/ajrotator/31536/0/cc?z=twc&?ajkey=V12DEFD7FD3J-573I700K22041187C0474187C0474K31126K30949QK31120QQP1G01G0G0Q6C&b=31126&c=30949&ajtrack=y&eventId=10&eventType=0&eventCount=1]]></Tracking>
+			          <Tracking event="midpoint"><![CDATA[http://twc.rotator.hadj7.adjuggler.net/servlet/ajrotator/31536/0/cc?z=twc&?ajkey=V12DEFD7FD3J-573I700K22041187C0474187C0474K31126K30949QK31120QQP1G01G0G0Q6C&b=31126&c=30949&ajtrack=y&eventId=1&eventType=0&eventCount=1]]></Tracking>
+			          <Tracking event="complete"><![CDATA[http://twc.rotator.hadj7.adjuggler.net/servlet/ajrotator/31536/0/cc?z=twc&?ajkey=V12DEFD7FD3J-573I700K22041187C0474187C0474K31126K30949QK31120QQP1G01G0G0Q6C&b=31126&c=30949&ajtrack=y&eventId=2&eventType=0&eventCount=1]]></Tracking>
+			          <Tracking event="mute"><![CDATA[http://twc.rotator.hadj7.adjuggler.net/servlet/ajrotator/31536/0/cc?z=twc&?ajkey=V12DEFD7FD3J-573I700K22041187C0474187C0474K31126K30949QK31120QQP1G01G0G0Q6C&b=31126&c=30949&ajtrack=y&eventId=3&eventType=0&eventCount=1]]></Tracking>
+			          <Tracking event="pause"><![CDATA[http://twc.rotator.hadj7.adjuggler.net/servlet/ajrotator/31536/0/cc?z=twc&?ajkey=V12DEFD7FD3J-573I700K22041187C0474187C0474K31126K30949QK31120QQP1G01G0G0Q6C&b=31126&c=30949&ajtrack=y&eventId=5&eventType=0&eventCount=1]]></Tracking>
+			          <Tracking event="fullscreen"><![CDATA[http://twc.rotator.hadj7.adjuggler.net/servlet/ajrotator/31536/0/cc?z=twc&?ajkey=V12DEFD7FD3J-573I700K22041187C0474187C0474K31126K30949QK31120QQP1G01G0G0Q6C&b=31126&c=30949&ajtrack=y&eventId=2&eventType=2&eventCount=1]]></Tracking>
+			        </TrackingEvents>
+					<VideoClicks>
+				         <ClickThrough><![CDATA[http://www.pbpgaming.com/]]></ClickThrough>
+				         <ClickTracking><![CDATA[http://twc.rotator.hadj7.adjuggler.net/servlet/ajrotator/31536/0/cc?z=twc&?ajkey=V12DEFD7FD3J-573I700K22041187C0474187C0474K31126K30949QK31120QQP1G01G0G0Q6C&b=31126&c=30949]]></ClickTracking>
+				       </VideoClicks>
+				    <MediaFiles>
+				         <MediaFile width="300" height="250" delivery="progressive" type="video/x-flv"><![CDATA[http://cdn.hadj7.adjuggler.net/banners/Client30948/1271171993275_pbcasino.flv]]></MediaFile>
+				    </MediaFiles>
+				</Linear>
+	        </Creative>
+	    </Creatives>
+	</InLine>
+  </Ad>
+</VAST>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/microsoft/example01.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/microsoft/example01.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/microsoft/example01.xml	(revision 7)
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VAST version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="oxml.xsd">
+	<Ad id="115571748">
+		<InLine>
+			<AdSystem version="2.0 alpha">Atlas</AdSystem>
+			<AdTitle>Unknown</AdTitle>
+			<Description>Unknown</Description>
+			<Survey></Survey>
+
+			<Error></Error>
+			<Impression id="Atlas"><![CDATA[http://view.atdmt.com/000/sview/115571748/direct;ai.117051679;vt.2/01/634136899210071634]]></Impression>
+			<Creatives>
+				<Creative id="video" sequence="0" AdID="">
+					<Linear>
+						<Duration>00:30:00</Duration>
+						<TrackingEvents>
+							<Tracking event="start"><![CDATA[http://clk.atdmt.com/000/sgo/115571748/direct;ai.117051679;ct.i3/01/634136899210071634]]></Tracking>
+
+							<Tracking event="midpoint"><![CDATA[http://clk.atdmt.com/000/sgo/115571748/direct;ai.117051679;ct.i1/01/634136899210071634]]></Tracking>
+							<Tracking event="complete"><![CDATA[http://clk.atdmt.com/000/sgo/115571748/direct;ai.117051679;ct.i2/01/634136899210071634]]></Tracking>
+							<Tracking event="expand"><![CDATA[http://clk.atdmt.com/000/sgo/115571748/direct;ai.117051679;ct.i4/01/634136899210071634]]></Tracking>
+						</TrackingEvents>
+						<VideoClicks>
+							<ClickThrough id="Atlas Redirect"><![CDATA[http://clk.atdmt.com/000/sgo/115571748/direct;ct.1/01/634136899210071634]]></ClickThrough>
+							<ClickTracking id="Spare"></ClickTracking>
+						</VideoClicks>
+						<MediaFiles>
+
+							<MediaFile apiFramework="Flash" id="flash_streaming_500" maintainAspectRatio="true" scaleable="true" delivery="streaming" bitrate="500" width="400" height="300" type="video/x-flv">
+								<![CDATA[http://vid.atdmt.com/v/ADADOARMBPBT/e9124060-e747-4a8e-9304-abd5b3b67458/MSA_Zune_640x480_15s_500_4x3.flv]]>
+							</MediaFile>
+							<MediaFile apiFramework="Flash" id="flash_progressive_200" maintainAspectRatio="true" scaleable="true" delivery="progressive" bitrate="200" width="400" height="300" type="video/x-flv">
+								<![CDATA[http://api.atdmt.com/adserv.api/redirect/sa=115571748;ai=117051679;pf=FLV;br=200;strm=0;v=1.flv]]>
+							</MediaFile>
+							<MediaFile apiFramework="Flash" id="flash_progressive_300" maintainAspectRatio="true" scaleable="true" delivery="progressive" bitrate="300" width="400" height="300" type="video/x-flv">
+								<![CDATA[http://api.atdmt.com/adserv.api/redirect/sa=115571748;ai=117051679;pf=FLV;br=300;strm=0;v=1.flv]]>
+							</MediaFile>
+
+							<MediaFile apiFramework="Flash" id="flash_progressive_500" maintainAspectRatio="true" scaleable="true" delivery="progressive" bitrate="500" width="400" height="300" type="video/x-flv">
+								<![CDATA[http://api.atdmt.com/adserv.api/redirect/sa=115571748;ai=117051679;pf=FLV;br=500;strm=0;v=1.flv]]>
+							</MediaFile>
+							<MediaFile apiFramework="Flash" id="flash_progressive_700" maintainAspectRatio="true" scaleable="true" delivery="progressive" bitrate="700" width="400" height="300" type="video/x-flv">
+								<![CDATA[http://api.atdmt.com/adserv.api/redirect/sa=115571748;ai=117051679;pf=FLV;br=700;strm=0;v=1.flv]]>
+							</MediaFile>
+							<MediaFile apiFramework="Windows Media" id="windows_progressive_200" maintainAspectRatio="true" scaleable="true" delivery="progressive" bitrate="200" width="400" height="300" type="video/x-ms-wmv">
+								<![CDATA[http://api.atdmt.com/adserv.api/redirect/sa=115571748;ai=117051679;pf=WMV;br=200;strm=0;v=1.wmv]]>
+							</MediaFile>
+
+							<MediaFile apiFramework="Windows Media" id="windows_progressive_300" maintainAspectRatio="true" scaleable="true" delivery="progressive" bitrate="300" width="400" height="300" type="video/x-ms-wmv">
+								<![CDATA[http://api.atdmt.com/adserv.api/redirect/sa=115571748;ai=117051679;pf=WMV;br=300;strm=0;v=1.wmv]]>
+							</MediaFile>
+							<MediaFile apiFramework="Windows Media" id="windows_progressive_500" maintainAspectRatio="true" scaleable="true" delivery="progressive" bitrate="500" width="400" height="300" type="video/x-ms-wmv">
+								<![CDATA[http://api.atdmt.com/adserv.api/redirect/sa=115571748;ai=117051679;pf=WMV;br=500;strm=0;v=1.wmv]]>
+							</MediaFile>
+							<MediaFile apiFramework="Windows Media" id="windows_progressive_700" maintainAspectRatio="true" scaleable="true" delivery="progressive" bitrate="700" width="400" height="300" type="video/x-ms-wmv">
+								<![CDATA[http://api.atdmt.com/adserv.api/redirect/sa=115571748;ai=117051679;pf=WMV;br=700;strm=0;v=1.wmv]]>
+							</MediaFile>
+
+						</MediaFiles>
+					</Linear>
+				</Creative>
+				<Creative id="primary_companion" sequence="0" AdID="">
+					<CompanionAds>
+						<Companion id="raw_banner_300x250" width="300" height="250">
+							<StaticResource creativeType="image/jpeg"><![CDATA[http://vid.atdmt.com/v/ADADOARMBPBT/e9124060-e747-4a8e-9304-abd5b3b67458/cb/1.jpg]]></StaticResource>
+							<CompanionClickThrough><![CDATA[http://clk.atdmt.com/000/sgo/115571748/direct;ct.2/01/634136899210071634]]></CompanionClickThrough>
+						</Companion>
+
+						<Companion id="iframe_banner_300x250" width="300" height="250">
+							<IFrameResource><![CDATA[http://api.atdmt.com/adserv.api/viewad/sa=115571748;sf=Atlas_iframe_300x250_HTML_V3;pf=FLV;br=200;strm=0;]]></IFrameResource>
+							<CompanionClickThrough><![CDATA[http://clk.atdmt.com/000/sgo/115571748/direct;ct.2/01/634136899210071634]]></CompanionClickThrough>
+						</Companion>
+						<Companion id="raw_banner_300x60" width="300" height="60">
+							<StaticResource creativeType="image/jpeg"><![CDATA[http://vid.atdmt.com/v/ADADOARMBPBT/e9124060-e747-4a8e-9304-abd5b3b67458/cb/6.jpg]]></StaticResource>
+							<![CDATA[http://vid.atdmt.com/v/ADADOARMBPBT/e9124060-e747-4a8e-9304-abd5b3b67458/cb/6.jpg]]>
+							<CompanionClickThrough><![CDATA[http://clk.atdmt.com/000/sgo/115571748/direct;ct.2/01/634136899210071634]]></CompanionClickThrough>
+						</Companion>
+
+						<Companion id="iframe_banner_300x60" width="300" height="60">
+							<IFrameResource><![CDATA[http://api.atdmt.com/adserv.api/viewad/sa=115571748;sf=Atlas_iframe_300x60_HTML_V3;pf=FLV;br=200;strm=0;]]></IFrameResource>
+							<CompanionClickThrough><![CDATA[http://clk.atdmt.com/000/sgo/115571748/direct;ct.2/01/634136899210071634]]></CompanionClickThrough>
+						</Companion>
+					</CompanionAds>
+				</Creative>
+			</Creatives>
+			<Extensions>
+				<Extension type="Atlas">
+
+				</Extension>
+			</Extensions>
+		</InLine>
+	</Ad>
+</VAST>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/tremor-media/example05.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/tremor-media/example05.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/tremor-media/example05.xml	(revision 7)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VAST version="2.0">
+  <Ad id="602867">
+  <Wrapper>
+    <AdSystem>Acudeo Compatible</AdSystem>
+    <VASTAdTagURI>http://demo.tremormedia.com/proddev/vast/vast_inline_nonlinear2.xml</VASTAdTagURI>
+    <Error>http://myErrorURL/wrapper/error</Error>
+    <Impression>http://myTrackingURL/wrapper/impression</Impression>
+
+	<Creatives>
+		<Creative AdID="602867">
+			<Linear>
+				<TrackingEvents>
+				</TrackingEvents>
+			</Linear>
+		</Creative>
+		<Creative AdID="602867-NonLinearTracking">
+			<NonLinearAds>
+
+				<TrackingEvents>
+					<Tracking event="creativeView">http://myTrackingURL/wrapper/nonlinear/creativeView/creativeView</Tracking>
+					<Tracking event="expand">http://myTrackingURL/wrapper/nonlinear/creativeView/expand</Tracking>
+					<Tracking event="collapse">http://myTrackingURL/wrapper/nonlinear/creativeView/collapse</Tracking>
+					<Tracking event="acceptInvitation">http://myTrackingURL/wrapper/nonlinear/creativeView/acceptInvitation</Tracking>
+					<Tracking event="close">http://myTrackingURL/wrapper/nonlinear/creativeView/close</Tracking>
+
+				</TrackingEvents>
+			</NonLinearAds>
+		</Creative>
+	</Creatives>
+  </Wrapper>
+  </Ad>
+</VAST>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/tremor-media/example06.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/tremor-media/example06.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/tremor-media/example06.xml	(revision 7)
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VAST version="2.0">
+  <Ad id="602867">
+  <Wrapper>
+    <AdSystem>Acudeo Compatible</AdSystem>
+    <VASTAdTagURI>http://demo.tremormedia.com/proddev/vast/vast_inline_nonlinear3.xml</VASTAdTagURI>
+    <Impression>http://myTrackingURL/wrapper/impression</Impression>
+	<Creatives>
+
+		<Creative AdID="602867">
+			<Linear>
+				<TrackingEvents>
+				</TrackingEvents>
+			</Linear>
+		</Creative>
+		<Creative AdID="602867-NonLinearTracking">
+			<NonLinearAds>
+				<TrackingEvents>
+
+				</TrackingEvents>
+			</NonLinearAds>
+		</Creative>
+		<Creative AdID="602867-Companion">
+			<CompanionAds>
+				<Companion width="300" height="250">
+					<StaticResource creativeType="image/jpeg">http://demo.tremormedia.com/proddev/vast/300x250_banner1.jpg</StaticResource>
+					<TrackingEvents>
+
+						<Tracking event="creativeView">http://myTrackingURL/wrapper/firstCompanionCreativeView</Tracking>
+					</TrackingEvents>
+					<CompanionClickThrough>http://www.tremormedia.com</CompanionClickThrough>
+				</Companion>
+				<Companion width="728" height="90">
+					<StaticResource creativeType="image/jpeg">http://demo.tremormedia.com/proddev/vast/728x90_banner1.jpg</StaticResource>
+					<CompanionClickThrough>http://www.tremormedia.com</CompanionClickThrough>
+
+				</Companion>
+			</CompanionAds>
+		</Creative>
+	</Creatives>
+  </Wrapper>
+  </Ad>
+</VAST>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/tremor-media/example01.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/tremor-media/example01.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/tremor-media/example01.xml	(revision 7)
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VAST version="2.0">
+  <Ad id="602678">
+  <InLine>
+    <AdSystem>Acudeo Compatible</AdSystem>
+    <AdTitle>NonLinear Test Campaign 1</AdTitle>
+    <Description>NonLinear Test Campaign 1</Description>
+    <Survey>http://mySurveyURL/survey</Survey>
+
+    <Error>http://myErrorURL/error</Error>
+    <Impression>http://myTrackingURL/impression</Impression>
+	<Creatives>
+		<Creative AdID="602678-NonLinear">
+			<NonLinearAds>
+				<TrackingEvents>
+					<Tracking event="creativeView">http://myTrackingURL/nonlinear/creativeView</Tracking>
+
+					<Tracking event="expand">http://myTrackingURL/nonlinear/expand</Tracking>
+					<Tracking event="collapse">http://myTrackingURL/nonlinear/collapse</Tracking>
+					<Tracking event="acceptInvitation">http://myTrackingURL/nonlinear/acceptInvitation</Tracking>
+					<Tracking event="close">http://myTrackingURL/nonlinear/close</Tracking>
+				</TrackingEvents>
+				<NonLinear height="50" width="300" minSuggestedDuration="00:00:15">
+					<StaticResource creativeType="image/jpeg">
+
+					http://demo.tremormedia.com/proddev/vast/50x300_static.jpg
+					</StaticResource>
+					<NonLinearClickThrough>http://www.tremormedia.com</NonLinearClickThrough>
+				</NonLinear>
+				<NonLinear height="50" width="450" minSuggestedDuration="00:00:20">
+					<StaticResource creativeType="image/jpeg">
+					http://demo.tremormedia.com/proddev/vast/50x450_static.jpg
+					</StaticResource>
+					<NonLinearClickThrough>http://www.tremormedia.com</NonLinearClickThrough>
+
+				</NonLinear>
+			</NonLinearAds>
+		</Creative>
+		<Creative AdID="602678-Companion">
+			<CompanionAds>
+				<Companion width="300" height="250">
+					<StaticResource creativeType="application/x-shockwave-flash">http://demo.tremormedia.com/proddev/vast/300x250_companion_1.swf</StaticResource>
+
+					<CompanionClickThrough>http://www.tremormedia.com</CompanionClickThrough>
+
+				</Companion>
+				<Companion width="728" height="90">
+					<StaticResource creativeType="image/jpeg">http://demo.tremormedia.com/proddev/vast/728x90_banner1.jpg</StaticResource>
+					<TrackingEvents>
+						<Tracking event="creativeView">http://myTrackingURL/secondCompanion</Tracking>
+					</TrackingEvents>
+					<CompanionClickThrough>http://www.tremormedia.com</CompanionClickThrough>
+
+				</Companion>
+			</CompanionAds>
+		</Creative>
+	</Creatives>
+  </InLine>
+  </Ad>
+</VAST>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/tremor-media/example02.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/tremor-media/example02.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/tremor-media/example02.xml	(revision 7)
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VAST version="2.0">
+  <Ad id="601364">
+  <InLine>
+    <AdSystem>Acudeo Compatible</AdSystem>
+    <AdTitle>VAST 2.0 Instream Test 1</AdTitle>
+    <Description>VAST 2.0 Instream Test 1</Description>
+    <Error>http://myErrorURL/error</Error>
+
+    <Impression>http://myTrackingURL/impression</Impression>
+	<Creatives>
+		<Creative AdID="601364">
+			<Linear>
+				<Duration>00:00:30</Duration>
+				<TrackingEvents>
+					<Tracking event="creativeView">http://myTrackingURL/creativeView</Tracking>
+
+					<Tracking event="start">http://myTrackingURL/start</Tracking>
+					<Tracking event="midpoint">http://myTrackingURL/midpoint</Tracking>
+					<Tracking event="firstQuartile">http://myTrackingURL/firstQuartile</Tracking>
+					<Tracking event="thirdQuartile">http://myTrackingURL/thirdQuartile</Tracking>
+					<Tracking event="complete">http://myTrackingURL/complete</Tracking>
+				</TrackingEvents>
+
+				<VideoClicks>
+					<ClickThrough>http://www.tremormedia.com</ClickThrough>
+					<ClickTracking>http://myTrackingURL/click</ClickTracking>
+				</VideoClicks>
+				<MediaFiles>
+					<MediaFile delivery="progressive" type="video/x-flv" bitrate="500" width="400" height="300" scalable="true" maintainAspectRatio="true">http://cdnp.tremormedia.com/video/acudeo/Carrot_400x300_500kb.flv</MediaFile>
+				</MediaFiles>
+
+			</Linear>
+		</Creative>
+		<Creative AdID="601364-Companion">
+			<CompanionAds>
+				<Companion width="300" height="250">
+					<StaticResource creativeType="image/jpeg">http://demo.tremormedia.com/proddev/vast/Blistex1.jpg</StaticResource>
+					<TrackingEvents>
+						<Tracking event="creativeView">http://myTrackingURL/firstCompanionCreativeView</Tracking>
+
+					</TrackingEvents>
+
+					<CompanionClickThrough>http://www.tremormedia.com</CompanionClickThrough>
+				</Companion>
+				<Companion width="728" height="90">
+					<StaticResource creativeType="image/jpeg">http://demo.tremormedia.com/proddev/vast/728x90_banner1.jpg</StaticResource>
+					<CompanionClickThrough>http://www.tremormedia.com</CompanionClickThrough>
+				</Companion>
+
+			</CompanionAds>
+		</Creative>
+	</Creatives>
+  </InLine>
+  </Ad>
+</VAST>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/tremor-media/example03.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/tremor-media/example03.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/tremor-media/example03.xml	(revision 7)
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VAST version="2.0">
+  <Ad id="602833">
+  <Wrapper>
+    <AdSystem>Acudeo Compatible</AdSystem>
+    <VASTAdTagURI>http://demo.tremormedia.com/proddev/vast/vast_inline_linear.xml</VASTAdTagURI>
+    <Error>http://myErrorURL/wrapper/error</Error>
+    <Impression>http://myTrackingURL/wrapper/impression</Impression>
+
+	<Creatives>
+		<Creative AdID="602833">
+			<Linear>
+				<TrackingEvents>
+					<Tracking event="creativeView">http://myTrackingURL/wrapper/creativeView</Tracking>
+					<Tracking event="start">http://myTrackingURL/wrapper/start</Tracking>
+					<Tracking event="midpoint">http://myTrackingURL/wrapper/midpoint</Tracking>
+
+					<Tracking event="firstQuartile">http://myTrackingURL/wrapper/firstQuartile</Tracking>
+					<Tracking event="thirdQuartile">http://myTrackingURL/wrapper/thirdQuartile</Tracking>
+					<Tracking event="complete">http://myTrackingURL/wrapper/complete</Tracking>
+					<Tracking event="mute">http://myTrackingURL/wrapper/mute</Tracking>
+					<Tracking event="unmute">http://myTrackingURL/wrapper/unmute</Tracking>
+					<Tracking event="pause">http://myTrackingURL/wrapper/pause</Tracking>
+
+					<Tracking event="resume">http://myTrackingURL/wrapper/resume</Tracking>
+					<Tracking event="fullscreen">http://myTrackingURL/wrapper/fullscreen</Tracking>
+				</TrackingEvents>
+			</Linear>
+		</Creative>
+		<Creative>
+			<Linear>
+				<VideoClicks>
+
+					<ClickTracking>http://myTrackingURL/wrapper/click</ClickTracking>
+				</VideoClicks>
+			</Linear>
+		</Creative>
+		<Creative AdID="602833-NonLinearTracking">
+			<NonLinearAds>
+				<TrackingEvents>
+				</TrackingEvents>
+
+			</NonLinearAds>
+		</Creative>
+	</Creatives>
+  </Wrapper>
+  </Ad>
+</VAST>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/tremor-media/example04.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/tremor-media/example04.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/tremor-media/example04.xml	(revision 7)
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VAST version="2.0">
+  <Ad id="602833">
+  <Wrapper>
+    <AdSystem>Acudeo Compatible</AdSystem>
+    <VASTAdTagURI>http://demo.tremormedia.com/proddev/vast/vast_inline_linear.xml</VASTAdTagURI>
+    <Impression>http://myTrackingURL/wrapper/impression</Impression>
+	<Creatives>
+
+		<Creative AdID="602833">
+			<Linear>
+				<TrackingEvents>
+				</TrackingEvents>
+			</Linear>
+		</Creative>
+		<Creative AdID="602833-Companion">
+			<CompanionAds>
+				<Companion width="300" height="250">
+
+					<StaticResource creativeType="image/jpeg">http://demo.tremormedia.com/proddev/vast/300x250_banner1.jpg</StaticResource>
+					<TrackingEvents>
+						<Tracking event="creativeView">http://myTrackingURL/wrapper/firstCompanionCreativeView</Tracking>
+					</TrackingEvents>
+					<CompanionClickThrough>http://www.tremormedia.com</CompanionClickThrough>
+				</Companion>
+				<Companion width="728" height="90">
+
+					<StaticResource creativeType="image/jpeg">http://demo.tremormedia.com/proddev/vast/728x90_banner1.jpg</StaticResource>
+					<CompanionClickThrough>http://www.tremormedia.com</CompanionClickThrough>
+				</Companion>
+			</CompanionAds>
+		</Creative>
+	</Creatives>
+  </Wrapper>
+  </Ad>
+
+</VAST>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/liverail/example01.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/liverail/example01.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/liverail/example01.xml	(revision 7)
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="utf-8"?>
+<VAST version="2.0">    <Ad id="229">
+    	<InLine>
+    		<AdSystem version="3.0">LiveRail</AdSystem>
+    		<AdTitle><![CDATA[iPhone]]></AdTitle>
+    		<Description><![CDATA[]]></Description>
+    		<Impression id="LR"><![CDATA[http://t3.liverail.com/?metric=impression&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=9203&x=1105&y=1105&xy=2f3a]]></Impression>
+    		<Impression id="LR"><![CDATA[http://t3.liverail.com/?metric=adslot&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=9203]]></Impression>
+    		<Impression id="LR"><![CDATA[http://t3.liverail.com/?metric=uniqueadslot&pos=50&pid=1331&coid=0&nid=0&cid=&kid=&vid=&amid=&cc=default&pp=&url=&cb=9203]]></Impression>
+
+            <Impression id="QC"><![CDATA[http://pixel.quantserve.com/pixel/p-d05JkuPGiy-jY?labels=inventory.publisher.1331&r=9203]]></Impression>
+            <Impression id="QC"><![CDATA[http://pixel.quantserve.com/pixel/p-d05JkuPGiy-jY?labels=inventory.network.0&r=9203]]></Impression>
+            <Impression id="QC"><![CDATA[http://pixel.quantserve.com/pixel/p-d05JkuPGiy-jY?labels=impression.campaign.229&r=9203]]></Impression>
+			<Impression><![CDATA[http://test.liverail.com/test.php?pub=1331&c=229]]></Impression>
+			<Creatives>
+				<Creative sequence="1" id="331">
+            		<Linear>
+            			<Duration>00:00:11</Duration>
+
+            			<VideoClicks>
+            				<ClickThrough><![CDATA[http://t3.liverail.com/?metric=clickthru&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=9203&x=&y=&xy=&redirect=http%3A%2F%2Fliverail.com%2F]]></ClickThrough>
+
+
+            			</VideoClicks>
+        	   			<MediaFiles>
+        					<MediaFile delivery="progressive" bitrate="256" width="800" height="528" type="video/x-flv"><![CDATA[http://cdn.liverail.com/adasset/229/331/lo.flv]]></MediaFile>
+        					<MediaFile delivery="progressive" bitrate="512" width="800" height="528" type="video/x-flv"><![CDATA[http://cdn.liverail.com/adasset/229/331/me.flv]]></MediaFile>
+        					<MediaFile delivery="progressive" bitrate="768" width="800" height="528" type="video/x-flv"><![CDATA[http://cdn.liverail.com/adasset/229/331/hi.flv]]></MediaFile>
+    					</MediaFiles>
+
+    			    	<TrackingEvents>
+							<Tracking event="firstQuartile"><![CDATA[http://t3.liverail.com/?metric=view25&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=9203&x=&y=&xy=]]></Tracking>
+							<Tracking event="midpoint"><![CDATA[http://t3.liverail.com/?metric=view50&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=9203&x=&y=&xy=]]></Tracking>
+							<Tracking event="thirdQuartile"><![CDATA[http://t3.liverail.com/?metric=view75&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=9203&x=&y=&xy=]]></Tracking>
+							<Tracking event="complete"><![CDATA[http://t3.liverail.com/?metric=view100&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=9203&x=&y=&xy=]]></Tracking>
+							<Tracking event="mute"><![CDATA[http://t3.liverail.com/?metric=mute&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=9203&x=&y=&xy=]]></Tracking>
+							<Tracking event="pause"><![CDATA[http://t3.liverail.com/?metric=pause&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=9203&x=&y=&xy=]]></Tracking>
+							<Tracking event="close"><![CDATA[http://t3.liverail.com/?metric=close&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=9203&x=&y=&xy=]]></Tracking>
+							<Tracking event="acceptInvitation"><![CDATA[http://t3.liverail.com/?metric=accept&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=9203&x=&y=&xy=]]></Tracking>
+
+    					</TrackingEvents>
+    				</Linear>
+    			</Creative>
+    			<Creative sequence="1" id="331">
+    				<CompanionAds>
+        				<Companion width="300" height="60">
+                            <StaticResource creativeType="image/jpeg"><![CDATA[http://cdn.liverail.com/adasset/229/331/300x60.jpg]]></StaticResource>
+                            <CompanionClickThrough><![CDATA[http://t3.liverail.com/?metric=cclickthru&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=9203&x=&y=&xy=&redirect=http%3A%2F%2Fliverail.com%2F]]></CompanionClickThrough>
+                            <TrackingEvents>
+
+                                <Tracking event="creativeView"><![CDATA[http://t3.liverail.com/?metric=companion&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=9203&x=&y=&xy=]]></Tracking>
+
+                            </TrackingEvents>
+                        </Companion>
+                        <Companion width="300" height="60">
+                            <IFrameResource creativeType="text/html"><![CDATA[http://ad3.liverail.com/util/companions.php?type=image&content=http%3A%2F%2Fcdn.liverail.com%2Fadasset%2F229%2F331%2F300x60.jpg&clickthru=http%3A%2F%2Ft3.liverail.com%2F%3Fmetric%3Dcclickthru%26pos%3D50%26pid%3D1331%26coid%3D135%26nid%3D0%26cid%3D331%26kid%3D229%26vid%3D%26amid%3D%26cc%3Ddefault%26pp%3D%26url%3D%26cb%3D9203%26x%3D%26y%3D%26xy%3D%26redirect%3Dhttp%253A%252F%252Fliverail.com%252F]]></IFrameResource>
+                            <CompanionClickThrough><![CDATA[http://t3.liverail.com/?metric=cclickthru&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=9203&x=&y=&xy=&redirect=http%3A%2F%2Fliverail.com%2F]]></CompanionClickThrough>
+                            <TrackingEvents>
+                                <Tracking event="creativeView"><![CDATA[http://t3.liverail.com/?metric=companion&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=9203&x=&y=&xy=]]></Tracking>
+
+                            </TrackingEvents>
+
+                        </Companion>
+        				<Companion width="728" height="90">
+                            <StaticResource creativeType="image/jpeg"><![CDATA[http://cdn.liverail.com/adasset/229/331/728x90.jpg]]></StaticResource>
+                            <CompanionClickThrough><![CDATA[http://t3.liverail.com/?metric=cclickthru&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=9203&x=&y=&xy=&redirect=http%3A%2F%2Fliverail.com%2F]]></CompanionClickThrough>
+                            <TrackingEvents>
+                                <Tracking event="creativeView"><![CDATA[http://t3.liverail.com/?metric=companion&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=9203&x=&y=&xy=]]></Tracking>
+
+                            </TrackingEvents>
+                        </Companion>
+                        <Companion width="728" height="90">
+
+                            <IFrameResource creativeType="text/html"><![CDATA[http://ad3.liverail.com/util/companions.php?type=image&content=http%3A%2F%2Fcdn.liverail.com%2Fadasset%2F229%2F331%2F728x90.jpg&clickthru=http%3A%2F%2Ft3.liverail.com%2F%3Fmetric%3Dcclickthru%26pos%3D50%26pid%3D1331%26coid%3D135%26nid%3D0%26cid%3D331%26kid%3D229%26vid%3D%26amid%3D%26cc%3Ddefault%26pp%3D%26url%3D%26cb%3D9203%26x%3D%26y%3D%26xy%3D%26redirect%3Dhttp%253A%252F%252Fliverail.com%252F]]></IFrameResource>
+                            <CompanionClickThrough><![CDATA[http://t3.liverail.com/?metric=cclickthru&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=9203&x=&y=&xy=&redirect=http%3A%2F%2Fliverail.com%2F]]></CompanionClickThrough>
+                            <TrackingEvents>
+                                <Tracking event="creativeView"><![CDATA[http://t3.liverail.com/?metric=companion&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=9203&x=&y=&xy=]]></Tracking>
+
+                            </TrackingEvents>
+                        </Companion>
+        				<Companion width="300" height="250">
+                            <StaticResource creativeType="image/jpeg"><![CDATA[http://cdn.liverail.com/adasset/229/331/300x250.jpg]]></StaticResource>
+                            <CompanionClickThrough><![CDATA[http://t3.liverail.com/?metric=cclickthru&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=9203&x=&y=&xy=&redirect=http%3A%2F%2Fliverail.com%2F]]></CompanionClickThrough>
+
+                            <TrackingEvents>
+                                <Tracking event="creativeView"><![CDATA[http://t3.liverail.com/?metric=companion&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=9203&x=&y=&xy=]]></Tracking>
+
+                            </TrackingEvents>
+                        </Companion>
+                        <Companion width="300" height="250">
+                            <IFrameResource creativeType="text/html"><![CDATA[http://ad3.liverail.com/util/companions.php?type=image&content=http%3A%2F%2Fcdn.liverail.com%2Fadasset%2F229%2F331%2F300x250.jpg&clickthru=http%3A%2F%2Ft3.liverail.com%2F%3Fmetric%3Dcclickthru%26pos%3D50%26pid%3D1331%26coid%3D135%26nid%3D0%26cid%3D331%26kid%3D229%26vid%3D%26amid%3D%26cc%3Ddefault%26pp%3D%26url%3D%26cb%3D9203%26x%3D%26y%3D%26xy%3D%26redirect%3Dhttp%253A%252F%252Fliverail.com%252F]]></IFrameResource>
+                            <CompanionClickThrough><![CDATA[http://t3.liverail.com/?metric=cclickthru&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=9203&x=&y=&xy=&redirect=http%3A%2F%2Fliverail.com%2F]]></CompanionClickThrough>
+                            <TrackingEvents>
+                                <Tracking event="creativeView"><![CDATA[http://t3.liverail.com/?metric=companion&pos=50&pid=1331&coid=135&nid=0&cid=331&kid=229&vid=&amid=&cc=default&pp=&url=&cb=9203&x=&y=&xy=]]></Tracking>
+
+
+                            </TrackingEvents>
+                        </Companion>
+    				</CompanionAds>
+    			</Creative>
+    		</Creatives>
+    	</InLine>
+    </Ad>
+</VAST><!-- 19 GB_LONDON__LONDON -->
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/liverail/example02.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/liverail/example02.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/liverail/example02.xml	(revision 7)
@@ -0,0 +1,115 @@
+<?xml version="1.0" encoding="utf-8"?>
+<VAST version="2.0">    <Ad id="227">
+    	<InLine>
+    		<AdSystem version="3.0">LiveRail</AdSystem>
+    		<AdTitle><![CDATA[Peperami Overlay - Tenderness]]></AdTitle>
+    		<Description><![CDATA[]]></Description>
+    		<Impression id="LR"><![CDATA[http://t3.liverail.com/?metric=impression&pos=1&pid=1331&coid=135&nid=0&cid=329&kid=227&vid=&amid=&cc=default&pp=&url=&cb=8075&x=29&y=29&xy=9413]]></Impression>
+    		<Impression id="LR"><![CDATA[http://t3.liverail.com/?metric=adslot&pos=1&pid=1331&coid=135&nid=0&cid=329&kid=227&vid=&amid=&cc=default&pp=&url=&cb=8075]]></Impression>
+    		<Impression id="LR"><![CDATA[http://t3.liverail.com/?metric=uniqueadslot&pos=1&pid=1331&coid=0&nid=0&cid=&kid=&vid=&amid=&cc=default&pp=&url=&cb=8075]]></Impression>
+
+            <Impression id="QC"><![CDATA[http://pixel.quantserve.com/pixel/p-d05JkuPGiy-jY?labels=inventory.publisher.1331&r=8075]]></Impression>
+            <Impression id="QC"><![CDATA[http://pixel.quantserve.com/pixel/p-d05JkuPGiy-jY?labels=inventory.network.0&r=8075]]></Impression>
+            <Impression id="QC"><![CDATA[http://pixel.quantserve.com/pixel/p-d05JkuPGiy-jY?labels=impression.campaign.227&r=8075]]></Impression>
+			<Creatives>
+				<Creative sequence="2" id="329">
+            		<Linear>
+            			<Duration>00:00:22</Duration>
+            			<VideoClicks>
+
+            				<ClickThrough><![CDATA[http://t3.liverail.com/?metric=clickthru&pos=1&pid=1331&coid=135&nid=0&cid=329&kid=227&vid=&amid=&cc=default&pp=&url=&cb=8075&x=&y=&xy=&redirect=http%3A%2F%2Fliverail.com%2F]]></ClickThrough>
+
+
+            			</VideoClicks>
+        	   			<MediaFiles>
+        					<MediaFile delivery="progressive" bitrate="256" width="640" height="368" type="video/x-flv"><![CDATA[http://cdn.liverail.com/adasset/227/329/lo.flv]]></MediaFile>
+        					<MediaFile delivery="progressive" bitrate="512" width="640" height="368" type="video/x-flv"><![CDATA[http://cdn.liverail.com/adasset/227/329/me.flv]]></MediaFile>
+        					<MediaFile delivery="progressive" bitrate="768" width="640" height="368" type="video/x-flv"><![CDATA[http://cdn.liverail.com/adasset/227/329/hi.flv]]></MediaFile>
+    					</MediaFiles>
+    			    	<TrackingEvents>
+
+							<Tracking event="firstQuartile"><![CDATA[http://t3.liverail.com/?metric=view25&pos=1&pid=1331&coid=135&nid=0&cid=329&kid=227&vid=&amid=&cc=default&pp=&url=&cb=8075&x=&y=&xy=]]></Tracking>
+							<Tracking event="midpoint"><![CDATA[http://t3.liverail.com/?metric=view50&pos=1&pid=1331&coid=135&nid=0&cid=329&kid=227&vid=&amid=&cc=default&pp=&url=&cb=8075&x=&y=&xy=]]></Tracking>
+							<Tracking event="thirdQuartile"><![CDATA[http://t3.liverail.com/?metric=view75&pos=1&pid=1331&coid=135&nid=0&cid=329&kid=227&vid=&amid=&cc=default&pp=&url=&cb=8075&x=&y=&xy=]]></Tracking>
+							<Tracking event="complete"><![CDATA[http://t3.liverail.com/?metric=view100&pos=1&pid=1331&coid=135&nid=0&cid=329&kid=227&vid=&amid=&cc=default&pp=&url=&cb=8075&x=&y=&xy=]]></Tracking>
+							<Tracking event="mute"><![CDATA[http://t3.liverail.com/?metric=mute&pos=1&pid=1331&coid=135&nid=0&cid=329&kid=227&vid=&amid=&cc=default&pp=&url=&cb=8075&x=&y=&xy=]]></Tracking>
+							<Tracking event="pause"><![CDATA[http://t3.liverail.com/?metric=pause&pos=1&pid=1331&coid=135&nid=0&cid=329&kid=227&vid=&amid=&cc=default&pp=&url=&cb=8075&x=&y=&xy=]]></Tracking>
+							<Tracking event="close"><![CDATA[http://t3.liverail.com/?metric=close&pos=1&pid=1331&coid=135&nid=0&cid=329&kid=227&vid=&amid=&cc=default&pp=&url=&cb=8075&x=&y=&xy=]]></Tracking>
+							<Tracking event="acceptInvitation"><![CDATA[http://t3.liverail.com/?metric=accept&pos=1&pid=1331&coid=135&nid=0&cid=329&kid=227&vid=&amid=&cc=default&pp=&url=&cb=8075&x=&y=&xy=]]></Tracking>
+    					</TrackingEvents>
+    				</Linear>
+
+    			</Creative>
+				<Creative sequence="1" id="329">
+        			<NonLinearAds>
+            			<NonLinear width="300" height="50">
+            				<StaticResource creativeType="application/x-shockwave-flash"><![CDATA[http://cdn.liverail.com/adasset/227/329/overlay.swf]]></StaticResource>
+            				            			</NonLinear>
+            			<TrackingEvents>
+							<Tracking event="acceptInvitation"><![CDATA[http://t3.liverail.com/?metric=accept&pos=1&pid=1331&coid=135&nid=0&cid=329&kid=227&vid=&amid=&cc=default&pp=&url=&cb=8075&x=&y=&xy=]]></Tracking>
+							<Tracking event="collapse"><![CDATA[http://t3.liverail.com/?metric=minimize&pos=1&pid=1331&coid=135&nid=0&cid=329&kid=227&vid=&amid=&cc=default&pp=&url=&cb=8075&x=&y=&xy=]]></Tracking>
+
+    					</TrackingEvents>
+    				</NonLinearAds>
+				</Creative>
+    			<Creative sequence="1" id="329">
+    				<CompanionAds>
+        				<Companion width="300" height="60">
+                            <StaticResource creativeType="image/jpeg"><![CDATA[http://cdn.liverail.com/adasset/166/240/300x60.jpg]]></StaticResource>
+                            <CompanionClickThrough><![CDATA[http://t3.liverail.com/?metric=cclickthru&pos=1&pid=1331&coid=135&nid=0&cid=329&kid=227&vid=&amid=&cc=default&pp=&url=&cb=8075&x=&y=&xy=&redirect=http%3A%2F%2Fliverail.com%2F]]></CompanionClickThrough>
+                            <TrackingEvents>
+
+                                <Tracking event="creativeView"><![CDATA[http://t3.liverail.com/?metric=companion&pos=1&pid=1331&coid=135&nid=0&cid=329&kid=227&vid=&amid=&cc=default&pp=&url=&cb=8075&x=&y=&xy=]]></Tracking>
+
+                            </TrackingEvents>
+                        </Companion>
+                        <Companion width="300" height="60">
+                            <IFrameResource creativeType="text/html"><![CDATA[http://ad3.liverail.com/util/companions.php?type=image&content=http%3A%2F%2Fcdn.liverail.com%2Fadasset%2F166%2F240%2F300x60.jpg&clickthru=http%3A%2F%2Ft3.liverail.com%2F%3Fmetric%3Dcclickthru%26pos%3D1%26pid%3D1331%26coid%3D135%26nid%3D0%26cid%3D329%26kid%3D227%26vid%3D%26amid%3D%26cc%3Ddefault%26pp%3D%26url%3D%26cb%3D8075%26x%3D%26y%3D%26xy%3D%26redirect%3Dhttp%253A%252F%252Fliverail.com%252F]]></IFrameResource>
+                            <CompanionClickThrough><![CDATA[http://t3.liverail.com/?metric=cclickthru&pos=1&pid=1331&coid=135&nid=0&cid=329&kid=227&vid=&amid=&cc=default&pp=&url=&cb=8075&x=&y=&xy=&redirect=http%3A%2F%2Fliverail.com%2F]]></CompanionClickThrough>
+                            <TrackingEvents>
+                                <Tracking event="creativeView"><![CDATA[http://t3.liverail.com/?metric=companion&pos=1&pid=1331&coid=135&nid=0&cid=329&kid=227&vid=&amid=&cc=default&pp=&url=&cb=8075&x=&y=&xy=]]></Tracking>
+
+                            </TrackingEvents>
+
+                        </Companion>
+        				<Companion width="728" height="90">
+                            <StaticResource creativeType="image/jpeg"><![CDATA[http://cdn.liverail.com/adasset/166/240/728x90.jpg]]></StaticResource>
+                            <CompanionClickThrough><![CDATA[http://t3.liverail.com/?metric=cclickthru&pos=1&pid=1331&coid=135&nid=0&cid=329&kid=227&vid=&amid=&cc=default&pp=&url=&cb=8075&x=&y=&xy=&redirect=http%3A%2F%2Fliverail.com%2F]]></CompanionClickThrough>
+                            <TrackingEvents>
+                                <Tracking event="creativeView"><![CDATA[http://t3.liverail.com/?metric=companion&pos=1&pid=1331&coid=135&nid=0&cid=329&kid=227&vid=&amid=&cc=default&pp=&url=&cb=8075&x=&y=&xy=]]></Tracking>
+
+                            </TrackingEvents>
+                        </Companion>
+                        <Companion width="728" height="90">
+
+                            <IFrameResource creativeType="text/html"><![CDATA[http://ad3.liverail.com/util/companions.php?type=image&content=http%3A%2F%2Fcdn.liverail.com%2Fadasset%2F166%2F240%2F728x90.jpg&clickthru=http%3A%2F%2Ft3.liverail.com%2F%3Fmetric%3Dcclickthru%26pos%3D1%26pid%3D1331%26coid%3D135%26nid%3D0%26cid%3D329%26kid%3D227%26vid%3D%26amid%3D%26cc%3Ddefault%26pp%3D%26url%3D%26cb%3D8075%26x%3D%26y%3D%26xy%3D%26redirect%3Dhttp%253A%252F%252Fliverail.com%252F]]></IFrameResource>
+                            <CompanionClickThrough><![CDATA[http://t3.liverail.com/?metric=cclickthru&pos=1&pid=1331&coid=135&nid=0&cid=329&kid=227&vid=&amid=&cc=default&pp=&url=&cb=8075&x=&y=&xy=&redirect=http%3A%2F%2Fliverail.com%2F]]></CompanionClickThrough>
+                            <TrackingEvents>
+                                <Tracking event="creativeView"><![CDATA[http://t3.liverail.com/?metric=companion&pos=1&pid=1331&coid=135&nid=0&cid=329&kid=227&vid=&amid=&cc=default&pp=&url=&cb=8075&x=&y=&xy=]]></Tracking>
+
+                            </TrackingEvents>
+                        </Companion>
+        				<Companion width="300" height="250">
+                            <StaticResource creativeType="image/jpeg"><![CDATA[http://cdn.liverail.com/adasset/166/240/300x250.jpg]]></StaticResource>
+                            <CompanionClickThrough><![CDATA[http://t3.liverail.com/?metric=cclickthru&pos=1&pid=1331&coid=135&nid=0&cid=329&kid=227&vid=&amid=&cc=default&pp=&url=&cb=8075&x=&y=&xy=&redirect=http%3A%2F%2Fliverail.com%2F]]></CompanionClickThrough>
+
+                            <TrackingEvents>
+                                <Tracking event="creativeView"><![CDATA[http://t3.liverail.com/?metric=companion&pos=1&pid=1331&coid=135&nid=0&cid=329&kid=227&vid=&amid=&cc=default&pp=&url=&cb=8075&x=&y=&xy=]]></Tracking>
+
+                            </TrackingEvents>
+                        </Companion>
+                        <Companion width="300" height="250">
+                            <IFrameResource creativeType="text/html"><![CDATA[http://ad3.liverail.com/util/companions.php?type=image&content=http%3A%2F%2Fcdn.liverail.com%2Fadasset%2F166%2F240%2F300x250.jpg&clickthru=http%3A%2F%2Ft3.liverail.com%2F%3Fmetric%3Dcclickthru%26pos%3D1%26pid%3D1331%26coid%3D135%26nid%3D0%26cid%3D329%26kid%3D227%26vid%3D%26amid%3D%26cc%3Ddefault%26pp%3D%26url%3D%26cb%3D8075%26x%3D%26y%3D%26xy%3D%26redirect%3Dhttp%253A%252F%252Fliverail.com%252F]]></IFrameResource>
+                            <CompanionClickThrough><![CDATA[http://t3.liverail.com/?metric=cclickthru&pos=1&pid=1331&coid=135&nid=0&cid=329&kid=227&vid=&amid=&cc=default&pp=&url=&cb=8075&x=&y=&xy=&redirect=http%3A%2F%2Fliverail.com%2F]]></CompanionClickThrough>
+                            <TrackingEvents>
+                                <Tracking event="creativeView"><![CDATA[http://t3.liverail.com/?metric=companion&pos=1&pid=1331&coid=135&nid=0&cid=329&kid=227&vid=&amid=&cc=default&pp=&url=&cb=8075&x=&y=&xy=]]></Tracking>
+
+
+                            </TrackingEvents>
+                        </Companion>
+    				</CompanionAds>
+    			</Creative>
+    		</Creatives>
+    	</InLine>
+    </Ad>
+</VAST><!-- 34 GB_LONDON__LONDON -->
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/liverail/example03.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/liverail/example03.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/liverail/example03.xml	(revision 7)
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<VAST version="2.0">    <Ad id="228">
+    	<InLine>
+    		<AdSystem version="3.0">LiveRail</AdSystem>
+    		<AdTitle><![CDATA[iPhone Overlay]]></AdTitle>
+    		<Description><![CDATA[]]></Description>
+    		<Impression id="LR"><![CDATA[http://t3.liverail.com/?metric=impression&pos=1&pid=1331&coid=135&nid=0&cid=330&kid=228&vid=&amid=&cc=default&pp=&url=&cb=9322&x=29&y=29&xy=9eae]]></Impression>
+    		<Impression id="LR"><![CDATA[http://t3.liverail.com/?metric=adslot&pos=1&pid=1331&coid=135&nid=0&cid=330&kid=228&vid=&amid=&cc=default&pp=&url=&cb=9322]]></Impression>
+    		<Impression id="LR"><![CDATA[http://t3.liverail.com/?metric=uniqueadslot&pos=1&pid=1331&coid=0&nid=0&cid=&kid=&vid=&amid=&cc=default&pp=&url=&cb=9322]]></Impression>
+
+            <Impression id="QC"><![CDATA[http://pixel.quantserve.com/pixel/p-d05JkuPGiy-jY?labels=inventory.publisher.1331&r=9322]]></Impression>
+            <Impression id="QC"><![CDATA[http://pixel.quantserve.com/pixel/p-d05JkuPGiy-jY?labels=inventory.network.0&r=9322]]></Impression>
+            <Impression id="QC"><![CDATA[http://pixel.quantserve.com/pixel/p-d05JkuPGiy-jY?labels=impression.campaign.228&r=9322]]></Impression>
+			<Creatives>
+				<Creative sequence="1" id="330">
+        			<NonLinearAds>
+            			<NonLinear width="300" height="50">
+            				<StaticResource creativeType="image/jpeg"><![CDATA[http://cdn.liverail.com/adasset/228/330/overlay.jpg]]></StaticResource>
+            				                			<NonLinearClickThrough><![CDATA[http://t3.liverail.com/?metric=clickthru&pos=1&pid=1331&coid=135&nid=0&cid=330&kid=228&vid=&amid=&cc=default&pp=&url=&cb=9322&x=&y=&xy=&redirect=http%3A%2F%2Fliverail.com%2F]]></NonLinearClickThrough>
+
+                			            			</NonLinear>
+            			<TrackingEvents>
+							<Tracking event="acceptInvitation"><![CDATA[http://t3.liverail.com/?metric=accept&pos=1&pid=1331&coid=135&nid=0&cid=330&kid=228&vid=&amid=&cc=default&pp=&url=&cb=9322&x=&y=&xy=]]></Tracking>
+							<Tracking event="collapse"><![CDATA[http://t3.liverail.com/?metric=minimize&pos=1&pid=1331&coid=135&nid=0&cid=330&kid=228&vid=&amid=&cc=default&pp=&url=&cb=9322&x=&y=&xy=]]></Tracking>
+    					</TrackingEvents>
+    				</NonLinearAds>
+				</Creative>
+    			<Creative sequence="1" id="330">
+    				<CompanionAds>
+
+        				<Companion width="300" height="60">
+                            <StaticResource creativeType="image/jpeg"><![CDATA[http://cdn.liverail.com/adasset/229/331/300x60.jpg]]></StaticResource>
+                            <CompanionClickThrough><![CDATA[http://t3.liverail.com/?metric=cclickthru&pos=1&pid=1331&coid=135&nid=0&cid=330&kid=228&vid=&amid=&cc=default&pp=&url=&cb=9322&x=&y=&xy=&redirect=http%3A%2F%2Fliverail.com%2F]]></CompanionClickThrough>
+                            <TrackingEvents>
+                                <Tracking event="creativeView"><![CDATA[http://t3.liverail.com/?metric=companion&pos=1&pid=1331&coid=135&nid=0&cid=330&kid=228&vid=&amid=&cc=default&pp=&url=&cb=9322&x=&y=&xy=]]></Tracking>
+
+                            </TrackingEvents>
+                        </Companion>
+                        <Companion width="300" height="60">
+                            <IFrameResource creativeType="text/html"><![CDATA[http://ad3.liverail.com/util/companions.php?type=image&content=http%3A%2F%2Fcdn.liverail.com%2Fadasset%2F229%2F331%2F300x60.jpg&clickthru=http%3A%2F%2Ft3.liverail.com%2F%3Fmetric%3Dcclickthru%26pos%3D1%26pid%3D1331%26coid%3D135%26nid%3D0%26cid%3D330%26kid%3D228%26vid%3D%26amid%3D%26cc%3Ddefault%26pp%3D%26url%3D%26cb%3D9322%26x%3D%26y%3D%26xy%3D%26redirect%3Dhttp%253A%252F%252Fliverail.com%252F]]></IFrameResource>
+
+                            <CompanionClickThrough><![CDATA[http://t3.liverail.com/?metric=cclickthru&pos=1&pid=1331&coid=135&nid=0&cid=330&kid=228&vid=&amid=&cc=default&pp=&url=&cb=9322&x=&y=&xy=&redirect=http%3A%2F%2Fliverail.com%2F]]></CompanionClickThrough>
+                            <TrackingEvents>
+                                <Tracking event="creativeView"><![CDATA[http://t3.liverail.com/?metric=companion&pos=1&pid=1331&coid=135&nid=0&cid=330&kid=228&vid=&amid=&cc=default&pp=&url=&cb=9322&x=&y=&xy=]]></Tracking>
+
+                            </TrackingEvents>
+                        </Companion>
+    				</CompanionAds>
+    			</Creative>
+    		</Creatives>
+    	</InLine>
+
+    </Ad>
+</VAST><!-- 16 GB_LONDON__LONDON -->
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/adtech/adtech.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/adtech/adtech.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/adtech/adtech.xml	(revision 7)
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VideoAdServingTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd">
+<Ad id="pre-roll0-0">
+<InLine>
+<AdSystem>Adtech</AdSystem>
+<AdTitle>preroll</AdTitle>
+<Impression>
+	<URL id="myadserver"><![CDATA[http://de.at.atwola.com/utrack|3.0|515|0|0|0|BeaconId=4080;rettype=img;subnid=1;Section=VID_START]]></URL>
+	<URL id="myadserver2"><![CDATA[http://de.at.atwola.com/adcount/3.0/515/2188758/0/1725/AdId=2597126;BnId=1;ct=2649753469;st=401;adcid=1;itime=661519475;reqtype=25;counttype=VID_START]]></URL>
+	<URL id="anotheradserver"></URL>
+</Impression>
+<TrackingEvents>
+
+<Tracking event="firstQuartile">
+		<URL id="myadserver"><![CDATA[http://de.at.atwola.com/utrack|3.0|515|0|0|0|BeaconId=4080;rettype=img;subnid=1;Section=VID_25]]></URL>
+		<URL id="anotheradserver"></URL>
+</Tracking>
+<Tracking event="midpoint">
+		<URL id="myadserver"><![CDATA[http://de.at.atwola.com/utrack|3.0|515|0|0|0|BeaconId=4080;rettype=img;subnid=1;Section=VID_MID]]></URL>
+		<URL id="anotheradserver"></URL>
+</Tracking>
+<Tracking event="thirdQuartile">
+		<URL id="myadserver"><![CDATA[http://de.at.atwola.com/utrack|3.0|515|0|0|0|BeaconId=4080;rettype=img;subnid=1;Section=VID_75]]></URL>
+		<URL id="anotheradserver"></URL>
+
+</Tracking>
+<Tracking event="complete">
+		<URL id="myadserver"><![CDATA[http://de.at.atwola.com/utrack|3.0|515|0|0|0|BeaconId=4080;rettype=img;subnid=1;Section=VID_END]]></URL>
+		<URL id="anotheradserver"></URL>
+</Tracking>
+<Tracking event="mute">
+		<URL id="myadserver"><![CDATA[http://de.at.atwola.com/utrack|3.0|515|0|0|0|BeaconId=4080;rettype=img;subnid=1;Section=VID_MUTE]]></URL>
+</Tracking>
+<Tracking event="pause">
+		<URL id="myadserver"><![CDATA[http://de.at.atwola.com/utrack|3.0|515|0|0|0|BeaconId=4080;rettype=img;subnid=1;Section=VID_PAUSE]]></URL>
+</Tracking>
+<Tracking event="replay">
+	<URL id="myadserver"><![CDATA[http://de.at.atwola.com/utrack|3.0|515|0|0|0|BeaconId=4080;rettype=img;subnid=1;Section=VID_REPLAY]]></URL>
+
+</Tracking>
+<Tracking event="fullscreen">
+	<URL id="myadserver"><![CDATA[http://de.at.atwola.com/utrack|3.0|515|0|0|0|BeaconId=4080;rettype=img;subnid=1;Section=VID_FULLSCREEN]]></URL>
+</Tracking>
+</TrackingEvents>
+<Video><Duration>00:00:16</Duration>
+<AdID></AdID>
+<VideoClicks>
+<ClickThrough>
+<URL><![CDATA[http://de.at.atwola.com/adlink/515/2188758/0/1725/AdId=2597126;BnId=1;itime=661519475;key=key1+key2;nodecode=yes;link=http://www.schmeck-die-power.de]]></URL>
+</ClickThrough>
+<ClickTracking>
+<URL id="anotheradserver"></URL>
+<URL id="athirdadserver"><![CDATA[[click2]]]></URL>
+</ClickTracking>
+
+</VideoClicks>
+<MediaFiles>
+<MediaFile delivery="progressive" bitrate="400" width="400" height="300" type="video/x-flv"><URL><![CDATA[http://stream11.instream.com/de/flash/2009/mllr/mul_coffee_F3_720x480_preroll_090807_v1_sk_400x300.flv]]></URL></MediaFile>
+<MediaFile delivery="progressive" bitrate="200" width="400" height="300" type="video/x-flv"><URL><![CDATA[http://stream11.instream.com/de/flash/2009/mllr/mul_coffee_F3_720x480_preroll_090807_v1_sk_400x300.flv]]></URL></MediaFile>
+<MediaFile delivery="progressive" bitrate="75" width="320" height="240" type="video/x-flv"><URL><![CDATA[http://stream11.instream.com/de/flash/2009/mllr/mul_coffee_F3_720x480_preroll_090807_v1_sk_320x240.flv]]></URL></MediaFile>
+</MediaFiles>
+</Video>
+<CompanionAds>
+
+<Companion id="vast_companion_728x90_js" width="728" height="90" resourceType="script" creativeType="any"><URL><![CDATA[http://de.at.atwola.com/addyn/3.0/515.1/2138396/0/225/ADTECH;loc=100;target=_blank;adid=2596908;bnid=-1;misc=661519475]]></URL></Companion>
+<Companion id="vast_companion_300x250_js" width="300" height="250" resourceType="script" creativeType="any"><URL><![CDATA[http://de.at.atwola.com/addyn/3.0/515.1/2138396/0/170/ADTECH;loc=100;target=_blank;adid=2596908;bnid=-1;misc=661519475]]></URL></Companion>
+
+<Companion id="vast_companion_160x600_js" width="160" height="600" resourceType="script" creativeType="any"><URL><![CDATA[http://de.at.atwola.com/addyn/3.0/515.1/2138396/0/154/ADTECH;loc=100;target=_blank;adid=2596908;bnid=-1;misc=661519475]]></URL></Companion>
+
+<Companion id="vast_companion_728x90_iframe" width="728" height="90" resourceType="HTML"><Code><![CDATA[ <IFRAME WIDTH="728" HEIGHT="90" SCROLLING="No" FRAMEBORDER="0" MARGINHEIGHT="0" MARGINWIDTH="0" SRC="http://de.at.atwola.com/adiframe/3.0/515.1/2193111/0/225/ADTECH;loc=100;target=_blank;adid=2596908;bnid=-1;misc=661519475"><noscript><a href="http://de.at.atwola.com/adlink/515/2188758/0/1725/AdId=2597126;BnId=1;itime=661519475;key=key1+key2;nodecode=yes;link=http://de.at.atwola.com/adlink/3.0/515.1/2193111/0/225/ADTECH;loc=100;target=_blank;adid=2596908;bnid=-1;misc=661519475" target="_blank"><img src="http://de.at.atwola.com/adserv/3.0/515.1/2193111/0/225/ADTECH;loc=100;target=_blank;adid=2596908;bnid=-1;misc=661519475" border="0" width="728" height="90"></a></noscript></IFRAME>]]></Code></Companion>
+<Companion id="vast_companion_300x250_iframe" width="300" height="250" resourceType="HTML"><Code><![CDATA[ <IFRAME WIDTH="300" HEIGHT="250" SCROLLING="No" FRAMEBORDER="0" MARGINHEIGHT="0" MARGINWIDTH="0" SRC="http://de.at.atwola.com/adiframe/3.0/515.1/2193111/0/170/ADTECH;loc=100;target=_blank;adid=2596908;bnid=-1;misc=661519475"><noscript><a href="http://de.at.atwola.com/adlink/515/2188758/0/1725/AdId=2597126;BnId=1;itime=661519475;key=key1+key2;nodecode=yes;link=http://de.at.atwola.com/adlink/3.0/515.1/2193111/0/170/ADTECH;loc=100;target=_blank;adid=2596908;bnid=-1;misc=661519475" target="_blank"><img src="http://de.at.atwola.com/adserv/3.0/515.1/2193111/0/170/ADTECH;loc=100;target=_blank;adid=2596908;bnid=-1;misc=661519475" border="0" width="300" height="250"></a></noscript></IFRAME>]]></Code></Companion>
+
+<Companion id="vast_companion_160x600_iframe" width="160" height="600" resourceType="HTML"><Code><![CDATA[ <IFRAME WIDTH="160" HEIGHT="600" SCROLLING="No" FRAMEBORDER="0" MARGINHEIGHT="0" MARGINWIDTH="0" SRC="http://de.at.atwola.com/adiframe/3.0/515.1/2193111/0/154/ADTECH;loc=100;target=_blank;adid=2596908;bnid=-1;misc=661519475"><noscript><a href="http://de.at.atwola.com/adlink/515/2188758/0/1725/AdId=2597126;BnId=1;itime=661519475;key=key1+key2;nodecode=yes;link=http://de.at.atwola.com/adlink/3.0/515.1/2193111/0/154/ADTECH;loc=100;target=_blank;adid=2596908;bnid=-1;misc=661519475" target="_blank"><img src="http://de.at.atwola.com/adserv/3.0/515.1/2193111/0/154/ADTECH;loc=100;target=_blank;adid=2596908;bnid=-1;misc=661519475" border="0" width="160" height="600"></a></noscript></IFRAME>]]></Code></Companion>
+</CompanionAds>
+</InLine>
+</Ad>
+</VideoAdServingTemplate>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/telemetry/telemetry-wrapper-vast1.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/telemetry/telemetry-wrapper-vast1.xml	(revision 347)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/telemetry/telemetry-wrapper-vast1.xml	(revision 347)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VideoAdServingTemplate>
+	<Ad id="602833">
+		<Wrapper>
+			<AdSystem>Telemetry</AdSystem>
+			<VASTAdTagURL>
+				<URL><![CDATA[http://spc.cepghffemeifkhheeeffbhed.vast1as3.telemetryverification.net/?]]></URL>
+			</VASTAdTagURL>
+			<Impression><URL><![CDATA[http://myTrackingURL/wrapper/impression]]></URL></Impression>
+		</Wrapper>
+	</Ad>
+</VideoAdServingTemplate>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/telemetry/telemetry-wrapper-vast2.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/telemetry/telemetry-wrapper-vast2.xml	(revision 347)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/telemetry/telemetry-wrapper-vast2.xml	(revision 347)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VAST version="2.0">
+	<Ad id="602833">
+		<Wrapper>
+			<AdSystem>Telemetry</AdSystem>
+			<VASTAdTagURI><![CDATA[http://spc.cepghffemeifkhheeeffbhed.vast2as3.telemetryverification.net/?]]></VASTAdTagURI>
+			<Impression><![CDATA[http://myTrackingURL/wrapper/impression]]></Impression>
+			<Creatives></Creatives>
+		</Wrapper>
+	</Ad>
+</VAST>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/adify/vast2-linear.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/adify/vast2-linear.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/adify/vast2-linear.xml	(revision 7)
@@ -0,0 +1,27 @@
+<VAST version="2.0">
+<!-- new format with multiple impression tracking -->
+  <Ad id="Adify">
+    <InLine>
+      <AdSystem>Adify</AdSystem>
+      <AdTitle>For Publishers Esurance Revised 6/18</AdTitle>
+      <Description></Description>
+      <Impression>http://ad.afy11.net/ad?ipc=KgzWibqvqE6auFnMQ3giQ2DHrXMLvSYrPqDO5Zllan10PC51zy7fAYjpZPzFAPJ6ibVY5t91Ngq4zZgL7QHZjE6AEVtOrMfh24FBjtSLPU8=</Impression>
+      <Impression><![CDATA[http://ad.doubleclick.net/ad/N6059.152239.NCM.COM/B4151081]]></Impression>
+      <Creatives>
+        <Creative sequence="1" id="1000006905818">
+          <Linear>
+            <Duration>00:00:15</Duration>
+            <VideoClicks>
+              <ClickTracking></ClickTracking>
+              <ClickThrough><![CDATA[http://ad.doubleclick.net/clk;225795565;49638894;k?http://www.esurance.com/welcome/landing/get_your_quote_today774.aspx?ts=7&PromoID=NCMOV0001]]></ClickThrough>
+            </VideoClicks>
+            <MediaFiles>
+              <MediaFile delivery="progressive" width="640" height="360" type="video/x-flv" bitrate="350"><![CDATA[http://streaming.openvideoads.org:81/shows/the-black-hole.mp4]]></MediaFile>
+            </MediaFiles>
+          </Linear>
+        </Creative>
+      </Creatives>
+    </InLine>
+  </Ad>
+
+</VAST>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/adify/vast2-overlay.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/adify/vast2-overlay.xml	(revision 193)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/adify/vast2-overlay.xml	(revision 193)
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="UTF-8"?><VAST version="2.0">
+  <Ad id="Adify">
+    <InLine>
+      <AdSystem>Adify</AdSystem>
+      <AdTitle>Open Video Ads VAST 2.0 Demo</AdTitle>
+      <Description>Open Video Ads VAST 2.0 Demo</Description>
+      <Impression>http://ad.afy11.net/ad?ipc=47tILD5cQUGXW9YaA+wWFBplkY2SRqNgE+CuN4HiuuF+95JwGgw6ai0fBx3pdNhMNtkjwzSM+x5QxOUUPI2GOJxOeETc5r3JPTdo8DvdUd4=</Impression>
+
+      <Creatives>
+        <Creative sequence="1" id="1000005830818">
+          <Linear>
+            <Duration>00:00:15</Duration>
+            <TrackingEvents>
+              <Tracking event="close"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000042205&ad1=1000005830818&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              <Tracking event="acceptInvitation"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000042305&ad1=1000005830818&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              <Tracking event="collapse"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000042405&ad1=1000005830818&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+
+              <Tracking event="expand"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000042505&ad1=1000005830818&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              <Tracking event="fullscreen"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000042605&ad1=1000005830818&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              <Tracking event="resume"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000042705&ad1=1000005830818&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              <Tracking event="rewind"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000042805&ad1=1000005830818&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              <Tracking event="pause"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000042905&ad1=1000005830818&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              <Tracking event="unmute"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000043005&ad1=1000005830818&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              <Tracking event="mute"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000043105&ad1=1000005830818&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              <Tracking event="complete"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000043205&ad1=1000005830818&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              <Tracking event="thirdQuartile"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000043305&ad1=1000005830818&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+
+              <Tracking event="firstQuartile"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000043405&ad1=1000005830818&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              <Tracking event="midpoint"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000043505&ad1=1000005830818&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              <Tracking event="start"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000043605&ad1=1000005830818&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              <Tracking event="creativeView"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000043705&ad1=1000005830818&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+            </TrackingEvents>
+            <VideoClicks>
+              <ClickTracking><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000042105&ad1=1000005830818&ad2=1000003635909&ad3=1000002629107]]></ClickTracking>
+              <ClickTracking><![CDATA[http://ad.afy11.net/ad?c=47tILD5cQUGXW9YaA+wWFO5TOObqquOwkcl-07NI5Uqdx+GG7JmUeNk-U2sKrxkW6SUgYhyHyDjFxOpnf1Pnx7m-rXM9jtXJmZn-0-dGGUM=]]></ClickTracking>
+              <ClickThrough><![CDATA[http://adify.com]]></ClickThrough>
+
+            </VideoClicks>
+            <MediaFiles>
+              <MediaFile delivery="progressive" width="640" height="480" type="video/x-flv" bitrate="700"><![CDATA[http://im.afy11.net/images/asset/05/73/1000005733318.flv?e=1281689977&h=3dcfb2d63825df8e56b2f0d24fb56317]]></MediaFile>
+            </MediaFiles>
+          </Linear>
+        </Creative>
+        <Creative sequence="1" id="1000005830918">
+          <CompanionAds>
+            <Companion width="300" height="250">
+
+              <StaticResource creativeType="image/gif"><![CDATA[http://im.afy11.net/images/asset/05/71/1000005719018.gif?e=1281689977&h=a7a1072b0f61fd40f23b435deb5496a7]]></StaticResource>
+              <TrackingEvents>
+                <Tracking event="creativeView"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000043805&ad1=1000005830918&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              </TrackingEvents>
+              <CompanionClickThrough><![CDATA[http://adify.com]]></CompanionClickThrough>
+            </Companion>
+          </CompanionAds>
+        </Creative>
+        <Creative sequence="1" id="1000005831018">
+
+          <NonLinearAds>
+            <TrackingEvents>
+              <Tracking event="close"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000043905&ad1=1000005831018&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              <Tracking event="acceptInvitation"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000044005&ad1=1000005831018&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              <Tracking event="collapse"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000044105&ad1=1000005831018&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              <Tracking event="expand"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000044205&ad1=1000005831018&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              <Tracking event="fullscreen"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000044305&ad1=1000005831018&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              <Tracking event="resume"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000044405&ad1=1000005831018&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              <Tracking event="rewind"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000044505&ad1=1000005831018&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+
+              <Tracking event="pause"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000044605&ad1=1000005831018&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              <Tracking event="unmute"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000044705&ad1=1000005831018&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              <Tracking event="mute"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000044805&ad1=1000005831018&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              <Tracking event="complete"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000044905&ad1=1000005831018&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              <Tracking event="thirdQuartile"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000045005&ad1=1000005831018&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              <Tracking event="firstQuartile"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000045105&ad1=1000005831018&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              <Tracking event="midpoint"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000045205&ad1=1000005831018&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              <Tracking event="start"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000045305&ad1=1000005831018&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+              <Tracking event="creativeView"><![CDATA[http://ad.afy11.net/ad?mode=6&ac=1&av=1000000045405&ad1=1000005831018&ad2=1000003635909&ad3=1000002629107]]></Tracking>
+
+            </TrackingEvents>
+            <NonLinear width="300" height="50">
+              <StaticResource creativeType="image/gif"><![CDATA[http://im.afy11.net/images/asset/05/71/1000005718918.gif?e=1281689977&h=d95b85c7b89ea68c9509edd842813d70]]></StaticResource>
+              <NonLinearClickThrough><![CDATA[http://adify.com]]></NonLinearClickThrough>
+            </NonLinear>
+          </NonLinearAds>
+        </Creative>
+      </Creatives>
+    </InLine>
+  </Ad>
+</VAST>
+
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/lightningcast/example01.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/lightningcast/example01.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/ad-servers/lightningcast/example01.xml	(revision 7)
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VideoAdServingTemplate>
+  <Ad>
+    <InLine>
+      <AdSystem>AOL-Video</AdSystem>
+      <AdTitle>Ad - 15 Lupus (HTML ct)</AdTitle>
+      <Impression>
+        <URL id="AuditUrl"><![CDATA[http://stats.lightningcast.net/servlets/audit?js=t&version=6.0&ioId=60274&creativeId=81692&contentId=343644&streamId=403414&fr=1278351008878&attr=%5B302%2C444%5D%5B302%2C33070%5D%5B302%2C35210%5D%5B302%2C33082%5D%5B302%2C153938%5D&uid=LC1278351008875%3A275190&geo=sw1a&content=nocontent&playId=A8CyJ4uzrSXIQnh4zyLb0pO]]></URL>
+      </Impression>
+      <TrackingEvents>
+        <Tracking event="start">
+          <URL id="PTAGPRE2"><![CDATA[http://stream11.instream.com/img/test/3rdparty_pre?A8CyJ4uzrSXIQnh4zyLb0pO]]></URL>
+          <URL id="PTAGPRE1"><![CDATA[http://view.atdmt.com/AVE/view/117974755/direct;wi.1;hi.1/01/A8CyJ4uzrSXIQnh4zyLb0pO]]></URL>
+          <URL id="LCPercentAudit-0"><![CDATA[http://stats2.lightningcast.net/spotAudit.html?js=t&version=6.0&ioId=60274&creativeId=81692&contentId=343644&streamId=403414&fr=1278351008878&attr=%5B302%2C444%5D%5B302%2C33070%5D%5B302%2C35210%5D%5B302%2C33082%5D%5B302%2C153938%5D&uid=LC1278351008875%3A275190&geo=sw1a&content=nocontent&playId=A8CyJ4uzrSXIQnh4zyLb0pO&pct=0]]></URL>
+        </Tracking>
+        <Tracking event="midpoint">
+          <URL id="PTAGMID2"><![CDATA[http://secure-us.imrworldwide.com/cgi-bin/m?ci=us-ade&cg=12024&si=%esid!_%epid!_%ecid!_%eaid!&cc=1&ut=1&c0=sID,%esid!&c1=pID,%epid!&c2=aid,%eadv!&c3=adID,%eaid!&c4=cID,%ecid!&c5=rID,%erid!&c6=camp,12024]]></URL>
+          <URL id="PTAGMID1"><![CDATA[http://ad.doubleclick.net/imp;v1;f;202702022;0-0;0;26820435;1|1;26467822|26485679|1;;cs=h%3fhttp://ad.doubleclick.net/dot.gif?A8CyJ4uzrSXIQnh4zyLb0pO]]></URL>
+          <URL id="LCPercentAudit-50"><![CDATA[http://stats2.lightningcast.net/spotAudit.html?js=t&version=6.0&ioId=60274&creativeId=81692&contentId=343644&streamId=403414&fr=1278351008878&attr=%5B302%2C444%5D%5B302%2C33070%5D%5B302%2C35210%5D%5B302%2C33082%5D%5B302%2C153938%5D&uid=LC1278351008875%3A275190&geo=sw1a&content=nocontent&playId=A8CyJ4uzrSXIQnh4zyLb0pO&pct=50]]></URL>
+        </Tracking>
+        <Tracking event="complete">
+          <URL id="PTAGPOST1"><![CDATA[http://stream11.instream.com/img/test/3rdparty_post?A8CyJ4uzrSXIQnh4zyLb0pO]]></URL>
+          <URL id="LCPercentAudit-100"><![CDATA[http://stats2.lightningcast.net/spotAudit.html?js=t&version=6.0&ioId=60274&creativeId=81692&contentId=343644&streamId=403414&fr=1278351008878&attr=%5B302%2C444%5D%5B302%2C33070%5D%5B302%2C35210%5D%5B302%2C33082%5D%5B302%2C153938%5D&uid=LC1278351008875%3A275190&geo=sw1a&content=nocontent&playId=A8CyJ4uzrSXIQnh4zyLb0pO&pct=100&pf=t]]></URL>
+        </Tracking>
+      </TrackingEvents>
+      <Video>
+        <Duration>00:00:15</Duration>
+        <AdID>60274-81692-343644</AdID>
+        <VideoClicks>
+          <ClickThrough>
+            <URL id="videoclick"><![CDATA[http://click.lightningcast.net/servlets/clickThru?v=6.0&cr=81692&ct=343644&io=60274&st=403414&ip=212.36.54.130&upid=A8CyJ4uzrSXIQnh4zyLb0pO&content=nocontent&uid=LC1278351008878%3A303380&geo=sw1a&attr=%5B302%2C444%5D%5B302%2C33070%5D%5B302%2C35210%5D%5B302%2C33082%5D%5B302%2C153938%5D]]></URL>
+          </ClickThrough>
+        </VideoClicks>
+        <MediaFiles>
+          <MediaFile delivery="progressive" bitrate="400" width="400" height="300" type="video/x-flv">
+            <URL><![CDATA[http://stream11.instream.com/flash/psa/lupas_400_480_270.flv]]></URL>
+          </MediaFile>
+        </MediaFiles>
+      </Video>
+      <CompanionAds>
+        <Companion id="StandardBanner" width="300" height="250" resourceType="iframe" creativeType="text/html">
+          <URL><![CDATA[http://stats.lightningcast.com/servlets/getElement?creativeid=81692&clickTag=http%3A%2F%2Fclick.lightningcast.net%2Fservlets%2FclickThru%3Fv%3D6.0%26cr%3D81692%26ct%3D343640%26io%3D60274%26st%3D403414%26ip%3D212.36.54.130%26upid%3DA8CyJ4uzrSXIQnh4zyLb0pO%26content%3Dnocontent%26uid%3DLC1278351008878%253A198004%26geo%3Dsw1a%26attr%3D%255B302%252C444%255D%255B302%252C33070%255D%255B302%252C35210%255D%255B302%252C33082%255D%255B302%252C153938%255D&streamid=403414&formatid=32&bId=343640&upid=A8CyJ4uzrSXIQnh4zyLb0pO&ioid=60274&ip=212.36.54.130&region=StandardBanner&resp=REDIR&fr=1278351008879&content=nocontent&geo=sw1a&attr=%5B302%2C444%5D%5B302%2C33070%5D%5B302%2C35210%5D%5B302%2C33082%5D%5B302%2C153938%5D&ext=.html]]></URL>
+        </Companion>
+        <Companion id="728x90" width="728" height="90" resourceType="iframe" creativeType="text/html">
+          <URL><![CDATA[http://stats.lightningcast.com/servlets/getElement?creativeid=81692&clickTag=http%3A%2F%2Fclick.lightningcast.net%2Fservlets%2FclickThru%3Fv%3D6.0%26cr%3D81692%26ct%3D344310%26io%3D60274%26st%3D403414%26ip%3D212.36.54.130%26upid%3DA8CyJ4uzrSXIQnh4zyLb0pO%26content%3Dnocontent%26uid%3DLC1278351008879%253A665339%26geo%3Dsw1a%26attr%3D%255B302%252C444%255D%255B302%252C33070%255D%255B302%252C35210%255D%255B302%252C33082%255D%255B302%252C153938%255D&streamid=403414&formatid=50&bId=344310&upid=A8CyJ4uzrSXIQnh4zyLb0pO&ioid=60274&ip=212.36.54.130&region=728x90&resp=REDIR&fr=1278351008879&content=nocontent&geo=sw1a&attr=%5B302%2C444%5D%5B302%2C33070%5D%5B302%2C35210%5D%5B302%2C33082%5D%5B302%2C153938%5D&ext=.html]]></URL>
+        </Companion>
+      </CompanionAds>
+      <Extensions>
+        <Extension type="adServer">
+          <SpotType><![CDATA[AD]]></SpotType>
+        </Extension>
+      </Extensions>
+    </InLine>
+  </Ad>
+  <!--template name=adonly_vast-->
+  <!--template id=101243-->
+  <!--template ver=1-->
+  <!--gpserver=ntc-dmz-g39.prod.root-->
+  <!--uid=LC1278351008875:536901-->
+  <!--upid=A8CyJ4uzrSXIQnh4zyLb0pO-->
+  <!--exclusive_attributes=-->
+</VideoAdServingTemplate>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/interactive/interactive-preroll.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/interactive/interactive-preroll.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/interactive/interactive-preroll.xml	(revision 7)
@@ -0,0 +1,62 @@
+<VideoAdServingTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd">
+    <Ad id="pre-roll0-0" >
+        <InLine>
+	        <AdSystem>OpenX</AdSystem>
+	        <AdTitle><![CDATA[Linear Interactive Example]]></AdTitle>
+	        <Description><![CDATA[Inline Video Ad]]></Description>
+	        <Impression>
+	        	<URL id="primaryAdServer">
+	        		<![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/lg.php?bannerid=2500&campaignid=3&zoneid=5&loc=1&cb=f9c2057f12]]>
+	        	</URL>
+	       	</Impression>
+	       	<Video>
+	        	<Duration>00:00:20</Duration>
+	            <AdID><![CDATA[25]]></AdID>
+	            <MediaFiles>
+	            	<MediaFile delivery="interactive" width="640" height="480" maintainAspectRatio="true" scalable="true" type="application/x-shockwave-flash">
+	                   <URL><![CDATA[http://static.bouncingminds.com/ads/interactive/117057347_023940253-preroll.swf]]></URL>
+	                </MediaFile>
+	            </MediaFiles>
+	        </Video>
+            <TrackingEvents>
+                <Tracking event="start">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=start]]></URL>
+                </Tracking>
+                <Tracking event="midpoint">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=midpoint]]></URL>
+                </Tracking>
+                <Tracking event="firstQuartile">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=firstquartile]]></URL>
+                </Tracking>
+                <Tracking event="thirdQuartile">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=thirdquartile]]></URL>
+                </Tracking>
+                <Tracking event="complete">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=complete]]></URL>
+                </Tracking>
+                <Tracking event="mute">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=mute]]></URL>
+                </Tracking>
+                <Tracking event="pause">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=pause]]></URL>
+                </Tracking>
+                <Tracking event="replay">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=replay]]></URL>
+                </Tracking>
+                <Tracking event="fullscreen">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=fullscreen]]></URL>
+                </Tracking>
+                <Tracking event="stop">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=stop]]></URL>
+                </Tracking>
+                <Tracking event="unmute">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=unmute]]></URL>
+                </Tracking>
+               <Tracking event="resume">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=resume]]></URL>
+                </Tracking>
+            </TrackingEvents>
+        </InLine>
+    </Ad>
+</VideoAdServingTemplate>
+
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/interactive/interactive-preroll2.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/interactive/interactive-preroll2.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/interactive/interactive-preroll2.xml	(revision 7)
@@ -0,0 +1,62 @@
+<VideoAdServingTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd">
+    <Ad id="pre-roll0-0" >
+        <InLine>
+	        <AdSystem>OpenX</AdSystem>
+	        <AdTitle><![CDATA[Linear Interactive Example]]></AdTitle>
+	        <Description><![CDATA[Inline Video Ad]]></Description>
+	        <Impression>
+	        	<URL id="primaryAdServer">
+	        		<![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/lg.php?bannerid=2500&campaignid=3&zoneid=5&loc=1&cb=f9c2057f12]]>
+	        	</URL>
+	       	</Impression>
+	       	<Video>
+	        	<Duration>00:00:20</Duration>
+	            <AdID><![CDATA[25]]></AdID>
+	            <MediaFiles>
+	            	<MediaFile delivery="interactive" width="640" height="480" maintainAspectRatio="true" scalable="false" type="application/x-shockwave-flash">
+	                   <URL><![CDATA[http://static.bouncingminds.com/ads/interactive/117057347_023940253-preroll.swf]]></URL>
+	                </MediaFile>
+	            </MediaFiles>
+	        </Video>
+            <TrackingEvents>
+                <Tracking event="start">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=start]]></URL>
+                </Tracking>
+                <Tracking event="midpoint">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=midpoint]]></URL>
+                </Tracking>
+                <Tracking event="firstQuartile">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=firstquartile]]></URL>
+                </Tracking>
+                <Tracking event="thirdQuartile">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=thirdquartile]]></URL>
+                </Tracking>
+                <Tracking event="complete">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=complete]]></URL>
+                </Tracking>
+                <Tracking event="mute">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=mute]]></URL>
+                </Tracking>
+                <Tracking event="pause">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=pause]]></URL>
+                </Tracking>
+                <Tracking event="replay">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=replay]]></URL>
+                </Tracking>
+                <Tracking event="fullscreen">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=fullscreen]]></URL>
+                </Tracking>
+                <Tracking event="stop">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=stop]]></URL>
+                </Tracking>
+                <Tracking event="unmute">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=unmute]]></URL>
+                </Tracking>
+               <Tracking event="resume">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=resume]]></URL>
+                </Tracking>
+            </TrackingEvents>
+        </InLine>
+    </Ad>
+</VideoAdServingTemplate>
+
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/interactive/interactive-preroll3.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/interactive/interactive-preroll3.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/interactive/interactive-preroll3.xml	(revision 7)
@@ -0,0 +1,62 @@
+<VideoAdServingTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd">
+    <Ad id="pre-roll0-0" >
+        <InLine>
+	        <AdSystem>OpenX</AdSystem>
+	        <AdTitle><![CDATA[Linear Interactive Example]]></AdTitle>
+	        <Description><![CDATA[Inline Video Ad]]></Description>
+	        <Impression>
+	        	<URL id="primaryAdServer">
+	        		<![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/lg.php?bannerid=2500&campaignid=3&zoneid=5&loc=1&cb=f9c2057f12]]>
+	        	</URL>
+	       	</Impression>
+	       	<Video>
+	        	<Duration>00:00:20</Duration>
+	            <AdID><![CDATA[25]]></AdID>
+	            <MediaFiles>
+	            	<MediaFile delivery="interactive" width="640" height="480" maintainAspectRatio="false" scalable="true" type="application/x-shockwave-flash">
+	                   <URL><![CDATA[http://static.bouncingminds.com/ads/interactive/117057347_023940253-preroll.swf]]></URL>
+	                </MediaFile>
+	            </MediaFiles>
+	        </Video>
+            <TrackingEvents>
+                <Tracking event="start">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=start]]></URL>
+                </Tracking>
+                <Tracking event="midpoint">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=midpoint]]></URL>
+                </Tracking>
+                <Tracking event="firstQuartile">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=firstquartile]]></URL>
+                </Tracking>
+                <Tracking event="thirdQuartile">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=thirdquartile]]></URL>
+                </Tracking>
+                <Tracking event="complete">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=complete]]></URL>
+                </Tracking>
+                <Tracking event="mute">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=mute]]></URL>
+                </Tracking>
+                <Tracking event="pause">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=pause]]></URL>
+                </Tracking>
+                <Tracking event="replay">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=replay]]></URL>
+                </Tracking>
+                <Tracking event="fullscreen">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=fullscreen]]></URL>
+                </Tracking>
+                <Tracking event="stop">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=stop]]></URL>
+                </Tracking>
+                <Tracking event="unmute">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=unmute]]></URL>
+                </Tracking>
+               <Tracking event="resume">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=resume]]></URL>
+                </Tracking>
+            </TrackingEvents>
+        </InLine>
+    </Ad>
+</VideoAdServingTemplate>
+
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/interactive/interactive-preroll4.xml
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/interactive/interactive-preroll4.xml	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/dist/templates/interactive/interactive-preroll4.xml	(revision 7)
@@ -0,0 +1,62 @@
+<VideoAdServingTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd">
+    <Ad id="pre-roll0-0" >
+        <InLine>
+	        <AdSystem>OpenX</AdSystem>
+	        <AdTitle><![CDATA[Linear Interactive Example]]></AdTitle>
+	        <Description><![CDATA[Inline Video Ad]]></Description>
+	        <Impression>
+	        	<URL id="primaryAdServer">
+	        		<![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/lg.php?bannerid=2500&campaignid=3&zoneid=5&loc=1&cb=f9c2057f12]]>
+	        	</URL>
+	       	</Impression>
+	       	<Video>
+	        	<Duration>00:00:20</Duration>
+	            <AdID><![CDATA[25]]></AdID>
+	            <MediaFiles>
+	            	<MediaFile delivery="interactive" width="640" height="480" type="application/x-shockwave-flash">
+	                   <URL><![CDATA[http://static.bouncingminds.com/ads/interactive/117057347_023940253-preroll.swf]]></URL>
+	                </MediaFile>
+	            </MediaFiles>
+	        </Video>
+            <TrackingEvents>
+                <Tracking event="start">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=start]]></URL>
+                </Tracking>
+                <Tracking event="midpoint">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=midpoint]]></URL>
+                </Tracking>
+                <Tracking event="firstQuartile">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=firstquartile]]></URL>
+                </Tracking>
+                <Tracking event="thirdQuartile">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=thirdquartile]]></URL>
+                </Tracking>
+                <Tracking event="complete">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=complete]]></URL>
+                </Tracking>
+                <Tracking event="mute">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=mute]]></URL>
+                </Tracking>
+                <Tracking event="pause">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=pause]]></URL>
+                </Tracking>
+                <Tracking event="replay">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=replay]]></URL>
+                </Tracking>
+                <Tracking event="fullscreen">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=fullscreen]]></URL>
+                </Tracking>
+                <Tracking event="stop">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=stop]]></URL>
+                </Tracking>
+                <Tracking event="unmute">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=unmute]]></URL>
+                </Tracking>
+               <Tracking event="resume">
+                    <URL id="primaryAdServer"><![CDATA[http://openx.openvideoads.org/openx-2.8.2/www/delivery/fc.php?script=deliveryLog:oxLogVast:logImpressionVast&banner_id=2500&zone_id=5&source=&vast_event=resume]]></URL>
+                </Tracking>
+            </TrackingEvents>
+        </InLine>
+    </Ad>
+</VideoAdServingTemplate>
+
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/build/clean-svn.sh
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/build/clean-svn.sh	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/build/clean-svn.sh	(revision 7)
@@ -0,0 +1,4 @@
+#!/bin/sh
+echo "recursively removing .svn folders from src and examples"
+rm -rf `find ../src -type d -name .svn`
+
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/build/build-local.sh
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/build/build-local.sh	(revision 317)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/build/build-local.sh	(revision 317)
@@ -0,0 +1,7 @@
+# This is a simple script that compiles the plugin using MXMLC (free & cross-platform).
+# To use, make sure you have downloaded and installed the Flex SDK in the following directory:
+FLEXPATH=/Applications/flex_sdk_3
+
+echo "Compiling JWPlayer 4.x OpenAdStreamer plugin v0.5.0 (creating ova.swf in the release directory)..."
+$FLEXPATH/bin/mxmlc ../../src/ova.as -source-path ../../src ../../../ova.as3/src -o ../../release/ova.swf -warnings=false -debug=false -library-path ../../../ova.as3/lib/tweener.swc ../../lib/as3corelib.swc ../../lib/JSwoof.swc $FLEXPATH/frameworks/libs -use-network=false
+cp ../../release/ova.swf ../../dist/swf
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/build/build.sh
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/build/build.sh	(revision 347)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/build/build.sh	(revision 347)
@@ -0,0 +1,9 @@
+# This is a simple script that compiles the plugin using MXMLC (free & cross-platform).
+# To use, make sure you have downloaded and installed the Flex SDK in the following directory:
+
+FLEXPATH=/Applications/flex_sdk_3
+
+echo "Compiling the OVA for JW 4.x plugin v0.5.0 (creating ova.swf in the release directory)..."
+$FLEXPATH/bin/mxmlc ../../src/ova.as -source-path ../../src -o ../../release/ova.swf -warnings=false -debug=false -library-path ../../lib -use-network=false
+cp ../../release/ova.swf ../../dist/swf
+echo "OVA for JW Player 4 build done."
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/build/clean.sh
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/build/clean.sh	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/build/clean.sh	(revision 7)
@@ -0,0 +1,3 @@
+#!/bin/sh
+find . -name ".DS_Store" -print0 | xargs -t0 rm
+rm -rf `find . -type d -name .svn`
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/release/create-release-candidate.sh
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/release/create-release-candidate.sh	(revision 377)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/release/create-release-candidate.sh	(revision 377)
@@ -0,0 +1,50 @@
+#!/bin/sh
+#
+#    create-release-candidate <version> <commit> <cleanup>
+#
+
+PRODUCT="ova.jwplayer.4x"
+SVN_WORKSPACE="/Users/paulschulz/workspace/ova/lt-svn"
+WORKING_DIRECTORY="/Users/paulschulz/temp"
+RELEASE_NUMBER=0.0.0
+COMMIT=false
+CLEANUP=false
+STARTING_DIRECTORY=`pwd`
+
+echo "Creating a new release candidate package - ${PRODUCT}.tar.gz (v${RELEASE_NUMBER}) ..."
+
+echo "Creating the working directory"
+cd $WORKING_DIRECTORY
+rm -rf ${PRODUCT}.temp
+mkdir ${PRODUCT}.temp
+cd ${PRODUCT}.temp
+
+echo "Copying files to create the release candidate"
+cp -R ${SVN_WORKSPACE}/trunk/${PRODUCT} .
+
+echo "Making sure there are no .DS_Store or .svn files in the release candidate"
+find . -name ".DS_Store" -print0 | xargs -t0 rm
+rm -rf `find . -type d -name .svn`
+
+echo "Creating the final tar.gz file"
+tar cvf ${PRODUCT}-rc.tar ${PRODUCT}
+gzip ${PRODUCT}-rc.tar
+ls -l ${PRODUCT}-rc.tar.gz
+
+if ( test $COMMIT )
+then
+	echo "Committing the new release candidate to the SVN repository"
+	cp ${PRODUCT}-rc.tar.gz ${SVN_WORKSPACE}/packages/${PRODUCT}
+	cd ${SVN_WORKSPACE}/packages/${PRODUCT}
+#	svn commit -m "Release package v${RELEASE_NUMBER}"
+fi
+
+if ( test $CLEANUP )
+then
+	echo "Cleaning up the working directory"
+	cd $WORKING_DIRECTORY
+	rm -rf ${PRODUCT}.temp
+fi
+
+cd $STARTING_DIRECTORY
+echo "Done."
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/release/create-distribution.sh
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/release/create-distribution.sh	(revision 377)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/release/create-distribution.sh	(revision 377)
@@ -0,0 +1,52 @@
+#!/bin/sh
+#
+#    create-distribution <version> <commit> <cleanup>
+#
+
+PRODUCT="ova.jwplayer.4x"
+SVN_WORKSPACE="/Users/paulschulz/workspace/ova/lt-svn"
+WORKING_DIRECTORY="/Users/paulschulz/temp"
+RELEASE_NUMBER=0.0.0
+COMMIT=false
+CLEANUP=false
+STARTING_DIRECTORY=`pwd`
+
+echo "Creating a new distribution package - ${PRODUCT}.tar.gz (v${RELEASE_NUMBER}) ..."
+
+echo "Creating the working directory"
+cd $WORKING_DIRECTORY
+rm -rf ${PRODUCT}.temp
+mkdir ${PRODUCT}.temp
+cd ${PRODUCT}.temp
+
+echo "Copying files to create distribution"
+cp -R ${SVN_WORKSPACE}/trunk/${PRODUCT} .
+
+echo "Making sure there are no .DS_Store or .svn files in the distribution"
+find . -name ".DS_Store" -print0 | xargs -t0 rm
+rm -rf `find . -type d -name .svn`
+
+echo "Creating the final tar.gz file"
+tar cvf ${PRODUCT}.tar ${PRODUCT}
+gzip ${PRODUCT}.tar
+zip -r ${PRODUCT}.zip ${PRODUCT}
+ls -l ${PRODUCT}.*
+
+if ( test $COMMIT )
+then
+	echo "Committing the new distribution to the SVN repository"
+	cp ${PRODUCT}.tar.gz ${SVN_WORKSPACE}/packages/${PRODUCT}
+	cp ${PRODUCT}.zip ${SVN_WORKSPACE}/packages/${PRODUCT}
+	cd ${SVN_WORKSPACE}/packages/${PRODUCT}
+#	svn commit -m "Release package v${RELEASE_NUMBER}"
+fi
+
+if ( test $CLEANUP )
+then
+	echo "Cleaning up the working directory"
+	cd $WORKING_DIRECTORY
+	rm -rf ${PRODUCT}.temp
+fi
+
+cd $STARTING_DIRECTORY
+echo "Done."
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/create-local-examples.sh
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/create-local-examples.sh	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/create-local-examples.sh	(revision 383)
@@ -0,0 +1,269 @@
+#!/bin/sh
+
+# Global variables - setup as required - make sure slashes etc. are always escaped as per sed/regex requirements
+
+OVA_DIST_JS_2="..\/..\/..\/dist\/js\/"
+OVA_DIST_JS_3="..\/..\/..\/..\/dist\/js\/"
+OVA_DIST_CSS_2="..\/..\/..\/dist\/css\/"
+OVA_DIST_CSS_3="..\/..\/..\/..\/dist\/css\/"
+OVA_DIST_TEMPLATES_2="..\/..\/..\/dist\/templates\/"
+OVA_DIST_TEMPLATES_3="..\/..\/..\/..\/dist\/templates\/"
+OVA_DIST_IMAGES_2="..\/..\/..\/dist\/images\/"
+OVA_DIST_IMAGES_3="..\/..\/..\/..\/dist\/images\/"
+
+# Do not modify beyond here
+
+ACTIVE_OVA_OAS_VERSION="ova.swf"
+OVA_JW_VERSION="4x"
+OVA_JW_RELEASE_NUMBER="0.5.0"
+OVA_DEBUG="fatal, config, vast_template, vpaid, playlist"
+
+# OpenX addresses
+
+OVA_OPENX_API="http:\/\/openx.openvideoads.org\/openx\/www\/delivery\/fc.php"
+
+# Streaming server base addresses
+
+OVA_HTTP_BASE_URL="http:\/\/streaming.openvideoads.org\/shows"
+OVA_RTMP_BASE_URL="rtmp:\/\/ne7c0nwbit.rtmphost.com\/videoplayer"
+OVA_PSEUDO_BASE_URL="http:\/\/streaming.openvideoads.org:81\/shows"
+
+# Specific streaming configuration properties
+
+OVA_PSEUDO_STREAMER_PARAMS="\&type=http"
+
+# Specific streams
+
+OVA_HTTP_SHOW_STREAM_1="http:\/\/streaming.openvideoads.org\/shows\/the-black-hole.mp4"
+OVA_PSEUDO_SHOW_STREAM_1="http:\/\/streaming.openvideoads.org:81\/shows\/the-black-hole.mp4"
+OVA_RTMP_SHOW_STREAM_1="rtmp:\/\/ne7c0nwbit.rtmphost.com\/videoplayer\/the-black-hole.mp4"
+OVA_RTMP_SHOW_STREAM_FILE="mp4:the-black-hole.mp4"
+OVA_HTTP_SHOW_STREAM_FILE="the-black-hole.mp4"
+OVA_HTTP_SHOW_STREAM_FILE_FLV="the-black-hole.flv"
+
+# Specific static files (VAST responses, images and playlists)
+
+OVA_COMPANIONS_VAST_1="${OVA_DIST_TEMPLATES_2}companions\/companions-vast1.xml"
+OVA_COMPANIONS_VAST_2="${OVA_DIST_TEMPLATES_2}companions\/companions-vast2.xml"
+OVA_INTERACTIVE_PREROLL_1="${OVA_DIST_TEMPLATES_2}interactive\/interactive-preroll.xml"
+OVA_INTERACTIVE_PREROLL_2="${OVA_DIST_TEMPLATES_2}interactive\/interactive-preroll2.xml"
+OVA_INTERACTIVE_PREROLL_3="${OVA_DIST_TEMPLATES_2}interactive\/interactive-preroll3.xml"
+OVA_INTERACTIVE_PREROLL_4="${OVA_DIST_TEMPLATES_2}interactive\/interactive-preroll4.xml"
+OVA_COMPANIONS_VAST_2="${OVA_DIST_TEMPLATES_2}companions\/companions-vast2.xml"
+OVA_EMPTY_VAST_RESPONSE="${OVA_DIST_TEMPLATES_2}error-responses\/vast1.0\/empty-ad-vast-response.xml"
+OVA_BLANK_VAST_RESPONSE="${OVA_DIST_TEMPLATES_2}error-responses\/vast1.0\/blank-vast-response.xml"
+OVA_BAD_VAST_RESPONSE="${OVA_DIST_TEMPLATES_2}error-responses\/vast1.0\/bad-vast-response.xml"
+OVA_BAD_VAST_XML="${OVA_DIST_TEMPLATES_2}error-responses\/bad-xml.xml"
+OVA_ZERO_DURATION_VAST="${OVA_DIST_TEMPLATES_3}error-responses\/vast1.0\/zero-duration.xml"
+OVA_VAST_1_WRAPPER_RESPONSE="${OVA_DIST_TEMPLATES_2}wrapper\/vast1-wrapper.xml"
+OVA_VPAID_LINEAR_1_VAST="${OVA_DIST_TEMPLATES_3}ad-servers\/eyewonder\/vpaid-linear-01.xml"
+OVA_VPAID_NON_LINEAR_1_VAST="${OVA_DIST_TEMPLATES_3}ad-servers\/eyewonder\/vpaid-non-linear-01.xml"
+OVA_VPAID_LINEAR_2_VAST="${OVA_DIST_TEMPLATES_2}ad-servers\/eyewonder\/vpaid-linear-01.xml"
+OVA_VPAID_NON_LINEAR_2_VAST="${OVA_DIST_TEMPLATES_2}ad-servers\/eyewonder\/vpaid-non-linear-01.xml"
+OVA_RSS_PLAYLIST_1="${OVA_DIST_TEMPLATES_2}playlists\/playlist.rss"
+OVA_RSS_PLAYLIST_2="${OVA_DIST_TEMPLATES_2}playlists\/example12.rss"
+OVA_RSS_PLAYLIST_3="${OVA_DIST_TEMPLATES_2}playlists\/example08.rss"
+OVA_MRSS_PLAYLIST_1="${OVA_DIST_TEMPLATES_2}playlists\/botr.mrss"
+OVA_SMIL_PLAYLIST="http:\/\/hwcdn.net\/y9t7g4w7\/fms\/streaming\/Passion.mp4.smil"
+OVA_LOGO_IMAGE="${OVA_DIST_IMAGES_2}logo.png"
+OVA_TEST_SKIN="..\/..\/..\/dist\/skins\/snel.swf"
+OVA_EXAMPLE_OVERLAY_CUSTOM_BUTTON="${OVA_DIST_IMAGES_2}button-custom-sepia.png"
+OVA_THUMBNAIL_IMAGE="${OVA_DIST_IMAGES_2}logo.png"
+OVA_BLANK_PIXEL_IMAGE="http:\/\/static.openvideoads.org\/ads\/blank\/blank-pixel.jpg"
+OVA_BLANK_WITH_PLAY_BUTTON_IMAGE="..\/..\/..\/dist\/images\/blank-with-play-button.png"
+OVA_SKIP_BUTTON_IMAGE_ALT_1="${OVA_DIST_IMAGES_2}skip-ad-alt-1.jpg"
+
+echo "Cleaning out any previous copies of the examples..."
+rm -rf published-local
+
+echo "Copying packaged examples..."
+cp -R templates published-local
+
+echo "Making sure there are no .DS_Store or .svn files in the copied version"
+find published-local -name ".DS_Store" | xargs -t0 rm
+rm -rf `find published-local -type d -name .svn`
+
+#########################################################################################################
+# PROCESS THE CONFIG TEMPLATES
+
+# Get list of config files to be replaced
+file_list=`find published-local \( -name "*.xml" -o -name "*.html" \) -type f`
+
+# Perform Substitution
+for fn in $file_list
+do
+   if ( test $fn != ./`basename $0` )
+   then
+      ffnt="$fn.temp"
+      strippedFn=`echo $fn | sed '/index.html/!d;'`
+      if [ "$strippedFn" = "" ]
+      then
+         echo "Processing $fn .. "
+
+         sed "s/OVA_JW_VERSION/${OVA_JW_VERSION}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_JW_RELEASE_NUMBER/${OVA_JW_RELEASE_NUMBER}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_DIST_JS_2/${OVA_DIST_JS_2}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_DIST_JS_3/${OVA_DIST_JS_3}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_DIST_CSS_2/${OVA_DIST_CSS_2}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_DIST_CSS_3/${OVA_DIST_CSS_3}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_DIST_TEMPLATES_2/${OVA_DIST_TEMPLATES_2}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_DIST_TEMPLATES_3/${OVA_DIST_TEMPLATES_3}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_DEBUG/${OVA_DEBUG}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_OPENX_API/${OVA_OPENX_API}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_COMPANIONS_VAST_1/${OVA_COMPANIONS_VAST_1}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_COMPANIONS_VAST_2/${OVA_COMPANIONS_VAST_2}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_HTTP_BASE_URL/${OVA_HTTP_BASE_URL}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_RTMP_BASE_URL/${OVA_RTMP_BASE_URL}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_PSEUDO_BASE_URL/${OVA_PSEUDO_BASE_URL}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_PSEUDO_STREAMER_PARAMS/${OVA_PSEUDO_STREAMER_PARAMS}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_HTTP_SHOW_STREAM_1/${OVA_HTTP_SHOW_STREAM_1}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_PSEUDO_SHOW_STREAM_1/${OVA_PSEUDO_SHOW_STREAM_1}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_RTMP_SHOW_STREAM_1/${OVA_RTMP_SHOW_STREAM_1}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_RTMP_SHOW_STREAM_FILE/${OVA_RTMP_SHOW_STREAM_FILE}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_HTTP_SHOW_STREAM_FILE/${OVA_HTTP_SHOW_STREAM_FILE}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_HTTP_SHOW_STREAM_FILE_FLV/${OVA_HTTP_SHOW_STREAM_FILE_FLV}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_INTERACTIVE_PREROLL_1/${OVA_INTERACTIVE_PREROLL_1}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_INTERACTIVE_PREROLL_2/${OVA_INTERACTIVE_PREROLL_2}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_INTERACTIVE_PREROLL_3/${OVA_INTERACTIVE_PREROLL_3}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_INTERACTIVE_PREROLL_4/${OVA_INTERACTIVE_PREROLL_4}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_COMPANIONS_VAST_2/${OVA_COMPANIONS_VAST_2}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_EMPTY_VAST_RESPONSE/${OVA_EMPTY_VAST_RESPONSE}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_BLANK_VAST_RESPONSE/${OVA_BLANK_VAST_RESPONSE}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_BAD_VAST_RESPONSE/${OVA_BAD_VAST_RESPONSE}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_BAD_VAST_XML/${OVA_BAD_VAST_XML}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_ZERO_DURATION_VAST/${OVA_ZERO_DURATION_VAST}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_VAST_1_WRAPPER_RESPONSE/${OVA_VAST_1_WRAPPER_RESPONSE}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_VPAID_LINEAR_1_VAST/${OVA_VPAID_LINEAR_1_VAST}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_VPAID_NON_LINEAR_1_VAST/${OVA_VPAID_NON_LINEAR_1_VAST}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_VPAID_LINEAR_2_VAST/${OVA_VPAID_LINEAR_2_VAST}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_VPAID_NON_LINEAR_2_VAST/${OVA_VPAID_NON_LINEAR_2_VAST}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_RSS_PLAYLIST_1/${OVA_RSS_PLAYLIST_1}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_RSS_PLAYLIST_2/${OVA_RSS_PLAYLIST_2}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_RSS_PLAYLIST_3/${OVA_RSS_PLAYLIST_3}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_MRSS_PLAYLIST_1/${OVA_MRSS_PLAYLIST_1}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_SMIL_PLAYLIST/${OVA_SMIL_PLAYLIST}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_LOGO_IMAGE/${OVA_LOGO_IMAGE}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_THUMBNAIL_IMAGE/${OVA_THUMBNAIL_IMAGE}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_BLANK_PIXEL_IMAGE/${OVA_BLANK_PIXEL_IMAGE}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_BLANK_WITH_PLAY_BUTTON_IMAGE/${OVA_BLANK_WITH_PLAY_BUTTON_IMAGE}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_SKIP_BUTTON_IMAGE_ALT_1/${OVA_SKIP_BUTTON_IMAGE_ALT_1}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_EXAMPLE_OVERLAY_CUSTOM_BUTTON/${OVA_EXAMPLE_OVERLAY_CUSTOM_BUTTON}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_TEST_SKIN/${OVA_TEST_SKIN}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+      else
+         echo "Processing $fn .. "
+         sed "s/OVA_JW_VERSION/${OVA_JW_VERSION}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+         sed "s/OVA_JW_RELEASE_NUMBER/${OVA_JW_RELEASE_NUMBER}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+      fi
+   fi
+done
+
+echo "Translations complete - moving new examples to permanent home in /examples..."
+
+find ../../examples/config -name '*.xml' | xargs rm
+find ../../examples/pages -name '*.html' | xargs rm
+cp -Rf published-local/* ../../examples
+rm -rf published-local
+
+echo "Done. Local examples published to /examples"
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/replace-text.sh
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/replace-text.sh	(revision 192)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/replace-text.sh	(revision 192)
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+# Get list of config and html files to be replaced
+file_list=`find . \( -name "*.xml" -o -name "*.html" \) -type f`
+
+# Perform Substitution
+for fn in $file_list
+do
+   if ( test $fn != ./`basename $0` )
+   then
+      ffnt="$fn.temp"
+      strippedFn=`echo $fn | sed '/index.html/!d;'`
+      if [ "$strippedFn" = "" ]
+      then
+         echo "Processing $fn .. "
+         sed "s/${1}/${2}/g" $fn > $ffnt
+         rm $fn
+         mv $ffnt $fn
+      fi
+   fi
+done
+
+echo "Done."
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/clean.sh
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/clean.sh	(revision 7)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/clean.sh	(revision 7)
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+echo "Cleaning out any previous copies of the examples..."
+rm -rf publish
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/skip-button/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/skip-button/example01.html	(revision 347)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/skip-button/example01.html	(revision 347)
@@ -0,0 +1,73 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - Enabling the Linear Skip Ad Button</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='skip-button/ova01.xml';</script>
+<h2>Example 1 - Enabling the Linear Skip Ad Button</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 - Enabling the Linear Skip Ad Button
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+             "controls": {
+                  "skipAd": {
+                      "enabled": true
+                  }
+             },
+             "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+             ],
+             "schedule": [
+                {
+                   "zone": "5",
+                   "position": "pre-roll"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/skip-button/example02.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/skip-button/example02.html	(revision 347)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/skip-button/example02.html	(revision 347)
@@ -0,0 +1,76 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 2 - Customising the "skip ad" button image</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='skip-button/ova02.xml';</script>
+<h2>Example 2 - Customising the "skip ad" button image</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 2 - Customising the "skip ad" button image
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+             "controls": {
+                  "skipAd": {
+                      "enabled": true,
+                      "image": "OVA_SKIP_BUTTON_IMAGE_ALT_1",
+                      "width": 20,
+                      "height": 15
+                  }
+             },
+             "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+             ],
+             "schedule": [
+                {
+                   "zone": "5",
+                   "position": "pre-roll"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/skip-button/example03.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/skip-button/example03.html	(revision 347)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/skip-button/example03.html	(revision 347)
@@ -0,0 +1,85 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 3 - Customising the "skip ad" using Region settings</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='skip-button/ova03.xml';</script>
+<h2>Example 3 - Customising the "skip ad" using Region settings</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 3 - Customising the "skip ad" using Region settings
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+             "controls": {
+                  "skipAd": {
+                      "enabled": true,
+                      "html": "&lt;p&gt;SKIP!&lt;/p&gt;",
+                  	  "region": {
+                            "id": "my-new-skip-ad-button",
+                            "verticalAlign": 3,
+                            "horizontalAlign": 3,
+                            "backgroundColor": "#FF3300",
+                            "opacity": 0.8,
+                            "borderRadius": 15,
+                            "padding": "0 1 1 13",
+                            "width": 60,
+                            "height": 20
+                	  }
+                  }
+             },
+             "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+             ],
+             "schedule": [
+                {
+                   "zone": "5",
+                   "position": "pre-roll"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/skip-button/example04.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/skip-button/example04.html	(revision 352)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/skip-button/example04.html	(revision 352)
@@ -0,0 +1,75 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 4 - Only enable on ads with a minimum duration</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='skip-button/ova04.xml';</script>
+<h2>Example 4 - Only enable on ads with a minimum duration</h2>
+<p class="example">
+In this example, the Skip Ad button is only shown on ads that have a duration of 40 seconds or longer.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 4 - Only enable on ads with a minimum duration
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+             "controls": {
+                  "skipAd": {
+                      "enabled": true,
+                      "minimumAdDuration": 40
+                  }
+             },
+             "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+             ],
+             "schedule": [
+                {
+                   "zone": "5",
+                   "position": "pre-roll"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/skip-button/index.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/skip-button/index.html	(revision 351)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/skip-button/index.html	(revision 351)
@@ -0,0 +1,23 @@
+<html>
+<head>
+<title>OVA for JW4 - Skip Ad Button</title>
+<link rel="stylesheet" type="text/css" href="../../../dist/css/global.css" />
+</head>
+<body>
+<a href="www.openvideoads.org"><img src="../../../dist/images/ova-logo-final.png" border="0"/></a>
+<h2>OVA for JW4 - Skip Ad Button</h2>
+<p class="example">
+<p>
+<ol>
+<li><a href="example01.html">Showing a "skip ad" button during linear ads</a></li>
+<li><a href="example02.html">Customising the "skip ad" button image</a></li>
+<li><a href="example03.html">Customising the "skip ad" using Region settings</a></li>
+<li><a href="example04.html">Only enable on ads with a minimum duration</a></li>
+</ol>
+<p>
+<a href="../index.html">Back to main index</a>
+</p>
+<p class="example">
+Copyright 2010 Open Video Ads
+</p>
+</body>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/live-streaming/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/live-streaming/example01.html	(revision 144)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/live-streaming/example01.html	(revision 144)
@@ -0,0 +1,88 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - A pre-roll with companion before a live stream</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='live-streaming/ova01.xml';</script>
+<h2>Example 1 - A pre-roll with companion before a live stream</h2>
+<p class="example">
+This example illustrates how to deliver linear advertising (with a companion) before or
+after a live stream. Mid-roll linear ads are not supported on live streams at this time.
+</p>
+<div id="container">
+  <div id="player_row">
+  	 <div id="player_left">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, "&streamer=rtmp://smgplc.fc.llnwd.net/smgplc/_definst_/&file=stv&type=rtmp&rtmp.subscribe=true"));</script>
+	 </div>
+	 <div id="player_right">
+		<div id="companion">
+			A COMPANION ADVERTISEMENT WILL APPEAR IN HERE
+		</div>
+	 </div>
+  </div>
+</div>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, "&streamer=rtmp://smgplc.fc.llnwd.net/smgplc/_definst_/&file=stv&type=rtmp&rtmp.subscribe=true")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 - A pre-roll with companion before a live stream
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+           "blockUntilOriginalPlaylistLoaded": true,
+           "ads": {
+               "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+               ],
+
+               "displayCompanions": true,
+               "companions": [
+                   { "id":"companion", "width":"150", "height":"360" }
+               ],
+
+               "schedule": [
+                   {
+                      "zone": "6",
+                      "position": "pre-roll",
+                      "playOnce": true
+                   }
+               ]
+            },
+
+            "debug": {
+               "debugger": "firebug",
+               "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/live-streaming/example02.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/live-streaming/example02.html	(revision 144)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/live-streaming/example02.html	(revision 144)
@@ -0,0 +1,88 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 2 - An AdTech pre-roll with companion before a live stream</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='live-streaming/ova02.xml';</script>
+<h2>Example 2 - An AdTech pre-roll with companion before a live stream</h2>
+<p class="example">
+This example illustrates how to deliver linear advertising (with a companion) before or
+after a live stream. Mid-roll linear ads are not supported on live streams at this time.
+</p>
+<div id="container">
+  <div id="player_row">
+  	 <div id="player_left">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, "&streamer=rtmp://smgplc.fc.llnwd.net/smgplc/_definst_/&file=stv&type=rtmp&rtmp.subscribe=true"));</script>
+	 </div>
+	 <div id="player_right">
+		<div id="companion">
+			A COMPANION ADVERTISEMENT WILL APPEAR IN HERE
+		</div>
+	 </div>
+  </div>
+</div>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, "&streamer=rtmp://smgplc.fc.llnwd.net/smgplc/_definst_/&file=stv&type=rtmp&rtmp.subscribe=true")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 2 - An AdTech pre-roll with companion before a live stream
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+           "blockUntilOriginalPlaylistLoaded": true,
+           "ads": {
+               "servers": [
+                   {
+                      "type": "AdTech",
+                      "apiAddress": "http://adserver.adtech.de/?adrawdata/3.0/990.1"
+                   }
+               ],
+
+               "displayCompanions": true,
+               "companions": [
+                   { "id":"companion", "width":"150", "height":"360" }
+               ],
+
+               "schedule": [
+                   {
+                      "zone": "2366662/0/1725",
+                      "position": "pre-roll",
+                      "playOnce": true
+                   }
+               ]
+            },
+
+            "debug": {
+               "debugger": "firebug",
+               "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/live-streaming/example03.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/live-streaming/example03.html	(revision 144)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/live-streaming/example03.html	(revision 144)
@@ -0,0 +1,93 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 3 - Two AdTech pre-rolls before a live stream</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='live-streaming/ova03.xml';</script>
+<h2>Example 3 - Two AdTech pre-rolls before a live stream</h2>
+<p class="example">
+This example illustrates how to deliver linear advertising (with a companion) before or
+after a live stream. Mid-roll linear ads are not supported on live streams at this time.
+</p>
+<div id="container">
+  <div id="player_row">
+  	 <div id="player_left">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, "&streamer=rtmp://smgplc.fc.llnwd.net/smgplc/_definst_/&file=stv&type=rtmp&rtmp.subscribe=true"));</script>
+	 </div>
+	 <div id="player_right">
+		<div id="companion">
+			A COMPANION ADVERTISEMENT WILL APPEAR IN HERE
+		</div>
+	 </div>
+  </div>
+</div>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, "&streamer=rtmp://smgplc.fc.llnwd.net/smgplc/_definst_/&file=stv&type=rtmp&rtmp.subscribe=true")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 3 - Two AdTech pre-rolls before a live stream
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+           "blockUntilOriginalPlaylistLoaded": true,
+           "ads": {
+               "servers": [
+                   {
+                      "type": "AdTech",
+                      "apiAddress": "http://adserver.adtech.de/?adrawdata/3.0/577.1"
+                   }
+               ],
+
+               "displayCompanions": true,
+               "companions": [
+                   { "id":"companion", "width":"150", "height":"360" }
+               ],
+
+               "schedule": [
+                   {
+                      "zone": "2516467/0/13",
+                      "position": "pre-roll",
+                      "playOnce": true
+                   },
+                   {
+                      "zone": "2564086/0/13",
+                      "position": "pre-roll",
+                      "playOnce": true
+                   }
+               ]
+            },
+
+            "debug": {
+               "debugger": "firebug",
+               "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/live-streaming/index.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/live-streaming/index.html	(revision 71)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/live-streaming/index.html	(revision 71)
@@ -0,0 +1,28 @@
+<html>
+<head>
+<title>OVA for JWOVA_JW_VERSION (OVA_JW_RELEASE_NUMBER) - Live Streaming Examples</title>
+<link rel="stylesheet" type="text/css" href="../../../dist/css/global.css" />
+</head>
+<body>
+<a href="www.openvideoads.org"><img src="../../../dist/images/ova-logo-final.png" border="0"/></a>
+<h2>OVA for JWOVA_JW_VERSION (OVA_JW_RELEASE_NUMBER) - Live Streaming Examples</h2>
+<p class="example">
+<p>
+<ol>
+<li><a href="example01.html">A live stream with a pre-roll</a></li>
+<li><a href="example02.html">An AdTech pre-roll with a live stream</a></li>
+<li><a href="example03.html">2 AdTech pre-rolls before a live stream</a></li>
+<li>A fixed length live stream with a pre and post roll</li>
+<li>Delivering overlays on a live stream</li>
+</ol>
+<p class="example">
+These examples use an OpenX installation that we are running at Open Video Ads. To gain more insight
+into the zone/banner setup that we have in place for the examples, please read this <a href="../openx-config.html">short guide</a>.
+</p>
+<p>
+<a href="../../index.html">Back to main index</a>
+</p>
+<p class="example">
+Copyright 2010 Open Video Ads
+</p>
+</body>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/minimal/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/minimal/example01.html	(revision 346)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/minimal/example01.html	(revision 346)
@@ -0,0 +1,53 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - A pre-roll ad only</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='minimal/ova01.xml';</script>
+<h2>Example 1 - A pre-roll ad only</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 - A pre-roll ad only
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+        	"tag": "http://openx.openvideoads.org/openx/www/delivery/fc.php?
+        	        script=bannerTypeHtml:vastInlineBannerTypeHtml:vastInlineHtml&
+        	        zones=pre-roll0-0%3D5&nz=1&source=&r=R0.8062691302038729
+        	        &block=1&format=vast&charset=UTF-8"
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/minimal/example02.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/minimal/example02.html	(revision 346)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/minimal/example02.html	(revision 346)
@@ -0,0 +1,48 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 2 - A pre-roll ad only using ova.tag</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='minimal/ova02.xml';</script>
+<h2>Example 2 - A pre-roll ad only using ova.tag</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.tag&gt;
+       http://openx.openvideoads.org/openx/www/delivery/fc.php?
+       script=bannerTypeHtml:vastInlineBannerTypeHtml:vastInlineHtml&
+       zones=pre-roll0-0%3D5&nz=1&source=&r=R0.8062691302038729
+       &block=1&format=vast&charset=UTF-8
+   &lt;/ova.tag&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/minimal/index.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/minimal/index.html	(revision 346)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/minimal/index.html	(revision 346)
@@ -0,0 +1,22 @@
+<html>
+<head>
+<title>OVA for JW Player 4 - Minimal Setup</title>
+<link rel="stylesheet" type="text/css" href="../../../dist/css/global.css" />
+</head>
+<body>
+<a href="www.openvideoads.org"><img src="../../../dist/images/ova-logo-final.png" border="0"/></a>
+<h2>OVA for JW Player 4 - Minimal Setup</h2>
+<p class="example">
+</p>
+<ol>
+<li><a href="example01.html">A pre-roll with an "ova.json" ad tag in a config file</a></li>
+<li><a href="example02.html">A pre-roll using the "ova.tag" variable in a config file</a></li>
+<li><a href="example03.html">A pre-roll using the "ova.tag" variable as a flashvar</a></li>
+</ol>
+<p>
+<a href="../index.html">Back to main index</a>
+</p>
+<p class="example">
+Copyright 2010 Open Video Ads
+</p>
+</body>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/start-time/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/start-time/example01.html	(revision 189)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/start-time/example01.html	(revision 189)
@@ -0,0 +1,101 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - A pre-roll and show stream with a duration, no start time and an overlay ad</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='start-time/ova01.xml';</script>
+<h2>Example 1 - A pre-roll and show stream with a duration, no start time and an overlay ad</h2>
+<p class="example">
+A 30 second pre-roll ad plays followed by the show stream. 5 seconds into the show stream an
+overlay appears for 15 seconds - click on the overlay to start up a video ad. Once the video
+ad has played, the show stream resumes at the point at which the overlay was clicked.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 - A pre-roll and show stream with a duration, no start time and an overlay ad
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "shows": {
+              "streams": [ 
+                 { 
+                    "file":"OVA_PSEUDO_SHOW_STREAM_1", 
+                    "duration":"00:00:30" 
+                 } 
+              ]
+            },
+
+            "overlays": {
+              "regions": [
+                 {
+                    "id": "bottom",
+                    "verticalAlign": "bottom",
+                    "horizontalAlign": "center",
+                    "backgroundColor": "#000000",
+                    "padding": "-10 -10 -10 -10",
+                    "width": 450,
+                    "height": 50
+                 }
+              ]
+            },
+
+            "ads": {
+              "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+              ],
+              "schedule": [
+                  {
+                      "zone": "5",
+                      "position": "pre-roll"
+                  },
+                  {
+                      "zone": "33",
+                      "position": "bottom",
+                      "width": 450,
+                      "height": 50,
+                      "startTime": "00:00:05",
+                      "duration": "15"
+                  }
+              ],
+            },
+
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/start-time/example02.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/start-time/example02.html	(revision 189)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/start-time/example02.html	(revision 189)
@@ -0,0 +1,79 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 2 - A pre-roll on a show stream with a start time and duration</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='start-time/ova02.xml';</script>
+<h2>Example 2 - A pre-roll on a show stream with a start time and duration</h2>
+<p class="example">
+A pre-roll is played before a show stream that starts 15 seconds in and runs for
+30 seconds.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 2 - A pre-roll on a show stream with a start time and duration
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "shows": {
+              "streams": [
+              	   {
+              	      "file":"OVA_PSEUDO_SHOW_STREAM_1",
+              	      "startTime": "00:00:15",
+              	      "duration":"00:00:30"
+              	   }
+              ]
+            },
+
+            "ads": {
+              "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+              ],
+              "schedule": [
+                  {
+                      "zone": "5",
+                      "position": "pre-roll"
+                  }
+              ],
+            },
+
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/start-time/example03.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/start-time/example03.html	(revision 190)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/start-time/example03.html	(revision 190)
@@ -0,0 +1,101 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 3 - A pre-roll and show stream with a start time but no duration, and an overlay ad</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='start-time/ova03.xml';</script>
+<h2>Example 3 - A pre-roll and show stream with a start time but no duration, and an overlay ad</h2>
+<p class="example">
+A 30 second pre-roll ad plays followed by the show stream. 5 seconds into the show stream an
+overlay appears for 15 seconds - click on the overlay to start up a video ad. Once the video
+ad has played, the show stream resumes at the point at which the overlay was clicked.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 3 - A pre-roll and show stream with a start time but no duration, and an overlay ad
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "shows": {
+              "streams": [ 
+                 { 
+                    "file":"OVA_PSEUDO_SHOW_STREAM_1", 
+                    "startTime":"00:00:15" 
+                 } 
+              ]
+            },
+
+            "overlays": {
+              "regions": [
+                 {
+                    "id": "bottom",
+                    "verticalAlign": "bottom",
+                    "horizontalAlign": "center",
+                    "backgroundColor": "#000000",
+                    "padding": "-10 -10 -10 -10",
+                    "width": 450,
+                    "height": 50
+                 }
+              ]
+            },
+
+            "ads": {
+              "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+              ],
+              "schedule": [
+                  {
+                    "zone": "5",
+                      "position": "pre-roll"
+                  },
+                  {
+                      "zone": "33",
+                      "position": "bottom",
+                      "width": 450,
+                      "height": 50,
+                      "startTime": "00:00:05",
+                      "duration": "15"
+                  }
+              ],
+            },
+
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/start-time/example04.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/start-time/example04.html	(revision 189)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/start-time/example04.html	(revision 189)
@@ -0,0 +1,78 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 4 - A post-roll on a show stream with a start time but no duration</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='start-time/ova04.xml';</script>
+<h2>Example 4 - A post-roll on a show stream with a start time but no duration</h2>
+<p class="example">
+A pre-roll is played before a show stream that starts 15 seconds in and runs for
+the remaining duration of the show.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 4 - A post-roll on a show stream with a start time but no duration
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "shows": {
+              "streams": [
+                   {
+              	       "file":"OVA_HTTP_SHOW_STREAM_1",
+              	       "startTime": "00:00:15"
+              	   }
+              ]
+            },
+
+            "ads": {
+              "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+              ],
+              "schedule": [
+                  {
+                      "zone": "5",
+                      "position": "pre-roll"
+                  }
+              ],
+            },
+
+            "debug": {
+               "debugger": "firebug",
+               "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/start-time/example05.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/start-time/example05.html	(revision 190)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/start-time/example05.html	(revision 190)
@@ -0,0 +1,95 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 5 - A mid-roll and 2 overlays on a duration-less show with a start time</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='start-time/ova05.xml';</script>
+<h2>Example 5 - A mid-roll and 2 overlays on a duration-less show with a start time</h2>
+<p class="example">
+Timings of the mid-roll and overlay are relative to the start-time of the show stream.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 5 - A mid-roll and 2 overlays on a duration-less show with a start time
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "shows": {
+              "streams": [
+                   {
+                      "file": "OVA_PSEUDO_SHOW_STREAM_1",
+                      "startTime": "00:00:30"
+                   }
+              ]
+            },
+
+            "ads": {
+              "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                      "allowAdRepetition": true
+                   }
+              ],
+              "schedule": [
+                  {
+                      "zone": "5",
+                      "position": "mid-roll",
+                      "startTime": "00:00:05"
+                  },
+                  {
+                      "zone": "33",
+                      "position": "auto:bottom",
+                      "width": 450,
+                      "height": 50,
+                      "startTime": "00:00:10",
+                      "duration": "15"
+                  },
+                  {
+                      "zone": "33",
+                      "position": "auto:bottom",
+                      "width": 450,
+                      "height": 50,
+                      "startTime": "00:00:35",
+                      "duration": "15"
+                  }
+              ],
+            },
+
+            "debug": {
+              "levels": "OVA_DEBUG",
+              "debugger": "firebug"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/start-time/example06.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/start-time/example06.html	(revision 234)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/start-time/example06.html	(revision 234)
@@ -0,0 +1,96 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 6 - A mid-roll and 2 overlays on a show with duration and a start time</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='start-time/ova06.xml';</script>
+<h2>Example 6 - A mid-roll and 2 overlays on a show with duration and a start time</h2>
+<p class="example">
+Timings of the mid-roll and overlay are absolute not relative to the start of the show stream.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 6 - A mid-roll and 2 overlays on a show with duration and a start time
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "shows": {
+              "streams": [
+                   {
+                       "file": "OVA_PSEUDO_SHOW_STREAM_1",
+                       "startTime": "00:00:15"
+                       "duration": "00:01:30"
+              	   }
+              ]
+            },
+
+            "ads": {
+              "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                      "allowAdRepetition": true
+                   }
+              ],
+              "schedule": [
+                  {
+                      "zone": "5",
+                      "position": "mid-roll",
+                      "startTime": "00:00:35"
+                  },
+                  {
+                      "zone": "33",
+                      "position": "auto:bottom",
+                      "width": 450,
+                      "height": 50,
+                      "startTime": "00:00:40",
+                      "duration": "15"
+                  },
+                  {
+                      "zone": "33",
+                      "position": "auto:bottom",
+                      "width": 450,
+                      "height": 50,
+                      "startTime": "00:01:05",
+                      "duration": "15"
+                  }
+              ],
+            },
+
+            "debug": {
+              "levels": "OVA_DEBUG",
+              "debugger": "firebug"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/start-time/example07.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/start-time/example07.html	(revision 239)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/start-time/example07.html	(revision 239)
@@ -0,0 +1,73 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 7 - A mid-roll on a flashvar defined stream with a duration</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='start-time/ova07.xml';</script>
+<h2>Example 7 - A mid-roll on a flashvar defined stream with a duration</h2>
+<p class="example">
+A mid-roll will play 10 seconds into the show stream.
+</p>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=30OVA_PSEUDO_STREAMER_PARAMS"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=30OVA_PSEUDO_STREAMER_PARAMS")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 7 - A mid-roll on a flashvar defined stream with a duration
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+             "playOnce": false,
+             "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+             ],
+             "schedule": [
+                {
+                   "zone": "5",
+                   "position": "mid-roll",
+                   "startTime": "00:00:10"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/start-time/example08.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/start-time/example08.html	(revision 239)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/start-time/example08.html	(revision 239)
@@ -0,0 +1,73 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 8 - A mid-roll on a flashvar defined stream with a start time and duration</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='start-time/ova08.xml';</script>
+<h2>Example 8 - A mid-roll on a flashvar defined stream with a start time and duration</h2>
+<p class="example">
+A mid-roll will play 10 seconds into the show stream (start time is absolute to 00:00:00).
+</p>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=30&start=10OVA_PSEUDO_STREAMER_PARAMS"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=30&start=10OVA_PSEUDO_STREAMER_PARAMS")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 8 - A mid-roll on a flashvar defined stream with a start time and duration
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+             "playOnce": false,
+             "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+             ],
+             "schedule": [
+                {
+                   "zone": "5",
+                   "position": "mid-roll",
+                   "startTime": "00:00:40"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/start-time/index.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/start-time/index.html	(revision 212)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/start-time/index.html	(revision 212)
@@ -0,0 +1,31 @@
+<html>
+<head>
+<title>OVA for JWOVA_JW_VERSION (OVA_JW_RELEASE_NUMBER) - Specifying a Start Time</title>
+<link rel="stylesheet" type="text/css" href="../../../dist/css/global.css" />
+</head>
+<body>
+<a href="www.openvideoads.org"><img src="../../../dist/images/ova-logo-final.png" border="0"/></a>
+<h2>OVA for JWOVA_JW_VERSION (OVA_JW_RELEASE_NUMBER) - Specifying a Start Time</h2>
+<p class="example">
+</p>
+<ol>
+<li><a href="example01.html">A pre-roll and show stream with a duration, no start time and an overlay ad</a></li>
+<li><a href="example02.html">A pre-roll on a show stream with a start time and duration</a></li>
+<li><a href="example03.html">A pre-roll and show stream with a start time but no duration, and an overlay ad</a></li>
+<li><a href="example04.html">A post-roll on a show stream with a start time but no duration</a></li>
+<li>A mid-roll and 2 overlays on a duration-less show with a start time</li>
+<li><a href="example06.html">A mid-roll and 2 overlays on a show with duration and a start time</a></li>
+<li><a href="example07.html">A mid-roll on a flashvar defined stream with a duration</a></li>
+<li><a href="example08.html">A mid-roll on a flashvar defined stream with a start time and duration</a></li>
+</ol>
+<p class="example">
+These examples use an OpenX installation that we are running at Open Video Ads. To gain more insight
+into the zone/banner setup that we have in place for the examples, please read this <a href="../openx-config.html">short guide</a>.
+</p>
+<p>
+<a href="../../index.html">Back to main index</a>
+</p>
+<p class="example">
+Copyright 2010 Open Video Ads
+</p>
+</body>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example01.html	(revision 144)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example01.html	(revision 144)
@@ -0,0 +1,72 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - Repeating Ad Positions</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='custom-delivery/ova01.xml';</script>
+<h2>Example 1 - Repeating Ad Positions</h2>
+<p>
+This example plays 3 pre-roll ads sequentially before the main stream. At this time, mid-roll repeating ad
+slots is not supported by Flowplayer.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=60&provider=video"));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=60&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 - Repeating Ad Positions
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "ads": {
+              "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                      "allowAdRepetition": true
+                   }
+              ],
+
+              "schedule": [
+                  {
+                    "zone": "5",
+                    "position": "pre-roll",
+                    "repeat": 3
+                  }
+              ]
+            },
+
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example10.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example10.html	(revision 144)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example10.html	(revision 144)
@@ -0,0 +1,87 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 10 - Retaining a Companion after the ad has played</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='custom-delivery/ova10.xml';</script>
+<h2>Example 10 - Retaining a Companion after the ad has played</h2>
+<p class="example">
+This example illustrates how to keep a companion ad active after a linear/non-linear ad has completed.
+</p>
+<div id="container">
+  <div id="player_row">
+  	 <div id="player_left">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+	 </div>
+	 <div id="player_right">
+		<div id="companion">
+			A COMPANION ADVERTISEMENT WILL APPEAR IN HERE
+		</div>
+	 </div>
+  </div>
+</div>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 10 - Retaining a Companion after the ad has played
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "ads": {
+              "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+              ],
+
+            "displayCompanions": true,
+            "restoreCompanions": false,
+            "companions": [
+                { "id":"companion", "width":"150", "height":"360" }
+            ],
+
+              "schedule": [
+               {
+                  "zone": "6",
+                  "position": "pre-roll",
+                  "playOnce": true
+               }
+              ]
+            },
+
+            "debug": {
+              "levels": "OVA_DEBUG",
+              "debugger": "firebug"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example02.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example02.html	(revision 144)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example02.html	(revision 144)
@@ -0,0 +1,81 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 2 - Play ads only once</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='custom-delivery/ova02.xml';</script>
+<h2>Example 2 - Play ads only once</h2>
+<p class="example">
+In this example the pre-roll, mid and post roll ads are played only once. Once played, it is marked as "played" in the playlist so a replay
+of the stream does not result in the ad being replayed.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 2 - Play ads only once
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "ads": {
+              "playOnce": true,
+              "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                      "allowAdRepetition": true
+                    }
+              ],
+
+              "schedule": [
+                   {
+                      "zone": "5",
+                      "position": "pre-roll"
+                   },
+                   {
+                      "zone": "5",
+                      "position": "mid-roll",
+                      "startTime": "00:00:10"
+                   },
+                   {
+                      "zone": "5",
+                      "position": "post-roll"
+                   }
+              ],
+            },
+
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example11.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example11.html	(revision 376)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example11.html	(revision 376)
@@ -0,0 +1,66 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 11 - Filtering Accepted Linear Ad Mime Types</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='custom-delivery/ova11.xml';</script>
+<h2>Example 11 - Filtering Accepted Linear Ad Mime Types</h2>
+<p>
+This example plays 3 pre-roll ads sequentially before the main stream. At this time, mid-roll repeating ad
+slots is not supported by Flowplayer.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 11 - Filtering Accepted Linear Ad Mime Types
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "ads": {
+              "acceptedLinearAdMimeTypes": [ "video/x-flv" ],
+              "filterOnLinearAdMimeTypes": true,
+              "schedule": [
+                  {
+                    "position": "pre-roll",
+                    "tag": "http://api.atdmt.com/adserv.api/viewad/sa=115571748;
+                            sf=VAST20_PreRoll_XML_alpha;pf=FLV;br=500;strm=0"
+                  }
+              ]
+            },
+
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example03.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example03.html	(revision 88)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example03.html	(revision 88)
@@ -0,0 +1,73 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 3 - Targetted Ad Delivery</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='custom-delivery/ova03.xml';</script>
+<h2>Example 3 - Targetted Ad Delivery</h2>
+<p class="example">
+This example delivers only ads that match a "food" category. To achieve this, ads are configured on the OpenX server
+with a "site variable" called "category" and a value of "food" is assigned.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 3 - Targetted Ad Delivery
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                      "customProperties": {
+                            "target": [ "category=food", "gender=male" ]
+                      }
+                   }
+              ],
+              "schedule": [
+                  {
+                      "zone": "5",
+                      "position": "pre-roll"
+                  }
+              ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example12.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example12.html	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example12.html	(revision 383)
@@ -0,0 +1,69 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 12 - Selection based on delivery type</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='custom-delivery/ova12.xml';</script>
+<h2>Example 12 - Selection based on delivery type</h2>
+<p class="example">
+This example illustrate how to restrict video selection based on mime-type - 'video/x-flv' in this case.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 12 - Selection based on delivery type
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "ads": {
+              "deliveryType": "progressive",
+              "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+              ],
+              "schedule": [
+                  {
+                      "zone": "16",
+                      "position": "pre-roll"
+                  }
+              ]
+            },
+
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example04.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example04.html	(revision 192)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example04.html	(revision 192)
@@ -0,0 +1,86 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 4 - Selective application of ad slots</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='custom-delivery/ova04.xml';</script>
+<h2>Example 4 - Selective application of ad slots</h2>
+<p class="example">
+This example illustrates how to selectively apply ad slots to a series of show streams.
+In this example we have 6 show streams each playing for 10 seconds - a pre-roll ad is applied
+to the first, third and 6th shows. The zone used to fill the ad slots has a single ad in
+it so we've set the allowAdRepetition flag to ensure that the same ad can be repeated across
+the 3 ad slots to be filled.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 4 - Selective application of ad slots
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "shows": {
+                "baseURL": "OVA_HTTP_BASE_URL",
+                "streams": [
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE", "duration":"00:00:10" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE", "duration":"00:00:11" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE", "duration":"00:00:12" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE", "duration":"00:00:13" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE", "duration":"00:00:14" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE", "duration":"00:00:15" }
+               ]
+            },
+
+            "ads": {
+              "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                      "allowAdRepetition": true
+                   }
+              ],
+              "schedule": [
+                  {
+                    "zone": "19",
+                    "position": "pre-roll",
+                    "applyToParts": [0, 2, 5]
+                  }
+              ]
+            },
+
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example05.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example05.html	(revision 192)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example05.html	(revision 192)
@@ -0,0 +1,79 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 5 - Impression serving on an empty Ad VAST response</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='custom-delivery/ova05.xml';</script>
+<h2>Example 5 - Impression serving on an empty Ad VAST response</h2>
+<p class="example">
+This example illustrates how an ad server configuration can be set to ensure that
+the impression URL is called even if the VAST response provides no ad.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 5 - Impression serving on an empty Ad VAST response
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            },
+
+            "shows": {
+                "baseURL": "OVA_HTTP_BASE_URL",
+                "streams": [
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE", "duration":"00:01:00" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE", "duration":"00:01:00" }
+                ]
+            },
+
+            "ads": {
+                "servers": [
+                    {
+                       "type": "direct",
+                       "forceImpressionServing": true,
+                       "apiAddress": "OVA_EMPTY_VAST_RESPONSE"
+                    }
+                ],
+
+                "schedule": [
+                    {
+                       "zone": "5",
+                       "position": "pre-roll"
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example06.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example06.html	(revision 280)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example06.html	(revision 280)
@@ -0,0 +1,79 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 6 - Ignoring Ad Duration</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='custom-delivery/ova06.xml';</script>
+<h2>Example 6 - Ignoring Ad Duration</h2>
+<p class="example">
+This example illustrates how OVA may be instructed to ignore the "duration" value in the VAST response. Instead, 
+when the stream is loaded the duration is detected and the timing events are calculated accordingly.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 6 - Ignoring Ad Duration
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "levels": "OVA_DEBUG",
+                "debugger": "firebug"
+            },
+
+            "shows": {
+                "baseURL": "OVA_HTTP_BASE_URL",
+                "streams": [
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE", "duration":"00:01:00" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE", "duration":"00:01:00" }
+               ]
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "setDurationFromMetaData": true,
+                "servers": [
+                    {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API"
+                    }
+                ],
+                "schedule": [
+                    {
+                      "zone": "5",
+                      "position": "pre-roll"
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example07.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example07.html	(revision 88)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example07.html	(revision 88)
@@ -0,0 +1,69 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 7 - Selection of video media based on mime type</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='custom-delivery/ova07.xml';</script>
+<h2>Example 7 - Selection of video media based on mime type</h2>
+<p class="example">
+This example illustrate how to restrict video selection based on mime-type - 'video/x-flv' in this case.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 7 - Selection of video media based on mime type
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "ads": {
+              "streamType": "flv",
+              "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+              ],
+              "schedule": [
+                  {
+                      "zone": "16",
+                      "position": "pre-roll"
+                  }
+              ]
+            },
+
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example08.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example08.html	(revision 144)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example08.html	(revision 144)
@@ -0,0 +1,70 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 8 - Selection of media based on bitrate</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='custom-delivery/ova08.xml';</script>
+<h2>Example 8 - Selection of media based on bitrate</h2>
+<p class="example">
+This example illustrates how to specify a 'bitrate' as a selection criteria for the mediafiles
+returned by the openX ad server.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=60&provider=video"));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=60&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 8 - Selection of media based on bitrate
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "ads": {
+                "bitrate": "500-700",
+                "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API"
+                   }
+                ],
+                "schedule": [
+                  {
+                      "zone": "5",
+                      "position": "pre-roll"
+                  }
+                ]
+            },
+
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example09.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example09.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/example09.html	(revision 222)
@@ -0,0 +1,105 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 9 - Turning off non-linear ad replay</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='custom-delivery/ova09.xml';</script>
+<h2>Example 9 - Turning off non-linear ad replay</h2>
+<p class="example">
+This example illustrates how to turn off the replay of overlay ads via the
+"replayNonLinearAds" option if the user skips back in the stream to a point 
+where an overlay is to be played.
+</p>
+<div id="container">
+  <div id="player_row">
+     <div id="player_left">
+     <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360));</script>
+   </div>
+   <div id="player_right">
+    <div id="companion">
+      A COMPANION ADVERTISEMENT WILL APPEAR IN HERE
+    </div>
+   </div>
+  </div>
+</div>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 9 - Turning off non-linear ad replay
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "shows": {
+                "streams": [ 
+                   { 
+                      "file":"OVA_PSEUDO_SHOW_STREAM_1", 
+                      "duration":"00:00:35" 
+                   } 
+                ]
+            },
+
+            "ads": {
+                "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API"
+                   }
+                ],
+                "replayNonLinearAds": false,
+                "displayCompanions": true,
+                "companions": [
+                    { "id":"companion", "width":"150", "height":"360" }
+                ],
+                "schedule": [
+                    {
+                        "zone": "28",
+                        "width": 450,
+                        "height": 50,
+                        "startTime": "00:00:05",
+                        "duration": "10"
+                    },
+                    {
+                        "zone": "41",
+                        "width": 450,
+                        "height": 50,
+                        "startTime": "00:00:20",
+                        "duration": "10"
+                    }
+                ],
+            },
+
+            "debug": {
+                "levels": "OVA_DEBUG",
+                "debugger": "firebug"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/index.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/index.html	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/custom-delivery/index.html	(revision 383)
@@ -0,0 +1,35 @@
+<html>
+<head>
+<title>OVA for JWOVA_JW_VERSION (OVA_JW_RELEASE_NUMBER) - Custom Ad Delivery Options</title>
+<link rel="stylesheet" type="text/css" href="../../../dist/css/global.css" />
+</head>
+<body>
+<a href="www.openvideoads.org"><img src="../../../dist/images/ova-logo-final.png" border="0"/></a>
+<h2>OVA for JWOVA_JW_VERSION (OVA_JW_RELEASE_NUMBER) - Custom Ad Delivery Options</h2>
+<p class="example">
+<p>
+<ol>
+<li><a href="example01.html">Repeating Ad Positions</a></li>
+<li><a href="example02.html">Play ads only once</a></li>
+<li><a href="example03.html">Targetted Ad Delivery</a></li>
+<li><a href="example04.html">Selective application of ad slots</a></li>
+<li><a href="example05.html">Impression serving on an empty Ad VAST response</a></li>
+<li><a href="example06.html">Ignoring VAST Ad Duration</a></li>
+<li><a href="example07.html">Selection of video media based on mime type</a></li>
+<li><a href="example08.html">Selection of media based on bitrate</a></li>
+<li><a href="example09.html">Turning off non-linear ad replay</a></li>
+<li><a href="example10.html">Retaining companions after the ad has played</a></li>
+<li><a href="example11.html">Modifying the linear ad mime type exclusion rules</a></li>
+<li><a href="example12.html">Selection based on delivery type</a></li>
+</ol>
+<p class="example">
+These examples use an OpenX installation that we are running at Open Video Ads. To gain more insight
+into the zone/banner setup that we have in place for the examples, please read this <a href="../openx-config.html">short guide</a>.
+</p>
+<p>
+<a href="../../index.html">Back to main index</a>
+</p>
+<p class="example">
+Copyright 2010 Open Video Ads
+</p>
+</body>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/deferred-loading/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/deferred-loading/example01.html	(revision 347)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/deferred-loading/example01.html	(revision 347)
@@ -0,0 +1,87 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - Deferred Ad loading (waits for 'Play' to be pressed) - no splash image</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='deferred-loading/ova01.xml';</script>
+<h2>Example 1 - Deferred Ad loading (waits for 'Play' to be pressed) - no splash image</h2>
+<p class="example">
+This example illustrates how to use the "delayAdRequestUntilPlay" option to hold on the ad calls until the play button is pressed.
+</p>
+<div id="container">
+  <div id="player_row">
+  	 <div id="player_left">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+	 </div>
+	 <div id="player_right">
+		<div id="companion">
+			A COMPANION ADVERTISEMENT WILL APPEAR IN HERE
+		</div>
+	 </div>
+  </div>
+</div>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 - Deferred Ad loading (waits for 'Play' to be pressed) - no splash image
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "delayAdRequestUntilPlay": true,
+            
+            "ads": {
+              "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+              ],
+             
+              "companions": [
+                   { "id":"companion", "width":"150", "height":"360" }
+              ],
+
+              "schedule": [
+               {
+                  "zone": "6",
+                  "position": "pre-roll",
+                  "playOnce": true
+               }
+              ]
+            },
+
+            "debug": {
+              "levels": "OVA_DEBUG",
+              "debugger": "firebug"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/deferred-loading/example02.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/deferred-loading/example02.html	(revision 347)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/deferred-loading/example02.html	(revision 347)
@@ -0,0 +1,87 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 2 - Deferred Ad loading with splash image</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='deferred-loading/ova02.xml';</script>
+<h2>Example 2 - Deferred Ad loading with splash image</h2>
+<p class="example">
+This example illustrates how to use the "delayAdRequestUntilPlay" option to hold on the ad calls until the play button is pressed. A splash image is also configured.
+</p>
+<div id="container">
+  <div id="player_row">
+  	 <div id="player_left">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, "&image=OVA_LOGO_IMAGE&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+	 </div>
+	 <div id="player_right">
+		<div id="companion">
+			A COMPANION ADVERTISEMENT WILL APPEAR IN HERE
+		</div>
+	 </div>
+  </div>
+</div>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, "&image=OVA_LOGO_IMAGE&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 2 - Deferred Ad loading with splash image
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "delayAdRequestUntilPlay": true,
+            
+            "ads": {
+              "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+              ],
+             
+              "companions": [
+                   { "id":"companion", "width":"150", "height":"360" }
+              ],
+
+              "schedule": [
+               {
+                  "zone": "6",
+                  "position": "pre-roll",
+                  "playOnce": true
+               }
+              ]
+            },
+
+            "debug": {
+              "levels": "OVA_DEBUG",
+              "debugger": "firebug"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/deferred-loading/example03.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/deferred-loading/example03.html	(revision 347)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/deferred-loading/example03.html	(revision 347)
@@ -0,0 +1,87 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 3 - Deferred Ad loading no show stream or splash image</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='deferred-loading/ova03.xml';</script>
+<h2>Example 3 - Deferred Ad loading no show stream or splash image</h2>
+<p class="example">
+This example illustrates how to use the "delayAdRequestUntilPlay" option to hold on the ad calls until the play button is pressed. No show stream or splash image is configured
+</p>
+<div id="container">
+  <div id="player_row">
+  	 <div id="player_left">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, ""));</script>
+	 </div>
+	 <div id="player_right">
+		<div id="companion">
+			A COMPANION ADVERTISEMENT WILL APPEAR IN HERE
+		</div>
+	 </div>
+  </div>
+</div>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, "")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 3 - Deferred Ad loading no show stream or splash image
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "delayAdRequestUntilPlay": true,
+            
+            "ads": {
+              "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+              ],
+             
+              "companions": [
+                   { "id":"companion", "width":"150", "height":"360" }
+              ],
+
+              "schedule": [
+               {
+                  "zone": "6",
+                  "position": "pre-roll",
+                  "playOnce": true
+               }
+              ]
+            },
+
+            "debug": {
+              "levels": "OVA_DEBUG",
+              "debugger": "firebug"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/deferred-loading/index.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/deferred-loading/index.html	(revision 347)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/deferred-loading/index.html	(revision 347)
@@ -0,0 +1,22 @@
+<html>
+<head>
+<title>OVA for JWOVA_JW_VERSION (OVA_JW_RELEASE_NUMBER) - Deferred Loading</title>
+<link rel="stylesheet" type="text/css" href="../../../dist/css/global.css" />
+</head>
+<body>
+<a href="www.openvideoads.org"><img src="../../../dist/images/ova-logo-final.png" border="0"/></a>
+<h2>OVA for JWOVA_JW_VERSION (OVA_JW_RELEASE_NUMBER) - Deferred Loading</h2>
+<p class="example">
+<p>
+<ol>
+<li><a href="example01.html">Deferred Ad loading (waits for 'Play' to be pressed) - no splash image</a></li>
+<li><a href="example02.html">Deferred Ad loading with splash image</a></li>
+<li><a href="example03.html">Deferred Ad loading no show stream or splash image</a></li>
+</ol>
+<p>
+<a href="../index.html">Back to main index</a>
+</p>
+<p class="example">
+Copyright 2010 Open Video Ads
+</p>
+</body>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/http/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/http/example01.html	(revision 88)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/http/example01.html	(revision 88)
@@ -0,0 +1,69 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 (HTTP) - A pre-roll ad only</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-formats/http/ova01.xml';</script>
+<h2>Example 1 (HTTP) - A pre-roll ad only</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 (HTTP) - A pre-roll ad only
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "servers": [
+                    {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API"
+                    }
+                ],
+                "schedule": [
+                    {
+                      "zone": "5",
+                      "position": "pre-roll"
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/http/example02.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/http/example02.html	(revision 140)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/http/example02.html	(revision 140)
@@ -0,0 +1,69 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 2 (HTTP) - A pre-roll ad with a show stream</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-formats/http/ova02.xml';</script>
+<h2>Example 2 (HTTP) - A pre-roll ad with a show stream</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 2 (HTTP) - A pre-roll ad with a show stream
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+             "playOnce": false,
+             "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+             ],
+             "schedule": [
+                {
+                   "zone": "5",
+                   "position": "pre-roll"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/http/example03.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/http/example03.html	(revision 140)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/http/example03.html	(revision 140)
@@ -0,0 +1,93 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 3 (HTTP) - A pre-roll and show stream with an overlay ad</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-formats/http/ova03.xml';</script>
+<h2>Example 3 (HTTP) - A pre-roll and show stream with an overlay ad</h2>
+<p class="example">
+A 30 second pre-roll ad plays followed by the show stream. 5 seconds into the show stream an
+overlay appears for 15 seconds - click on the overlay to start up a video ad. Once the video
+ad has played, the show stream resumes at the point at which the overlay was clicked.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 3 (HTTP) - A pre-roll and show stream with an overlay ad
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "overlays": {
+               "regions": [
+                  {
+                     "id": "bottom",
+                     "verticalAlign": "bottom",
+                     "horizontalAlign": "center",
+                     "backgroundColor": "#000000",
+                     "padding": "-10 -10 -10 -10",
+                     "width": 450,
+                     "height": 50
+                  }
+               ]
+            },
+
+            "ads": {
+              "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+              ],
+              "schedule": [
+                  {
+                      "zone": "5",
+                      "position": "pre-roll"
+                  },
+                  {
+                      "zone": "33",
+                      "position": "bottom",
+                      "width": 450,
+                      "height": 50,
+                      "startTime": "00:00:05",
+                      "duration": "15"
+                  }
+              ],
+            },
+
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/http/example04.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/http/example04.html	(revision 192)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/http/example04.html	(revision 192)
@@ -0,0 +1,89 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 4 (HTTP) - A pre-roll, 2 show streams with post-roll ads after each</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-formats/http/ova04.xml';</script>
+<h2>Example 4 (HTTP) - A pre-roll, 2 show streams with post-roll ads after each</h2>
+<p class="example">
+2 shows streams, sequenced to play one after each other, restricted to 15 secs each in duration,
+with a pre-roll ad before the first stream followed by a post-roll after each stream. Auto play
+is set to true so the stream starts up automatically and "playOnce" is set to true so ads will 
+only play once for the streams.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 4 (HTTP) - A pre-roll, 2 show streams with post-roll ads after each
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "playOnce": true,
+            "autoPlay": true,
+
+            "shows": {
+               "baseURL": "OVA_HTTP_BASE_URL",
+               "streams": [
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE", "duration":"00:00:15" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE", "duration":"00:00:15" }
+               ]
+            },
+
+            "ads": {
+               "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+               ],
+
+               "schedule": [
+                  {
+                      "zone": "5",
+                      "position": "pre-roll",
+                      "applyToParts": [ 0 ]
+                  },
+                  {
+                      "zone": "5",
+                      "position": "post-roll"
+                  }
+               ]
+            },
+
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/http/example05.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/http/example05.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/http/example05.html	(revision 222)
@@ -0,0 +1,97 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 5 (HTTP) - 1 stream with a pre, mid and post-roll</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-formats/http/ova05.xml';</script>
+<h2>Example 5 (HTTP) - 1 stream with a pre, mid and post-roll</h2>
+<p class="example">
+1 show stream limited to 60 seconds in duration with a pre-roll, mid roll (10 seconds into the show stream) and a post-roll ad
+</p>
+<div id="container">
+  <div id="player_row">
+  	 <div id="player_left">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 540, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=60OVA_PSEUDO_STREAMER_PARAMS"));</script>
+	 </div>
+	 <div id="player_right">
+		<div id="companion">
+			A COMPANION ADVERTISEMENT WILL APPEAR IN HERE
+		</div>
+	 </div>
+  </div>
+</div>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 540, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=60OVA_PSEUDO_STREAMER_PARAMS")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 5 (HTTP) - 1 stream with a pre, mid and post-roll
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "ads": {
+                "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                      "allowAdRepetition": true
+                   }
+                ],
+                "displayCompanions": true,
+                "companions": [
+                   { "id":"companion", "width":"150", "height":"360" }
+                ],
+                "schedule": [
+                   {
+                      "zone": "17",
+                      "position": "pre-roll",
+                      "playOnce": true
+                   },
+                   {
+                      "zone": "17",
+                      "position": "mid-roll",
+                      "startTime": "00:00:10",
+                      "playOnce": true
+                   },
+                   {
+                      "zone": "17",
+                      "position": "post-roll",
+                      "playOnce": true
+                   }
+                ]
+            },
+
+            "debug": {
+               "debugger": "firebug",
+               "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/http/example06.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/http/example06.html	(revision 140)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/http/example06.html	(revision 140)
@@ -0,0 +1,86 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 6 (HTTP) - A pre-roll with companion and a show stream</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-formats/http/ova06.xml';</script>
+<h2>Example 6 (HTTP) - A pre-roll with companion and a show stream</h2>
+<p class="example">
+A HTTP pre-roll ad with an accompanying companion banner being shown for the duration of the pre-roll.
+</p>
+<div id="container">
+  <div id="player_row">
+  	 <div id="player_left">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 540, 360, "&file=OVA_HTTP_SHOW_STREAM_1&duration=20&provider=video"));</script>
+	 </div>
+	 <div id="player_right">
+		<div id="companion">
+			A COMPANION ADVERTISEMENT WILL APPEAR IN HERE
+		</div>
+	 </div>
+  </div>
+</div>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 540, 360, "&file=OVA_HTTP_SHOW_STREAM_1&duration=20&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 6 (HTTP) - A pre-roll with companion and a show stream
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "ads": {
+                "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+                ],
+
+               "displayCompanions": true,
+               "companions": [
+                   { "id":"companion", "width":"150", "height":"360" }
+               ],
+
+               "schedule": [
+                   {
+                      "zone": "6",
+                      "position": "pre-roll",
+                      "playOnce": true
+                   }
+               ]
+            },
+
+            "debug": {
+               "debugger": "firebug",
+               "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/rtmp/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/rtmp/example01.html	(revision 88)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/rtmp/example01.html	(revision 88)
@@ -0,0 +1,70 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 (RTMP) - A pre-roll ad only</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-formats/rtmp/ova01.xml';</script>
+<h2>Example 1 (RTMP) - A pre-roll ad only</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 (RTMP) - A pre-roll ad only
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "notice": { "textStyle": "smalltext" },
+                "servers": [
+                    {
+                       "type": "OpenX",
+                       "apiAddress": "OVA_OPENX_API"
+                    }
+                ],
+                "schedule": [
+                    {
+                        "zone": "1",
+                        "position": "pre-roll"
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/rtmp/example02.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/rtmp/example02.html	(revision 192)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/rtmp/example02.html	(revision 192)
@@ -0,0 +1,69 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 2 (RTMP) - A pre-roll ad with a show stream</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-formats/rtmp/ova02.xml';</script>
+<h2>Example 2 (RTMP) - A pre-roll ad with a show stream</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_RTMP_SHOW_STREAM_FILE&streamer=OVA_RTMP_BASE_URL&duration=10"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_RTMP_SHOW_STREAM_FILE&streamer=OVA_RTMP_BASE_URL&duration=10")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 2 (RTMP) - A pre-roll ad with a show stream
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+              "playOnce": false,
+              "servers": [
+                  {
+                       "type": "OpenX",
+                       "apiAddress": "OVA_OPENX_API"
+                  }
+              ],
+              "schedule": [
+                  {
+                     "zone": "1",
+                     "position": "pre-roll"
+                  }
+              ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/rtmp/example03.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/rtmp/example03.html	(revision 192)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/rtmp/example03.html	(revision 192)
@@ -0,0 +1,91 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 3 (RTMP) - A pre-roll and show stream with an overlay ad</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-formats/rtmp/ova03.xml';</script>
+<h2>Example 3 (RTMP) - A pre-roll and show stream with an overlay ad</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_RTMP_SHOW_STREAM_FILE&streamer=OVA_RTMP_BASE_URL&duration=35"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_RTMP_SHOW_STREAM_FILE&streamer=OVA_RTMP_BASE_URL&duration=35")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 3 (RTMP) - A pre-roll and show stream with an overlay ad
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "overlays": {
+                "regions": [
+                   {
+                      "id": "bottom",
+                      "verticalAlign": "bottom",
+                      "horizontalAlign": "center",
+                      "backgroundColor": "#000000",
+                      "padding": "-10 -10 -10 -10",
+                      "width": 450,
+                      "height": 50
+                   }
+                ]
+            },
+
+            "ads": {
+                "servers": [
+                    {
+                       "type": "OpenX",
+                       "apiAddress": "OVA_OPENX_API"
+                    }
+                ],
+
+                "schedule": [
+                    {
+                       "zone": "1",
+                       "position": "pre-roll"
+                    },
+                    {
+                       "zone": "37",
+                       "position": "bottom",
+                       "width": 450,
+                       "height": 50,
+                       "startTime": "00:00:05",
+                       "duration": "15"
+                    }
+                ],
+            },
+
+            "debug": {
+                "levels": "OVA_DEBUG",
+                "debugger": "firebug"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/rtmp/example04.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/rtmp/example04.html	(revision 192)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/rtmp/example04.html	(revision 192)
@@ -0,0 +1,89 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 4 - A pre-roll, 2 show streams with post-roll ads after each</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-formats/rtmp/ova04.xml';</script>
+<h2>Example 4 - A pre-roll, 2 show streams with post-roll ads after each</h2>
+<p class="example">
+2 shows streams, sequenced to play one after each other, restricted to 15 secs each in duration,
+with a pre-roll ad before the first stream followed by a post-roll after each stream. Auto play
+is set to true so the stream starts up automatically and "playOnce" is set to true so ads will 
+only play once for the streams.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 4 (HTTP) - A pre-roll, 2 show streams with post-roll ads after each
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "playOnce": true,
+            "autoPlay": true,
+
+            "shows": {
+            "baseURL": "OVA_RTMP_BASE_URL",
+              "streams": [
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE", "duration":"00:00:15" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE", "duration":"00:00:15" }
+               ]
+            },
+
+            "ads": {
+               "servers": [
+                    {
+                       "type": "OpenX",
+                       "apiAddress": "OVA_OPENX_API"
+                    }
+               ],
+
+               "schedule": [
+                    {
+                       "zone": "1",
+                       "position": "pre-roll",
+                       "applyToParts": [ 0 ]
+                    },
+                    {
+                       "zone": "1",
+                       "position": "post-roll"
+                    }
+               ]
+            },
+
+            "debug": {
+               "debugger": "firebug",
+               "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/rtmp/example05.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/rtmp/example05.html	(revision 192)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/rtmp/example05.html	(revision 192)
@@ -0,0 +1,96 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 5 (RTMP) - 1 stream with a pre, mid and post-roll</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-formats/rtmp/ova05.xml';</script>
+<h2>Example 5 (RTMP) - 1 stream with a pre, mid and post-roll</h2>
+<p class="example">
+1 show stream limited to 60 seconds in duration with a pre-roll, mid roll (10 seconds into the show stream) and a post-roll ad
+</p>
+<div id="container">
+  <div id="player_row">
+  	 <div id="player_left">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 540, 360, "&file=OVA_RTMP_SHOW_STREAM_FILE&streamer=OVA_RTMP_BASE_URL&duration=20"));</script>
+	 </div>
+	 <div id="player_right">
+		<div id="companion">
+			A COMPANION ADVERTISEMENT WILL APPEAR IN HERE
+		</div>
+	 </div>
+  </div>
+</div>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 540, 360, "&file=OVA_RTMP_SHOW_STREAM_FILE&streamer=OVA_RTMP_BASE_URL&duration=20")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 5 (RTMP) - 1 stream with a pre, mid and post-roll
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "ads": {
+                "servers": [
+                    {
+                       "type": "OpenX",
+                       "apiAddress": "OVA_OPENX_API"
+                    }
+                ],
+                "displayCompanions": true,
+                "companions": [
+                    { "id":"companion", "width":"150", "height":"360" }
+                ],
+                "schedule": [
+                    {
+                       "zone": "1",
+                       "position": "pre-roll",
+                       "playOnce": true
+                    },
+                    {
+                       "zone": "4",
+                       "position": "mid-roll",
+                       "startTime": "00:00:10",
+                       "playOnce": true
+                    },
+                    {
+                       "zone": "1",
+                       "position": "post-roll",
+                       "playOnce": true
+                    }
+                ]
+            },
+
+            "debug": {
+                "debugger": "firebug",
+                "levels":"OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/rtmp/example06.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/rtmp/example06.html	(revision 192)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/rtmp/example06.html	(revision 192)
@@ -0,0 +1,86 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 6 (RTMP) - A pre-roll with companion and a show stream</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-formats/rtmp/ova06.xml';</script>
+<h2>Example 6 (RTMP) - A pre-roll with companion and a show stream</h2>
+<p class="example">
+A RTMP pre-roll ad with an accompanying companion banner being shown for the duration of the pre-roll.
+</p>
+<div id="container">
+  <div id="player_row">
+  	 <div id="player_left">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 540, 360, "&file=OVA_RTMP_SHOW_STREAM_FILE&streamer=OVA_RTMP_BASE_URL&duration=20"));</script>
+	 </div>
+	 <div id="player_right">
+		<div id="companion">
+			A COMPANION ADVERTISEMENT WILL APPEAR IN HERE
+		</div>
+	 </div>
+  </div>
+</div>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 540, 360, "&file=OVA_RTMP_SHOW_STREAM_FILE&streamer=OVA_RTMP_BASE_URL&duration=20")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 6 (RTMP) - A pre-roll with companion and a show stream
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "ads": {
+                "servers": [
+                    {
+                       "type": "OpenX",
+                       "apiAddress": "OVA_OPENX_API"
+                    }
+                ],
+
+               "displayCompanions": true,
+               "companions": [
+                    { "id":"companion", "width":"150", "height":"360" }
+               ],
+
+               "schedule": [
+                    {
+                       "zone": "4",
+                       "position": "pre-roll",
+                       "playOnce": true
+                    }
+               ]
+            },
+
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example10.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example10.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example10.html	(revision 222)
@@ -0,0 +1,96 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 10 - Delivering Image Overlay Ads</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-formats/ova10.xml';</script>
+<h2>Example 10 - Delivering Image Overlay Ads</h2>
+<p class="example">
+This example delivers an image overlay at the bottom of the player screen 5 seconds into the 
+stream for a duration of 10 seconds. A second 'click to play' video overlay follows 5 seconds later.
+This example uses the  reserved region "reserved-bottom-w450px-h50px-transparent". 
+</p>
+<div id="container">
+  <div id="player_row">
+  	 <div id="player_left">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=35OVA_PSEUDO_STREAMER_PARAMS"));</script>
+	 </div>
+	 <div id="player_right">
+		<div id="companion">
+			A COMPANION ADVERTISEMENT WILL APPEAR IN HERE
+		</div>
+	 </div>
+  </div>
+</div>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=35OVA_PSEUDO_STREAMER_PARAMS")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 10 - Delivering Image Overlay Ads
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "ads": {
+                "pauseOnClickThrough": false,
+                "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API"
+                   }
+                ],
+                "displayCompanions": true,
+                "companions": [
+                    { "id":"companion", "width":"150", "height":"360" }
+                ],
+                "schedule": [
+                    {
+                        "zone": "28",
+                        "width": 450,
+                        "height": 50,
+                        "startTime": "00:00:05",
+                        "duration": "10"
+                    },
+                    {
+                        "zone": "41",
+                        "width": 450,
+                        "height": 50,
+                        "startTime": "00:00:20",
+                        "duration": "10"
+                    }
+                ],
+            },
+
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example11.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example11.html	(revision 206)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example11.html	(revision 206)
@@ -0,0 +1,100 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 11 - Delivering Flash Overlay Ads</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-formats/ova11.xml';</script>
+<h2>Example 11 - Delivering Flash Overlay Ads</h2>
+<p class="example">
+This example delivers flash (SWF) overlays at the bottom of the player screen. This example uses the 
+reserved region "reserved-bottom-w450px-h50px-transparent"
+</p>
+<div id="container">
+  <div id="player_row">
+  	 <div id="player_left">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=35OVA_PSEUDO_STREAMER_PARAMS"));</script>
+	 </div>
+	 <div id="player_right">
+		<div id="companion">
+			A COMPANION ADVERTISEMENT WILL APPEAR IN HERE
+		</div>
+	 </div>
+  </div>
+</div>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=35OVA_PSEUDO_STREAMER_PARAMS")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 11 - Delivering Flash Overlay Ads
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "ads": {
+                "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API"
+                   }
+                ],
+                "displayCompanions": true,
+                "companions": [
+                   { "id":"companion", "width":"150", "height":"360" }
+                ],
+                "schedule": [
+                    {
+                        "zone": "30",
+                        "width": 450,
+                        "height": 50,
+                        "startTime": "00:00:05",
+                        "duration": "10",
+                        "regions": {
+                          "swf": "reserved-bottom-center-w450px-h50px-transparent"
+                        }
+                    },
+                    {
+                        "zone": "42",
+                        "width": 450,
+                        "height": 50,
+                        "startTime": "00:00:20",
+                        "duration": "10",
+                        "regions": {
+                          "swf": "reserved-bottom-center-w450px-h50px-transparent"
+                        }
+                    }
+                ],
+            },
+
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example12.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example12.html	(revision 206)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example12.html	(revision 206)
@@ -0,0 +1,92 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 12 - Delivering HTML Overlay Ads</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-formats/ova12.xml';</script>
+<h2>Example 12 - Delivering HTML Overlay Ads</h2>
+<p class="example">
+This example delivers a HTML overlay at the bottom of the player screen 5 seconds into the
+stream for a duration of 10 seconds. A second 'click to play' video overlay follows 5 seconds later.
+This example uses the  reserved region "reserved-bottom-w450px-h50px-000000-o50" to serve the HTML overlays.
+Notice no sizing information is required for HTML ads.
+</p>
+<div id="container">
+  <div id="player_row">
+  	 <div id="player_left">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=35OVA_PSEUDO_STREAMER_PARAMS"));</script>
+	 </div>
+	 <div id="player_right">
+		<div id="companion">
+			A COMPANION ADVERTISEMENT WILL APPEAR IN HERE
+		</div>
+	 </div>
+  </div>
+</div>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=35OVA_PSEUDO_STREAMER_PARAMS")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 12 - Delivering HTML Overlay Ads
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "ads": {
+                "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API"
+                   }
+                ],
+                "displayCompanions": true,
+                "companions": [
+                   { "id":"companion", "width":"150", "height":"360" }
+                ],
+                "schedule": [
+                    {
+                        "zone": "31",
+                        "startTime": "00:00:05",
+                        "duration": "10"
+                    },
+                    {
+                        "zone": "40",
+                        "startTime": "00:00:20",
+                        "duration": "10"
+                    }
+                ],
+            },
+
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example13.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example13.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example13.html	(revision 222)
@@ -0,0 +1,72 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 13 - A Scaled Pre-Roll Linear Interactive Ad that maintains the Aspect Ratio</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-formats/ova13.xml';</script>
+<h2>Example 13 - A Scaled Pre-Roll Linear Interactive Ad that maintains the Aspect Ratio</h2>
+<p class="example">
+This example illustrates how a scaled linear interactive ad that does  maintain the aspect ratio will appear 
+in the player. To achieve this, the VAST template is returning "maintainAspectRatio=true scalable=true" within 
+the MediaFile tag. These settings result in the Flowplayer clip.scaling property being set to 'fit'.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 13 - A Scaled Pre-Roll Linear Interactive Ad that maintains the Aspect Ratio
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "notice": { "show": false },
+                "servers": [
+                    {
+                       "type": "direct",
+                       "apiAddress": "OVA_INTERACTIVE_PREROLL_1"
+                    }
+                ],
+                "schedule": [
+                    {
+                      "zone": "5",
+                      "position": "pre-roll"
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example14.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example14.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example14.html	(revision 222)
@@ -0,0 +1,72 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 14 - A Non-Scaled Pre-Roll Linear Interactive Ad</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-formats/ova14.xml';</script>
+<h2>Example 14 - A Non-Scaled Pre-Roll Linear Interactive Ad</h2>
+<p class="example">
+This example illustrates how a non-scaled linear interactive ad will appear in the player. To achieve this,
+the VAST template is returning "maintainAspectRatio=true scalable=false" within the MediaFile tag.
+These settings result in the Flowplayer clip.scaling property being set to 'orig'.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 14 - A Non-Scaled Pre-Roll Linear Interactive Ad
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "notice": { "show": false },
+                "servers": [
+                    {
+                       "type": "direct",
+                       "apiAddress": "OVA_INTERACTIVE_PREROLL_2"
+                    }
+                ],
+                "schedule": [
+                    {
+                      "zone": "5",
+                      "position": "pre-roll"
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example15.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example15.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example15.html	(revision 222)
@@ -0,0 +1,72 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 15 - A Scaled Pre-Roll Linear Interactive Ad not maintaining the Aspect Ratio</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-formats/ova15.xml';</script>
+<h2>Example 15 - A Scaled Pre-Roll Linear Interactive Ad not maintaining the Aspect Ratio</h2>
+<p class="example">
+This example illustrates how a scaled linear interactive ad that does not maintain the aspect ratio will appear 
+in the player. To achieve this, the VAST template is returning "maintainAspectRatio=false scalable=true" within 
+the MediaFile tag. These settings result in the Flowplayer clip.scaling property being set to 'scale'.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 15 - A Scaled Pre-Roll Linear Interactive Ad not maintaining the Aspect Ratio
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "notice": { "show": false },
+                "servers": [
+                    {
+                       "type": "direct",
+                       "apiAddress": "OVA_INTERACTIVE_PREROLL_3"
+                    }
+                ],
+                "schedule": [
+                    {
+                      "zone": "5",
+                      "position": "pre-roll"
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example07.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example07.html	(revision 144)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example07.html	(revision 144)
@@ -0,0 +1,74 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 7 - Overlay with 'click to website'</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-formats/ova07.xml';</script>
+<h2>Example 7 - Overlay with 'click to website'</h2>
+<p class="example">
+Click on the overlay to be redirected to the advertiser website.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=20&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=20&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 7 - Overlay with 'click to website'
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "ads": {
+                "pauseOnClickThrough": false,
+
+                "servers": [
+                    {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API"
+                    }
+                ],
+
+                "schedule": [
+                    {
+                      "zone": "30",
+                      "startTime": "00:00:01",
+                      "width": 450,
+                      "height": 50
+                    }
+                ]
+            },
+
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example16.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example16.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example16.html	(revision 222)
@@ -0,0 +1,72 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 16 - Delivering Linear Interactive Ad Without Scaling or Aspect Declared</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-formats/ova16.xml';</script>
+<h2>Example 16 - Delivering Linear Interactive Ad Without Scaling or Aspect Declared</h2>
+<p class="example">
+This example illustrates how a linear interactive ad that does not have scaling or maintainAspect declared
+in the VAST response will appear in the player. This scenario result in the Flowplayer clip.scaling property 
+being set to 'orig'. The defaults for the MediaType tag are "maintainAspectRatio=true scalable=false"
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 16 - Delivering Linear Interactive Ad Without Scaling or Aspect Declared
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "notice": { "show": false },
+                "servers": [
+                    {
+                       "type": "direct",
+                       "apiAddress": "OVA_INTERACTIVE_PREROLL_4"
+                    }
+                ],
+                "schedule": [
+                    {
+                      "zone": "5",
+                      "position": "pre-roll"
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example08.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example08.html	(revision 88)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example08.html	(revision 88)
@@ -0,0 +1,70 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 8 - Click on a linear ad to go to the advertiser website</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-formats/ova08.xml';</script>
+<h2>Example 8 - Click on a linear ad to go to the advertiser website</h2>
+<p class="example">
+Mouse over the ad and then click on it to be redirected to the advertiser website.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 8 - Click on a linear ad to go to the advertiser website
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+               "debugger": "firebug",
+               "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+               "pauseOnClickThrough": true,
+               "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API"
+                   }
+               ],
+               "schedule": [
+                   {
+                      "zone": "17",
+                      "position": "pre-roll"
+                   }
+               ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example17.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example17.html	(revision 229)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example17.html	(revision 229)
@@ -0,0 +1,91 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 17 - Multiple pre-rolls followed by multiple overlays during the show stream</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-formats/ova17.xml';</script>
+<h2>Example 17 - Multiple pre-rolls followed by multiple overlays during the show stream</h2>
+<p class="example">
+This example illustrates the delivery of 2 pre-rolls, one after each other, followed by two
+overlays, one after each other on the show stream (the first overlay at 1 second into the
+show for 15 seconds, followed by a second at 20 seconds for 10 seconds).
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 17 - Multiple pre-rolls followed by multiple overlays during the show stream
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "notice": { "show": false },
+                "servers": [
+                    {
+                       "type": "direct",
+                       "apiAddress": "OVA_OPENX_API",
+                       "allowAdRepetition": true
+                    }
+                ],
+                "schedule": [
+                    {
+                       "zone": "5",
+                       "position": "pre-roll"
+                    },
+                    {
+                       "zone": "5",
+                       "position": "pre-roll"
+                    },
+                    {
+                       "zone": "30",
+                       "startTime": "00:00:01",
+                       "duration": 15,
+                       "width": 450,
+                       "height": 50
+                    },
+                    {
+                       "zone": "30",
+                       "startTime": "00:00:20",
+                       "duration": 10,
+                       "width": 450,
+                       "height": 50
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example09.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example09.html	(revision 206)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example09.html	(revision 206)
@@ -0,0 +1,91 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 9 - Delivering Text Overlay Ads</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-formats/ova09.xml';</script>
+<h2>Example 9 - Delivering Text Overlay Ads</h2>
+<p class="example">
+This example delivers a text overlay at the bottom of the player screen 5 seconds into the
+stream for a duration of 10 seconds. A second 'click to play' video overlay follows 5 seconds later.
+Notice no sizing information is needed for Text ads.
+</p>
+<div id="container">
+  <div id="player_row">
+  	 <div id="player_left">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=35OVA_PSEUDO_STREAMER_PARAMS"));</script>
+	 </div>
+	 <div id="player_right">
+		<div id="companion">
+			A COMPANION ADVERTISEMENT WILL APPEAR IN HERE
+		</div>
+	 </div>
+  </div>
+</div>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=35OVA_PSEUDO_STREAMER_PARAMS")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 9 - Delivering Text Overlay Ads
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "ads": {
+               "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API"
+                   }
+               ],
+               "displayCompanions": true,
+               "companions": [
+                  { "id":"companion", "width":"150", "height":"360" }
+               ],
+               "schedule": [
+                    {
+                        "zone": "29",
+                        "startTime": "00:00:05",
+                        "duration": "10"
+                    },
+                    {
+                        "zone": "43",
+                        "startTime": "00:00:20",
+                        "duration": "10"
+                    }
+               ],
+            },
+
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example18.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example18.html	(revision 206)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example18.html	(revision 206)
@@ -0,0 +1,73 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 18 - A mid-roll 10 seconds into a duration-less show stream</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-formats/ova18.xml';</script>
+<h2>Example 18 - A mid-roll 10 seconds into a duration-less show stream</h2>
+<p class="example">
+A mid-roll will play 10 seconds into the show stream.
+</p>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=30OVA_PSEUDO_STREAMER_PARAMS"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=30OVA_PSEUDO_STREAMER_PARAMS")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 18 - A mid-roll 10 seconds into a duration-less show stream
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+             "playOnce": false,
+             "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+             ],
+             "schedule": [
+                {
+                   "zone": "5",
+                   "position": "mid-roll",
+                   "startTime": "00:00:10"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example19.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example19.html	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/example19.html	(revision 383)
@@ -0,0 +1,68 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 19 - A post-roll following a show stream</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-formats/ova19.xml';</script>
+<h2>Example 19 - A post-roll following a show stream</h2>
+<p class="example"></p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 19 - A post-roll following a show stream
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "servers": [
+                    {
+                       "type": "direct",
+                       "apiAddress": "OVA_OPENX_API",
+                       "allowAdRepetition": true
+                    }
+                ],
+                "schedule": [
+                    {
+                       "zone": "5",
+                       "position": "post-roll"
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/index.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/index.html	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-formats/index.html	(revision 383)
@@ -0,0 +1,42 @@
+<html>
+<head>
+<title>OVA for JWOVA_JW_VERSION (OVA_JW_RELEASE_NUMBER) - Ad Format Examples</title>
+<link rel="stylesheet" type="text/css" href="../../../dist/css/global.css" />
+</head>
+<body>
+<a href="www.openvideoads.org"><img src="../../../dist/images/ova-logo-final.png" border="0"/></a>
+<h2>OVA For JWOVA_JW_VERSION (OVA_JW_RELEASE_NUMBER) - Ad Format Examples</h2>
+<p class="example">
+<p>
+<ol>
+<li>A pre-roll ad only (<a href="http/example01.html">HTTP</a>, <a href="rtmp/example01.html">RTMP</a>)</li>
+<li>A pre-roll ad with a show stream (<a href="http/example02.html">HTTP</a>, <a href="rtmp/example02.html">RTMP</a>)</li>
+<li>A pre-roll and show stream with an overlay ad (<a href="http/example03.html">HTTP</a>, <a href="rtmp/example03.html">RTMP</a>)</li>
+<li>A pre-roll, 2 show streams with post-roll ads after each (<a href="http/example04.html">HTTP</a>, <a href="rtmp/example04.html">RTMP</a>)</li>
+<li>1 stream with a pre, mid and post-roll (<a href="http/example05.html">HTTP</a>, <a href="rtmp/example05.html">RTMP</a>)</li>
+<li>A pre-roll with companion and a show stream (<a href="http/example06.html">HTTP</a>, <a href="rtmp/example06.html">RTMP</a>)</li>
+<li><a href="example07.html">Overlay with 'click to website'</a></li>
+<li><a href="example08.html">Click on a linear ad to go to the advertiser website</a></li>
+<li><a href="example09.html">Delivering Text Overlay Ads</a></li>
+<li><a href="example10.html">Delivering Image Overlay Ads</a></li>
+<li><a href="example11.html">Delivering Flash Overlay Ads</a></li>
+<li><a href="example12.html">Delivering HTML Overlay Ads</a></li>
+<li><a href="example13.html">A Scaled Pre-Roll Linear Flash (Non-Interactive) Ad that maintains the Aspect Ratio</a></li>
+<li><a href="example14.html">A Non-Scaled Pre-Roll Linear Flash (Non-Interactive) Ad</a></li>
+<li><a href="example15.html">A Scaled Pre-Roll Linear Flash (Non-Interactive) Ad not maintaining the Aspect Ratio</a></li>
+<li><a href="example16.html">Delivering Linear Flash (Non-Interactive) Ad Without Scaling or Aspect Declared</a></li>
+<li><a href="example17.html">Multiple pre-rolls followed by multiple overlays during the show stream</a></li>
+<li><a href="example18.html">A mid-roll 10 seconds into a show stream</a></li>
+<li><a href="example19.html">A post-roll following a show stream</a></li>
+</ol>
+<p class="example">
+These examples use an OpenX installation that we are running at Open Video Ads. To gain more insight
+into the zone/banner setup that we have in place for the examples, please read this <a href="../openx-config.html">short guide</a>.
+</p>
+<p>
+<a href="../../index.html">Back to main index</a>
+</p>
+<p class="example">
+Copyright 2010 Open Video Ads
+</p>
+</body>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example01.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example01.html	(revision 222)
@@ -0,0 +1,76 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 01 - 1 stream with a pre-roll</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='no-duration/shows/ova01.xml';</script>
+<h2>Example 01 - 1 stream with a pre-roll</h2>
+<p class="example">
+1 stream + 1 pre-roll = 2 streams
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       1 stream with a pre-roll
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+           "shows": {
+              "baseURL": "OVA_HTTP_BASE_URL",
+              "streams": [
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" }
+              ]
+           },
+
+           "ads": {
+              "servers": [
+                  {
+                    "type": "OpenX",
+                    "apiAddress": "OVA_OPENX_API",
+                    "allowAdRepetition": true
+                  }
+              ],
+              "schedule": [
+                  {
+                    "zone": "19",
+                    "position": "pre-roll"
+                  }
+              ]
+           },
+
+           "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+           }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example10.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example10.html	(revision 192)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example10.html	(revision 192)
@@ -0,0 +1,80 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 10 - 2 streams with a mid-roll on the first stream</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='no-duration/shows/ova10.xml';</script>
+<h2>Example 10 - 2 streams with a mid-roll on the first stream</h2>
+<p class="example">
+ 2 streams with a mid-roll on the first stream
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       1 stream with a post-roll
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+           "shows": {
+              "baseURL": "OVA_HTTP_BASE_URL",
+              "streams": [
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" }
+              ]
+           },
+
+           "ads": {
+              "setDurationFromMetaData": true,
+              "servers": [
+                  {
+                    "type": "OpenX",
+                    "apiAddress": "OVA_OPENX_API",
+                    "allowAdRepetition": true
+                  }
+              ],
+              "schedule": [
+                  {
+                    "zone": "19",
+                    "position": "mid-roll",
+                    "startTime": "00:00:05",
+                    "applyToParts": [0]
+                  }
+              ]
+           },
+
+           "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+           }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example20.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example20.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example20.html	(revision 222)
@@ -0,0 +1,88 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 20 - Stream Sequencing Test</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='no-duration/shows/ova20.xml';</script>
+<h2>Example 20 - Stream Sequencing Test</h2>
+<p class="example">
+6 streams, post-roll at 2, mid-roll at 4 = 9 streams
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Stream Sequencing Test
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "shows": {
+                "baseURL": "OVA_HTTP_BASE_URL",
+	            "streams": [
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" }
+               ]
+            },
+
+            "ads": {
+              "servers": [
+                  {
+                    "type": "OpenX",
+                    "apiAddress": "OVA_OPENX_API",
+                    "allowAdRepetition": true
+                  }
+              ],
+              "schedule": [
+                  {
+                    "zone": "19",
+                    "position": "mid-roll",
+                    "applyToParts": [3],
+                    "startTime": "00:00:05"
+                  },
+                  {
+                    "zone": "19",
+                    "position": "post-roll",
+                    "applyToParts": [1]
+                  }
+              ]
+            },
+
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example02.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example02.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example02.html	(revision 222)
@@ -0,0 +1,77 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 02 - 1 stream with a mid-roll</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='no-duration/shows/ova02.xml';</script>
+<h2>Example 02 - 1 stream with a mid-roll</h2>
+<p class="example">
+1 stream + 1 mid-roll = 2 streams
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       1 stream with a mid-roll
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+           "shows": {
+               "baseURL": "OVA_HTTP_BASE_URL",
+               "streams": [
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" }
+               ]
+           },
+
+           "ads": {
+              "servers": [
+                  {
+                    "type": "OpenX",
+                    "apiAddress": "OVA_OPENX_API",
+                    "allowAdRepetition": true                    
+                  }
+              ],
+              "schedule": [
+                  {
+                    "zone": "19",
+                    "position": "mid-roll",
+                    "startTime": "00:00:05"
+                  }
+              ]
+           },
+
+           "debug": {
+               "debugger": "firebug",
+               "levels": "OVA_DEBUG"
+           }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example11.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example11.html	(revision 192)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example11.html	(revision 192)
@@ -0,0 +1,79 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 11 - 2 streams with a mid-roll on the second stream</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='no-duration/shows/ova11.xml';</script>
+<h2>Example 11 - 2 streams with a mid-roll on the second stream</h2>
+<p class="example">
+2 streams with a mid-roll limited to the second stream (5 seconds into the stream) = 3 streams
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       1 stream with a post-roll
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+           "shows": {
+              "baseURL": "OVA_HTTP_BASE_URL",
+              "streams": [
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" }
+              ]
+           },
+
+           "ads": {
+              "servers": [
+                  {
+                    "type": "OpenX",
+                    "apiAddress": "OVA_OPENX_API",
+                    "allowAdRepetition": true
+                  }
+              ],
+              "schedule": [
+                  {
+                    "zone": "19",
+                    "position": "mid-roll",
+                    "startTime": "00:00:05",
+                    "applyToParts": [1]
+                  }
+              ]
+           },
+
+           "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+           }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example21.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example21.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example21.html	(revision 222)
@@ -0,0 +1,89 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 21 - Stream Sequencing Test</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='no-duration/shows/ova21.xml';</script>
+<h2>Example 21 - Stream Sequencing Test</h2>
+<p class="example">
+7 streams, mid-roll at 3, pre-roll at 5 = 10 streams
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Stream Sequencing Test
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "shows": {
+                "baseURL": "OVA_HTTP_BASE_URL",
+	            "streams": [
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" }
+               ]
+            },
+
+            "ads": {
+              "servers": [
+                  {
+                    "type": "OpenX",
+                    "apiAddress": "OVA_OPENX_API",
+                    "allowAdRepetition": true
+                  }
+              ],
+              "schedule": [
+                  {
+                    "zone": "19",
+                    "position": "mid-roll",
+                    "applyToParts": [2],
+                    "startTime": "00:00:05"
+                  },
+                  {
+                    "zone": "19",
+                    "position": "pre-roll",
+                    "applyToParts": [4]
+                  }
+              ]
+            },
+
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example03.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example03.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example03.html	(revision 222)
@@ -0,0 +1,76 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 03 - 1 stream with a post-roll</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='no-duration/shows/ova03.xml';</script>
+<h2>Example 03 - 1 stream with a post-roll</h2>
+<p class="example">
+1 stream with a post-roll = 2 streams
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       1 stream with a post-roll
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+           "shows": {
+              "baseURL": "OVA_HTTP_BASE_URL",
+              "streams": [
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" }
+              ]
+           },
+
+           "ads": {
+              "servers": [
+                  {
+                    "type": "OpenX",
+                    "apiAddress": "OVA_OPENX_API",
+                    "allowAdRepetition": true
+                  }
+              ],
+              "schedule": [
+                  {
+                    "zone": "19",
+                    "position": "post-roll"
+                  }
+              ]
+           },
+
+           "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+           }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example12.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example12.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example12.html	(revision 222)
@@ -0,0 +1,78 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 12 - 2 stream with mid-rolls on each stream</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='no-duration/shows/ova12.xml';</script>
+<h2>Example 12 - 2 stream with mid-rolls on each stream</h2>
+<p class="example">
+2 streams with a mid-rolls 5 seconds into each stream = 4 streams
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       1 stream with a post-roll
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "shows": {
+              "baseURL": "OVA_HTTP_BASE_URL",
+              "streams": [
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" }
+              ]
+            },
+
+            "ads": {
+              "servers": [
+                  {
+                    "type": "OpenX",
+                    "apiAddress": "OVA_OPENX_API",
+                    "allowAdRepetition": true
+                  }
+              ],
+              "schedule": [
+                  {
+                    "zone": "19",
+                    "position": "mid-roll",
+                    "startTime": "00:00:05"
+                  }
+              ]
+            },
+
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example22.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example22.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example22.html	(revision 222)
@@ -0,0 +1,87 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 22 - Stream Sequencing Test</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='no-duration/shows/ova22.xml';</script>
+<h2>Example 22 - Stream Sequencing Test</h2>
+<p class="example">
+5 streams, mid-rolls at 1 and 5, pre-roll at 3 = 10 streams
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       1 stream with a post-roll
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "shows": {
+                "baseURL": "OVA_HTTP_BASE_URL",
+	            "streams": [
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" }
+               ]
+            },
+
+            "ads": {
+              "servers": [
+                  {
+                    "type": "OpenX",
+                    "apiAddress": "OVA_OPENX_API",
+                    "allowAdRepetition": true
+                  }
+              ],
+              "schedule": [
+                  {
+                    "zone": "19",
+                    "position": "mid-roll",
+                    "applyToParts": [0, 4],
+                    "startTime": "00:00:05"
+                  },
+                  {
+                    "zone": "19",
+                    "position": "pre-roll",
+                    "applyToParts": [2]
+                  }
+              ]
+            },
+
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example04.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example04.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example04.html	(revision 222)
@@ -0,0 +1,79 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 04 - 1 stream with an overlay</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='no-duration/shows/ova04.xml';</script>
+<h2>Example 04 - 1 stream with an overlay</h2>
+<p class="example">
+1 stream with an overlay = 1 streams. Overlay starts at 5 seconds into the stream running for 5 seconds.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       1 stream with a post-roll
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+           "shows": {
+              "baseURL": "OVA_HTTP_BASE_URL",
+              "streams": [
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" }
+              ]
+           },
+
+           "ads": {
+              "servers": [
+                  {
+                    "type": "OpenX",
+                    "apiAddress": "OVA_OPENX_API",
+                    "allowAdRepetition": true
+                  }
+              ],
+              "schedule": [
+                  {
+                      "zone": "30",
+                      "startTime": "00:00:05",
+                      "duration": 5,
+                      "width": 450,
+                      "height": 50
+                  }
+              ]
+           },
+
+           "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+           }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example13.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example13.html	(revision 192)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example13.html	(revision 192)
@@ -0,0 +1,78 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 13 - 2 stream with a post-roll on the first stream</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='no-duration/shows/ova13.xml';</script>
+<h2>Example 13 - 2 stream with a post-roll on the first stream</h2>
+<p class="example">
+2 stream with a post-roll limited to the first stream = 3 streams
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       2 stream with a post-roll on the first stream
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+           "shows": {
+              "baseURL": "OVA_HTTP_BASE_URL",
+              "streams": [
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" }
+              ]
+           },
+
+           "ads": {
+              "servers": [
+                  {
+                    "type": "OpenX",
+                    "apiAddress": "OVA_OPENX_API",
+                    "allowAdRepetition": true
+                  }
+              ],
+              "schedule": [
+                  {
+                    "zone": "19",
+                    "position": "post-roll",
+                    "applyToParts": [0]
+                  }
+              ]
+           },
+
+           "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+           }       
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example23.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example23.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example23.html	(revision 222)
@@ -0,0 +1,104 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 23 - Stream Sequencing</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='no-duration/shows/ova23.xml';</script>
+<h2>Example 23 - Stream Sequencing</h2>
+<p class="example">
+14 streams, repeated (3 times) pre-rolls at 2, 4 and 7, mid-rolls at 5, 9, post-rolls at 5, 7 and 11 = 40 streams
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Stream Sequencing
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "shows": {
+                "baseURL": "OVA_HTTP_BASE_URL",
+	            "streams": [
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" }
+               ]
+            },
+
+            "ads": {
+              "servers": [
+                  {
+                    "type": "OpenX",
+                    "apiAddress": "OVA_OPENX_API",
+                    "allowAdRepetition": true
+                  }
+              ],
+              "schedule": [
+                  {
+                    "zone": "19",
+                    "position": "pre-roll",
+                    "applyToParts": [2, 4, 7],
+                    "repeat": 3
+                  },
+                  {
+                    "zone": "19",
+                    "position": "mid-roll",
+                    "applyToParts": [5, 9],
+                    "startTime": "00:00:05",
+                    "repeat": 3
+                  },
+                  {
+                    "zone": "19",
+                    "position": "post-roll",
+                    "applyToParts": [5, 7, 11],
+                    "repeat": 3
+                  }
+              ]
+            },
+
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example05.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example05.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example05.html	(revision 222)
@@ -0,0 +1,85 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 05 - 1 stream with pre, mid and post rolls</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='no-duration/shows/ova05.xml';</script>
+<h2>Example 05 - 1 stream with pre, mid and post rolls</h2>
+<p class="example">
+1 stream with pre, a mid-roll 10 seconds into the main stream and a post roll = 4 streams
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       1 stream with a post-roll
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+           "shows": {
+              "baseURL": "OVA_HTTP_BASE_URL",
+              "streams": [
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" }
+              ]
+           },
+
+           "ads": {
+              "servers": [
+                  {
+                    "type": "OpenX",
+                    "apiAddress": "OVA_OPENX_API",
+                    "allowAdRepetition": true
+                  }
+              ],
+              "schedule": [
+                  {
+                    "zone": "19",
+                    "position": "pre-roll"
+                  },
+                  {
+                    "zone": "19",
+                    "position": "mid-roll",
+                    "startTime": "00:00:10"
+                  },
+                  {
+                    "zone": "19",
+                    "position": "post-roll"
+                  }
+              ]
+           },
+
+           "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+           }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example14.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example14.html	(revision 192)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example14.html	(revision 192)
@@ -0,0 +1,78 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 14 - 2 stream with a post-roll on the second stream</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='no-duration/shows/ova14.xml';</script>
+<h2>Example 14 - 2 stream with a post-roll on the second stream</h2>
+<p class="example">
+2 streams with a mid-rolls 5 seconds into each stream = 4 streams
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       2 stream with a post-roll on the second stream
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+           "shows": {
+              "baseURL": "OVA_HTTP_BASE_URL",
+              "streams": [
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" }
+              ]
+           },
+
+           "ads": {
+              "servers": [
+                  {
+                    "type": "OpenX",
+                    "apiAddress": "OVA_OPENX_API",
+                    "allowAdRepetition": true
+                  }
+              ],
+              "schedule": [
+                  {
+                    "zone": "19",
+                    "position": "post-roll",
+                    "applyToParts": [1]
+                  }
+              ]
+           },
+
+           "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+           }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example06.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example06.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example06.html	(revision 222)
@@ -0,0 +1,93 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 06 - 1 stream with pre, mid and post rolls plus an overlay</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='no-duration/shows/ova06.xml';</script>
+<h2>Example 06 - 1 stream with pre, mid and post rolls plus an overlay</h2>
+<p class="example">
+1 stream with a pre-roll, an overlay 5 seconds in for 5 seconds, a mid-roll
+at 10 seconds into the main stream followed by a post-roll at the end = 4 streams
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       1 stream with a post-roll
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "shows": {
+              "baseURL": "OVA_HTTP_BASE_URL",
+              "streams": [
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" }
+              ]
+            },
+
+            "ads": {
+              "servers": [
+                  {
+                    "type": "OpenX",
+                    "apiAddress": "OVA_OPENX_API",
+                    "allowAdRepetition": true
+                  }
+              ],
+              "schedule": [
+                  {
+                    "zone": "19",
+                    "position": "pre-roll"
+                  },
+                  {
+                    "zone": "19",
+                    "position": "mid-roll",
+                    "startTime": "00:00:10"
+                  },
+                  {
+                    "zone": "19",
+                    "position": "post-roll"
+                  },
+                  {
+                    "zone": "30",
+                    "startTime": "00:00:05",
+                    "duration": 5,
+                    "width": 450,
+                    "height": 50
+                  }
+              ]
+            },
+
+            "debug": {
+              "levels": "OVA_DEBUG",
+              "debugger": "firebug"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example15.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example15.html	(revision 192)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example15.html	(revision 192)
@@ -0,0 +1,77 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 15 - 2 stream with a post-roll on the each stream</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='no-duration/shows/ova15.xml';</script>
+<h2>Example 15 - 2 stream with a post-roll on the each stream</h2>
+<p class="example">
+2 streams with a post-roll on each stream = 4 streams
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       2 streams with a post-roll on the each stream
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+           "shows": {
+              "baseURL": "OVA_HTTP_BASE_URL",
+              "streams": [
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" }
+              ]
+           },
+
+           "ads": {
+              "servers": [
+                  {
+                    "type": "OpenX",
+                    "apiAddress": "OVA_OPENX_API",
+                    "allowAdRepetition": true
+                  }
+              ],
+              "schedule": [
+                  {
+                    "zone": "19",
+                    "position": "post-roll"
+                  }
+              ]
+           },
+
+           "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG",
+           }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example16.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example16.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example16.html	(revision 222)
@@ -0,0 +1,97 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 16 - 2 streams with an overlay on the first stream</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='no-duration/shows/ova16.xml';</script>
+<h2>Example 16 - 2 streams with an overlay on the first stream</h2>
+<p class="example">
+2 streams with an overlay on the first stream 5 seconds in, running for 10 seconds.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       2 streams with an overlay on the first stream
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "shows": {
+              "baseURL": "OVA_HTTP_BASE_URL",
+              "streams": [
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" }
+              ]
+            },
+
+            "overlays": {
+              "regions": [
+                {
+                  "id": "bottom",
+                  "verticalAlign": "bottom",
+                  "horizontalAlign": "center",
+                  "backgroundColor": "#000000",
+                  "padding": "-10 -10 -10 -10",
+                  "width": 450,
+                  "height": 50
+                }
+              ]
+            },
+
+            "ads": {
+              "servers": [
+                  {
+                    "type": "OpenX",
+                    "apiAddress": "OVA_OPENX_API",
+                    "allowAdRepetition": true
+                  }
+              ],
+              "schedule": [
+                  {
+                      "zone": "33",
+                      "position": "bottom",
+                      "width": 450,
+                      "height": 50,
+                      "startTime": "00:00:05",
+                      "duration": "10",
+                      "applyToParts": [0]
+                  }
+              ]
+            },
+
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
+
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example07.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example07.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example07.html	(revision 222)
@@ -0,0 +1,78 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 07 - 2 stream with a post-roll on the first stream</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='no-duration/shows/ova07.xml';</script>
+<h2>Example 07 - 2 stream with a post-roll on the first stream</h2>
+<p class="example">
+2 streams with a pre-roll limited to the first stream = 3 streams
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       1 stream with a post-roll
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+           "shows": {
+              "baseURL": "OVA_HTTP_BASE_URL",
+              "streams": [
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" }
+              ]
+           },
+
+           "ads": {
+              "servers": [
+                  {
+                    "type": "OpenX",
+                    "apiAddress": "OVA_OPENX_API",
+                    "allowAdRepetition": true
+                  }
+              ],
+              "schedule": [
+                  {
+                    "zone": "19",
+                    "position": "pre-roll",
+                    "applyToParts": [0]
+                  }
+              ]
+           },
+
+           "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+           }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example08.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example08.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example08.html	(revision 222)
@@ -0,0 +1,78 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 08 - 2 stream with a pre-roll on the second stream</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='no-duration/shows/ova08.xml';</script>
+<h2>Example 08 - 2 stream with a pre-roll on the second stream</h2>
+<p class="example">
+2 stream with a pre-roll on the second stream = 3 streams
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       1 stream with a post-roll
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+           "shows": {
+              "baseURL": "OVA_HTTP_BASE_URL",
+              "streams": [
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" }
+              ]
+           },
+
+           "ads": {
+              "servers": [
+                  {
+                    "type": "OpenX",
+                    "apiAddress": "OVA_OPENX_API",
+                    "allowAdRepetition": true
+                  }
+              ],
+              "schedule": [
+                  {
+                    "zone": "19",
+                    "position": "pre-roll",
+                    "applyToParts": [1]
+                  }
+              ]
+           },
+
+           "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+           }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example17.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example17.html	(revision 192)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example17.html	(revision 192)
@@ -0,0 +1,96 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 17 - 2 streams with an overlay on the second stream</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='no-duration/shows/ova17.xml';</script>
+<h2>Example 17 - 2 streams with an overlay on the second stream</h2>
+<p class="example">
+2 streams with an overlay on the second stream 5 seconds in, running for 10 seconds.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       2 streams with an overlay on the second stream
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "shows": {
+              "baseURL": "OVA_HTTP_BASE_URL",
+              "streams": [
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" }
+              ]
+            },
+
+            "overlays": {
+              "regions": [
+                 {
+                    "id": "bottom",
+                    "verticalAlign": "bottom",
+                    "horizontalAlign": "center",
+                    "backgroundColor": "#000000",
+                    "padding": "-10 -10 -10 -10",
+                    "width": 450,
+                    "height": 50
+                 }
+              ]
+            },
+
+            "ads": {
+              "servers": [
+                  {
+                    "type": "OpenX",
+                    "apiAddress": "OVA_OPENX_API",
+                    "allowAdRepetition": true
+                  }
+              ],
+              "schedule": [
+                  {
+                      "zone": "33",
+                      "position": "bottom",
+                      "width": 450,
+                      "height": 50,
+                      "startTime": "00:00:05",
+                      "duration": "10",
+                      "applyToParts": [1]
+                  }
+              ]
+            },
+
+            "debug": {
+              "levels": "OVA_DEBUG",
+              "debugger": "firebug"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example09.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example09.html	(revision 192)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example09.html	(revision 192)
@@ -0,0 +1,77 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 09 - 2 streams with pre-rolls on each stream</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='no-duration/shows/ova09.xml';</script>
+<h2>Example 09 - 2 streams with pre-rolls on each stream</h2>
+<p class="example">
+2 streams with pre-rolls on each stream = 4 streams
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       1 stream with a post-roll
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+           "shows": {
+              "baseURL": "OVA_HTTP_BASE_URL",
+              "streams": [
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" }
+              ]
+           },
+
+           "ads": {
+              "servers": [
+                  {
+                    "type": "OpenX",
+                    "apiAddress": "OVA_OPENX_API",
+                    "allowAdRepetition": true
+                  }
+              ],
+              "schedule": [
+                  {
+                    "zone": "19",
+                    "position": "pre-roll"
+                  }
+              ]
+           },
+
+           "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+           }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example18.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example18.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example18.html	(revision 222)
@@ -0,0 +1,96 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 18 - 2 streams with an overlay on each stream</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='no-duration/shows/ova18.xml';</script>
+<h2>Example 18 - 2 streams with an overlay on each stream</h2>
+<p class="example">
+2 streams with an overlay on the second stream 5 seconds in, running for 10 seconds.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       2 streams with an overlay on each stream
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "shows": {
+              "baseURL": "OVA_HTTP_BASE_URL",
+              "streams": [
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                   { "file":"OVA_HTTP_SHOW_STREAM_FILE" }
+              ]
+            },
+
+            "overlays": {
+              "regions": [
+                  {
+                     "id": "bottom",
+                     "verticalAlign": "bottom",
+                     "horizontalAlign": "center",
+                     "backgroundColor": "#000000",
+                     "padding": "-10 -10 -10 -10",
+                     "width": 450,
+                     "height": 50
+                  }
+              ]
+            },
+
+            "ads": {
+              "servers": [
+                  {
+                    "type": "OpenX",
+                    "apiAddress": "OVA_OPENX_API",
+                    "allowAdRepetition": true
+                  }
+              ],
+              "schedule": [
+                  {
+                      "zone": "33",
+                      "position": "bottom",
+                      "width": 450,
+                      "height": 50,
+                      "startTime": "00:00:05",
+                      "duration": "10",
+                      "applyToParts": [1]
+                  }
+              ]
+            },
+
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example19.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example19.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/shows/example19.html	(revision 222)
@@ -0,0 +1,101 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 19 - Stream Sequencing Test</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='no-duration/shows/ova19.xml';</script>
+<h2>Example 19 - Stream Sequencing Test</h2>
+<p class="example">
+14 streams, pre-rolls at 2, 4 and 7, mid-rolls at 5, 9, post-rolls at 5, 7 and 11 = 24 streams
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Stream Sequencing Test
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "shows": {
+                "baseURL": "OVA_HTTP_BASE_URL",
+	            "streams": [
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" },
+                    { "file":"OVA_HTTP_SHOW_STREAM_FILE" }
+               ]
+           },
+
+           "ads": {
+              "servers": [
+                  {
+                    "type": "OpenX",
+                    "apiAddress": "OVA_OPENX_API",
+                    "allowAdRepetition": true
+                  }
+              ],
+              "schedule": [
+                  {
+                    "zone": "19",
+                    "position": "pre-roll",
+                    "applyToParts": [2, 4, 7]
+                  },
+                  {
+                    "zone": "19",
+                    "position": "mid-roll",
+                    "applyToParts": [5, 9],
+                    "startTime": "00:00:05"
+                  },
+                  {
+                    "zone": "19",
+                    "position": "post-roll",
+                    "applyToParts": [5, 7, 11]
+                  }
+              ]
+           },
+
+           "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+           }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/ads/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/ads/example01.html	(revision 280)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/ads/example01.html	(revision 280)
@@ -0,0 +1,72 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - A duration-less stream with a pre-roll that does not have a VAST duration</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='no-duration/ads/ova01.xml';</script>
+<h2>Example 1 - A duration-less stream with a pre-roll that does not have a VAST duration</h2>
+<p class="example">
+This example illustrates how to use the JW flashvar configuration to specify a show stream
+(without a duration specified) and have an OVA ad served against it. In this example
+a pre-roll ad is served and there is no duration set in the VAST response for the ad.
+The ad duration is determined from the stream metadata.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_PSEUDO_SHOW_STREAM_1OVA_PSEUDO_STREAMER_PARAMS"));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_PSEUDO_SHOW_STREAM_1OVA_PSEUDO_STREAMER_PARAMS")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 - A duration-less stream with a pre-roll that does not have a VAST duration
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+              "pauseOnClickThrough": true,
+              "servers": [
+                  {
+                     "type": "Direct",
+                     "apiAddress": "OVA_ZERO_DURATION_VAST"
+                  }
+              ],
+              "schedule": [
+                  {
+                     "zone": "5",
+                     "position": "pre-roll"
+                  }
+              ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/ads/example02.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/ads/example02.html	(revision 280)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/ads/example02.html	(revision 280)
@@ -0,0 +1,76 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 2 - A duration-less stream with a pre-roll with an incorrect VAST duration</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='no-duration/ads/ova02.xml';</script>
+<h2>Example 2 - A duration-less stream with a pre-roll with an incorrect VAST duration</h2>
+<p class="example">
+This example illustrates how OVA deals with linear ad streams that have a duration
+that is different to the value in the VAST response. In this case, the VAST response is
+returning a value of 10 seconds for the ad but it's actually 30 seconds long. OVA
+detects that there is a difference and automatically re-adjusts the timings to the
+correct values. The automatic correction can be turned off by setting the
+"setDurationFromMetaData" config value to "false". It is "true" by default for 
+ads.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_PSEUDO_SHOW_STREAM_1OVA_PSEUDO_STREAMER_PARAMS"));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_PSEUDO_SHOW_STREAM_1OVA_PSEUDO_STREAMER_PARAMS")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 2 - A duration-less stream with a pre-roll with an incorrect VAST duration
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+              "pauseOnClickThrough": true,
+              "setDurationFromMetaData": true, 
+              "servers": [
+                  {
+                    "type": "OpenX",
+                    "apiAddress": "OVA_OPENX_API",
+                  }
+              ],
+              "schedule": [
+                  {
+                     "zone": "46",
+                     "position": "pre-roll"
+                  }
+              ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/ads/example03.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/ads/example03.html	(revision 280)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/ads/example03.html	(revision 280)
@@ -0,0 +1,68 @@
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 3 - Duration-less stream with a pre-roll duration set in VAST</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='no-duration/ads/ova03.xml';</script>
+<h2>Example 3 - Duration-less stream with a pre-roll duration set in VAST</h2>
+<p class="example">
+This example illustrates how to instruct OVA to ignore the stream duration metadata and
+always use the value from the VAST response.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_PSEUDO_SHOW_STREAM_1OVA_PSEUDO_STREAMER_PARAMS"));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_PSEUDO_SHOW_STREAM_1OVA_PSEUDO_STREAMER_PARAMS")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Duration-less stream with a pre-roll duration set in VAST
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "setDurationFromMetaData": false,
+                "servers": [
+                    {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                    }
+                ],
+                "schedule": [
+                    {
+                      "zone": "5",
+                      "position": "pre-roll"
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/index.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/index.html	(revision 377)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/index.html	(revision 377)
@@ -0,0 +1,84 @@
+<html>
+<title>OVA for JWOVA_JW_VERSION (OVA_JW_RELEASE_NUMBER) - No or Incorrect Duration Examples</title>
+<link rel="stylesheet" type="text/css" href="../../../dist/css/global.css" />
+<body>
+<a href="www.openvideoads.org"><img src="../../../dist/images/ova-logo-final.png" border="0"/></a>
+<h2>OVA for JWOVA_JW_VERSION (OVA_JW_RELEASE_NUMBER) - No or Incorrect Duration Examples</h2>
+<h3>1. Always forcing Show Duration from Metadata</h3>
+<p class="example">
+</p>
+01: <a href="force/example01.html">Forcing show duration to be taken from the clip metadata</a>
+<br/>
+<h3>1. The Duration-less Ad Stream Examples</h3>
+<p class="example">
+In the following cases, either an ad does not have a duration provided in the VAST response
+or the duration specified varies from the value extracted from the stream meta data. In
+each case, the duration is changed to reflect the correct value and the tracking points
+are updated accordingly.
+</p>
+01: <a href="ads/example01.html">A duration-less stream with a pre-roll that does not have a VAST duration</a>
+<br/>
+02: <a href="ads/example02.html">A duration-less stream with a pre-roll with an incorrect VAST duration</a>
+<br/>
+03: <a href="ads/example03.html">Leaving the original VAST duration untouched</a>
+<br/>
+<p>
+<h3>2. The Duration-less Show Stream Examples</h3>
+<p class="example">
+In all of the following cases, the show streams do not have a duration specified. This automatically puts 
+the OAS into "duration-less" mode. "duration-less" mode can be forciby activated by using the
+"setDurationFromMetaData" shows configuration parameter in the "shows" config group. This will force
+the stream metadata value to override any specified duration value.
+<p>
+01: <a href="shows/example01.html">1 stream with a pre-roll = 2 streams</a>
+<br/>
+02: <a href="shows/example02.html">1 stream with a mid-roll = 2 streams</a>
+<br/>
+03: <a href="shows/example03.html">1 stream with a post-roll = 2 streams</a>
+<br/>
+04: <a href="shows/example04.html">1 stream with an overlay = 1 stream</a>
+<br/>
+05: <a href="shows/example05.html">1 stream with pre, mid and post rolls = 4 streams</a>
+<br/>
+06: <a href="shows/example06.html">1 stream with pre, mid and post rolls + overlay = 4 streams</a>
+<br/>
+07: <a href="shows/example07.html">2 streams with a pre-roll limited to the first stream = 3 streams</a>
+<br/>
+08: <a href="shows/example08.html">2 streams with a pre-roll on the second stream = 3 streams</a>
+<br/>
+09: <a href="shows/example09.html">2 streams with a pre-roll on each stream = 4 streams</a>
+<br/>
+10: <a href="shows/example10.html">2 streams with a mid-roll on the first stream = 3 streams</a>
+<br/>
+11: <a href="shows/example11.html">2 streams with a mid-roll on the second stream = 3 streams</a>
+<br/>
+12: <a href="shows/example12.html">2 streams with a mid-roll on each stream = 4 streams</a>
+<br/>
+13: <a href="shows/example13.html">2 streams with a post-roll on the first stream = 3 streams</a>
+<br/>
+14: <a href="shows/example14.html">2 streams with a post-roll on the second stream = 3 streams</a>
+<br/>
+15: <a href="shows/example15.html">2 streams with a post-roll on each stream = 4 streams</a>
+<br/>
+16: <a href="shows/example16.html">2 streams with an overlay on the first stream = 2 streams</a>
+<br/>
+17: <a href="shows/example17.html">2 streams with an overlay on the second stream = 2 streams</a>
+<br/>
+18: <a href="shows/example18.html">2 streams with an overlay on each stream = 2 streams</a>
+<br/>
+19: <a href="shows/example19.html">14 streams, pre-rolls at 2, 4 and 7, mid-rolls at 5, 9, post-rolls at 5, 7 and 11 = 24 streams</a>
+<br/>
+20: <a href="shows/example20.html">6 streams, post-roll at 2, mid-roll at 4 = 9 streams</a>
+<br/>
+21: <a href="shows/example21.html">7 streams, mid-roll at 3, pre-roll at 5 = 10 streams</a>
+<br/>
+22: <a href="shows/example22.html">5 streams, mid-rolls at 1 and 5, pre-roll at 3 = 10 streams</a>
+<br/>
+23: <a href="shows/example23.html">14 streams, repeated (3 times) pre-rolls at 2, 4 and 7, mid-rolls at 5, 9, post-rolls at 5, 7 and 11 = 40 streams</a>
+<p>
+<a href="../../index.html">Back to main index</a>
+</p>
+<p class="example">
+Copyright 2010 Open Video Ads
+</p>
+
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/force/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/force/example01.html	(revision 377)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/no-duration/force/example01.html	(revision 377)
@@ -0,0 +1,73 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - Forcing show duration to be taken from the clip metadata</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='no-duration/force/ova01.xml';</script>
+<h2>Example 1 - Forcing show duration to be taken from the clip metadata</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 - Forcing show duration to be taken from the clip metadata
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "shows": {
+             "setDurationFromMetaData": true
+          }
+
+          "ads": {
+             "playOnce": false,
+             "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+             ],
+             "schedule": [
+                {
+                   "zone": "5",
+                   "position": "pre-roll"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-notice/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-notice/example01.html	(revision 88)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-notice/example01.html	(revision 88)
@@ -0,0 +1,92 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - Changing the "This is an advert" message</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-notice/ova01.xml';</script>
+<h2>Example 1 - Changing the "This is an advert" message</h2>
+<p class="example">
+This example illustrates how the "this is an advert" type message can be turned on and off, and the
+text changed. For this example, the text has been set to "My New Ad Notice - _seconds_ seconds".
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 - Changing the "This is an advert" message
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "overlays": {
+              "regions": [
+                  {
+                      "id": "my-ad-notice",
+                      "verticalAlign": "bottom",
+                      "horizontalAlign": "right",
+                      "backgroundColor": "transparent",
+                      "width": "100pct",
+                      "height": 40,
+                      "style": ".smalltext { font-style: italic; font-size:10; }"
+                  }
+              ]
+            },
+
+            "ads": {
+              "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+              ],
+
+              "schedule": [
+                  {
+                      "zone": "5",
+                      "position": "pre-roll",
+                      "notice": {
+                          "show": true,
+                          "region": "my-ad-notice",
+                          "message": "&lt;p class=\"smalltext\" align=\"right\"&gt;
+                                      My New Ad Notice - _seconds_ seconds&lt;/p&gt;"
+                      },
+                  }
+              ]
+            },
+
+            "debug": {
+              "levels": "OVA_DEBUG",
+              "debugger": "firebug"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
+
+
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-notice/example02.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-notice/example02.html	(revision 88)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-notice/example02.html	(revision 88)
@@ -0,0 +1,69 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - Changing the "This is an advert" message</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-notice/ova02.xml';</script>
+<h2>Example 2 - Ad Notice with Countdown Timer</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 - Changing the "This is an advert" message
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "notice": { "type": "countdown" },
+                "servers": [
+                    {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API"
+                    }
+                ],
+                "schedule": [
+                    {
+                      "zone": "5",
+                      "position": "pre-roll"
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-notice/example03.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-notice/example03.html	(revision 88)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-notice/example03.html	(revision 88)
@@ -0,0 +1,70 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 3 - Turning off the Ad Notice</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-notice/ova03.xml';</script>
+<h2>Example 3 - Turning off the Ad Notice</h2>
+<p class="example">
+Use the "notice" configuration variable to turn off the display of the "this is an advert" notice.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 3 - Turning off the Ad Notice
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "notice": { "show": false },
+                "servers": [
+                    {
+                       "type": "OpenX",
+                       "apiAddress": "OVA_OPENX_API"
+                    }
+                ],
+                "schedule": [
+                    {
+                       "zone": "5",
+                       "position": "pre-roll"
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-notice/example04.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-notice/example04.html	(revision 88)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-notice/example04.html	(revision 88)
@@ -0,0 +1,86 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 4 - Modifying the Linear Ad Clickthrough Message</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-notice/ova04.xml';</script>
+<h2>Example 4 - Modifying the Linear Ad Clickthrough Message</h2>
+<p class="example">
+You can modify the font style, size and whether or not the message is shown.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 4 - Modifying the Linear Ad Clickthrough Message
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "clickSign": {
+                   "enabled": true,
+                   "verticalAlign": "center",
+                   "horizontalAlign": "center",
+                   "width": 150,
+                   "height": 32,
+                   "opacity": 0.5,
+                   "borderRadius": 20,
+                   "backgroundColor": "#000000",
+                   "style": ".smalltext { font-size:12; }",
+                   "html": "&lt;p class=\"smalltext\" align=\"center\"&gt;CLICK ME!&lt;/p&gt;",
+                   "scaleRate": 0.75
+                },
+                "notice": { "show": true },
+                "servers": [
+                   {
+                       "type": "OpenX",
+                       "apiAddress": "OVA_OPENX_API",
+                       "customProperties": {
+                       "target": "category=food"
+                   }
+                }
+              ],
+                "schedule": [
+                   {
+                      "zone": "1",
+                      "position": "pre-roll"
+                   }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-notice/example05.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-notice/example05.html	(revision 88)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-notice/example05.html	(revision 88)
@@ -0,0 +1,68 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 5 - Test reposition of ad notice on hide of controls</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-notice/ova05.xml';</script>
+<h2>Example 5 - Test reposition of ad notice on hide of controls</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 5 - Test reposition of ad notice on hide of controls
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "servers": [
+                    {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API"
+                    }
+                ],
+                "schedule": [
+                    {
+                      "zone": "5",
+                      "position": "pre-roll"
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-notice/example06.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-notice/example06.html	(revision 144)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-notice/example06.html	(revision 144)
@@ -0,0 +1,69 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 6 - Test enable of control bar during ad playback</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-notice/ova06.xml';</script>
+<h2>Example 6 - Test enable of control bar during ad playback</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 6 - Test enable/disable of control bar during ad playback
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+              "playOnce": false,
+              "disableControls": false,
+              "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+              ],
+              "schedule": [
+                   {
+                      "zone": "5",
+                      "position": "pre-roll"
+                  }
+              ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-notice/example07.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-notice/example07.html	(revision 88)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-notice/example07.html	(revision 88)
@@ -0,0 +1,69 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 7 - Small ad notice text</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-notice/ova07.xml';</script>
+<h2>Example 7 - Small ad notice text</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 7 Small ad notice text
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "notice": { "textStyle": "smalltext" },
+                "servers": [
+                    {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API"
+                    }
+                ],
+                "schedule": [
+                    {
+                      "zone": "5",
+                      "position": "pre-roll"
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-notice/example08.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-notice/example08.html	(revision 88)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-notice/example08.html	(revision 88)
@@ -0,0 +1,74 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 8 - Turning off the Click-Through Message</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-notice/ova08.xml';</script>
+<h2>Example 8 - Turning off the Click-Through Message</h2>
+<p class="example">
+You can modify the font style, size and whether or not the message is shown.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 8 - Turning off the Click-Through Message
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "clickSign": {
+                   "enabled": false,
+                },
+                "servers": [
+                   {
+                       "type": "OpenX",
+                       "apiAddress": "OVA_OPENX_API",
+                       "customProperties": {
+                       "target": "category=food"
+                   }
+                }
+              ],
+                "schedule": [
+                   {
+                      "zone": "1",
+                      "position": "pre-roll"
+                   }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-notice/index.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-notice/index.html	(revision 283)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-notice/index.html	(revision 283)
@@ -0,0 +1,30 @@
+<html>
+<head>
+<title>OVA for JWOVA_JW_VERSION (OVA_JW_RELEASE_NUMBER) - Formatting the Ad Notice</title>
+<link rel="stylesheet" type="text/css" href="../../../dist/css/global.css" />
+</head>
+<body>
+<a href="www.openvideoads.org"><img src="../../../dist/images/ova-logo-final.png" border="0"/></a>
+<h2>OVA for JWOVA_JW_VERSION (OVA_JW_RELEASE_NUMBER) - Formatting the Ad Notice</h2>
+<p class="example">
+<p>
+<ol>
+<li><a href="example01.html">Changing the "This is an advert" message</a></li>
+<li><a href="example02.html">Ad Notice with Countdown Timer</a></li>
+<li><a href="example03.html">Turning off the Ad Notice</a></li>
+<li><a href="example04.html">Modifying the Linear Ad Clickthrough Message</a></li>
+<li><a href="example06.html">Test disable/enable of the control bar during ad playback</a></li>
+<li><a href="example07.html">Using small text on the ad notice</a></li>
+<li><a href="example08.html">Turning off the Click-Through Notice</a></li>
+</ol>
+<p class="example">
+These examples use an OpenX installation that we are running at Open Video Ads. To gain more insight
+into the zone/banner setup that we have in place for the examples, please read this <a href="../openx-config.html">short guide</a>.
+</p>
+<p>
+<a href="../../index.html">Back to main index</a>
+</p>
+<p class="example">
+Copyright 2010 Open Video Ads
+</p>
+</body>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example01.html	(revision 206)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example01.html	(revision 206)
@@ -0,0 +1,96 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - Scheduling ads against a single stream (without a stream duration)</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='jw-specific/ova01.xml';</script>
+<h2>Example 1 - Scheduling ads against a single stream (without a stream duration)</h2>
+<p class="example">
+This example illustrates how to use the JW flashvar configuration to specify a show stream
+(without a duration specified) and have an OAS ad served against it. In this example
+a pre-roll ad is served along with a "click to play video" overlay 5 seconds into the
+show stream.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300,"&file=OVA_PSEUDO_SHOW_STREAM_1OVA_PSEUDO_STREAMER_PARAMS"));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_PSEUDO_SHOW_STREAM_1OVA_PSEUDO_STREAMER_PARAMS")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Scheduling ads against a single stream
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+           "autoPlay": false,
+
+            "overlays": {
+                "regions": [
+                    {
+                        "id": "bottom",
+                        "verticalAlign": "bottom",
+                        "horizontalAlign": "center",
+                        "backgroundColor": "#000000",
+                        "padding": "-10 -10 -10 -10",
+                        "width": 450,
+                        "height": 50
+                    }
+                ]
+            },
+
+            "ads": {
+                "servers": [
+                    {
+                        "type": "OpenX",
+                        "apiAddress": "OVA_OPENX_API"
+                    }
+                ],
+                "notice": { "textStyle": "smalltext" },
+                "schedule": [
+                    {
+                        "zone": "18",
+                        "position": "pre-roll"
+                    },
+                    {
+                        "zone": "33",
+                        "position": "bottom",
+                        "width": 450,
+                        "height": 50,
+                        "startTime": "00:00:05",
+                        "duration": "15"
+                    }
+                ],
+            },
+
+            "debug": {
+               "levels": "OVA_DEBUG",
+               "debugger": "firebug"
+            }
+        }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example02.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example02.html	(revision 206)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example02.html	(revision 206)
@@ -0,0 +1,97 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 2 - Scheduling ads against an inline single stream (with a stream duration)</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='jw-specific/ova02.xml';</script>
+<h2>Example 2 - Scheduling ads against an inline single stream (with a stream duration)</h2>
+<p class="example">
+This example illustrates how to use the JW flashvar configuration to specify a show stream
+(with a duration specified) and have an OAS ad served against it. In this example
+a pre-roll ad is served along with a "click to play video" overlay 5 seconds into the
+show stream.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300,"&file=OVA_PSEUDO_SHOW_STREAM_1&duration=35OVA_PSEUDO_STREAMER_PARAMS"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=35OVA_PSEUDO_STREAMER_PARAMS")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Scheduling ads against an inline single stream (with a stream duration)
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+           "autoPlay": false,
+
+            "overlays": {
+                "regions": [
+                    {
+                        "id": "bottom",
+                        "verticalAlign": "bottom",
+                        "horizontalAlign": "center",
+                        "backgroundColor": "#000000",
+                        "padding": "-10 -10 -10 -10",
+                        "width": 450,
+                        "height": 50
+                    }
+                ]
+            },
+
+            "ads": {
+                "servers": [
+                    {
+                        "type": "OpenX",
+                        "apiAddress": "OVA_OPENX_API"
+                    }
+                ],
+                "notice": { "textStyle": "smalltext" },
+                "schedule": [
+                    {
+                        "zone": "18",
+                        "position": "pre-roll"
+                    },
+                    {
+                        "zone": "33",
+                        "position": "bottom",
+                        "width": 450,
+                        "height": 50,
+                        "startTime": "00:00:05",
+                        "duration": "15"
+                    }
+                ],
+            },
+
+            "debug": {
+               "levels": "OVA_DEBUG",
+               "debugger": "firebug"
+            }
+        }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example03.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example03.html	(revision 206)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example03.html	(revision 206)
@@ -0,0 +1,97 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 2 - Scheduling ads against an inline single stream (with a stream duration and start time)</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='jw-specific/ova03.xml';</script>
+<h2>Example 2 - Scheduling ads against an inline single stream (with a stream duration and start time)</h2>
+<p class="example">
+This example illustrates how to use the JW flashvar configuration to specify a show stream
+(with a duration and start time specified) and have an OAS ad served against it. In this example
+a pre-roll ad is served along with a "click to play video" overlay 5 seconds into the
+show stream. The show stream is started 15 seconds in and runs for 35 seconds.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300,"&file=OVA_PSEUDO_SHOW_STREAM_1&start=15&duration=35OVA_PSEUDO_STREAMER_PARAMS"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_PSEUDO_SHOW_STREAM_1&start=15&duration=35OVA_PSEUDO_STREAMER_PARAMS")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Scheduling ads against an inline single stream (with a stream duration and start time)
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+           "autoPlay": false,
+
+            "overlays": {
+                "regions": [
+                    {
+                        "id": "bottom",
+                        "verticalAlign": "bottom",
+                        "horizontalAlign": "center",
+                        "backgroundColor": "#000000",
+                        "padding": "-10 -10 -10 -10",
+                        "width": 450,
+                        "height": 50
+                    }
+                ]
+            },
+
+            "ads": {
+                "servers": [
+                    {
+                        "type": "OpenX",
+                        "apiAddress": "OVA_OPENX_API"
+                    }
+                ],
+                "notice": { "textStyle": "smalltext" },
+                "schedule": [
+                    {
+                        "zone": "18",
+                        "position": "pre-roll"
+                    },
+                    {
+                        "zone": "33",
+                        "position": "bottom",
+                        "width": 450,
+                        "height": 50,
+                        "startTime": "00:00:05",
+                        "duration": "15"
+                    }
+                ],
+            },
+
+            "debug": {
+               "levels": "OVA_DEBUG",
+               "debugger": "firebug"
+            }
+        }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example12.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example12.html	(revision 229)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example12.html	(revision 229)
@@ -0,0 +1,117 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 12 - Inline OVA Configuration</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2swfobject.js"></script>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='jw-specific/ova12.xml';</script>
+<h2>Example 12 - Inline OVA Configuration</h2>
+<p class="example">
+This example illustrates how to directly feed the OVA configuration into the ad streamer via the 
+"openvideoads.json" flashvar rather than the use of external configuration files. Note that you
+need to URL encode the json string contents.
+</p>
+<div id="player">This will be replaced by the SWF.</div>
+<script type="text/javascript">
+   var flashvars = {
+      'plugins':    	OVA_PLUGIN_2,
+      'playlist':   	'none',
+      'repeat': 		'list',
+      'autostart':		'false',
+      'dock':			'true',
+      'frontcolor':		'ffffff',
+      'title':			'Big%20Buck%20Bunny%20Trailer',
+      'image':			'http://content.bitsontherun.com/thumbs/nPripu9l-480.jpg',
+      'stretching':		'uniform',
+      'ping.script':	'http://content.bitsontherun.com/pings/',
+      'lightcolor':		'009999',
+      'controlbar':		'over',
+      'displayclick':	'play',
+      'backcolor':		'000000',
+      'playlistsize':	'200',
+      'skin':           'http://content.bitsontherun.com/skins/VFgGj89b.swf',  
+      'file':			'http://content.bitsontherun.com/jwp/nPripu9l.xml',
+      'ova.json':       '%7B%22blockUntilOriginalPlaylistLoaded%22%3Atrue%2C%22autoPlay%22%3Afalse%2C%22overlays%22%3A%7B%22stagePaddingBottomWithControls%22%3A5%2C%22regions%22%3A%5B%7B%22id%22%3A%22bottom%22%2C%22verticalAlign%22%3A%22bottom%22%2C%22horizontalAlign%22%3A%22center%22%2C%22backgroundColor%22%3A%22%23000000%22%2C%22padding%22%3A%22-10-10-10-10%22%2C%22width%22%3A450%2C%22height%22%3A50%7D%5D%7D%2C%22ads%22%3A%7B%22servers%22%3A%5B%7B%22type%22%3A%22OpenX%22%2C%22apiAddress%22%3A%22http%3A%2F%2Fopenx.openvideoads.org%2Fopenx%2Fwww%2Fdelivery%2Ffc.php%22%7D%5D%2C%22notice%22%3A%7B%09%22textStyle%22%3A%22smalltext%22%2C%09%22type%22%3A%22countdown%22%7D%2C%22schedule%22%3A%5B%7B%22zone%22%3A%2218%22%2C%22position%22%3A%22pre-roll%22%7D%2C%7B%22zone%22%3A%2230%22%2C%22position%22%3A%22bottom%22%2C%22width%22%3A450%2C%22height%22%3A50%2C%22startTime%22%3A%2200%3A00%3A05%22%2C%22duration%22%3A%2215%22%7D%5D%2C%7D%2C%22debug%22%3A%7B%22debugger%22%3A%22firebug%22%2C%22levels%22%3A%22fatal%22%7D%7D'
+   };
+
+   var params = {
+      'allowfullscreen':    'true',
+      'allowscriptaccess':  'always',
+      'bgcolor':            '#ffffff'
+   };
+
+   var attributes = {
+      'id':                 'player1',
+      'name':               'player1'
+   };
+
+   swfobject.embedSWF(OVA_PLAYER_2, 'player', '480', '272', '9', 'false', flashvars, params, attributes);
+</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+&lt;embed 
+  id="ply"
+  src="<script type="text/javascript">document.write(OVA_PLAYER_2)</script>"
+  width="450"
+  height="300"
+  allowscriptaccess="always"
+  allowfullscreen="true"
+  flashvars="plugins=<script type="text/javascript">document.write(OVA_PLUGIN_2)</script>&
+             playlist=none&
+             repeat=list&
+             autostart=false&
+             dock=true&
+             frontcolor=000000&
+             title=Big%20Buck%20Bunny%20Trailer&
+             image=http://content.bitsontherun.com/thumbs/nPripu9l-480.jpg&
+             stretching=uniform&
+             ping.script=http://content.bitsontherun.com/pings/&
+             lightcolor=000000&
+             controlbar=over&
+             displayclick=play&
+             backcolor=ffffff&
+             file=http://content.bitsontherun.com/jwp/nPripu9l.xml&
+             playlistsize=200&
+             skin=http://content.bitsontherun.com/skins/VFgGj89b.swf&  
+             file=http://content.bitsontherun.com/jwp/nPripu9l.xml&
+             ova.json={"blockUntilOriginalPlaylistLoaded":true,
+                                 autoPlay":false,"overlays":{"
+                                 stagePaddingBottomWithControls":5,"
+                                 regions":[{"id":"bottom","
+                                 verticalAlign":"bottom","
+                                 horizontalAlign":"center","
+                                 backgroundColor":"#000000","
+                                 padding":"-10-10-10-10","
+                                 width":450,"height":50}]},"
+                                 ads":{"servers":[{"type":"
+                                 OpenX","apiAddress":"http://
+                                 openx.openvideoads.org/openx/www/delivery/
+                                 fc.php"}],"notice":{"
+                                 "textStyle":"smalltext","type":
+                                 "countdown"},"schedule":[{
+                                 "zone":"18","position":
+                                 "pre-roll"},{"zone":"30",
+                                 "position":"bottom","width":450,
+                                 "height":50,"startTime":"00:00:05",
+                                 "duration":"15"}],},
+                                 "debug":{"debugger":
+                                 "firebug","levels":"fatal"}}" 
+/&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example04.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example04.html	(revision 190)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example04.html	(revision 190)
@@ -0,0 +1,165 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 4 - Scheduling ads with a Bits On The Run (BOTR) playlist</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2swfobject.js"></script>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2/global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='jw-specific/ova04.xml';</script>
+<h2>Example 4 - Scheduling ads with a Bits On The Run (BOTR) playlist</h2>
+<p class="example">
+This example illustrates the delivery of ads over a bitrate switched stream running on
+Bits on the Run. In this instance, pre-roll, post-roll and overlay ads are served.
+</p>
+<div id="player">This will be replaced by the SWF.</div>
+<script type="text/javascript">
+   var flashvars = {
+      'plugins':    	OVA_PLUGIN_2,
+      'playlist':   	'none',
+      'repeat': 		'list',
+      'autostart':		'false',
+      'dock':			'true',
+      'frontcolor':		'ffffff',
+      'title':			'Big%20Buck%20Bunny%20Trailer',
+      'image':			'http://content.bitsontherun.com/thumbs/nPripu9l-480.jpg',
+      'stretching':		'uniform',
+      'ping.script':	'http://content.bitsontherun.com/pings/',
+      'lightcolor':		'009999',
+      'controlbar':		'over',
+      'displayclick':	'play',
+      'backcolor':		'000000',
+      'playlistsize':	'200',
+      'skin':           'http://content.bitsontherun.com/skins/VFgGj89b.swf',  
+      'config':			OVA_CONFIG_DOCROOT_2 + OVA_CONFIG,
+      'file':			'http://content.bitsontherun.com/jwp/nPripu9l.xml'
+   };
+
+   var params = {
+      'allowfullscreen':    'true',
+      'allowscriptaccess':  'always',
+      'bgcolor':            '#ffffff'
+   };
+
+   var attributes = {
+      'id':                 'player1',
+      'name':               'player1'
+   };
+
+   swfobject.embedSWF(OVA_PLAYER_2, 'player', '480', '272', '9', 'false', flashvars, params, attributes);
+</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+&lt;embed 
+  id="ply"
+  data="<script type="text/javascript">document.write(OVA_PLAYER_2)</script>"
+  src="<script type="text/javascript">document.write(OVA_PLAYER_2)</script>" 
+  width="450"
+  height="300"
+  allowscriptaccess="always"
+  allowfullscreen="true"
+  flashvars="plugins=<script type="text/javascript">document.write(OVA_PLUGIN_2)</script>&
+             config=<script type="text/javascript">document.write(OVA_CONFIG_DOCROOT_2 + OVA_CONFIG)</script>&
+             playlist=none&
+             repeat=list&
+             autostart=false&
+             dock=true&
+             frontcolor=000000&
+             title=Big%20Buck%20Bunny%20Trailer&
+             image=http://content.bitsontherun.com/thumbs/nPripu9l-480.jpg&
+             stretching=uniform&
+             ping.script=http://content.bitsontherun.com/pings/&
+             lightcolor=000000&
+             controlbar=over&
+             displayclick=play&
+             backcolor=ffffff&
+             file=http://content.bitsontherun.com/jwp/nPripu9l.xml&
+             playlistsize=200"
+/&gt;
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Scheduling ads against a single stream
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+           "blockUntilOriginalPlaylistLoaded": true,
+           "autoPlay": false,
+
+           "overlays": {
+                "stagePaddingBottomWithControls": 5,
+                "regions": [
+                    {
+                        "id": "bottom",
+                        "verticalAlign": "bottom",
+                        "horizontalAlign": "center",
+                        "backgroundColor": "#000000",
+                        "padding": "-10 -10 -10 -10",
+                        "width": 450,
+                        "height": 50
+                    }
+                ]
+            },
+
+            "ads": {
+                "servers": [
+                    {
+                        "type": "OpenX",
+                        "apiAddress": "OVA_OPENX_API"
+                    }
+                ],
+                "notice": {
+                	"textStyle": "smalltext",
+                	"type": "countdown"
+                },
+                "schedule": [
+                    {
+                        "zone": "18",
+                        "position": "pre-roll"
+                    },
+                    {
+                        "zone": "30",
+                        "position": "bottom",
+                        "width": 450,
+                        "height": 50,
+                        "startTime": "00:00:05",
+                        "duration": "15"
+                    },
+                    {
+                        "zone": "18",
+                        "position": "pre-roll"
+                    }
+                ],
+            },
+
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            }       
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example13.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example13.html	(revision 130)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example13.html	(revision 130)
@@ -0,0 +1,107 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 13 - Specifying new providers</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='jw-specific/ova13.xml';</script>
+<h2>Example 13 - Specifying new providers</h2>
+<p class="example">
+This example illustrates how to specify a new provider for a specific stream type.
+</p>
+<div id="container">
+  <div id="player_row">
+  	 <div id="player_left">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360));</script>
+	 </div>
+	 <div id="player_right">
+		<div id="companion">
+			A COMPANION ADVERTISEMENT WILL APPEAR IN HERE
+		</div>
+	 </div>
+  </div>
+</div>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 13 - Specifying new providers
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "providers": {
+          	   "http": "lighttpd",
+          	   "rtmp": "rtmp"
+            },
+
+            "shows": {
+                "streams": [ 
+                   { 
+                      "file":"OVA_PSEUDO_SHOW_STREAM_1", 
+                      "duration":"00:00:35",
+                   } 
+                ]
+            },
+
+            "ads": {
+                "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API"
+                   }
+                ],
+	            "displayCompanions": true,
+	            "companions": [
+	                { "id":"companion", "width":"150", "height":"360" }
+	            ],
+                "schedule": [
+                    {
+                        "zone": "28",
+                        "width": 450,
+                        "height": 50,
+                        "startTime": "00:00:05",
+                        "duration": "10"
+                    },
+                    {
+                        "zone": "41",
+                        "width": 450,
+                        "height": 50,
+                        "startTime": "00:00:20",
+                        "duration": "10"
+                    }
+                ],
+            },
+
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example05.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example05.html	(revision 280)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example05.html	(revision 280)
@@ -0,0 +1,73 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 5 - Working with the Google Analytics plugin</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2swfobject.js"></script>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='jw-specific/ova04.xml';</script>
+<h2>Example 5 - Working with the Google Analytics plugin</h2>
+<p class="example">
+This example illustrates OVA working with the Google Analytics plugin. Note that analytics will be recorded
+on the linear video ad streams as well as the show streams when the "gapro" plugin is active.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300,"&file=OVA_PSEUDO_SHOW_STREAM_1OVA_PSEUDO_STREAMER_PARAMS&gapro.accountid=UA-10158120-1&gapro.trackstarts=true&gapro.trackpercentage=true&gapro.tracktime=true", ",gapro-1"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_PSEUDO_SHOW_STREAM_1OVA_PSEUDO_STREAMER_PARAMS&gapro.accountid=UA-10158120-1&gapro.trackstarts=true&gapro.trackpercentage=true&gapro.tracktime=true", ",gapro-1")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Working with Google Analytics
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "autoPlay": false,
+
+            "ads": {
+                "servers": [
+                    {
+                        "type": "OpenX",
+                        "apiAddress": "OVA_OPENX_API"
+                    }
+                ],
+                "schedule": [
+                    {
+                        "zone": "18",
+                        "position": "pre-roll"
+                    }
+                ],
+            },
+
+            "debug": {
+               "levels": "OVA_DEBUG",
+               "debugger": "firebug"
+            }
+        }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example14.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example14.html	(revision 130)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example14.html	(revision 130)
@@ -0,0 +1,109 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 14 - Specifying New Streaming Providers</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='jw-specific/ova14.xml';</script>
+<h2>Example 14 - Specifying New Streaming Providers</h2>
+<p class="example">
+This example illustrates how to define a new provider and optionally a streamer for that provider.
+In this example, the streaming URL for a new HTTP pseudo-streaming provider is defined.
+</p>
+<div id="container">
+  <div id="player_row">
+  	 <div id="player_left">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360));</script>
+	 </div>
+	 <div id="player_right">
+		<div id="companion">
+			A COMPANION ADVERTISEMENT WILL APPEAR IN HERE
+		</div>
+	 </div>
+  </div>
+</div>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 13 - Specifying new providers and streamers
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "shows": {
+                "providers": {
+              	   "http": {
+              	       "type":"http",
+              	       "streamer":"__file-address__?start=__start-time__[&end=__duration__]"
+              	   }
+                },
+                "streams": [ 
+                   { 
+                      "file":"OVA_PSEUDO_SHOW_STREAM_1", 
+                      "duration":"00:00:35",
+                   } 
+                ]
+            },
+
+            "ads": {
+                "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API"
+                   }
+                ],
+	            "displayCompanions": true,
+	            "companions": [
+	                { "id":"companion", "width":"150", "height":"360" }
+	            ],
+                "schedule": [
+                    {
+                        "zone": "28",
+                        "width": 450,
+                        "height": 50,
+                        "startTime": "00:00:05",
+                        "duration": "10"
+                    },
+                    {
+                        "zone": "41",
+                        "width": 450,
+                        "height": 50,
+                        "startTime": "00:00:20",
+                        "duration": "10"
+                    }
+                ],
+            },
+
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example06.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example06.html	(revision 320)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example06.html	(revision 320)
@@ -0,0 +1,95 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 6 - Delivering Ads over a YouTube video</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='jw-specific/ova06.xml';</script>
+<h2>Example 6 - Delivering Ads over YouTube videos</h2>
+<p class="example">
+This example illustrates how to deliver linear and overlay ads over a YouTube video. In this
+example we deliver a pre-roll ad and then an overlay 5 seconds into the YouTube video for 15 seconds.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300,"&file=http://www.youtube.com/watch?v=P5_Msrdg3Hk&provider=youtube"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=http://www.youtube.com/watch?v=P5_Msrdg3Hk&provider=youtube")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Delivering Ads over a YouTube video
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "autoPlay": false,
+
+            "overlays": {
+                "regions": [
+                    {
+                        "id": "bottom",
+                        "verticalAlign": "bottom",
+                        "horizontalAlign": "center",
+                        "backgroundColor": "#000000",
+                        "padding": "-10 -10 -10 -10",
+                        "width": 450,
+                        "height": 50
+                    }
+                ]
+            },
+
+            "ads": {
+                "servers": [
+                    {
+                        "type": "OpenX",
+                        "apiAddress": "OVA_OPENX_API"
+                    }
+                ],
+                "notice": { "textStyle": "smalltext" },
+                "schedule": [
+                    {
+                        "zone": "18",
+                        "position": "pre-roll"
+                    },
+                    {
+                        "zone": "33",
+                        "position": "bottom",
+                        "width": 450,
+                        "height": 50,
+                        "startTime": "00:00:05",
+                        "duration": "15"
+                    }
+                ],
+            },
+
+            "debug": {
+               "levels": "OVA_DEBUG",
+               "debugger": "firebug"
+            }
+        }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example15.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example15.html	(revision 246)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example15.html	(revision 246)
@@ -0,0 +1,70 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 15 - Using a Thumbnail/Splash/Title Image</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='jw-specific/ova15.xml';</script>
+<h2>Example 15 - Using a Thumbnail/Splash/Title Image</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300,"&amp;image=OVA_THUMBNAIL_IMAGE&file=OVA_PSEUDO_SHOW_STREAM_1OVA_PSEUDO_STREAMER_PARAMS"));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&amp;image=OVA_THUMBNAIL_IMAGE&file=OVA_PSEUDO_SHOW_STREAM_1OVA_PSEUDO_STREAMER_PARAMS")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Using a Thumbnail/Splash/Title Image
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+           "autoPlay": false,
+
+           "ads": {
+                "servers": [
+                    {
+                        "type": "OpenX",
+                        "apiAddress": "OVA_OPENX_API"
+                    }
+                ],
+                "notice": { "textStyle": "smalltext" },
+                "schedule": [
+                    {
+                        "zone": "18",
+                        "position": "pre-roll"
+                    }
+                ],
+           },
+
+           "debug": {
+               "levels": "OVA_DEBUG",
+               "debugger": "firebug"
+           }
+        }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example07.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example07.html	(revision 280)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example07.html	(revision 280)
@@ -0,0 +1,77 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 7 - Using SMIL playlists via the OAS shows config</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='jw-specific/ova07.xml';</script>
+<h2>Example 7 - Using SMIL playlists via the OAS shows config</h2>
+<p class="example">
+This example illustrates how to configure a SMIL playlist using the OVA shows config.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Using SMIL playlists via the OAS shows config
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "shows": {
+                "playlist":
+              	   {
+  						"file": "http://hwcdn.net/y9t7g4w7/fms/streaming/Passion.mp4.smil",
+                        "type": "smil"
+              	   }
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "servers": [
+                    {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API"
+                    }
+                ],
+                "schedule": [
+                    {
+                      "zone": "5",
+                      "position": "pre-roll"
+                    }
+                ]
+            }       
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example16.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example16.html	(revision 327)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example16.html	(revision 327)
@@ -0,0 +1,84 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 16 - Loading Shows and Ads "On Demand" via player.sendEvent(LOAD...)</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='jw-specific/ova16.xml';</script>
+<h2>Example 16 - Loading Shows and Ads "On Demand" via player.sendEvent(LOAD...)</h2>
+<p class="example">
+This example illustrates how to use the sendEvent(LOAD) JW Javascript API with "ova.reload":true to trigger the loading of a new ad scheduled show stream.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300,"&file=OVA_PSEUDO_SHOW_STREAM_1OVA_PSEUDO_STREAMER_PARAMS"));</script>
+<p>
+<button type="button" onClick="player.sendEvent('LOAD', { file:'http://www.youtube.com/watch?v=KSu3EyNL_iQ', image:'http://www.teradeportes.com/images/podcasts/futbolnacional/2010/Quito270910_085803.jpg', 'ova.reload':true });">Trigger Load of New Stream</button>
+</p>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_PSEUDO_SHOW_STREAM_1OVA_PSEUDO_STREAMER_PARAMS")));</script>
+</code>
+</pre>
+</div>
+<p>
+The onClick event for the button is declared as follows:
+</p>
+<div class="codebox">
+<pre>
+&lt;button type="button" onclick="player.sendEvent('LOAD', { file:'http://www.youtube.com/watch?v=KSu3EyNL_iQ', 
+image:'http://www.teradeportes.com/images/podcasts/futbolnacional/2010/Quito270910_085803.jpg', 
+'ova.reload': true });"&gt;Trigger Load of New Stream&lt;/button&gt;
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Loading Shows and Ads "On Demand" via player.sendEvent(LOAD...)
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+           "autoPlay": false,
+
+           "ads": {
+                "servers": [
+                    {
+                        "type": "OpenX",
+                        "apiAddress": "OVA_OPENX_API"
+                    }
+                ],
+                "notice": { "textStyle": "smalltext" },
+                "schedule": [
+                    {
+                        "zone": "18",
+                        "position": "pre-roll"
+                    }
+                ],
+           },
+
+           "debug": {
+               "levels": "OVA_DEBUG",
+               "debugger": "firebug"
+           }
+        }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example08.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example08.html	(revision 144)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example08.html	(revision 144)
@@ -0,0 +1,70 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 8 - Using SMIL playlists via the JW Flashvars</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='jw-specific/ova08.xml';</script>
+<h2>Example 8 - Using SMIL playlists via the JW Flashvars</h2>
+<p class="example">
+This example illustrates how to configure a SMIL playlist using the standard JW Player
+flashvars config.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&type=rtmp&rtmp.loadbalance=true&file=http://hwcdn.net/y9t7g4w7/fms/streaming/Passion.mp4.smil"));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&type=rtmp&rtmp.loadbalance=true&file=http://hwcdn.net/y9t7g4w7/fms/streaming/Passion.mp4.smil")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Using SMIL playlists via the JW Flashvars
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "servers": [
+                    {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API"
+                    }
+                ],
+                "schedule": [
+                    {
+                      "zone": "5",
+                      "position": "pre-roll"
+                    }
+                ]
+            }       
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example09.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example09.html	(revision 276)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/example09.html	(revision 276)
@@ -0,0 +1,72 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 9 - Working with the HD plugin</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='jw-specific/ova09.xml';</script>
+<h2>Example 9 - Working with the HD plugin</h2>
+<p class="example">
+This example illustrates OVA working with the HD plugin. The "dock=false" option must
+be used to ensure that the "HD" prompt is not shown in the dock when an ad plays.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=http://streaming.openvideoads.org:81/shows/the-black-hole.mp4&hd.file=http://streaming.openvideoads.org:81/shows/the-black-hole.mp4OVA_PSEUDO_STREAMER_PARAMS&dock=false", ",hd-1"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=http://streaming.openvideoads.org:81/shows/the-black-hole.mp4&hd.file=http://streaming.openvideoads.org:81/shows/the-black-hole.mp4OVA_PSEUDO_STREAMER_PARAMS&dock=false", ",hd-1")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Working with the HD Plugin
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "autoPlay": false,
+
+            "ads": {
+                "servers": [
+                    {
+                        "type": "OpenX",
+                        "apiAddress": "OVA_OPENX_API"
+                    }
+                ],
+                "schedule": [
+                    {
+                        "zone": "18",
+                        "position": "pre-roll"
+                    }
+                ],
+            },
+
+            "debug": {
+               "levels": "OVA_DEBUG",
+               "debugger": "firebug"
+            }
+        }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/index.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/index.html	(revision 321)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/jw-specific/index.html	(revision 321)
@@ -0,0 +1,32 @@
+<html>
+<head>
+<title>OVA for JWOVA_JW_VERSION (OVA_JW_RELEASE_NUMBER) - JW Player Specific Configuration</title>
+<link rel="stylesheet" type="text/css" href="../../../dist/css/global.css" />
+</head>
+<body>
+<a href="www.openvideoads.org"><img src="../../../dist/images/ova-logo-final.png" border="0"/></a>
+<h2>OVA for JWOVA_JW_VERSION (OVA_JW_RELEASE_NUMBER) - JW Player Specific Configuration</h2>
+<p class="example">
+</p>
+<ol>
+<li><a href="example01.html">Scheduling ads against an inline single stream (without a stream duration)</a></li>
+<li><a href="example02.html">Scheduling ads against an inline single stream (with a stream duration)</a></li>
+<li><a href="example03.html">Scheduling ads against an inline single stream (with a stream duration and start time)</a></li>
+<li><a href="example05.html">Working with Google Analytics</a></li>
+<li><a href="example06.html">Streaming YouTube Videos with Ads</a></li>
+<li><a href="example08.html">Using SMIL playlists via the JW flashvar</a></li>
+<li><a href="example09.html">Working with the HD plugin</a></li>
+<li><a href="example12.html">Flashvar Inline configuration</a></li>
+<li><a href="example13.html">Specifying providers</a></li>
+<li><a href="example15.html">Using a Thumbnail/Splash/Title Image</a></li>
+<li><a href="example16.html">Loading Shows and Ads "On Demand" via player.sendEvent(LOAD...)</a></li>
+<li>Operating a playlist with the JW Javascript plugin</a></li>
+</ol>
+<p>
+<a href="../../index.html">Back to main index</a>
+</p>
+<p class="example">
+Copyright 2010 Open Video Ads
+</p>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example1.2.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example1.2.html	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example1.2.html	(revision 383)
@@ -0,0 +1,66 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1.2 - VPAID Linear pre-roll with standard control bar shown but disabled during ad playback</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='vpaid/ova1.2.xml';</script>
+<h2>Example 1.2 - VPAID Linear pre-roll with standard control bar shown but disabled during ad playback</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1.2 - VPAID Linear pre-roll with standard control bar shown but disabled during ad playback
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+             "vpaid": {
+                 "holdingClipUrl": "OVA_BLANK_PIXEL_IMAGE",
+                 "controls": { "hideOnLinearPlayback": false }
+             },
+             "schedule": [
+                {
+                   "position": "pre-roll",
+                   "tag": "OVA_VPAID_LINEAR_2_VAST"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example3.1.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example3.1.html	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example3.1.html	(revision 383)
@@ -0,0 +1,66 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 3.1 - Passing in a referrer URL to a VPAID ad</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='vpaid/ova3.1.xml';</script>
+<h2>Example 3.1 - Passing in a referrer URL to a VPAID ad</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 3.1 - Passing in a referrer URL to a VPAID ad
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+             "vpaid": {
+                 "holdingClipUrl": "OVA_BLANK_PIXEL_IMAGE",
+                 "supplyReferrer": true
+             },
+             "schedule": [
+                {
+                   "position": "pre-roll",
+                   "tag": "OVA_VPAID_LINEAR_2_VAST"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example1.4.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example1.4.html	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example1.4.html	(revision 383)
@@ -0,0 +1,65 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1.1 - VPAID Linear pre-roll with a skinned control bar hidden during ad playback (default)</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='vpaid/ova1.1.xml';</script>
+<h2>Example 1.1 - VPAID Linear pre-roll with a skinned control bar hidden during ad playback (default)</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video&skin=OVA_TEST_SKIN"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video&skin=OVA_TEST_SKIN")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1.1 - VPAID Linear pre-roll with a skinned control bar hidden during ad playback (default)
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+             "vpaid": {
+                 "holdingClipUrl": "OVA_BLANK_PIXEL_IMAGE"
+             },
+             "schedule": [
+                {
+                   "position": "pre-roll",
+                   "tag": "OVA_VPAID_LINEAR_2_VAST"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example3.2.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example3.2.html	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example3.2.html	(revision 383)
@@ -0,0 +1,75 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 3.2 - Specifying a max duration timeout timer</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='vpaid/ova3.2.xml';</script>
+<h2>Example 3.2 - Specifying a max duration timeout timer</h2>
+<p class="example">
+<p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<!--
+<div id="companion-300x60-static" style="width:300px;height:60px;border:1px solid #000;margin-bottom:3px;">300x60 static</div>
+<div id="companion-300x60-iframe" style="width:300px;height:60px;border:1px solid #000;margin-bottom:3px;">300x60 iframe</div>
+-->
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 3.2 - Specifying a max duration timeout timer
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "vpaid": {
+                    "enableMaxDurationTimeout": true,
+                    "maxDurationTimeout": 30,
+                    "holdingClipUrl": "OVA_BLANK_PIXEL_IMAGE"
+                },
+                "schedule": [
+                    {
+                      "position": "pre-roll",
+                      "server": {
+                          "type": "direct",
+    	                  "tag": "http://ad3.liverail.com/?LR_CAMPAIGN_ID=4435__amp__
+    	                          LR_PUBLISHER_ID=3996__amp__LR_SCHEMA=vast2"
+                      }
+                    }
+                ]
+           }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example1.5.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example1.5.html	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example1.5.html	(revision 383)
@@ -0,0 +1,66 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1.2 - VPAID Linear pre-roll with a skinned control bar shown but disabled during ad playback</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='vpaid/ova1.2.xml';</script>
+<h2>Example 1.2 - VPAID Linear pre-roll with a skinned control bar shown but disabled during ad playback</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video&skin=OVA_TEST_SKIN"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video&skin=OVA_TEST_SKIN")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1.2 - VPAID Linear pre-roll with a skinned control bar shown but disabled during ad playback
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+             "vpaid": {
+                 "holdingClipUrl": "OVA_BLANK_PIXEL_IMAGE",
+                 "controls": { "hideOnLinearPlayback": false }
+             },
+             "schedule": [
+                {
+                   "position": "pre-roll",
+                   "tag": "OVA_VPAID_LINEAR_2_VAST"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example3.4.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example3.4.html	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example3.4.html	(revision 383)
@@ -0,0 +1,73 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 3.4 - Specifying a holding clip URL</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='vpaid/ova3.4.xml';</script>
+<h2>Example 3.4 - Specifying a holding clip URL</h2>
+<p class="example">
+<p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<!--
+<div id="companion-300x60-static" style="width:300px;height:60px;border:1px solid #000;margin-bottom:3px;">300x60 static</div>
+<div id="companion-300x60-iframe" style="width:300px;height:60px;border:1px solid #000;margin-bottom:3px;">300x60 iframe</div>
+-->
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 3.4 - Specifying a holding clip URL
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "vpaid": {
+                    "holdingClipUrl": "OVA_BLANK_PIXEL_IMAGE"
+                },
+                "schedule": [
+                    {
+                      "position": "pre-roll",
+                      "server": {
+                          "type": "direct",
+    	                  "tag": "http://ad3.liverail.com/?LR_CAMPAIGN_ID=4435__amp__
+    	                          LR_PUBLISHER_ID=3996__amp__LR_SCHEMA=vast2"
+                      }
+                    }
+                ]
+           }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example1.6.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example1.6.html	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example1.6.html	(revision 383)
@@ -0,0 +1,65 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1.6 - Controlbar = "over" hidden during ad playback (default)</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='vpaid/ova1.6.xml';</script>
+<h2>Example 1.6 - Controlbar = "over" hidden during ad playback (default)</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&controlbar=over&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&controlbar=over&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1.6 - Controlbar = "over" hidden during ad playback (default)
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+             "vpaid": {
+                 "holdingClipUrl": "OVA_BLANK_PIXEL_IMAGE"
+             },
+             "schedule": [
+                {
+                   "position": "pre-roll",
+                   "tag": "OVA_VPAID_LINEAR_2_VAST"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example1.7.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example1.7.html	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example1.7.html	(revision 383)
@@ -0,0 +1,65 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1.7 - Controlbar = "top" hidden during ad playback (default)</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='vpaid/ova1.7.xml';</script>
+<h2>Example 1.7 - Controlbar = "top" hidden during ad playback (default)</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&controlbar=top&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&controlbar=top&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1.7 - Controlbar = "top" hidden during ad playback (default)
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+             "vpaid": {
+                 "holdingClipUrl": "OVA_BLANK_PIXEL_IMAGE"
+             },
+             "schedule": [
+                {
+                   "position": "pre-roll",
+                   "tag": "OVA_VPAID_LINEAR_2_VAST"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example3.6.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example3.6.html	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example3.6.html	(revision 383)
@@ -0,0 +1,64 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 3.6 - Deferred ad call for a VPAID pre-roll</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='vpaid/ova3.6.xml';</script>
+<h2>Example 3.6 - Deferred ad call for a VPAID pre-roll</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 3.6 - Deferred ad call for a VPAID pre-roll
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "delayAdRequestUntilPlay": true,
+
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+             "schedule": [
+                {
+                   "position": "pre-roll",
+                   "tag": "OVA_VPAID_LINEAR_2_VAST"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example1.8.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example1.8.html	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example1.8.html	(revision 383)
@@ -0,0 +1,65 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1.8 - Controlbar = "none" during ad and show playback</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='vpaid/ova1.6.xml';</script>
+<h2>Example 1.8 - Controlbar = "none" during ad and show playback</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&controlbar=none&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&controlbar=none&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1.8 - Controlbar = "none" during ad and show playback
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+             "vpaid": {
+                 "holdingClipUrl": "OVA_BLANK_PIXEL_IMAGE"
+             },
+             "schedule": [
+                {
+                   "position": "pre-roll",
+                   "tag": "OVA_VPAID_LINEAR_2_VAST"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example1.3.html.does-not-work
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example1.3.html.does-not-work	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example1.3.html.does-not-work	(revision 383)
@@ -0,0 +1,65 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1.3 - VPAID Linear pre-roll with no visible control bar or show stream before or after ad playback</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='vpaid/ova1.3.xml';</script>
+<h2>Example 1.3 - VPAID Linear pre-roll with no visible control bar or show stream before or after ad playback</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&controlbar=none&image=OVA_BLANK_WITH_PLAY_BUTTON_IMAGE"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&controlbar=none&image=OVA_BLANK_WITH_PLAY_BUTTON_IMAGE")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1.3 - VPAID Linear pre-roll with no visible control bar or show stream before or after ad playback
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+             "vpaid": {
+                 "holdingClipUrl": "OVA_BLANK_PIXEL_IMAGE"
+             },
+             "schedule": [
+                {
+                   "position": "pre-roll",
+                   "tag": "OVA_VPAID_LINEAR_2_VAST"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example3.3.html.does-not-work
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example3.3.html.does-not-work	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example3.3.html.does-not-work	(revision 383)
@@ -0,0 +1,69 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 3.3 - Manually specifying a height allowance for a control bar</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='vpaid/ova3.3.xml';</script>
+<h2>Example 3.3 - Manually specifying a height allowance for a control bar</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 3.3 - Manually specifying a height allowance for a control bar
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+             "vpaid": {
+                 "holdingClipUrl": "OVA_BLANK_PIXEL_IMAGE",
+                 "controls": {
+                     "hideOnLinearPlayback": false,
+                     "barHeight": 30
+                 }
+             },
+             "schedule": [
+                {
+                   "position": "pre-roll",
+                   "tag": "OVA_VPAID_LINEAR_2_VAST"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example3.5.html.does-not-work
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example3.5.html.does-not-work	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example3.5.html.does-not-work	(revision 383)
@@ -0,0 +1,65 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 3.5 - Autostarting a VPAID Linear</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='vpaid/ova3.5.xml';</script>
+<h2>Example 3.5 - Autostarting a VPAID Linear</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&autostart=true&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&autostart=true&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 3.5 - Autostarting a VPAID Linear
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+             "vpaid": {
+                 "holdingClipUrl": "OVA_BLANK_PIXEL_IMAGE"
+             },
+             "schedule": [
+                {
+                   "position": "pre-roll",
+                   "tag": "OVA_VPAID_LINEAR_2_VAST"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example01.html	(revision 347)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example01.html	(revision 347)
@@ -0,0 +1,65 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - Linear VPAID (Pre-roll)</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='vpaid/ova01.xml';</script>
+<h2>Example 1 - Linear VPAID (Pre-roll)</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 - Linear VPAID (Pre-roll)
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+             "vpaid": {
+                 "holdingClipUrl": "OVA_BLANK_PIXEL_IMAGE"
+             },
+             "schedule": [
+                {
+                   "position": "pre-roll",
+                   "tag": "OVA_VPAID_LINEAR_1_VAST"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example02.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example02.html	(revision 347)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example02.html	(revision 347)
@@ -0,0 +1,65 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 2 - VPAID Non-Linear</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='vpaid/ova02.xml';</script>
+<h2>Example 2 - VPAID Non-Linear</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 2 - VPAID Non-Linear
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+             "vpaid": {
+                 "holdingClipUrl": "OVA_BLANK_PIXEL_IMAGE"
+             },
+             "schedule": [
+                {
+                   "startTime": "00:00:03",
+                   "tag": "OVA_VPAID_NON_LINEAR_1_VAST"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example03.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example03.html	(revision 347)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example03.html	(revision 347)
@@ -0,0 +1,66 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 3 - VPAID Non-Linear with Preset Duration</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='vpaid/ova03.xml';</script>
+<h2>Example 3 - VPAID Non-Linear with Preset Duration</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 3 - VPAID Non-Linear with Preset Duration
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+             "vpaid": {
+                 "holdingClipUrl": "OVA_BLANK_PIXEL_IMAGE"
+             },
+             "schedule": [
+                {
+                   "startTime": "00:00:03",
+                   "duration": "15",
+                   "tag": "OVA_VPAID_NON_LINEAR_1_VAST"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example04.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example04.html	(revision 347)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example04.html	(revision 347)
@@ -0,0 +1,66 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 4 - Passing in a referrer URL to a VPAID ad</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='vpaid/ova04.xml';</script>
+<h2>Example 4 - Passing in a referrer URL to a VPAID ad</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 4 - Passing in a referrer URL to a VPAID ad
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+             "vpaid": {
+                 "holdingClipUrl": "OVA_BLANK_PIXEL_IMAGE",
+                 "supplyReferrer": true
+             },
+             "schedule": [
+                {
+                   "position": "pre-roll",
+                   "tag": "OVA_VPAID_LINEAR_1_VAST"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example05.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example05.html	(revision 347)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example05.html	(revision 347)
@@ -0,0 +1,66 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 5 - Specifying the VPAID Linear Display Region</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='vpaid/ova05.xml';</script>
+<h2>Example 5 - Specifying the VPAID Linear Display Region</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 5 - Specifying the VPAID Linear Display Region
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+             "vpaid": {
+                 "holdingClipUrl": "OVA_BLANK_PIXEL_IMAGE",
+                 "linearRegion": "reserved-fullscreen-black-no-close-button-non-clickable"
+             },
+             "schedule": [
+                {
+                   "position": "pre-roll",
+                   "tag": "OVA_VPAID_LINEAR_1_VAST"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example06.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example06.html	(revision 347)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example06.html	(revision 347)
@@ -0,0 +1,66 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 6 - Specifying the VPAID Non-Linear Display Region</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='vpaid/ova06.xml';</script>
+<h2>Example 6 - Specifying the VPAID Non-Linear Display Region</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 5 - Specifying the VPAID Non-Linear Display Region
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+             "vpaid": {
+                 "holdingClipUrl": "OVA_BLANK_PIXEL_IMAGE",
+                 "nonLinearRegion": "reserved-fullscreen-black-no-close-button-non-clickable"
+             },
+             "schedule": [
+                {
+                   "position": "pre-roll",
+                   "tag": "OVA_VPAID_LINEAR_1_VAST"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/index.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/index.html	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/index.html	(revision 383)
@@ -0,0 +1,41 @@
+<html>
+<head>
+<title>OVA for JWOVA_JW_VERSION (OVA_JW_RELEASE_NUMBER) - VPAID Examples</title>
+<link rel="stylesheet" type="text/css" href="../../../dist/css/global.css" />
+</head>
+<body>
+<a href="www.openvideoads.org"><img src="../../../dist/images/ova-logo-final.png" border="0"/></a>
+<h2>OVA for JWOVA_JW_VERSION (OVA_JW_RELEASE_NUMBER) - VPAID Examples</h2>
+<p class="example">VPAID Linear (Pre-Roll) Examples</p>
+<ol>
+<li><a href="example1.1.html">Standard control bar hidden during ad playback (default)</a></li>
+<li><a href="example1.2.html">Standard control bar shown but disabled during ad playback</a></li>
+<li><a href="example1.4.html">Skinned controlbar hidden during ad playback</a></li>
+<li><a href="example1.5.html">Skinned controlbar shown but disabled during ad playback</a></li>
+<li><a href="example1.6.html">Controlbar = "over" hidden during ad playback (default)</a></li>
+<li><a href="example1.7.html">Controlbar = "top" hidden during ad playback (default)</a></li>
+<li><a href="example1.8.html">Controlbar = "none" during ad and show playback</a></li>
+</ol>
+<!--
+<p class="example">VPAID Non-Linear (Overlay) Examples</p>
+<ol>
+<li><a href="example2.1 02.html">Eyewonder VPAID Non-Linear</a></li>
+<li><a href="example2.2 03.html">Eyewonder VPAID Non-Linear with preset duration</a></li>
+<li><a href="example2.3 05.html">Specifying the VPAID Linear Display Region</a></li>
+<li><a href="example2.4 06.html">Specifying the VPAID Non-Linear Display Region</a></li>
+</ol>
+-->
+<p class="example">VPAID Custom Configuration Examples</p>
+<ol>
+<li><a href="example3.1.html">Enabling the referrer URL to be passed to a VPAID ad</a></li>
+<li><a href="example3.2.html">Specifying a max duration timeout timer</a></li>
+<li><a href="example3.4.html">Specifying the holding clip URL</a></li>
+<li><a href="example3.6.html">Deferred VPAID pre-roll ad call</a></li>
+</ol>
+<p>
+<a href="../../index.html">Back to main index</a>
+</p>
+<p class="example">
+Copyright 2010 Open Video Ads
+</p>
+</body>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example1.1.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example1.1.html	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/vpaid/example1.1.html	(revision 383)
@@ -0,0 +1,65 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1.1 - VPAID Linear pre-roll with standard control bar hidden during ad playback (default)</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='vpaid/ova1.1.xml';</script>
+<h2>Example 1.1 - VPAID Linear pre-roll with standard control bar hidden during ad playback (default)</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1.1 - VPAID Linear pre-roll with standard control bar hidden during ad playback (default)
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+             "vpaid": {
+                 "holdingClipUrl": "OVA_BLANK_PIXEL_IMAGE"
+             },
+             "schedule": [
+                {
+                   "position": "pre-roll",
+                   "tag": "OVA_VPAID_LINEAR_2_VAST"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example01.html	(revision 144)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example01.html	(revision 144)
@@ -0,0 +1,184 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - Illustrating overlay alignments</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='overlays/ova01.xml';</script>
+<h2>Example 1 - Illustrating overlay alignments</h2>
+<p class="example">
+This example illustrates how to place overlays in different positions on the player screen. Several different regions are defined -
+bottom regions for center, left and right placement, a region for the center of the screen and a centered region for the top of
+the screen. 2 seconds into the program, an overlay will appear in each of these regions one after each other for a duration of
+5 seconds.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=34&provider=video"));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=34&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Illustrating overlay alignments
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+        {
+            "overlays": {
+              "regions": [
+                  {
+                      "id": "bottom-center",
+                      "verticalAlign": "bottom",
+                      "horizontalAlign": "center",
+                      "backgroundColor": "#000000",
+                      "opacity": 0.8,
+                      "borderRadius": 15,
+                      "padding": "-10 -10 -10 -10",
+                      "width": 450,
+                      "height": 50
+                  },
+                  {
+                      "id": "bottom-center",
+                      "verticalAlign": "bottom",
+                      "horizontalAlign": "center",
+                      "backgroundColor": "#000000",
+                      "opacity": 0.8,
+                      "borderRadius": 15,
+                      "padding": "-10 -10 -10 -10",
+                      "width": 450,
+                      "height": 50
+                  },
+                  {
+                      "id": "bottom-center",
+                      "verticalAlign": "bottom",
+                      "horizontalAlign": "left",
+                      "backgroundColor": "transparent",
+                      "padding": "-10 -10 -10 -10",
+                      "width": 450,
+                      "height": 50
+                  },
+                  {
+                      "id": "bottom-left",
+                      "verticalAlign": "bottom",
+                      "horizontalAlign": "left",
+                      "backgroundColor": "#000000",
+                      "opacity": 0.8,
+                      "borderRadius": 15,
+                      "padding": "-10 -10 -10 -10",
+                      "width": 450,
+                      "height": 50
+                  },
+                  {
+                      "id": "bottom-right",
+                      "verticalAlign": "bottom",
+                      "horizontalAlign": "right",
+                      "backgroundColor": "#000000",
+                      "opacity": 0.8,
+                      "borderRadius": 15,
+                      "padding": "-10 -10 -10 -10",
+                      "width": 450,
+                      "height": 50
+                  },
+                  {
+                      "id": "screen-center",
+                      "verticalAlign": "center",
+                      "horizontalAlign": "center",
+                      "backgroundColor": "#000000",
+                      "opacity": 0.8,
+                      "borderRadius": 15,
+                      "padding": "-10 -10 -10 -10",
+                      "width": 450,
+                      "height": 50
+                  },
+                  {
+                      "id": "top-center",
+                      "verticalAlign": "top",
+                      "horizontalAlign": "center",
+                      "backgroundColor": "#000000",
+                      "opacity": 0.8,
+                      "borderRadius": 15,
+                      "padding": "-10 -10 -10 -10",
+                      "width": 450,
+                      "height": 50
+                  }
+              ]
+            },
+
+            "ads": {
+               "servers": [
+                  {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                      "allowAdRepetition": true
+                  }
+               ],
+              "schedule": [
+                  {   "zone": "41",
+                      "position": "bottom-center",
+                      "width": 450,
+                      "height": 50,
+                      "startTime": "00:00:02",
+                      "duration": "5"
+                  },
+                  {   "zone": "41",
+                      "position": "bottom-left",
+                      "width": 450,
+                      "height": 50,
+                      "startTime": "00:00:08",
+                      "duration": "5"
+                  },
+                  {   "zone": "41",
+                      "position": "bottom-right",
+                      "width": 450,
+                      "height": 50,
+                      "startTime": "00:00:14",
+                      "duration": "5"
+                  },
+                  {   "zone": "41",
+                      "position": "screen-center",
+                      "width": 450,
+                      "height": 50,
+                      "startTime": "00:00:20",
+                      "duration": "5"
+                  },
+                  {   "zone": "41",
+                      "position": "top-center",
+                      "width": 450,
+                      "height": 50,
+                      "startTime": "00:00:26",
+                      "duration": "5"
+                  }
+              ]
+            },
+
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            }
+        }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
+
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example10.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example10.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example10.html	(revision 222)
@@ -0,0 +1,74 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 10 - Enabling the Standard Image Button</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='overlays/ova10.xml';</script>
+<h2>Example 10 - Enabling the Standard Image Button</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 640, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=34OVA_PSEUDO_STREAMER_PARAMS"));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 640, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=34OVA_PSEUDO_STREAMER_PARAMS")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 10 - Enabling the Standard Image Button
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+        {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+            
+            "overlays": {
+                "closeButton": { "type": "standard" }
+            },
+
+            "ads": {
+                "servers": [
+                    {
+                       "type": "OpenX",
+                       "apiAddress": "OVA_OPENX_API"
+                    }
+                ],
+                "pauseOnClickThrough": true,
+                "schedule": [
+                    {
+                       "zone": "28",
+                       "startTime": "00:00:05",
+                       "position": "auto:bottom",
+                       "duration": "recommended:10"
+                    }
+                ]
+            }
+        }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example02.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example02.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example02.html	(revision 222)
@@ -0,0 +1,98 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 2 - Mixed Overlay Delivery</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='overlays/ova02.xml';</script>
+<h2>Example 2 - Mixed Overlay Delivery</h2>
+<p class="example">
+This example illustrates how to deliver a mixture of overlay types. 3 random overlays will be
+selected and delivered - each running for 5 seconds. Leaving out width and height dimensions
+on an Ad Slot definition defaults it to -1 and -1 which means that any non-linear sizing
+will be matched. 
+</p>
+<div id="container">
+  <div id="player_row">
+    <div id="player_left">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=30OVA_PSEUDO_STREAMER_PARAMS"));</script>
+   </div>
+   <div id="player_right">
+    <div id="companion">
+      A COMPANION ADVERTISEMENT WILL APPEAR IN HERE
+    </div>
+   </div>
+  </div>
+</div>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=30OVA_PSEUDO_STREAMER_PARAMS")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 2 - Mixed Overlay Delivery
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+        {
+            "ads": {
+                "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API"
+                   }
+                ],
+                "displayCompanions": true,
+                "companions": [
+                    { "id":"companion", "width":"150", "height":"360" }
+                ],
+                "schedule": [
+                    {
+                        "zone": "44",
+                        "startTime": "00:00:05",
+                        "duration": "5"
+                    },
+                    {
+                        "zone": "44",
+                        "startTime": "00:00:12",
+                        "duration": "5",
+                    },
+                    {
+                        "zone": "44",
+                        "startTime": "00:00:19",
+                        "duration": "5"
+                    }
+                ],
+            },
+
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            }
+        }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example11.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example11.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example11.html	(revision 222)
@@ -0,0 +1,79 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 11 - Using a custom image for the close button</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='overlays/ova11.xml';</script>
+<h2>Example 11 - Using a custom image for the close button</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 640, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=34OVA_PSEUDO_STREAMER_PARAMS"));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 640, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=34OVA_PSEUDO_STREAMER_PARAMS")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 11 - Using a custom image for the close button
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+        {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+            
+            "overlays": {
+                "closeButton": { 
+                    "type": "custom", 
+                    "image": "OVA_EXAMPLE_OVERLAY_CUSTOM_BUTTON",
+                    "width": 15,
+                    "height": 15 
+                }
+            },
+
+            "ads": {
+                "servers": [
+                    {
+                       "type": "OpenX",
+                       "apiAddress": "OVA_OPENX_API"
+                    }
+                ],
+                "pauseOnClickThrough": true,
+                "schedule": [
+                    {
+                       "zone": "28",
+                       "startTime": "00:00:05",
+                       "position": "auto:bottom",
+                       "duration": "recommended:10"
+                    }
+                ]
+            }
+        }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example03.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example03.html	(revision 206)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example03.html	(revision 206)
@@ -0,0 +1,88 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 3 - User Defined Overlay Ad Templates</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='overlays/ova03.xml';</script>
+<h2>Example 3 - User Defined Overlay Ad Templates</h2>
+<p class="example">
+This example illustrates how to override the standard non-linear ad templates.
+</p>
+<div id="container">
+  <div id="player_row">
+    <div id="player_left">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=30OVA_PSEUDO_STREAMER_PARAMS"));</script>
+   </div>
+   <div id="player_right">
+    <div id="companion">
+      A COMPANION ADVERTISEMENT WILL APPEAR IN HERE
+    </div>
+   </div>
+  </div>
+</div>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=30OVA_PSEUDO_STREAMER_PARAMS")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+        Example 3 - User Defined Overlay Ad Templates
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+        {
+            "ads": {
+                "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API"
+                   }
+                ],
+                "displayCompanions": true,
+                "companions": [
+                   { "id":"companion", "width":"150", "height":"360" }
+                ],
+                "schedule": [
+                    {
+                        "zone": "31",
+                        "startTime": "00:00:05",
+                        "duration": "15",
+                        "templates": {
+                            "html": "&lt;body&gt;MY NEW TEMPLATE: _code_&lt;/body&gt;",
+                        }
+                    }
+                ],
+            },
+
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            }
+        }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example12.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example12.html	(revision 216)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example12.html	(revision 216)
@@ -0,0 +1,74 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 12 - Skinning an Overlay</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='overlays/ova12.xml';</script>
+<h2>Example 12 - Skinning an Overlay</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 640, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=34OVA_PSEUDO_STREAMER_PARAMS"));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 640, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=34OVA_PSEUDO_STREAMER_PARAMS")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 12 - Skinning an Overlay
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+        {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+            
+			"overlays": {
+				"skin": "skin.swf"
+			},
+
+            "ads": {
+                "servers": [
+                    {
+                       "type": "OpenX",
+                       "apiAddress": "OVA_OPENX_API"
+                    }
+                ],
+                "pauseOnClickThrough": true,
+                "schedule": [
+                    {
+                       "zone": "28",
+                       "startTime": "00:00:05",
+                       "position": "auto:bottom",
+                       "duration": "recommended:10"
+                    }
+                ]
+            }
+		}
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example04.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example04.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example04.html	(revision 222)
@@ -0,0 +1,91 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 4 - User Defined Regions</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='overlays/ova04.xml';</script>
+<h2>Example 4 - User Defined Regions</h2>
+<p class="example">
+This example illustrates how user defined regions can be specified by resource type. In this case 
+a text overlay is centered in the bottom of the screen using the reserved region 
+"reserved-bottom-center-w450px-h50px-transparent". As this region has no styling set for
+a text overlay the default standard styles are used.
+</p>
+<div id="container">
+  <div id="player_row">
+    <div id="player_left">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=30OVA_PSEUDO_STREAMER_PARAMS"));</script>
+   </div>
+   <div id="player_right">
+    <div id="companion">
+      A COMPANION ADVERTISEMENT WILL APPEAR IN HERE
+    </div>
+   </div>
+  </div>
+</div>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 540, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=30OVA_PSEUDO_STREAMER_PARAMS")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+        Example 4 - User Defined Regions
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+        {
+            "ads": {
+                "servers": [
+                    {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API"
+                    }
+                ],	
+                "displayCompanions": true,
+                "companions": [
+                    { "id":"companion", "width":"150", "height":"360" }
+                ],
+                "schedule": [
+                    {
+                        "zone": "29",
+                        "startTime": "00:00:05",
+                        "duration": "15",
+                        "regions": {
+                            "text": "reserved-bottom-center-w450px-h50px-transparent"
+                        }
+                    }
+                ],
+            },
+
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            }
+        }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example05.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example05.html	(revision 215)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example05.html	(revision 215)
@@ -0,0 +1,73 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 5 - Keep overlay visible after click</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='overlays/ova05.xml';</script>
+<h2>Example 5 - Keep overlay visible after click</h2>
+<p class="example">
+This example demonstrates how to configure an overlay so that it stays visible
+after the user has clicked it.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=30OVA_PSEUDO_STREAMER_PARAMS"));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=30OVA_PSEUDO_STREAMER_PARAMS")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Scheduling ads against a single stream
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+        {
+            "ads": {
+               "keepOverlayVisibleAfterClick": true,
+               "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API"
+                   }
+               ],
+               "schedule": [
+                  {
+                      "zone": "30",
+                      "startTime": "00:00:01",
+                      "duration": 15,
+                      "width": 450,
+                      "height": 50
+                  }
+               ]
+            },
+
+            "debug": {
+               "debugger": "firebug",
+               "levels": "OVA_DEBUG"
+            }
+        }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example06.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example06.html	(revision 270)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example06.html	(revision 270)
@@ -0,0 +1,77 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 6 - Modifying Stage Dimensions</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='overlays/ova06.xml';</script>
+<h2>Example 6 - Modifying Stage Dimensions</h2>
+<p class="example">
+This example demonstrates how to modify the dimensions of the stage to change the positions of overlays.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=30OVA_PSEUDO_STREAMER_PARAMS"));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=30OVA_PSEUDO_STREAMER_PARAMS")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Scheduling ads against a single stream
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+        {
+            "overlays": {
+                "stagePaddingBottomWithControls": 50,
+                "stagePaddingBottomNoControls": 15  
+            },
+
+            "ads": {
+               "keepOverlayVisibleAfterClick": true,
+               "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API"
+                   }
+               ],
+               "schedule": [
+                  {
+                      "zone": "30",
+                      "startTime": "00:00:01",
+                      "duration": 15,
+                      "width": 450,
+                      "height": 50
+                  }
+               ]
+            },
+
+            "debug": {
+               "debugger": "firebug",
+               "levels": "OVA_DEBUG"
+            }
+        }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example07.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example07.html	(revision 278)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example07.html	(revision 278)
@@ -0,0 +1,71 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 7 - Auto Region Sizing</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='overlays/ova07.xml';</script>
+<h2>Example 7 - Auto Region Sizing</h2>
+<p class="example">An overlay will appear 5 seconds into the show clip running for a recommended time of 10 seconds. The
+overlay will be positioned at the bottom of the screen using the VAST sizing information to determine the region size.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 640, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=34OVA_PSEUDO_STREAMER_PARAMS"));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 640, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=34OVA_PSEUDO_STREAMER_PARAMS")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 7 - Auto region sizing
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+        {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+            
+            "ads": {
+                "servers": [
+                    {
+                       "type": "OpenX",
+                       "apiAddress": "OVA_OPENX_API"
+                    }
+                ],
+                "pauseOnClickThrough": true,
+                "schedule": [
+                    {
+                       "zone": "28",
+                       "startTime": "00:00:05",
+                       "position": "auto:bottom",
+                       "duration": "recommended:10"
+                    }
+                ]
+            }
+        }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example08.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example08.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example08.html	(revision 222)
@@ -0,0 +1,74 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 8 - Turning off the close button</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='overlays/ova08.xml';</script>
+<h2>Example 8 - Turning off the close button</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 640, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=34OVA_PSEUDO_STREAMER_PARAMS"));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 640, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=34OVA_PSEUDO_STREAMER_PARAMS")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 8 - Turning off the close button
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+        {
+           "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+           },
+		
+           "overlays": {
+              "closeButton": { "enabled": false }
+           },
+		
+           "ads": {
+               "servers": [
+                  {
+                    "type": "OpenX",
+                    "apiAddress": "OVA_OPENX_API"
+                  }
+               ],
+               "pauseOnClickThrough": true,
+               "schedule": [
+                  {
+                     "zone": "28",
+                     "startTime": "00:00:05",
+                     "position": "auto:bottom",
+                     "duration": "recommended:10"
+                  }
+               ]
+           }
+		}
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example09.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example09.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/example09.html	(revision 222)
@@ -0,0 +1,74 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 9 - Enabling the standard cross-hair close button</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='overlays/ova09.xml';</script>
+<h2>Example 9 - Enabling the standard cross-hair close button</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 640, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=34OVA_PSEUDO_STREAMER_PARAMS"));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 640, 360, "&file=OVA_PSEUDO_SHOW_STREAM_1&duration=34OVA_PSEUDO_STREAMER_PARAMS")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 9 - Enabling the standard cross-hair close button
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+        {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+		
+            "overlays": {
+                "closeButton": { "type": "crosshair", "color": "#FFFFFF" }
+            },
+		
+            "ads": {
+                "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API"
+                   }
+                ],
+                "pauseOnClickThrough": true,
+                "schedule": [
+                   {
+                      "zone": "28",
+                      "startTime": "00:00:05",
+                      "position": "auto:bottom",
+                      "duration": "recommended:10"
+                    }
+	            ]
+	        }
+		}
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/index.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/index.html	(revision 215)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/overlays/index.html	(revision 215)
@@ -0,0 +1,37 @@
+<html>
+<head>
+<title>OVA for JWOVA_JW_VERSION (OVA_JW_RELEASE_NUMBER) - Configuring Overlays</title>
+<link rel="stylesheet" type="text/css" href="../../../dist/css/global.css" />
+</head>
+<body>
+<a href="www.openvideoads.org"><img src="../../../dist/images/ova-logo-final.png" border="0"/></a>
+<h2>OVA for JWOVA_JW_VERSION (OVA_JW_RELEASE_NUMBER) - Configuring Overlays</h2>
+<p class="example">
+</p>
+<ol>
+<li><a href="example01.html">Illustrating overlay alignments</a></li>
+<li><a href="example02.html">Mixed Overlay Delivery</a></li>
+<li><a href="example03.html">User Defined Overlay Ad Templates</a></li>
+<li><a href="example04.html">User Defined Regions</a></li>
+<li><a href="example05.html">Keep overlay visible after click</a></li>
+<li><a href="example06.html">Modifying Stage Dimensions</a></li>
+<li><a href="example07.html">Auto Region Sizing</a></li>
+<li><a href="example08.html">Turning off the close button</li>
+<li><a href="example09.html">Enabling the standard cross-hair close button</a></li>
+<li><a href="example10.html">Enabling the standard image close button</a></li>
+<li><a href="example11.html">Using a custom image for the close button</a></li>
+<li>Using a custom skin for overlays</li>
+<li>Enabling minimise on overlays - reduce to title</li>
+<li>Enabling minimise on overlays - reduce to button</li>
+</ol>
+<p class="example">
+These examples use an OpenX installation that we are running at Open Video Ads. To gain more insight
+into the zone/banner setup that we have in place for the examples, please read this <a href="../openx-config.html">short guide</a>.
+</p>
+<p>
+<a href="../../index.html">Back to main index</a>
+</p>
+<p class="example">
+Copyright 2010 Open Video Ads
+</p>
+</body>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/companions/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/companions/example01.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/companions/example01.html	(revision 222)
@@ -0,0 +1,106 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - Native VAST 1 Companion Types</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2jquery-1.3.1.js"></script>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-companions-jquery.js"></script>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='companions/ova01.xml';</script>
+<h2>Example 1 - Native VAST 1 Companion Types</h2>
+<p class="example">
+Displays the range of VAST 1 companion types that can be displayed natively by the OVA SWF - HTML (no scripting), iFrame, Static (image, swf, no scripting).
+If advanced companion types are required (that contain Javascript), OVA needs to be configured to "display companions externally".
+See this example for an illustration of how to achieve that.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<div style="width:640px;height:770px;top-margin:5px;">
+<div id="companion-300x250-static-1" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;float:left;text-align:center;background:#DDD;"><br/><br/><br/>300x250 static</br>(image)</div>
+<div id="companion-300x250-static-2" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;float:left;margin-left:3px;text-align:center;background:#DDD;"><br/><br/><br/>300x250 static</br>(swf)</div>
+<div id="companion-300x250-static-3" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;float:left;text-align:center;background:#DDD;"><br/><br/><br/>300x250 static<br/>(javascript - required ova.js)</div>
+<div id="companion-300x250-iframe" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;margin-left:3px;float:left;text-align:center;background:#DDD;"><br/><br/><br/>300x250 iframe</div>
+<div id="companion-300x250-html-1" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;float:left;text-align:center;background:#DDD;"><br/><br/><br/>300x250 html (no script)</div>
+<div id="companion-300x250-html-2" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;margin-left:3px;float:left;text-align:center;background:#DDD;"><br/><br/><br/>300x250 html<br/>(script requires ova.js)</div>
+</div>
+
+<p style="clear:both;">
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 - Native VAST 1 Companion Types
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "bestBitRate": "high",
+                "companions": [
+                     {
+                        "id":"companion-300x250-static-1",
+                        "width":"300",
+                        "height":"250",
+                        "index": 0
+                     },
+                     {
+                        "id":"companion-300x250-static-2",
+                        "width":"300",
+                        "height":"250",
+                        "index": 1
+                     },
+                     {
+                        "id":"companion-300x250-iframe",
+                        "width":"300",
+                        "height":"250",
+                        "resourceType": "iframe"
+                     }
+                     {
+                        "id":"companion-300x250-html-1",
+                        "width":"300",
+                        "height":"250",
+                        "index": 5
+                     }
+                ],
+                "schedule": [
+                     {
+                        "position": "pre-roll",
+                        "server": {
+                           "type": "direct",
+                           "tag": "OVA_COMPANIONS_VAST_1"
+                        }
+                     }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/companions/example02.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/companions/example02.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/companions/example02.html	(revision 222)
@@ -0,0 +1,107 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 2 - Native VAST 2 Companion Types</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2jquery-1.3.1.js"></script>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-companions-jquery.js"></script>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='companions/ova02.xml';</script>
+<h2>Example 2 - Native VAST 2 Companion Types</h2>
+<p class="example">
+Displays the range of VAST 2 companion types that can be displayed natively by the OVA SWF - HTML (no scripting), iFrame, Static (image, swf, no scripting).
+If advanced companion types are required (that contain Javascript), OVA needs to be configured to "display companions externally".
+See this example for an illustration of how to achieve that.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<div style="width:640px;height:770px;top-margin:5px;">
+<div id="companion-300x250-static-1" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;float:left;text-align:center;background:#DDD;"><br/><br/><br/>300x250 static</br>(image)</div>
+<div id="companion-300x250-static-2" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;float:left;margin-left:3px;text-align:center;background:#DDD;"><br/><br/><br/>300x250 static</br>(swf)</div>
+<div id="companion-300x250-static-3" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;float:left;text-align:center;background:#DDD;"><br/><br/><br/>300x250 static<br/>(javascript - required ova.js)</div>
+<div id="companion-300x250-iframe" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;margin-left:3px;float:left;text-align:center;background:#DDD;"><br/><br/><br/>300x250 iframe</div>
+<div id="companion-300x250-html-1" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;float:left;text-align:center;background:#DDD;"><br/><br/><br/>300x250 html (no script)</div>
+<div id="companion-300x250-html-2" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;margin-left:3px;float:left;text-align:center;background:#DDD;"><br/><br/><br/>300x250 html<br/>(script requires ova.js)</div>
+</div>
+
+<p style="clear:both;">
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 2 - Native VAST 2 Companion Types
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "bestBitRate": "high",
+                "companions": [
+                     {
+                        "id":"companion-300x250-static-1",
+                        "width":"300",
+                        "height":"250",
+                        "index": 0
+                     },
+                     {
+                        "id":"companion-300x250-static-2",
+                        "width":"300",
+                        "height":"250",
+                        "index": 1
+                     },
+                     {
+                        "id":"companion-300x250-iframe",
+                        "width":"300",
+                        "height":"250",
+                        "resourceType": "iframe"
+                     }
+                     {
+                        "id":"companion-300x250-html-1",
+                        "width":"300",
+                        "height":"250",
+                        "index": 5
+                     }
+                ],
+                "schedule": [
+                     {
+                        "position": "pre-roll",
+                        "server": {
+                           "type": "direct",
+                           "tag": "OVA_COMPANIONS_VAST_2"
+                        }
+                     }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
+
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/companions/example03.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/companions/example03.html	(revision 229)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/companions/example03.html	(revision 229)
@@ -0,0 +1,119 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 3 - Advanced VAST 1 Companion Types</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2jquery-1.3.1.js"></script>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-companions-jquery.js"></script>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='companions/ova03.xml';</script>
+<h2>Example 3 - Advanced VAST 1 Companion Types</h2>
+<p class="example">
+Displays the full range of VAST 1 companion types that can be displayed by OVA - HTML (tags), HTML (script), iFrame, Static (image, swf and script).
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<div style="width:640px;height:770px;top-margin:5px;">
+<div id="companion-300x250-static-1" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;float:left;text-align:center;background:#DDD;"><br/><br/><br/>300x250 static</br>(image)</div>
+<div id="companion-300x250-static-2" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;float:left;margin-left:3px;text-align:center;background:#DDD;"><br/><br/><br/>300x250 static</br>(swf)</div>
+<div id="companion-300x250-static-3" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;float:left;text-align:center;background:#DDD;"><br/><br/><br/>300x250 static<br/>(javascript - required ova.js)</div>
+<div id="companion-300x250-iframe" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;margin-left:3px;float:left;text-align:center;background:#DDD;"><br/><br/><br/>300x250 iframe</div>
+<div id="companion-300x250-html-1" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;float:left;text-align:center;background:#DDD;"><br/><br/><br/>300x250 html (no script)</div>
+<div id="companion-300x250-html-2" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;margin-left:3px;float:left;text-align:center;background:#DDD;"><br/><br/><br/>300x250 html<br/>(script requires ova.js)</div>
+</div>
+
+<p style="clear:both;">
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 3 - Advanced VAST 1 Companion Types
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "bestBitRate": "high",
+                "processCompanionsExternally": true,
+                "millisecondDelayOnCompanionInjection": 200,
+                "companions": [
+                     {
+                        "id":"companion-300x250-static-1",
+                        "width":"300",
+                        "height":"250",
+                        "index": 0
+                     },
+                     {
+                        "id":"companion-300x250-static-2",
+                        "width":"300",
+                        "height":"250",
+                        "index": 1
+                     },
+                     {
+                        "id":"companion-300x250-static-3",
+                        "width":"300",
+                        "height":"250",
+                        "index": 2
+                     },
+                     {
+                        "id":"companion-300x250-iframe",
+                        "width":"300",
+                        "height":"250",
+                        "resourceType": "iframe"
+                     }
+                     {
+                        "id":"companion-300x250-html-1",
+                        "width":"300",
+                        "height":"250",
+                        "index": 4
+                     }
+                     {
+                        "id":"companion-300x250-html-2",
+                        "width":"300",
+                        "height":"250",
+                        "index": 5
+                     }
+                ],
+                "schedule": [
+                     {
+                        "position": "pre-roll",
+                        "server": {
+                           "type": "direct",
+                           "tag": "OVA_COMPANIONS_VAST_1"
+                        }
+                     }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
+
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/companions/example04.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/companions/example04.html	(revision 229)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/companions/example04.html	(revision 229)
@@ -0,0 +1,120 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 4 - Advanced VAST 2 Companion Types</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2jquery-1.3.1.js"></script>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-companions-jquery.js"></script>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='companions/ova04.xml';</script>
+<h2>Example 4 - Advanced VAST 2 Companion Types</h2>
+<p class="example">
+Displays the full set of VAST 2 companion types - HTML (tags and scripting), iFrame, Static (image, swf, scripting).
+To support the script based companions, the external javascript functions contained in ova.js are called to insert
+the companion display code into the named DIV. Note the use of "processCompanionsExternally: true" to enable this feature.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<div style="width:640px;height:770px;top-margin:5px;">
+<div id="companion-300x250-static-1" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;float:left;text-align:center;background:#DDD;"><br/><br/><br/>300x250 static</br>(image)</div>
+<div id="companion-300x250-static-2" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;float:left;margin-left:3px;text-align:center;background:#DDD;"><br/><br/><br/>300x250 static</br>(swf)</div>
+<div id="companion-300x250-static-3" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;float:left;text-align:center;background:#DDD;"><br/><br/><br/>300x250 static<br/>(javascript - required ova.js)</div>
+<div id="companion-300x250-iframe" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;margin-left:3px;float:left;text-align:center;background:#DDD;"><br/><br/><br/>300x250 iframe</div>
+<div id="companion-300x250-html-1" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;float:left;text-align:center;background:#DDD;"><br/><br/><br/>300x250 html (no script)</div>
+<div id="companion-300x250-html-2" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;margin-left:3px;float:left;text-align:center;background:#DDD;"><br/><br/><br/>300x250 html<br/>(script requires ova.js)</div>
+</div>
+
+<p style="clear:both;">
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 4 - Advanced VAST 2 Companion Types
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "bestBitRate": "high",
+                "processCompanionsExternally": true,
+                "millisecondDelayOnCompanionInjection": 200,
+                "companions": [
+                     {
+                        "id":"companion-300x250-static-1",
+                        "width":"300",
+                        "height":"250",
+                        "index": 0
+                     },
+                     {
+                        "id":"companion-300x250-static-2",
+                        "width":"300",
+                        "height":"250",
+                        "index": 1
+                     },
+                     {
+                        "id":"companion-300x250-static-3",
+                        "width":"300",
+                        "height":"250",
+                        "index": 2
+                     },
+                     {
+                        "id":"companion-300x250-iframe",
+                        "width":"300",
+                        "height":"250",
+                        "resourceType": "iframe"
+                     }
+                     {
+                        "id":"companion-300x250-html-1",
+                        "width":"300",
+                        "height":"250",
+                        "index": 4
+                     }
+                     {
+                        "id":"companion-300x250-html-2",
+                        "width":"300",
+                        "height":"250",
+                        "index": 5
+                     }
+                ],
+                "schedule": [
+                     {
+                        "position": "pre-roll",
+                        "server": {
+                           "type": "direct",
+                           "tag": "OVA_COMPANIONS_VAST_2"
+                        }
+                     }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/companions/example05.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/companions/example05.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/companions/example05.html	(revision 222)
@@ -0,0 +1,83 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 5 - Selective Display of Companion Types</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2jquery-1.3.1.js"></script>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-companions-jquery.js"></script>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='companions/ova05.xml';</script>
+<h2>Example 5 - Selective Display of Companion Types</h2>
+<p class="example">
+Selects high quality linear video ad and selectively display a companion based on index/type.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<div style="width:640px;height:270px;top-margin:5px;">
+<div id="companion-300x250-iframe" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;margin-left:3px;float:left;text-align:center;background:#DDD;"><br/><br/><br/>300x250 iframe</div>
+</div>
+
+<p style="clear:both;">
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 5 - Selective Display of Companion Types
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "bestBitRate": "high",
+                "companions": [
+                     { 
+                        "id":"companion-300x250-iframe", 
+                        "width":"300", 
+                        "height":"250", 
+                        "index": 1 
+                     }
+                ],
+                "schedule": [
+                     {
+                        "position": "pre-roll",
+                        "server": {
+                           "type": "direct",
+                           "tag": "http://ad3.liverail.com/?LR_PUBLISHER_ID=1331
+                                   __amp__LR_CAMPAIGN_ID=229__amp__LR_SCHEMA=vast2"
+                        }
+                     }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
+
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/companions/example06.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/companions/example06.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/companions/example06.html	(revision 222)
@@ -0,0 +1,108 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 6 - Delayed sequencing of companion groups</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2jquery-1.3.1.js"></script>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-companions-jquery.js"></script>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='companions/ova06.xml';</script>
+<h2>Example 6 - Delayed sequencing of companion groups</h2>
+<p class="example">
+This example illustrates how to put a timing delay into companions as groups are displayed on a single page.
+Quickly injecting a range of SWF companions that have to startup can load down the browser (IE specifically)
+and cause issues.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<div style="width:640px;height:770px;top-margin:5px;">
+<div id="companion-300x250-static-1" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;float:left;text-align:center;background:#DDD;"><br/><br/><br/>300x250 static</br>(image)</div>
+<div id="companion-300x250-static-2" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;float:left;margin-left:3px;text-align:center;background:#DDD;"><br/><br/><br/>300x250 static</br>(swf)</div>
+<div id="companion-300x250-static-3" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;float:left;text-align:center;background:#DDD;"><br/><br/><br/>300x250 static<br/>(javascript - required ova.js)</div>
+<div id="companion-300x250-iframe" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;margin-left:3px;float:left;text-align:center;background:#DDD;"><br/><br/><br/>300x250 iframe</div>
+<div id="companion-300x250-html-1" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;float:left;text-align:center;background:#DDD;"><br/><br/><br/>300x250 html (no script)</div>
+<div id="companion-300x250-html-2" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;margin-left:3px;float:left;text-align:center;background:#DDD;"><br/><br/><br/>300x250 html<br/>(script requires ova.js)</div>
+</div>
+
+<p style="clear:both;">
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 6 - Delayed sequencing of companion groups
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "bestBitRate": "high",
+                "companions": [
+                     {
+                        "id":"companion-300x250-static-1",
+                        "width":"300",
+                        "height":"250",
+                        "index": 0
+                     },
+                     {
+                        "id":"companion-300x250-static-2",
+                        "width":"300",
+                        "height":"250",
+                        "index": 1
+                     },
+                     {
+                        "id":"companion-300x250-iframe",
+                        "width":"300",
+                        "height":"250",
+                        "resourceType": "iframe"
+                     }
+                     {
+                        "id":"companion-300x250-html-1",
+                        "width":"300",
+                        "height":"250",
+                        "index": 5
+                     }
+                ],
+                "millisecondDelayOnCompanionInjection": 1000,
+                "schedule": [
+                     {
+                        "position": "pre-roll",
+                        "server": {
+                           "type": "direct",
+                           "tag": "OVA_COMPANIONS_VAST_2"
+                        }
+                     }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
+
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/companions/index.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/companions/index.html	(revision 225)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/companions/index.html	(revision 225)
@@ -0,0 +1,30 @@
+<html>
+<head>
+<title>OVA Open Ad Streamer - Companions</title>
+<link rel="stylesheet" type="text/css" href="../../../dist/css/global.css" />
+</head>
+<body>
+<a href="www.openvideoads.org"><img src="../../../dist/images/ova-logo-final.png" border="0"/></a>
+<h2>OVA Open Ad Streamer - Companions</h2>
+<p class="example">
+<p>
+<ol>
+<li><a href="example01.html">VAST 1 native companion display</a></li>
+<li><a href="example02.html">VAST 2 native companion display</a></li>
+<li><a href="example03.html">VAST 1 advanced companion display</a></li>
+<li><a href="example04.html">VAST 2 advanced companion display</a></li>
+<li><a href="example05.html">Selective display of companions</a></li>
+<li><a href="example06.html">Delayed injection of companions</a></li>
+<li>Standalone companion display (VAST2 only)</a></li>
+</ol>
+<p class="example">
+These examples use an OpenX installation that we are running at Open Video Ads. To gain more insight
+into the zone/banner setup that we have in place for the examples, please read this <a href="../openx-config.html">short guide</a>.
+</p>
+<p>
+<a href="../../index.html">Back to main index</a>
+</p>
+<p class="example">
+Copyright 2010 Open Video Ads
+</p>
+</body>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/javascript/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/javascript/example01.html	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/javascript/example01.html	(revision 383)
@@ -0,0 +1,321 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 01 - Process Ad Events with Javascript</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='javascript/ova01.xml';</script>
+<h2>Example 01 - Process Ad Events with Javascript</h2>
+<p class="example">
+This example illustrates the javascript callback API for Ad related events. Events are
+fired by the Open Ad Streamer when a linear ad starts, reaches the first quartile,
+midpoint, 3rd quartile and on completion. Events are also fired when non-linear ads
+are shown, hidden, companions shown and hidden, and the ad notice shown and hidden.
+Finally events are fired when an ad is clicked.
+</p>
+<p class="example">
+To start receiving these events, the "canFireAPICalls" config
+property must be set to "true". It is "true" by default.
+</p>
+<p class="example">
+In this example, a series of DIVs are displayed around the player. As each event fires,
+the corresponding DIV is turned green. If you have Firebug installed, bring up the console.
+Debug output is shown as each event fires so you can see the javascript callback event occur.
+</p>
+<script type="text/javascript">
+function onLinearAdStart() {
+	console.log("OAS EVENT: linear ad begin");
+    document.getElementById('linear-ad-start').style.backgroundColor = "#00CC00";	
+}
+
+function onLinearAdFirstQuartileComplete() {
+	console.log("OAS EVENT: linear ad first quartile");
+    document.getElementById('linear-ad-first-quartile').style.backgroundColor = "#00CC00";	
+}
+
+function onLinearAdMidPointComplete() {
+	console.log("OAS EVENT: linear ad midpoint");
+    document.getElementById('linear-ad-midpoint').style.backgroundColor = "#00CC00";	
+}
+
+function onLinearAdThirdQuartileComplete() {
+	console.log("OAS EVENT: linear ad third quartile");
+    document.getElementById('linear-ad-third-quartile').style.backgroundColor = "#00CC00";	
+}
+
+function onLinearAdFinish() {
+	console.log("OAS EVENT: linear ad finish");
+    document.getElementById('linear-ad-complete').style.backgroundColor = "#00CC00";	
+}
+
+function onLinearAdClick() {
+	console.log("OAS EVENT: linear ad click");
+    document.getElementById('linear-ad-clicked').style.backgroundColor = "#00CC00";	
+}
+
+function onLinearAdSkipped() {
+	console.log("OAS EVENT: linear ad skipped");
+    document.getElementById('linear-ad-skipped').style.backgroundColor = "#00CC00";	
+}
+
+function onNonLinearAdShow() {
+	console.log("OAS EVENT: non linear ad show");
+    document.getElementById('ad-nl-show').style.backgroundColor = "#00CC00";	
+}
+
+function onNonLinearAdClickThrough() {
+	console.log("OAS EVENT: non linear ad click");
+    document.getElementById('ad-nl-click').style.backgroundColor = "#00CC00";	
+}
+
+function onNonLinearAdHide() {
+	console.log("OAS EVENT: non linear ad hide");
+    document.getElementById('ad-nl-hide').style.backgroundColor = "#00CC00";	
+}
+
+function onCompanionAdShow() {
+	console.log("OAS EVENT: companion ad show");
+    document.getElementById('companion-show').style.backgroundColor = "#00CC00";	
+}
+
+function onCompanionAdHide() {
+	console.log("OAS EVENT: companion ad hide");
+    document.getElementById('companion-hide').style.backgroundColor = "#00CC00";	
+}
+
+function onAdNoticeShow() {
+	console.log("OAS EVENT: ad notice show");
+    document.getElementById('ad-notice-show').style.backgroundColor = "#00CC00";	
+}
+
+function onAdNoticeHide() {
+	console.log("OAS EVENT: ad notice hide");
+    document.getElementById('ad-notice-hide').style.backgroundColor = "#00CC00";	
+}
+
+function onRegionCloseClicked() {
+	console.log("OAS EVENT: region close clicked");
+    document.getElementById('region-close-click').style.backgroundColor = "#00CC00";	
+}
+
+function onRegionClicked() {
+	console.log("OAS EVENT: region clicked");
+    document.getElementById('region-click').style.backgroundColor = "#00CC00";	
+}
+
+function onStopAd() {
+	console.log("OAS EVENT: Ad stop");
+    document.getElementById("ad-stop").style.backgroundColor = "#00CC00";	
+}
+
+function onPauseAd() {
+	console.log("OAS EVENT: Ad pause");
+    document.getElementById("ad-pause").style.backgroundColor = "#00CC00";	
+}
+
+function onResumeAd() {
+	console.log("OAS EVENT: Ad resume");
+    document.getElementById("ad-resume").style.backgroundColor = "#00CC00";	
+}
+
+function onMuteAd() {
+	console.log("OAS EVENT: Ad mute");
+    document.getElementById("ad-mute").style.backgroundColor = "#00CC00";	
+}
+
+function onUnmuteAd() {
+	console.log("OAS EVENT: Ad unmute");
+    document.getElementById("ad-unmute").style.backgroundColor = "#00CC00";	
+}
+
+function onFullscreenAd() {
+	console.log("OAS EVENT: Ad fullscreen");
+    document.getElementById("ad-fullscreen").style.backgroundColor = "#00CC00";	
+}
+
+function onFullscreenExitAd() {
+	console.log("OAS EVENT: Ad fullscreen exit");
+    document.getElementById("ad-fullscreen-exit").style.backgroundColor = "#00CC00";	
+}
+</script>
+<div id="container">
+     <div id="player-left-500">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 614, 345, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+        <div id="event-container-614x160">
+            <div id="event-container-150x140">
+	            <div class="event-container-148x68" id="linear-ad-start">
+	               <br/>Linear Start
+	            </div>
+	            <div class="event-container-148x68" id="linear-ad-first-quartile">
+	               <br/>Linear 1st Quartile
+	            </div>
+            </div>
+            <div id="event-container-150x140">
+	            <div class="event-container-148x68" id="linear-ad-midpoint">
+	               <br/>Linear Midpoint
+	            </div>
+	            <div class="event-container-148x68" id="linear-ad-third-quartile">
+	               <br/>Linear 3rd Quartile
+	            </div>
+            </div>
+            <div id="event-container-150x140">
+	            <div class="event-container-148x68" id="linear-ad-complete">
+	               <br/>Linear Complete
+	            </div>
+	            <div class="event-container-148x68" id="linear-ad-clicked">
+	               <br/>Linear Clicked
+	            </div>
+            </div>
+            <div id="event-container-150x140">
+	            <div class="event-container-148x68" id="ad-notice-show">
+	               <br/>Ad Notice Show
+	            </div>
+	            <div class="event-container-148x68" id="ad-notice-hide">
+	               <br/>Ad Notice Hide
+	            </div>
+            </div>        
+        </div>
+     </div>
+     <div id="player-right-500">
+        <div id="event-container-160x505">
+            <div class="event-container-160x68" id="ad-nl-show">
+               <br/>Non Linear Show
+            </div>
+            <div class="event-container-160x68" id="ad-nl-hide">
+               <br/>Non Linear Hide
+            </div>
+            <div class="event-container-160x68" id="ad-nl-click">
+               <br/>Non Linear Click
+            </div>
+            <div class="event-container-160x68" id="companion-show">
+               <br/>Companion Show
+            </div>
+            <div class="event-container-160x68" id="companion-hide">
+               <br/>Companion Hide
+            </div>
+            <div class="event-container-160x68" id="region-close-click">
+               <br/>Region Close Click
+            </div>
+            <div class="event-container-160x68" id="region-click">
+               <br/>Region Click
+            </div>
+            <div class="event-container-160x68" id="linear-ad-skipped">
+               <br/>Linear Ad Skipped
+            </div>
+        </div>
+     </div>
+</div>
+<div id="event-container-614x160">
+    <div id="event-container-150x140">
+        <div class="event-container-148x68" id="ad-stop">
+           <br/>Ad Stop
+        </div>
+        <div class="event-container-148x68" id="ad-pause">
+           <br/>Ad Pause
+        </div>
+    </div>
+    <div id="event-container-150x140">
+        <div class="event-container-148x68" id="ad-resume">
+           <br/>Ad Resume
+        </div>
+        <div class="event-container-148x68" id="ad-replay">
+           <br/>Ad Replay
+        </div>
+    </div>
+    <div id="event-container-150x140">
+        <div class="event-container-148x68" id="ad-mute">
+           <br/>Ad Mute
+        </div>
+        <div class="event-container-148x68" id="ad-unmute">
+           <br/>Ad Unmute
+        </div>
+    </div>
+    <div id="event-container-150x140">
+        <div class="event-container-148x68" id="ad-fullscreen">
+           <br/>Ad Fullscreen Entry
+        </div>
+        <div class="event-container-148x68" id="ad-fullscreen-exit">
+           <br/>Ad Fullscreen Exit
+        </div>
+    </div>        
+</div>
+<br/>
+<p style="clear:both;">
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+// An example ad event Javascript callback
+
+function onLinearAdStart() {
+    console.log("OAS EVENT: linear ad begin");
+    document.getElementById('linear-ad-start').style.backgroundColor = "#00CC00";	
+}
+
+//... the other callback functions go in here
+
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 614, 345, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 01 - Process Ad Events with Javascript
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "canFireAPICalls": true,
+
+            "ads": {
+                 "controls": {
+                     "skipAd": {
+                         "enabled": true
+                     }
+                 },
+                 "servers": [
+                     {
+                          "type": "OpenX",
+                          "apiAddress": "OVA_OPENX_API",
+                     }
+                 ],
+                 "schedule": [
+                      {
+                          "zone": "5",
+                          "position": "pre-roll"
+                      },
+                      {
+                          "zone": "33",
+                          "width": 450,
+                          "height": 50,
+                          "startTime": "00:00:05",
+                          "duration": "15"
+                      }
+                 ],
+            },
+
+            "debug": {
+                 "debugger": "firebug",
+                 "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/javascript/example02.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/javascript/example02.html	(revision 264)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/javascript/example02.html	(revision 264)
@@ -0,0 +1,182 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 2 - Process Show Stream Events with Javascript API</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='javascript/ova02.xml';</script>
+<h2>Example 2 - Process Show Stream Events with Javascript API</h2>
+<p class="example">
+This example illustrates the javascript callback API for show stream related events. Events are
+fired by the Open Ad Streamer when a show stream is started, stopped, complete, resumed,
+muted, unmuted or goes fullscreen</p>
+<p class="example">
+To start receiving these events, the "fireTrackingEvents" show streams config
+property must be set to "true". It is "false" by default. In addition, "canFireAPICalls"
+must also be set to "true" (it is "true" by default).
+</p>
+<p class="example">
+In this example, a series of DIVs are displayed around the player. As each event fires,
+the corresponding DIV is turned green. If you have Firebug installed, bring up the console.
+Debug output is shown as each event fires so you can see the javascript callback event occur.
+</p>
+<br/>
+
+<script type="text/javascript">
+function onShowStart(streamName, streamIndex) {
+	console.log("OAS EVENT: onShowStart('" + streamName + "', " + streamIndex + ")");
+    document.getElementById('show-start').style.backgroundColor = "#00CC00";	
+}
+
+function onShowComplete(streamName, streamIndex) {
+	console.log("OAS EVENT: onShowComplete('" + streamName + "', " + streamIndex + ")");
+    document.getElementById('show-complete').style.backgroundColor = "#00CC00";	
+}
+
+function onShowStopped(streamName, streamIndex) {
+	console.log("OAS EVENT: onShowComplete('" + streamName + "', " + streamIndex + ")");
+    document.getElementById('show-stopped').style.backgroundColor = "#00CC00";	
+}
+
+function onShowPaused(streamName, streamIndex) {
+	console.log("OAS EVENT: onShowPaused('" + streamName + "', " + streamIndex + ")");
+    document.getElementById('show-paused').style.backgroundColor = "#00CC00";	
+}
+
+function onShowResumed(streamName, streamIndex) {
+	console.log("OAS EVENT: onShowResumed('" + streamName + "', " + streamIndex + ")");
+    document.getElementById('show-resumed').style.backgroundColor = "#00CC00";	
+}
+
+function onShowMute(streamName, streamIndex) {
+	console.log("OAS EVENT: onShowMute('" + streamName + "', " + streamIndex + ")");
+    document.getElementById('show-mute').style.backgroundColor = "#00CC00";	
+}
+
+function onShowUnmute(streamName, streamIndex) {
+	console.log("OAS EVENT: onShowUnmute('" + streamName + "', " + streamIndex + ")");
+    document.getElementById('show-unmute').style.backgroundColor = "#00CC00";	
+}
+
+function onShowFullscreen(streamName, streamIndex) {
+	console.log("OAS EVENT: onShowFullscreen('" + streamName + "', " + streamIndex + ")");
+    document.getElementById('show-fullscreen').style.backgroundColor = "#00CC00";	
+}
+</script>
+<div id="container">
+     <div id="player-left-500">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 614, 345));</script>
+        <div id="event-container-614x160">
+            <div id="event-container-150x140">
+	            <div class="event-container-148x68" id="show-start">
+	               <br/>Show Start
+	            </div>
+	            <div class="event-container-148x68" id="show-complete">
+	               <br/>Show Complete
+	            </div>
+            </div>
+            <div id="event-container-150x140">
+	            <div class="event-container-148x68" id="show-paused">
+	               <br/>Show Paused
+	            </div>
+	            <div class="event-container-148x68" id="show-stopped">
+	               <br/>Show Stopped
+	            </div>
+            </div>
+            <div id="event-container-150x140">
+	            <div class="event-container-148x68" id="show-resumed">
+	               <br/>Show Resumed
+	            </div>
+	            <div class="event-container-148x68" id="show-mute">
+	               <br/>Show Muted
+	            </div>
+            </div>
+            <div id="event-container-150x140">
+	            <div class="event-container-148x68" id="show-unmute">
+	               <br/>Show Unmuted
+	            </div>
+	            <div class="event-container-148x68" id="show-fullscreen">
+	               <br/>Show Fullscreen
+	            </div>
+            </div>        
+        </div>
+     </div>
+</div>
+<br/>
+<p style="clear:both;">
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+// An example ad event Javascript callback
+
+function onShowStart(streamName, streamIndex) {
+	console.log("OAS EVENT: onShowStart('" + streamName + "', " + streamIndex + ")");
+    document.getElementById('show-start').style.backgroundColor = "#00CC00";	
+}
+
+//... the other callback functions go in here
+
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 614, 345)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 2 - Process Show Stream Events with Javascript API
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "canFireAPICalls": true,
+
+            "shows": {
+                 "fireTrackingEvents": true,
+                 "streams": [
+                      {
+                          "file":"OVA_HTTP_SHOW_STREAM_1",
+                          "duration":"00:00:30"
+                      }
+                 ]
+            },
+
+            "ads": {
+                 "servers": [
+                     {
+                          "type": "OpenX",
+                          "apiAddress": "OVA_OPENX_API",
+                     }
+                 ],
+                 "schedule": [
+                      {
+                          "zone": "5",
+                          "position": "post-roll"
+                      }
+                 ],
+            },
+
+            "debug": {
+                 "debugger": "firebug",
+                 "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/javascript/index.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/javascript/index.html	(revision 71)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/javascript/index.html	(revision 71)
@@ -0,0 +1,21 @@
+<html>
+<head>
+<title>OVA for JWOVA_JW_VERSION (OVA_JW_RELEASE_NUMBER) - Javascript API</title>
+<link rel="stylesheet" type="text/css" href="../../../dist/css/global.css" />
+</head>
+<body>
+<a href="www.openvideoads.org"><img src="../../../dist/images/ova-logo-final.png" border="0"/></a>
+<h2>OVA for JWOVA_JW_VERSION (OVA_JW_RELEASE_NUMBER) - Javascript API</h2>
+<p class="example">
+</p>
+<ol>
+<li><a href="example01.html">Processing Ad Events with the Javascript API</a></li>
+<li><a href="example02.html">Processing Show Stream Events with the Javascript API</a></li>
+</ol>
+<p>
+<a href="../../index.html">Back to main index</a>
+</p>
+<p class="example">
+Copyright 2010 Open Video Ads
+</p>
+</body>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/doubleclick/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/doubleclick/example01.html	(revision 144)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/doubleclick/example01.html	(revision 144)
@@ -0,0 +1,70 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - A VAST 1.0 pre-roll ad only</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-servers/doubleclick/ova01.xml';</script>
+<h2>Example 1 - A VAST 1.0 pre-roll ad only</h2>
+<p class="example"></p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 - A VAST 1.0 pre-roll ad only
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "deliveryType": "progressive",
+                "servers": [
+                    {
+                      "type": "DART",
+                      "apiAddress": "http://ad.doubleclick.net/pfadx/N270.
+                                     135279.6816128834321/B3442378.2;dcadv=1379578;
+                                     sz=0x0;ord=543789723;dcmt=text/xml"
+                    }
+                ],
+                "schedule": [
+                    {
+                      "zone": "3402677",
+                      "position": "pre-roll"
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/doubleclick/example02.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/doubleclick/example02.html	(revision 144)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/doubleclick/example02.html	(revision 144)
@@ -0,0 +1,97 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 2 - A bit rate selected VAST 2.0 pre-roll ad only</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-servers/doubleclick/ova02.xml';</script>
+<h2>Example 2 - A bit rate selected VAST 2.0 pre-roll ad only</h2>
+<p class="example">
+The following example illustrates the delivery of a "progressive" ad from DART using VAST 2.0.
+The ad server URL is specified using the "tag" configuration property against the ad slot.
+Best sizing and bitrate options are also (optionally) provided to help select the right media file.
+If they are not provided, the first media file option is chosen.
+Two companion slots have also been provided - these will be filled if the companions are available
+in the VAST response.
+</p>
+<div id="container">
+  <div id="player_row" style="height:260px;">
+    <div id="player_left" style="width:427px;height:254px;padding-top:5px;">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 427, 254, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+    </div>
+    <div id="player_right" style="height:100%;">
+	  <div id="companion-300x250">
+	      A COMPANION GOES HERE
+	  </div>
+    </div>
+  </div>
+  <div id="companion-728x90">
+	ANOTHER COMPANION GOES HERE
+  </div>
+</div>
+<p style="clear:both;">
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 427, 254, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 2 - A bit rate selected VAST 2.0 pre-roll ad only
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "deliveryType":"progressive",
+                "bestWidth": 420,
+                "bestHeight": 250,
+                "bestBitrate": 600,
+                "displayCompanions": true,
+                "companions": [
+                    { "id":"companion-728x90", "width":"728", "height":"90" },
+                    { "id":"companion-300x250", "width":"300", "height":"250" }
+                ],
+                "notice": { "show": false },
+                "schedule": [
+                    {
+                       "position": "pre-roll",
+                       "server": {
+                          "type": "DART",
+                          "tag": "http://ad.doubleclick.net/pfadx/N270.126913.6102203221521/
+                                  B3876671.20;dcadv=2215309;sz=0x0;pc=[TPAS_ID];
+                                  ord=__timestamp__;dcmt=text/xml"
+                       }
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/doubleclick/example03.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/doubleclick/example03.html	(revision 144)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/doubleclick/example03.html	(revision 144)
@@ -0,0 +1,71 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 3 - A VAST 2.0 pre-roll ad only</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-servers/doubleclick/ova03.xml';</script>
+<h2>Example 3 - A VAST 2.0 pre-roll ad only</h2>
+<p class="example"></p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 3 - A VAST 2.0 pre-roll ad only
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "deliveryType": "progressive",
+                "servers": [
+                    {
+                      "type": "DART",
+                      "apiAddress": "http://ad.doubleclick.net/pfadx/
+                                     N270.126913.6102203221521/B3876671.21;
+                                     dcadv=2215309;sz=0x0;ord=%5btimestamp%5d;
+                                     dcmt=text/xml"
+                    }
+                ],
+                "schedule": [
+                    {
+                      "zone": "3402677",
+                      "position": "pre-roll"
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/spotxchange/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/spotxchange/example01.html	(revision 376)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/spotxchange/example01.html	(revision 376)
@@ -0,0 +1,62 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - VAST 2 Linear</title>
+</head>
+<body>
+<h2>Example 1 - VAST 2 Linear</h2>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG="ad-servers/spotxchange/ova01.xml";</script>
+<div style="width:754px;height:255px;">
+	<div class="example" style="width:444px;height:252px;float:left">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 444, 252, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+	</div>
+<!--	
+	<div id="companion-1" style="width:300px;height:250px;border:1px solid #000;float:right;"></div>
+-->
+</div>
+<div class="codebox" style="clear:both; margin-top:10px;">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 444, 252, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p style="clear:both;">
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 - VAST 2 Linear
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "ads": {
+              "pauseOnClickThrough": true,
+              "schedule": [
+                  {
+                     "position": "pre-roll",
+                     "server": {
+                         "type": "direct",
+                         "tag": "tbd"
+                     }
+                  }
+              ]
+          }
+      }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/mov.ad/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/mov.ad/example01.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/mov.ad/example01.html	(revision 222)
@@ -0,0 +1,64 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - A VAST 1.0 pre-roll ad only</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-servers/mov.ad/ova01.xml';</script>
+<h2>Example 1 - A VAST 1.0 pre-roll ad only</h2>
+<p class="example"></p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 - A VAST 1.0 pre-roll ad only
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "schedule": [
+                    {
+                       "position": "pre-roll",
+                       "server": {
+                           "type": "direct",
+      	                   "tag": "http://v.movad.de/stream.ad?cid=101226"
+                       }
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/mov.ad/example02.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/mov.ad/example02.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/mov.ad/example02.html	(revision 222)
@@ -0,0 +1,74 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 2 - VAST 2.0 Linear (Pre-Roll)</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-servers/mov.ad/ova02.xml';</script>
+<h2>Example 2 - VAST 2.0 Linear (Pre-Roll)</h2>
+<p class="example"><p>
+<div>
+<div style="width:750px;height:255px;">
+    <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 444, 252, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+	<div id="companion-300x250" style="width:300px;height:250px;border:1px solid #000;float:right;margin-top:0px;">300x250 Companion</div>
+</div>
+
+<p class="example"></p>
+<p style="clear:both;">
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 444, 252, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 2 - VAST 2.0 Linear (Pre-Roll)
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "displayCompanions": true,
+                "companions": [
+	                  { "id":"companion-300x250", "width":"300", "height":"250" }
+                ],
+                "schedule": [
+                    {
+                       "position": "pre-roll",
+                       "server": {
+                           "type": "direct",
+      	                   "tag": "http://v.movad.de/stream.ad?cid=101224"
+                       }
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/adtech/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/adtech/example01.html	(revision 144)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/adtech/example01.html	(revision 144)
@@ -0,0 +1,99 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - Integrating an AdTech Ad Server - Minimal Configuration</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-servers/adtech/ova01.xml';</script>
+<h2>Example 1 - Integrating an AdTech Ad Server - Minimal Configuration</h2>
+<p class="example">
+This example illustrates pre and post roll ads delivered from an AdTech Ad Server along
+with an overlay ad and companions for both ad types. The configuration demonstrates how to
+define the AdTech Ad Server VAST request using custom properties and how those properties
+may be declared at the "general" or "ad slot" specific levels.
+</p>
+<div id="container">
+  <div id="player_row">
+     <div id="player-left-619">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 514, 345, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+	    <div id="container-614x280">
+		    <div id="companion-300x250">
+		       A COMPANION ADVERTISEMENT<br/>(300x250)<br/>WILL APPEAR IN HERE
+	   	 	</div>
+	   	 	<div id="filler-310x254">
+	   	 	   FILLER SPACE
+	   	 	</div>
+	   	</div>
+   	 </div>
+     <div id="player-right-600">
+        <div id="companion-160x600">
+          A COMPANION ADVERTISEMENT<br/>(160x600)<br/> WILL APPEAR IN HERE
+        </div>
+     </div>
+  </div>
+</div><p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 514, 345, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 - Integrating an AdTech Ad Server - Minimal Configuration
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "ads": {
+              "displayCompanions": true,
+              "restoreCompanions": false,
+              "companions": [
+                   { "id":"companion-160x600", "width":"160", "height":"600", "resourceType": "html" },
+                   { "id":"companion-300x250", "width":"300", "height":"250", "resourceType": "html" }
+              ],
+              "servers": [
+                   {
+                      "type": "AdTech",
+                      "apiAddress": "http://adserver.adtech.de/?adrawdata/3.0/990.1",
+                   }
+              ],
+              "schedule": [
+                   {
+                      "zone": "2366662/0/1725",
+                      "position": "pre-roll"
+                   },
+                   {
+                     "zone": "2366662/0/1725",
+                     "position": "post-roll"
+                   }
+              ]
+            },
+
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/adtech/example02.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/adtech/example02.html	(revision 88)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/adtech/example02.html	(revision 88)
@@ -0,0 +1,70 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 2 - Direct URL based Ad Server Request</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-servers/adtech/ova02.xml';</script>
+<h2>Example 2 - Direct URL based Ad Server Request</h2>
+<p class="example">
+This example illustrates how to configure a direct URL based ad server request in the ad
+schedule. In this case it's a call to an AdTech ad server.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 2 - Direct URL based Ad Server Request
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "schedule": [
+                    {
+                       "position": "pre-roll",
+                       "server": {
+                           "type": "direct",
+                           "apiAddress": "http://adserver.adtech.de/?adrawdata/3.0/990.1/
+                                          2366662/0/1725/noperf=1;cc=2;header=yes;
+                                          alias=myalias;cookie=yes;adct=204;key=key1+key2;
+                                          grp=[group];misc=__random-number__"
+                       }
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/adtech/example03.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/adtech/example03.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/adtech/example03.html	(revision 222)
@@ -0,0 +1,120 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 3 - Integrating an AdTech Ad Server - Overriding the Request Template</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-servers/adtech/ova03.xml';</script>
+<h2>Example 3 - Integrating an AdTech Ad Server - Overriding the Request Template</h2>
+<p class="example">
+This example illustrates pre and post roll ads delivered from an AdTech Ad Server along
+with an overlay ad and companions for both ad types. The configuration demonstrates how to
+define the AdTech Ad Server VAST request using custom properties and how those properties
+may be declared at the "general" or "ad slot" specific levels.
+</p>
+<div id="container">
+  <div id="player_row">
+     <div id="player-left-619">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 514, 345, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+	    <div id="container-614x280">
+		    <div id="companion-300x250">
+		       A COMPANION ADVERTISEMENT<br/>(300x250)<br/>WILL APPEAR IN HERE
+	   	 	</div>
+	   	 	<div id="filler-310x254">
+	   	 	   FILLER SPACE
+	   	 	</div>
+	   	</div>
+   	 </div>
+     <div id="player-right-600">
+        <div id="companion-160x600">
+          A COMPANION ADVERTISEMENT<br/>(160x600)<br/> WILL APPEAR IN HERE
+        </div>
+     </div>
+  </div>
+</div><p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 514, 345, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 3 - Integrating an AdTech Ad Server - Overriding the Request Template
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "ads": {
+              "displayCompanions": true,
+              "restoreCompanions": false,
+              "companions": [
+                   { "id":"companion-160x600", "width":"160", "height":"600" },
+                   { "id":"companion-300x250", "width":"300", "height":"250" }
+              ],
+              "servers": [
+                   {
+                      "type": "AdTech",
+                      "apiAddress": "http://adserver.adtech.de/?adrawdata/3.0/990.1",
+                      "requestTemplate": "__api-address__/__zone__/__nondynamic__;
+                                          alias=__alias____aliaspostfix__;key=__key__;
+                                          __key-value__;__cookie-name__=__cookie-value__;
+                                          grp=__group__;misc=__random-number__",
+                      "oneAdPerRequest": true,
+                      "customProperties": {
+                           // override the server custom properties here
+                      }
+                   }
+              ],
+              "schedule": [
+                   {
+                      "zone": "2366662/0/1725", // placement/page-id/size-id
+                      "position": "pre-roll"
+                   },
+                   {
+                     "zone": "2366662/0/1725",
+                     "position": "post-roll"
+                     "server": {
+                         "customProperties": {
+                            "nondynamic": "noperf=1;cc=2;header=yes;cookie=yes;adct=204",
+                            "alias": "",
+                            "aliaspostfix": "", 
+                            "key": "key1+key2", 
+                            "key-value": "", 
+                            "cookie-name": "", 
+                            "cookie-value": "", 
+                            "group": "[group]" 
+                         }
+                     }
+                  }
+              ]
+            },
+
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
+
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/openx/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/openx/example01.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/openx/example01.html	(revision 222)
@@ -0,0 +1,67 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - A VAST 1.0 pre-roll ad only</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-servers/openx/ova01.xml';</script>
+<h2>Example 1 - A VAST 1.0 pre-roll ad only</h2>
+<p class="example"></p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 - A VAST 1.0 pre-roll ad only
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "servers": [
+                    {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API"
+                    }
+                ],
+                "schedule": [
+                    {
+                      "zone": "5",
+                      "position": "pre-roll"
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/openx/example02.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/openx/example02.html	(revision 144)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/openx/example02.html	(revision 144)
@@ -0,0 +1,88 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 2 - An overlay ad</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-servers/openx/ova02.xml';</script>
+<h2>Example 2 - An overlay ad</h2>
+<p class="example">
+5 seconds into the show stream an overlay appears for 15 seconds - click on the overlay to start 
+up a video ad. Once the video ad has played, the show stream resumes at the point at which 
+the overlay was clicked.
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 2 - An overlay ad
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "overlays": {
+              "regions": [
+                 {
+                    "id": "bottom",
+                    "verticalAlign": "bottom",
+                    "horizontalAlign": "center",
+                    "backgroundColor": "#000000",
+                    "padding": "-10 -10 -10 -10",
+                    "width": 450,
+                    "height": 50
+                 }
+              ]
+            },
+
+            "ads": {
+              "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+              ],
+              "schedule": [
+                  {
+                      "zone": "33",
+                      "position": "bottom",
+                      "width": 450,
+                      "height": 50,
+                      "startTime": "00:00:05",
+                      "duration": "15"
+                  }
+              ],
+            },
+
+            "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/adify/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/adify/example01.html	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/adify/example01.html	(revision 383)
@@ -0,0 +1,83 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - A VAST 2.0 pre-roll ad only</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-servers/adify/ova01.xml';</script>
+<h2>Example 1 - A VAST 2.0 pre-roll ad only</h2>
+<p class="example">
+This example illustrates the delivery of a pre-roll linear ad and an accompanying companion from a 
+call made to Adify.
+</p>
+<div id="container" style="height:260px;">
+  <div id="player_row" style="height:260px;">
+     <div id="player_left" style="width:320px;height:254px;">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 320, 254));</script>
+     </div>
+     <div id="player_right" style="height:250px;">
+        <div id="companion" style="width:300px;height:250px;">
+           COMPANION AD APPEARS HERE
+        </div>
+     </div>
+  </div>
+</div>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 320, 254)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 - A VAST 2.0 pre-roll ad only
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "notice": { "textStyle": "smalltext" },
+                "displayCompanions": true,
+	            "companions": [
+                    { "id":"companion", "width":"300", "height":"250" }
+                ],
+                "schedule": [
+                    {
+                       "position": "pre-roll",
+                       "server": {
+                          "type": "Adify",
+                          "tag": "http://ad.afy11.net/ad?enc=4__amp__asId=1000004375407__amp__sf=0__amp__ct=256"
+                       }
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/adify/example04.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/adify/example04.html	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/adify/example04.html	(revision 383)
@@ -0,0 +1,86 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 4 - Using the 'out of the box' configuration options</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-servers/adify/ova04.xml';</script>
+<h2>Example 4 - Using the 'out of the box' configuration options</h2>
+<p class="example">
+This example illustrates how to use the 'out of the box' configuration options to make calls to the
+Adify ad server.
+</p>
+<div id="container" style="height:260px;">
+  <div id="player_row" style="height:260px;">
+     <div id="player_left" style="width:320px;height:254px;">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 320, 254, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+     </div>
+     <div id="player_right" style="height:250px;">
+        <div id="companion" style="width:300px;height:250px;">
+           COMPANION AD APPEARS HERE
+        </div>
+     </div>
+  </div>
+</div>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 320, 254, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 4 - Using the 'out of the box' configuration options
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "notice": { "textStyle": "smalltext" },
+                "displayCompanions": true,
+	            "companions": [
+                    { "id":"companion", "width":"300", "height":"250" }
+                ],
+                "servers": [
+                    {
+                      "type": "Adify",
+                      "apiAddress": "http://ad.afy11.net"
+                    }
+                ],
+                "schedule": [
+                    {
+                        "zone": "1000004375407",
+                        "position": "pre-roll"
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/adify/example02.html.no-ad-tag
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/adify/example02.html.no-ad-tag	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/adify/example02.html.no-ad-tag	(revision 383)
@@ -0,0 +1,86 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 2 - A VAST 2.0 overlay ad</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-servers/adify/ova02.xml';</script>
+<h2>Example 2 - A VAST 2.0 overlay ad</h2>
+<p class="example">
+This example illustrates the delivery of a non-linear (overlay) ad and companion over a show stream.
+The overlay starts 5 seconds into the stream, running for 10 seconds.
+</p>
+<div id="container" style="height:260px;">
+  <div id="player_row" style="height:260px;">
+     <div id="player_left" style="width:320px;height:254px;">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 320, 254, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+     </div>
+     <div id="player_right" style="height:250px;">
+        <div id="companion" style="width:300px;height:250px;">
+           COMPANION AD APPEARS HERE
+        </div>
+     </div>
+  </div>
+</div>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 320, 254, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 2 - A VAST 2.0 overlay ad
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "notice": { "textStyle": "smalltext" },
+                "displayCompanions": true,
+                "companions": [
+                    { "id":"companion", "width":"300", "height":"250" }
+                ],
+                "schedule": [
+                     {
+                       "startTime": "00:00:05",
+                       "duration": 10,
+                       "width": 300,
+                       "height": 50,
+                       "server": {
+                          "type": "Adify",
+                          "tag": "http://ad.afy11.net/ad?enc=4__amp__asId=1000002629107__amp__sf=0__amp__ct=256"
+                       }
+                     }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/adify/example03.html.no-ad-tag
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/adify/example03.html.no-ad-tag	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/adify/example03.html.no-ad-tag	(revision 383)
@@ -0,0 +1,93 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 3 - A VAST 2.0 pre-roll and overlay ad</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-servers/adify/ova03.xml';</script>
+<h2>Example 3 - A VAST 2.0 pre-roll and overlay ad</h2>
+<p class="example">
+This example illustrates the delivery of a pre-roll followed by a non-linear (overlay) ad and 
+companion over a show stream. The overlay starts 5 seconds into the stream, running for 10 seconds.
+</p>
+<div id="container" style="height:260px;">
+  <div id="player_row" style="height:260px;">
+     <div id="player_left" style="width:320px;height:254px;">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 320, 254, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+     </div>
+     <div id="player_right" style="height:250px;">
+        <div id="companion" style="width:300px;height:250px;">
+           COMPANION AD APPEARS HERE
+        </div>
+     </div>
+  </div>
+</div>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 320, 254, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 3 - A VAST 2.0 pre-roll and overlay ad
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "notice": { "textStyle": "smalltext" },
+                "displayCompanions": true,
+                "companions": [
+                    { "id":"companion", "width":"300", "height":"250" }
+                ],
+                "schedule": [
+                    {
+                        "position": "pre-roll",
+                        "server": {
+                           "type": "Adify",
+                           "tag": "http://ad.afy11.net/ad?enc=4__amp__asId=1000002629107__amp__sf=0__amp__ct=256"
+                        }
+                    },
+                    {
+                        "startTime": "00:00:05",
+                        "duration": 10,
+                        "width": 300,
+                        "height": 50,
+                        "server": {
+                           "type": "Adify",
+                           "tag": "http://ad.afy11.net/ad?enc=4__amp__asId=1000002629107__amp__sf=0__amp__ct=256"
+                        }
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/adap.tv/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/adap.tv/example01.html	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/adap.tv/example01.html	(revision 383)
@@ -0,0 +1,83 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - A VAST 2.0 pre-roll ad only</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-servers/adap.tv/ova01.xml';</script>
+<h2>Example 1 - A VAST 2.0 pre-roll ad only</h2>
+<p class="example">
+This example illustrates the delivery of a pre-roll linear ad and an accompanying companion from a 
+call made to Adify.
+</p>
+<div id="container" style="height:260px;">
+  <div id="player_row" style="height:260px;">
+     <div id="player_left" style="width:320px;height:254px;">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 320, 254));</script>
+     </div>
+     <div id="player_right" style="height:250px;">
+        <div id="companion" style="width:300px;height:250px;">
+           COMPANION AD APPEARS HERE
+        </div>
+     </div>
+  </div>
+</div>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 320, 254)));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 - A VAST 2.0 pre-roll ad only
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "notice": { "textStyle": "smalltext" },
+                "displayCompanions": true,
+	            "companions": [
+                    { "id":"companion", "width":"300", "height":"250" }
+                ],
+                "schedule": [
+                    {
+                       "position": "pre-roll",
+                       "server": {
+                          "type": "direct",
+                          "tag": "http://u-ads.adap.tv/a/h/fy8HuCqcy0y5CmMetFZUPVRg8BYfUdag9T3gJOflx7IRS2LqU9Qh0Q==?cb=15783059__amp__spot=preroll__amp__eov=eov__amp__artEid=vast_2_0__amp__ocb=9035__amp__rid=test__amp__pageUrl=http%3A%2F%2Fwww.adap.tv__amp__gubed"
+                       }
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/smartclip/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/smartclip/example01.html	(revision 376)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/smartclip/example01.html	(revision 376)
@@ -0,0 +1,63 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - VAST 1 Linear</title>
+</head>
+<body>
+<h2>Example 1 - VAST 1 Linear</h2>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG="ad-servers/smartclip/ova01.xml";</script>
+<div style="width:754px;height:255px;">
+	<div class="example" style="width:444px;height:252px;float:left">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 444, 252, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+	</div>
+<!--	
+	<div id="companion-1" style="width:300px;height:250px;border:1px solid #000;float:right;"></div>
+-->
+</div>
+<div class="codebox" style="clear:both; margin-top:10px;">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 444, 252, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p style="clear:both;">
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 - VAST 1 Linear
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "ads": {
+              "pauseOnClickThrough": true,
+              "schedule": [
+                  {
+                     "position": "pre-roll",
+                     "server": {
+                         "type": "direct",
+                         "tag": "http://ad.de.doubleclick.net/ad/testadvertiser.smartclip/
+                                 vast1;sz=400x320;dcmt=text/xml;ord=__random-number__?"
+                     }
+                  }
+              ]
+          }
+      }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/lightningcast/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/lightningcast/example01.html	(revision 253)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/lightningcast/example01.html	(revision 253)
@@ -0,0 +1,82 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - A VAST 1.0 pre-roll ad only</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-servers/lightningcast/ova01.xml';</script>
+<h2>Example 1 - A VAST 1.0 pre-roll ad only</h2>
+<p class="example"></p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 - A VAST 1.0 pre-roll ad only
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "notice": { "textStyle": "smalltext" },
+                "displayCompanions": true,
+                "companions": [
+                    { "id":"companion", "width":"300", "height":"250" }
+                ],
+                "servers": [
+                    {
+                       "type": "Lightningcast",
+                       "tag": "http://web.lightningcast.net/servlets/getPlaylist?ver=2.0__amp__
+                               nwid=106414__amp__
+                               content=http%3A//streaming.openvideoads.org/shows/the-black-hole.mp4
+                               __amp__level=Test_Implent%3ATest_400_300__amp__
+                               format=Video-Flash-400-400x300__amp__
+                               uid=ABC__amp__
+                               regions=Standardbanner__amp__
+                               crlen=t__amp_
+                               _resp=VAST"
+                    }
+                ],
+                "schedule": [
+                    {
+                       "position": "pre-roll"
+                    },
+                    {
+                       "position": "post-roll"
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/example01.html	(revision 229)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/example01.html	(revision 229)
@@ -0,0 +1,109 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - Mixing Ad Servers</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-servers/ova01.xml';</script>
+<h2>Example 1 - Mixing Ad Servers</h2>
+<p class="example">
+This example illustrates how to mix and match ad servers. The pre-roll is to OpenX, while the 
+post-roll request is to AdTech. The post-roll uses the "default" ad server which also
+happens to be AdTech as per the "servers" config. 
+</p>
+
+<div id="container">
+  <div id="player_row">
+     <div id="player-left-619">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 514, 345, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+	    <div id="container-614x280">
+		    <div id="companion-300x250">
+		       A COMPANION ADVERTISEMENT<br/>(300x250)<br/>WILL APPEAR IN HERE
+	   	 	</div>
+	   	 	<div id="filler-310x254">
+	   	 	   FILLER SPACE
+	   	 	</div>
+	   	</div>
+   	 </div>
+     <div id="player-right-600">
+        <div id="companion-160x600">
+          A COMPANION ADVERTISEMENT<br/>(160x600)<br/> WILL APPEAR IN HERE
+        </div>
+     </div>
+  </div>
+</div>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 514, 345, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 - Mixing Ad Servers
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "ads": {
+                "servers": [
+                   {
+                       "id": "AdTech",
+                       "type": "AdTech",
+                       "defaultAdServer": true,
+                       "apiAddress": "http://adserver.adtech.de/?adrawdata/3.0/990.1"
+                   }
+                ],
+                "displayCompanions": true,
+                "restoreCompanions": false,
+                "companions": [
+                   { "id":"companion-160x600", "width":"160", "height":"600" },
+                   { "id":"companion-300x250", "width":"300", "height":"250" }
+                ],
+                "schedule": [
+                   {
+                       "zone": "5",
+                       "position": "pre-roll",
+                       "server": {
+                           "type": "OpenX",
+                           "apiAddress": "OVA_OPENX_API",
+                           "customProperties" : {
+  	                          "target": "category=food"
+                           }
+                       }
+                   },
+                   {
+                       "zone": "2366662/0/1725",
+                       "position": "post-roll"
+                   }
+                ]
+            },
+
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/example02.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/example02.html	(revision 341)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/example02.html	(revision 341)
@@ -0,0 +1,130 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 2 - Ad Server Failover</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-servers/ova02.xml';</script>
+<h2>Example 2- Ad Server Failover</h2>
+<p class="example">
+This example illustrates how to failover from one ad server to another if the previous ad server does not return a result.
+</p>
+
+<div id="container">
+  <div id="player_row">
+     <div id="player-left-619">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 2, 514, 345, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+	    <div id="container-614x280">
+		    <div id="companion-300x250">
+		       A COMPANION ADVERTISEMENT<br/>(300x250)<br/>WILL APPEAR IN HERE
+	   	 	</div>
+	   	 	<div id="filler-310x254">
+	   	 	   FILLER SPACE
+	   	 	</div>
+	   	</div>
+   	 </div>
+     <div id="player-right-600">
+        <div id="companion-160x600">
+          A COMPANION ADVERTISEMENT<br/>(160x600)<br/> WILL APPEAR IN HERE
+        </div>
+     </div>
+  </div>
+</div>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 2, 514, 345, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 2 - Ad Server Failover
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "ads": {
+                "displayCompanions": true,
+                "restoreCompanions": false,
+                "companions": [
+                   { "id":"companion-160x600", "width":"160", "height":"600" },
+                   { "id":"companion-300x250", "width":"300", "height":"250" }
+                ],
+                "schedule": [
+                   {
+                       "zone": "56",
+                       "position": "pre-roll",
+                       "server": {
+                           "type": "OpenX",
+                           "apiAddress": "OVA_OPENX_API",
+                           "oneAdPerRequest": true,
+                           "customProperties" : {
+                               "target": "category=food" 
+                           },
+                           "failoverServers": [
+                               {
+                                   "type": "AdTech",
+                                   "tag": "http://xxxadserver.adtech.de/?adrawdata/3.0/990.1/2366662/
+                                           0/1725/noperf=1;cc=2;header=yes;cookie=yes;adct=204;alias=;
+                                           key=key1+key2;;=;grp=[group];misc=__random-number__"
+                               },
+                               {
+                                   "type": "AdTech",
+                                   "tag": "http://adserver.adtech.de/?adrawdata/3.0/990.1/2366662/0/
+                                           1725/noperf=1;cc=2;header=yes;cookie=yes;adct=204;alias=;
+                                           key=key1+key2;;=;grp=[group];misc=__random-number__"
+                              }			                   
+                           ]
+                       }
+                   },
+                   {
+                       "zone": "5",
+                       "position": "post-roll",
+                       "server": {
+                           "type": "OpenX",
+                           "apiAddress": "OVA_OPENX_API",
+                           "oneAdPerRequest": true,
+                           "customProperties" : {
+                               "target": "category=food" 
+                           },
+                           "failoverServers": [
+                               {
+                                  "type": "AdTech",
+                                  "tag": "http://adserver.adtech.de/?adrawdata/3.0/990.1/2366662/
+                                          0/1725/noperf=1;cc=2;header=yes;cookie=yes;adct=204;
+                                          alias=;key=key1+key2;;=;grp=[group];misc=__random-number__"
+                               }
+                           ]
+                       }
+                   }
+                ]
+            },
+
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/eyewonder/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/eyewonder/example01.html	(revision 383)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/eyewonder/example01.html	(revision 383)
@@ -0,0 +1,62 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - Linear VPAID (Pre-roll)</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-servers/eyewonder/ova01.xml';</script>
+<h2>Example 1 - Linear VPAID (Pre-roll)</h2>
+<p class="example">
+</p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 - Linear VPAID (Pre-roll)
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+          "debug": {
+              "debugger": "firebug",
+              "levels": "OVA_DEBUG"
+          },
+
+          "ads": {
+             "schedule": [
+                {
+                   "position": "pre-roll",
+                   "tag": "OVA_VPAID_LINEAR_1_VAST"
+                }
+             ]
+          }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/scanscout/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/scanscout/example01.html	(revision 242)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/scanscout/example01.html	(revision 242)
@@ -0,0 +1,68 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - A VAST 1.0 pre-roll ad only</title>
+</head>
+<body>
+<h2>Example 1 - A VAST 1.0 pre-roll ad only</h2>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG="ad-servers/scanscout/ova01.xml";</script>
+<div style="width:754px;height:255px;">
+	<div class="example" style="width:444px;height:252px;float:left">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 444, 252, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+	</div>
+	<div id="companion-1" style="width:300px;height:250px;border:1px solid #000;float:right;"></div>
+</div>
+<div class="codebox" style="clear:both; margin-top:10px;">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 444, 252, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p style="clear:both;">
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 - A VAST 1.0 pre-roll ad only
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "companions": [
+                	{ "id": "companion-1", "width": 300, "height": 250 }
+                ],
+                "schedule": [
+                    {
+                       "position": "pre-roll",
+                        "server": {
+                           "type": "direct",
+                           "tag": "OVA_DIST_TEMPLATES_3ad-servers/scanscout/example01.xml",
+                       }
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/scanscout/example04.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/scanscout/example04.html	(revision 229)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/scanscout/example04.html	(revision 229)
@@ -0,0 +1,72 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 4 VAST 2.0 Regular Linear</title>
+</head>
+<body>
+<h2>Example 4 - VAST 2.0 Regular Linear</h2>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-servers/scanscout/ova04.xml';</script>
+<div style="width:754px;height:255px;">
+	<div class="example" style="width:444px;height:252px;float:left">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 444, 252, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+	</div>
+	<div id="companion-1" style="width:300px;height:250px;border:1px solid #000;float:right;"></div>
+</div>
+<div class="codebox" style="clear:both; margin-top:10px;">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 444, 252, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p style="clear:both;">
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 4 - A VAST 2.0 pre-roll ad only
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "companions": [
+                	{ 
+                	   "id": "companion-1", 
+                	   "width": 300, 
+                	   "height": 250 
+                	}
+                ],
+                "schedule": [
+                    {
+                       "position": "pre-roll",
+                       "server": {
+                          "type": "direct",
+                          "tag": "OVA_DIST_TEMPLATES_3ad-servers/scanscout/example04.xml",
+                       }
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/microsoft/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/microsoft/example01.html	(revision 222)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/microsoft/example01.html	(revision 222)
@@ -0,0 +1,97 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - A VAST 1.0 pre-roll ad only</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-servers/microsoft/ova01.xml';</script>
+<h2>Example 1 - A VAST 1.0 pre-roll ad only</h2>
+<p class="example">
+Linear pre-roll, selected as highest quality, limited to FLV format. The companions are selected based on their type as multiple types/size are returned in the VAST response.
+<p>
+<div>
+<div style="width:750px;height:255px;">
+	<div class="example" style="width:444px;height:252px;float:left">
+        <script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 444, 252, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+	</div>
+	<div id="companion-300x250" style="width:300px;height:250px;border:1px solid #000;float:right;margin-top:0px;">300x250 Companion</div>
+</div>
+<div id="companion-300x60-1" style="width:300px;height:60px;border:1px solid #000;margin-bottom:3px;float:left;margin-left:60px;">300x60 Companion</div>
+<div id="companion-300x60-2" style="width:300px;height:60px;border:1px solid #000;margin-bottom:3px;float:left;margin-left:10px;">300x60 Companion</div>
+
+<p style="clear:both;">
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 444, 252, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 - A VAST 2.0 pre-roll ad only
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "bestBitrate": "high",
+                "deliveryType": "flv",
+                "companions": [
+	                  { 
+	                     "id":"companion-300x250", 
+	                     "width":"300", 
+	                     "height":"250" 
+	                  },
+	                  { 
+	                     "id":"companion-300x60-1", 
+	                     "width":"300", 
+	                     "height":"60", 
+	                     "resourceType": "static" 
+	                  },
+	                  { 
+	                     "id":"companion-300x60-2", 
+	                     "width":"300", 
+	                     "height":"60", 
+	                     "resourceType": "iframe" 
+	                  },
+                ],
+                "schedule": [
+                    {
+                       "position": "pre-roll",
+                       "server": {
+                           "type": "direct",
+      	                   "tag": "http://api.atdmt.com/adserv.api/viewad/sa=115571748;
+      	                           sf=VAST20_PreRoll_XML_alpha;pf=FLV;br=500;strm=0"
+                       }
+                    }
+                ]
+            }       
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/liverail/example01.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/liverail/example01.html	(revision 253)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/liverail/example01.html	(revision 253)
@@ -0,0 +1,114 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 1 - VAST 2 Linear with Companions</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-servers/liverail/ova01.xml';</script>
+<h2>Example 1 - VAST 2 Linear with Companions</h2>
+<p class="example">
+Selects high quality linear video ad and displays a range of companion sizes and types to go with that linear ad.
+The companion sizes are 300x60, 728x90 and 300x250 pixels. Each with a static (image) and iFrame resource type.
+Companion selection uses the "type" and "index" flags.
+<p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<div id="companion-300x60-static" style="width:300px;height:60px;border:1px solid #000;margin-bottom:3px;">300x60 static</div>
+<div id="companion-300x60-iframe" style="width:300px;height:60px;border:1px solid #000;margin-bottom:3px;">300x60 iframe</div>
+<div id="companion-728x90-static" style="width:728px;height:90px;border:1px solid #000;margin-bottom:3px;">728x90 static</div>
+<div id="companion-728x90-iframe" style="width:728px;height:90px;border:1px solid #000;margin-bottom:3px;">728x90 iframe</div>
+<div id="companion-300x250-static" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;">300x250 static</div>
+<div id="companion-300x250-iframe" style="width:300px;height:250px;border:1px solid #000;margin-bottom:3px;">300x250 iframe</div>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap !important; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
+<code>
+<script type="text/javascript">document.write(htmlEncode(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video")));</script>
+</code>
+</pre>
+</div>
+<p>
+"<script type="text/javascript">document.write(OVA_CONFIG)</script>" is defined as:
+</p>
+<div class="codebox">
+<pre>
+<code class="xml">
+&lt;config&gt;
+   &lt;ova.title&gt;
+       Example 1 - A VAST 1.0 pre-roll ad only
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            },
+            
+            "ads": {
+                "pauseOnClickThrough": true,
+                "bestBitrate": "high",
+                "companions": [
+	                  { 
+	                     "id":"companion-300x60-static", 
+	                     "width":"300", 
+	                     "height":"60", 
+	                     "resourceType": "static" 
+	                  },
+	                  {  
+	                     "id":"companion-300x60-iframe", 
+	                     "width":"300", 
+	                     "height":"60", 
+	                     "resourceType": "iframe" 
+	                  },
+	                  { 
+	                     "id":"companion-728x90-static", 
+	                     "width":"728", 
+	                     "height":"90", 
+	                     "index": 0 
+	                  },
+	                  { 
+	                     "id":"companion-728x90-iframe", 
+	                     "width":"728", 
+	                     "height":"90", 
+	                     "index": 1 
+	                  },
+	                  { 
+	                     "id":"companion-300x250-static", 
+	                     "width":"300", 
+	                     "height":"250", 
+	                     "resourceType": "static" 
+	                  },
+	                  { 
+	                     "id":"companion-300x250-iframe", 
+	                     "width":"300", 
+	                     "height":"250", 
+	                     "index": 1 
+	                  }
+                ],
+                "schedule": [
+                    {
+                      "position": "pre-roll",
+                      "server": {
+                          "type": "direct",
+    	                  "tag": "http://ad3.liverail.com/?LR_PUBLISHER_ID=1331 
+    	                          __amp__LR_CAMPAIGN_ID=229__amp__LR_SCHEMA=vast2"
+                      }
+                    }
+                ]
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/liverail/example02.html
===================================================================
--- /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/liverail/example02.html	(revision 253)
+++ /tags/ova.jwplayer.4x/release-0.5.0-rc2/scripts/publish/templates/pages/ad-servers/liverail/example02.html	(revision 253)
@@ -0,0 +1,111 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<title>Example 2 - VAST 2.0 Non-Linear with Linear Takeover</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_3ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_3global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='ad-servers/liverail/ova02.xml';</script>
+<h2>Example 2 - VAST 2.0 Non-Linear with Linear Takeover</h2>
+<p class="example">
+<p>
+<script type="text/javascript">document.write(writePlayerEmbedCode(OVA_CONFIG, 3, 450, 300, "&file=OVA_HTTP_SHOW_STREAM_1&duration=30&provider=video"));</script>
+<div id="companion-300x60-static" style="width:300px;height:60px;border:1px solid #000;margin-bottom:3px;">300x60 static</div>
+<div id="companion-300x60-iframe" style="wi