<!--{{{--><link rel='alternate' type='application/rss+xml' title='RSS' href='index.xml' /><!--;}}}-->
Background: #fff
Foreground: #000
PrimaryPale: #8cf
PrimaryLight: #18f
PrimaryMid: #04b
PrimaryDark: #014
SecondaryPale: #ffc
SecondaryLight: #fe8
SecondaryMid: #db4
SecondaryDark: #841
TertiaryPale: #eee
TertiaryLight: #ccc
TertiaryMid: #999
TertiaryDark: #666
Error: #f88
body{background:[[ColorPalette::Background]];color:[[ColorPalette::Foreground]];}a{color:[[ColorPalette::PrimaryMid]];}a:hover{background-color:[[ColorPalette::PrimaryMid]];color:[[ColorPalette::Background]];}a img{border:0;}h1,h2,h3,h4,h5,h6{color:[[ColorPalette::SecondaryDark]];background:transparent;}h1{border-bottom:2px solid [[ColorPalette::TertiaryLight]];}h2,h3{border-bottom:1px solid [[ColorPalette::TertiaryLight]];}.button{color:[[ColorPalette::PrimaryDark]];border:1px solid [[ColorPalette::Background]];}.button:hover{color:[[ColorPalette::PrimaryDark]];background:[[ColorPalette::SecondaryLight]];border-color:[[ColorPalette::SecondaryMid]];}.button:active{color:[[ColorPalette::Background]];background:[[ColorPalette::SecondaryMid]];border:1px solid [[ColorPalette::SecondaryDark]];}.header{background:[[ColorPalette::PrimaryMid]];}.headerShadow{color:[[ColorPalette::Foreground]];}.headerShadow a{font-weight:normal;color:[[ColorPalette::Foreground]];}.headerForeground{color:[[ColorPalette::Background]];}.headerForeground a{font-weight:normal;color:[[ColorPalette::PrimaryPale]];}.tabSelected{color:[[ColorPalette::PrimaryDark]];background:[[ColorPalette::TertiaryPale]];border-left:1px solid [[ColorPalette::TertiaryLight]];border-top:1px solid [[ColorPalette::TertiaryLight]];border-right:1px solid [[ColorPalette::TertiaryLight]];}.tabUnselected{color:[[ColorPalette::Background]];background:[[ColorPalette::TertiaryMid]];}.tabContents{color:[[ColorPalette::PrimaryDark]];background:[[ColorPalette::TertiaryPale]];border:1px solid [[ColorPalette::TertiaryLight]];}.tabContents .button{border:0;}#sidebarOptions input{border:1px solid [[ColorPalette::PrimaryMid]];}#sidebarOptions .sliderPanel{background:[[ColorPalette::PrimaryPale]];}#sidebarOptions .sliderPanel a{border:none;color:[[ColorPalette::PrimaryMid]];}#sidebarOptions .sliderPanel a:hover{color:[[ColorPalette::Background]];background:[[ColorPalette::PrimaryMid]];}#sidebarOptions .sliderPanel a:active{color:[[ColorPalette::PrimaryMid]];background:[[ColorPalette::Background]];}.wizard{background:[[ColorPalette::PrimaryPale]];border:1px solid [[ColorPalette::PrimaryMid]];}.wizard h1{color:[[ColorPalette::PrimaryDark]];border:none;}.wizard h2{color:[[ColorPalette::Foreground]];border:none;}.wizardStep{background:[[ColorPalette::Background]];color:[[ColorPalette::Foreground]];border:1px solid [[ColorPalette::PrimaryMid]];}.wizardStep.wizardStepDone{background:[[ColorPalette::TertiaryLight]];}.wizardFooter{background:[[ColorPalette::PrimaryPale]];}.wizardFooter .status{background:[[ColorPalette::PrimaryDark]];color:[[ColorPalette::Background]];}.wizard .button{color:[[ColorPalette::Foreground]];background:[[ColorPalette::SecondaryLight]];border:1px solid;border-color:[[ColorPalette::SecondaryPale]] [[ColorPalette::SecondaryDark]] [[ColorPalette::SecondaryDark]] [[ColorPalette::SecondaryPale]];}.wizard .button:hover{color:[[ColorPalette::Foreground]];background:[[ColorPalette::Background]];}.wizard .button:active{color:[[ColorPalette::Background]];background:[[ColorPalette::Foreground]];border:1px solid;border-color:[[ColorPalette::PrimaryDark]] [[ColorPalette::PrimaryPale]] [[ColorPalette::PrimaryPale]] [[ColorPalette::PrimaryDark]];}.wizard .notChanged{background:transparent;}.wizard .changedLocally{background:#80ff80;}.wizard .changedServer{background:#8080ff;}.wizard .changedBoth{background:#ff8080;}.wizard .notFound{background:#ffff80;}.wizard .putToServer{background:#ff80ff;}.wizard .gotFromServer{background:#80ffff;}#messageArea{border:1px solid [[ColorPalette::SecondaryMid]];background:[[ColorPalette::SecondaryLight]];color:[[ColorPalette::Foreground]];}#messageArea .button{color:[[ColorPalette::PrimaryMid]];background:[[ColorPalette::SecondaryPale]];border:none;}.popupTiddler{background:[[ColorPalette::TertiaryPale]];border:2px solid [[ColorPalette::TertiaryMid]];}.popup{background:[[ColorPalette::TertiaryPale]];color:[[ColorPalette::TertiaryDark]];border-left:1px solid [[ColorPalette::TertiaryMid]];border-top:1px solid [[ColorPalette::TertiaryMid]];border-right:2px solid [[ColorPalette::TertiaryDark]];border-bottom:2px solid [[ColorPalette::TertiaryDark]];}.popup hr{color:[[ColorPalette::PrimaryDark]];background:[[ColorPalette::PrimaryDark]];border-bottom:1px;}.popup li.disabled{color:[[ColorPalette::TertiaryMid]];}.popup li a,.popup li a:visited{color:[[ColorPalette::Foreground]];border:none;}.popup li a:hover{background:[[ColorPalette::SecondaryLight]];color:[[ColorPalette::Foreground]];border:none;}.popup li a:active{background:[[ColorPalette::SecondaryPale]];color:[[ColorPalette::Foreground]];border:none;}.popupHighlight{background:[[ColorPalette::Background]];color:[[ColorPalette::Foreground]];}.listBreak div{border-bottom:1px solid [[ColorPalette::TertiaryDark]];}.tiddler .defaultCommand{font-weight:bold;}.shadow .title{color:[[ColorPalette::TertiaryDark]];}.title{color:[[ColorPalette::SecondaryDark]];}.subtitle{color:[[ColorPalette::TertiaryDark]];}.toolbar{color:[[ColorPalette::PrimaryMid]];}.toolbar a{color:[[ColorPalette::TertiaryLight]];}.selected .toolbar a{color:[[ColorPalette::TertiaryMid]];}.selected .toolbar a:hover{color:[[ColorPalette::Foreground]];}.tagging,.tagged{border:1px solid [[ColorPalette::TertiaryPale]];background-color:[[ColorPalette::TertiaryPale]];}.selected .tagging,.selected .tagged{background-color:[[ColorPalette::TertiaryLight]];border:1px solid [[ColorPalette::TertiaryMid]];}.tagging .listTitle,.tagged .listTitle{color:[[ColorPalette::PrimaryDark]];}.tagging .button,.tagged .button{border:none;}.footer{color:[[ColorPalette::TertiaryLight]];}.selected .footer{color:[[ColorPalette::TertiaryMid]];}.sparkline{background:[[ColorPalette::PrimaryPale]];border:0;}.sparktick{background:[[ColorPalette::PrimaryDark]];}.error,.errorButton{color:[[ColorPalette::Foreground]];background:[[ColorPalette::Error]];}.warning{color:[[ColorPalette::Foreground]];background:[[ColorPalette::SecondaryPale]];}.lowlight{background:[[ColorPalette::TertiaryLight]];}.zoomer{background:none;color:[[ColorPalette::TertiaryMid]];border:3px solid [[ColorPalette::TertiaryMid]];}.imageLink,#displayArea .imageLink{background:transparent;}.annotation{background:[[ColorPalette::SecondaryLight]];color:[[ColorPalette::Foreground]];border:2px solid [[ColorPalette::SecondaryMid]];}.viewer .listTitle{list-style-type:none;margin-left:-2em;}.viewer .button{border:1px solid [[ColorPalette::SecondaryMid]];}.viewer blockquote{border-left:3px solid [[ColorPalette::TertiaryDark]];}.viewer table,table.twtable{border:2px solid [[ColorPalette::TertiaryDark]];}.viewer th,.viewer thead td,.twtable th,.twtable thead td{background:[[ColorPalette::SecondaryMid]];border:1px solid [[ColorPalette::TertiaryDark]];color:[[ColorPalette::Background]];}.viewer td,.viewer tr,.twtable td,.twtable tr{border:1px solid [[ColorPalette::TertiaryDark]];}.viewer pre{border:1px solid [[ColorPalette::SecondaryLight]];background:[[ColorPalette::SecondaryPale]];}.viewer code{color:[[ColorPalette::SecondaryDark]];}.viewer hr{border:0;border-top:dashed 1px [[ColorPalette::TertiaryDark]];color:[[ColorPalette::TertiaryDark]];}.highlight,.marked{background:[[ColorPalette::SecondaryLight]];}.editor input{border:1px solid [[ColorPalette::PrimaryMid]];}.editor textarea{border:1px solid [[ColorPalette::PrimaryMid]];width:100%;}.editorFooter{color:[[ColorPalette::TertiaryMid]];}.readOnly{background:[[ColorPalette::TertiaryPale]];}#backstageArea{background:[[ColorPalette::Foreground]];color:[[ColorPalette::TertiaryMid]];}#backstageArea a{background:[[ColorPalette::Foreground]];color:[[ColorPalette::Background]];border:none;}#backstageArea a:hover{background:[[ColorPalette::SecondaryLight]];color:[[ColorPalette::Foreground]];}#backstageArea a.backstageSelTab{background:[[ColorPalette::Background]];color:[[ColorPalette::Foreground]];}#backstageButton a{background:none;color:[[ColorPalette::Background]];border:none;}#backstageButton a:hover{background:[[ColorPalette::Foreground]];color:[[ColorPalette::Background]];border:none;}#backstagePanel{background:[[ColorPalette::Background]];border-color:[[ColorPalette::Background]] [[ColorPalette::TertiaryDark]] [[ColorPalette::TertiaryDark]] [[ColorPalette::TertiaryDark]];}.backstagePanelFooter .button{border:none;color:[[ColorPalette::Background]];}.backstagePanelFooter .button:hover{color:[[ColorPalette::Foreground]];}#backstageCloak{background:[[ColorPalette::Foreground]];opacity:.6;filter:'alpha(opacity=60)';}
* html .tiddler{height:1%;}body{font-size:.75em;font-family:arial,helvetica;margin:0;padding:0;}h1,h2,h3,h4,h5,h6{font-weight:bold;text-decoration:none;}h1,h2,h3{padding-bottom:1px;margin-top:1.2em;margin-bottom:.3em;}h4,h5,h6{margin-top:1em;}h1{font-size:1.35em;}h2{font-size:1.25em;}h3{font-size:1.1em;}h4{font-size:1em;}h5{font-size:.9em;}hr{height:1px;}a{text-decoration:none;}dt{font-weight:bold;}ol{list-style-type:decimal;}ol ol{list-style-type:lower-alpha;}ol ol ol{list-style-type:lower-roman;}ol ol ol ol{list-style-type:decimal;}ol ol ol ol ol{list-style-type:lower-alpha;}ol ol ol ol ol ol{list-style-type:lower-roman;}ol ol ol ol ol ol ol{list-style-type:decimal;}.txtOptionInput{width:11em;}#contentWrapper .chkOptionInput{border:0;}.externalLink{text-decoration:underline;}.indent{margin-left:3em;}.outdent{margin-left:3em;text-indent:-3em;}code.escaped{white-space:nowrap;}.tiddlyLinkExisting{font-weight:bold;}.tiddlyLinkNonExisting{font-style:italic;}a.tiddlyLinkNonExisting.shadow{font-weight:bold;}#mainMenu .tiddlyLinkExisting,#mainMenu .tiddlyLinkNonExisting,#sidebarTabs .tiddlyLinkNonExisting{font-weight:normal;font-style:normal;}#sidebarTabs .tiddlyLinkExisting{font-weight:bold;font-style:normal;}.header{position:relative;}.header a:hover{background:transparent;}.headerShadow{position:relative;padding:4.5em 0 1em 1em;left:-1px;top:-1px;}.headerForeground{position:absolute;padding:4.5em 0 1em 1em;left:0;top:0;}.siteTitle{font-size:3em;}.siteSubtitle{font-size:1.2em;}#mainMenu{position:absolute;left:0;width:10em;text-align:right;line-height:1.6em;padding:1.5em .5em .5em .5em;font-size:1.1em;}#sidebar{position:absolute;right:3px;width:16em;font-size:.9em;}#sidebarOptions{padding-top:.3em;}#sidebarOptions a{margin:0 .2em;padding:.2em .3em;display:block;}#sidebarOptions input{margin:.4em .5em;}#sidebarOptions .sliderPanel{margin-left:1em;padding:.5em;font-size:.85em;}#sidebarOptions .sliderPanel a{font-weight:bold;display:inline;padding:0;}#sidebarOptions .sliderPanel input{margin:0 0 .3em 0;}#sidebarTabs .tabContents{width:15em;overflow:hidden;}.wizard{padding:.1em 1em 0 2em;}.wizard h1{font-size:2em;font-weight:bold;background:none;padding:0;margin:.4em 0 .2em;}.wizard h2{font-size:1.2em;font-weight:bold;background:none;padding:0;margin:.4em 0 .2em;}.wizardStep{padding:1em 1em 1em 1em;}.wizard .button{margin:.5em 0 0;font-size:1.2em;}.wizardFooter{padding:.8em .4em .8em 0;}.wizardFooter .status{padding:0 .4em;margin-left:1em;}.wizard .button{padding:.1em .2em;}#messageArea{position:fixed;top:2em;right:0;margin:.5em;padding:.5em;z-index:2000;_position:absolute;}.messageToolbar{display:block;text-align:right;padding:.2em;}#messageArea a{text-decoration:underline;}.tiddlerPopupButton{padding:.2em;}.popupTiddler{position:absolute;z-index:300;padding:1em;margin:0;}.popup{position:absolute;z-index:300;font-size:.9em;padding:0;list-style:none;margin:0;}.popup .popupMessage{padding:.4em;}.popup hr{display:block;height:1px;width:auto;padding:0;margin:.2em 0;}.popup li.disabled{padding:.4em;}.popup li a{display:block;padding:.4em;font-weight:normal;cursor:pointer;}.listBreak{font-size:1px;line-height:1px;}.listBreak div{margin:2px 0;}.tabset{padding:1em 0 0 .5em;}.tab{margin:0 0 0 .25em;padding:2px;}.tabContents{padding:.5em;}.tabContents ul,.tabContents ol{margin:0;padding:0;}.txtMainTab .tabContents li{list-style:none;}.tabContents li.listLink{margin-left:.75em;}#contentWrapper{display:block;}#splashScreen{display:none;}#displayArea{margin:1em 17em 0 14em;}.toolbar{text-align:right;font-size:.9em;}.tiddler{padding:1em 1em 0;}.missing .viewer,.missing .title{font-style:italic;}.title{font-size:1.6em;font-weight:bold;}.missing .subtitle{display:none;}.subtitle{font-size:1.1em;}.tiddler .button{padding:.2em .4em;}.tagging{margin:.5em .5em .5em 0;float:left;display:none;}.isTag .tagging{display:block;}.tagged{margin:.5em;float:right;}.tagging,.tagged{font-size:.9em;padding:.25em;}.tagging ul,.tagged ul{list-style:none;margin:.25em;padding:0;}.tagClear{clear:both;}.footer{font-size:.9em;}.footer li{display:inline;}.annotation{padding:.5em;margin:.5em;}* html .viewer pre{width:99%;padding:0 0 1em 0;}.viewer{line-height:1.4em;padding-top:.5em;}.viewer .button{margin:0 .25em;padding:0 .25em;}.viewer blockquote{line-height:1.5em;padding-left:.8em;margin-left:2.5em;}.viewer ul,.viewer ol{margin-left:.5em;padding-left:1.5em;}.viewer table,table.twtable{border-collapse:collapse;margin:.8em 1.0em;}.viewer th,.viewer td,.viewer tr,.viewer caption,.twtable th,.twtable td,.twtable tr,.twtable caption{padding:3px;}table.listView{font-size:.85em;margin:.8em 1.0em;}table.listView th,table.listView td,table.listView tr{padding:0 3px 0 3px;}.viewer pre{padding:.5em;margin-left:.5em;font-size:1.2em;line-height:1.4em;overflow:auto;}.viewer code{font-size:1.2em;line-height:1.4em;}.editor{font-size:1.1em;}.editor input,.editor textarea{display:block;width:100%;font:inherit;}.editorFooter{padding:.25em 0;font-size:.9em;}.editorFooter .button{padding-top:0;padding-bottom:0;}.fieldsetFix{border:0;padding:0;margin:1px 0;}.sparkline{line-height:1em;}.sparktick{outline:0;}.zoomer{font-size:1.1em;position:absolute;overflow:hidden;}.zoomer div{padding:1em;}* html #backstage{width:99%;}* html #backstageArea{width:99%;}#backstageArea{display:none;position:relative;overflow:hidden;z-index:150;padding:.3em .5em;}#backstageToolbar{position:relative;}#backstageArea a{font-weight:bold;margin-left:.5em;padding:.3em .5em;}#backstageButton{display:none;position:absolute;z-index:175;top:0;right:0;}#backstageButton a{padding:.1em .4em;margin:.1em;}#backstage{position:relative;width:100%;z-index:50;}#backstagePanel{display:none;z-index:100;position:absolute;width:90%;margin-left:3em;padding:1em;}.backstagePanelFooter{padding-top:.2em;float:right;}.backstagePanelFooter a{padding:.2em .4em;}#backstageCloak{display:none;z-index:20;position:absolute;width:100%;height:100px;}.whenBackstage{display:none;}.backstageVisible .whenBackstage{display:block;}
body{font-size:.8em;}#sidebarOptions{font-size:1.05em;}#sidebarOptions a{font-style:normal;}#sidebarOptions .sliderPanel{font-size:.95em;}.subtitle{font-size:.8em;}.viewer table.listView{font-size:.95em;}
@media print{#mainMenu,#sidebar,#messageArea,.toolbar,#backstageButton,#backstageArea{display:none!important;}#displayArea{margin:1em 1em 0;}noscript{display:none;}}
<!--{{{--><div class='header' macro='gradient vert [[ColorPalette::PrimaryLight]] [[ColorPalette::PrimaryMid]]'><div class='headerShadow'><span class='siteTitle' refresh='content' tiddler='SiteTitle'></span>&nbsp;<span class='siteSubtitle' refresh='content' tiddler='SiteSubtitle'></span></div><div class='headerForeground'><span class='siteTitle' refresh='content' tiddler='SiteTitle'></span>&nbsp;<span class='siteSubtitle' refresh='content' tiddler='SiteSubtitle'></span></div></div><div id='mainMenu' refresh='content' tiddler='MainMenu'></div><div id='sidebar'><div id='sidebarOptions' refresh='content' tiddler='SideBarOptions'></div><div id='sidebarTabs' refresh='content' force='true' tiddler='SideBarTabs'></div></div><div id='displayArea'><div id='messageArea'></div><div id='tiddlerDisplay'></div></div><!--;}}}-->
<!--{{{--><div class='toolbar' macro='toolbar [[ToolbarCommands::ViewToolbar]]'></div><div class='title' macro='view title'></div><div class='subtitle'><span macro='view modifier link'></span>,<span macro='view modified date'></span>(<span macro='message views.wikified.createdPrompt'></span><span macro='view created date'></span>)</div><div class='tagging' macro='tagging'></div><div class='tagged' macro='tags'></div><div class='viewer' macro='view text wikified'></div><div class='tagClear'></div><!--;}}}-->
<!--{{{--><div class='toolbar' macro='toolbar [[ToolbarCommands::EditToolbar]]'></div><div class='title' macro='view title'></div><div class='editor' macro='edit title'></div><div macro='annotations'></div><div class='editor' macro='edit text'></div><div class='editor' macro='edit tags'></div><div class='editorFooter'><span macro='message views.editor.tagPrompt'></span><span macro='tagChooser excludeLists'></span></div><!--;}}}-->
To get started with this blank [[TiddlyWiki]],you'll need to modify the following tiddlers:* [[SiteTitle]] & [[SiteSubtitle]]:The title and subtitle of the site,as shown above(after saving,they will also appear in the browser title bar) * [[MainMenu]]:The menu(usually on the left) * [[DefaultTiddlers]]:Contains the names of the tiddlers that you want to appear when the TiddlyWiki is opened You'll also need to enter your username for signing your edits:<<option txtUserName>>
These [[InterfaceOptions]] for customising [[TiddlyWiki]] are saved in your browser Your username for signing your edits. Write it as a [[WikiWord]](eg [[JoeBloggs]]) <<option txtUserName>><<option chkSaveBackups>>[[SaveBackups]] <<option chkAutoSave>>[[AutoSave]] <<option chkRegExpSearch>>[[RegExpSearch]] <<option chkCaseSensitiveSearch>>[[CaseSensitiveSearch]] <<option chkAnimate>>[[EnableAnimations]] ---- Also see [[AdvancedOptions]]
<<importTiddlers>>
/***
|Name|CoreTweaks|
|Source|http://www.TiddlyTools.com/#CoreTweaks|
|Version||
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.2.0|
|Type|plugin|
|Description|a small collection of overrides to TW core functions|
This tiddler contains small changes to TW core functions that correct or enhance standard features or behaviors.
***/
//{{{
// calculate TW version number - used to determine which tweaks should be applied
var ver=version.major+version.minor/10+version.revision/100;
//}}}
/***
----

***/
// // closed: won't fix //(leave as core tweaks)//
// // {{block{
/***
!!!637 TiddlyLink tooltip - custom formatting
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/637 - CLOSED: WON'T FIX
This tweak modifies the tooltip format that appears when you mouseover a link to a tiddler.  It adds an option to control the date format, as well as displaying the size of the tiddler (in bytes)

Tiddler link tooltip format:
{{stretch{<<option txtTiddlerLinkTootip>>}}}
^^where: %0=title, %1=username, %2=modification date, %3=size in bytes, %4=description slice, %5=first N characters of tiddler content^^
Tiddler link tooltip date format:
{{stretch{<<option txtTiddlerLinkTooltipDate>>}}}
Tiddler excerpt limit (chars):
{{stretch{<<option txtTiddlerLinkTooltipLimit>>}}}
***/
//{{{
config.messages.tiddlerLinkTooltip='%0 - %1, %2 (%3 bytes) - %4';
config.messages.tiddlerLinkTooltipDate='DDD, MMM DDth YYYY 0hh12:0mm AM';
config.messages.tiddlerLinkTooltipLimit=50;

config.options.txtTiddlerLinkTootip=
	config.options.txtTiddlerLinkTootip||config.messages.tiddlerLinkTooltip;
config.options.txtTiddlerLinkTooltipDate=
	config.options.txtTiddlerLinkTooltipDate||config.messages.tiddlerLinkTooltipDate;
config.options.txtTiddlerLinkTooltipLimit=
	config.options.txtTiddlerLinkTooltipLimit||config.messages.tiddlerLinkTooltipLimit;

Tiddler.prototype.getSubtitle = function() {
	var modifier = this.modifier;
	if(!modifier) modifier = config.messages.subtitleUnknown;
	var modified = this.modified;
	if(modified) modified = modified.formatString(config.options.txtTiddlerLinkTooltipDate);
	else modified = config.messages.subtitleUnknown;
	var descr=store.getTiddlerSlice(this.title,'Description')||'';
	var txt=this.text.substr(0,config.options.txtTiddlerLinkTooltipLimit);
	if (this.text.length>config.options.txtTiddlerLinkTooltipLimit) txt+="...";
	return config.options.txtTiddlerLinkTootip.format([this.title,modifier,modified,this.text.length,descr,txt]);
};
//}}}
// // }}}}}}// // {{block{
/***
!!!607 add HREF link on permaview command
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/607 - CLOSED: WON'T FIX
This tweak automatically sets the HREF for the 'permaview' sidebar command link so you can use the 'right click' context menu for faster, easier bookmarking.  Note that this does ''not'' automatically set the permaview in the browser's current location URL... it just sets the HREF on the command link.  You still have to click the link to apply the permaview.
***/
//{{{
config.macros.permaview.handler = function(place)
{
	var btn=createTiddlyButton(place,this.label,this.prompt,this.onClick);
	addEvent(btn,'mouseover',this.setHREF);
	addEvent(btn,'focus',this.setHREF);
};
config.macros.permaview.setHREF = function(event){
	var links = [];
	story.forEachTiddler(function(title,element) {
		links.push(String.encodeTiddlyLink(title));
	});
	var newURL=document.location.href;
	var hashPos=newURL.indexOf('#');
	if (hashPos!=-1) newURL=newURL.substr(0,hashPos);
	this.href=newURL+'#'+encodeURIComponent(links.join(' '));
}
//}}}
// // }}}}}}// // {{block{
/***
!!!458 add permalink-like HREFs on internal TiddlyLinks
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/458 - CLOSED: WON'T FIX
This tweak assigns a permalink-like HREF to internal Tiddler links (which normally do not have any HREF defined).  This permits the link's context menu (right-click) to include 'open link in another window/tab' command.  Based on a request from Dustin Spicuzza.
***/
//{{{
window.coreTweaks_createTiddlyLink=window.createTiddlyLink;
window.createTiddlyLink=function(place,title,includeText,theClass,isStatic,linkedFromTiddler,noToggle)
{
	// create the core button, then add the HREF (to internal links only)
	var link=window.coreTweaks_createTiddlyLink.apply(this,arguments);
	if (!isStatic)
		link.href=document.location.href.split('#')[0]+'#'+encodeURIComponent(String.encodeTiddlyLink(title));
	return link;
}
//}}}
// // }}}}}}
// // to be fixed in 2.6.0:
// // {{block{
/***
!!!1151 adjust popup placement when root element is in scrolled DIV
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/1151
When a popup link is placed inside a DIV with style "overflow:scroll" or "overflow:auto" and that DIV is then scrolled, the position of the resulting popup appears further down the page that intended, because it is not adjusting for the relative scroll offset of the containing DIV.  This tweak patches the Popup.place() function to calculate and subtract the current scroll offset from the computed popup position, so that it appears in the correct location on the page.

Test case: //(scroll to the bottom of this DIV and click on "test popup")//
{{groupbox{
 <<tiddler ScrollBox with: CoreTweaks##1151test 12em>>}}}/%
!1151test
<<tiddler About>>
<<showPopup tiddler:About label:"test popup" tip:About popupClass:sticky>>
!end
%/
***/
//{{{
window.findScrollOffsetX=function(obj) {
	var x=0;
	while(obj) {
		if (obj.scrollLeft && obj.nodeName!='HTML')
			x+=obj.scrollLeft;
		obj=obj.parentNode;
	}
	return -x;
}

window.findScrollOffsetY=function(obj) {
	var y=0;
	while(obj) {
		if (obj.scrollTop && obj.nodeName!='HTML')
			y+=obj.scrollTop;
		obj=obj.parentNode;
	}
	return -y;
}

var fn=Popup.place.toString();
if (fn.indexOf('findScrollOffsetX')==-1) { // only once
	fn=fn.replace(/var\s*rootLeft\s*=/,'var rootLeft = window.findScrollOffsetX(root) +');
	fn=fn.replace(/var\s*rootTop\s*=/,'var rootTop = window.findScrollOffsetY(root) +');
	eval('Popup.place='+fn);
}
//}}}
// // }}}}}}// // {{block{
/***
!!!1147 tiddler macro with params does not refresh
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/1147
when the {{{<<tiddler SomeTiddler>>}}} macro is handled, the resulting span has extra attributes: {{{refresh='content'}}} and {{{tiddler='SomeTiddler'}}}.  If SomeTiddler is changed, {{{store.notify('SomeTiddler')}}} triggers {{{refreshDisplay()}}}, which automatically re-renders transcluded content in any span that has these extra attributes.  However, when additional arguments are passed by using {{{<<tiddler SomeTiddler with: arg arg arg ...>>}}} then the resulting span does NOT get the extra attributes noted above and, as a consequence, the transcluded content is not being refreshed, even though the underlying tiddler has changed

To correct this, in {{{config.macros.tiddler.handler}}}:
*set the 'refresh' and 'tiddler' attributes even when arguments are present in the macro
*store the arguments themselves in an attribute (e.g, 'args'), using as a space-separated, bracketed list
Then, in {{{config.refreshers.content}}}:
*retrieve the stored arguments (if any) and the tiddler source
*substitute arguments into source and re-render the span with the updated content

***/
//{{{
config.refreshers.content=function(e,changeList) {
		var title = e.getAttribute("tiddler");
		var force = e.getAttribute("force");
		var args = e.getAttribute("args"); // ADDED
		if(force != null || changeList == null || changeList.indexOf(title) != -1) {
			removeChildren(e);
//			wikify(store.getTiddlerText(title,""),e,null,store.fetchTiddler(title)); // REMOVED
			config.macros.tiddler.transclude(e,title,args); // ADDED
			return true;
		} else
			return false;
};

config.macros.tiddler.handler=function(place,macroName,params,wikifier,paramString,tiddler) {
	params = paramString.parseParams("name",null,true,false,true);
	var names = params[0]["name"];
	var tiddlerName = names[0];
	var className = names[1] || null;
	var args = params[0]["with"];
	var wrapper = createTiddlyElement(place,"span",null,className);
//	if(!args) { // REMOVED
		wrapper.setAttribute("refresh","content");
		wrapper.setAttribute("tiddler",tiddlerName);
// 	} // REMOVED
	if(args!==undefined) wrapper.setAttribute("args",'[['+args.join(']] [[')+']]'); // ADDED
	this.transclude(wrapper,tiddlerName,args); // REFACTORED TO ...tiddler.transclude
}

// REFACTORED FROM ...tiddler.handler
config.macros.tiddler.transclude=function(wrapper,tiddlerName,args) {
	var text = store.getTiddlerText(tiddlerName); if (!text) return;
	var stack = config.macros.tiddler.tiddlerStack;
	if(stack.indexOf(tiddlerName) !== -1) return;
	stack.push(tiddlerName);
	try {
		if (typeof args == "string") args=args.readBracketedList(); // ADDED
		var n = args ? Math.min(args.length,9) : 0;
		for(var i=0; i<n; i++) {
			var placeholderRE = new RegExp("\\$" + (i + 1),"mg");
			text = text.replace(placeholderRE,args[i]);
		}
		config.macros.tiddler.renderText(wrapper,text,tiddlerName,null); // REMOVED UNUSED 'params'
	} finally {
		stack.pop();
	}
};
//}}}
// // }}}}}}// // {{block{
/***
!!!1134 allow leading whitespace in section headings / TBD handle shadow tiddler sections
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/1134
This tweak REPLACES and extends {{{store.getTiddlerText()}}} so it can return sections defined in shadow tiddlers as well as permitting use of leading whitespace in section headings.
***/
//{{{
TiddlyWiki.prototype.getTiddlerText = function(title,defaultText)
{
	if(!title) return defaultText;
	var parts = title.split(config.textPrimitives.sectionSeparator);
	var title = parts[0];
	var section = parts[1];
	var parts = title.split(config.textPrimitives.sliceSeparator);
	var title = parts[0];
	var slice = parts[1]?this.getTiddlerSlice(title,parts[1]):null;
	if(slice) return slice;
	var tiddler = this.fetchTiddler(title);
	var text = defaultText;
	if(this.isShadowTiddler(title))
		text = this.getShadowTiddlerText(title);
	if(tiddler)
		text = tiddler.text;
	if(!section) return text;
	var re = new RegExp("(^!{1,6}[ \t]*" + section.escapeRegExp() + "[ \t]*\n)","mg");
	re.lastIndex = 0;
	var match = re.exec(text);
	if(match) {
		var t = text.substr(match.index+match[1].length);
		var re2 = /^!/mg;
		re2.lastIndex = 0;
		match = re2.exec(t); //# search for the next heading
		if(match)
			t = t.substr(0,match.index-1);//# don't include final \n
		return t;
	}
	return defaultText;
};
//}}}
// // }}}}}}// // {{block{
/***
!!!824 ~WindowTitle - alternative to combined ~SiteTitle/~SiteSubtitle in window titlebar
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/824 - OPEN
This tweak allows definition of an optional [[WindowTitle]] tiddler that, when present, provides alternative text for display in the browser window's titlebar, instead of using the combined text content from [[SiteTitle]] and [[SiteSubtitle]] (which will still be displayed as usual in the TiddlyWiki document header area).

Note: this ticket replaces http://trac.tiddlywiki.org/ticket/401 (closed), which proposed using a custom [[PageTitle]] tiddler for this purpose.  ''If you were using the previous '401 ~PageTitle' tweak, you will need to rename [[PageTitle]] to [[WindowTitle]] to continue to use your custom window title text''
***/
//{{{
config.shadowTiddlers.WindowTitle='<<tiddler SiteTitle>> - <<tiddler SiteSubtitle>>';
window.getPageTitle=function() { return wikifyPlain('WindowTitle'); }
store.addNotification('WindowTitle',refreshPageTitle); // so title stays in sync with tiddler changes
//}}}
// // }}}}}}// // {{block{
/***
!!!471 'creator' field for new tiddlers
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/471 - OPEN
This tweak HIJACKS the core's saveTiddler() function to automatically add a 'creator' field to a tiddler when it is FIRST created. You can use """<<view creator>>""" (or """<<view creator wikified>>""" if you prefer) to show this value embedded directly within the tiddler content, or {{{<span macro="view creator"></span>}}} in the ViewTemplate and/or EditTemplate to display the creator value in each tiddler.  
***/
//{{{
// hijack saveTiddler()
TiddlyWiki.prototype.CoreTweaks_creatorSaveTiddler=TiddlyWiki.prototype.saveTiddler;
TiddlyWiki.prototype.saveTiddler=function(title,newTitle,newBody,modifier,modified,tags,fields)
{
	var existing=store.tiddlerExists(title);
	var tiddler=this.CoreTweaks_creatorSaveTiddler.apply(this,arguments);
	if (!existing) store.setValue(title,'creator',config.options.txtUserName);
	return tiddler;
}
//}}}
// // }}}}}}
// // fixed in ~TW2.4.3
// // {{block{
/***
!!!444 'tiddler' and 'place' - global variables for use in computed macro parameters
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/444 - CLOSED:FIXED - TW2.4.3 - http://trac.tiddlywiki.org/changeset/8367
When invoking a macro, this tweak makes the current containing tiddler object and DOM rendering location available as global variables (window.tiddler and window.place, respectively).  These globals can then be used within //computed macro parameters// to retrieve tiddler-relative and/or DOM-relative values or perform tiddler-specific side-effect functionality.
***/
//{{{
if (ver<2.43) {
window.coreTweaks_invokeMacro = window.invokeMacro;
window.invokeMacro = function(place,macro,params,wikifier,tiddler) {
	var here=story.findContainingTiddler(place);
	window.tiddler=here?store.getTiddler(here.getAttribute('tiddler')):tiddler;
	window.place=place;
	window.coreTweaks_invokeMacro.apply(this,arguments);
}
}
//}}}
// // }}}}}}
// // fixed in ~TW2.4.2:
// // {{block{
/***
!!!823 apply option values via paramifiers (e.g. #chk...and #txt...)
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/823 - CLOSED:FIXED - TW2.4.2 http://trac.tiddlywiki.org/changeset/7988
This tweak extends and ''//replaces//'' the core {{{invokeParamifier()}}} function to support use of ''option paramifiers'' that set TiddlyWiki option values on-the-fly, directly from a document URL.

If a paramifier begins with 'chk' (checkbox) or 'txt' (text field), it's value will be automatically stored in {{{config.options.*}}}, adding to or overriding any existing 'chk' or 'txt' option values that may have already been loaded from browser cookies and/or assigned by the TW core or plugin initialization functions using hard-coded default values.  Note: option values that have been overriden by paramifiers are only applied during the current document session, and are not //automatically// retained.  However, if you edit an overridden option value during that session, then the modified value is, of course, saved in a browser cookie, as usual.
***/
//{{{
if (ver<2.42) {
function invokeParamifier(params,handler)
{
	if(!params || params.length == undefined || params.length <= 1)
		return;
	for(var t=1; t<params.length; t++) {
		var p = config.paramifiers[params[t].name];
		if(p && p[handler] instanceof Function)
			p[handler](params[t].value);
		else { // not a paramifier with handler()... check for an 'option' prefix
			var h=config.optionHandlers[params[t].name.substr(0,3)];
			if (h && h.set instanceof Function)
				h.set(params[t].name,params[t].value);
		}
	}
}
}
//}}}
// // }}}}}}
// // open tickets:
// // {{block{
/***
!!!608/609/610 toolbars - toggles, separators and transclusion
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/608 - OPEN (more/less toggle)
http://trac.tiddlywiki.org/ticket/609 - OPEN (separators)
http://trac.tiddlywiki.org/ticket/610 - OPEN (wikify tiddler/slice/section content)

This combination tweak extends the """<<toolbar>>""" macro to add use of '<' to insert a 'less' menu command (the opposite of '>' == 'more'), as well as use of '*' to insert linebreaks and "!" to insert a vertical line separator between toolbar items.  In addition, this tweak add the ability to use references to tiddlernames, slices, or sections and render their content inline within the toolbar, allowing easy creation of new toolbar commands using TW content (such as macros, links, inline scripts, etc.)

To produce a one-line style, with "less" at the end, use
| ViewToolbar| foo bar baz > yabba dabba doo < |
or to use a two-line style with more/less toggle:
| ViewToolbar| foo bar baz > < * yabba dabba doo |
***/
//{{{
merge(config.macros.toolbar,{
	moreLabel: 'more\u25BC',
	morePrompt: 'Show additional commands',
	lessLabel: '\u25C4less',
	lessPrompt: 'Hide additional commands',
	separator: '|'
});
config.macros.toolbar.onClickMore = function(ev) {
	var e = this.nextSibling;
	e.style.display = 'inline'; // show menu
	this.style.display = 'none'; // hide button
	return false;
};
config.macros.toolbar.onClickLess = function(ev) {
	var e = this.parentNode;
	var m = e.previousSibling;
	e.style.display = 'none'; // hide menu
	m.style.display = 'inline'; // show button
	return false;
};
config.macros.toolbar.handler = function(place,macroName,params,wikifier,paramString,tiddler) {
	for(var t=0; t<params.length; t++) {
		var c = params[t];
		switch(c) {
			case '!':  // ELS - SEPARATOR (added)
				createTiddlyText(place,this.separator);
				break;
			case '*':  // ELS - LINEBREAK (added)
				createTiddlyElement(place,'BR');
				break;
			case '<': // ELS - LESS COMMAND (added)
				var btn = createTiddlyButton(place,
					this.lessLabel,this.lessPrompt,config.macros.toolbar.onClickLess,'moreCommand');
				break;
			case '>':
				var btn = createTiddlyButton(place,
					this.moreLabel,this.morePrompt,config.macros.toolbar.onClickMore,'moreCommand');
				var e = createTiddlyElement(place,'span',null,'moreCommand');
				e.style.display = 'none';
				place = e;
				break;
			default:
				var theClass = '';
				switch(c.substr(0,1)) {
					case '+':
						theClass = 'defaultCommand';
						c = c.substr(1);
						break;
					case '-':
						theClass = 'cancelCommand';
						c = c.substr(1);
						break;
				}
				if(c in config.commands)

					this.createCommand(place,c,tiddler,theClass);
				else { // ELS - WIKIFY TIDDLER/SLICE/SECTION (added)
					if (c.substr(0,1)=='~') c=c.substr(1); // ignore leading ~
					var txt=store.getTiddlerText(c);
					if (txt) {
						// trim any leading/trailing newlines
						txt=txt.replace(/^\n*/,'').replace(/\n*$/,'');
						// trim PRE format wrapper if any
						txt=txt.replace(/^\{\{\{\n/,'').replace(/\n\}\}\}$/,'');
						// render content into toolbar
						wikify(txt,createTiddlyElement(place,'span'),null,tiddler);
					}
				} // ELS - end WIKIFY CONTENT
				break;
		}
	}
};
//}}}
// // }}}}}}// // {{block{
/***
!!!529 IE fixup - case-sensitive element lookup of tiddler elements
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/529 - OPEN
This tweak hijacks the standard browser function, document.getElementById(), to work-around the case-INsensitivity error in Internet Explorer (all versions up to and including IE7) //''Note: This tweak is only applied when using IE, and only for lookups of rendered tiddler elements within the containing 'tiddlerDisplay' element.''//
***/
//{{{
if (config.browser.isIE) {
document.coreTweaks_coreGetElementById=document.getElementById;
document.getElementById=function(id) {
	var e=document.coreTweaks_coreGetElementById(id);
	if (!e || !e.parentNode || e.parentNode.id!='tiddlerDisplay') return e;
	for (var i=0; i<e.parentNode.childNodes.length; i++)
		if (id==e.parentNode.childNodes[i].id) return e.parentNode.childNodes[i];
	return null;
};
}
//}}}
// // }}}}}}// // {{block{
/***
!!!890 add conditional test to """<<tiddler>>""" macro
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/890 - OPEN
This tweak extends the {{{<<tiddler>>}}} macro syntax so you can include a javascript-based //test expression// to determine if the tiddler transclusion should be performed:
{{{
<<tiddler TiddlerName if:{{...}} with: param param etc.>>
}}}
If the test is ''true'', then the tiddler is transcluded as usual.  If the test is ''false'', then the transclusion is skipped and //no output is produced//.
***/
//{{{
config.macros.tiddler.if_handler = config.macros.tiddler.handler;
config.macros.tiddler.handler = function(place,macroName,params,wikifier,paramString,tiddler)
{
	params = paramString.parseParams('name',null,true,false,true);
	if (!getParam(params,'if',true)) return;
	this.if_handler.apply(this,arguments);
};
//}}}
// // }}}}}}// // {{block{
/***
!!!831 backslash-quoting for embedding newlines in 'line-mode' formats
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/831 - OPEN
This tweak pre-processes source content to convert 'double-backslash-newline' into {{{<br>}}} before wikify(), so that literal newlines can be embedded in line-mode wiki syntax (e.g., tables, bullets, etc.)
***/
//{{{
window.coreWikify = wikify;
window.wikify = function(source,output,highlightRegExp,tiddler)
{
	if (source) arguments[0]=source.replace(/\\\\\n/mg,'<br>');
	coreWikify.apply(this,arguments);
}
//}}}
// // }}}}}}// // {{block{
/***
!!!683 FireFox3 Import bug: 'browse' button replacement
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/683 - OPEN
The web standard 'type=file' input control that has been used as a local path/file picker for TiddlyWiki no longer works as expected in FireFox3, which has, for security reasons, limited javascript access to this control so that *no* local filesystem path information can be revealed, even when it is intentional and necessary, as it is with TiddlyWiki.  This tweak provides alternative HTML source that patches the backstage import panel.  It replaces the 'type=file' input control with a text+button combination of controls that invokes a system-native secure 'file-chooser' dialog box to provide TiddlyWiki with access to a complete path+filename so that TW functions properly locate user-selected local files.
>Note: ''This tweak also requires http://trac.tiddlywiki.org/ticket/604 - cross-platform askForFilename()''
***/
//{{{
if (window.Components) {
	var fixhtml='<input name="txtBrowse" style="width:30em"><input type="button" value="..."'
		+' onClick="window.browseForFilename(this.previousSibling,true)">';
	var cmi=config.macros.importTiddlers;
	cmi.step1Html=cmi.step1Html.replace(/<input type='file' size=50 name='txtBrowse'>/,fixhtml);
}

merge(config.messages,{selectFile:'Please enter or select a file'}); // ready for I18N translation

window.browseForFilename=function(target,mustExist) { // note: both params are optional
	var msg=config.messages.selectFile;
	if (target && target.title) msg=target.title; // use target field tooltip (if any) as dialog prompt text
	// get local path for current document
	var path=getLocalPath(document.location.href);
	var p=path.lastIndexOf('/'); if (p==-1) p=path.lastIndexOf('\\'); // Unix or Windows
	if (p!=-1) path=path.substr(0,p+1); // remove filename, leave trailing slash
	var file=''
	var result=window.askForFilename(msg,path,file,mustExist); // requires #604
	if (target && result.length) // set target field and trigger handling
		{ target.value=result; target.onchange(); }
	return result; 
}
//}}}
// // }}}}}}// // {{block{
/***
!!!604 cross-platform askForFilename()
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/604 - OPEN
invokes a system-native secure 'file-chooser' dialog box to provide TiddlyWiki with access to a complete path+filename so that TW functions properly locate user-selected local files.
***/
//{{{
window.askForFilename=function(msg,path,file,mustExist) {
	var r = window.mozAskForFilename(msg,path,file,mustExist);
	if(r===null || r===false)
		r = window.ieAskForFilename(msg,path,file,mustExist);
	if(r===null || r===false)
		r = window.javaAskForFilename(msg,path,file,mustExist);
	if(r===null || r===false)
		r = prompt(msg,path+file);
	return r||'';
}

window.mozAskForFilename=function(msg,path,file,mustExist) {
	if(!window.Components) return false;
	try {
		netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
		var nsIFilePicker = window.Components.interfaces.nsIFilePicker;
		var picker = Components.classes['@mozilla.org/filepicker;1'].createInstance(nsIFilePicker);
		picker.init(window, msg, mustExist?nsIFilePicker.modeOpen:nsIFilePicker.modeSave);
		var thispath = Components.classes['@mozilla.org/file/local;1'].createInstance(Components.interfaces.nsILocalFile);
		thispath.initWithPath(path);
		picker.displayDirectory=thispath;
		picker.defaultExtension='html';
		picker.defaultString=file;
		picker.appendFilters(nsIFilePicker.filterAll|nsIFilePicker.filterText|nsIFilePicker.filterHTML);
		if (picker.show()!=nsIFilePicker.returnCancel)
			var result=picker.file.path;
	}
	catch(ex) { displayMessage(ex.toString()); }
	return result;
}

window.ieAskForFilename=function(msg,path,file,mustExist) {
	if(!config.browser.isIE) return false;
	try {
		var s = new ActiveXObject('UserAccounts.CommonDialog');
		s.Filter='All files|*.*|Text files|*.txt|HTML files|*.htm;*.html|';
		s.FilterIndex=3; // default to HTML files;
		s.InitialDir=path;
		s.FileName=file;
		return s.showOpen()?s.FileName:'';
	}
	catch(ex) { displayMessage(ex.toString()); }
	return result;
}

window.javaAskForFilename=function(msg,path,file,mustExist) {
	if(!document.applets['TiddlySaver']) return false;
	// TBD: implement java-based askFile(...) function
	try { return document.applets['TiddlySaver'].askFile(msg,path,file,mustExist); } 
	catch(ex) { displayMessage(ex.toString()); }
}
//}}}
// // }}}}}}// // {{block{
/***
!!!657 wrap tabs onto multiple lines
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/657 - OPEN
This tweak inserts an extra space element following each tab, allowing them to wrap onto multiple lines if needed.
***/
//{{{
config.macros.tabs.handler = function(place,macroName,params)
{
	var cookie = params[0];
	var numTabs = (params.length-1)/3;
	var wrapper = createTiddlyElement(null,'div',null,'tabsetWrapper ' + cookie);
	var tabset = createTiddlyElement(wrapper,'div',null,'tabset');
	tabset.setAttribute('cookie',cookie);
	var validTab = false;
	for(var t=0; t<numTabs; t++) {
		var label = params[t*3+1];
		var prompt = params[t*3+2];
		var content = params[t*3+3];
		var tab = createTiddlyButton(tabset,label,prompt,this.onClickTab,'tab tabUnselected');
		createTiddlyElement(tab,'span',null,null,' ',{style:'font-size:0pt;line-height:0px'}); // ELS
		tab.setAttribute('tab',label);
		tab.setAttribute('content',content);
		tab.title = prompt;
		if(config.options[cookie] == label)
			validTab = true;
	}
	if(!validTab)
		config.options[cookie] = params[1];
	place.appendChild(wrapper);
	this.switchTab(tabset,config.options[cookie]);
};
//}}}
// // }}}}}}// // {{block{
/***
!!!628 hide 'no such macro' errors
***/
// // {{groupbox small{
/***
http://trac.tiddlywiki.org/ticket/628 - OPEN
When invoking a macro that is not defined, this tweak prevents the display of the 'error in macro... no such macro' message.  This is useful when rendering tiddler content or templates that reference macros that are defined by //optional// plugins that have not been installed in the current document.

<<option chkHideMissingMacros>> hide 'no such macro' error messages
***/
//{{{
if (config.options.chkHideMissingMacros===undefined)
	config.options.chkHideMissingMacros=false;

window.coreTweaks_missingMacro_invokeMacro = window.invokeMacro;
window.invokeMacro = function(place,macro,params,wikifier,tiddler) {
	if (!config.macros[macro] || !config.macros[macro].handler)
		if (config.options.chkHideMissingMacros) return;
	window.coreTweaks_missingMacro_invokeMacro.apply(this,arguments);
}
//}}}
// // }}}}}}
// // <<foldHeadings>>
<html><nowiki><form action="curso.php" method="POST" enctype="multipart/form-data" target="responseFrame">
<input name="title" style="width:400px;" value="" onfocus="this.select()">Titulo<br>
<input name="username" value="" style="width:200px;">Seu Nome<br>
<input type=hidden name="when"><input type=hidden name=editora value="html"><input name="curso" value="" style="width:200px;">Curso<br>
<input name="escola" value="" style="width:200px;">Escola<br>
<input name="url" style="width:400px;" value="url" onfocus="this.select()">Url<br>
<input type=text name="tema" style="width:500px;" value="" onfocus="this.select()">Tema<br>
<input name="citado" style="width:650px;" onfocus="this.select()">Citado<br>
Sua Comentario<br>
<textarea name="comment" rows="4" cols="44" style="width:750px;" value=" " ></textarea>
<input type="submit" value="Salva" onclick=''> 
</form><iframe src="" name="responseFrame" id="responseFrame" width=400px height=50px style="border:0;"></iframe></html><script>
var form=place.lastChild.getElementsByTagName('form')[0];
form.title.value=config.options.txtTitle;
form.url.value=config.options.txtFonte;
form.username.value=localStorage.username;
form.curso.value=localStorage.curso;
form.escola.value=localStorage.escola;
var date=new Date();
form.when.value=date.formatString("YYYY-MM-DD_hh:mm");
</script>
[[Init]]
{{small{{{fourcolumns{<script>  
var out="";
var list="";
  var xmlHttp = null;
    xmlHttp = new XMLHttpRequest();
    var discFile="AAA/tags_"+localStorage.language+".txt";
    xmlHttp.open( "GET",discFile, false);
    xmlHttp.send( null );
    var returnText =xmlHttp.responseText;
var etiquetas=returnText.split("#n");
for(t=0;t<etiquetas.length;t++){
var etiText=etiquetas[t].split("|");
if(etiText[2]=="Referencia"){out+=etiText[0]+"<br>";}
}
var referencias=out.split("<br>");
for(e=0;e<referencias.length-1;e++){
list+="<br>''"+referencias[e]+"''<br>";
for(t=0;t<etiquetas.length-1;t++){
var etiText=etiquetas[t].split("|");
if(etiText[6].indexOf(referencias[e])!="-1") {list+='<script label="'+etiText[0]+'">localStorage.chkTag="'+etiText[0]+'";config.refreshers.content(document.getElementById("interact"));</scrip'+'t><br>';}
}
}

return list;
</script>}}} }}}
<html><nowiki><form action="foto.php" method="POST" enctype="multipart/form-data" target="responseFrame">
<input name="title" style="width:400px;" value="" onfocus="this.select()">Titulo<br>
<input name="username" value="" style="width:200px;">Seu Nome<br>
<input type=hidden name="when"><input type=hidden name=editora value="foto"><input name="curso" value="" style="width:200px;">Curso<br>
<input name="escola" value="" style="width:200px;">Escola<br>
<input name="url" style="width:400px;" value="url" onfocus="this.select()">Url do foto<br>
<input type=text name="tema" style="width:500px;" value="" onfocus="this.select()">Tema<br>
<input name="citado" style="width:650px;" onfocus="this.select()">Citado<br>
Sua Comentario<br>
<textarea name="comment" rows="4" cols="44" style="width:750px;" value=" " ></textarea>
<input type="submit" value="Salva" onclick=''> 
</form><iframe src="" name="responseFrame" id="responseFrame" width=400px height=50px style="border:0;"></iframe></html><script>
var form=place.lastChild.getElementsByTagName('form')[0];
form.title.value=config.options.txtTitle;
form.url.value=config.options.txtFonte;
form.username.value=localStorage.username;
form.curso.value=localStorage.curso;
form.escola.value=localStorage.escola;
var date=new Date();
form.when.value=date.formatString("YYYY-MM-DD_hh:mm");
</script>
To get started with this blank [[TiddlyWiki]],you'll need to modify the following tiddlers:* [[SiteTitle]] & [[SiteSubtitle]]:The title and subtitle of the site,as shown above(after saving,they will also appear in the browser title bar) * [[MainMenu]]:The menu(usually on the left) * [[DefaultTiddlers]]:Contains the names of the tiddlers that you want to appear when the TiddlyWiki is opened You'll also need to enter your username for signing your edits:<<option txtUserName>>
[[*|SideBarTabs]]
<html><nowiki><form action="www.php" method="POST" enctype="multipart/form-data" target="responseFrame">
<input name="title" style="width:400px;" value="" onfocus="this.select()">Titulo<br>
<input name="username" value="" style="width:200px;">Seu Nome<br>
<input type=hidden name="when"><input type=hidden name=genero value=""><input name="curso" value="" style="width:200px;">Curso<br>
<input name="escola" value="" style="width:200px;">Escola<br>
<input name="url" style="width:400px;" value="url" onfocus="this.select()">Url<br>
<input type=text name="tema" style="width:400px;" value="" onfocus="this.select()">Tema<br>
<input name="citado" style="width:400px;" onfocus="this.select()">Citado<br>
Sua Comentario<br>
<textarea name="comment" rows="6" cols="44" style="width:400px;" value=" " ></textarea><br>
<input type="submit" value="Salva" onclick=''> 
</form><iframe src="" name="responseFrame" id="responseFrame" width=400px height=200px style="border:0;"></iframe></html><script>
var form=place.lastChild.getElementsByTagName('form')[0];
var Tit=config.options.txtTitle;
var Pipe=Tit.indexOf("|");
if(Pipe>2){form.title.value=Tit.substring(0,Pipe-1);}
else{form.title.value=Tit;}

form.citado.value=config.options.txtCitado;
var url=config.options.txtFonte;
form.url.value=url;

if(config.options.txtGenero=="Youtube")
    {var InitCode=url.indexOf("watch?v=");
     form.url.value=url.substring(InitCode+8);}

if(config.options.txtGenero=="TEDTalks")
    {var title=config.options.txtTitle;
    var pipe=title.indexOf("|");
    title=title.substring(0,pipe);
    form.title.value=title.replace(/:/g,"-");
    var InitCode=url.indexOf("talks/");
    form.url.value=url.substring(InitCode+6);}

if(config.options.txtGenero=="Vimeo")
    {var InitCode=url.indexOf(".com/");
    form.url.value=url.substring(InitCode+5);}

if(config.options.txtGenero=="nota")
   {form.title.value="";
  form.url.value="";}


form.username.value=localStorage.username;
form.curso.value=localStorage.curso;
form.escola.value=localStorage.escola;
form.genero.value=config.options.txtGenero;
var date=new Date();
form.when.value=date.formatString("YYYY-MM-DD_hh:mm");
</script>
/***
|Name|HTMLFormattingPlugin|
|Source|http://www.TiddlyTools.com/#HTMLFormattingPlugin|
|Documentation|http://www.TiddlyTools.com/#HTMLFormattingPluginInfo|
|Version|2.4.1|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|plugin|
|Description|embed wiki syntax formatting inside of HTML content|
The ~HTMLFormatting plugin allows you to ''mix wiki-style formatting syntax within HTML formatted content'' by extending the action of the standard TiddlyWiki formatting handler.
!!!!!Documentation
>see [[HTMLFormattingPluginInfo]]
!!!!!Configuration
<<<
Use {{{<hide linebreaks>}}} within HTML content to wiki-style rendering of line breaks.  To //always// omit all line breaks from the rendered output, you can set this option:
><<option chkHTMLHideLinebreaks>> ignore all line breaks
which can also be 'hard coded' into your document by adding the following to a tiddler, tagged with <<tag systemConfig>>
>{{{config.options.chkHTMLHideLinebreaks=true;}}}
<<<
!!!!!Revisions
<<<
2010.05.07 2.4.1 added chkHTMLHideLinebreaks option
| see [[HTMLFormattingPluginInfo]] for additional revision details |
2005.06.26 1.0.0 Initial Release (as code adaptation - pre-dates TiddlyWiki plugin architecture!!)
<<<
!!!!!Code
***/
//{{{
version.extensions.HTMLFormattingPlugin= {major: 2, minor: 4, revision: 1, date: new Date(2010,5,7)};

// find the formatter for HTML and replace the handler
initHTMLFormatter();
function initHTMLFormatter()
{
	for (var i=0; i<config.formatters.length && config.formatters[i].name!="html"; i++);
	if (i<config.formatters.length)	config.formatters[i].handler=function(w) {
		if (!this.lookaheadRegExp)  // fixup for TW2.0.x
			this.lookaheadRegExp = new RegExp(this.lookahead,"mg");
		this.lookaheadRegExp.lastIndex = w.matchStart;
		var lookaheadMatch = this.lookaheadRegExp.exec(w.source)
		if(lookaheadMatch && lookaheadMatch.index == w.matchStart) {
			var html=lookaheadMatch[1];
			// if <nowiki> is present, just let browser handle it!
			if (html.indexOf('<nowiki>')!=-1)
				createTiddlyElement(w.output,"span").innerHTML=html;
			else {
				// if <hide linebreaks> is present, or chkHTMLHideLinebreaks is set
				// suppress wiki-style literal handling of newlines
				if (config.options.chkHTMLHideLinebreaks||(html.indexOf('<hide linebreaks>')!=-1))
					html=html.replace(/\n/g,' ');
				// remove all \r's added by IE textarea and mask newlines and macro brackets
				html=html.replace(/\r/g,'').replace(/\n/g,'\\n').replace(/<</g,'%%(').replace(/>>/g,')%%');
				// create span, let browser parse HTML
				var e=createTiddlyElement(w.output,"span"); e.innerHTML=html;
				// then re-render text nodes as wiki-formatted content
				wikifyTextNodes(e,w);
			}
			w.nextMatch = this.lookaheadRegExp.lastIndex; // continue parsing
		}
	}
}

// wikify #text nodes that remain after HTML content is processed (pre-order recursion)
function wikifyTextNodes(theNode,w)
{
	function unmask(s) { return s.replace(/\%%\(/g,'<<').replace(/\)\%%/g,'>>').replace(/\\n/g,'\n'); }
	switch (theNode.nodeName.toLowerCase()) {
		case 'style': case 'option': case 'select':
			theNode.innerHTML=unmask(theNode.innerHTML);
			break;
		case 'textarea':
			theNode.value=unmask(theNode.value);
			break;
		case '#text':
			var txt=unmask(theNode.nodeValue);
			var newNode=createTiddlyElement(null,"span");
			theNode.parentNode.replaceChild(newNode,theNode);
			wikify(txt,newNode,highlightHack,w.tiddler);
			break;
		default:
			for (var i=0;i<theNode.childNodes.length;i++)
				wikifyTextNodes(theNode.childNodes.item(i),w); // recursion
			break;
	}
}
//}}}
[[*|SideBarOptions]]<script>
sessionStorage.hereTema=config.options.txtTema;
sessionStorage.curso=config.options.txtCurso;
    var xmlHttp = null;
    xmlHttp = new XMLHttpRequest();
    var discFile="Temas/"+sessionStorage.hereTema+".txt";
//return discFile;
    xmlHttp.open( "GET",discFile, false);
    xmlHttp.send( null );
var hereLista=xmlHttp.responseText;
var hereItems=hereLista.split("#");
var lista="";
for(i=0;i<hereItems.length-1;i++)
{
var thisItem=hereItems[i].split("|");
lista+=thisItem[0]+"<br>";
}
return lista;
</script>
/***
|Name|InlineJavascriptPlugin|
|Source|http://www.TiddlyTools.com/#InlineJavascriptPlugin|
|Documentation|http://www.TiddlyTools.com/#InlineJavascriptPluginInfo|
|Version|1.9.6|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|plugin|
|Description|Insert Javascript executable code directly into your tiddler content.|
''Call directly into TW core utility routines, define new functions, calculate values, add dynamically-generated TiddlyWiki-formatted output'' into tiddler content, or perform any other programmatic actions each time the tiddler is rendered.
!!!!!Documentation
>see [[InlineJavascriptPluginInfo]]
!!!!!Revisions
<<<
2010.12.15 1.9.6 allow (but ignore) type="..." syntax
|please see [[InlineJavascriptPluginInfo]] for additional revision details|
2005.11.08 1.0.0 initial release
<<<
!!!!!Code
***/
//{{{
version.extensions.InlineJavascriptPlugin= {major: 1, minor: 9, revision: 6, date: new Date(2010,12,15)};

config.formatters.push( {
	name: "inlineJavascript",
	match: "\\<script",
	lookahead: "\\<script(?: type=\\\"[^\\\"]*\\\")?(?: src=\\\"([^\\\"]*)\\\")?(?: label=\\\"([^\\\"]*)\\\")?(?: title=\\\"([^\\\"]*)\\\")?(?: key=\\\"([^\\\"]*)\\\")?( show)?\\>((?:.|\\n)*?)\\</script\\>",
	handler: function(w) {
		var lookaheadRegExp = new RegExp(this.lookahead,"mg");
		lookaheadRegExp.lastIndex = w.matchStart;
		var lookaheadMatch = lookaheadRegExp.exec(w.source)
		if(lookaheadMatch && lookaheadMatch.index == w.matchStart) {
			var src=lookaheadMatch[1];
			var label=lookaheadMatch[2];
			var tip=lookaheadMatch[3];
			var key=lookaheadMatch[4];
			var show=lookaheadMatch[5];
			var code=lookaheadMatch[6];
			if (src) { // external script library
				var script = document.createElement("script"); script.src = src;
				document.body.appendChild(script); document.body.removeChild(script);
			}
			if (code) { // inline code
				if (show) // display source in tiddler
					wikify("{{{\n"+lookaheadMatch[0]+"\n}}}\n",w.output);
				if (label) { // create 'onclick' command link
					var link=createTiddlyElement(w.output,"a",null,"tiddlyLinkExisting",wikifyPlainText(label));
					var fixup=code.replace(/document.write\s*\(/gi,'place.bufferedHTML+=(');
					link.code="function _out(place,tiddler){"+fixup+"\n};_out(this,this.tiddler);"
					link.tiddler=w.tiddler;
					link.onclick=function(){
						this.bufferedHTML="";
						try{ var r=eval(this.code);
							if(this.bufferedHTML.length || (typeof(r)==="string")&&r.length)
								var s=this.parentNode.insertBefore(document.createElement("span"),this.nextSibling);
							if(this.bufferedHTML.length)
								s.innerHTML=this.bufferedHTML;
							if((typeof(r)==="string")&&r.length) {
								wikify(r,s,null,this.tiddler);
								return false;
							} else return r!==undefined?r:false;
						} catch(e){alert(e.description||e.toString());return false;}
					};
					link.setAttribute("title",tip||"");
					var URIcode='javascript:void(eval(decodeURIComponent(%22(function(){try{';
					URIcode+=encodeURIComponent(encodeURIComponent(code.replace(/\n/g,' ')));
					URIcode+='}catch(e){alert(e.description||e.toString())}})()%22)))';
					link.setAttribute("href",URIcode);
					link.style.cursor="pointer";
					if (key) link.accessKey=key.substr(0,1); // single character only
				}
				else { // run script immediately
					var fixup=code.replace(/document.write\s*\(/gi,'place.innerHTML+=(');
					var c="function _out(place,tiddler){"+fixup+"\n};_out(w.output,w.tiddler);";
					try	 { var out=eval(c); }
					catch(e) { out=e.description?e.description:e.toString(); }
					if (out && out.length) wikify(out,w.output,w.highlightRegExp,w.tiddler);
				}
			}
			w.nextMatch = lookaheadMatch.index + lookaheadMatch[0].length;
		}
	}
} )
//}}}

// // Backward-compatibility for TW2.1.x and earlier
//{{{
if (typeof(wikifyPlainText)=="undefined") window.wikifyPlainText=function(text,limit,tiddler) {
	if(limit > 0) text = text.substr(0,limit);
	var wikifier = new Wikifier(text,formatter,null,tiddler);
	return wikifier.wikifyPlain();
}
//}}}

// // GLOBAL FUNCTION: $(...) -- 'shorthand' convenience syntax for document.getElementById()
//{{{
if (typeof($)=='undefined') { function $(id) { return document.getElementById(id.replace(/^#/,'')); } }
//}}}
<html><nowiki><form action="data.php" method="POST" enctype="multipart/form-data" target="responseFrame">
<input name="title" style="width:500px;" value="" onfocus="this.select()">Titulo..<input name="username" value="" style="width:200px;">Seu Nome....<br>
<input name="autor" style="width:200px;" value="" onfocus="this.select()">Autor.<input name="editora" style="width:200px;" value="" onfocus="this.select()">Editora<input type=hidden name="when">.<input name="curso" value="" style="width:200px;">Curso
<input type=hidden name="tipo"><input type=hidden name=genero><input type=hidden name=class value=""><input type=hidden name=genero><br>
<input name="url" style="width:400px;" value="url" onfocus="this.select()">URL....<br>
<input type=text name="referencia" style="width:500px;" value="" onfocus="this.select()">Etiquetas
<select name="language" style="width:100px;">
<option>en</option>
<option>pt</option>
<option>es</option>
<option>fr</option>
<option>outro</option>
</select><br><input name="citado" style="width:850px;" onfocus="this.select()">Citado<br>
Sua Comentario<br>
<textarea name="comment" rows="4" cols="44" style="width:840px;" value=" " ></textarea><br><input type="submit" value="Video" onclick='
this.form.tipo.value="video";
'> - for youtube videos<br>
<input type=submit value="Foto" onclick='
this.form.tipo.value="foto";'> - fotos em png, jpg<br>
<input type="submit" value="Music" onclick='
this.form.tipo.value="music";'> - trechos de audio..mp3<br>
<input type="submit" value="PDF ou HTML" onclick='
this.form.tipo.value="pdf";'>...pdfs ou htmls<br>
</form><iframe src="" name="responseFrame" id="responseFrame" width=400px height=250px style="border:0;"></iframe></html><script>
var form=place.lastChild.getElementsByTagName('form')[0];
form.title.value=config.options.txtTitle;
form.url.value=config.options.txtFonte;
form.editora.value=config.options.txtDominio;
form.citado.value=config.options.txtCitado;
form.username.value=localStorage.username;
form.curso.value=localStorage.curso;
form.genero.value=config.options.txtGenero;
var date=new Date();
form.when.value=date.formatString("YYYY-MM-DD_hh:mm");
</script>
Bookmarking - [[admin|SideBarOptions]] /<<showPopup tiddler:Etiquetas label:Etiquetas width:360px>> 
Referendo uma pagina no internet, uma noticia importante por o curso e nossos estudos, digitar o mensagem de como ou porque esse item é importante.... ele vem aparecer nos novos visitas a nossa pagina do curso.
<html><nowiki><form action="addNoticia.php" method="POST" enctype="multipart/form-data" target="responseFrame">
<input name="title" style="width:300px;" value="" onfocus="this.select()">Titulo<br>
<input name="username" value="" style="width:300px;">Nome<br>
<input type=hidden name="when">
<input type=hidden name=editora value="html">
<input type=hidden name="curso" value="" style="width:200px;">
<input type=hidden name="escola" value="" style="width:200px;">
<input name="url" style="width:300px;" value="url" onfocus="this.select()">Url<br>
<input type=text name="tema" style="width:300px;" value="" onfocus="this.select()">Tema<br>
<input name="citado" style="width:300px;" onfocus="this.select()">Citado<br>
Sua Comentario<br>
<textarea name="comment" rows="8" cols="44" style="width:400px;" value=" " ></textarea>
<input type="submit" value="Salva" onclick=''> 
</form><iframe src="" name="responseFrame" id="responseFrame" width=400px height=50px style="border:0;"></iframe></html><script>
var form=place.lastChild.getElementsByTagName('form')[0];
form.title.value=config.options.txtTitle;
form.url.value=config.options.txtFonte;
form.username.value=localStorage.username;
form.curso.value=localStorage.curso;
form.escola.value=localStorage.escola;
var date=new Date();
form.when.value=date.formatString("YYYY-MM-DD_hh:mm");
</script>
<html><nowiki><form action="www.php" method="POST" enctype="multipart/form-data" target="responseFrame">
<input name="title" style="width:400px;" value="" onfocus="this.select()">Titulo<br>
<input name="username" value="" style="width:200px;">Seu Nome<br>
<input type=hidden name="when"><input type=hidden name=editora value="pdf"><input name="curso" value="" style="width:200px;">Curso<br>
<input name="escola" value="" style="width:200px;">Escola<br>
<input name="url" style="width:400px;" value="url" onfocus="this.select()">Url<br>
<input type=text name="tema" style="width:500px;" value="" onfocus="this.select()">Tema<br>
<input name="citado" style="width:650px;" onfocus="this.select()">Citado<br>
Sua Comentario<br>
<textarea name="comment" rows="4" cols="44" style="width:750px;" value=" " ></textarea>
<input type="submit" value="Salva" onclick=''> 
</form><iframe src="" name="responseFrame" id="responseFrame" width=400px height=50px style="border:0;"></iframe></html><script>
var form=place.lastChild.getElementsByTagName('form')[0];
form.title.value=config.options.txtTitle;
form.url.value=config.options.txtFonte;
form.username.value=localStorage.username;
form.curso.value=localStorage.curso;
form.escola.value=localStorage.escola;
var date=new Date();
form.when.value=date.formatString("YYYY-MM-DD_hh:mm");
</script>
<!--{{{--><div id='mainHead' refresh='content' tiddler='MainHead'></div><div id='displayArea'><div id='messageArea'></div><div id='tiddlerDisplay'></div></div><!--;}}}-->
/***
|''Name:''|PasswordOptionPlugin|
|''Description:''|Extends TiddlyWiki options with non encrypted password option.|
|''Version:''|1.0.2|
|''Date:''|Apr 19, 2007|
|''Source:''|http://tiddlywiki.bidix.info/#PasswordOptionPlugin|
|''Author:''|BidiX (BidiX (at) bidix (dot) info)|
|''License:''|[[BSD open source license|http://tiddlywiki.bidix.info/#%5B%5BBSD%20open%20source%20license%5D%5D ]]|
|''~CoreVersion:''|2.2.0 (Beta 5)|
***/
//{{{
version.extensions.PasswordOptionPlugin = {
	major: 1, minor: 0, revision: 2, 
	date: new Date("Apr 19, 2007"),
	source: 'http://tiddlywiki.bidix.info/#PasswordOptionPlugin',
	author: 'BidiX (BidiX (at) bidix (dot) info',
	license: '[[BSD open source license|http://tiddlywiki.bidix.info/#%5B%5BBSD%20open%20source%20license%5D%5D]]',
	coreVersion: '2.2.0 (Beta 5)'
};

config.macros.option.passwordCheckboxLabel = "Save this password on this computer";
config.macros.option.passwordInputType = "password"; // password | text
setStylesheet(".pasOptionInput {width: 11em;}\n","passwordInputTypeStyle");

merge(config.macros.option.types, {
	'pas': {
		elementType: "input",
		valueField: "value",
		eventName: "onkeyup",
		className: "pasOptionInput",
		typeValue: config.macros.option.passwordInputType,
		create: function(place,type,opt,className,desc) {
			// password field
			config.macros.option.genericCreate(place,'pas',opt,className,desc);
			// checkbox linked with this password "save this password on this computer"
			config.macros.option.genericCreate(place,'chk','chk'+opt,className,desc);			
			// text savePasswordCheckboxLabel
			place.appendChild(document.createTextNode(config.macros.option.passwordCheckboxLabel));
		},
		onChange: config.macros.option.genericOnChange
	}
});

merge(config.optionHandlers['chk'], {
	get: function(name) {
		// is there an option linked with this chk ?
		var opt = name.substr(3);
		if (config.options[opt]) 
			saveOptionCookie(opt);
		return config.options[name] ? "true" : "false";
	}
});

merge(config.optionHandlers, {
	'pas': {
 		get: function(name) {
			if (config.options["chk"+name]) {
				return encodeCookie(config.options[name].toString());
			} else {
				return "";
			}
		},
		set: function(name,value) {config.options[name] = decodeCookie(value);}
	}
});

// need to reload options to load passwordOptions
loadOptionsCookie();

/*
if (!config.options['pasPassword'])
	config.options['pasPassword'] = '';

merge(config.optionsDesc,{
		pasPassword: "Test password"
	});
*/
//}}}
<script>config.options.txtCitado="";config.options.txtDominio="";</script>
/***
|Name|[[ShowPopupPlugin]]|
|Source|http://www.TiddlyTools.com/#ShowPopupPlugin|
|Version|2.1.1|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|plugin|
|Description|display tiddler content in a TiddlyWiki popup panel|
!!!!!Documenatation
>see [[ShowPopupPluginInfo]]
!!!!!Revisions
<<<
2011.03.13 2.1.1 in click(), removed check for popup already shown (prevents nested popups!)
| Please see [[ShowPopupPluginInfo]] for previous revision details |
2006.09.09 1.0.0 initial release (transclusion)
<<<
!!!!!Code
***/
//{{{
version.extensions.ShowPopupPlugin=
	{ major:2, minor:1, revision:1, date:new Date(2011,3,13) };
config.macros.showPopup = {
	tip: 'display "%0" in a popup',
	init: function() {
		config.shadowTiddlers.ShowPopup =
			'<<showPopup tiddler:[[$1]] label:"$2" tip:"$3" buttonClass:"button $4" width:"$5" popupClass:"$6" "$7">>';
		config.annotations.ShowPopup =
			'created by ShowPopupPlugin';
	},
	handler: function(place,macroName,params,wikifier,paramString,tiddler) {
		var p=paramString.parseParams('name',null,true,false,true);
		var tid=getParam(p,'tiddler','TiddlerName');
		var label=getParam(p,'label',tid);
		var tip=getParam(p,'tip',this.tip.format([tid]));
		var buttonClass=getParam(p,'buttonClass','');
		var width=getParam(p,'width','auto');
		var popupClass=getParam(p,'popupClass','');
		var above=params.contains('above');
		var mouseover=params.contains('mouseover');
		var b=createTiddlyButton(place, label, tip, this.click, buttonClass, null, null,
			{ tid:tid, popupClass:popupClass, width:width, above:above });
		b.innerHTML=label; // render HTML for entities, images, etc
		if (mouseover) b.onmouseover=b.onclick;  // option: mouseover triggers click
	},
	click: function(ev) { var ev=ev||window.event;
		// DISABLED if (Popup.find(this)!=-1)return false; // popup already shown!
		var p=Popup.create(this); if(!p)return false; // popup not created!
		addClass(p,this.getAttribute('popupClass'));
		var d=createTiddlyElement(p,'div');
		var s=d.style; s.whiteSpace='normal'; s.width=this.getAttribute('width'); s.padding='2px';
		wikify(store.getTiddlerText(this.getAttribute('tid'),''),d);
		if (this.getAttribute('above')!='true') Popup.show();
		else Popup.show('top','left',{x:0,y:-jQuery(d).outerHeight()});
		ev.cancelBubble=true; if(ev.stopPropagation)ev.stopPropagation(); return false;
	}
}
//}}}
<<search>><<closeAll>><<permaview>><<newTiddler>><<newJournal "DD MMM YYYY" "journal">><<saveChanges>><<slider chkSliderOptionsPanel OptionsPanel "options »" "Change TiddlyWiki advanced options">>
<<tiddler SideBarTabs>>
/***
|Name|SimpleMessagePlugin|
|Version|0.1|
|Author|Michael Mahemoff, Osmosoft|
|''License:''|[[BSD open source license]]|
|~CoreVersion|2.2|
***/

/*{{{*/
(function() {
if(!version.extensions.SimpleMessagePlugin) {

  version.extensions.SimpleMessagePlugin = {installed:true};
  version.extensions.SimpleMessagePlugin.delay = 2000;
  
  var timer;

  var _displayMessage = displayMessage;
  displayMessage = function() {
    if (timer) {
      timer=null;
      clearTimeout(timer);
    }
    timer = setTimeout(clearMessage, version.extensions.SimpleMessagePlugin.delay);
    _displayMessage.apply(this, arguments);
  }

  var _clearMessage = clearMessage;
  clearMessage = function() {
    clearTimeout(timer);
    return _clearMessage.apply(this, arguments);
  }

} // end of 'install only once'
})();
/*}}}*/
/***
|Name|SinglePageModePlugin|
|Source|http://www.TiddlyTools.com/#SinglePageModePlugin|
|Documentation|http://www.TiddlyTools.com/#SinglePageModePluginInfo|
|Version|2.9.6|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|plugin|
|Description|Show tiddlers one at a time with automatic permalink, or always open tiddlers at top/bottom of page.|
This plugin allows you to configure TiddlyWiki to navigate more like a traditional multipage web site with only one tiddler displayed at a time.
!!!!!Documentation
>see [[SinglePageModePluginInfo]]
!!!!!Configuration
<<<
<<option chkSinglePageMode>> Display one tiddler at a time
><<option chkSinglePagePermalink>> Automatically permalink current tiddler
><<option chkSinglePageKeepFoldedTiddlers>> Don't close tiddlers that are folded
><<option chkSinglePageKeepEditedTiddlers>> Don't close tiddlers that are being edited
<<option chkTopOfPageMode>> Open tiddlers at the top of the page
<<option chkBottomOfPageMode>> Open tiddlers at the bottom of the page
<<option chkSinglePageAutoScroll>> Automatically scroll tiddler into view (if needed)

Notes:
* The "display one tiddler at a time" option can also be //temporarily// set/reset by including a 'paramifier' in the document URL: {{{#SPM:true}}} or {{{#SPM:false}}}.
* If more than one display mode is selected, 'one at a time' display takes precedence over both 'top' and 'bottom' settings, and if 'one at a time' setting is not used, 'top of page' takes precedence over 'bottom of page'.
* When using Apple's Safari browser, automatically setting the permalink causes an error and is disabled.
<<<
!!!!!Revisions
<<<
2008.10.17 [2.9.6] changed chkSinglePageAutoScroll default to false
| Please see [[SinglePageModePluginInfo]] for previous revision details |
2005.08.15 [1.0.0] Initial Release.  Support for BACK/FORWARD buttons adapted from code developed by Clint Checketts.
<<<
!!!!!Code
***/
//{{{
version.extensions.SinglePageModePlugin= {major: 2, minor: 9, revision: 6, date: new Date(2008,10,17)};
//}}}
//{{{
config.paramifiers.SPM = { onstart: function(v) {
	config.options.chkSinglePageMode=eval(v);
	if (config.options.chkSinglePageMode && config.options.chkSinglePagePermalink && !config.browser.isSafari) {
		config.lastURL = window.location.hash;
		if (!config.SPMTimer) config.SPMTimer=window.setInterval(function() {checkLastURL();},1000);
	}
} };
//}}}
//{{{
if (config.options.chkSinglePageMode==undefined)
	config.options.chkSinglePageMode=false;
if (config.options.chkSinglePagePermalink==undefined)
	config.options.chkSinglePagePermalink=true;
if (config.options.chkSinglePageKeepFoldedTiddlers==undefined)
	config.options.chkSinglePageKeepFoldedTiddlers=false;
if (config.options.chkSinglePageKeepEditedTiddlers==undefined)
	config.options.chkSinglePageKeepEditedTiddlers=false;
if (config.options.chkTopOfPageMode==undefined)
	config.options.chkTopOfPageMode=false;
if (config.options.chkBottomOfPageMode==undefined)
	config.options.chkBottomOfPageMode=false;
if (config.options.chkSinglePageAutoScroll==undefined)
	config.options.chkSinglePageAutoScroll=false;
//}}}
//{{{
config.SPMTimer = 0;
config.lastURL = window.location.hash;
function checkLastURL()
{
	if (!config.options.chkSinglePageMode)
		{ window.clearInterval(config.SPMTimer); config.SPMTimer=0; return; }
	if (config.lastURL == window.location.hash) return; // no change in hash
	var tids=decodeURIComponent(window.location.hash.substr(1)).readBracketedList();
	if (tids.length==1) // permalink (single tiddler in URL)
		story.displayTiddler(null,tids[0]);
	else { // restore permaview or default view
		config.lastURL = window.location.hash;
		if (!tids.length) tids=store.getTiddlerText("DefaultTiddlers").readBracketedList();
		story.closeAllTiddlers();
		story.displayTiddlers(null,tids);
	}
}


if (Story.prototype.SPM_coreDisplayTiddler==undefined)
	Story.prototype.SPM_coreDisplayTiddler=Story.prototype.displayTiddler;
Story.prototype.displayTiddler = function(srcElement,tiddler,template,animate,slowly)
{
	var title=(tiddler instanceof Tiddler)?tiddler.title:tiddler;
	var tiddlerElem=document.getElementById(story.idPrefix+title); // ==null unless tiddler is already displayed
	var opt=config.options;
	var single=opt.chkSinglePageMode && !startingUp;
	var top=opt.chkTopOfPageMode && !startingUp;
	var bottom=opt.chkBottomOfPageMode && !startingUp;
	if (single) {
		story.forEachTiddler(function(tid,elem) {
			// skip current tiddler and, optionally, tiddlers that are folded.
			if (	tid==title
				|| (opt.chkSinglePageKeepFoldedTiddlers && elem.getAttribute("folded")=="true"))
				return;
			// if a tiddler is being edited, ask before closing
			if (elem.getAttribute("dirty")=="true") {
				if (opt.chkSinglePageKeepEditedTiddlers) return;
				// if tiddler to be displayed is already shown, then leave active tiddler editor as is
				// (occurs when switching between view and edit modes)
				if (tiddlerElem) return;
				// otherwise, ask for permission
				var msg="'"+tid+"' is currently being edited.nn";
				msg+="Press OK to save and close this tiddlernor press Cancel to leave it opened";
				if (!confirm(msg)) return; else story.saveTiddler(tid);
			}
			story.closeTiddler(tid);
		});
	}
	else if (top)
		arguments[0]=null;
	else if (bottom)
		arguments[0]="bottom";
	if (single && opt.chkSinglePagePermalink && !config.browser.isSafari) {
		window.location.hash = encodeURIComponent(String.encodeTiddlyLink(title));
		config.lastURL = window.location.hash;
		document.title = wikifyPlain("SiteTitle") + " - " + title;
		if (!config.SPMTimer) config.SPMTimer=window.setInterval(function() {checkLastURL();},1000);
	}
	if (tiddlerElem && tiddlerElem.getAttribute("dirty")=="true") { // editing... move tiddler without re-rendering
		var isTopTiddler=(tiddlerElem.previousSibling==null);
		if (!isTopTiddler && (single || top))
			tiddlerElem.parentNode.insertBefore(tiddlerElem,tiddlerElem.parentNode.firstChild);
		else if (bottom)
			tiddlerElem.parentNode.insertBefore(tiddlerElem,null);
		else this.SPM_coreDisplayTiddler.apply(this,arguments); // let CORE render tiddler
	} else
		this.SPM_coreDisplayTiddler.apply(this,arguments); // let CORE render tiddler
	var tiddlerElem=document.getElementById(story.idPrefix+title);
	if (tiddlerElem&&opt.chkSinglePageAutoScroll) {
		// scroll to top of page or top of tiddler
		var isTopTiddler=(tiddlerElem.previousSibling==null);
		var yPos=isTopTiddler?0:ensureVisible(tiddlerElem);
		// if animating, defer scroll until after animation completes
		var delay=opt.chkAnimate?config.animDuration+10:0;
		setTimeout("window.scrollTo(0,"+yPos+")",delay); 
	}
}

if (Story.prototype.SPM_coreDisplayTiddlers==undefined)
	Story.prototype.SPM_coreDisplayTiddlers=Story.prototype.displayTiddlers;
Story.prototype.displayTiddlers = function() {
	// suspend single/top/bottom modes when showing multiple tiddlers
	var opt=config.options;
	var saveSPM=opt.chkSinglePageMode; opt.chkSinglePageMode=false;
	var saveTPM=opt.chkTopOfPageMode; opt.chkTopOfPageMode=false;
	var saveBPM=opt.chkBottomOfPageMode; opt.chkBottomOfPageMode=false;
	this.SPM_coreDisplayTiddlers.apply(this,arguments);
	opt.chkBottomOfPageMode=saveBPM;
	opt.chkTopOfPageMode=saveTPM;
	opt.chkSinglePageMode=saveSPM;
}
//}}}
<html><nowiki><form action="som.php" method="POST" enctype="multipart/form-data" target="responseFrame">
<input name="title" style="width:400px;" value="" onfocus="this.select()">Titulo<br>
<input name="username" value="" style="width:200px;">Seu Nome<br>
<input type=hidden name="when"><input type=hidden name=editora value="som"><input name="curso" value="" style="width:200px;">Curso<br>
<input name="escola" value="" style="width:200px;">Escola<br>
<input name="url" style="width:400px;" value="url" onfocus="this.select()">Url<br>
<input type=text name="tema" style="width:500px;" value="" onfocus="this.select()">Tema<br>
<input name="citado" style="width:650px;" onfocus="this.select()">Citado<br>
Sua Comentario<br>
<textarea name="comment" rows="4" cols="44" style="width:750px;" value=" " ></textarea>
<input type="submit" value="Salva" onclick=''> 
</form><iframe src="" name="responseFrame" id="responseFrame" width=400px height=50px style="border:0;"></iframe></html><script>
var form=place.lastChild.getElementsByTagName('form')[0];
form.title.value=config.options.txtTitle;
form.url.value=config.options.txtFonte;
form.username.value=localStorage.username;
form.curso.value=localStorage.curso;
form.escola.value=localStorage.escola;
var date=new Date();
form.when.value=date.formatString("YYYY-MM-DD_hh:mm");
</script>
/***
|Name|StickyPopupPlugin|
|Source|http://www.TiddlyTools.com/#StickyPopupPlugin|
|Version|1.0.1|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|plugin|
|Description|allow mouse interactions inside popups without automatically closing them|
Usually, when a TW popup is displayed, it is automatically closed whenever a click occurs //anywhere// in the document, either //inside// or //outside// the popup itself.  This plugin makes popups persistent (a.k.a, "sticky"), allowing you to perform multiple mouse interactions on content //inside// the popup (e.g., entering form fields, opening links, selecting text, etc.), remaining visible until you click //outside// the popup or perform an action that opens another popup (only one popup can be displayed at any given time).
!!!!!Configuration
<<<
You can cause popups to behave in a persistent ("sticky") manner simply by selecting the option checkbox below.  The selected popup display behavior will be applied to ALL popups in the document automatically.
><<option chkStickyPopups>> make all popups "sticky"
>{{{usage: <<option chkStickyPopups>>}}}
<<<
!!!!!Usage
<<<
If you are developing your own plugins or inline scripts that create popups programmatically using the core function:
{{{
Popup.create(this)
}}}
you can provide additional parameters that specify the desired CSS classname(s) to assign to the popup DOM element.  The default class when none is specified is simply "popup".  To create a //sticky// popup, simply enter a custom class combination like this:
{{{
Popup.create(this,null,"sticky popup")
}}}
<<<
!!!!!Revisions
<<<
2008.05.16 [1.0.1] added try..catch around addEvent/removeEvent calls to avoid error in Opera
2007.11.25 [1.0.0] initial release - moved from [[CoreTweaks]]
<<<
!!!!!Code
***/
//{{{
version.extensions.StickyPopupPlugin= {major: 1, minor: 0, revision: 1, date: new Date(2008,5,16)};

if (config.options.chkStickyPopups==undefined) config.options.chkStickyPopups=false;

Popup.stickyPopup_onDocumentClick = function(ev)
{
	// if click is in a sticky popup, ignore it so popup will remain visible
	var e = ev ? ev : window.event; var target = resolveTarget(e);
	var p=target; while (p) {
		if (hasClass(p,"popup") && (hasClass(p,"sticky")||config.options.chkStickyPopups)) break;
		else p=p.parentNode;
	}
	if (!p) // not in sticky popup (or sticky popups disabled)... use normal click handling
		Popup.onDocumentClick(ev);
	return true;
};
try{removeEvent(document,"click",Popup.onDocumentClick);}catch(e){};
try{addEvent(document,"click",Popup.stickyPopup_onDocumentClick);}catch(e){};
//}}}
[[StyleSheetShortcuts]]
body { background-color:azure; font-family: "Comic Sans MS",Helvetica;color:brown
;}

#contentWrapper a:link, a:visited, a:active {text-decoration: bold; color:brown; background-color: transparent; }
#contentWrapper a:hover {text-decoration: none; color:brown; background-color: [[ColorB1]]; }
#contentWrapper .button {background-color: transparent; border-color: brown; border-width: 0px;}
#contentWrapper .button:hover {background-color: [[ColorB1]]; border-width: 0px;width:600px;}
#mainHead {display:none;}
#displayArea {position:relative; top:-20px; left:-170px;width:500px;color:brown;}

.header { background-color: #edead5;  height: 50px;left:150px; top:-50px;}
.tiddlyLinkExisting .tiddlyLink {color:red;}
.externalLink {color:red;} 

#backstageButton a{background:none;color:transparent;}
body{background:[[ColorPalette::Background]];color:[[ColorPalette::Foreground]];}a{color:[[ColorPalette::PrimaryMid]];}a:hover{background-color:[[ColorPalette::PrimaryMid]];color:[[ColorPalette::Background]];}a img{border:0;}h1,h2,h3,h4,h5,h6{color:[[ColorPalette::SecondaryDark]];background:transparent;}h1{border-bottom:2px solid [[ColorPalette::TertiaryLight]];}h2,h3{border-bottom:1px solid [[ColorPalette::TertiaryLight]];}.button{color:[[ColorPalette::PrimaryDark]];border:1px solid [[ColorPalette::Background]];}.button:hover{color:[[ColorPalette::PrimaryDark]];background:[[ColorPalette::SecondaryLight]];border-color:[[ColorPalette::SecondaryMid]];}.button:active{color:[[ColorPalette::Background]];background:[[ColorPalette::SecondaryMid]];border:1px solid [[ColorPalette::SecondaryDark]];}.header{background:[[ColorPalette::PrimaryMid]];}.headerShadow{color:[[ColorPalette::Foreground]];}.headerShadow a{font-weight:normal;color:[[ColorPalette::Foreground]];}.headerForeground{color:[[ColorPalette::Background]];}.headerForeground a{font-weight:normal;color:[[ColorPalette::PrimaryPale]];}.tabSelected{color:[[ColorPalette::PrimaryDark]];background:[[ColorPalette::TertiaryPale]];border-left:1px solid [[ColorPalette::TertiaryLight]];border-top:1px solid [[ColorPalette::TertiaryLight]];border-right:1px solid [[ColorPalette::TertiaryLight]];}.tabUnselected{color:[[ColorPalette::Background]];background:[[ColorPalette::TertiaryMid]];}.tabContents{color:[[ColorPalette::PrimaryDark]];background:[[ColorPalette::TertiaryPale]];border:1px solid [[ColorPalette::TertiaryLight]];}.tabContents .button{border:0;}#sidebarOptions input{border:1px solid [[ColorPalette::PrimaryMid]];}#sidebarOptions .sliderPanel{background:[[ColorPalette::PrimaryPale]];}#sidebarOptions .sliderPanel a{border:none;color:[[ColorPalette::PrimaryMid]];}#sidebarOptions .sliderPanel a:hover{color:[[ColorPalette::Background]];background:[[ColorPalette::PrimaryMid]];}#sidebarOptions .sliderPanel a:active{color:[[ColorPalette::PrimaryMid]];background:[[ColorPalette::Background]];}.wizard{background:[[ColorPalette::PrimaryPale]];border:1px solid [[ColorPalette::PrimaryMid]];}.wizard h1{color:[[ColorPalette::PrimaryDark]];border:none;}.wizard h2{color:[[ColorPalette::Foreground]];border:none;}.wizardStep{background:[[ColorPalette::Background]];color:[[ColorPalette::Foreground]];border:1px solid [[ColorPalette::PrimaryMid]];}.wizardStep.wizardStepDone{background:[[ColorPalette::TertiaryLight]];}.wizardFooter{background:[[ColorPalette::PrimaryPale]];}.wizardFooter .status{background:[[ColorPalette::PrimaryDark]];color:[[ColorPalette::Background]];}.wizard .button{color:[[ColorPalette::Foreground]];background:[[ColorPalette::SecondaryLight]];border:1px solid;border-color:[[ColorPalette::SecondaryPale]] [[ColorPalette::SecondaryDark]] [[ColorPalette::SecondaryDark]] [[ColorPalette::SecondaryPale]];}.wizard .button:hover{color:[[ColorPalette::Foreground]];background:[[ColorPalette::Background]];}.wizard .button:active{color:[[ColorPalette::Background]];background:[[ColorPalette::Foreground]];border:1px solid;border-color:[[ColorPalette::PrimaryDark]] [[ColorPalette::PrimaryPale]] [[ColorPalette::PrimaryPale]] [[ColorPalette::PrimaryDark]];}.wizard .notChanged{background:transparent;}.wizard .changedLocally{background:#80ff80;}.wizard .changedServer{background:#8080ff;}.wizard .changedBoth{background:#ff8080;}.wizard .notFound{background:#ffff80;}.wizard .putToServer{background:#ff80ff;}.wizard .gotFromServer{background:#80ffff;}#messageArea{border:1px solid [[ColorPalette::SecondaryMid]];background:[[ColorPalette::SecondaryLight]];color:[[ColorPalette::Foreground]];}#messageArea .button{color:[[ColorPalette::PrimaryMid]];background:[[ColorPalette::SecondaryPale]];border:none;}.popupTiddler{background:[[ColorPalette::TertiaryPale]];border:2px solid [[ColorPalette::TertiaryMid]];}.popup{background:[[ColorPalette::TertiaryPale]];color:[[ColorPalette::TertiaryDark]];border-left:1px solid [[ColorPalette::TertiaryMid]];border-top:1px solid [[ColorPalette::TertiaryMid]];border-right:2px solid [[ColorPalette::TertiaryDark]];border-bottom:2px solid [[ColorPalette::TertiaryDark]];}.popup hr{color:[[ColorPalette::PrimaryDark]];background:[[ColorPalette::PrimaryDark]];border-bottom:1px;}.popup li.disabled{color:[[ColorPalette::TertiaryMid]];}.popup li a,.popup li a:visited{color:[[ColorPalette::Foreground]];border:none;}.popup li a:hover{background:[[ColorPalette::SecondaryLight]];color:[[ColorPalette::Foreground]];border:none;}.popup li a:active{background:[[ColorPalette::SecondaryPale]];color:[[ColorPalette::Foreground]];border:none;}.popupHighlight{background:[[ColorPalette::Background]];color:[[ColorPalette::Foreground]];}.listBreak div{border-bottom:1px solid [[ColorPalette::TertiaryDark]];}.tiddler .defaultCommand{font-weight:bold;}.shadow .title{color:[[ColorPalette::TertiaryDark]];}.title{color:[[ColorPalette::SecondaryDark]];}.subtitle{color:[[ColorPalette::TertiaryDark]];}.toolbar{color:[[ColorPalette::PrimaryMid]];}.toolbar a{color:[[ColorPalette::TertiaryLight]];}.selected .toolbar a{color:[[ColorPalette::TertiaryMid]];}.selected .toolbar a:hover{color:[[ColorPalette::Foreground]];}.tagging,.tagged{border:1px solid [[ColorPalette::TertiaryPale]];background-color:[[ColorPalette::TertiaryPale]];}.selected .tagging,.selected .tagged{background-color:[[ColorPalette::TertiaryLight]];border:1px solid [[ColorPalette::TertiaryMid]];}.tagging .listTitle,.tagged .listTitle{color:[[ColorPalette::PrimaryDark]];}.tagging .button,.tagged .button{border:none;}.footer{color:[[ColorPalette::TertiaryLight]];}.selected .footer{color:[[ColorPalette::TertiaryMid]];}.sparkline{background:[[ColorPalette::PrimaryPale]];border:0;}.sparktick{background:[[ColorPalette::PrimaryDark]];}.error,.errorButton{color:[[ColorPalette::Foreground]];background:[[ColorPalette::Error]];}.warning{color:[[ColorPalette::Foreground]];background:[[ColorPalette::SecondaryPale]];}.lowlight{background:[[ColorPalette::TertiaryLight]];}.zoomer{background:none;color:[[ColorPalette::TertiaryMid]];border:3px solid [[ColorPalette::TertiaryMid]];}.imageLink,#displayArea .imageLink{background:transparent;}.annotation{background:[[ColorPalette::SecondaryLight]];color:[[ColorPalette::Foreground]];border:2px solid [[ColorPalette::SecondaryMid]];}.viewer .listTitle{list-style-type:none;margin-left:-2em;}.viewer .button{border:1px solid [[ColorPalette::SecondaryMid]];}.viewer blockquote{border-left:3px solid [[ColorPalette::TertiaryDark]];}.viewer table,table.twtable{border:2px solid [[ColorPalette::TertiaryDark]];}.viewer th,.viewer thead td,.twtable th,.twtable thead td{background:[[ColorPalette::SecondaryMid]];border:1px solid [[ColorPalette::TertiaryDark]];color:[[ColorPalette::Background]];}.viewer td,.viewer tr,.twtable td,.twtable tr{border:1px solid [[ColorPalette::TertiaryDark]];}.viewer pre{border:1px solid [[ColorPalette::SecondaryLight]];background:[[ColorPalette::SecondaryPale]];}.viewer code{color:[[ColorPalette::SecondaryDark]];}.viewer hr{border:0;border-top:dashed 1px [[ColorPalette::TertiaryDark]];color:[[ColorPalette::TertiaryDark]];}.highlight,.marked{background:[[ColorPalette::SecondaryLight]];}.editor input{border:1px solid [[ColorPalette::PrimaryMid]];}.editor textarea{border:1px solid [[ColorPalette::PrimaryMid]];width:100%;}.editorFooter{color:[[ColorPalette::TertiaryMid]];}.readOnly{background:[[ColorPalette::TertiaryPale]];}#backstageArea{background:[[ColorPalette::Foreground]];color:[[ColorPalette::TertiaryMid]];}#backstageArea a{background:[[ColorPalette::Foreground]];color:[[ColorPalette::Background]];border:none;}#backstageArea a:hover{background:[[ColorPalette::SecondaryLight]];color:[[ColorPalette::Foreground]];}#backstageArea a.backstageSelTab{background:[[ColorPalette::Background]];color:[[ColorPalette::Foreground]];}#backstageButton a{background:none;color:[[ColorPalette::Background]];border:none;}#backstageButton a:hover{background:[[ColorPalette::Foreground]];color:[[ColorPalette::Background]];border:none;}#backstagePanel{background:[[ColorPalette::Background]];border-color:[[ColorPalette::Background]] [[ColorPalette::TertiaryDark]] [[ColorPalette::TertiaryDark]] [[ColorPalette::TertiaryDark]];}.backstagePanelFooter .button{border:none;color:[[ColorPalette::Background]];}.backstagePanelFooter .button:hover{color:[[ColorPalette::Foreground]];}#backstageCloak{background:[[ColorPalette::Foreground]];opacity:.6;filter:'alpha(opacity=60)';}
/***
|Name|StyleSheetShortcuts|
|Source|http://www.TiddlyTools.com/#StyleSheetShortcuts|
|Version||
|Author|Eric Shulman - ELS Design Studios|
|License|http://www.TiddlyTools.com/#LegalStatements <br>and [[Creative Commons Attribution-ShareAlike 2.5 License|http://creativecommons.org/licenses/by-sa/2.5/]]|
|~CoreVersion|2.1|
|Type|CSS|
|Requires||
|Overrides||
|Description|'convenience' classes for common formatting, alignment, boxes, tables, etc.|

These 'style tweaks' can be easily included in other stylesheet tiddler so they can share a baseline look-and-feel that can then be customized to create a wide variety of 'flavors'.
***/
/*{{{*/

/* text alignments */
.left
	{ display:block;text-align:left; }
.center
	{ display:block;text-align:center; }
.right	
	{ display:block;text-align:right; }
.justify
	{ display:block;text-align:justify; }
.indent
	{ display:block;margin:0;padding:0;border:0;margin-left:2em; }
.floatleft
	{ float:left; }
.floatright
	{ float:right; }
.valignTop, .valignTop table, .valignTop tbody, .valignTop th, .valignTop tr, .valignTop td
	{ vertical-align:top; }
.valignBottom, .valignBottom table, .valignBottom tbody, .valignBottom th, .valignBottom tr, .valignBottom td
	{ vertical-align:bottom; }
.clear
	{ clear:both; }
.wrap
	{ white-space:normal; }
.nowrap
	{ white-space:nowrap; }
.hidden
	{ display:none; }
.show
	{ display:inline !important; }
.span
	{ display:span; }
.block
	{ display:block; }
.relative
	{ position:relative; }
.absolute
	{ position:absolute; }
.vertical {-webkit-transform:rotate(270deg);-moz-transform:rotate(270deg);	-o-transform: rotate(270deg);}

/* font sizes */
.big
	{ font-size:14pt;line-height:120% }
.medium
	{ font-size:12pt;line-height:120% }
.normal
	{ font-size:9pt;line-height:120% }
.small
	{ font-size:8pt;line-height:120% }
.fine
	{ font-size:7pt;line-height:120% }
.tiny
	{ font-size:6pt;line-height:120% }
.larger
	{ font-size:120%; }
.smaller
	{ font-size:80%; }

/* font styles */
.bold
	{ font-weight:bold; }
.italic
	{ font-style:italic; }
.underline
	{ text-decoration:underline; }

/* plain list items (no bullets or indent) */
.nobullets li { list-style-type: none; margin-left:-2em; }

/* multi-column tiddler content (not supported in Internet Explorer) */
.twocolumns { display:block;
	-moz-column-count:2; -moz-column-gap:1em; -moz-column-width:50%; /* FireFox */
	-webkit-column-count:2; -webkit-column-gap:1em; -webkit-column-width:50%; /* Safari */
	column-count:2; column-gap:1em; column-width:50%; /* Opera */
}
.threecolumns { display:block;
	-moz-column-count:3; -moz-column-gap:1em; -moz-column-width:33%; /* FireFox */
	-webkit-column-count:3; -webkit-column-gap:1em; -webkit-column-width:33%; /* Safari */
	column-count:3; column-gap:1em; column-width:33%; /* Opera */
}
.fourcolumns { display:block;
	-moz-column-count:4; -moz-column-gap:1em; -moz-column-width:25%; /* FireFox */
	-webkit-column-count:4; -webkit-column-gap:1em; -webkit-column-width:25%; /* Safari */
	column-count:4; column-gap:1em; column-width:25%; /* Opera */
}

/* show/hide browser-specific content for InternetExplorer vs. non-IE ("moz") browsers */
*[class="ieOnly"]
	{ display:none; } /* hide in moz (uses CSS selector) */
* html .mozOnly, *:first-child+html .mozOnly
	{ display: none; } /* hide in IE (uses IE6/IE7 CSS hacks) */

/* borderless tables */
.borderless, .borderless table, .borderless td, .borderless tr, .borderless th, .borderless tbody
	{ border:0 !important; margin:0 !important; padding:0 !important; }
.widetable, .widetable table
	{ width:100%; }

/* thumbnail images (fixed-sized scaled images) */
.thumbnail img { height:5em !important; }

/* stretchable images (auto-size to fit tiddler) */
.stretch img { width:95%; }

/* grouped content */
.outline
	{ display:block; padding:5px; border:1px solid; background-color:beige; }
.outlineDiscuss
	{ display:block; padding:5px; border:1px solid; background-color:beige;width:300px;height:200px; }
.menubox
	{ display:block; padding:1em; -moz-border-radius:1em;-webkit-border-radius:1em; border:1px solid; background:#fff; color:#000; }
.menubox .button, .menubox .tiddlyLinkExisting, .menubox .tiddlyLinkNonExisting
	{ color:#009 !important; }
.groupbox
	{ display:block; padding:2px; border-style:solid;border-color:#996633;border-width:1px 3px 1px 3px;border-radius: 1em; background: -webkit-gradient(linear, left top, left bottom, from([[DashBoard::top]]), to([[DashBoard::button]])); background: -moz-linear-gradient(top,  [[DashBoard::top]],  [[DashBoard::button]]);color:#000; }

.groupbox a, .groupbox .button, .groupbox .tiddlyLinkExisting, .groupbox .tiddlyLinkNonExisting
	{ color:#009 !important; }
.groupbox code
	{ color:#333 !important; }
.borderleft
	{ margin:0;padding:0;border:0;margin-left:1em; border-left:1px dotted; padding-left:.5em; }
.borderright
	{ margin:0;padding:0;border:0;margin-right:1em; border-right:1px dotted; padding-right:.5em; }
.borderbottom
	{ margin:0;padding:1px 0;border:0;border-bottom:1px dotted; margin-bottom:1px; padding-bottom:1px; }
.bordertop
	{ margin:0;padding:0;border:0;border-top:1px dotted; margin-top:1px; padding-top:1px; }



/* compact form */
.smallform
	{ white-space:nowrap; }
.smallform input, .smallform textarea, .smallform button, .smallform checkbox, .smallform radio, .smallform select
	{ font-size:8pt; }

/* stretchable edit fields and textareas (auto-size to fit tiddler) */
.stretch input { width:99%; }
.stretch textarea { width:99%; }

/* compact input fields (limited to a few characters for entering percentages and other small values) */
.onechar input { width:1em; }
.twochar input { width:2em; }
.threechar input { width:3em; }
.fourchar input { width:4em; }
.fivechar input { width:5em; }

/* text colors */
.green { color:#0c0 !important }
.red { color:#f66 !important }
.blue { color:#99f !important }
.gray { color:#999 !important }

/* rollover highlighting */
.mouseover 
	{color:[[ColorPalette::TertiaryLight]] !important;}
.mouseover a
	{color:[[ColorPalette::TertiaryLight]] !important;}
.selected .mouseover
	{color:[[ColorPalette::Foreground]] !important;}
.selected .mouseover .button, .selected .mouseover a
	{color:[[ColorPalette::PrimaryDark]] !important;}

/* rollover zoom text */
.zoomover
	{ font-size:80% !important; }
.selected .zoomover
	{ font-size:100% !important; }

/*}}}*/
<script>return "fonte="+config.options.txtTitle;</script>

<html><nowiki><form action="video.php" method="POST" enctype="multipart/form-data" target="responseFrame">
<input name="title" style="width:400px;" value="" onfocus="this.select()">Titulo<br>
<input name="username" value="" style="width:200px;">Seu Nome<br>
<input type=hidden name="when"><input type=hidden name=editora value="TEDTalks"><input name="curso" value="" style="width:200px;">Curso<br>
<input name="escola" value="" style="width:200px;">Escola<br>
<input name="url" style="width:400px;" value="url" onfocus="this.select()">Video Code.<br>
<input type=text name="tema" style="width:500px;" value="" onfocus="this.select()">Tema<br>
<input name="citado" style="width:650px;" onfocus="this.select()">Citado<br>
Sua Comentario<br>
<textarea name="comment" rows="4" cols="44" style="width:750px;" value=" " ></textarea>
<input type="submit" value="Salva" onclick=''> 
</form><iframe src="" name="responseFrame" id="responseFrame" width=400px height=250px style="border:0;"></iframe></html><script>
var form=place.lastChild.getElementsByTagName('form')[0];
var title=config.options.txtTitle;
var pipe=title.indexOf("|");
title=title.substring(0,pipe);
form.title.value=title.replace(/:/g,"-");
var url=config.options.txtFonte;
var InitCode=url.indexOf("talks/");
form.url.value=url.substring(InitCode+6);
//form.username.value=localStorage.username;
//form.curso.value=localStorage.curso;
var date=new Date();
form.when.value=date.formatString("YYYY-MM-DD_hh:mm");
</script>
<<showPopup tiddler:temaLista lable:temas width:400px popupClass:sticky>><html><nowiki><form action="data.php" method="POST" enctype="multipart/form-data" target="responseFrame">
<input name="title" style="width:400px;" value="" onfocus="this.select()">Titulo..<input name="username" value="" style="width:200px;">Nome....<br>
<input name="autor" style="width:200px;" value="" onfocus="this.select()">Autor.<input name="editora" style="width:200px;" value="" onfocus="this.select()">Editora<input type=hidden name="when">.<input name="curso" value="" style="width:200px;">Curso
<input type=hidden name="tipo"><input type=text name=genero value=""><input type=hidden name=class value="">
<input type=text name=fonte value="" style="width:500px;"> Tema<br>
<input name="extra" style="width:500px;" value="" onfocus="this.select()">url Recurso<br>
<input name="url" style="width:500px;" value="" onfocus="this.select()">url Ref<br>
<input type=text name="referencia" style="width:500px;" value="" onfocus="this.select()">Etiquetas
<select name="language" style="width:100px;">
<option>en</option>
<option>pt</option>
<option>es</option>
<option>fr</option>
<option>outro</option>
</select><br><input name="citado" style="width:650px;" onfocus="this.select()">Citado<br>
Sua Comentario<br>
<textarea name="comment" rows="4" cols="44" style="width:840px;" value=" " ></textarea><br><input type="submit" value="Video" onclick='
this.form.tipo.value="video";
'> - for youtube videos<br>
<input type=submit value="FotoLandscape" onclick='
this.form.tipo.value="fotoL";'> <input type=submit value="FotoPortraito" onclick='
this.form.tipo.value="fotoP";'>- fotos em png, jpg<br>
<input type="submit" value="Music" onclick='
this.form.tipo.value="music";'> - trechos de audio..mp3<br>
<input type="submit" value="PDF ou HTML" onclick='
this.form.tipo.value="pdf";'>...pdfs ou htmls<br>
</form><iframe src="" name="responseFrame" id="responseFrame" width=400px height=250px style="border:0;"></iframe></html><script>
var form=place.lastChild.getElementsByTagName('form')[0];
form.title.value=config.options.txtTitle;
form.url.value=config.options.txtFonte;
form.editora.value=config.options.txtDominio;
form.citado.value=config.options.txtCitado;
form.username.value=localStorage.username;
form.curso.value=localStorage.curso;
form.genero.value=config.options.txtGenero;
var date=new Date();
form.when.value=date.formatString("YYYY-MM-DD_hh:mm");
</script>
Foto uploaded desde seu computador para compartilhar com outras como ImageMap. Escreve os detalhes, seleciona o arquivo e clicar na butao apropriada!<html><nowiki><form action="data.php" method="POST" enctype="multipart/form-data" target="responseFrame">
<input name="title" style="width:400px;" value="" onfocus="this.select()">Titulo..<input name="username" value="" style="width:200px;">Seu Nome....<br>
<input name="autor" style="width:200px;" value="" onfocus="this.select()">Autor.<input name="editora" style="width:200px;" value="" onfocus="this.select()">Editora<input type=hidden name="when">.<input name="curso" value="" style="width:200px;">Curso
<input type=hidden name="tipo" value="">
<input type=text name=genero value="">
<input type=hidden name=class value=""><br>
<input type=text name="referencia" style="width:500px;" value="" onfocus="this.select()">Etiquetas
<select name="language" style="width:100px;">
<option>en</option>
<option>pt</option>
<option>es</option>
<option>fr</option>
<option>outro</option>
</select><br><input name="citado" style="width:650px;" onfocus="this.select()">Citado<br>
Sua Comentario<br>
<textarea name="comment" rows="4" cols="44" style="width:750px;" value=" " ></textarea><input type=hidden name=url value=""><br>
 <input type=file name="uploadedFile" ><br>
<input type=submit value=foto onclick='this.form.tipo="foto";'> upload esse foto desde meu computador<br>
</form><iframe src="" name="responseFrame" id="responseFrame" width=400px height=250px style="border:0;"></iframe></html><script>var form=place.lastChild.getElementsByTagName('form')[0];
form.title.value=config.options.txtTitle;
form.editora.value=config.options.txtDominio;
form.citado.value=config.options.txtCitado;
form.username.value=localStorage.username;
form.curso.value=localStorage.curso;
form.genero.value=config.options.txtGenero;
var date=new Date();
form.when.value=date.formatString("YYYY-MM-DD_hh:mm");
</script>
/***
|''Name:''|UploadPlugin|
|''Description:''|Save to web a TiddlyWiki|
|''Version:''|4.1.4|
|''Date:''|2008-08-11|
|''Source:''|http://tiddlywiki.bidix.info/#UploadPlugin|
|''Documentation:''|http://tiddlywiki.bidix.info/#UploadPluginDoc|
|''Author:''|BidiX (BidiX (at) bidix (dot) info)|
|''License:''|[[BSD open source license|http://tiddlywiki.bidix.info/#%5B%5BBSD%20open%20source%20license%5D%5D ]]|
|''~CoreVersion:''|2.2.0|
|''Requires:''|PasswordOptionPlugin|
***/
//{{{
version.extensions.UploadPlugin = {
	major: 4, minor: 1, revision: 4,
	date: new Date("2008-08-11"),
	source: 'http://tiddlywiki.bidix.info/#UploadPlugin',
	author: 'BidiX (BidiX (at) bidix (dot) info',
	coreVersion: '2.2.0'
};

//
// Environment
//

if (!window.bidix) window.bidix = {}; // bidix namespace
bidix.debugMode = false;	// true to activate both in Plugin and UploadService
	
//
// Upload Macro
//

config.macros.upload = {
// default values
	defaultBackupDir: '',	//no backup
	defaultStoreScript: "store.php",
	defaultToFilename: "index.html",
	defaultUploadDir: ".",
	authenticateUser: true	// UploadService Authenticate User
};
	
config.macros.upload.label = {
	promptOption: "Save and Upload this TiddlyWiki with UploadOptions",
	promptParamMacro: "Save and Upload this TiddlyWiki in %0",
	saveLabel: "save to web", 
	saveToDisk: "save to disk",
	uploadLabel: "upload"	
};

config.macros.upload.messages = {
	noStoreUrl: "No store URL in parmeters or options",
	usernameOrPasswordMissing: "Username or password missing"
};

config.macros.upload.handler = function(place,macroName,params) {
	if (readOnly)
		return;
	var label;
	if (document.location.toString().substr(0,4) == "http") 
		label = this.label.saveLabel;
	else
		label = this.label.uploadLabel;
	var prompt;
	if (params[0]) {
		prompt = this.label.promptParamMacro.toString().format([this.destFile(params[0], 
			(params[1] ? params[1]:bidix.basename(window.location.toString())), params[3])]);
	} else {
		prompt = this.label.promptOption;
	}
	createTiddlyButton(place, label, prompt, function() {config.macros.upload.action(params);}, null, null, this.accessKey);
};

config.macros.upload.action = function(params)
{
		// for missing macro parameter set value from options
		if (!params) params = {};
		var storeUrl = params[0] ? params[0] : config.options.txtUploadStoreUrl;
		var toFilename = params[1] ? params[1] : config.options.txtUploadFilename;
		var backupDir = params[2] ? params[2] : config.options.txtUploadBackupDir;
		var uploadDir = params[3] ? params[3] : config.options.txtUploadDir;
		var username = params[4] ? params[4] : config.options.txtUploadUserName;
		var password = config.options.pasUploadPassword; // for security reason no password as macro parameter	
		// for still missing parameter set default value
		if ((!storeUrl) && (document.location.toString().substr(0,4) == "http")) 
			storeUrl = bidix.dirname(document.location.toString())+'/'+config.macros.upload.defaultStoreScript;
		if (storeUrl.substr(0,4) != "http")
			storeUrl = bidix.dirname(document.location.toString()) +'/'+ storeUrl;
		if (!toFilename)
			toFilename = bidix.basename(window.location.toString());
		if (!toFilename)
			toFilename = config.macros.upload.defaultToFilename;
		if (!uploadDir)
			uploadDir = config.macros.upload.defaultUploadDir;
		if (!backupDir)
			backupDir = config.macros.upload.defaultBackupDir;
		// report error if still missing
		if (!storeUrl) {
			alert(config.macros.upload.messages.noStoreUrl);
			clearMessage();
			return false;
		}
		if (config.macros.upload.authenticateUser && (!username || !password)) {
			alert(config.macros.upload.messages.usernameOrPasswordMissing);
			clearMessage();
			return false;
		}
		bidix.upload.uploadChanges(false,null,storeUrl, toFilename, uploadDir, backupDir, username, password); 
		return false; 
};

config.macros.upload.destFile = function(storeUrl, toFilename, uploadDir) 
{
	if (!storeUrl)
		return null;
		var dest = bidix.dirname(storeUrl);
		if (uploadDir && uploadDir != '.')
			dest = dest + '/' + uploadDir;
		dest = dest + '/' + toFilename;
	return dest;
};

//
// uploadOptions Macro
//

config.macros.uploadOptions = {
	handler: function(place,macroName,params) {
		var wizard = new Wizard();
		wizard.createWizard(place,this.wizardTitle);
		wizard.addStep(this.step1Title,this.step1Html);
		var markList = wizard.getElement("markList");
		var listWrapper = document.createElement("div");
		markList.parentNode.insertBefore(listWrapper,markList);
		wizard.setValue("listWrapper",listWrapper);
		this.refreshOptions(listWrapper,false);
		var uploadCaption;
		if (document.location.toString().substr(0,4) == "http") 
			uploadCaption = config.macros.upload.label.saveLabel;
		else
			uploadCaption = config.macros.upload.label.uploadLabel;
		
		wizard.setButtons([
				{caption: uploadCaption, tooltip: config.macros.upload.label.promptOption, 
					onClick: config.macros.upload.action},
				{caption: this.cancelButton, tooltip: this.cancelButtonPrompt, onClick: this.onCancel}
				
			]);
	},
	options: [
		"txtUploadUserName",
		"pasUploadPassword",
		"txtUploadStoreUrl",
		"txtUploadDir",
		"txtUploadFilename",
		"txtUploadBackupDir",
		"chkUploadLog",
		"txtUploadLogMaxLine"		
	],
	refreshOptions: function(listWrapper) {
		var opts = [];
		for(i=0; i<this.options.length; i++) {
			var opt = {};
			opts.push();
			opt.option = "";
			n = this.options[i];
			opt.name = n;
			opt.lowlight = !config.optionsDesc[n];
			opt.description = opt.lowlight ? this.unknownDescription : config.optionsDesc[n];
			opts.push(opt);
		}
		var listview = ListView.create(listWrapper,opts,this.listViewTemplate);
		for(n=0; n<opts.length; n++) {
			var type = opts[n].name.substr(0,3);
			var h = config.macros.option.types[type];
			if (h && h.create) {
				h.create(opts[n].colElements['option'],type,opts[n].name,opts[n].name,"no");
			}
		}
		
	},
	onCancel: function(e)
	{
		backstage.switchTab(null);
		return false;
	},
	
	wizardTitle: "Upload with options",
	step1Title: "These options are saved in cookies in your browser",
	step1Html: "<input type='hidden' name='markList'></input><br>",
	cancelButton: "Cancel",
	cancelButtonPrompt: "Cancel prompt",
	listViewTemplate: {
		columns: [
			{name: 'Description', field: 'description', title: "Description", type: 'WikiText'},
			{name: 'Option', field: 'option', title: "Option", type: 'String'},
			{name: 'Name', field: 'name', title: "Name", type: 'String'}
			],
		rowClasses: [
			{className: 'lowlight', field: 'lowlight'} 
			]}
};

//
// upload functions
//

if (!bidix.upload) bidix.upload = {};

if (!bidix.upload.messages) bidix.upload.messages = {
	//from saving
	invalidFileError: "The original file '%0' does not appear to be a valid TiddlyWiki",
	backupSaved: "Backup saved",
	backupFailed: "Failed to upload backup file",
	rssSaved: "RSS feed uploaded",
	rssFailed: "Failed to upload RSS feed file",
	emptySaved: "Empty template uploaded",
	emptyFailed: "Failed to upload empty template file",
	mainSaved: "Main TiddlyWiki file uploaded",
	mainFailed: "Failed to upload main TiddlyWiki file. Your changes have not been saved",
	//specific upload
	loadOriginalHttpPostError: "Can't get original file",
	aboutToSaveOnHttpPost: 'About to upload on %0 ...',
	storePhpNotFound: "The store script '%0' was not found."
};

bidix.upload.uploadChanges = function(onlyIfDirty,tiddlers,storeUrl,toFilename,uploadDir,backupDir,username,password)
{
	var callback = function(status,uploadParams,original,url,xhr) {
		if (!status) {
			displayMessage(bidix.upload.messages.loadOriginalHttpPostError);
			return;
		}
		if (bidix.debugMode) 
			alert(original.substr(0,500)+"\n...");
		// Locate the storeArea div's 
		var posDiv = locateStoreArea(original);
		if((posDiv[0] == -1) || (posDiv[1] == -1)) {
			alert(config.messages.invalidFileError.format([localPath]));
			return;
		}
		bidix.upload.uploadRss(uploadParams,original,posDiv);
	};
	
	if(onlyIfDirty && !store.isDirty())
		return;
	clearMessage();
	// save on localdisk ?
	if (document.location.toString().substr(0,4) == "file") {
		var path = document.location.toString();
		var localPath = getLocalPath(path);
		saveChanges();
	}
	// get original
	var uploadParams = new Array(storeUrl,toFilename,uploadDir,backupDir,username,password);
	var originalPath = document.location.toString();
	// If url is a directory : add index.html
	if (originalPath.charAt(originalPath.length-1) == "/")
		originalPath = originalPath + "index.html";
	var dest = config.macros.upload.destFile(storeUrl,toFilename,uploadDir);
	var log = new bidix.UploadLog();
	log.startUpload(storeUrl, dest, uploadDir,  backupDir);
	displayMessage(bidix.upload.messages.aboutToSaveOnHttpPost.format([dest]));
	if (bidix.debugMode) 
		alert("about to execute Http - GET on "+originalPath);
	var r = doHttp("GET",originalPath,null,null,username,password,callback,uploadParams,null);
	if (typeof r == "string")
		displayMessage(r);
	return r;
};

bidix.upload.uploadRss = function(uploadParams,original,posDiv) 
{
	var callback = function(status,params,responseText,url,xhr) {
		if(status) {
			var destfile = responseText.substring(responseText.indexOf("destfile:")+9,responseText.indexOf("\n", responseText.indexOf("destfile:")));
			displayMessage(bidix.upload.messages.rssSaved,bidix.dirname(url)+'/'+destfile);
			bidix.upload.uploadMain(params[0],params[1],params[2]);
		} else {
			displayMessage(bidix.upload.messages.rssFailed);			
		}
	};
	// do uploadRss
	if(config.options.chkGenerateAnRssFeed) {
		var rssPath = uploadParams[1].substr(0,uploadParams[1].lastIndexOf(".")) + ".xml";
		var rssUploadParams = new Array(uploadParams[0],rssPath,uploadParams[2],'',uploadParams[4],uploadParams[5]);
		var rssString = generateRss();
		// no UnicodeToUTF8 conversion needed when location is "file" !!!
		if (document.location.toString().substr(0,4) != "file")
			rssString = convertUnicodeToUTF8(rssString);	
		bidix.upload.httpUpload(rssUploadParams,rssString,callback,Array(uploadParams,original,posDiv));
	} else {
		bidix.upload.uploadMain(uploadParams,original,posDiv);
	}
};

bidix.upload.uploadMain = function(uploadParams,original,posDiv) 
{
	var callback = function(status,params,responseText,url,xhr) {
		var log = new bidix.UploadLog();
		if(status) {
			// if backupDir specified
			if ((params[3]) && (responseText.indexOf("backupfile:") > -1))  {
				var backupfile = responseText.substring(responseText.indexOf("backupfile:")+11,responseText.indexOf("\n", responseText.indexOf("backupfile:")));
				displayMessage(bidix.upload.messages.backupSaved,bidix.dirname(url)+'/'+backupfile);
			}
			var destfile = responseText.substring(responseText.indexOf("destfile:")+9,responseText.indexOf("\n", responseText.indexOf("destfile:")));
			displayMessage(bidix.upload.messages.mainSaved,bidix.dirname(url)+'/'+destfile);
			store.setDirty(false);
			log.endUpload("ok");
		} else {
			alert(bidix.upload.messages.mainFailed);
			displayMessage(bidix.upload.messages.mainFailed);
			log.endUpload("failed");			
		}
	};
	// do uploadMain
	var revised = bidix.upload.updateOriginal(original,posDiv);
	bidix.upload.httpUpload(uploadParams,revised,callback,uploadParams);
};

bidix.upload.httpUpload = function(uploadParams,data,callback,params)
{
	var localCallback = function(status,params,responseText,url,xhr) {
		url = (url.indexOf("nocache=") < 0 ? url : url.substring(0,url.indexOf("nocache=")-1));
		if (xhr.status == 404)
			alert(bidix.upload.messages.storePhpNotFound.format([url]));
		if ((bidix.debugMode) || (responseText.indexOf("Debug mode") >= 0 )) {
			alert(responseText);
			if (responseText.indexOf("Debug mode") >= 0 )
				responseText = responseText.substring(responseText.indexOf("\n\n")+2);
		} else if (responseText.charAt(0) != '0') 
			alert(responseText);
		if (responseText.charAt(0) != '0')
			status = null;
		callback(status,params,responseText,url,xhr);
	};
	// do httpUpload
	var boundary = "---------------------------"+"AaB03x";	
	var uploadFormName = "UploadPlugin";
	// compose headers data
	var sheader = "";
	sheader += "--" + boundary + "\r\nContent-disposition: form-data; name=\"";
	sheader += uploadFormName +"\"\r\n\r\n";
	sheader += "backupDir="+uploadParams[3] +
				";user=" + uploadParams[4] +
				";password=" + uploadParams[5] +
				";uploaddir=" + uploadParams[2];
	if (bidix.debugMode)
		sheader += ";debug=1";
	sheader += ";;\r\n"; 
	sheader += "\r\n" + "--" + boundary + "\r\n";
	sheader += "Content-disposition: form-data; name=\"userfile\"; filename=\""+uploadParams[1]+"\"\r\n";
	sheader += "Content-Type: text/html;charset=UTF-8" + "\r\n";
	sheader += "Content-Length: " + data.length + "\r\n\r\n";
	// compose trailer data
	var strailer = new String();
	strailer = "\r\n--" + boundary + "--\r\n";
	data = sheader + data + strailer;
	if (bidix.debugMode) alert("about to execute Http - POST on "+uploadParams[0]+"\n with \n"+data.substr(0,500)+ " ... ");
	var r = doHttp("POST",uploadParams[0],data,"multipart/form-data; ;charset=UTF-8; boundary="+boundary,uploadParams[4],uploadParams[5],localCallback,params,null);
	if (typeof r == "string")
		displayMessage(r);
	return r;
};

// same as Saving's updateOriginal but without convertUnicodeToUTF8 calls
bidix.upload.updateOriginal = function(original, posDiv)
{
	if (!posDiv)
		posDiv = locateStoreArea(original);
	if((posDiv[0] == -1) || (posDiv[1] == -1)) {
		alert(config.messages.invalidFileError.format([localPath]));
		return;
	}
	var revised = original.substr(0,posDiv[0] + startSaveArea.length) + "\n" +
				store.allTiddlersAsHtml() + "\n" +
				original.substr(posDiv[1]);
	var newSiteTitle = getPageTitle().htmlEncode();
	revised = revised.replaceChunk("<title"+">","</title"+">"," " + newSiteTitle + " ");
	revised = updateMarkupBlock(revised,"PRE-HEAD","MarkupPreHead");
	revised = updateMarkupBlock(revised,"POST-HEAD","MarkupPostHead");
	revised = updateMarkupBlock(revised,"PRE-BODY","MarkupPreBody");
	revised = updateMarkupBlock(revised,"POST-SCRIPT","MarkupPostBody");
	return revised;
};

//
// UploadLog
// 
// config.options.chkUploadLog :
//		false : no logging
//		true : logging
// config.options.txtUploadLogMaxLine :
//		-1 : no limit
//      0 :  no Log lines but UploadLog is still in place
//		n :  the last n lines are only kept
//		NaN : no limit (-1)

bidix.UploadLog = function() {
	if (!config.options.chkUploadLog) 
		return; // this.tiddler = null
	this.tiddler = store.getTiddler("UploadLog");
	if (!this.tiddler) {
		this.tiddler = new Tiddler();
		this.tiddler.title = "UploadLog";
		this.tiddler.text = "| !date | !user | !location | !storeUrl | !uploadDir | !toFilename | !backupdir | !origin |";
		this.tiddler.created = new Date();
		this.tiddler.modifier = config.options.txtUserName;
		this.tiddler.modified = new Date();
		store.addTiddler(this.tiddler);
	}
	return this;
};

bidix.UploadLog.prototype.addText = function(text) {
	if (!this.tiddler)
		return;
	// retrieve maxLine when we need it
	var maxLine = parseInt(config.options.txtUploadLogMaxLine,10);
	if (isNaN(maxLine))
		maxLine = -1;
	// add text
	if (maxLine != 0) 
		this.tiddler.text = this.tiddler.text + text;
	// Trunck to maxLine
	if (maxLine >= 0) {
		var textArray = this.tiddler.text.split('\n');
		if (textArray.length > maxLine + 1)
			textArray.splice(1,textArray.length-1-maxLine);
			this.tiddler.text = textArray.join('\n');		
	}
	// update tiddler fields
	this.tiddler.modifier = config.options.txtUserName;
	this.tiddler.modified = new Date();
	store.addTiddler(this.tiddler);
	// refresh and notifiy for immediate update
	story.refreshTiddler(this.tiddler.title);
	store.notify(this.tiddler.title, true);
};

bidix.UploadLog.prototype.startUpload = function(storeUrl, toFilename, uploadDir,  backupDir) {
	if (!this.tiddler)
		return;
	var now = new Date();
	var text = "\n| ";
	var filename = bidix.basename(document.location.toString());
	if (!filename) filename = '/';
	text += now.formatString("0DD/0MM/YYYY 0hh:0mm:0ss") +" | ";
	text += config.options.txtUserName + " | ";
	text += "[["+filename+"|"+location + "]] |";
	text += " [[" + bidix.basename(storeUrl) + "|" + storeUrl + "]] | ";
	text += uploadDir + " | ";
	text += "[[" + bidix.basename(toFilename) + " | " +toFilename + "]] | ";
	text += backupDir + " |";
	this.addText(text);
};

bidix.UploadLog.prototype.endUpload = function(status) {
	if (!this.tiddler)
		return;
	this.addText(" "+status+" |");
};

//
// Utilities
// 

bidix.checkPlugin = function(plugin, major, minor, revision) {
	var ext = version.extensions[plugin];
	if (!
		(ext  && 
			((ext.major > major) || 
			((ext.major == major) && (ext.minor > minor))  ||
			((ext.major == major) && (ext.minor == minor) && (ext.revision >= revision))))) {
			// write error in PluginManager
			if (pluginInfo)
				pluginInfo.log.push("Requires " + plugin + " " + major + "." + minor + "." + revision);
			eval(plugin); // generate an error : "Error: ReferenceError: xxxx is not defined"
	}
};

bidix.dirname = function(filePath) {
	if (!filePath) 
		return;
	var lastpos;
	if ((lastpos = filePath.lastIndexOf("/")) != -1) {
		return filePath.substring(0, lastpos);
	} else {
		return filePath.substring(0, filePath.lastIndexOf("\\"));
	}
};

bidix.basename = function(filePath) {
	if (!filePath) 
		return;
	var lastpos;
	if ((lastpos = filePath.lastIndexOf("#")) != -1) 
		filePath = filePath.substring(0, lastpos);
	if ((lastpos = filePath.lastIndexOf("/")) != -1) {
		return filePath.substring(lastpos + 1);
	} else
		return filePath.substring(filePath.lastIndexOf("\\")+1);
};

bidix.initOption = function(name,value) {
	if (!config.options[name])
		config.options[name] = value;
};

//
// Initializations
//

// require PasswordOptionPlugin 1.0.1 or better
bidix.checkPlugin("PasswordOptionPlugin", 1, 0, 1);

// styleSheet
setStylesheet('.txtUploadStoreUrl, .txtUploadBackupDir, .txtUploadDir {width: 22em;}',"uploadPluginStyles");

//optionsDesc
merge(config.optionsDesc,{
	txtUploadStoreUrl: "Url of the UploadService script (default: store.php)",
	txtUploadFilename: "Filename of the uploaded file (default: in index.html)",
	txtUploadDir: "Relative Directory where to store the file (default: . (downloadService directory))",
	txtUploadBackupDir: "Relative Directory where to backup the file. If empty no backup. (default: ''(empty))",
	txtUploadUserName: "Upload Username",
	pasUploadPassword: "Upload Password",
	chkUploadLog: "do Logging in UploadLog (default: true)",
	txtUploadLogMaxLine: "Maximum of lines in UploadLog (default: 10)"
});

// Options Initializations
bidix.initOption('txtUploadStoreUrl','');
bidix.initOption('txtUploadFilename','');
bidix.initOption('txtUploadDir','');
bidix.initOption('txtUploadBackupDir','');
bidix.initOption('txtUploadUserName','');
bidix.initOption('pasUploadPassword','');
bidix.initOption('chkUploadLog',true);
bidix.initOption('txtUploadLogMaxLine','10');


// Backstage
merge(config.tasks,{
	uploadOptions: {text: "upload", tooltip: "Change UploadOptions and Upload", content: '<<uploadOptions>>'}
});
config.backstageTasks.push("uploadOptions");


//}}}

Arquivo, foto ou mapamental uploaded desde seu computador para compartilhar com outras. Escreve os detalhes, seleciona o arquivo e clicar na butao apropriada!<html><nowiki><form action="data.php" method="POST" enctype="multipart/form-data" target="responseFrame">
<input name="title" style="width:400px;" value="" onfocus="this.select()">Titulo..<input name="username" value="" style="width:200px;">Seu Nome....<br>
<input name="autor" style="width:200px;" value="" onfocus="this.select()">Autor.<input name="editora" style="width:200px;" value="" onfocus="this.select()">Editora<input type=hidden name="when">.<input name="curso" value="" style="width:200px;">Curso
<input type=hidden name="tipo" value="">
<input type=text name=genero value="">
<input type=hidden name=class value=""><br>
<input type=text name="referencia" style="width:500px;" value="" onfocus="this.select()">Etiquetas
<select name="language" style="width:100px;">
<option>en</option>
<option>pt</option>
<option>es</option>
<option>fr</option>
<option>outro</option>
</select><br><input name="citado" style="width:650px;" onfocus="this.select()">Citado<br>
Sua Comentario<br>
<textarea name="comment" rows="4" cols="44" style="width:750px;" value=" " ></textarea><input type=hidden name=url value=""><br>
 <input type=file name="uploadedFile" ><br>
<input type=submit value="pdf" onclick='this.form.tipo="pdf";'> upload pdf desde meu computador<br>
<input type=submit value=foto onclick='this.form.tipo="foto";'> upload esse foto desde meu computador<br>
<input type=submit value=mapaMental onclick='this.form.tipo="mapaMental";'> - upload meu MapaMental<br>
</form><iframe src="" name="responseFrame" id="responseFrame" width=400px height=250px style="border:0;"></iframe></html><script>var form=place.lastChild.getElementsByTagName('form')[0];
form.title.value=config.options.txtTitle;
form.editora.value=config.options.txtDominio;
form.citado.value=config.options.txtCitado;
form.username.value=localStorage.username;
form.curso.value=localStorage.curso;
form.genero.value=config.options.txtGenero;
var date=new Date();
form.when.value=date.formatString("YYYY-MM-DD_hh:mm");
</script>
/***
|''Name:''|UploadTiddlerMacro|
|''Description:''|Define a macro to upload a tiddler using UploadTiddlerPlugin (see UploadTiddlerPlugin for details).|
|''Version:''|1.0.0|
|''Date:''|2008-09-30|
|''Source:''|http://tiddlywiki.bidix.info/#UploadTiddlerMacro|
|''Usage:''|{{{<<uploadTiddler [tiddlerTitle]>>}}}<br>{{{tiddlerTitle: if omitted the title of the current tiddler}}}|
|''Author:''|BidiX (BidiX (at) bidix (dot) info)|
|''License:''|[[BSD open source license|http://tiddlywiki.bidix.info/#%5B%5BBSD%20open%20source%20license%5D%5D ]]|
|''CoreVersion:''|2.2.0|
|''Requires:''|UploadTiddlerPlugin|
***/
//{{{
version.extensions.UploadTiddlerMacro = {
	major: 1, minor: 0, revision: 0, 
	date: new Date("2008-09-30"),
	source: 'http://tiddlywiki.bidix.info/#UploadTiddlerMacro',
	author: 'BidiX (BidiX (at) bidix (dot) info',
	coreVersion: '2.2.0'
};

config.macros.uploadTiddler = {
	label: "uploadTiddler",
	prompt: "upload tiddler '%0' using UploadTiddlerOptions ",
	warning: "Are you sure you want to upload '%0'?",
	messages: {
		fileUploaded: "tiddler '%0' uploaded to file '%1'",
		fileNotUploaded: "tiddler '%0' NOT uploaded"
	},

	handler: function(place, macroName, params, wikifier,paramString, tiddler) {
		var tiddlerTitle = params[0];
		if (!tiddlerTitle) { 
			tiddlerTitle = tiddler.title;
		} else {
			tiddler = store.getTiddler(tiddlerTitle);
		}
		createTiddlyButton(place, this.label, this.prompt.format([tiddlerTitle]), 
			function () {
				config.macros.uploadTiddler.upload(tiddlerTitle, tiddler); 
				return false;}, 
			null, null, null);
	},

	upload:  function(tiddlerTitle, tiddler) {
		var saved_chkUploadTiddler = config.options.chkUploadTiddler;
		config.options.chkUploadTiddler = true; 
		bidix.uploadTiddler.upload(tiddlerTitle, tiddler,tiddlerTitle);
		config.options.chkUploadTiddler = saved_chkUploadTiddler;
	}
};

//
// Utilities
// 
if (!window.bidix) window.bidix = {}; // bidix namespace

bidix.checkPlugin = function(plugin, major, minor, revision) {
	var ext = version.extensions[plugin];
	if (!
		(ext  && 
			((ext.major > major) || 
			((ext.major == major) && (ext.minor > minor))  ||
			((ext.major == major) && (ext.minor == minor) && (ext.revision >= revision))))) {
			// write error in PluginManager
			if (pluginInfo)
				pluginInfo.log.push("Requires " + plugin + " " + major + "." + minor + "." + revision);
			eval(plugin); // generate an error : "Error: ReferenceError: xxxx is not defined"
	}
};

//
// Initializations
//

// require UploadTiddlerPlugin 1.2.2 or better
bidix.checkPlugin("UploadTiddlerPlugin", 1, 2, 2);


//}}}
/***
|''Name:''|UploadTiddlerPlugin|
|''Description:''|Upload a tiddler and Update a remote TiddlyWiki |
|''Version:''|1.2.2|
|''Date:''|2008-09-13|
|''Source:''|http://tiddlywiki.bidix.info/#UploadTiddlerPlugin|
|''Usage:''|Uses {{{<<uploadOptions>>}}}<br>with those UploadTiddler Options : <br>chkUploadTiddler: <<option chkUploadTiddler>><br>txtUploadTiddlerStoreUrl: <<option txtUploadTiddlerStoreUrl>><br>chkUploadTiddlerFromFile: <<option chkUploadTiddlerFromFile>>|
|''Author:''|BidiX (BidiX (at) bidix (dot) info)|
|''[[License]]:''|[[BSD open source license|http://tiddlywiki.bidix.info/#%5B%5BBSD%20open%20source%20license%5D%5D ]]|
|''CoreVersion:''|2.3.0|
***/
//{{{
version.extensions.UploadTiddlerPlugin = {
	major: 1, minor: 2, revision: 2, 
	date: new Date("2008-09-13"),
	source: 'http://tiddlywiki.bidix.info/#UploadTiddlerPlugin',
	author: 'BidiX (BidiX (at) bidix (dot) info',
	coreVersion: '2.3.0'
};

if (!window.bidix) window.bidix = {}; // bidix namespace
bidix.debugMode = false;
bidix.uploadTiddler = {
	messages: {
		aboutToSaveTiddler: "About to update tiddler '%0'...",
		aboutToRemotelySaveTiddler: "About to REMOTELY update tiddler '%0'...",
		storeTiddlerNotFound: "Script store tiddler '%0' not found",
		tiddlerSaved: "Tiddler '%0' updated in '%1' using '%2' "
	},
	upload: function(title,tiddler,oldTitle) {
		var callback = function(status,params,responseText,url,xhr) {
			if (xhr.status == 404) {
				alert(bidix.uploadTiddler.messages.storeTiddlerNotFound.format([url]));
				return;
			}
			if ((bidix.debugMode) || (responseText.indexOf("Debug mode") >= 0 )) {
				alert(responseText);
				if (responseText.indexOf("Debug mode") >= 0 )
					responseText = responseText.substring(responseText.indexOf("\n\n")+2);
			} else if (responseText.charAt(0) != '0') 
				alert(responseText);
			else 
				displayMessage(bidix.uploadTiddler.messages.tiddlerSaved.format([params[0], params[1], params[2]]));
				store.setDirty(false);
			}

		if ((config.options['chkUploadTiddler']) && 
				((document.location.toString().substr(0,4) == "http") || config.options['chkUploadTiddlerFromFile'])) {
			clearMessage();
			var ExtTiddler = null;
			var html = null;
			if (tiddler) {
				ExtTiddler = store.getSaver().externalizeTiddler(store,tiddler);
				html = wikifyStatic(tiddler.text,null,tiddler).htmlEncode();
			}
			var form = "title="+encodeURIComponent(title);
			form = form + "&tiddler="+(ExtTiddler?encodeURIComponent(ExtTiddler):'');
			form = form + "&html="+(html?encodeURIComponent(html):'');
			var filename = (config.options['txtUploadFilename']?config.options['txtUploadFilename']:'index.html');
			form = form +"&oldTitle="+encodeURIComponent(oldTitle);
			form = form +"&fileName="+encodeURIComponent(filename);
			form = form +"&backupDir="+encodeURIComponent(config.options['txtUploadBackupDir']);
			form = form +"&user="+encodeURIComponent(config.options['txtUploadUserName']);
			form = form +"&password="+encodeURIComponent(config.options['pasUploadPassword']);
			form = form +"&uploadir="+encodeURIComponent(config.options['txtUploadDir']);
			form = form +"&debug="+encodeURIComponent(0);
			var storeScript = (config.options.txtUploadTiddlerStoreUrl 
								? config.options.txtUploadTiddlerStoreUrl : 'storeTiddler.php');
			var r = doHttp("POST",storeScript,form+"\n",'application/x-www-form-urlencoded',
				config.options['txtUploadUserName'],config.options['pasUploadPassword'],callback,Array(title,filename, storeScript),null);
		}
	}
}
TiddlyWiki.prototype.saveTiddler_bidix = TiddlyWiki.prototype.saveTiddler;
TiddlyWiki.prototype.saveTiddler = function(oldTitle,newTitle,newBody,modifier,modified,tags,fields,clearChangeCount,created) {
	var tiddler = TiddlyWiki.prototype.saveTiddler_bidix.apply(this,arguments);
	var title = (newTitle?newTitle:oldTitle);
	if (oldTitle == title)
		oldTitle = '';
	bidix.uploadTiddler.upload(title, tiddler, oldTitle);
}
TiddlyWiki.prototype.removeTiddler_bidix =TiddlyWiki.prototype.removeTiddler;
TiddlyWiki.prototype.removeTiddler = function(title) {
	TiddlyWiki.prototype.removeTiddler_bidix.apply(this,arguments);
	bidix.uploadTiddler.upload(title, null);
}

//
// Initializations
//

bidix.initOption = function(name,value) {
	if (!config.options[name])
		config.options[name] = value;
};

// styleSheet
setStylesheet('.txtUploadTiddlerStoreUrl {width: 22em;}',"uploadTiddlerPluginStyles");

//optionsDesc
merge(config.optionsDesc,{
	txtUploadTiddlerStoreUrl: "Url of the UploadTiddlerService script (default: storeTiddler.php)",
	chkUploadTiddler: "Do per Tiddler upload using txtUploadTiddlerStoreUrl (default: false)",
	chkUploadTiddlerFromFile: "Upload tiddler even if TiddlyWiki is located on local file (default: false)"
});

// Options Initializations
bidix.initOption('txtUploadTiddlerStoreUrl','');
bidix.initOption('chkUploadTiddler','');
bidix.initOption('chkUploadTiddlerFromFile','');


// add options in backstage UploadOptions
if (config.macros.uploadOptions) {
	if (config.macros.uploadOptions.options) {
		config.macros.uploadOptions.options.push("txtUploadTiddlerStoreUrl","chkUploadTiddler", "chkUploadTiddlerFromFile");
	}
}

//}}}

<!--{{{--><div class='toolbar' macro='toolbar [[ToolbarCommands::ViewToolbar]]'></div><div class='viewer' macro='view text wikified'></div><div class='tagClear'></div><!--;}}}-->
<html><nowiki><form action="video.php" method="POST" enctype="multipart/form-data" target="responseFrame">
<input name="title" style="width:400px;" value="" onfocus="this.select()">Titulo<br>
<input name="username" value="" style="width:200px;">Seu Nome<br>
<input type=hidden name="when"><input type=hidden name=editora value="Vimeo"><input name="curso" value="" style="width:200px;">Curso<br>
<input name="escola" value="" style="width:200px;">Escola<br>
<input name="url" style="width:400px;" value="url" onfocus="this.select()">Video Code.<br>
<input type=text name="tema" style="width:500px;" value="" onfocus="this.select()">Tema<br>
<input name="citado" style="width:650px;" onfocus="this.select()">Citado<br>
Sua Comentario<br>
<textarea name="comment" rows="4" cols="44" style="width:750px;" value=" " ></textarea>
<input type="submit" value="Salva" onclick=''> 
</form><iframe src="" name="responseFrame" id="responseFrame" width=400px height=250px style="border:0;"></iframe></html><script>
var form=place.lastChild.getElementsByTagName('form')[0];
form.title.value=config.options.txtTitle;
var url=config.options.txtFonte;
var InitCode=url.indexOf(".com/");
form.url.value=url.substring(InitCode+5);
//form.username.value=localStorage.username;
//form.curso.value=localStorage.curso;
var date=new Date();
form.when.value=date.formatString("YYYY-MM-DD_hh:mm");
</script>
meuProjeto
<html><nowiki><form action="video.php" method="POST" enctype="multipart/form-data" target="responseFrame">
<input name="title" style="width:400px;" value="" onfocus="this.select()">Titulo<br>
<input name="username" value="" style="width:200px;">Seu Nome<br>
<input type=hidden name="when"><input type=hidden name=editora value="Youtube"><input name="curso" value="" style="width:200px;">Curso<r>
<input name="url" style="width:400px;" value="url" onfocus="this.select()">Video Code.<br>
<input type=hidden name=escola value="">
<input type=text name="tema" style="width:500px;" value="" onfocus="this.select()">Tema<br>
<input name="citado" style="width:650px;" onfocus="this.select()">Citado<br>
Sua Comentario<br>
<textarea name="comment" rows="4" cols="44" style="width:750px;" value=" " ></textarea>
<input type="submit" value="Salva" onclick=''> 
</form><iframe src="" name="responseFrame" id="responseFrame" width=400px height=50px style="border:0;"></iframe></html><script>
var form=place.lastChild.getElementsByTagName('form')[0];
form.title.value=config.options.txtTitle;
var url=config.options.txtFonte;
var InitCode=url.indexOf("watch?v=");
form.url.value=url.substring(InitCode+8);
form.username.value=localStorage.username;
form.curso.value=localStorage.curso;
form.escola.value=localStorage.escola;
var date=new Date();
form.when.value=date.formatString("YYYY-MM-DD_hh:mm");
</script>
<html><nowiki><form action="testText.php" method="GET" target="responseFrame"></form>
<table><tr><td>
<input name="title" style="width:300px;" value="" onfocus="this.select()">Titulo</td><td><input name="autor" style="width:300px;" value="" onfocus="this.select()">Autor</td><td><input name="editora" style="width:300px;" value="" onfocus="this.select()">Editora</td></tr>
<td><input type=text name="username">Username</td>
<td><input type=text name="curso" style="width:300px;" value="" onfocus="this.select()"> Curso</td>
<td><input type=text name="referencia" style="width:300px;" value="" onfocus="this.select()">Etiquetas</td></tr>
<tr><td><input name="url" style="width:300px;" value="" >URL</td>
<td><input name="extra" style="width:300px;" value="" onfocus="this.select()">biblioRef</td>
<td><select name="language" style="width:100px;">
<option>en</option>
<option>pt</option>
<option>es</option>
<option>fr</option>
<option>outro</option>
</select></td></tr>
<input type=hidden name="email">
<input type=hidden name="when">
<input type=hidden name="tipo">
<input type=hidden name=file>
<td colspan="3"><input type="text" name="citado" style="width:1000px;" onfocus="this.select()">Citado</td></tr>
<tr><td colspan="3"><textarea name="comment" rows="4" cols="44" style="width:1000px;" value=" " ></textarea>Comentarios</td></tr>
<tr><td colspan="2"><input type="submit" value="Video" onclick='
this.form.file.value="AAA/videoStore.txt";
this.form.tipo.value="video";
'><input type=submit value="Foto" onclick='
this.form.file.value="AAA/fotoStore.txt";
this.form.tipo.value="foto";'>
<input type="submit" value="Music" onclick='
this.form.file.value="AAA/musicStore.txt";
this.form.tipo.value="music";'>
<input type="submit" value="Mapa" onclick='
this.form.file.value="AAA/mapasStore.txt";
this.form.tipo.value="mapa";'>
<input type="submit" value="PDF ou HTML" onclick='
this.form.file.value="AAA/dadosStore.txt";
this.form.tipo.value="pdf";'></td>
<td><input type=submit value="Etiqueta" onclick='
this.form.file.value="AAA/tags.txt";
this.form.tipo.value="Etiqueta";
this.form.curso.value="all";'>
<input type=submit value="Noticia" onclick='
this.form.file.value="AAA/noticias.txt";
this.form.tipo.value="noticia";
this.form.curso.value=localStorage.curso;'>
<input type=submit value="Dinamica" onclick='
this.form.file.value="AAA/dinamicaStore.txt";
this.form.tipo.value="dinamica";
this.form.curso.value="all";'></tr></td>
<tr><td><input type=file value=""style="width:300px;"></td><td colspan="2"><input type=submit value="upload">..seleciona arquivo pra upload por arquivos</td></tr>
<tr><td><input type=file value=""style="width:300px;"></td><td colspan="2"><input type=submit value="docs"> <input type="submit" value="relatorio" onclick ='
this.form.tipo="relatorio":'> <input type="submit" value="foto">..seleciona pra upload documentos seus</td></tr>
<tr><td colspan="3"><iframe src="" name="responseFrame" id="responseFrame" width=400px height=50px style="border:0;"></iframe></tr></td></table></html><script>
var form=place.lastChild.getElementsByTagName('form')
[0];
form.title.value=config.options.txtTitle;
form.url.value=config.options.txtFont;
form.editora.value=config.options.txtDominio;
form.citado.value=config.options.txtCitado;
form.username.value=localStorage.username;
form.curso.value=localStorage.curso;
form.email.value=localStorage.email;
var date=new Date();
form.when.value=date.formatString("YYYY-MM-DD_hh:mm");
</script>
<html><nowiki><form action="data.php" method="POST" enctype="multipart/form-data" target="responseFrame">
<input name="title" style="width:500px;" value="" onfocus="this.select()">Titulo..<input name="username" value="" style="width:200px;">Seu Nome....<br>
<input name="autor" style="width:200px;" value="" onfocus="this.select()">Autor.<input name="editora" style="width:200px;" value="" onfocus="this.select()">Editora<input type=hidden name="when">.<input name="curso" value="" style="width:200px;">Curso
<input type=hidden name="tipo"><input type=hidden name=pdf><input type=hidden name=class><input type=hidden name=genero><br>
<input name="url" style="width:400px;" value="url" onfocus="this.select()">URL....<br>
<input type=text name="referencia" style="width:500px;" value="" onfocus="this.select()">Etiquetas
<select name="language" style="width:100px;">
<option>en</option>
<option>pt</option>
<option>es</option>
<option>fr</option>
<option>outro</option>
</select><br><input name="citado" style="width:850px;" onfocus="this.select()">Citado<br>
Sua Comentario<br>
<textarea name="comment" rows="4" cols="44" style="width:840px;" value=" " ></textarea><br>
<html><a href="listaTemas.php" target="lista">Lista das temas Existentes!</a><iframe src="" name="lista" id="lista" width=400px height=250px style="border:0;"></iframe>e</html>
config.options.txtUploadUserName="Skye"
config.options.pasUploadPassword="xcaan100"
config.options.txtUploadStoreUrl="store.php"
config.options.txtUploadDir=""
config.options.txtUploadFilename="data.html"
config.options.txtUploadTiddlerStoreUrl="storeTiddler.php"
config.options.chkUploadTiddler=true
readOnly=false
config.options.chkHttpReadOnly=false