document.write(unescape("%3Cscript type=text/javascript src=/js/swfobject.js%3E%3C/script%3E"));

/**
 * Friction TV - flash.js
 * 
 * functions to place flash objects into pages
 * 
 * @author Daniel Mullin daniel@nuguru.com
 * 
 */

/**
 * Friction TV - flash.js - swfPlayer()
 * 
 * place the player into the page
 * 
 * @author Neil Young neil@friction.tv
 * @author Paul Le paul@friction.tv
 * @param mode
 * @param debateId
 * @param videoId
 * @param embed
 * 
 */

function swfPlayer(mode, debateId, videoId, embed)
{	

	swfobject.embedSWF("/swf/player/player.swf?mode=" + mode + "&debate_id=" + debateId + "&video_id=" + videoId + "&embed=" + embed + "", "swf-player", "480", "300", "9.0.0", "expressInstall.swf");		
	
}

/**
 * Friction TV - flash.js - swfPlayer()
 * 
 * place the player into the page
 * 
 * @author Neil Young neil@friction.tv
 * @author Paul Le paul@friction.tv
 * @param mode
 * @param debateId
 * @param videoId
 * @param embed
 * 
 */

function swfHomePlayer(mode, debateId, videoId, embed)
{	

	swfobject.embedSWF("/swf/player/player.swf?mode=" + mode + "&debate_id=" + debateId + "&video_id=" + videoId + "&embed=" + embed + "", "swf-home-player", "300", "200", "9.0.0", "expressInstall.swf");		
	
}

/**
 * Friction TV - swf.js - swfTicker()
 * 
 * place the ticker
 * 
 * @author Daniel Mullin daniel@nuguru.com
 * @author Neil Young neil@friction.tv
 * @author Paul Le paul@friction.tv
 * @param articles
 * @param partnerProfileId
 * @todo pass articles into channel ticker widget
 * 
 */

function swfTicker(partnerProfileId)
{
	
	var flashvars = {};
	
	var params = {allowscriptaccess: "always"};
	
	var attributes = {};

	swfobject.embedSWF("/swf/ticker/ticker.swf?mode=1&partner_profile_id=" + partnerProfileId + "", "swf-ticker", "968", "31", "9.0.0", "expressInstall.swf", flashvars, params, attributes);		

}

/**
* Friction TV - swf.js - swfUploader()
* 
* place the file upload component into the page
* 
* @author Daniel Mullin daniel@nuguru.com
* @param token
* @param debateId
* 
*/

function swfUploader(token, debateId)
{
	
	swfobject.embedSWF("/swf/uploader/uploader.swf?token=" + token + "&debate_id=" + debateId + "", "uploader", "618", "75", "9.0.0", "expressInstall.swf");

}

/**
 * Friction TV - flash.js - swfWebcam()
 * 
 * place the player into the page
 * 
 * @author Daniel Mullin daniel@nuguru.com
 * @param mode
 * @param debateId
 * @param videoId
 * 
 */

function swfWebcam(token, debateId)
{	

	swfobject.embedSWF("/swf/webcam/webcam.swf?token=" + token + "&debate_id=" + debateId + "",  "swf-webcam", "480", "75", "9.0.0", "expressInstall.swf");		
	
}















/**
* Friction TV - flash.js - responsePlayer()
* 
* place the response player into the page
* 
* @author Neil Young neil@friction.tv
* @author Paul Le paul@friction.tv
* @param mode
* @param debateId
* @param videoId
* @param embed
* 
*/

function responsePlayer(mode, debateId, videoId, embed)
{	

	swfobject.embedSWF("/flex/player_v0.9.swf?mode=" + mode + "&debate_id=" + debateId + "&video_id=" + videoId + "&embed=" + embed + "", "response_player", "420", "345", "9.0.0", "expressInstall.swf");		
	
}

/**
* Friction TV - flash.js - coverFlow()
* 
* place the cover flow into the page
* 
* @author Neil Young neil@friction.tv
* @param debateId
* @param videoId
* 
*/
	
function coverFlow(debateId, videoId)
{

	swfobject.embedSWF("/flex/debatePageCF.swf?mode=1&debate_id=" + debateId + "", "cover_flow", "612", "90", "9.0.0", "expressInstall.swf");		
	
}

/**
* Friction TV - flash.js - webCam()
* 
* place the web cam component into the page
* 
* @author Neil Young neil@friction.tv
* @param userId
* @param debateId
* 
*/

function swfWebCam(userId, debateId)
{

	swfobject.embedSWF("/swf/webCam/webCam.swf?user_id=" + userId + "&debate_id=" + debateId + "", "webcam", "618", "285", "9.0.0", "expressInstall.swf");	

}



/**
* Friction TV - flash.js - webCam()
* 
* place the channel ticker widget into the page
* 
* @author Neil Young neil@friction.tv
* @author Paul Le paul@friction.tv
* @param articles
* @param partnerProfileId
* @todo pass articles into channel ticker widget
* 
*/

function channelTicker(partnerProfileId)
{
	var flashvars = {};
	var params = {
			allowscriptaccess: "always"
		};
	var attributes = {};

	swfobject.embedSWF("/flash/Ticker.swf?mode=1&partner_profile_id=" + partnerProfileId + "", "channel_ticker", "800", "31", "9.0.0", "expressInstall.swf", flashvars, params, attributes);		
	
}