if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
	'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
		'width', '980',
	'height', '580',
	'src', 'kojii',
	'quality', 'high',
	'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
	'align', 'middle',
	'play', 'true',
	'loop', 'true',
	'scale', 'showall',
	'wmode', 'transparent',
	'devicefont', 'false',
	'id', 'kojii',
	'bgcolor', '#ffffff',
	'name', 'kojii',
	'menu', 'true',
	'allowFullScreen', 'false',
	'allowScriptAccess','sameDomain',
	'movie', 'kojii',
	'salign', ''
	); //end AC code
}

$(document).ready(function(){
      //this initializes all the modals
      $(".modal").dialog({
			bgiframe: true,
			autoOpen: false,
			width:944,
			modal: true,
			height:2000,
			resizeable:false
		  });
		  
		  //this initializes all the "close" buttons on all the modals
		  $(".modal .modalBack a").click(function(){
		     $(".modal").dialog("close");
		  });
		  
		  //this is just for demo purposes on how to pop a modal from a html page
		  $(".openModal1").click(function(){
		     $(".modalMusic").dialog("open");
		  });
		  
		   $(".openModal2").click(function(){
		     $(".modalModeling").dialog("open");
		  });

		  $(".openModal3").click(function(){
		     $(".modalActing").dialog("open");
		  });

});

//Instructions for flash
//you know how you create a link in flash? 
//so instead of a url like "http://www.yahoo.com", you put in "javascript:mdlMusic()" and that should pop the modal

function mdlMusic()
{
  $(".modalMusic").dialog("open");
}

function mdlModeling()
{
  $(".modalModeling").dialog("open");
}

function mdlActing()
{
  $(".modalActing").dialog("open");
}


