var flashvars = {};

var params = {
	play: "true",
	loop: "true",
	menu: "false",
	scale: "noScale",
	wmode: "transparent"
};

var attributes = {};

function embedFlash() {
	swfobject.embedSWF(
		murl + "swfs/new/odaptor.swf",
		"odapter-demo-flash",
		"300",
		"250",
		"8",
		false,
		flashvars,
		params,
		attributes
	);
}

$(document).ready(function(){
	$("#odapter-demo-flash").hide();

	$(".learn-more-odapter").click(function(e) {
		e.preventDefault();

		if($("#odapter-demo-flash").is(':hidden')) {
			$('#solutions-vid-container').hide();
			$('#solutions-right-content').hide();
			$("#odaptor-demo-flash").show();
			embedFlash();
			$(".learn-more-odapter a").html("BACK TO VIDEO");
		}
		else {
			$("#odapter-demo-flash").html("").hide();
			$('#solutions-vid-container').show();
			$('#solutions-right-content').show();
			$(".learn-more-odapter a").html("MORE");
		}
	});
});
