//================================================================================
//	© 2007 PantherPanache, LLC.  All rights reserved. http://www.panachetech.com
//--------------------------------------------------------------------------------

function toggleScale(cx, cy)
{
	var pan_player = document.getElementById("PanVideoPlayer");
	pan_player.height="100%";
	pan_player.width="100%";
	
	var pan_player_div = document.getElementById("PanVideoPlayerDiv");
	pan_player_div.style.width = cx+"px";
	pan_player_div.style.height = (cy+30)+"px";
}

//--------------------------------------------------------------------------------
// * Panache Video Player Configuration *
//--------------------------------------------------------------------------------

//Background color of the player expressed as a #hex value.
var bk_color = "#000000";

//Complete URL to a single streaming/progressive-download FLV video or
//a complete URL to a SMIL file containing video URLs for multiple bitrates
var video_url = "http://www.cbs.com/originals/inturn2/panache/inturn_204.smil";

//Name of MBDD to request from the Panache Backend
//Possible values: [alpha-numeric name], null
//Meaning: [alpha-numeric name] = request [alpha-numeric name] MBDD
//         null = request MBDD using video_url parameter
var mbdd = "http://www.cbs.com/inturn/inturn_204.flv";

//Flag determining whether or not use the dimensions of the
//video as specified in the metadata for the minimized size
//of the video.  Possible values: true, false
//Meaning: true = use metadata dimensions for minimized size
//         false = ignore metadata dimensions
var use_metadata_size = false;

//Flag determining whether or not the player can scale in
//size.  Possible values: true, false
//Meaning: true = player can scale
//         false = player cannot scale
var can_maximize = true;

//Flag determining whether or not the maximize button
//of the player should launch the video in full-screen
//mode.  Possible values: true, false
//Meaning: true = maximize button will enable full-screen video
//         false = maximize button will use specified max dimensions
//Note: can_maximize must be set to true for this parameter to have effect
var maximize_fullscreen = true;

//Width of the video when in minimized state
//expressed in pixels
var video_min_width = 480;

//Height of the video when in minimized state
//expressed in pixels
var video_min_height = 360;

//Width of the video when in maximized state
//expressed in pixels
var video_max_width = 790;

//Height of the video when in maximized state
//expressed in pixels
var video_max_height = 620;

//Flag determining whether or not to automatically
//start playout of the video when the player loads.
//Possible values: true, false, null
//Meaning: true = start video play-out automatically
//         false = do not start video play-out automatically
var autostart = true;

//Flag determining whether or not the user has to opt-in
//to see Panache elements.
//Possible values: true, false
//Meaning: true = user must opt-in to see Panache elements
//         false = Panache elements will appears automatically
var opt_in = false;

//Flag determining whether or not the user can click anywhere
//in the video to opt-in. Possible values: true, false
//Meaning: true = user can click anywhere to opt-in
//         false = user must click the pause button to opt-in
//Note: opt_in must be set to true for this parameter to have effect
var click_to_opt_in = false;

//Flag determining whether or not the player should automatically
//seek to the last Panache element when the user opts-in.
//Possible values: true, false
//Meaning: true = the player will seek to the last Panache element
//                when the user opts-in
//         false = the player will not seek to the last Panache element
//Note: opt_in must be set to true for this parameter to have effect
var auto_seek_elements = false;


//The number of seconds that the interactive notification
//should remain on-screen after a Panache element has played-
//out. Possible values: [number], null
//Meaning: [number] = keep the interactive notification on-screen
//                    for [number] of seconds.
//         null = ignore this parameter
//Note: Both opt_in and auto_seek_elements must be set to true
//for this parameter to have effect.
var auto_seek_notification_duration = null;

//Flag determining whether or not the player should block
//the video player controls
//Possible values: true, false
//Meaning: true = the video player controls will be blocked
//         false = the video player controls will not be blocked
var block_controls = true;

//Complete URL to a SWF file used for bitrate testing when a video_url
//is a SMIL file
var bitrate_payload_url = "http://www.cbs.com/originals/inturn2/panache/BitratePayload.swf";

//The number of seconds of video that should be buffered
//when the video is initially loaded
var load_buffer_size = 30;
									  
//The number of seconds of video that should be buffered
//when the video is playing and the buffer is empty
var play_buffer_size = 5;

//--------------------------------------------------------------------------------

if (panRenderPlayer == 0)
{
		alert("This page requires PanVideoPlayer_Functions.js.");
}
else
{
	panRenderPlayer();
}

//--------------------------------------------------------------------------------


//================================================================================
