<?xml version="1.0"?>
<RDF:RDF xmlns:NS1="http://optimoz.mozdev.org/gestures-rdf#"
         xmlns:NC="http://home.netscape.com/NC-rdf#"
         xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  <RDF:Description RDF:about="rdf:#$dG9mT1"
                   NS1:code="7D"
                   NS1:custom="getBrowser().mTabContainer.selectedIndex%20=%200;"
                   NS1:name="First Tab"
                   NS1:count="8" />
  <RDF:Description RDF:about="rdf:#$dr9mT1"
                   NS1:code="7"
                   NS1:function="mgB_PreviousTab"
                   NS1:count="490" />
  <RDF:Description RDF:about="rdf:#$cI9mT1"
                   NS1:code="9D"
                   NS1:custom="getBrowser().mTabContainer.selectedIndex%20=%20getBrowser().mTabContainer.childNodes.length%20-1;"
                   NS1:name="Last Tab"
                   NS1:count="4" />
  <RDF:Description RDF:about="rdf:#$0RamT1"
                   NS1:code="3U1"
                   NS1:custom="var%20tabs%20=%20gBrowser.mTabContainer.childNodes;%0Afor%20(var%20i=tabs.length-1;%20tabs%5Bi%5D%20!=%20gBrowser.selectedTab;%20i--)%7B%0AgBrowser.removeTab(tabs%5Bi%5D);%0A%7D"
                   NS1:name="Close all right tab"
                   NS1:count="1" />
  <RDF:Description RDF:about="rdf:#$dobSr1"
                   NS1:code="DR"
                   NS1:function="mgW_Paste" />
  <RDF:Description RDF:about="rdf:#$QEDPj1"
                   NS1:code="1"
                   NS1:function="mgB_ResetZoom" />
  <RDF:Description RDF:about="urn:mozgest:userstore"
                   NS1:creatorVersion="1.5.2" />
  <RDF:Description RDF:about="rdf:#$Py9mT1"
                   NS1:code="RLR"
                   NS1:custom="var%20nav%20=%20getBrowser().webNavigation;%0Avar%20hist%20=%20nav.sessionHistory;%0Anav.gotoIndex(hist.count%20-%201);"
                   NS1:name="Go to last page."
                   NS1:count="1" />
  <RDF:Description RDF:about="rdf:#$fhbmT1"
                   NS1:code="3"
                   NS1:function="mgBP_ExitPrintPreview" />
  <RDF:Description RDF:about="rdf:#$CEDPj1"
                   NS1:code="R"
                   NS1:function="mgM_NextUnreadMessage" />
  <RDF:Description RDF:about="rdf:#$5IamT1"
                   NS1:code="U39DL"
                   NS1:custom="toggleSidebar('viewMozgestSidebar');"
                   NS1:name="Toggle sidebar: Gestures"
                   NS1:count="3" />
  <RDF:Description RDF:about="rdf:#$LEDPj1"
                   NS1:code="URD"
                   NS1:function="mgM_ViewSource" />
  <RDF:Description RDF:about="rdf:#$9O9mT1"
                   NS1:code="919"
                   NS1:custom="gBrowser.selectedTab%20=%20gBrowser.duplicateTab(gBrowser.mCurrentTab)"
                   NS1:name="True Duplicate Tab (Tab Mix Plus)" />
  <RDF:Description RDF:about="rdf:#$rXamT1"
                   NS1:code="LDRDL"
                   NS1:custom="var%20title%20=%20%22MozGest%20-%20Gesture%20Export%22;%0Avar%20cc%20=%20Components.classes;%0Avar%20ci%20=%20Components.interfaces;%0A%0AmgStorage.userDS.QueryInterface(ci.nsIRDFRemoteDataSource).Flush();%0Avar%20profile%20=%20cc%5B'@mozilla.org/file/directory_service;1'%5D.getService(ci.nsIProperties);%0A%0Avar%20filePath%20=%20profile.get('ProfD',%20ci.nsILocalFile);%0AfilePath.appendRelativePath(%22mousegestures.rdf%22);%0A%0Avar%20fp%20=%20cc%5B%22@mozilla.org/filepicker;1%22%5D.createInstance(ci.nsIFilePicker);%0Afp.init(window,title,%20ci.nsIFilePicker.modeSave);%0A%0Afp.defaultString%20=%20%22mousegestures_backup.rdf%22;%0A%0Avar%20retVal%20=%20fp.show();%0A%0Aif%20(retVal%20==%20ci.nsIFilePicker.returnOK)%20%7B%0A%20%20try%20%7B%0A%20%20%20%20filePath.copyTo(fp.displayDirectory,%20fp.file.leafName);%0A%20%20%20%20alert(fp.file.leafName%20+%22%5Cn%5CnCreated%20in%20%22%20+fp.displayDirectory.path)%0A%20%20%7D%0A%20%20catch%20(e)%20%7B%7D%0A%7D%0A%0Aif%20(retVal%20==%20ci.nsIFilePicker.returnReplace)%20%7B%0A%20%20fp.file.remove(false);%0A%20%20try%20%7B%0A%20%20%20%20filePath.copyTo(fp.displayDirectory,%20fp.file.leafName);%0A%20%20%20%20alert(fp.file.leafName%20+%22%5Cn%5CnReplaced%20in%20%22%20+fp.displayDirectory.path)%0A%20%20%7D%0A%20%20catch%20(e)%20%7B%7D%0A%7D"
                   NS1:name="Export Gesture Set" />
  <RDF:Description RDF:about="rdf:#$JEDPj1"
                   NS1:code="*RU"
                   NS1:function="mgB_LinksInWindows" />
  <RDF:Seq RDF:about="urn:mozgest:mappings:window">
    <RDF:li RDF:resource="rdf:#$fpamT1"/>
    <RDF:li RDF:resource="rdf:#$eramT1"/>
    <RDF:li RDF:resource="rdf:#$rXamT1"/>
    <RDF:li RDF:resource="rdf:#$qZamT1"/>
    <RDF:li RDF:resource="rdf:#$p+amT1"/>
  </RDF:Seq>
  <RDF:Description RDF:about="rdf:#$bp9mT1"
                   NS1:code=":2-"
                   NS1:function="mgB_ZoomIn_DoubleImage"
                   NS1:count="1776" />
  <RDF:Description RDF:about="rdf:#$SEDPj1"
                   NS1:code="13"
                   NS1:function="mgB_ZoomOut" />
  <RDF:Seq RDF:about="urn:mozgest:mappings:browser_printpreview">
    <RDF:li RDF:resource="rdf:#$fhbmT1"/>
  </RDF:Seq>
  <RDF:Description RDF:about="rdf:#$bK9mT1"
                   NS1:code="91"
                   NS1:function="mgB_OpenTab"
                   NS1:name="New tab"
                   NS1:count="1" />
  <RDF:Description RDF:about="rdf:#$1PamT1"
                   NS1:code="3L9"
                   NS1:custom="var%20browser=getBrowser();%0Abrowser.removeAllTabsBut(browser.mCurrentTab);"
                   NS1:name="Close all other tabs" />
  <RDF:Description RDF:about="rdf:#$5U9mT1"
                   NS1:code="3"
                   NS1:function="mgB_CloseTab"
                   NS1:name="Close Tab"
                   NS1:count="3442" />
  <RDF:Description RDF:about="rdf:#$NEDPj1"
                   NS1:code="9"
                   NS1:function="mgB_HideImage" />
  <RDF:Description RDF:about="rdf:#$n3bmT1"
                   NS1:code="UR9DU"
                   NS1:custom="function%20I(u)%7B%0Avar%20t=u.split('.'),e=t%5Bt.length-1%5D.toLowerCase();%0Areturn%20%7Bgif:1,jpg:1,jpeg:1,png:1,mng:1%7D%5Be%5D%7D%0Afunction%20hE(s)%7B%0Areturn%20s.replace(/&amp;/g,'&amp;').replace(/%3E/g,'&gt;').replace(/%3C/g,'&lt;').replace(/%22/g,'&quot;');%7D%0Avar%20q,h,i,z=open().document;%0Az.write('%3Cp%3EImages%20linked%20to%20by%20'+hE(location.href)+':%3C/p%3E%3Chr%3E');%0Afor(i=0;q=content.document.links%5Bi%5D;++i)%7B%0Ah=q.href;%0Aif(h&amp;&amp;I(h))%0Az.write('%3Cp%3E'+q.innerHTML+'%20('+hE(h)+')%3Cbr%3E%3Cimg%20src=%22'+hE(h)+'%22%3E');%7D%0Az.close();"
                   NS1:name="Linked Images" />
  <RDF:Description RDF:about="rdf:#$k9bmT1"
                   NS1:code="RLDL"
                   NS1:custom="var%20jsOn%20=%20!mgPrefRoot.getBoolPref(%22javascript.enabled%22);%0AmgPrefRoot.setBoolPref(%22javascript.enabled%22,%20jsOn);%0A%0AmgFeedback%20=%20%22Turned%20%22%20+%20(jsOn%20?%20%22on%22%20:%20%22off%22)%20+%20%22%20JavaScript.%22;"
                   NS1:name="Toggle JS" />
  <RDF:Description RDF:about="rdf:#$bwamT1"
                   NS1:code="DRL"
                   NS1:custom="(function()%7Bvar%20D=content.document;%20D.body.normalize();%20F(D.body);%20function%20F(n)%7Bvar%20u,A,M,R,c,x;%20if(n.nodeType==3)%7B%20u=n.data.search(/https?%5C:%5C/%5C/%5B%5E%5Cs%5D*%5B%5E.,;'%22%3E%5Cs%5C)%5C%5D%5D/);%20if(u%3E=0)%20%7B%20M=n.splitText(u);%20R=M.splitText(RegExp.lastMatch.length);%20A=content.document.createElement(%22A%22);%20A.href=M.data;%20A.appendChild(M);%20R.parentNode.insertBefore(A,R);%20%7D%20%7Delse%20if(n.tagName!=%22STYLE%22%20&amp;&amp;%20n.tagName!=%22SCRIPT%22%20&amp;&amp;%20n.tagName!=%22A%22)for(c=0;x=n.childNodes%5Bc%5D;++c)F(x);%20%7D%20%7D());"
                   NS1:name="Linkify"
                   NS1:count="7" />
  <RDF:Description RDF:about="rdf:#$zEDPj1"
                   NS1:code=":20"
                   NS1:function="mgM_PrevUnreadMessage" />
  <RDF:Description RDF:about="rdf:#$GEDPj1"
                   NS1:code="UD"
                   NS1:function="mgM_Reload" />
  <RDF:Description RDF:about="rdf:#$3X9mT1"
                   NS1:code="UD"
                   NS1:custom="window._content.document.defaultView.scrollTo(0,0);"
                   NS1:name="Scroll to Top"
                   NS1:count="371" />
  <RDF:Description RDF:about="rdf:#$ao9mT1"
                   NS1:code="U"
                   NS1:function="mgB_UpDir"
                   NS1:count="190" />
  <RDF:Description RDF:about="rdf:#$DFDPj1"
                   NS1:code="R"
                   NS1:function="mgC_NextPane" />
  <RDF:Description RDF:about="rdf:#$es9mT1"
                   NS1:code="9"
                   NS1:function="mgB_NextTab"
                   NS1:count="556" />
  <RDF:Description RDF:about="rdf:#$m5bmT1"
                   NS1:code="3939"
                   NS1:custom="gBrowser.selectedTab%20=%20gBrowser.addTab(%22http://en.wikipedia.org/wiki/Special:Search?search=%22%20+%20content.document.getSelection().toString());"
                   NS1:name="Open Wikipedia Search for Selection in Tab" />
  <RDF:Description RDF:about="rdf:#$IEDPj1"
                   NS1:code="D"
                   NS1:function="mgM_NewMessage" />
  <RDF:Description RDF:about="rdf:#$eramT1"
                   NS1:code=":0+"
                   NS1:function="mgW_ScrollRight"
                   NS1:name="Scroll Right"
                   NS1:count="136" />
  <RDF:Description RDF:about="rdf:#$AFDPj1"
                   NS1:code=":20"
                   NS1:function="mgC_PrevPane" />
  <RDF:Description RDF:about="rdf:#$dnbSr1"
                   NS1:code="LU"
                   NS1:function="mgW_Copy"
                   NS1:count="2" />
  <RDF:Description RDF:about="rdf:#$gOSzd3"
                   NS1:code="UR1R1R"
                   NS1:appearance="UUR1R1R"
                   NS1:custom="content.document.designMode='on'"
                   NS1:name="Edit Page (Caution: open page in a separate window manually)"
                   NS1:count="14" />
  <RDF:Description RDF:about="rdf:#$6GamT1"
                   NS1:code="DURD"
                   NS1:custom="toggleSidebar('viewHistorySidebar');"
                   NS1:name="Toggle History" />
  <RDF:Description RDF:about="rdf:#$MEDPj1"
                   NS1:code="LDRDL"
                   NS1:function="mgM_ViewSource" />
  <RDF:Description RDF:about="rdf:#$Ru9mT1"
                   NS1:code="RLU"
                   NS1:custom="var%20d%20=%20window._content.document;%0Aif%20(d.referrer)%20d.location=d.referrer;"
                   NS1:name="Back to referrer" />
  <RDF:Description RDF:about="rdf:#$HEDPj1"
                   NS1:code="DURD"
                   NS1:function="mgM_Home" />
  <RDF:Description RDF:about="rdf:#$8Q9mT1"
                   NS1:code="37"
                   NS1:custom="undoCloseTab();"
                   NS1:name="Undo Close Tab (Fx 2)"
                   NS1:count="161" />
  <RDF:Description RDF:about="rdf:#$8CamT1"
                   NS1:code="3L"
                   NS1:custom="var%20image=globalOnImage;%0A%0Aif%20(image.nodeType%20==%20Node.ELEMENT_NODE%20&amp;&amp;%0A%20%20%20%20image%20instanceof%20Components.interfaces.nsIImageLoadingContent%20&amp;&amp;%20%0A%20%20%20%20image.currentURI)%20%0A%7B%0A%20%20var%20docURL=image.ownerDocument.location.href;%0A%20%20var%20imageURL=image.currentURI.spec;%0A%0A%20%20saveImageURL(imageURL,%20null,%20%22SaveImageTitle%22,%20false,%20true,%20makeURI(docURL));%0A%7D%0A%0A"
                   NS1:name="Save image (without prompt)" />
  <RDF:Description RDF:about="rdf:#$2NamT1"
                   NS1:code="7D9"
                   NS1:custom="var%20i;%0Avar%20tabs%20=%20gBrowser.mTabContainer.childNodes;%0Afor%20(i=tabs.length-1;%20tabs%5Bi%5D%20!=%20gBrowser.selectedTab;%20i--)%7B%7D%0Afor%20(i--;%20i%3E=0;%20i--)%7B%0AgBrowser.removeTab(tabs%5Bi%5D);%0A%7D"
                   NS1:name="Close all left tab" />
  <RDF:Description RDF:about="rdf:#$o1bmT1"
                   NS1:code="UR1R"
                   NS1:custom="(function()%7Bvar%20s,F,j,f,i;s%20=%20%22%22;F%20=%20content.document.embeds;for(j=0;%20j%3CF.length;%20++j)%20%7Bf%20=%20F%5Bj%5D;s%20=%20f.getAttribute(%22src%22);%20gBrowser.selectedTab%20=%20gBrowser.addTab(s);%20%7D%20%7D)();"
                   NS1:name="Extract Flash in Tabs"
                   NS1:count="1" />
  <RDF:Description RDF:about="rdf:#$fpamT1"
                   NS1:code=":0-"
                   NS1:function="mgW_ScrollLeft"
                   NS1:name="Scroll Left"
                   NS1:count="98" />
  <RDF:Description RDF:about="rdf:#$9AamT1"
                   NS1:code="13"
                   NS1:custom="var%20colState%20=%20!mgPrefRoot.getBoolPref(%22browser.display.use_document_colors%22);%0AmgPrefRoot.setBoolPref(%22browser.display.use_document_colors%22,%20colState);%0AgBrowser.reload();%0AmgFeedback%20=%20(colState%20?%20%22Original%20colors%22%20:%20%22Personal%20colors%22)%20+%20%22.%22;"
                   NS1:name="Personal or System Colors VS Original Colors"
                   NS1:count="2" />
  <RDF:Description RDF:about="rdf:#$6l9mT1"
                   NS1:code="L"
                   NS1:function="mgB_Back"
                   NS1:count="2429" />
  <RDF:Description RDF:about="rdf:#$BFDPj1"
                   NS1:code=":02"
                   NS1:function="mgC_NextPane" />
  <RDF:Description RDF:about="rdf:#$7l9mT1"
                   NS1:code="R"
                   NS1:function="mgB_Forward"
                   NS1:count="225" />
  <RDF:Description RDF:about="rdf:#$gnamT1"
                   NS1:code=":1+"
                   NS1:custom="window._content.document.defaultView.scrollByPages(1)"
                   NS1:name="Down One Page"
                   NS1:count="44" />
  <RDF:Description RDF:about="rdf:#$7EamT1"
                   NS1:code="R1R1R"
                   NS1:custom="BrowserOpenExtensions%20('extensions');"
                   NS1:name="Show Extensions" />
  <RDF:Description RDF:about="rdf:#$PEDPj1"
                   NS1:code="7"
                   NS1:function="mgB_ZoomOut_HalveImage" />
  <RDF:Description RDF:about="rdf:#$AEDPj1"
                   NS1:code=":02"
                   NS1:function="mgM_NextUnreadMessage" />
  <RDF:Description RDF:about="rdf:#$qZamT1"
                   NS1:code="3U9"
                   NS1:custom="eval(prompt(%22js%20code?%22));"
                   NS1:name="Evaluate JS"
                   NS1:count="1" />
  <RDF:Description RDF:about="rdf:#$OEDPj1"
                   NS1:code="3"
                   NS1:function="mgB_ZoomIn_DoubleImage" />
  <RDF:Seq RDF:about="urn:mozgest:mappings:browser">
    <RDF:li RDF:resource="rdf:#$6l9mT1"/>
    <RDF:li RDF:resource="rdf:#$7l9mT1"/>
    <RDF:li RDF:resource="rdf:#$8m9mT1"/>
    <RDF:li RDF:resource="rdf:#$9n9mT1"/>
    <RDF:li RDF:resource="rdf:#$ao9mT1"/>
    <RDF:li RDF:resource="rdf:#$bp9mT1"/>
    <RDF:li RDF:resource="rdf:#$cq9mT1"/>
    <RDF:li RDF:resource="rdf:#$dr9mT1"/>
    <RDF:li RDF:resource="rdf:#$es9mT1"/>
    <RDF:li RDF:resource="rdf:#$Ru9mT1"/>
    <RDF:li RDF:resource="rdf:#$Qw9mT1"/>
    <RDF:li RDF:resource="rdf:#$Py9mT1"/>
    <RDF:li RDF:resource="rdf:#$OA9mT1"/>
    <RDF:li RDF:resource="rdf:#$NC9mT1"/>
    <RDF:li RDF:resource="rdf:#$dG9mT1"/>
    <RDF:li RDF:resource="rdf:#$cI9mT1"/>
    <RDF:li RDF:resource="rdf:#$bK9mT1"/>
    <RDF:li RDF:resource="rdf:#$aM9mT1"/>
    <RDF:li RDF:resource="rdf:#$9O9mT1"/>
    <RDF:li RDF:resource="rdf:#$8Q9mT1"/>
    <RDF:li RDF:resource="rdf:#$5U9mT1"/>
    <RDF:li RDF:resource="rdf:#$3X9mT1"/>
    <RDF:li RDF:resource="rdf:#$PjamT1"/>
    <RDF:li RDF:resource="rdf:#$gnamT1"/>
    <RDF:li RDF:resource="rdf:#$dtamT1"/>
    <RDF:li RDF:resource="rdf:#$bwamT1"/>
    <RDF:li RDF:resource="rdf:#$9AamT1"/>
    <RDF:li RDF:resource="rdf:#$8CamT1"/>
    <RDF:li RDF:resource="rdf:#$7EamT1"/>
    <RDF:li RDF:resource="rdf:#$6GamT1"/>
    <RDF:li RDF:resource="rdf:#$5IamT1"/>
    <RDF:li RDF:resource="rdf:#$3LamT1"/>
    <RDF:li RDF:resource="rdf:#$2NamT1"/>
    <RDF:li RDF:resource="rdf:#$1PamT1"/>
    <RDF:li RDF:resource="rdf:#$0RamT1"/>
    <RDF:li RDF:resource="rdf:#$+SamT1"/>
    <RDF:li RDF:resource="rdf:#$o1bmT1"/>
    <RDF:li RDF:resource="rdf:#$n3bmT1"/>
    <RDF:li RDF:resource="rdf:#$m5bmT1"/>
    <RDF:li RDF:resource="rdf:#$k9bmT1"/>
    <RDF:li RDF:resource="rdf:#$dmbSr1"/>
    <RDF:li RDF:resource="rdf:#$dnbSr1"/>
    <RDF:li RDF:resource="rdf:#$dobSr1"/>
    <RDF:li RDF:resource="rdf:#$BAS6a1"/>
    <RDF:li RDF:resource="rdf:#$gOSzd3"/>
  </RDF:Seq>
  <RDF:Description RDF:about="rdf:#$9n9mT1"
                   NS1:code="1"
                   NS1:function="mgB_Stop"
                   NS1:count="21" />
  <RDF:Description RDF:about="rdf:#$REDPj1"
                   NS1:code="31"
                   NS1:function="mgB_ZoomIn" />
  <RDF:Description RDF:about="rdf:#$BEDPj1"
                   NS1:code="L"
                   NS1:function="mgM_PrevUnreadMessage" />
  <RDF:Description RDF:about="rdf:#$FEDPj1"
                   NS1:code="DURL"
                   NS1:function="mgM_ForwardMessage" />
  <RDF:Description RDF:about="rdf:#$3LamT1"
                   NS1:code="R7"
                   NS1:custom="var%20image=globalOnImage;%0Aif%20(image.nodeType%20==%20Node.ELEMENT_NODE%20&amp;&amp;%0A%20%20%20%20image%20instanceof%20Components.interfaces.nsIImageLoadingContent%20&amp;&amp;%20%0A%20%20%20%20image.currentURI)%20%0A%7B%0A%20%20image.ownerDocument.location.href%20=%20image.currentURI.spec;%0A%7D%0A"
                   NS1:name="View Image" />
  <RDF:Description RDF:about="rdf:#$OA9mT1"
                   NS1:code="RL"
                   NS1:custom="var%20w%20=%20window._content.location.href.split(new%20RegExp('(%5C%5Cd+)'));%0Afor(var%20i%20=%20w.length-1;%20i%3E=0;%20i--)%0Aif%20(w%5Bi%5D.match(new%20RegExp('%5C%5Cd+')))%0A%20%20break;%0Aif%20(i%20%3E=%200)%20%7B%0A%20%20var%20l%20=%20w%5Bi%5D.length;%0A%20%20if(w%5Bi%5D.match(new%20RegExp('%5E0')))%0A%20%20%20%20w%5Bi%5D%20=%20(+%20w%5Bi%5D%20+%201000000001).toString().substring(10%20-%20l);%0A%20%20else%0A%20%20%20%20w%5Bi%5D++;%0A%20%20try%20%7B%0A%20%20%20%20window._content.location%20=%20w.join('')%0A%20%20%7D%20catch(ex)%20%7B%0A%20%20%7D%0A%7D"
                   NS1:name="Go to next numbered page"
                   NS1:count="209" />
  <RDF:Description RDF:about="rdf:#$+SamT1"
                   NS1:code="9L3"
                   NS1:custom="gBrowser.closeGroupTabs(gBrowser.mCurrentTab);"
                   NS1:name="Close Similar Tabs (Tab Mix Plus)"
                   NS1:count="1" />
  <RDF:Description RDF:about="rdf:#$PjamT1"
                   NS1:code=":1-"
                   NS1:custom="window._content.document.defaultView.scrollByPages(-1)"
                   NS1:name="Up One Page"
                   NS1:count="35" />
  <RDF:Description RDF:about="rdf:#$p+amT1"
                   NS1:code="RULUR"
                   NS1:custom="var%20importWarning%20=%20confirm(%22You%20want%20to%20import%20a%20gesture%20set.%5Cn%22%20+%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22Make%20sure%20that%20you%20have%20a%20valid%20file%20to%20import!%5Cn%5Cn%22%20+%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22If%20the%20chosen%20file%20is%20not%20valid,%20the%20default%20gesture%20set%20will%20be%20restored!%22);%0A%0Aif%20(importWarning)%0A%7B%0A%20%20var%20title%20=%20%22MozGest%20-%20Gesture%20Import%22;%0A%20%20var%20cc%20=%20Components.classes;%0A%20%20var%20ci%20=%20Components.interfaces;%0A%0A%20%20if%20(mgStorage.userDS%20==%20null)%0A%20%20%20%20mgStorage.getUserRDF();%0A%0A%20%20var%20profile%20=%20cc%5B'@mozilla.org/file/directory_service;1'%5D.getService(ci.nsIProperties);%0A%0A%20%20var%20filePath%20=%20profile.get('ProfD',%20ci.nsILocalFile);%0A%0A%20%20var%20fp%20=%20cc%5B%22@mozilla.org/filepicker;1%22%5D.createInstance(ci.nsIFilePicker);%0A%20%20fp.init(window,%20title,%20ci.nsIFilePicker.modeOpen);%0A%0A%20%20var%20retVal%20=%20fp.show();%0A%0A%20%20if%20(retVal%20==%20ci.nsIFilePicker.returnOK)%0A%20%20%7B%0A%20%20%20%20try%0A%20%20%20%20%7B%0A%20%20%20%20%20%20var%20mgPath%20=%20profile.get('ProfD',%20ci.nsILocalFile);%0A%20%20%20%20%20%20mgPath.appendRelativePath(%22mousegestures.rdf%22);%0A%20%20%20%20%20%20mgPath.remove(false);%0A%20%20%20%20%20%20fp.file.copyTo(filePath,%20%22mousegestures.rdf%22);%0A%20%20%20%20%20%20try%0A%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20mgStorage.userDS.QueryInterface(ci.nsIRDFRemoteDataSource).Refresh(true);%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20catch%20(e)%0A%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20alert(%22The%20backup%20is%20corrupted.%20Default%20gestures%20restored.%22)%0A%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20var%20restart%20=%20confirm(%22Gestures%20restored.%5Cn%20You%20have%20to%20restart%20%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20+%20mgAppInfo.name%20+%20%22!%5Cn%5Cn%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20+%20%22Do%20you%20want%20to%20restart%20now?%22);%0A%20%20%20%20%20%20if%20(restart)%0A%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20var%20appStartup%20=%20Components.interfaces.nsIAppStartup;%0A%20%20%20%20%20%20%20%20cc%5B%22@mozilla.org/toolkit/app-startup;1%22%5D.getService(appStartup)%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20.quit(appStartup.eRestart%20%7C%20appStartup.eAttemptQuit);%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%20%20catch%20(e)%20%7B%7D%0A%20%20%7D%0A%7D%0A"
                   NS1:name="Import Gesture Set" />
  <RDF:Description RDF:about="rdf:#$8m9mT1"
                   NS1:code="D"
                   NS1:function="mgB_ReloadFrame"
                   NS1:count="686" />
  <RDF:Description RDF:about="rdf:#$dtamT1"
                   NS1:code="DU"
                   NS1:custom="window._content.document.defaultView.scrollTo(0,window._content.document.height);"
                   NS1:name="Scroll to Bottom"
                   NS1:count="93" />
  <RDF:Description RDF:about="rdf:#$NC9mT1"
                   NS1:code="LR"
                   NS1:custom="var%20w%20=%20window._content.location.href.split(new%20RegExp('(%5C%5Cd+)'));%0Afor(var%20i%20=%20w.length-1;%20i%3E=0;%20i--)%0Aif%20(w%5Bi%5D.match(new%20RegExp('%5C%5Cd+')))%0A%20%20break;%0Aif%20(i%20%3E=%200)%20%7B%0A%20%20var%20l%20=%20w%5Bi%5D.length;%0A%20%20if(w%5Bi%5D.match(new%20RegExp('%5E0')))%0A%20%20%20%20w%5Bi%5D%20=%20(+%20w%5Bi%5D%20+%20999999999).toString().substring(10%20-%20l);%0A%20%20else%0A%20%20%20%20w%5Bi%5D--;%0A%20%20try%20%7B%0A%20%20%20%20window._content.location%20=%20w.join('')%0A%20%20%7D%20catch(ex)%20%7B%0A%20%20%7D%0A%7D"
                   NS1:name="Go to previous numbered page"
                   NS1:count="82" />
  <RDF:Description RDF:about="rdf:#$gebmT1"
                   NS1:code="3"
                   NS1:function="mgW_CloseWin"
                   NS1:count="20" />
  <RDF:Description RDF:about="rdf:#$BAS6a1"
                   NS1:code="1397D"
                   NS1:appearance="1397DD"
                   NS1:function="mgB_CloseDoc"
                   NS1:count="5" />
  <RDF:Description RDF:about="rdf:#$cq9mT1"
                   NS1:code=":2+"
                   NS1:function="mgB_ZoomOut_HalveImage"
                   NS1:count="1729" />
  <RDF:Description RDF:about="rdf:#$DEDPj1"
                   NS1:code="DRU"
                   NS1:function="mgM_DeleteMessage" />
  <RDF:Description RDF:about="rdf:#$aM9mT1"
                   NS1:code="73"
                   NS1:custom="gBrowser.previousTab(gBrowser.mCurrentTab);"
                   NS1:name="Switch to Last Select Tab (Tab Mix Plus)"
                   NS1:count="7" />
  <RDF:Seq RDF:about="urn:mozgest:mappings:viewsource">
    <RDF:li RDF:resource="rdf:#$gebmT1"/>
  </RDF:Seq>
  <RDF:Description RDF:about="rdf:#$dmbSr1"
                   NS1:code="UR"
                   NS1:function="mgB_OpenTab"
                   NS1:count="40" />
  <RDF:Description RDF:about="rdf:#$CFDPj1"
                   NS1:code="L"
                   NS1:function="mgC_PrevPane" />
  <RDF:Description RDF:about="rdf:#$Qw9mT1"
                   NS1:code="LRL"
                   NS1:custom="if(gBrowser.sessionHistory.index%3E0)%20gBrowser.gotoIndex(0);"
                   NS1:name="Go to first page"
                   NS1:count="35" />
  <RDF:Seq RDF:about="urn:mozgest:mappings:chatzilla">
    <RDF:li RDF:resource="rdf:#$AFDPj1"/>
    <RDF:li RDF:resource="rdf:#$BFDPj1"/>
    <RDF:li RDF:resource="rdf:#$CFDPj1"/>
    <RDF:li RDF:resource="rdf:#$DFDPj1"/>
  </RDF:Seq>
  <RDF:Description RDF:about="rdf:#$KEDPj1"
                   NS1:code="*RUL"
                   NS1:function="mgW_LinksInTabs" />
  <RDF:Description RDF:about="rdf:#$EEDPj1"
                   NS1:code="DUR"
                   NS1:function="mgM_ReplyMessage" />
  <RDF:Seq RDF:about="urn:mozgest:mappings:messenger">
    <RDF:li RDF:resource="rdf:#$zEDPj1"/>
    <RDF:li RDF:resource="rdf:#$AEDPj1"/>
    <RDF:li RDF:resource="rdf:#$BEDPj1"/>
    <RDF:li RDF:resource="rdf:#$CEDPj1"/>
    <RDF:li RDF:resource="rdf:#$DEDPj1"/>
    <RDF:li RDF:resource="rdf:#$EEDPj1"/>
    <RDF:li RDF:resource="rdf:#$FEDPj1"/>
    <RDF:li RDF:resource="rdf:#$GEDPj1"/>
    <RDF:li RDF:resource="rdf:#$HEDPj1"/>
    <RDF:li RDF:resource="rdf:#$IEDPj1"/>
    <RDF:li RDF:resource="rdf:#$JEDPj1"/>
    <RDF:li RDF:resource="rdf:#$KEDPj1"/>
    <RDF:li RDF:resource="rdf:#$LEDPj1"/>
    <RDF:li RDF:resource="rdf:#$MEDPj1"/>
    <RDF:li RDF:resource="rdf:#$NEDPj1"/>
    <RDF:li RDF:resource="rdf:#$OEDPj1"/>
    <RDF:li RDF:resource="rdf:#$PEDPj1"/>
    <RDF:li RDF:resource="rdf:#$QEDPj1"/>
    <RDF:li RDF:resource="rdf:#$REDPj1"/>
    <RDF:li RDF:resource="rdf:#$SEDPj1"/>
  </RDF:Seq>
</RDF:RDF>
