<?xml version="1.0" encoding="utf-8"?>
<?pcf-stylesheet path="/story.xsl" site="XSL" extension="php"?>
<!DOCTYPE document SYSTEM "http://commons.omniupdate.com/dtd/standard.dtd">

<document>
	<headcode></headcode>
	<bodycode>
	<script type="text/javascript">
$(document).ready(function(){

    /*
    * Grab all iframes on the page or return
    */
    var iframes = document.getElementsByTagName( 'iframe' );

    /*
    * Loop through the iframes array
    */
    for ( var i = 0; i &lt; iframes.length; i++ ) {

        var iframe = iframes[i],

        /*
        * RegExp, extend this if you need more players
        */
        players = /www.youtube.com|player.vimeo.com/;

        /*
        * If the RegExp pattern exists within the current iframe
        */
        if ( iframe.src.search( players ) &gt; 0 ) {

            /*
            * Calculate the video ratio based on the iframe's w/h dimensions
            */
            var videoRatio        = ( iframe.height / iframe.width ) * 75;
            
            /*
            * Replace the iframe's dimensions and position
            * the iframe absolute, this is the trick to emulate
            * the video ratio
            */
            iframe.style.position = 'absolute';
            iframe.style.top      = '0';
            iframe.style.left     = '0';
            iframe.width          = '100%';
            iframe.height         = '100%';
            
            /*
            * Wrap the iframe in a new 'div' which uses a
            * dynamically fetched padding-top property based
            * on the video's w/h dimensions
            */
            var wrap              = document.createElement( 'div' );
            wrap.className        = 'fluid-vids';
            wrap.style.width      = '100%';
            wrap.style.position   = 'relative';
            wrap.style.paddingTop = videoRatio + '%';
            
            /*
            * Add the iframe inside our newly created 'div'
            */
            var iframeParent      = iframe.parentNode;
            iframeParent.insertBefore( wrap, iframe );
            wrap.appendChild( iframe );

        }

    }

});

</script>
	
	</bodycode>

	<!-- com.omniupdate.properties -->
	<title><!--%echo var="title" --></title>
	<!-- /com.omniupdate.properties -->

	<metadata>
		<!-- com.omniupdate.properties -->
		<meta name="keywords" content="<!--%echo var="section-keywords" -->,<!--%echo var="keywords" -->" />
		<meta name="description" content="<!--%echo var="description" -->" />
		<meta name="author" content="<!--%echo var="author" -->" />
		<!-- /com.omniupdate.properties -->
	</metadata>

	<config>
		<parameter name="page-type">announcement</parameter>
		<parameter name="right-col" type="checkbox" group="Everyone" prompt="Right column" alt="Choose whether to display a right column for callouts.">
			<option value="true" selected="true">Show right column</option>
		</parameter>
		<!-- com.omniupdate.properties -->
		
		<parameter name="author" group="Everyone" prompt="Author"><!--%echo var="author" --></parameter>
		<parameter name="link" group="Everyone" prompt="Link"><!--%echo var="link" --></parameter>
		<parameter name="phone" group="Everyone" prompt="Phone"><!--%echo var="phone" --></parameter>

		<parameter name="story-callout" type="checkbox" group="Everyone" prompt="Story callout" alt="Choose whether to display a callout with the story.">
			<option value="true" selected="true">Show story callout</option>
		</parameter>
<parameter section="Callouts" name="callouts-local" type="checkbox" group="Everyone" prompt="Local callouts" alt="Local callouts are edited directly on the page and appear above any global callouts.">
<!--%echo var="callouts-local" encoding="none" -->
</parameter>
<parameter name="callouts-global-1" type="select" group="Everyone" prompt="Global Callout #1" alt="Choose how to display this global callout.">
<!--%echo var="callouts-global-1" encoding="none" -->
</parameter>
		<parameter name="callouts-global-2" type="select" group="Everyone" prompt="Global Callout #2" alt="Choose how to display this global callout.">
