
video_dialog = function(title, video, width, height) {
	id = 0;
	content = [];
	content.push("<div style='margin-left: 18px; margin-top: 10px; margin-bottom: 12px'>");
	content.push("<embed type='application/x-shockwave-flash' ");
	content.push("src='/wp-content/plugins/flash-video-player/mediaplayer.swf' ");
	content.push("id='n"+id+"' name='n"+id+"' ");
	//content.push("autostart='true' ");
	content.push("quality='high' allowfullscreen='true' allowscriptaccess='always' wmode='opaque' ");
	content.push("flashvars='javascriptid=n"+id);
	content.push("&amp;height="+height+"&amp;width="+width+"&amp;");
	content.push("&amp;autostart=true&amp;");
	content.push("searchbar=false&amp;backcolor=0x333333&amp;frontcolor=0xffffff&amp;screencolor=0x000000&amp;");
	content.push("file=http://video.winweb.com"+video+"' ");
	content.push("width='"+width+"' height='"+height+"'>");
	content.push('</div>');
	var dlg = new dialog({
		title: title,
		width: width+44,
		content:content.join('')
	});
}

function popup_video(flv)
{
	switch (flv) {
		case "/onlineoffice/oo_overview_v1.flv":
			video_dialog('OnlineOffice: Overview', '/onlineoffice/oo_overview_v1.flv', 640, 438);
			break;
		case "/clients/vopres.flv":
			video_dialog('Client Profile: Vopres','/clients/vopres.flv', 640, 400);
			break;
		case "/clients/ake_photomontage.flv":
			video_dialog('Client Profile: Ake-lifestyle', '/clients/ake_photomontage.flv', 640, 400);
			break;
                case "/bootstrapping/winweb_focus_focus_focus.flv":
                        video_dialog('Bootstrapping: Focus Focus Focus', '/bootstrapping/winweb_focus_focus_focus.flv', 640, 400);
                        break;
                case "/bootstrapping/winweb_working_5_to_9.flv":
                        video_dialog('Bootstrapping: Working 5 to 9', '/bootstrapping/winweb_working_5_to_9.flv', 640, 400);
                        break;
                case "/bootstrapping/winweb_small_business_start_up.flv":
                        video_dialog('Bootstrapping: Small Business Start Up', '/bootstrapping/winweb_small_business_start_up.flv', 640, 400);
                        break;
                case "/bootstrapping/winweb_top_bootstrapping_rules.flv":
                        video_dialog('Bootstrapping: Top Bootstrapping Rules', '/bootstrapping/winweb_top_bootstrapping_rules.flv', 640, 400);
                        break;
                case "/bootstrapping/winweb_small_business_set_up.flv":
                        video_dialog('Bootstrapping: Small Business Set Up', '/bootstrapping/winweb_small_business_set_up.flv', 640, 400);
                        break;
                case "/bootstrapping/winweb_use_a_virtual_assistant.flv":
                        video_dialog('Bootstrapping: Use a Virtual Assistant', '/bootstrapping/winweb_use_a_virtual_assistant.flv', 640, 400);
                        break;
                case "/bootstrapping/winweb_running_a_home_business.flv":
                        video_dialog('Bootstrapping: Running a Home Business', '/bootstrapping/winweb_running_a_home_business.flv', 640, 400);
                        break;
                case "/bootstrapping/winweb_managing_your_business.flv":
                        video_dialog('Bootstrapping: Managing Your Buiness', '/bootstrapping/winweb_managing_your_business.flv', 640, 400);
                        break;
                case "/bootstrapping/winweb_finding_new_customers.flv":
                        video_dialog('Bootstrapping: Finding New Customers', '/bootstrapping/winweb_finding_new_customers.flv', 640, 400);
                        break;
                case "/bootstrapping/winweb_managing_your_small_office.flv":
                        video_dialog('Bootstrapping: Managing Your Office', '/bootstrapping/winweb_managing_your_small_office.flv', 640, 400);
                        break;
                case "/bootstrapping/ep11_30-day-cash-flow-extras.flv":
                        video_dialog('Automatic 30 Day CashFlow Forecast', '/bootstrapping/ep11_30-day-cash-flow-extras.flv', 640, 400);
                        break;
                case "/bootstrapping/ep12-business-startup-global-extras.flv":
                        video_dialog('Business Startups - Go Global with WinWeb', '/bootstrapping/ep12-business-startup-global-extras.flv', 640, 400);
                        break;
                case "/bootstrapping/ep13-why-buying-account-bookkeeping-mistake-extras.flv":
                        video_dialog('Why Buying Accounting or Bookkeeping Software is a Big Mistake', '/bootstrapping/ep13-why-buying-account-bookkeeping-mistake-extras.flv', 640, 400);
                        break;
                case "/bootstrapping/ep14-complete-company-intranet-extras.flv":
                        video_dialog('Complete Company Intranet At No Extra Cost', '/bootstrapping/ep14-complete-company-intranet-extras.flv', 640, 400);
                        break;
                case "/bootstrapping/ep15-emails-basics-extras.flv":
                        video_dialog('Email Basics For Every Small Business', '/bootstrapping/ep15-emails-basics-extras.flv', 640, 400);
                        break;
                case "/bootstrapping/ep16_essential-business-survival-extras.flv":
                        video_dialog('Small Business Software Essential To Business Survival', '/bootstrapping/ep16_essential-business-survival-extras.flv', 640, 400);
                        break;
                case "/bootstrapping/ep17-marketing-domain-name.flv":
                        video_dialog('Online Marketing - Starts With A Domain Name', '/bootstrapping/ep17-marketing-domain-name.flv', 640, 400);
                        break;
                case "/bootstrapping/ep18-restructuring-or-costcutting.flv":
                        video_dialog('Restructuring or Cost Cutting', '/bootstrapping/ep18-restructuring-or-costcutting.flv', 640, 400);
                        break;
                case "/bootstrapping/ep19-plan-your-business-with-swot.flv":
                        video_dialog('Plan Your Business Start-Up with SWOT', '/bootstrapping/ep19-plan-your-business-with-swot.flv', 640, 400);
                        break;
                case "/bootstrapping/ep20-benefits-of-a-website-hosted-by-winweb.flv":
                        video_dialog('The Benefits Of A Business Website Hosted By WinWeb', '/bootstrapping/ep20-benefits-of-a-website-hosted-by-winweb.flv', 640, 400);
                        break;
                case "/promo/winweb_at_the_bar.flv":
                        video_dialog('WinWeb OnlineOffice', '/promo/winweb_at_the_bar.flv', 640, 400);
                        break;
                case "/promo/winweb_go_for_a_drink.flv":
                        video_dialog('WinWeb OnlineOffice', '/promo/winweb_go_for_a_drink.flv', 640, 400);
                        break;
                case "/clients/ake_photomontage.flv":
                        video_dialog('User Profiles: AKE Lifestyle', '/clients/ake_photomontage.flv', 640, 400);
                        break;
                case "/clients/vopres.flv":
                        video_dialog('User Profiles: Vopres', '/clients/vopres.flv', 640, 400);
                        break;
                case "/clients/the_big_picture.flv":
                        video_dialog('User Profiles: The Big Picture', '/clients/the_big_picture.flv', 640, 400);
                        break;
	}
}

