Jump to content

User:Anilande/dr.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// <pre><nowiki>
//  _________________________________________________________________________________________
// |                                                                                         |
// |                    === WARNING: GLOBAL GADGET FILE ===                                  |
// |                  Changes to this page affect many users.                                |
// | Please discuss changes on the talk page or on [[Wikipedia_talk:Gadget]] before editing. |
// |_________________________________________________________________________________________|
//
// Imports [[User:Anilande/dRin.js]]
// </nowiki></pre>

// ===UserScript===
// @name           DRin
// @namespace      DRin
// @include        http://*.wikipedia.org/*
// ===/UserScript===
//
// DRin launch helper script.
// Description: this script eases the procedure to launch DRin by instrumenting
// wikipedia pages with links and options to launch the application. 
//
// The current options to launch DRin are:
// click the 'View Visually' option in the left side toolbox menu and 'View Visually' tab on top tabs list.

var drGadget = {
	
	drUrl: null,
	ulEle: null,

	// wbLoadGadget is executed after the page finishes loading. It looks for specific
	// indicators and determines how to instrument the page with different options to launch the application
	drLoadGadget : function()
	{
		drGadget.narrativeViewTab();
		// looks for the Toolbar on edit pages, creates and appends a simple button in the format expected by the toolbar
       if(document.getElementById('p-views') || document.getElementById('p-cactions'))
		{
		    if(document.getElementById('p-views')){
				drGadget.ulEle = document.getElementById('p-views').getElementsByTagName("ul")[0];
			}else if(document.getElementById('p-cactions')){
				drGadget.ulEle = document.getElementById('p-cactions').getElementsByTagName("ul")[0];
			}
			drGadget.showNarrativeEditTab();
			drGadget.showNarrativeViewTab();
		}
	},
	showNarrativeViewTab : function(){
		var liVElem = document.createElement('li');
		liVElem.id = 'tabVDRin';
		var anchorVElem = document.createElement('a');
		anchorVElem.title = "View Narrative";
		anchorVElem.id = "toolbarLinkDRin";
		anchorVElem.innerHTML = "<span>View Narrative</span>";
		anchorVElem.href = drGadget.drUrl;
		liVElem.appendChild(anchorVElem);
		drGadget.ulEle.insertBefore(liVElem, drGadget.ulEle.firstChild);
		return true;
	},
	showNarrativeEditTab : function(){
		var liEElem = document.createElement('li');
		liEElem.id = 'tabEDRin';
		var anchorEElem = document.createElement('a');
		anchorEElem.title = "Edit Narrative";
		anchorEElem.id = "toolbarLinkDRin";
		anchorEElem.innerHTML = "<span>Edit Narrative</span>";
		anchorEElem.href = "javascript:editNarrative();";
		liEElem.appendChild(anchorEElem);
		if(document.getElementById('p-views')){
			var liElem = document.getElementById('p-views').getElementsByTagName("ul")[0].getElementsByTagName("li")[2];
		}else if(document.getElementById('p-cactions')){
			var liElem = document.getElementById('p-cactions').getElementsByTagName("ul")[0].getElementsByTagName("li")[2];
		}
		drGadget.ulEle.insertBefore(liEElem, liElem);
		return true;
	},
	getCurrentArticleTitle: function() {      
		if (typeof wgTitle !== "undefined") {
			if (wgAction === "view" && wgArticleId === 0 && wgIsArticle === false) {
				return false;
			}
			//in addition to the page title, get the name space also if it exists.
			if (typeof wgCanonicalNamespace !== "undefined" && wgCanonicalNamespace.length > 0) {
				return wgCanonicalNamespace + ":" + wgTitle;
			}
			return wgTitle;
		}
	},
	narrativeViewTab : function(){
		var title = drGadget.getCurrentArticleTitle();
		if(title){
			var docHeight = ((document.height - 100)<700)?(document.height - 100):700;
			drGadget.drUrl = 'javascript:(function(){ document.getElementById("content").innerHTML = "<iframe src=\'http://msri-digitalpro/rin/?PlayerMode=Dynamic&NarrativeId='+title+'\' width=\'100%\' height=\''+docHeight+'px\'></iframe>"; selectTab("tabVDRin");})();';
			return true;
		}else{
			return false;
		}
	}
};

var selectTab = function(tabObj) {  
	var classArr = ["tabEDRin", "tabVDRin", "ca-view", "ca-edit", "ca-history", "ca-nstab-main", "ca-talk", "ca-move", "ca-watch"];
	for(var i=0; i<classArr.length; i++){
		if(document.getElementById(classArr[i])){
			document.getElementById(classArr[i]).className=""; 
		}
	}
	document.getElementById(tabObj).className="selected"; 
};

