/******************************************************************************
 ***	2009/05/14	dmagalnick	File created
 ***							mediablender.js
 ***							JavaScript file to define the samples for:
 ***							MediaBlender
 ******************************************************************************/

/******************************************************************************
 ***	Usage:	There are 3 main parts to this file:
 ***			1) Class Color - Defines the stylesheet class color of this
 ***				product.
 ***			2) Subjects - Defines the main subject blocks that will appear
 ***				when calling the page.
 ***			3) Samples - Defines, per subject, the available samples that
 ***				will be available when expanding the subject block.
 ***			
 ***			*** The samples blocks representing each subject must be
 ***			defined in the same order as the subjects. ***
 ***			
 ***			*** Each subject must have a corresponding samples block with
 ***			at least one sample in it. ***
 ***			
 ***			If either of these steps is not done correctly, the entire
 ***			display will break.
 ***			
 ***	Variable definitions for each sample object:
 ***			subject:	Subject that this sample belongs to, for use in
 ***						the "Featured" display.
 ***			title:	Title of each sample.
 ***			desc:	Description paragraph of each sample.
 ***			type:	Must be one of: image, movie
 ***			url1:	image:	URL of the image to display on the page
 ***					movie:	URL of the movie to play
 ***			url2:	image:	URL of what will open when the image is
 ***							clicked
 ***					movie:	URL of the screenshot image to load on top of
 ***							the movie
 ***			allowInFeatured	Says whether or not the sample will be able to
 ***							display on the "Featured" block. Acceptable
 ***							values: true, false (no quotes)
 ******************************************************************************/

function __getClassColor() { return "t4l_mb"; }

function __getSubjects()
{
	var arr_subjects = new Array();
//	begin defining the list of subjects to display
	arr_subjects.push( "Language Arts" );
	arr_subjects.push( "Holidays" );
	arr_subjects.push( "Social Studies" );
	arr_subjects.push( "Foreign Language" );
//	end defining the list of subjects to display
	
	return arr_subjects;
}

function __getSamples()
{
	var arr_samples = new Array();
	var arr_tmp = null;
	var obj_tmp = null;
//	begin defining the individual samples for each subject
	/**************************************************************************
	 ***	BEGIN - Language Arts
	 **************************************************************************/
	arr_tmp = new Array();
	
	//	begin sample
	obj_tmp = new Object();
	obj_tmp["subject"] = "Language Arts";
	obj_tmp["title"] = "Fairy Tales";
	obj_tmp["desc"] = "As part of a literature celebration, students created their own fairytales based on their knowledge of fairy tales. Students used the paint tools and the record feature to develop and create their own original fairytale. Students used the planning tools found on the Tech4Learning web site to organize and create their stories.  Each of the fairytales were published and shared on the classroom web site. ";
	obj_tmp["type"] = "image";
	obj_tmp["url1"] = "/userfiles/media/productvideos/samples/mediablender/mb_la_fairytale.jpg";
	obj_tmp["url2"] = "/userfiles/media/Samples/mediablender/mb_la_fairytale/vanessa.html";
	obj_tmp["allowInFeatured"] = true;
	arr_tmp.push( obj_tmp );
	obj_tmp = null;
	//	end sample

	arr_samples.push( arr_tmp );
	arr_tmp = null;
	/**************************************************************************
	 ***	END - Language Arts
	 **************************************************************************/
	
	/**************************************************************************
	 ***	BEGIN - Holidays
	 **************************************************************************/
	arr_tmp = new Array();
	
	//	begin sample
	obj_tmp = new Object();
	obj_tmp["subject"] = "Holidays";
	obj_tmp["title"] = "Multimedia Cards";
	obj_tmp["desc"] = "This project was created in a Kindergarten classroom as a Valentine\'s Day project.  Students used the paint tools to illustrate the things which they love the most and worked collaboratively with the teacher to type a sentence. Each of the students pages were combined to create a class book. The teacher printed out the project and placed it in the classroom library for students to enjoy all year long.";
	obj_tmp["type"] = "image";
	obj_tmp["url1"] = "/userfiles/media/productvideos/samples/mediablender/mb_h_valentine.jpg";
	obj_tmp["url2"] = "/userfiles/media/Samples/mediablender/mb_valentine/valentine.html";
	obj_tmp["allowInFeatured"] = true;
	arr_tmp.push( obj_tmp );
	obj_tmp = null;
	//	end sample

	arr_samples.push( arr_tmp );
	arr_tmp = null;
	/**************************************************************************
	 ***	END - Holidays
	 **************************************************************************/

	/**************************************************************************
	 ***	BEGIN - Social Studies
	 **************************************************************************/
	arr_tmp = new Array();
	
	//	begin sample
	obj_tmp = new Object();
	obj_tmp["subject"] = "Social Studies";
	obj_tmp["title"] = "Exploring Primary Documents";
	obj_tmp["desc"] = "Students were asked to choose a social issue which they have taken for granted. This student chose to create an interactive multimedia projects which highlights a woman\'s right to vote. Using primary sources as a resource the student was able to bring to life issue of woman\'s suffrage.";
	obj_tmp["type"] = "image";
	obj_tmp["url1"] = "/userfiles/media/productvideos/samples/mediablender/mb_ss_documents.jpg";
	obj_tmp["url2"] = "/userfiles/media/Samples/mediablender/mb_19th/nineteenth.html";
	obj_tmp["allowInFeatured"] = true;
	arr_tmp.push( obj_tmp );
	obj_tmp = null;
	//	end sample

	arr_samples.push( arr_tmp );
	arr_tmp = null;
	/**************************************************************************
	 ***	END - Social Studies
	 **************************************************************************/
	 	
	/**************************************************************************
	 ***	BEGIN - Foreign Language
	 **************************************************************************/
	arr_tmp = new Array();
	
	//	begin sample
	obj_tmp = new Object();
	obj_tmp["subject"] = "Foreign Language";
	obj_tmp["title"] = "How I Almost Lost My Brother";
	obj_tmp["desc"] = "Students in a secondary Spanish class created an original story in Spanish.  The students created an interactive presentation which includes both English and Spanish interpretations of the story. Students included recorded sound as practice to improve their Spanish speaking and writing skills.  Each group of student showcased their stories as part of a Spanish fair.";
	obj_tmp["type"] = "image";
	obj_tmp["url1"] = "/userfiles/media/productvideos/samples/mediablender/mb_fl_brother.jpg";
	obj_tmp["url2"] = "/userfiles/media/Samples/mediablender/mb_julie_story/mb_julie_spanish.html";
	obj_tmp["allowInFeatured"] = true;
	arr_tmp.push( obj_tmp );
	obj_tmp = null;
	//	end sample
	
	arr_samples.push( arr_tmp );
	arr_tmp = null;
	/**************************************************************************
	 ***	END - Foreign Language
	 **************************************************************************/
	
	
	return arr_samples;
}
