$(function(){
	//Place Flash
	$('.flash_home').flashembed({
	    src: 'swf/home.swf',
	    width: "979px",
	    height: "363px",
	    wmode: "transparent"
	});
	$("#wrap_content").css("background","url('../images/bg/top_box_home.png') no-repeat");
	$('#carousel li img').css('cursor', 'pointer');
	$('#carousel li img').click(function(){
		var id = $(this).attr('id').replace('video_', '');
		var filename = $(this).attr('title');
		var splash = $(this).attr('src');
		GetVideo(id, filename, splash, 256, 192);
		return false;
  });
});

function welcome (){
  var content = "<div id='welcome'><div class='title'><img src='/images/title/welcome.png' alt='Welcome to Mojo Marketing!' title='Welcome to Mojo Marketing!' height=41 width=251/></div><p>Welcome to Mojo Marketing &amp; Media, the first and only entertainment company whose mission is to encourage people to develop their personal social conscience, take action and get involved in making a positive difference in the lives of others.</p><p>Mojo was founded by Joy Stephenson, founding and managing partner of Stephenson, Acquitso &amp; Colman, the healthcare industry's premier litigation law firm, and Glenn Edwin &quot;Ed&quot; Moses, Olympic Champion swimmer and professional golfer.  Joy and Ed met while working together at the Caribbean Classic Golf Invitational in 2006 and quickly discovered they not only shared a love of golf, but also a passion for charitable work.</p><p>Combining the power of entertainment with the immediacy of interactive experience, Mojo produces original, high-quality, compelling family-friendly entertainment across a wide variety of platforms &ndash; including music, movies, sports, docudramas, concerts and reality-based content. First up, is &quot;The Moses Project (TMP),&quot; a reality-based show featuring Mojo co-founder Ed Moses. &quot;The Moses Project&quot;, a unique and exhilarating show which pits Moses and his posse against top athletes and celebrities in unusual contests with more than one million dollars going to charity, offers a true insiders' look into the competitors' lives and celebrity lifestyles.</p><p>Charities currently face an ever-growing demand for their services at a time when some are being forced to close their doors.  Philanthropy experts predict that more than 100,000 nonprofit groups nationwide will fail in the next two years.  Mojo helps fill the ever-widening gap between the resources organizations need to help the community and the resources available to these organizations.</p><p>Thank you for visiting our Web site.  As you'll see, we have podcasts, video, a blog and even a Mojo Shop.  We hope you'll tune in for our first venture, &quot;The Moses Project&quot;, currently in production and coming to the airwaves soon. And be sure check back for information on forthcoming projects and ways to get personally involved.</p><p>Sincerely,</p><table><tbody><tr><td><strong>Joy Stephenson</strong><br />Mojo Co-Founder &amp; President</td><td><strong>Ed Moses</strong><br />Mojo Co-Founder &amp; Vice President</td></tr></tbody></table></div>";
  $.openWindow(728, 553, "Welcome to Mojo Marketing!", content);
}

function GetVideo(id, filename, splash, width, height){
	$('#videoPlayer').flashembed({
	    src: '/swf/player.swf',
	    width: 256, 
	    height: 192
	  }, {
	    config: {
	      wmode: "transparent",
		  videoFile: '/uploads/videos/'+id+'/'+filename,
	      splashImageFile: splash.replace('thumb_', 'big_'),
	      controlBarBackground: 0x000000,
	      initialScale: 'fill',
	      initialVolumePercentage: 100,
	      loop: false,
	      menuItems: [true, true, true, true, true, false],
	      autoPlay: false,
	      autoBuffering: true,
	      autoHide: true
	    }
	});
}
