Index: /trunk/ova.flowplayer/dist/templates/wrapper/vast2-wrapper-simple.xml
===================================================================
--- /trunk/ova.flowplayer/dist/templates/wrapper/vast2-wrapper-simple.xml	(revision 327)
+++ /trunk/ova.flowplayer/dist/templates/wrapper/vast2-wrapper-simple.xml	(revision 327)
@@ -0,0 +1,39 @@
+<?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://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: /trunk/ova.flowplayer/examples/javascript/example08.html
===================================================================
--- /trunk/ova.flowplayer/examples/javascript/example08.html	(revision 327)
+++ /trunk/ova.flowplayer/examples/javascript/example08.html	(revision 327)
@@ -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 8 - Instructing OVA to Reschedule</title>
+<script type="text/javascript" src="../../dist/js/jquery-1.3.1.js"></script>
+</head>
+<body>
+<script type="text/javascript" src="../../dist/js/flowplayer-3.2.3.min.js"></script>
+<script type="text/javascript" src="../../dist/js/ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(../../dist/css/global.css);
+-->
+</style>
+<h2>Example 8 - Instructing OVA to Reschedule</h2>
+<br/>
+<a class="example"></a>
+<script type="text/javascript">
+function reschedule() {
+   var newConfig = {
+      "shows": {
+          "streams": [ { "file":OVA_HTTP_SHOW_STREAM_1, "duration":"00:00:30" } ]
+      },
+
+      "debug": {
+          "debugger": "firebug",
+          "levels": OVA_OAS_DEBUG,
+      },
+
+      "ads": {
+          "playOnce": false,
+          "servers": [
+              {
+                 "type": "OpenX",
+                 "apiAddress": OVA_OPENX_API,
+              }
+          ],
+          "schedule": [
+              {
+                 "zone": "5",
+                 "position": "pre-roll"
+              }
+          ]
+       }
+   };
+   flowplayer().getPlugin("ova").schedule(null, newConfig);
+}
+
+flowplayer("a.example", FP_SWF_2, {
+    plugins: {
+        controls: {
+            autoHide: "always"
+        },
+
+        ova: {
+           url: OVA_OAS_URL_2,
+
+           "debug": {
+              "debugger": "firebug",
+              "levels": OVA_OAS_DEBUG,
+          }
+        }
+    }
+});
+</script>
+<br/>
+<button type="button" onClick="reschedule();">Trigger Reschedule</button>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre>
+<code class="javascript">
+flowplayer("a.example", "<script type="text/javascript">document.write(FP_SWF_2)</script>", {
+    plugins: {
+        controls: {
+            autoHide: "always"
+        },
+
+        ova: {
+            url: "<script type="text/javascript">document.write(OVA_OAS_URL_2)</script>",
+
+            "shows": {
+                "streams": [
+                    {
+                        "file": "<script type="text/javascript">document.write(OVA_HTTP_SHOW_STREAM_1)</script>",
+                        "duration":"00:00:30"
+                    }
+                ]
+            },
+
+            "debug": {
+                "debugger": "firebug",
+                "levels": "<script type="text/javascript">document.write(OVA_OAS_DEBUG)</script>",
+            },
+
+            "ads": {
+                "playOnce": false,
+                "servers": [
+                    {
+                       "type": "OpenX",
+                       "apiAddress": "<script type="text/javascript">document.write(OVA_OPENX_API)</script>",
+                    }
+                ],
+                "schedule": [
+                    {
+                       "zone": "5",
+                       "position": "pre-roll"
+                    }
+                ]
+            }
+        }
+    }
+});
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /trunk/ova.flowplayer/examples/xml-wrapper/example02.html
===================================================================
--- /trunk/ova.flowplayer/examples/xml-wrapper/example02.html	(revision 327)
+++ /trunk/ova.flowplayer/examples/xml-wrapper/example02.html	(revision 327)
@@ -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 2 - VAST2 XML Wrapper</title>
+<script type="text/javascript" src="../../dist/js/jquery-1.3.1.js"></script>
+</head>
+<body>
+<script type="text/javascript" src="../../dist/js/flowplayer-3.2.3.min.js"></script>
+<script type="text/javascript" src="../../dist/js/ova-companions-jquery.js"></script>
+<script type="text/javascript" src="../../dist/js/ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(../../dist/css/global.css);
+-->
+</style>
+<h2>Example 2 - VAST2 XML Wrapper</h2>
+<p class="example">
+This example illustrates a VAST2 wrapper in action.
+</p>
+<br/>
+<div style="width:754px;height:255px;">
+	<a class="example" style="width:444px;height:252px;float:left"></a>
+	<div id="companion-1" style="width:300px;height:250px;border:1px solid #000;float:right;"></div>
+</div>
+<script type="text/javascript">
+flowplayer("a.example", FP_SWF_2, {
+    plugins: {
+        controls: {
+            autoHide: "always"
+        },
+
+        ova: {
+            url: OVA_OAS_URL_2,
+
+            "debug": {
+                "debugger": "firebug",
+                "levels": OVA_OAS_DEBUG
+            },
+
+            "shows": {
+              "streams": [
+                   { "file":OVA_HTTP_SHOW_STREAM_1, "duration":"00:00:10" }
+              ]
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "companions": [
+                	{ id: "companion-1", width: 300, height: 250 }
+                ],
+                "schedule": [
+                    {
+                       "position": "pre-roll",
+  	                   "server": {
+		                  "type": "direct",
+		                  "tag": OVA_DIST_TEMPLATES_2 + "wrapper/vast2-wrapper-simple.xml",
+                       }
+                    }
+                ]
+            }
+        }
+    }
+});
+</script>
+<br/>
+<p>
+The configuration for this example is:
+</p>
+<div class="codebox">
+<pre>
+<code class="javascript">
+flowplayer("example", "<script type="text/javascript">document.write(FP_SWF_2)</script>", {
+    plugins: {
+        controls: {
+            autoHide: "always"
+        },
+
+        ova: {
+            url: "<script type="text/javascript">document.write(OVA_OAS_URL_2)</script>",
+
+            "shows": {
+              "streams": [
+                   {
+                     "file": "<script type="text/javascript">document.write(OVA_HTTP_SHOW_STREAM_1)</script>",
+                     "duration":"00:00:10"
+                   }
+              ]
+            },
+
+            "ads": {
+                "pauseOnClickThrough": true,
+                "companions": [
+                	{ id: "companion-1", width: 300, height: 250 }
+                ],
+                "schedule": [
+                    {
+                       "position": "pre-roll",
+                       "server": {
+                          "type": "direct",
+                          "tag": "<script type="text/javascript">document.write(OVA_DIST_TEMPLATES_2 + "wrapper/vast2-wrapper-simple.xml")</script>",
+                       }
+                    }
+                ]
+            }
+
+            "debug": {
+                "debugger": "firebug",
+                "levels": "<script type="text/javascript">document.write(OVA_OAS_DEBUG)</script>"
+            },
+
+        }
+    }
+});
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /trunk/ova.as3/src/org/openvideoads/vast/model/WrappedVideoAdServingTemplateV2.as
===================================================================
--- /trunk/ova.as3/src/org/openvideoads/vast/model/WrappedVideoAdServingTemplateV2.as	(revision 327)
+++ /trunk/ova.as3/src/org/openvideoads/vast/model/WrappedVideoAdServingTemplateV2.as	(revision 327)
@@ -0,0 +1,97 @@
+/*    
+ *    Copyright (c) 2010 LongTail AdSolutions, Inc
+ *
+ *    This file is part of the Open Video Ads VAST framework.
+ *
+ *    The VAST framework is free software: you can redistribute it 
+ *    and/or modify it under the terms of the GNU General Public License 
+ *    as published by the Free Software Foundation, either version 3 of 
+ *    the License, or (at your option) any later version.
+ *
+ *    The VAST framework is distributed in the hope that it will be 
+ *    useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *    GNU General Public License for more details.
+ *
+ *    You should have received a copy of the GNU General Public License
+ *    along with the framework.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.openvideoads.vast.model {
+	import mx.utils.UIDUtil;
+	
+	import org.openvideoads.base.Debuggable;
+	import org.openvideoads.vast.server.wrapped.WrappedAdServerRequest;
+	
+	public class WrappedVideoAdServingTemplateV2 extends VideoAdServingTemplate {
+		protected var _vastAdTag:String = null;
+		protected var _template:VideoAdServingTemplate = null;
+		protected var _originalAdId:Object = null
+		protected var _parentTemplate:VideoAdServingTemplate;
+		protected var _id:String = null;
+		protected var _adSystem:String = null;
+
+		public function WrappedVideoAdServingTemplateV2(originalAdId:Object, wrapperXML:XML=null, parentTemplate:VideoAdServingTemplate=null) {
+			super(parentTemplate);
+//			if(_uid == null) _uid = UIDUtil.createUID(); //getUID(this);
+//			doLog("Wrapper Template instantiated - UID = " + _uid, Debuggable.DEBUG_VAST_TEMPLATE);
+			if(parentTemplate != null) {
+//				_listener = parentTemplate;
+				_parentTemplate = parentTemplate;
+			}
+			if(wrapperXML != null) initialise(wrapperXML);
+		}
+		
+		protected function initialise(wrapperXML:XML):void {
+			doLog("WrappedVideoAdServingTemplateV2: XML response has " + wrapperXML.children().length() + " attributes defined - see trace", Debuggable.DEBUG_VAST_TEMPLATE);
+			doTrace(wrapperXML, Debuggable.DEBUG_VAST_TEMPLATE);
+			id = wrapperXML.adId;
+			adSystem = wrapperXML.AdSystem;
+//			parseImpressions(wrapperXML);
+//			parseTrackingEvents(wrapperXML);
+			if(wrapperXML.VASTAdTagURI != undefined) {
+				vastAdTag = wrapperXML.VASTAdTagURI.text();
+
+				if(_listener != null) {
+					_parentTemplate.registerLoader(_uid);
+				}
+
+				var adIds:Array = new Array;
+				adIds.push(_originalAdId);
+				var adServerRequest:WrappedAdServerRequest = new WrappedAdServerRequest(vastAdTag);
+				load(adServerRequest);
+			}
+		}
+
+		public function set id(adId:String):void {
+			_id = id;
+		}
+		
+		public function get id():String {
+			return _id;
+		}
+
+		public function set adSystem(adSystem:String):void {
+			_adSystem = adSystem;
+		}
+		
+		public function get adSystem():String {
+			return _adSystem;
+		}
+		
+		public function set vastAdTag(vastAdTag:String):void {
+			_vastAdTag = vastAdTag;
+		}
+		
+		public function get vastAdTag():String {
+			return _vastAdTag;
+		}
+		
+		public function hasVASTAdTag():Boolean {
+			return (_vastAdTag != null)
+		}
+		
+		protected override function createVideoAd_V2(defaultAdId:String, ad:XML, creativeId:String, sequenceId:String, type:String, inlineAdId:String):VideoAd {
+			return super.createVideoAd_V2(defaultAdId, ad, creativeId, sequenceId, type, inlineAdId);
+		}		
+	}
+}
Index: /trunk/ova.jwplayer.4x/scripts/publish/templates/pages/jw-specific/example16.html
===================================================================
--- /trunk/ova.jwplayer.4x/scripts/publish/templates/pages/jw-specific/example16.html	(revision 327)
+++ /trunk/ova.jwplayer.4x/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: /trunk/ova.jwplayer.4x/scripts/publish/templates/pages/custom-delivery/example11.html
===================================================================
--- /trunk/ova.jwplayer.4x/scripts/publish/templates/pages/custom-delivery/example11.html	(revision 327)
+++ /trunk/ova.jwplayer.4x/scripts/publish/templates/pages/custom-delivery/example11.html	(revision 327)
@@ -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 11 - Deferring Ad loading until after the Play button has been pressed</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 - Deferring Ad loading until after the Play button has been pressed</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 11 - Deferring Ad loading until after the Play button has been pressed
+   &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: /trunk/ova.jwplayer.4x/scripts/publish/templates/config/jw-specific/ova16.xml
===================================================================
--- /trunk/ova.jwplayer.4x/scripts/publish/templates/config/jw-specific/ova16.xml	(revision 327)
+++ /trunk/ova.jwplayer.4x/scripts/publish/templates/config/jw-specific/ova16.xml	(revision 327)
@@ -0,0 +1,31 @@
+<config>
+   <ova.title>
+		Loading Shows and Ads "On Demand" via player.sendEvent(LOAD...)
+   </ova.title>
+   <ova.json>
+       {
+            "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"
+            }
+        }
+   </ova.json>
+</config>
Index: /trunk/ova.jwplayer.4x/scripts/publish/templates/config/custom-delivery/ova11.xml
===================================================================
--- /trunk/ova.jwplayer.4x/scripts/publish/templates/config/custom-delivery/ova11.xml	(revision 327)
+++ /trunk/ova.jwplayer.4x/scripts/publish/templates/config/custom-delivery/ova11.xml	(revision 327)
@@ -0,0 +1,34 @@
+<config>
+   <ova.title>
+       Example 11 - Deferring Ad loading until after the Play button has been pressed
+   </ova.title>
+   <ova.json>
+       {
+            "delayAdRequestUntilPlay": true,
+
+            "ads": {
+              "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+              ],
+            "companions": [
+                { "id":"companion", "width":"150", "height":"360" }
+            ],
+
+              "schedule": [
+               {
+                  "zone": "6",
+                  "position": "pre-roll"
+               }
+              ]
+            },
+
+            "debug": {
+              "levels": "OVA_DEBUG",
+              "debugger": "firebug"
+            }
+       }
+   </ova.json>
+</config>
Index: /trunk/ova.jwplayer.4x/examples/pages/jw-specific/example16.html
===================================================================
--- /trunk/ova.jwplayer.4x/examples/pages/jw-specific/example16.html	(revision 327)
+++ /trunk/ova.jwplayer.4x/examples/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="../../../dist/js/ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(../../../dist/css/global.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=http://streaming.openvideoads.org:81/shows/the-black-hole.mp4&type=http"));</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=http://streaming.openvideoads.org:81/shows/the-black-hole.mp4&type=http")));</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": "http://openx.openvideoads.org/openx/www/delivery/fc.php"
+                    }
+                ],
+                "notice": { "textStyle": "smalltext" },
+                "schedule": [
+                    {
+                        "zone": "18",
+                        "position": "pre-roll"
+                    }
+                ],
+           },
+
+           "debug": {
+               "levels": "fatal, config, vast_template",
+               "debugger": "firebug"
+           }
+        }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /trunk/ova.jwplayer.4x/examples/pages/custom-delivery/example11.html
===================================================================
--- /trunk/ova.jwplayer.4x/examples/pages/custom-delivery/example11.html	(revision 327)
+++ /trunk/ova.jwplayer.4x/examples/pages/custom-delivery/example11.html	(revision 327)
@@ -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 11 - Deferring Ad loading until after the Play button has been pressed</title>
+</head>
+<body>
+<script type="text/javascript" src="../../../dist/js/ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(../../../dist/css/global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='custom-delivery/ova11.xml';</script>
+<h2>Example 11 - Deferring Ad loading until after the Play button has been pressed</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=http://streaming.openvideoads.org/shows/the-black-hole.mp4&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=http://streaming.openvideoads.org/shows/the-black-hole.mp4&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 - Deferring Ad loading until after the Play button has been pressed
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "delayAdRequestUntilPlay": true,
+            
+            "ads": {
+              "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php",
+                   }
+              ],
+             
+              "companions": [
+                   { "id":"companion", "width":"150", "height":"360" }
+              ],
+
+              "schedule": [
+               {
+                  "zone": "6",
+                  "position": "pre-roll",
+                  "playOnce": true
+               }
+              ]
+            },
+
+            "debug": {
+              "levels": "fatal, config, vast_template",
+              "debugger": "firebug"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /trunk/ova.jwplayer.4x/examples/config/jw-specific/ova16.xml
===================================================================
--- /trunk/ova.jwplayer.4x/examples/config/jw-specific/ova16.xml	(revision 327)
+++ /trunk/ova.jwplayer.4x/examples/config/jw-specific/ova16.xml	(revision 327)
@@ -0,0 +1,31 @@
+<config>
+   <ova.title>
+		Loading Shows and Ads "On Demand" via player.sendEvent(LOAD...)
+   </ova.title>
+   <ova.json>
+       {
+            "autoPlay": false,
+
+            "ads": {
+                "servers": [
+                    {
+                        "type": "OpenX",
+                        "apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php"
+                    }
+                ],
+                "notice": { "textStyle": "smalltext" },
+                "schedule": [
+                    {
+                        "zone": "18",
+                        "position": "pre-roll"
+                    }
+                ],
+            },
+
+            "debug": {
+               "levels": "fatal, config, vast_template",
+               "debugger": "firebug"
+            }
+        }
+   </ova.json>
+</config>
Index: /trunk/ova.jwplayer.4x/examples/config/custom-delivery/ova11.xml
===================================================================
--- /trunk/ova.jwplayer.4x/examples/config/custom-delivery/ova11.xml	(revision 327)
+++ /trunk/ova.jwplayer.4x/examples/config/custom-delivery/ova11.xml	(revision 327)
@@ -0,0 +1,34 @@
+<config>
+   <ova.title>
+       Example 11 - Deferring Ad loading until after the Play button has been pressed
+   </ova.title>
+   <ova.json>
+       {
+            "delayAdRequestUntilPlay": true,
+
+            "ads": {
+              "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php",
+                   }
+              ],
+            "companions": [
+                { "id":"companion", "width":"150", "height":"360" }
+            ],
+
+              "schedule": [
+               {
+                  "zone": "6",
+                  "position": "pre-roll"
+               }
+              ]
+            },
+
+            "debug": {
+              "levels": "fatal, config, vast_template",
+              "debugger": "firebug"
+            }
+       }
+   </ova.json>
+</config>
Index: /trunk/ova.jwplayer.5x/scripts/publish/templates/pages/jw-specific/example18.html
===================================================================
--- /trunk/ova.jwplayer.5x/scripts/publish/templates/pages/jw-specific/example18.html	(revision 327)
+++ /trunk/ova.jwplayer.5x/scripts/publish/templates/pages/jw-specific/example18.html	(revision 327)
@@ -0,0 +1,55 @@
+<!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 - Configuring OVA with the OVA 5.3 Embed Code</title>
+</head>
+<body>
+<script type="text/javascript" src="OVA_DIST_JS_2ova-examples.js"></script>
+<script type="text/javascript" src="OVA_DIST_JS_2jwplayer.js"></script>
+<style type="text/css">
+<!--
+  @import url(OVA_DIST_CSS_2global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='jw-specific/ova18.xml';</script>
+<h2>Example 18 - Configuring OVA with the OVA 5.3 Embed Code</h2>
+<p class="example">
+This example illustrates how to use configure OVA with the 5.3 Javascript embed code.
+</p>
+<div id="container">Loading the player ...</div>
+<script type="text/javascript">jwplayer("container").setup({
+       flashplayer: OVA_PLAYER_2, 
+       file: "OVA_PSEUDO_SHOW_STREAM_1",
+       plugins: {
+           ova: { json: "{ \"debug\": { \"debugger\": \"firebug\", \"levels\": \"fatal, config, vast_template\" }, \"ads\": { \"pauseOnClickThrough\": true, \"servers\": [ { \"type\": \"OpenX\", \"apiAddress\": \"OVA_OPENX_API\" } ], \"schedule\": [ { \"zone\": \"5\", \"position\": \"pre-roll\" } ] } } }" } 
+       },
+       height: 300,
+       width: 450
+});
+</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>
+&lt;script type="text/javascript"&gt;jwplayer("container").setup({
+       flashplayer: OVA_PLAYER_2, 
+       file: "OVA_PSEUDO_SHOW_STREAM_1",
+       plugins: {
+           ova: { json: "{ \"debug\": { \"debugger\": \"firebug\", \"levels\": \"fatal, config, vast_template\" }, 
+                        \"ads\": { \"pauseOnClickThrough\": true, \"servers\": [ { \"type\": 
+                        \"OpenX\", \"apiAddress\": \"OVA_OPENX_API\" } ], 
+                        \"schedule\": [ { \"zone\": \"5\", \"position\": 
+                        \"pre-roll\" } ] } } }" } 
+       },
+       height: 300,
+       width: 450
+});
+&lt;/script&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /trunk/ova.jwplayer.5x/scripts/publish/templates/pages/jw-specific/example19.html
===================================================================
--- /trunk/ova.jwplayer.5x/scripts/publish/templates/pages/jw-specific/example19.html	(revision 327)
+++ /trunk/ova.jwplayer.5x/scripts/publish/templates/pages/jw-specific/example19.html	(revision 327)
@@ -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" />
+<script type="text/javascript" src="../../../dist/js/jquery-1.3.1.js"></script>
+<title>Example 19 - Loading Shows and Ads "On Demand" via the Javascript Player API</title>
+</head>
+<body>
+<script type="text/javascript" src="../../../dist/js/ova-examples.js"></script>
+<script type="text/javascript" src="../../../dist/js/jwplayer.js"></script>
+<style type="text/css">
+<!--
+  @import url(../../../dist/css/global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='jw-specific/ova18.xml';</script>
+<h2>Example 19 - 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>
+<div id="container">Loading the player ...</div>
+<script type="text/javascript">jwplayer("container").setup({
+       flashplayer: OVA_PLAYER_2, 
+       file: "http://streaming.openvideoads.org:81/shows/the-black-hole.mp4",
+       plugins: {
+           ova: { json: "{ \"debug\": { \"debugger\": \"firebug\", \"levels\": \"all\" }, \"ads\": { \"pauseOnClickThrough\": true, \"servers\": [ { \"type\": \"OpenX\", \"apiAddress\": \"OVA_OPENX_API\" } ], \"schedule\": [ { \"zone\": \"5\", \"position\": \"pre-roll\" } ] } } }" } 
+       },
+       height: 300,
+       width: 450
+});
+</script>
+<p>
+<button type="button" onClick="jwplayer('container').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=http://streaming.openvideoads.org:81/shows/the-black-hole.mp4&provider=lighttpd")));</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": "http://openx.openvideoads.org/openx/www/delivery/fc.php"
+                    }
+                ],
+                "notice": { "textStyle": "smalltext" },
+                "schedule": [
+                    {
+                        "zone": "18",
+                        "position": "pre-roll"
+                    }
+                ],
+           },
+
+           "debug": {
+               "levels": "fatal, config, vast_template",
+               "debugger": "firebug"
+           }
+        }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /trunk/ova.jwplayer.5x/scripts/publish/templates/pages/ad-servers/example02.html
===================================================================
--- /trunk/ova.jwplayer.5x/scripts/publish/templates/pages/ad-servers/example02.html	(revision 327)
+++ /trunk/ova.jwplayer.5x/scripts/publish/templates/pages/ad-servers/example02.html	(revision 327)
@@ -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 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": {
+                "servers": [
+                   {
+                       "id": "OpenX",
+                       "type": "OpenX",
+                       "apiAddress": "OVA_OPENX_API",
+                       "defaultAdServer": true
+                   },
+                   {
+                       "id": "AdTech",
+                       "type": "AdTech",
+                       "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": "509",
+                       "position": "pre-roll"
+                   },
+                   {
+                       "zone": "5",
+                       "position": "post-roll",
+                       "servers": [
+                           {
+                              "type": "Direct",
+                              "apiAddress": "http://static.openvideoads.org/tests"
+                           },
+                           {
+                              "type": "Direct",
+                              "apiAddress": "http://static.openvideoads.org/tests"
+                           },
+                           {
+                              "type": "OpenX",
+                              "apiAddress": "OVA_OPENX_API",
+                           }
+		              ],
+                   }
+                ]
+            },
+
+            "debug": {
+                "debugger": "firebug",
+                "levels": "OVA_DEBUG"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /trunk/ova.jwplayer.5x/scripts/publish/templates/pages/custom-delivery/example11.html
===================================================================
--- /trunk/ova.jwplayer.5x/scripts/publish/templates/pages/custom-delivery/example11.html	(revision 327)
+++ /trunk/ova.jwplayer.5x/scripts/publish/templates/pages/custom-delivery/example11.html	(revision 327)
@@ -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 11 - Deferring Ad loading until after the Play button has been pressed</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 - Deferring Ad loading until after the Play button has been pressed</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 11 - Deferring Ad loading until after the Play button has been pressed
+   &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: /trunk/ova.jwplayer.5x/scripts/publish/templates/config/jw-specific/ova18.xml
===================================================================
--- /trunk/ova.jwplayer.5x/scripts/publish/templates/config/jw-specific/ova18.xml	(revision 327)
+++ /trunk/ova.jwplayer.5x/scripts/publish/templates/config/jw-specific/ova18.xml	(revision 327)
@@ -0,0 +1,31 @@
+<config>
+   <ova.title>
+		Loading Shows and Ads "On Demand" via player.sendEvent(LOAD...)
+   </ova.title>
+   <ova.json>
+       {
+            "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"
+            }
+        }
+   </ova.json>
+</config>
Index: /trunk/ova.jwplayer.5x/scripts/publish/templates/config/custom-delivery/ova11.xml
===================================================================
--- /trunk/ova.jwplayer.5x/scripts/publish/templates/config/custom-delivery/ova11.xml	(revision 327)
+++ /trunk/ova.jwplayer.5x/scripts/publish/templates/config/custom-delivery/ova11.xml	(revision 327)
@@ -0,0 +1,34 @@
+<config>
+   <ova.title>
+       Example 11 - Deferring Ad loading until after the Play button has been pressed
+   </ova.title>
+   <ova.json>
+       {
+            "delayAdRequestUntilPlay": true,
+
+            "ads": {
+              "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "OVA_OPENX_API",
+                   }
+              ],
+            "companions": [
+                { "id":"companion", "width":"150", "height":"360" }
+            ],
+
+              "schedule": [
+               {
+                  "zone": "6",
+                  "position": "pre-roll"
+               }
+              ]
+            },
+
+            "debug": {
+              "levels": "OVA_DEBUG",
+              "debugger": "firebug"
+            }
+       }
+   </ova.json>
+</config>
Index: /trunk/ova.jwplayer.5x/examples/pages/jw-specific/example18.html
===================================================================
--- /trunk/ova.jwplayer.5x/examples/pages/jw-specific/example18.html	(revision 327)
+++ /trunk/ova.jwplayer.5x/examples/pages/jw-specific/example18.html	(revision 327)
@@ -0,0 +1,55 @@
+<!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 - Configuring OVA with the OVA 5.3 Embed Code</title>
+</head>
+<body>
+<script type="text/javascript" src="../../../dist/js/ova-examples.js"></script>
+<script type="text/javascript" src="../../../dist/js/jwplayer.js"></script>
+<style type="text/css">
+<!--
+  @import url(../../../dist/css/global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='jw-specific/ova18.xml';</script>
+<h2>Example 18 - Configuring OVA with the OVA 5.3 Embed Code</h2>
+<p class="example">
+This example illustrates how to use configure OVA with the 5.3 Javascript embed code.
+</p>
+<div id="container">Loading the player ...</div>
+<script type="text/javascript">jwplayer("container").setup({
+       flashplayer: OVA_PLAYER_2, 
+       file: "http://streaming.openvideoads.org:81/shows/the-black-hole.mp4",
+       plugins: {
+           ova: { json: "{ \"debug\": { \"debugger\": \"firebug\", \"levels\": \"fatal, config, vast_template\" }, \"ads\": { \"pauseOnClickThrough\": true, \"servers\": [ { \"type\": \"OpenX\", \"apiAddress\": \"http://openx.openvideoads.org/openx/www/delivery/fc.php\" } ], \"schedule\": [ { \"zone\": \"5\", \"position\": \"pre-roll\" } ] } } }" } 
+       },
+       height: 300,
+       width: 450
+});
+</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>
+&lt;script type="text/javascript"&gt;jwplayer("container").setup({
+       flashplayer: OVA_PLAYER_2, 
+       file: "http://streaming.openvideoads.org:81/shows/the-black-hole.mp4",
+       plugins: {
+           ova: { json: "{ \"debug\": { \"debugger\": \"firebug\", \"levels\": \"fatal, config, vast_template\" }, 
+                        \"ads\": { \"pauseOnClickThrough\": true, \"servers\": [ { \"type\": 
+                        \"OpenX\", \"apiAddress\": \"http://openx.openvideoads.org/openx/www/delivery/fc.php\" } ], 
+                        \"schedule\": [ { \"zone\": \"5\", \"position\": 
+                        \"pre-roll\" } ] } } }" } 
+       },
+       height: 300,
+       width: 450
+});
+&lt;/script&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /trunk/ova.jwplayer.5x/examples/pages/jw-specific/example19.html
===================================================================
--- /trunk/ova.jwplayer.5x/examples/pages/jw-specific/example19.html	(revision 327)
+++ /trunk/ova.jwplayer.5x/examples/pages/jw-specific/example19.html	(revision 327)
@@ -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" />
+<script type="text/javascript" src="../../../dist/js/jquery-1.3.1.js"></script>
+<title>Example 19 - Loading Shows and Ads "On Demand" via the Javascript Player API</title>
+</head>
+<body>
+<script type="text/javascript" src="../../../dist/js/ova-examples.js"></script>
+<script type="text/javascript" src="../../../dist/js/jwplayer.js"></script>
+<style type="text/css">
+<!--
+  @import url(../../../dist/css/global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='jw-specific/ova18.xml';</script>
+<h2>Example 19 - 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>
+<div id="container">Loading the player ...</div>
+<script type="text/javascript">jwplayer("container").setup({
+       flashplayer: OVA_PLAYER_2, 
+       file: "http://streaming.openvideoads.org:81/shows/the-black-hole.mp4",
+       plugins: {
+           ova: { json: "{ \"debug\": { \"debugger\": \"firebug\", \"levels\": \"all\" }, \"ads\": { \"pauseOnClickThrough\": true, \"servers\": [ { \"type\": \"OpenX\", \"apiAddress\": \"http://openx.openvideoads.org/openx/www/delivery/fc.php\" } ], \"schedule\": [ { \"zone\": \"5\", \"position\": \"pre-roll\" } ] } } }" } 
+       },
+       height: 300,
+       width: 450
+});
+</script>
+<p>
+<button type="button" onClick="jwplayer('container').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=http://streaming.openvideoads.org:81/shows/the-black-hole.mp4&provider=lighttpd")));</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": "http://openx.openvideoads.org/openx/www/delivery/fc.php"
+                    }
+                ],
+                "notice": { "textStyle": "smalltext" },
+                "schedule": [
+                    {
+                        "zone": "18",
+                        "position": "pre-roll"
+                    }
+                ],
+           },
+
+           "debug": {
+               "levels": "fatal, config, vast_template",
+               "debugger": "firebug"
+           }
+        }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /trunk/ova.jwplayer.5x/examples/pages/ad-servers/example02.html
===================================================================
--- /trunk/ova.jwplayer.5x/examples/pages/ad-servers/example02.html	(revision 327)
+++ /trunk/ova.jwplayer.5x/examples/pages/ad-servers/example02.html	(revision 327)
@@ -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 2 - Ad Server Failover</title>
+</head>
+<body>
+<script type="text/javascript" src="../../../dist/js/ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(../../../dist/css/global.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=http://streaming.openvideoads.org/shows/the-black-hole.mp4&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=http://streaming.openvideoads.org/shows/the-black-hole.mp4&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": {
+                "servers": [
+                   {
+                       "id": "OpenX",
+                       "type": "OpenX",
+                       "apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php",
+                       "defaultAdServer": true
+                   },
+                   {
+                       "id": "AdTech",
+                       "type": "AdTech",
+                       "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": "509",
+                       "position": "pre-roll"
+                   },
+                   {
+                       "zone": "5",
+                       "position": "post-roll",
+                       "servers": [
+                           {
+                              "type": "Direct",
+                              "apiAddress": "http://static.openvideoads.org/tests"
+                           },
+                           {
+                              "type": "Direct",
+                              "apiAddress": "http://static.openvideoads.org/tests"
+                           },
+                           {
+                              "type": "OpenX",
+                              "apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php",
+                           }
+		              ],
+                   }
+                ]
+            },
+
+            "debug": {
+                "debugger": "firebug",
+                "levels": "fatal, config, vast_template"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /trunk/ova.jwplayer.5x/examples/pages/custom-delivery/example11.html
===================================================================
--- /trunk/ova.jwplayer.5x/examples/pages/custom-delivery/example11.html	(revision 327)
+++ /trunk/ova.jwplayer.5x/examples/pages/custom-delivery/example11.html	(revision 327)
@@ -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 11 - Deferring Ad loading until after the Play button has been pressed</title>
+</head>
+<body>
+<script type="text/javascript" src="../../../dist/js/ova-examples.js"></script>
+<style type="text/css">
+<!--
+  @import url(../../../dist/css/global.css);
+-->
+</style>
+<script type="text/javascript">var OVA_CONFIG='custom-delivery/ova11.xml';</script>
+<h2>Example 11 - Deferring Ad loading until after the Play button has been pressed</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=http://streaming.openvideoads.org/shows/the-black-hole.mp4&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=http://streaming.openvideoads.org/shows/the-black-hole.mp4&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 - Deferring Ad loading until after the Play button has been pressed
+   &lt;/ova.title&gt;
+   &lt;ova.json&gt;
+       {
+            "delayAdRequestUntilPlay": true,
+            
+            "ads": {
+              "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php",
+                   }
+              ],
+             
+              "companions": [
+                   { "id":"companion", "width":"150", "height":"360" }
+              ],
+
+              "schedule": [
+               {
+                  "zone": "6",
+                  "position": "pre-roll",
+                  "playOnce": true
+               }
+              ]
+            },
+
+            "debug": {
+              "levels": "fatal, config, vast_template",
+              "debugger": "firebug"
+            }
+       }
+   &lt;/ova.json&gt;
+&lt;/config&gt;
+</code>
+</pre>
+</div>
+</body>
+</html>
Index: /trunk/ova.jwplayer.5x/examples/config/jw-specific/ova18.xml
===================================================================
--- /trunk/ova.jwplayer.5x/examples/config/jw-specific/ova18.xml	(revision 327)
+++ /trunk/ova.jwplayer.5x/examples/config/jw-specific/ova18.xml	(revision 327)
@@ -0,0 +1,31 @@
+<config>
+   <ova.title>
+		Loading Shows and Ads "On Demand" via player.sendEvent(LOAD...)
+   </ova.title>
+   <ova.json>
+       {
+            "autoPlay": false,
+
+            "ads": {
+                "servers": [
+                    {
+                        "type": "OpenX",
+                        "apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php"
+                    }
+                ],
+                "notice": { "textStyle": "smalltext" },
+                "schedule": [
+                    {
+                        "zone": "18",
+                        "position": "pre-roll"
+                    }
+                ],
+            },
+
+            "debug": {
+               "levels": "fatal, config, vast_template",
+               "debugger": "firebug"
+            }
+        }
+   </ova.json>
+</config>
Index: /trunk/ova.jwplayer.5x/examples/config/custom-delivery/ova11.xml
===================================================================
--- /trunk/ova.jwplayer.5x/examples/config/custom-delivery/ova11.xml	(revision 327)
+++ /trunk/ova.jwplayer.5x/examples/config/custom-delivery/ova11.xml	(revision 327)
@@ -0,0 +1,34 @@
+<config>
+   <ova.title>
+       Example 11 - Deferring Ad loading until after the Play button has been pressed
+   </ova.title>
+   <ova.json>
+       {
+            "delayAdRequestUntilPlay": true,
+
+            "ads": {
+              "servers": [
+                   {
+                      "type": "OpenX",
+                      "apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php",
+                   }
+              ],
+            "companions": [
+                { "id":"companion", "width":"150", "height":"360" }
+            ],
+
+              "schedule": [
+               {
+                  "zone": "6",
+                  "position": "pre-roll"
+               }
+              ]
+            },
+
+            "debug": {
+              "levels": "fatal, config, vast_template",
+              "debugger": "firebug"
+            }
+       }
+   </ova.json>
+</config>
