User:Anilande/dr.js

// //  _________________________________________________________________________________________ // |                                                                                         | // |                    === 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 //

// ===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 = " View Narrative "; 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 = " Edit Narrative "; 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 = " "; 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 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 = ' \n  \n  \n\t\n\t  \n\t\t Dynamic RIN Engine \n\t\t Dynamic RIN on topic Foobar \n\t\t A dynamic narrative on Foobar \n\t  \n\t \n  \n \n\t\n\t   \n\t   \n\t\t  \n\t\t\n\t\t \n\t\t \n\t\n\t\t \n\t \n\t\n\t\t \n\t \n\t\n\t\t \n\t \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"> \n\t \n\t<resource Id="r5">\n\t\t<resourceheader DefaultUriReference="http://www.drinkprices.com/users/3/photos/466.jpg"> \n\t \n\t<resource Id="r6">\n\t\t<resourceheader DefaultUriReference="http://escanoassociates.com/images/carousel/image007.jpg"> \n\t \n\t<resource Id="r7">\n\t\t<resourceheader DefaultUriReference="http://www.pcmech.com/images/FF/foobar/foobar1.JPG"> \n\t \n\t<resource Id="r8">\n\t\t<resourceheader DefaultUriReference="http://wiki.hydrogenaudio.org/images/4/43/Foobar2000-Masstagger.png"> \n\t \n\t<resource Id="r9">\n\t\t<resourceheader DefaultUriReference="http://i175.photobucket.com/albums/w143/tdwctdwc/Capture-1.jpg"> \n\t \n\t<resource Id="r10">\n\t\t<resourceheader DefaultUriReference="http://www.algorithm.com.au/albums/foobar_movies/image004.jpg"> \n\t \n\t<resource Id="r11">\n\t\t<resourceheader DefaultUriReference="http://tech.spaceempires.net/foobar2000/img/fyron_foobar9.png"> \n\t \n\t<resource Id="r12">\n\t\t<resourceheader DefaultUriReference="http://i571.photobucket.com/albums/ss153/sioblackbear/mugen/35.png"> \n\t \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"> \n\t \n\t<resource Id="r14">\n\t\t<resourceheader DefaultUriReference="http://i296.photobucket.com/albums/mm184/nor_spoon/Diverse/foobar_gui.jpg"> \n\t \n\t<resource Id="r15">\n\t\t<resourceheader DefaultUriReference="http://img.brothersoft.com/screenshots/softimage/e/edcast_for_foobar-198159-1229050913.jpeg"> \n\t \n  \n  \n \n<experiencestream Id="ScreenPlayEnglish">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.SubTitleExperienceStream"> \n\t\t  \n\t\t  \n\t\t\t<item Key="default">\n\t\t\t  <features EnableAutoPauseOnUserInput="false"> \n\t\t\t \n\t\t  \n\t\t   \n\t\t  \n\t\t\t<keyframesequence Id="default">\n\t\t\t   \n\t\t\t   \n\t\t\t  \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="0"> \n\t\t\t\t  \n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <text Subtitle="A Dynamic Narrative On Foobar"> \n\t\t\t\t\t \n\t\t\t\t  \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="4"> \n\t\t\t\t  \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."> \n\t\t\t\t\t \n\t\t\t\t  \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="13.4"> \n\t\t\t\t  \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."> \n\t\t\t\t\t \n\t\t\t\t  \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="24.68"> \n\t\t\t\t  \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."> \n\t\t\t\t\t \n\t\t\t\t  \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="28.91"> \n\t\t\t\t  \n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <text Subtitle="Usage in code"> \n\t\t\t\t\t \n\t\t\t\t  \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="32.91"> \n\t\t\t\t  \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."> \n\t\t\t\t\t \n\t\t\t\t  \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="42.78"> \n\t\t\t\t  \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."> \n\t\t\t\t\t \n\t\t\t\t  \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="49.36"> \n\t\t\t\t  \n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <text Subtitle="Usage in culture"> \n\t\t\t\t\t \n\t\t\t\t  \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="53.36"> \n\t\t\t\t  \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."> \n\t\t\t\t\t \n\t\t\t\t  \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="61.35"> \n\t\t\t\t  \n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <text Subtitle=" During the United States v."> \n\t\t\t\t\t \n\t\t\t\t  \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="63.7"> \n\t\t\t\t  \n\t\t\t\t\t<item Key="default">\n\t\t\t\t\t  <text Subtitle=""> \n\t\t\t\t\t \n\t\t\t\t  \n\t\t\t\t \n\t\t\t  \n\t\t\t \n\t\t  \n\t\t   \n\t\t \n\t\t<experiencestream Id="MusicAudio">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.AudioExperienceStream"> \n\t\t  \n\t\t  \n\t\t\t<resourcereference Ref="raudio"> \n\t\t  \n\t\t  \n\t\t\t<keyframesequence Id="default">\n\t\t\t   \n\t\t\t   \n\t\t\t  \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="0"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t  \n\t\t\t \n\t\t  \n\t\t   \n\t\t \n\t<experiencestream Id="Title0">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.TitleExperienceStream"> \n\t\t  \n\t  \n\t\t<item Key="default"> <kf Title="A Dynamic Narrative On Foobar"></kf> \n\t  \n\t   \n\t  \n\t\t<keyframesequence Id="default">\n\t\t   \n\t\t   \n\t\t  \n\t\t\t\n\t\t  \n\t\t \n\t  \n\t   \n\t \n\t\t<experiencestream Id="DRinAudio0">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.DRinAudioExperienceStream"> \n\t\t  \n\t\t\t \n\t\t\t<item Key="default">\n\t\t\t\t<info SectionIndex="0"> \n\t\t\t \n\t\t\t \n\t\t  \n\t\t\t<resourcereference Ref="r0"> \n\t\t  \n\t\t  \n\t\t\t<keyframesequence Id="default">\n\t\t\t   \n\t\t\t   \n\t\t\t  \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="0"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t  \n\t\t\t \n\t\t  \n\t\t   \n\t\t \n\t\t<experiencestream Id="Image1">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"> \n\t\t  \n\t\t  \n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.FadeInOutTransitionService"> \n\t\t\t \n\t\t  \n\t\t  \n\t\t\t<resourcereference Ref="r1"> \n\t\t  \n\t\t \n\t\t\t<keyframesequence Id="default">\n\t\t\t   \n\t\t\t   \n\t\t\t  \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="2"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="4"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t  \n\t\t\t \n\t\t  \n\t\t   \n\t\t \n\t\t<experiencestream Id="Image2">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"> \n\t\t  \n\t\t  \n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.FadeInOutTransitionService"> \n\t\t\t \n\t\t  \n\t\t  \n\t\t\t<resourcereference Ref="r2"> \n\t\t  \n\t\t \n\t\t\t<keyframesequence Id="default">\n\t\t\t   \n\t\t\t   \n\t\t\t  \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="2"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="4"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t  \n\t\t\t \n\t\t  \n\t\t   \n\t\t \n\t\t<experiencestream Id="Image3">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"> \n\t\t  \n\t\t  \n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.FadeInOutTransitionService"> \n\t\t\t \n\t\t  \n\t\t  \n\t\t\t<resourcereference Ref="r3"> \n\t\t  \n\t\t \n\t\t\t<keyframesequence Id="default">\n\t\t\t   \n\t\t\t   \n\t\t\t  \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="2"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="4"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t  \n\t\t\t \n\t\t  \n\t\t   \n\t\t \n\t\t<experiencestream Id="Image4">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"> \n\t\t  \n\t\t  \n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.WipeTransition"> \n\t\t\t \n\t\t  \n\t\t  \n\t\t\t<resourcereference Ref="r4"> \n\t\t  \n\t\t \n\t\t\t<keyframesequence Id="default">\n\t\t\t   \n\t\t\t   \n\t\t\t  \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="2"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="4"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t  \n\t\t\t \n\t\t  \n\t\t   \n\t\t \n\t<experiencestream Id="Title1">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.TitleExperienceStream"> \n\t\t  \n\t  \n\t\t<item Key="default"> <kf Title="Usage in code"></kf> \n\t  \n\t   \n\t  \n\t\t<keyframesequence Id="default">\n\t\t   \n\t\t   \n\t\t  \n\t\t\t\n\t\t  \n\t\t \n\t  \n\t   \n\t \n\t\t<experiencestream Id="DRinAudio1">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.DRinAudioExperienceStream"> \n\t\t  \n\t\t\t \n\t\t\t<item Key="default">\n\t\t\t\t<info SectionIndex="1"> \n\t\t\t \n\t\t\t \n\t\t  \n\t\t\t<resourcereference Ref="r0"> \n\t\t  \n\t\t  \n\t\t\t<keyframesequence Id="default">\n\t\t\t   \n\t\t\t   \n\t\t\t  \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="0"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t  \n\t\t\t \n\t\t  \n\t\t   \n\t\t \n\t\t<experiencestream Id="Image5">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"> \n\t\t  \n\t\t  \n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.WipeTransition"> \n\t\t\t \n\t\t  \n\t\t  \n\t\t\t<resourcereference Ref="r5"> \n\t\t  \n\t\t \n\t\t\t<keyframesequence Id="default">\n\t\t\t   \n\t\t\t   \n\t\t\t  \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="2"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="4"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t  \n\t\t\t \n\t\t  \n\t\t   \n\t\t \n\t\t<experiencestream Id="Image6">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"> \n\t\t  \n\t\t  \n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.FadeInOutTransitionService"> \n\t\t\t \n\t\t  \n\t\t  \n\t\t\t<resourcereference Ref="r6"> \n\t\t  \n\t\t \n\t\t\t<keyframesequence Id="default">\n\t\t\t   \n\t\t\t   \n\t\t\t  \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="2"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="4"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t  \n\t\t\t \n\t\t  \n\t\t   \n\t\t \n\t\t<experiencestream Id="Image7">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"> \n\t\t  \n\t\t  \n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.FadeInOutTransitionService"> \n\t\t\t \n\t\t  \n\t\t  \n\t\t\t<resourcereference Ref="r7"> \n\t\t  \n\t\t \n\t\t\t<keyframesequence Id="default">\n\t\t\t   \n\t\t\t   \n\t\t\t  \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="2"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="4"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t  \n\t\t\t \n\t\t  \n\t\t   \n\t\t \n\t\t<experiencestream Id="Image8">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"> \n\t\t  \n\t\t  \n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.FadeInOutTransitionService"> \n\t\t\t \n\t\t  \n\t\t  \n\t\t\t<resourcereference Ref="r8"> \n\t\t  \n\t\t \n\t\t\t<keyframesequence Id="default">\n\t\t\t   \n\t\t\t   \n\t\t\t  \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="2"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="4"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t  \n\t\t\t \n\t\t  \n\t\t   \n\t\t \n\t<experiencestream Id="Title2">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.TitleExperienceStream"> \n\t\t  \n\t  \n\t\t<item Key="default"> <kf Title="Usage in culture"></kf> \n\t  \n\t   \n\t  \n\t\t<keyframesequence Id="default">\n\t\t   \n\t\t   \n\t\t  \n\t\t\t\n\t\t  \n\t\t \n\t  \n\t   \n\t \n\t\t<experiencestream Id="DRinAudio2">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.DRinAudioExperienceStream"> \n\t\t  \n\t\t\t \n\t\t\t<item Key="default">\n\t\t\t\t<info SectionIndex="2"> \n\t\t\t \n\t\t\t \n\t\t  \n\t\t\t<resourcereference Ref="r0"> \n\t\t  \n\t\t  \n\t\t\t<keyframesequence Id="default">\n\t\t\t   \n\t\t\t   \n\t\t\t  \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="0"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t  \n\t\t\t \n\t\t  \n\t\t   \n\t\t \n\t\t<experiencestream Id="Image9">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"> \n\t\t  \n\t\t  \n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.WipeTransition"> \n\t\t\t \n\t\t  \n\t\t  \n\t\t\t<resourcereference Ref="r9"> \n\t\t  \n\t\t \n\t\t\t<keyframesequence Id="default">\n\t\t\t   \n\t\t\t   \n\t\t\t  \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="2"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="4"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t  \n\t\t\t \n\t\t  \n\t\t   \n\t\t \n\t\t<experiencestream Id="Image10">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"> \n\t\t  \n\t\t  \n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.FadeInOutTransitionService"> \n\t\t\t \n\t\t  \n\t\t  \n\t\t\t<resourcereference Ref="r10"> \n\t\t  \n\t\t \n\t\t\t<keyframesequence Id="default">\n\t\t\t   \n\t\t\t   \n\t\t\t  \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="2"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="4"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t  \n\t\t\t \n\t\t  \n\t\t   \n\t\t \n\t\t<experiencestream Id="Image11">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"> \n\t\t  \n\t\t  \n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.WipeTransition"> \n\t\t\t \n\t\t  \n\t\t  \n\t\t\t<resourcereference Ref="r11"> \n\t\t  \n\t\t \n\t\t\t<keyframesequence Id="default">\n\t\t\t   \n\t\t\t   \n\t\t\t  \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="2"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="4"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t  \n\t\t\t \n\t\t  \n\t\t   \n\t\t \n\t\t<experiencestream Id="Image12">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"> \n\t\t  \n\t\t  \n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.FadeInOutTransitionService"> \n\t\t\t \n\t\t  \n\t\t  \n\t\t\t<resourcereference Ref="r12"> \n\t\t  \n\t\t \n\t\t\t<keyframesequence Id="default">\n\t\t\t   \n\t\t\t   \n\t\t\t  \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="2"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="4"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t  \n\t\t\t \n\t\t  \n\t\t   \n\t\t \n\t\t<experiencestream Id="Image13">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"> \n\t\t  \n\t\t  \n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.FadeInOutTransitionService"> \n\t\t\t \n\t\t  \n\t\t  \n\t\t\t<resourcereference Ref="r13"> \n\t\t  \n\t\t \n\t\t\t<keyframesequence Id="default">\n\t\t\t   \n\t\t\t   \n\t\t\t  \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="2"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="4"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t  \n\t\t\t \n\t\t  \n\t\t   \n\t\t \n\t\t<experiencestream Id="Image14">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"> \n\t\t  \n\t\t  \n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.FadeInOutTransitionService"> \n\t\t\t \n\t\t  \n\t\t  \n\t\t\t<resourcereference Ref="r14"> \n\t\t  \n\t\t \n\t\t\t<keyframesequence Id="default">\n\t\t\t   \n\t\t\t   \n\t\t\t  \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="2"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="4"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t  \n\t\t\t \n\t\t  \n\t\t   \n\t\t \n\t\t<experiencestream Id="Image15">\n\t\t  <experiencestreamheader DefaultKeyframeSequence="default">\n\t\t\t<provider Version="0.0" Name="MicrosoftResearch.Rin.ImageExperienceStream"> \n\t\t  \n\t\t  \n\t\t\t<item Key="default">\n\t\t\t  <info TransitionProvider="MicrosoftResearch.Rin.SLPlayer.WipeTransition"> \n\t\t\t \n\t\t  \n\t\t  \n\t\t\t<resourcereference Ref="r15"> \n\t\t  \n\t\t \n\t\t\t<keyframesequence Id="default">\n\t\t\t   \n\t\t\t   \n\t\t\t  \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="2"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t  <keyframeheader Offset="4"> \n\t\t\t\t  \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 \n\t\t\t\t  \n\t\t\t\t \n\t\t\t  \n\t\t\t \n\t\t  \n\t\t   \n\t\t \n  \n\t  \n\t\t<screenplay Id="English">\n\t\t   \n\t\t  \n\t\t\t<item Key="ExperienceStreams">\n\t\t\t  \n\t\t\t\t<experiencestream Id="MusicAudio" Begin="0" Dur="65.7" Layer="background"> \n\t\t<experiencestream Id="Title0" Begin="0" Dur="4" Layer="foreground"> \n\t\t<experiencestream Id="DRinAudio0" Begin="0" Dur="28.91" Layer="background"> \n\t\t<experiencestream Id="Image1" Begin="0" Dur="6" Layer="background"> \n\t\t<experiencestream Id="Image2" Begin="6" Dur="6" Layer="background"> \n\t\t<experiencestream Id="Image3" Begin="12" Dur="6" Layer="background"> \n\t\t<experiencestream Id="Image4" Begin="18" Dur="6" Layer="background"> \n\t\t<experiencestream Id="Title1" Begin="28.91" Dur="4" Layer="foreground"> \n\t\t<experiencestream Id="DRinAudio1" Begin="28.91" Dur="20.45" Layer="background"> \n\t\t<experiencestream Id="Image5" Begin="24" Dur="6" Layer="background"> \n\t\t<experiencestream Id="Image6" Begin="30" Dur="6" Layer="background"> \n\t\t<experiencestream Id="Image7" Begin="36" Dur="6" Layer="background"> \n\t\t<experiencestream Id="Image8" Begin="42" Dur="6" Layer="background"> \n\t\t<experiencestream Id="Title2" Begin="49.36" Dur="4" Layer="foreground"> \n\t\t<experiencestream Id="DRinAudio2" Begin="49.36" Dur="14.34" Layer="background"> \n\t\t<experiencestream Id="Image9" Begin="48" Dur="6" Layer="background"> \n\t\t<experiencestream Id="Image10" Begin="54" Dur="6" Layer="background"> \n\t\t<experiencestream Id="Image11" Begin="60" Dur="6" Layer="background"> \n\t\t<experiencestream Id="Image12" Begin="66" Dur="6" Layer="background"> \n\t\t<experiencestream Id="Image13" Begin="72" Dur="6" Layer="background"> \n\t\t<experiencestream Id="Image14" Begin="78" Dur="6" Layer="background"> \n\t\t<experiencestream Id="Image15" Begin="84" Dur="6" Layer="background"> \n\t\t\t  \n\t\t\t \n\t\t\t<item Key="ScreenplayExperienceStream">\n\t\t\t  <experiencestream Id="ScreenPlayEnglish"> \n\t\t\t \n\t\t  \n\t\t \n\t  \n\t \n  \n '; document.getElementById("content").innerHTML = '<textarea id="narrativeDiv" style="width:100%;scrollbars:auto;clear:both;">'+replaceHtmlSymbolWithCode(rinXMLData)+' '; document.getElementById("content").innerHTML += ' <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"> <a id="mw-editform-cancel" title="Languages of India" href="/wiki/Languages_of_India">Cancel</a> | <a href="/wiki/Wikipedia:Cheatsheet" target="helpwindow">Editing help</a> (opens in new window)  '; document.getElementById("narrativeDiv").style.height=(((document.height - 100)<700)?(document.height - 100):700)+'px'; };

setTimeout(drGadget.drLoadGadget,1000);