<!--%echo var="callouts-global-2" encoding="none" -->
</parameter>
		<parameter name="callouts-global-3" type="select" group="Everyone" prompt="Global Callout #3" alt="Choose how to display this global callout.">
<!--%echo var="callouts-global-3" encoding="none" -->
</parameter>
		<!-- /com.omniupdate.properties -->
	</config>

	<content>
		<maincontent>
			<!-- com.omniupdate.div label="maincontent" group="Everyone" button="707" break="break" -->
			<!-- ouc:editor csspath="/_resources/ou/editor/css/main.css" cssmenu="/_resources/ou/editor/styles.txt" width="1143"/ -->

			<!-- /com.omniupdate.div -->
		</maincontent>

		<story-callout>
			<!-- com.omniupdate.div label="story-callout" group="Everyone" button="707" break="break" -->
			<!-- com.omniupdate.editor csspath="/_resources/ou/editor/css/callout-editor.css" cssmenu="/_resources/ou/editor/callout-styles.txt" width="1000"/ -->
			<div class="_help">
				<p>
					Use the <img src="/_resources/ou/img/snippets.png" alt=""/> (Insert Predefined Snippet Content) button on the toolbar to add callouts.
					(Select "Callout" in the Category menu, then select a callout snippet.)
				</p>
			</div>
			<br/>
			<!-- /com.omniupdate.div -->
		</story-callout>

		<story-archives>
			<!-- com.omniupdate.div label="story-archives" group="Everyone" button="707" break="break" -->
			<!-- com.omniupdate.editor wysiwyg="asset" tags="archives" csspath="/_resources/ou/editor/css/callout-editor.css" cssmenu="/_resources/ou/editor/callout-styles.txt" width="1000"/ -->

			<!-- /com.omniupdate.div -->
		</story-archives>

		<rightcol>
					<!-- com.omniupdate.div label="callout-content" group="WebComm" button="707" break="break" --><!-- ouc:editor csspath="/_resources/ou/editor/css/callout-editor.css" cssmenu="/_resources/ou/editor/callout-styles.txt" width="1000"/ --><div class="_help">
			<p>Use the <img src="/_resources/ou/img/snippets.png" alt="" /> (Insert Predefined Snippet Content) button on the toolbar to add callouts. (Select "Callout" in the Category menu, then select a callout snippet.)</p>


</div>
<br /><br /><!-- /com.omniupdate.div -->
			
		</rightcol>
		<global_callouts>
			<audience>
				<category><!-- ouc:div label="audience-1" group="Everyone" button="808" --><!-- ouc:editor wysiwyg="asset" tags="taxonomy,audience"/ --><!-- /ouc:div --></category>
				<category><!-- ouc:div label="audience-2" group="Everyone" button="808" --><!-- ouc:editor wysiwyg="asset" tags="taxonomy,audience" --><!-- /ouc:div --></category>
				<category><!-- ouc:div label="audience-3" group="Everyone" button="808" --><!-- ouc:editor wysiwyg="asset" tags="taxonomy,audience" --><!-- /ouc:div --></category>
			</audience>
			<topic>
				<category><!-- ouc:div label="topic-1" group="Everyone" button="805" --><!-- ouc:editor wysiwyg="asset" tags="taxonomy,topic" --><!-- /ouc:div --></category>
				<category><!-- ouc:div label="topic-2" group="Everyone" button="805" --><!-- ouc:editor wysiwyg="asset" tags="taxonomy,topic" --><!-- /ouc:div --></category>
				<category><!-- ouc:div label="topic-3" group="Everyone" button="805" --><!-- ouc:editor wysiwyg="asset" tags="taxonomy,topic" --><!-- /ouc:div --></category>
				<category><!-- ouc:div label="topic-4" group="Everyone" button="805" --><!-- ouc:editor wysiwyg="asset" tags="taxonomy,topic" --><!-- /ouc:div --></category>
				<category><!-- ouc:div label="topic-5" group="Everyone" button="805" --><!-- ouc:editor wysiwyg="asset" tags="taxonomy,topic" --><!-- /ouc:div --></category>
			</topic>
		</global_callouts>

	</content>
</document>