var attachStyle = function (url) {
	if (url && url.length > 0) {
		var head = document.getElementsByTagName("head")[0];
		var link = document.createElement("link");
		link.type = "text/css";
		link.rel = "stylesheet";
		link.media = "screen";
		link.href = url;
		head.appendChild(link);
	}
	return true;
};

var attachJS = function (url) {
	if (url && url.length > 0) {
		$.getScript(url, function() {return;});
	}
};

var replaceHtmlSymbolWithCode = function (text) {
	var symbolAndCode = { "<":"&lt;" };
	for (var symbol in symbolAndCode) {
		text = text.replace(new RegExp(symbol, "g"), symbolAndCode[symbol]);
	}
	return text;
};


var editNarrative = function(){
	selectTab('tabEDRin');
	rinXMLData = '<?xml version="1.0" encoding="utf-8" ?> <narrative RinVersion="0.0">\n  <narrativeheader xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="32a38f95-c046-4a69-b654-25ac55e6d812" Timestamp="2010-10-14T00:56:27.3062073Z" StartSegment="defaultSegment"></narrativeheader>\n  <auxiliarydata>\n\t<item Key="narrative-info">\n\t  <narrativedata>\n\t\t<author>Dynamic RIN Engine</author> \n\t\t<description>Dynamic RIN on topic Foobar</description> \n\t\t<title>A dynamic narrative on Foobar</title>\n\t  </narrativedata>\n\t</item>\n  </auxiliarydata>\n <segments>\n\t<segment Id="defaultSegment">\n\t  <segmentheader EstimatedDuration="65.7" DefaultScreenplay="English"></segmentheader>\n\t  <auxiliarydata></auxiliarydata>\n\t\t<resourcetable>  \n\t\t<resource Id="raudio">\n\t\t<resourceheader DefaultUriReference="$ROOT$/clientbin/DemoNarratives/Dynamic/Kalimba.mp3"></resourceheader>\n\t\t</resource>\n\t<resource Id="r1">\n\t\t<resourceheader DefaultUriReference="http://i.pbase.com/g6/22/16522/2/81927478.4NPvu5xL.jpg"></resourceheader>\n\t</resource>\n\t<resource Id="r2">\n\t\t<resourceheader DefaultUriReference="http://img233.imageshack.us/img233/5523/Foobar.jpg"></resourceheader>\n\t</resource>\n\t<resource Id="r3">\n\t\t<resourceheader DefaultUriReference="http://escanoassociates.com/images/carousel/image004.jpg"></resourceheader>\n\t</resource>\n\t<resource Id="r4">\n\t\t<resourceheader DefaultUriReference="http://www.m2review.com/blog/wp-content/uploads/2009/03/foobar2000_skin_02_s.jpg"></resourceheader>\n\t</resource>\n\t<resource Id="r5">\n\t\t<resourceheader DefaultUriReference="http://www.drinkprices.com/users/3/photos/466.jpg"></resourceheader>\n\t</resource>\n\t<resource Id="r6">\n\t\t<resourceheader DefaultUriReference="http://escanoassociates.com/images/carousel/image007.jpg"></resourceheader>\n\t</resource>\n\t<resource Id="r7">\n\t\t<resourceheader DefaultUriReference="http://www.pcmech.com/images/FF/foobar/foobar1.JPG"></resourceheader>\n\t</resource>\n\t<resource Id="r8">\n\t\t<resourceheader DefaultUriReference="http://wiki.hydrogenaudio.org/images/4/43/Foobar2000-Masstagger.png"></resourceheader>\n\t</resource>\n\t<resource Id="r9">\n\t\t<resourceheader DefaultUriReference="http://i175.photobucket.com/albums/w143/tdwctdwc/Capture-1.jpg"></resourceheader>\n\t</resource>\n\t<resource Id="r10">\n\t\t<resourceheader DefaultUriReference="http://www.algorithm.com.au/albums/foobar_movies/image004.jpg"></resourceheader>\n\t</resource>\n\t<resource Id="r11">\n\t\t<resourceheader DefaultUriReference="http://tech.spaceempires.net/foobar2000/img/fyron_foobar9.png"></resourceheader>\n\t</resource>\n\t<resource Id="r12">\n\t\t<resourceheader DefaultUriReference="http://i571.photobucket.com/albums/ss153/sioblackbear/mugen/35.png"></resourceheader>\n\t</resource>\n\t<resource Id="r13">\n\t\t<resourceheader DefaultUriReference="http://lh6.ggpht.com/_DDafOy6GtJI/S3-kml6YasI/AAAAAAAAAic/dRtf1iqumyc/Fullscreen%20capture%202202010%2040000%20PM.jpg"></resourceheader>\n\t</resource>\n\t<resource Id="r14">\n\t\t<resourceheader DefaultUriReference="http://i296.photobucket.com/albums/mm184/nor_spoon/Diverse/foobar_gui.jpg"></resourceheader>\n\t</resource>\n\t<resource Id="r15">\n\t\t<resourceheader DefaultUriReference="http://img.brothersoft.com/screenshots/softimage/e/edcast_for_foobar-198159-1229050913.jpeg"></resourceheader>\n\t</resource>\n  </resourcetable> \n  <experiencestreams>\n \n<experiencestream Id="ScreenPlayEnglish">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.SubTitleExperienceStream"></provider>\n\t\t  </experiencestreamheader>\n\t\t  <auxiliarydata>\n\t\t\t<item Key="default">\n\t\t\t  <features EnableAutoPauseOnUserInput="false"></features>\n\t\t\t</item>\n\t\t  </auxiliarydata>\n\t\t  <requiredresourcesonload></requiredresourcesonload>\n\t\t  <keyframesequences>\n\t\t\t<keyframesequence Id="default">\n\t\t\t  <keyframesequenceheader></keyframesequenceheader>\n\t\t\t  <requiredresources></requiredresources>\n\t\t\t  <keyframes>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="0"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <text Subtitle="A Dynamic Narrative On Foobar"></text>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="4"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <text Subtitle="The terms foobar, foo, bar, baz and qux are sometimes used as placeholder names  in computer programming or computer-related documentation."></text>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="13.4"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <text Subtitle="They have been used to name entities such as variables, functions, and commands whose purpose is unimportant and serve only to demonstrate a concept."></text>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="24.68"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <text Subtitle="The words themselves have no meaning in this usage."></text>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="28.91"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <text Subtitle="Usage in code"></text>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="32.91"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <text Subtitle="The terms are very often used in programming examples, much like the Hello World program is commonly used as an introduction."></text>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="42.78"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <text Subtitle="For example, foo and bar might be used to illustrate a simple string concatenation."></text>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="49.36"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <text Subtitle="Usage in culture"></text>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="53.36"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <text Subtitle="$foo is the name of a Perl programming magazine, and Foo Camp is an annual hacker convention."></text>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="61.35"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <text Subtitle=" During the United States v."></text>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="63.7"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <text Subtitle=""></text>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t  </keyframes>\n\t\t\t</keyframesequence>\n\t\t  </keyframesequences>\n\t\t  <sequencemarkers></sequencemarkers>\n\t\t</experiencestream>\n\t\t<experiencestream Id="MusicAudio">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.AudioExperienceStream"></provider>\n\t\t  </experiencestreamheader>\n\t\t  <requiredresourcesonload>\n\t\t\t<resourcereference Ref="raudio"></resourcereference>\n\t\t  </requiredresourcesonload>\n\t\t  <keyframesequences>\n\t\t\t<keyframesequence Id="default">\n\t\t\t  <keyframesequenceheader></keyframesequenceheader>\n\t\t\t  <requiredresources></requiredresources>\n\t\t\t  <keyframes>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="0"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf Volume="0.2"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t  </keyframes>\n\t\t\t</keyframesequence>\n\t\t  </keyframesequences>\n\t\t  <sequencemarkers></sequencemarkers>\n\t\t</experiencestream>\n\t<experiencestream Id="Title0">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.TitleExperienceStream"></provider>\n\t\t  </experiencestreamheader>\n\t  <auxiliarydata> \n\t\t<item Key="default"> <kf Title="A Dynamic Narrative On Foobar"></kf></item>\n\t  </auxiliarydata>\n\t  <requiredresourcesonload></requiredresourcesonload> \n\t  <keyframesequences>\n\t\t<keyframesequence Id="default">\n\t\t  <keyframesequenceheader></keyframesequenceheader>\n\t\t  <requiredresources></requiredresources> \n\t\t  <keyframes> \n\t\t\t\n\t\t  </keyframes>\n\t\t</keyframesequence>\n\t  </keyframesequences>\n\t  <sequencemarkers></sequencemarkers> \n\t</experiencestream>\n\t\t<experiencestream Id="DRinAudio0">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.DRinAudioExperienceStream"></provider>\n\t\t  </experiencestreamheader>\n\t\t\t<auxiliarydata>\n\t\t\t<item Key="default">\n\t\t\t\t<info SectionIndex="0"></info>\n\t\t\t</item>\n\t\t\t</auxiliarydata>\n\t\t  <requiredresourcesonload>\n\t\t\t<resourcereference Ref="r0"></resourcereference>\n\t\t  </requiredresourcesonload>\n\t\t  <keyframesequences>\n\t\t\t<keyframesequence Id="default">\n\t\t\t  <keyframesequenceheader></keyframesequenceheader>\n\t\t\t  <requiredresources></requiredresources>\n\t\t\t  <keyframes>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="0"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf Volume="1"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t  </keyframes>\n\t\t\t</keyframesequence>\n\t\t  </keyframesequences>\n\t\t  <sequencemarkers></sequencemarkers>\n\t\t</experiencestream>\n\t\t<experiencestream Id="Image1">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"></provider>\n\t\t  </experiencestreamheader>\n\t\t  <auxiliarydata>\n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.FadeInOutTransitionService"></info>\n\t\t\t</item>\n\t\t  </auxiliarydata>\n\t\t  <requiredresourcesonload>\n\t\t\t<resourcereference Ref="r1"></resourcereference>\n\t\t  </requiredresourcesonload>\n\t\t<keyframesequences>\n\t\t\t<keyframesequence Id="default">\n\t\t\t  <keyframesequenceheader></keyframesequenceheader>\n\t\t\t  <requiredresources></requiredresources>\n\t\t\t  <keyframes>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="2"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="3" Y="3" ScaleX="1.1" ScaleY="1.1"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="4"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="-3" Y="-3" ScaleX="1.2" ScaleY="1.2"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t  </keyframes>\n\t\t\t</keyframesequence>\n\t\t  </keyframesequences>\n\t\t  <sequencemarkers></sequencemarkers>\n\t\t</experiencestream>\n\t\t<experiencestream Id="Image2">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"></provider>\n\t\t  </experiencestreamheader>\n\t\t  <auxiliarydata>\n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.FadeInOutTransitionService"></info>\n\t\t\t</item>\n\t\t  </auxiliarydata>\n\t\t  <requiredresourcesonload>\n\t\t\t<resourcereference Ref="r2"></resourcereference>\n\t\t  </requiredresourcesonload>\n\t\t<keyframesequences>\n\t\t\t<keyframesequence Id="default">\n\t\t\t  <keyframesequenceheader></keyframesequenceheader>\n\t\t\t  <requiredresources></requiredresources>\n\t\t\t  <keyframes>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="2"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="3" Y="3" ScaleX="1.1" ScaleY="1.1"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="4"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="-3" Y="-3" ScaleX="1.2" ScaleY="1.2"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t  </keyframes>\n\t\t\t</keyframesequence>\n\t\t  </keyframesequences>\n\t\t  <sequencemarkers></sequencemarkers>\n\t\t</experiencestream>\n\t\t<experiencestream Id="Image3">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"></provider>\n\t\t  </experiencestreamheader>\n\t\t  <auxiliarydata>\n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.FadeInOutTransitionService"></info>\n\t\t\t</item>\n\t\t  </auxiliarydata>\n\t\t  <requiredresourcesonload>\n\t\t\t<resourcereference Ref="r3"></resourcereference>\n\t\t  </requiredresourcesonload>\n\t\t<keyframesequences>\n\t\t\t<keyframesequence Id="default">\n\t\t\t  <keyframesequenceheader></keyframesequenceheader>\n\t\t\t  <requiredresources></requiredresources>\n\t\t\t  <keyframes>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="2"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="-3" Y="-3" ScaleX="1.1" ScaleY="1.1"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="4"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="3" Y="3" ScaleX="1.2" ScaleY="1.2"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t  </keyframes>\n\t\t\t</keyframesequence>\n\t\t  </keyframesequences>\n\t\t  <sequencemarkers></sequencemarkers>\n\t\t</experiencestream>\n\t\t<experiencestream Id="Image4">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"></provider>\n\t\t  </experiencestreamheader>\n\t\t  <auxiliarydata>\n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.WipeTransition"></info>\n\t\t\t</item>\n\t\t  </auxiliarydata>\n\t\t  <requiredresourcesonload>\n\t\t\t<resourcereference Ref="r4"></resourcereference>\n\t\t  </requiredresourcesonload>\n\t\t<keyframesequences>\n\t\t\t<keyframesequence Id="default">\n\t\t\t  <keyframesequenceheader></keyframesequenceheader>\n\t\t\t  <requiredresources></requiredresources>\n\t\t\t  <keyframes>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="2"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="3" Y="-3" ScaleX="1.1" ScaleY="1.1"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="4"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="-3" Y="3" ScaleX="1.2" ScaleY="1.2"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t  </keyframes>\n\t\t\t</keyframesequence>\n\t\t  </keyframesequences>\n\t\t  <sequencemarkers></sequencemarkers>\n\t\t</experiencestream>\n\t<experiencestream Id="Title1">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.TitleExperienceStream"></provider>\n\t\t  </experiencestreamheader>\n\t  <auxiliarydata> \n\t\t<item Key="default"> <kf Title="Usage in code"></kf></item>\n\t  </auxiliarydata>\n\t  <requiredresourcesonload></requiredresourcesonload> \n\t  <keyframesequences>\n\t\t<keyframesequence Id="default">\n\t\t  <keyframesequenceheader></keyframesequenceheader>\n\t\t  <requiredresources></requiredresources> \n\t\t  <keyframes> \n\t\t\t\n\t\t  </keyframes>\n\t\t</keyframesequence>\n\t  </keyframesequences>\n\t  <sequencemarkers></sequencemarkers> \n\t</experiencestream>\n\t\t<experiencestream Id="DRinAudio1">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.DRinAudioExperienceStream"></provider>\n\t\t  </experiencestreamheader>\n\t\t\t<auxiliarydata>\n\t\t\t<item Key="default">\n\t\t\t\t<info SectionIndex="1"></info>\n\t\t\t</item>\n\t\t\t</auxiliarydata>\n\t\t  <requiredresourcesonload>\n\t\t\t<resourcereference Ref="r0"></resourcereference>\n\t\t  </requiredresourcesonload>\n\t\t  <keyframesequences>\n\t\t\t<keyframesequence Id="default">\n\t\t\t  <keyframesequenceheader></keyframesequenceheader>\n\t\t\t  <requiredresources></requiredresources>\n\t\t\t  <keyframes>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="0"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf Volume="1"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t  </keyframes>\n\t\t\t</keyframesequence>\n\t\t  </keyframesequences>\n\t\t  <sequencemarkers></sequencemarkers>\n\t\t</experiencestream>\n\t\t<experiencestream Id="Image5">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"></provider>\n\t\t  </experiencestreamheader>\n\t\t  <auxiliarydata>\n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.WipeTransition"></info>\n\t\t\t</item>\n\t\t  </auxiliarydata>\n\t\t  <requiredresourcesonload>\n\t\t\t<resourcereference Ref="r5"></resourcereference>\n\t\t  </requiredresourcesonload>\n\t\t<keyframesequences>\n\t\t\t<keyframesequence Id="default">\n\t\t\t  <keyframesequenceheader></keyframesequenceheader>\n\t\t\t  <requiredresources></requiredresources>\n\t\t\t  <keyframes>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="2"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="3" Y="3" ScaleX="1.1" ScaleY="1.1"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="4"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="-3" Y="-3" ScaleX="1.2" ScaleY="1.2"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t  </keyframes>\n\t\t\t</keyframesequence>\n\t\t  </keyframesequences>\n\t\t  <sequencemarkers></sequencemarkers>\n\t\t</experiencestream>\n\t\t<experiencestream Id="Image6">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"></provider>\n\t\t  </experiencestreamheader>\n\t\t  <auxiliarydata>\n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.FadeInOutTransitionService"></info>\n\t\t\t</item>\n\t\t  </auxiliarydata>\n\t\t  <requiredresourcesonload>\n\t\t\t<resourcereference Ref="r6"></resourcereference>\n\t\t  </requiredresourcesonload>\n\t\t<keyframesequences>\n\t\t\t<keyframesequence Id="default">\n\t\t\t  <keyframesequenceheader></keyframesequenceheader>\n\t\t\t  <requiredresources></requiredresources>\n\t\t\t  <keyframes>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="2"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="-3" Y="-3" ScaleX="1.1" ScaleY="1.1"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="4"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="3" Y="3" ScaleX="1.2" ScaleY="1.2"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t  </keyframes>\n\t\t\t</keyframesequence>\n\t\t  </keyframesequences>\n\t\t  <sequencemarkers></sequencemarkers>\n\t\t</experiencestream>\n\t\t<experiencestream Id="Image7">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"></provider>\n\t\t  </experiencestreamheader>\n\t\t  <auxiliarydata>\n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.FadeInOutTransitionService"></info>\n\t\t\t</item>\n\t\t  </auxiliarydata>\n\t\t  <requiredresourcesonload>\n\t\t\t<resourcereference Ref="r7"></resourcereference>\n\t\t  </requiredresourcesonload>\n\t\t<keyframesequences>\n\t\t\t<keyframesequence Id="default">\n\t\t\t  <keyframesequenceheader></keyframesequenceheader>\n\t\t\t  <requiredresources></requiredresources>\n\t\t\t  <keyframes>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="2"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="3" Y="3" ScaleX="1.1" ScaleY="1.1"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="4"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="-3" Y="-3" ScaleX="1.2" ScaleY="1.2"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t  </keyframes>\n\t\t\t</keyframesequence>\n\t\t  </keyframesequences>\n\t\t  <sequencemarkers></sequencemarkers>\n\t\t</experiencestream>\n\t\t<experiencestream Id="Image8">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"></provider>\n\t\t  </experiencestreamheader>\n\t\t  <auxiliarydata>\n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.FadeInOutTransitionService"></info>\n\t\t\t</item>\n\t\t  </auxiliarydata>\n\t\t  <requiredresourcesonload>\n\t\t\t<resourcereference Ref="r8"></resourcereference>\n\t\t  </requiredresourcesonload>\n\t\t<keyframesequences>\n\t\t\t<keyframesequence Id="default">\n\t\t\t  <keyframesequenceheader></keyframesequenceheader>\n\t\t\t  <requiredresources></requiredresources>\n\t\t\t  <keyframes>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="2"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="-3" Y="-3" ScaleX="1.1" ScaleY="1.1"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="4"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="3" Y="3" ScaleX="1.2" ScaleY="1.2"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t  </keyframes>\n\t\t\t</keyframesequence>\n\t\t  </keyframesequences>\n\t\t  <sequencemarkers></sequencemarkers>\n\t\t</experiencestream>\n\t<experiencestream Id="Title2">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.TitleExperienceStream"></provider>\n\t\t  </experiencestreamheader>\n\t  <auxiliarydata> \n\t\t<item Key="default"> <kf Title="Usage in culture"></kf></item>\n\t  </auxiliarydata>\n\t  <requiredresourcesonload></requiredresourcesonload> \n\t  <keyframesequences>\n\t\t<keyframesequence Id="default">\n\t\t  <keyframesequenceheader></keyframesequenceheader>\n\t\t  <requiredresources></requiredresources> \n\t\t  <keyframes> \n\t\t\t\n\t\t  </keyframes>\n\t\t</keyframesequence>\n\t  </keyframesequences>\n\t  <sequencemarkers></sequencemarkers> \n\t</experiencestream>\n\t\t<experiencestream Id="DRinAudio2">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.DRinAudioExperienceStream"></provider>\n\t\t  </experiencestreamheader>\n\t\t\t<auxiliarydata>\n\t\t\t<item Key="default">\n\t\t\t\t<info SectionIndex="2"></info>\n\t\t\t</item>\n\t\t\t</auxiliarydata>\n\t\t  <requiredresourcesonload>\n\t\t\t<resourcereference Ref="r0"></resourcereference>\n\t\t  </requiredresourcesonload>\n\t\t  <keyframesequences>\n\t\t\t<keyframesequence Id="default">\n\t\t\t  <keyframesequenceheader></keyframesequenceheader>\n\t\t\t  <requiredresources></requiredresources>\n\t\t\t  <keyframes>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="0"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf Volume="1"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t  </keyframes>\n\t\t\t</keyframesequence>\n\t\t  </keyframesequences>\n\t\t  <sequencemarkers></sequencemarkers>\n\t\t</experiencestream>\n\t\t<experiencestream Id="Image9">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"></provider>\n\t\t  </experiencestreamheader>\n\t\t  <auxiliarydata>\n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.WipeTransition"></info>\n\t\t\t</item>\n\t\t  </auxiliarydata>\n\t\t  <requiredresourcesonload>\n\t\t\t<resourcereference Ref="r9"></resourcereference>\n\t\t  </requiredresourcesonload>\n\t\t<keyframesequences>\n\t\t\t<keyframesequence Id="default">\n\t\t\t  <keyframesequenceheader></keyframesequenceheader>\n\t\t\t  <requiredresources></requiredresources>\n\t\t\t  <keyframes>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="2"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="-3" Y="-3" ScaleX="1.1" ScaleY="1.1"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="4"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="3" Y="3" ScaleX="1.2" ScaleY="1.2"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t  </keyframes>\n\t\t\t</keyframesequence>\n\t\t  </keyframesequences>\n\t\t  <sequencemarkers></sequencemarkers>\n\t\t</experiencestream>\n\t\t<experiencestream Id="Image10">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"></provider>\n\t\t  </experiencestreamheader>\n\t\t  <auxiliarydata>\n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.FadeInOutTransitionService"></info>\n\t\t\t</item>\n\t\t  </auxiliarydata>\n\t\t  <requiredresourcesonload>\n\t\t\t<resourcereference Ref="r10"></resourcereference>\n\t\t  </requiredresourcesonload>\n\t\t<keyframesequences>\n\t\t\t<keyframesequence Id="default">\n\t\t\t  <keyframesequenceheader></keyframesequenceheader>\n\t\t\t  <requiredresources></requiredresources>\n\t\t\t  <keyframes>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="2"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="-3" Y="-3" ScaleX="1.1" ScaleY="1.1"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="4"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="3" Y="3" ScaleX="1.2" ScaleY="1.2"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t  </keyframes>\n\t\t\t</keyframesequence>\n\t\t  </keyframesequences>\n\t\t  <sequencemarkers></sequencemarkers>\n\t\t</experiencestream>\n\t\t<experiencestream Id="Image11">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"></provider>\n\t\t  </experiencestreamheader>\n\t\t  <auxiliarydata>\n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.WipeTransition"></info>\n\t\t\t</item>\n\t\t  </auxiliarydata>\n\t\t  <requiredresourcesonload>\n\t\t\t<resourcereference Ref="r11"></resourcereference>\n\t\t  </requiredresourcesonload>\n\t\t<keyframesequences>\n\t\t\t<keyframesequence Id="default">\n\t\t\t  <keyframesequenceheader></keyframesequenceheader>\n\t\t\t  <requiredresources></requiredresources>\n\t\t\t  <keyframes>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="2"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="-3" Y="-3" ScaleX="1.1" ScaleY="1.1"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="4"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="3" Y="3" ScaleX="1.2" ScaleY="1.2"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t  </keyframes>\n\t\t\t</keyframesequence>\n\t\t  </keyframesequences>\n\t\t  <sequencemarkers></sequencemarkers>\n\t\t</experiencestream>\n\t\t<experiencestream Id="Image12">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"></provider>\n\t\t  </experiencestreamheader>\n\t\t  <auxiliarydata>\n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.FadeInOutTransitionService"></info>\n\t\t\t</item>\n\t\t  </auxiliarydata>\n\t\t  <requiredresourcesonload>\n\t\t\t<resourcereference Ref="r12"></resourcereference>\n\t\t  </requiredresourcesonload>\n\t\t<keyframesequences>\n\t\t\t<keyframesequence Id="default">\n\t\t\t  <keyframesequenceheader></keyframesequenceheader>\n\t\t\t  <requiredresources></requiredresources>\n\t\t\t  <keyframes>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="2"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="3" Y="-3" ScaleX="1.1" ScaleY="1.1"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="4"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="-3" Y="3" ScaleX="1.2" ScaleY="1.2"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t  </keyframes>\n\t\t\t</keyframesequence>\n\t\t  </keyframesequences>\n\t\t  <sequencemarkers></sequencemarkers>\n\t\t</experiencestream>\n\t\t<experiencestream Id="Image13">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"></provider>\n\t\t  </experiencestreamheader>\n\t\t  <auxiliarydata>\n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.FadeInOutTransitionService"></info>\n\t\t\t</item>\n\t\t  </auxiliarydata>\n\t\t  <requiredresourcesonload>\n\t\t\t<resourcereference Ref="r13"></resourcereference>\n\t\t  </requiredresourcesonload>\n\t\t<keyframesequences>\n\t\t\t<keyframesequence Id="default">\n\t\t\t  <keyframesequenceheader></keyframesequenceheader>\n\t\t\t  <requiredresources></requiredresources>\n\t\t\t  <keyframes>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="2"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="3" Y="3" ScaleX="1.1" ScaleY="1.1"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="4"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="-3" Y="-3" ScaleX="1.2" ScaleY="1.2"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t  </keyframes>\n\t\t\t</keyframesequence>\n\t\t  </keyframesequences>\n\t\t  <sequencemarkers></sequencemarkers>\n\t\t</experiencestream>\n\t\t<experiencestream Id="Image14">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"></provider>\n\t\t  </experiencestreamheader>\n\t\t  <auxiliarydata>\n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.FadeInOutTransitionService"></info>\n\t\t\t</item>\n\t\t  </auxiliarydata>\n\t\t  <requiredresourcesonload>\n\t\t\t<resourcereference Ref="r14"></resourcereference>\n\t\t  </requiredresourcesonload>\n\t\t<keyframesequences>\n\t\t\t<keyframesequence Id="default">\n\t\t\t  <keyframesequenceheader></keyframesequenceheader>\n\t\t\t  <requiredresources></requiredresources>\n\t\t\t  <keyframes>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="2"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="3" Y="3" ScaleX="1.1" ScaleY="1.1"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="4"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="-3" Y="-3" ScaleX="1.2" ScaleY="1.2"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t  </keyframes>\n\t\t\t</keyframesequence>\n\t\t  </keyframesequences>\n\t\t  <sequencemarkers></sequencemarkers>\n\t\t</experiencestream>\n\t\t<experiencestream Id="Image15">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"></provider>\n\t\t  </experiencestreamheader>\n\t\t  <auxiliarydata>\n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.WipeTransition"></info>\n\t\t\t</item>\n\t\t  </auxiliarydata>\n\t\t  <requiredresourcesonload>\n\t\t\t<resourcereference Ref="r15"></resourcereference>\n\t\t  </requiredresourcesonload>\n\t\t<keyframesequences>\n\t\t\t<keyframesequence Id="default">\n\t\t\t  <keyframesequenceheader></keyframesequenceheader>\n\t\t\t  <requiredresources></requiredresources>\n\t\t\t  <keyframes>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="2"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="-3" Y="-3" ScaleX="1.1" ScaleY="1.1"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t\t<keyframe>\n\t\t\t\t  <keyframeheader Offset="4"></keyframeheader>\n\t\t\t\t  <auxiliarydata>\n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <kf X="3" Y="3" ScaleX="1.2" ScaleY="1.2"></kf>\n\t\t\t\t\t</item>\n\t\t\t\t  </auxiliarydata>\n\t\t\t\t</keyframe>\n\t\t\t  </keyframes>\n\t\t\t</keyframesequence>\n\t\t  </keyframesequences>\n\t\t  <sequencemarkers></sequencemarkers>\n\t\t</experiencestream>\n  </experiencestreams>\n\t  <screenplays>\n\t\t<screenplay Id="English">\n\t\t  <screenplayheader></screenplayheader>\n\t\t  <auxiliarydata>\n\t\t\t<item Key="ExperienceStreams">\n\t\t\t  <experiencestreams>\n\t\t\t\t<experiencestream Id="MusicAudio" Begin="0" Dur="65.7" Layer="background"></experiencestream>\n\t\t<experiencestream Id="Title0" Begin="0" Dur="4" Layer="foreground"></experiencestream>\n\t\t<experiencestream Id="DRinAudio0" Begin="0" Dur="28.91" Layer="background"></experiencestream>\n\t\t<experiencestream Id="Image1" Begin="0" Dur="6" Layer="background"></experiencestream>\n\t\t<experiencestream Id="Image2" Begin="6" Dur="6" Layer="background"></experiencestream>\n\t\t<experiencestream Id="Image3" Begin="12" Dur="6" Layer="background"></experiencestream>\n\t\t<experiencestream Id="Image4" Begin="18" Dur="6" Layer="background"></experiencestream>\n\t\t<experiencestream Id="Title1" Begin="28.91" Dur="4" Layer="foreground"></experiencestream>\n\t\t<experiencestream Id="DRinAudio1" Begin="28.91" Dur="20.45" Layer="background"></experiencestream>\n\t\t<experiencestream Id="Image5" Begin="24" Dur="6" Layer="background"></experiencestream>\n\t\t<experiencestream Id="Image6" Begin="30" Dur="6" Layer="background"></experiencestream>\n\t\t<experiencestream Id="Image7" Begin="36" Dur="6" Layer="background"></experiencestream>\n\t\t<experiencestream Id="Image8" Begin="42" Dur="6" Layer="background"></experiencestream>\n\t\t<experiencestream Id="Title2" Begin="49.36" Dur="4" Layer="foreground"></experiencestream>\n\t\t<experiencestream Id="DRinAudio2" Begin="49.36" Dur="14.34" Layer="background"></experiencestream>\n\t\t<experiencestream Id="Image9" Begin="48" Dur="6" Layer="background"></experiencestream>\n\t\t<experiencestream Id="Image10" Begin="54" Dur="6" Layer="background"></experiencestream>\n\t\t<experiencestream Id="Image11" Begin="60" Dur="6" Layer="background"></experiencestream>\n\t\t<experiencestream Id="Image12" Begin="66" Dur="6" Layer="background"></experiencestream>\n\t\t<experiencestream Id="Image13" Begin="72" Dur="6" Layer="background"></experiencestream>\n\t\t<experiencestream Id="Image14" Begin="78" Dur="6" Layer="background"></experiencestream>\n\t\t<experiencestream Id="Image15" Begin="84" Dur="6" Layer="background"></experiencestream>\n\t\t\t  </experiencestreams>\n\t\t\t</item>\n\t\t\t<item Key="ScreenplayExperienceStream">\n\t\t\t  <experiencestream Id="ScreenPlayEnglish"></experiencestream>\n\t\t\t</item>\n\t\t  </auxiliarydata>\n\t\t</screenplay>\n\t  </screenplays>\n\t</segment>\n  </segments>\n</narrative>';
	
	document.getElementById("content").innerHTML = '<textarea id="narrativeDiv" style="width:100%;scrollbars:auto;clear:both;">'+replaceHtmlSymbolWithCode(rinXMLData)+'</textarea>';
	document.getElementById("content").innerHTML += '<div class="editButtons" style="clear:both"> <input type="submit" title="Save your changes [alt-shift-s]" accesskey="s" value="Save page" tabindex="5" name="wpSave" id="wpSave">  <input type="submit" title="Show which changes you made to the text [alt-shift-v]" accesskey="v" value="Show changes" tabindex="7" name="wpDiff" id="wpDiff"> <span class="editHelp"><a id="mw-editform-cancel" title="Languages of India" href="/wiki/Languages_of_India">Cancel</a>&nbsp;| <a href="/wiki/Wikipedia:Cheatsheet" target="helpwindow">Editing help</a> (opens in new window)</span> </div>';
	document.getElementById("narrativeDiv").style.height=(((document.height - 100)<700)?(document.height - 100):700)+'px';
	
};

setTimeout(drGadget.drLoadGadget,1000);