/**
* Account-related Javascript routines for 44I
*
* Copyright (c)2008 44 Interactive. All Rights Reserved.
*
* SVN File: $Id: account.js 217 2008-07-28 19:06:27Z Mike Neugebauer $
* @author $Author: Mike Neugebauer $
* @version $Revision: 217 $
* @lastrevision $Date: 2008-07-28 14:06:27 -0500 (Mon, 28 Jul 2008) $
* @modifiedby $LastChangedBy: Mike Neugebauer $
* @lastmodified $LastChangedDate: 2008-07-28 14:06:27 -0500 (Mon, 28 Jul 2008) $
* @filesource $URL: svn+ssh://miken@svnhost.44i-dev.com/svnhome/base/branches/motormarket/js/account.js $
*/

jQuery(document).ready(function() {

$("#video_modal").jqm({toTop: true});

});


function displayVideo( )
{ 
    $('#video_modal').jqmShow(); 
    startVideo(); 
}

function hideVideo( )
{
    $('#video_modal').jqmHide();  
}


	function startVideo( )
	{
		startFlash( 'video.swf' );
	}


	function startFlash( swfIn )
	{ 
		var flashvars = {    };
		var params = {};
		params.wmode = "transparent";
		var attributes = {};
		swfobject.embedSWF("/_cust/flash/" + swfIn, "videoin", "405", "350", "9.0.0", "expressInstall.swf", flashvars, params, attributes); 
	}