Location: PHPKode > projects > OpenWolf Guidelines Validator > openWolf 0.9.9/dictionaries.php
<?

/*************************************************

openWolf - an HTML accessibility guidelines validator
Author: Geoff Munn (hide@address.com)
Version: 0.9.9

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

You may contact the author of openWolf by e-mail at: hide@address.com

The latest version of openWolf can be obtained from:
http://openwolf.sourceforge.net/

*************************************************/

function load_proprietary_elements(&$this){
	$this["bgsound"]="bgsound";
	$this["blink"]="blink";
	$this["embed"]="embed";
	$this["ilayer"]="ilayger";
	$this["inlineinput"]="inlineinput";
	$this["input"]="input"; //Do a specific check for input type="readonly";
	$this["keygen"]="keygen";
	$this["layer"]="layer";
	$this["marquee"]="marquee";
	$this["multicol"]="multicol";
	$this["nobr"]="nobr";
	$this["noembed"]="noembed";
	$this["nolayer"]="nolayer";
	$this["sound"]="sound";
	$this["spacer"]="spacer";
	$this["spell"]="spell";
	$this["wbr"]="wbr";
	$this["xml"]="xml";
}

function load_deprecated_elements(){
	
	$deprecated=Array();
	
	$deprecated['applet']['element']='applet';
	$deprecated['applet']['replacement']='&lt;object&gt;';
	$deprecated['basefont']['element']='basefont';
	$deprecated['basefont']['replacement']="&lt;style rel=\"stylesheet\"...&gt;";
	$deprecated['center']['element']='center';
	$deprecated['center']['replacement']="&lt;div align=\"center\"&gt;";
	$deprecated['dir']['element']='dir';
	$deprecated['dir']['replacement']='&lt;ul&gt;';
	$deprecated['font']['element']='font';
	$deprecated['font']['replacement']="&lt;span style=\"font:...\"&gt;";
	$deprecated['isindex']['element']='isindex';
	$deprecated['isindex']['replacement']="&lt;input type=\"text\"&gt;";
	$deprecated['listing']['element']='listing';
	$deprecated['listing']['replacement']='&lt;pre&gt;';
	$deprecated['menu']['element']='menu';
	$deprecated['menu']['replacement']='&lt;ul&gt;';
	$deprecated['plaintext']['element']='plaintext';
	$deprecated['plaintext']['replacement']='&lt;pre&gt;';
	$deprecated['s']['element']='s';
	$deprecated['s']['replacement']="&lt;span style=\"text-decoration: line-through\"&gt;";
	$deprecated['strike']['element']='strike';
	$deprecated['strike']['replacement']="&lt;span style=\"text-decoration: line-through\"&gt;";
	$deprecated['u']['element']='u';
	$deprecated['u']['replacement']="&lt;span style=\"text-decoration: underline\"&gt;";
	$deprecated['xmp']['element']='xmp';
	$deprecated['xmp']['replacement']='&lt;pre&gt;';
	
	return $deprecated;
}

function load_common_extensions(){
	
	//TODO:	Should xml be here?  How about .txt?
	
	$extensions=Array();
	$extensions['html']=true;
	$extensions['htm']=true;
	$extensions['asp']=true;
	$extensions['aspx']=true;
	$extensions['php']=true;
	$extensions['pl']=true;
	$extensions['phtml']=true;
	$extensions['shtml']=true;
	$extensions['cgi']=true;
	$extensions['jsp']=true;
	$extensions['cfm']=true;
	$extensions['sgml']=true;
	$extensions['sm']=true;
	$extensions['dll']=true; //possibly controversial
	$extensions['nsf']=true;
	$extensions['jhtml']=true;
	$extensions['txt']=true;
	
	//the following extensions are for particular sites that I've come across...
	$extensions['story']=true; 	//LA Times
	$extensions['stm']=true; 	//BBC News
	$extensions['nv']=true; 	//Siliconrepublic.com
	$extensions['php3']=true; 	//unision.ie
	$extensions['ece']=true;	//news.independent.co.uk
	$extensions['article']=true;//suntimes.com
	$extensions['bg']=true;		//news.bostonherald.com/
	$extensions['ihtml']=true;	//3com
	
	return $extensions;
}

function load_nonECMA_script(&$this){
	$this['.concat(']='.concat(';
    $this['.slice(']='.slice(';
    $this['new VBArray(']='new VBArray(';
    $this['.dimensions(']='.dimensions(';
    $this['.getItem(']='.getItem(';
    $this['.lbound(']='.lbound(';
    $this['.toArray(']='.toArray(';
    $this['.ubound(']='.ubound(';
    $this['@cc_on']='@cc_on';
    $this['@if']='@if';
    $this['@set']='@set';
    $this['@_win32']='@_win32';
    $this['@_win16']='@_win16';
    $this['@_mac']='@_mac';
    $this['@_alpha']='@_alpha';
    $this['@_x86']='@_x86';
    $this['@_mc680x0']='@_mc680x0';
    $this['@_PowerPC']='@_PowerPC';
    $this['@_jscript']='@_jscript';
    $this['@_jscript_build']='@_jscript_build';
    $this['@_jscript_version']='@_jscript_version';
    $this[' do ']=' do '; //this is part of a do...while statement
    $this[' continue ']=' continue '; //this is part of a label statement
    $this['switch(']='switch(';
    $this['switch (']='switch (';
    $this['getVarDate()']='getVarDate()';
    $this['new Enumerator(']='new Enumerator(';
    $this['.atEnd()']='.atEnd()';
    $this['.item()']='.item()';
    $this['.moveFirst(']='.moveFirst(';
    $this['.moveNext(']='.moveNext(';
    $this['new Error(']='new Error(';
    $this['.description']='.description';
    $this['.number']='.number';
    $this[' throw ']=' throw ';
    $this['try {']='try {';
    $this['catch(']='catch(';
    $this['finally {']='finally {';
    $this['.caller']='.caller';
    //Identity (===), Nonidentity (!==) not included because they're too vague
    $this['RegExp.']='RegExp.';
    $this['new RegExp(']='new RegExp(';
    $this['new ActiveXObject(']='new ActiveXObject(';
    $this['GetObject(']='GetObject(';
    //index not included (part of regular expressions), as are other
    //regular expression properties.  The creation of the regExp object will
    //trigger a failure anyway
    $this['.compile(']='.compile(';
    $this['.test(']='.test(';
    $this['ScriptEngine(']='ScriptEngine(';
    $this['ScriptEngineBuildVersion(']='ScriptEngineBuildVersion(';
    $this['ScriptEngineMajorVersion(']='ScriptEngineMajorVersion(';
    $this['ScriptEngineMinorVersion(']='ScriptEngineMinorVersion(';
    $this['.match(']='.match(';
    $this['.replace(']='.replace(';
    $this['.search(']='.search(';
    $this['.anchor(']='.anchor(';
    $this['.big(']='.big(';
    $this['.blink(']='.blink(';
    $this['.bold(']='.bold(';
    $this['.fixed(']='.fixed(';
    $this['.fontcolor(']='.fontcolor(';
    $this['.fontsize(']='.fontsize(';
    $this['.italics(']='.italics(';
    $this['.link(']='.link(';
    $this['.small(']='.small(';
    $this['.strike(']='.strike(';
    $this['.sub(']='.sub(';
    $this['.sup(']='.sup(';
}

function load_nonW3_dom(&$this){
	//http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties.asp
    $this['.style.accelerator'] = '.style.accelerator';
    $this['.activeElement'] = '.activeElement';
    $this['.alinkColor'] = '.alinkColor';
    $this['.allowTransparency'] = '.allowTransparency';
    $this['.altHTML'] = '.altHTML';
    $this['.altKey'] = '.altKey';
    $this['.altLeft'] = '.altLeft';
    $this['.appCodeName'] = '.appCodeName';
     //$this['APPLICATION='] = '1';
     //$this['APPLICATION ='] = '1';
     //$this['APPLICATIONNAME='] = '1';
     //$this['APPLICATIONNAME ='] = '1';
    $this['.appMinorVersion'] = '.appMinorVersion';
    $this['.appName'] = '.appName';
    $this['.appVersion'] = '.appVersion';
    $this['.autocomplete('] = '.autocomplete(';
    $this['.availHeight'] = '.availHeight';
    $this['.availWidth'] = '.availWidth';
    $this['.balance'] = '.balance';
    $this['.Banner'] = '.Banner';
    $this['.BannerAbstract'] = '.BannerAbstract';
    $this['.BaseHref'] = '.BaseHref';
    $this['.bgProperties'] = '.bgProperties';
    $this['.blockDirection'] = '.blockDirection';
    $this['.borderColorDark'] = '.borderColorDark';
    $this['.borderColorLight'] = '.borderColorLight';
    $this['.bottomMargin'] = '.bottomMargin';
    $this['.boundingHeight'] = '.boundingHeight';
    $this['.boundingLeft'] = '.boundingLeft';
    $this['.boundingTop'] = '.boundingTop';
    $this['.boundingWidth'] = '.boundingWidth';
    $this['.browserLanguage'] = '.browserLanguage';
    $this['.bufferDepth'] = '.bufferDepth';
    $this['.button'] = '.button';
    $this['.cancelBubble'] = '.cancelBubble';
    $this['.canHaveChildren'] = '.canHaveChildren';
    $this['.canHaveHTML'] = '.canHaveHTML';
    $this['.clientHeight'] = '.clientHeight';
    $this['.clientLeft'] = '.clientLeft';
    $this['.clientTop'] = '.clientTop';
    $this['.clientWidth'] = '.clientWidth';
    $this['.clientX'] = '.clientX';
    $this['.clientY'] = '.clientY';
    $this['.clipBottom'] = '.clipBottom';
    $this['.clipLeft'] = '.clipLeft';
    $this['.clipRight'] = '.clipRight';
    $this['.clipTop'] = '.clipTop';
    $this['.closed'] = '.closed';
    $this['.colorDepth'] = '.colorDepth';
    $this['.compatMode'] = '.compatMode';
    $this['.complete'] = '.complete';
    $this['.contentEditable'] = '.contentEditable';
    $this['.contentOverflow'] = '.contentOverflow';
    $this['.contentWindow'] = '.contentWindow';
    $this['.cookieEnabled'] = '.cookieEnabled';
     //no information could be found on the .count property
    $this['.cpuClass'] = '.cpuClass';
    $this['.cssText'] = '.cssText';
    $this['.ctrlKey'] = '.ctrlKey';
    $this['.ctrlLeft'] = '.ctrlLeft';
    $this['.dataFormatAs'] = '.dataFormatAs';
    $this['.dataPageSize'] = '.dataPageSize';
    $this['.dataSrc'] = '.dataSrc';
    $this['.defaultCharset'] = '.defaultCharset';
    $this['.defaultStatus'] = '.defaultStatus';
    $this['.designMode'] = '.designMode';
    $this['.deviceXDPI'] = '.deviceXDPI'; //assumed not w3 compliant
    $this['.deviceYDPI'] = '.deviceYDPI'; //assumed not w3 compliant
    $this['.dialogArguments'] = '.dialogArguments';
    $this['.dialogHeight'] = '.dialogHeight';
    $this['.dialogLeft'] = '.dialogLeft';
    $this['.dialogTop'] = '.dialogTop';
    $this['.dialogWidth'] = '.dialogWidth';
    $this['.dropEffect'] = '.dropEffect';
    $this['.dynsrc'] = '.dynsrc';
    $this['.effectAllowed'] = '.effectAllowed';
    $this['.expando'] = '.expando';
    $this['.fgColor'] = '.fgColor';
     //no information could be found on the FieldDelim property
    $this['.fileCreatedDate'] = '.fileCreatedDate';
    $this['.fileModifiedDate'] = '.fileModifiedDate';
    $this['.fileSize'] = '.fileSize';
    $this['.fileUpdatedDate'] = '.fileUpdatedDate';
    $this['.fontSmoothingEnabled'] = '.fontSmoothingEnabled';
    $this['.frameElement'] = '.frameElement';
    $this['.frameSpacing'] = '.frameSpacing';
    $this['.fromElement'] = '.fromElement';
    $this['.galleryImg'] = '.galleryImg';
    $this['.hash'] = '.hash';
    $this['.hasLayout'] = '.hasLayout';
    $this['.hidden'] = '.hidden';
    $this['.hideFocus'] = '.hideFocus';
    $this['.host'] = '.host';
    $this['.hostname'] = '.hostname';
    $this['.htmlText'] = '.htmlText';
    $this['.indeterminate'] = '.indeterminate';
    $this['.innerHTML'] = '.innerHTML';
    $this['.innerText'] = '.innerText';
    $this['.isContentEditable'] = '.isContentEditable';
    $this['.isDisabled'] = '.isDisabled';
    $this['.isMultiLine'] = '.isMultiLine';
    $this['.isOpen'] = '.isOpen';
    $this['.isTextEdit'] = '.isTextEdit';
    $this['.keyCode'] = '.keyCode';
    $this['.lastModified'] = '.lastModified';
    $this['.layoutFlow'] = '.layoutFlow';
    $this['.leftMargin'] = '.leftMargin';
    $this['.logicalXDPI'] = '.logicalXDPI';
    $this['.logicalYDPI'] = '.logicalYDPI';
    $this['.menuArguments'] = '.menuArguments';
    $this['.Methods'] = '.Methods';
    $this['.nameProp'] = '.nameProp';
    $this['.nextPage'] = '.nextPage';
    $this['.offscreenBuffering'] = '.offscreenBuffering';
    $this['.offsetHeight'] = '.offsetHeight';
    $this['.offsetLeft'] = '.offsetLeft';
    $this['.offsetParent'] = '.offsetParent';
    $this['.offsetTop'] = '.offsetTop';
    $this['.offsetWidth'] = '.offsetWidth';
    $this['.offsetX'] = '.offsetX';
    $this['.offsetY'] = '.offsetY';
    $this['.onLine'] = '.onLine';
    $this['.opener'] = '.opener';
    $this['.outerHTML'] = '.outerHTML';
    $this['.outerText'] = '.outerText';
    $this['.owningElement'] = '.owningElement';
    $this['.palette'] = '.palette';
    $this['.parentElement'] = '.parentElement';
    $this['.parentStyleSheet'] = '.parentStyleSheet';
    $this['.parentTextEdit'] = '.parentTextEdit';
    $this['.parentWindow'] = '.parentWindow';
    $this['.pathname'] = '.pathname';
    $this['.pixelBottom'] = '.pixelBottom';
    $this['.pixelHeight'] = '.pixelHeight';
    $this['.pixelLeft'] = '.pixelLeft';
    $this['.pixelRight'] = '.pixelRight';
    $this['.pixelTop'] = '.pixelTop';
    $this['.pixelWidth'] = '.pixelWidth';
    $this['.platform'] = '.platform';
    $this['.pluginspage'] = '.pluginspage';
    $this['.port'] = '.port';
    $this['.posBottom'] = '.posBottom';
    $this['.posHeight'] = '.posHeight';
    $this['.posLeft'] = '.posLeft';
    $this['.posRight'] = '.posRight';
    $this['.posTop'] = '.posTop';
    $this['.posWidth'] = '.posWidth';
    $this['.propertyName'] = '.propertyName';
    $this['.protocol'] = '.protocol';
    $this['.pseudoClass'] = '.pseudoClass';
    $this['.qualifier'] = '.qualifier';
    $this['.readyState'] = '.readyState';
    $this['.reason'] = '.reason';
    $this['.recordNumber'] = '.recordNumber';
    $this['.recordset'] = '.recordset';
    $this['.repeat'] = '.repeat';
    $this['.returnValue'] = '.returnValue';
    $this['.rightMargin'] = '.rightMargin';
    $this['.saveType'] = '.saveType';
    $this['.scopeName'] = '.scopeName';
    $this['.screenLeft'] = '.screenLeft';
    $this['.screenTop'] = '.screenTop';
    $this['.screenX'] = '.screenX';
    $this['.screenY'] = '.screenY';
    $this['.scroll'] = '.scroll';
    $this['.scrollAmount'] = '.scrollAmount';
    $this['.scrollbar3dLightColor'] = '.scrollbar3dLightColor';
    $this['.scrollbarArrowColor'] = '.scrollbarArrowColor';
    $this['.scrollbarBaseColor'] = '.scrollbarBaseColor';
    $this['.scrollbarDarkShadowColor'] = '.scrollbarDarkShadowColor';
    $this['.scrollbarFaceColor'] = '.scrollbarFaceColor';
    $this['.scrollbarHighlightColor'] = '.scrollbarHighlightColor';
    $this['.scrollbarShadowColor'] = '.scrollbarShadowColor';
    $this['.scrollbarTrackColor'] = '.scrollbarTrackColor';
    $this['.scrollDelay'] = '.scrollDelay';
    $this['.scrollHeight'] = '.scrollHeight';
    $this['.scrollLeft'] = '.scrollLeft';
    $this['.scrollTop'] = '.scrollTop';
    $this['.scrollWidth'] = '.scrollWidth';
    $this['.search'] = '.search';
    $this['.selector'] = '.selector';
    $this['.selectorText'] = '.selectorText';
    $this['.self'] = '.self';
    $this['.shiftKey'] = '.shiftKey';
    $this['.shiftLeft'] = '.shiftLeft';
    $this['.sourceIndex'] = '.sourceIndex';
    $this['.srcElement'] = '.srcElement';
    $this['.srcFilter'] = '.srcFilter';
    $this['.srcUrn'] = '.srcUrn';
    $this['.status'] = '.status';
    $this['.systemLanguage'] = '.systemLanguage';
    $this['.tabStop'] = '.tabStop';
    $this['.tagUrn'] = '.tagUrn';
    $this['.textAlignLast'] = '.textAlignLast';
    $this['.textDecorationBlink'] = '.textDecorationBlink';
    $this['.textDecorationLineThrough'] = '.textDecorationLineThrough';
    $this['.textDecorationNone'] = '.textDecorationNone';
    $this['.textDecorationOverline'] = '.textDecorationOverline';
    $this['.textDecorationUnderline'] = '.textDecorationUnderline';
    $this['.toElement'] = '.toElement';
    $this['.topMargin'] = '.topMargin';
    $this['.trueSpeed'] = '.trueSpeed';
    $this['.typeDetail'] = '.typeDetail';
    $this['.uniqueID'] = '.uniqueID';
    $this['.units'] = '.units';
    $this['.updateInterval'] = '.updateInterval';
    $this['.URLUnencoded'] = '.URLUnencoded';
    $this['.urn'] = '.urn';
    $this['.userAgent'] = '.userAgent';
    $this['.userLanguage'] = '.userLanguage';
    $this['.vcard_name'] = '.vcard_name';
    $this['.viewInheritStyle'] = '.viewInheritStyle';
    $this['.viewLink'] = '.viewLink';
    $this['.viewMasterTab'] = '.viewMasterTab';
    $this['.vlinkColor'] = '.vlinkColor';
    $this['.volume'] = '.volume';
    $this['.wheelDelta'] = '.wheelDelta';
    $this['.wrap'] = '.wrap';
    $this['.x'] = '.x';
    $this['.XMLDocument'] = '.XMLDocument';
    $this['.XSLDocument'] = '.XSLDocument';
    $this['.y'] = '.y';
    $this['.zoom'] = '.zoom';
     //'http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods.asp
     //'.add' not included due to confliction with other valid use
    $this['.addBehavior'] = '.addBehavior';
    $this['.AddChannel'] = '.AddChannel';
    $this['.AddDesktopComponent'] = '.AddDesktopComponent';
    $this['.addElement'] = '.addElement';
    $this['.AddFavorite'] = '.AddFavorite';
    $this['.addImport'] = '.addImport';
    $this['.addPageRule'] = '.addPageRule';
    $this['.addReadRequest'] = '.addReadRequest';
    $this['.addRule'] = '.addRule';
    $this['.alert'] = '.alert';
    $this['.applyElement'] = '.applyElement';
    $this['.assign'] = '.assign';
    $this['.attachEvent'] = '.attachEvent';
    $this['.AutoCompleteSaveForm'] = '.AutoCompleteSaveForm';
    $this['.AutoScan'] = '.AutoScan';
    $this['.back'] = '.back';
    $this['.ChooseColorDlg'] = '.ChooseColorDlg';
    $this['.clearAttributes'] = '.clearAttributes';
    $this['.clearData'] = '.clearData';
    $this['.clearInterval'] = '.clearInterval';
    $this['.clearRequest'] = '.clearRequest';
    $this['.clearTimeout'] = '.clearTimeout';
    $this['.collapse'] = '.collapse';
    $this['.compareEndPoints'] = '.compareEndPoints';
    $this['.componentFromPoint'] = '.componentFromPoint';
    $this['.confirm'] = '.confirm';
    $this['.contains'] = '.contains';
    $this['.createControlRange'] = '.createControlRange';
    $this['.createEventObject'] = '.createEventObject';
    $this['.createPopup'] = '.createPopup';
    $this['.createRange'] = '.createRange';
    $this['.createRangeCollection'] = '.createRangeCollection';
    $this['.createStyleSheet'] = '.createStyleSheet';
    $this['.createTextRange'] = '.createTextRange';
    $this['.detachEvent'] = '.detachEvent';
    $this['.doImport'] = '.doImport';
    $this['.doReadRequest'] = '.doReadRequest';
    $this['.doScroll'] = '.doScroll';
    $this['.dragDrop'] = '.dragDrop';
    $this['.duplicate'] = '.duplicate';
    $this['.elementFromPoint'] = '.elementFromPoint';
    $this['.empty'] = '.empty';
    $this['.execCommand'] = '.execCommand';
    $this['.execScript'] = '.execScript';
    $this['.expand'] = '.expand';
    $this['.findText'] = '.findText';
    $this['.fireEvent'] = '.fireEvent';
    $this['.firstPage'] = '.firstPage';
    $this['.forward'] = '.forward';
    $this['.getAdjacentText'] = '.getAdjacentText';
    $this['.getBookmark'] = '.getBookmark';
    $this['.getBoundingClientRect'] = '.getBoundingClientRect';
    $this['.getCharset'] = '.getCharset';
    $this['.getClientRects'] = '.getClientRects';
    $this['.getData'] = '.getData';
    $this['.getExpression'] = '.getExpression';
    $this['.go'] = '.go';
    $this['.hasFocus'] = '.hasFocus';
    $this['.hide'] = '.hide';
    $this['.ImportExportFavorites'] = '.ImportExportFavorites';
    $this['.inRange'] = '.inRange';
    $this['.insertAdjacentElement'] = '.insertAdjacentElement';
    $this['.insertAdjacentHTML'] = '.insertAdjacentHTML';
    $this['.insertAdjacentText'] = '.insertAdjacentText';
    $this['.isEqual'] = '.isEqual';
    $this['.IsSubscribed'] = '.IsSubscribed';
    $this['.javaEnabled'] = '.javaEnabled';
    $this['.lastPage'] = '.lastPage';
    $this['.mergeAttributes'] = '.mergeAttributes';
    $this['.move'] = '.move';
    $this['.moveBy'] = '.moveBy';
    $this['.moveEnd'] = '.moveEnd';
    $this['.moveRow'] = '.moveRow';
    $this['.moveStart'] = '.moveStart';
    $this['.moveTo'] = '.moveTo';
    $this['.moveToBookmark'] = '.moveToBookmark';
    $this['.moveToElementText'] = '.moveToElementText';
    $this['.moveToPoint'] = '.moveToPoint';
    $this['.namedRecordset'] = '.namedRecordset';
    $this['.navigate'] = '.navigate';
    $this['.NavigateAndFind'] = '.NavigateAndFind';
    $this['.nextPage'] = '.nextPage';
    $this['.pasteHTML'] = '.pasteHTML';
    $this['.previousPage'] = '.previousPage';
    $this['.print'] = '.print';
    $this['.prompt'] = '.prompt';
    $this['.queryCommandEnabled'] = '.queryCommandEnabled';
    $this['.queryCommandIndeterm'] = '.queryCommandIndeterm';
    $this['.queryCommandState'] = '.queryCommandState';
    $this['.queryCommandSupported'] = '.queryCommandSupported';
    $this['.queryCommandValue'] = '.queryCommandValue';
    $this['.recalc'] = '.recalc';
    $this['.refresh'] = '.refresh';
    $this['.releaseCapture'] = '.releaseCapture';
    $this['.reload'] = '.reload';
    $this['.removeBehavior'] = '.removeBehavior';
    $this['.removeExpression'] = '.removeExpression';
    $this['.removeNode'] = '.removeNode';
    $this['.removeRule'] = '.removeRule';
    $this['.replace'] = '.replace';
    $this['.replaceAdjacentText'] = '.replaceAdjacentText';
    $this['.replaceNode'] = '.replaceNode';
    $this['.resizeBy'] = '.resizeBy';
    $this['.resizeTo'] = '.resizeTo';
     //$this['.scroll'] = '.';
    $this['.scrollBy'] = '.scrollBy';
    $this['.scrollIntoView'] = '.scrollIntoView';
    $this['.scrollTo'] = '.scrollTo';
    $this['.setActive'] = '.setActive';
    $this['.setCapture'] = '.setCapture';
    $this['.setData'] = '.setData';
    $this['.setEndPoint'] = '.setEndPoint';
    $this['.setExpression'] = '.setExpression';
    $this['.setInterval'] = '.setInterval';
    $this['.setTimeout'] = '.setTimeout';
    $this['.show'] = '.show';
    $this['.ShowBrowserUI'] = '.ShowBrowserUI';
    $this['.showHelp'] = '.showHelp';
    $this['.showModalDialog'] = '.showModalDialog';
    $this['.showModelessDialog'] = '.showModelessDialog';
    $this['.start'] = '.start';
    $this['.stop'] = '.stop';
    $this['.swapNode'] = '.swapNode';
    $this['.tags'] = '.tags';
    $this['.taintEnabled'] = '.taintEnabled';
    $this['.urns'] = '.urns';
    //http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/collections.asp
    $this['.all'] = '.all';
    $this['.behaviorUrns'] = '.behaviorUrns';
    $this['.blockFormats'] = '.blockFormats';
    $this['.bookmarks'] = '.bookmarks';
    $this['.boundElements'] = '.boundElements';
    $this['.children'] = '.children';
    //it is unclear how controlrange fits in here
    $this['.embeds'] = '.embeds';
    $this['.filters'] = '.filters';
    $this['.fonts'] = '.fonts';
    $this['.forms'] = '.forms';
    $this['.frames'] = '.frames';
    $this['.imports'] = '.imports';
    $this['.namespaces'] = '.namespaces';
    $this['.pages'] = '.pages';
    $this['.plugins'] = '.plugins';
    $this['.scripts'] = '.scripts';
    $this['.styleSheets'] = '.styleSheets';
    $this['.TextRange'] = '.TextRange';

}

function load_display_attributes(){
	$visuals=Array();
    $visuals['alink'] = 'alink';
    $visuals['background'] = 'background';
    $visuals['basefont'] = 'basefont';
    $visuals['bgcolor'] = 'bgcolor';
	$visuals['bgproperties'] = 'bgproperties';
    $visuals['bottommargin'] = 'bottommargin';
    $visuals['leftmargin'] = 'leftmargin';
    $visuals['link'] = 'link';
    $visuals['marginheight'] = 'marginheight';
    $visuals['marginwidth'] = 'marginwidth';
    $visuals['rightmargin'] = 'rightmargin';
    $visuals['text'] = 'text';
    $visuals['topmargin'] = 'topmargin';
    $visuals['vlink'] = 'vlink';
    $visuals['color'] = 'color';
    $visuals['face'] = 'face';
    $visuals['size'] = 'size';
    $visuals['font-weight'] = 'font-weight';
    $visuals['point-size'] = 'point-size';
    $visuals['border'] = 'border';
    $visuals['bordercolor'] = 'bordercolor';
    $visuals['align'] = 'align';
    $visuals['hspace'] = 'hspace';
    $visuals['vspace'] = 'vspace';
    $visuals['bordercolorlight'] = 'bordercolorlight';
    $visuals['bordercolordark'] = 'bordercolordark';
    $visuals['cellpadding'] = 'cellpadding';
    $visuals['cellspacing'] = 'cellspacing';
    $visuals['bottompadding'] = 'bottompadding';
    $visuals['leftpadding'] = 'leftpadding';
    $visuals['rightpadding'] = 'rightpadding';
    $visuals['valign'] = 'valign';
    //$visuals['clear'] = 'clear'; I don't think that 'clear' is a display attribute in the same sense as the rest of these
    
    return $visuals;
}

function load_block_elements($loadTrs=true){
	//The following are special instances:
	$blocks['body']='body';
	$blocks['html']='html';
	$blocks['head']='head';
	
	//And these are conventional block elements:
	$blocks['address']='address';
	$blocks['blockquote']='blockquote';
	$blocks['center']='center';
	$blocks['dir']='dir';
	$blocks['div']='div';
	$blocks['dl']='dl';
	$blocks['fieldset']='fieldset';
	$blocks['form']='form';
	$blocks['h1']='h1';
	$blocks['h2']='h2';
	$blocks['h3']='h3';
	$blocks['h4']='h4';
	$blocks['h5']='h5';
	$blocks['h6']='h6';
	$blocks['hr']='hr';
	$blocks['isindex']='isindex';
	$blocks['menu']='menu';
	$blocks['noframes']='noframes';
	$blocks['noscript']='noscript';
	$blocks['ol']='ol';
	$blocks['p']='p';
	$blocks['pre']='pre';
	$blocks['table']='table';
	$blocks['ul']='ul';
	
	$blocks['dd']='dd';
	$blocks['dt']='dt';
	$blocks['frameset']='frameset';
	$blocks['li']='li';
	$blocks['tbody']='tbody';
	if($loadTrs){
		$blocks['td']='td';
	}
	$blocks['tfoot']='tfoot';
	if($loadTrs){
		$blocks['th']='th';
	}
	$blocks['thead']='thead';
	$blocks['tr']='tr';
	
	return $blocks;
}

function load_format_names(){
	
	$names=Array();
	$names['pdf'][]='pdf';
	$names['pdf'][]='portable document format';
	$names['doc'][]='doc';
	$names['doc'][]='word';
	$names['xls'][]='xls';
	$names['xls'][]='excel';
	$names['jpg'][]='jpg';
	$names['jpg'][]='jpeg';
	$names['png'][]='png';
	$names['png'][]='portable network';
	$names['gif'][]='gif';
	$names['mov'][]='mov';
	$names['mov'][]='quicktime';
	$names['mpg'][]='mpg';
	$names['mpg'][]='mpeg';
	$names['mpg'][]='quicktime';
	$names['wma'][]='wma';
	$names['wma'][]='windows media';
	$names['wmv'][]='wmv';
	$names['wmv'][]='windows media';
	$names['mp3'][]='mp3';
	$names['txt'][]='txt';
	$names['rtf'][]='rtf';
	$names['rtf'][]='rich text format';
	$names['ppt'][]='ppt';
	$names['ppt'][]='powerpoint';
	$names['zip'][]='zip';
	
	return $names;
}

function load_common_stylesheet_properties(&$this){
	$this['border-bottom-color']='border-bottom-color';
	$this['border-bottom']='border-bottom';
    $this['border-bottom-style']='border-bottom-style';
    $this['border-bottom-style']='border-bottom-style';
    $this['border-color']='border-color';
    $this['border-left-color']='border-left-color';
    $this['border-left']='border-left';
    $this['border-left-style']='border-left-style';
    $this['border-left-width']='border-left-width';
    $this['border']='border';
    $this['border-right-color']='border-right-color';
    $this['border-right']='border-right';
    $this['border-right-style']='border-right-style';
    $this['border-right-width']='border-right-width';
    $this['border-style']='border-style';
    $this['border-top-color']='border-top-color';
    $this['border-top']='border-top';
    $this['border-top-style']='border-top-style';
    $this['border-top-width']='border-top-width';
    $this['border-width']='border-width';
    $this['clear']='clear';
    $this['display']='display';
    $this['float']='float';
    $this['position']='position';
    $this['visibility']='visibility';
    $this['background']='background';
    $this['background-attachment']='background-attachment';
    $this['background-color']='background-color';
    $this['background-image']='background-image';
    $this['background-position']='background-position';
    $this['background-repeat']='background-repeat';
    $this['color']='color';
    $this['height']='height';
    $this['@import']='@import';
    $this['line-height']='line-height';
    $this['min-height']='min-height';
    $this['width']='width';
    $this['cursor']='cursor';
    $this['font']='font';
    $this['font-family']='font-family';
    $this['font-size']='font-size';
    $this['font-style']='font-style';
    $this['font-variant']='font-variant';
    $this['font-weight']='font-weight';
    $this['list-style']='list-style';
    $this['list-style-image']='list-style-image';
    $this['list-style-type']='list-style-type';
    $this['margin']='margin';
    $this['margin-bottom']='margin-bottom';
    $this['margin-left']='margin-left';
    $this['margin-right']='margin-right';
    $this['margin-top']='margin-top';
    $this['padding']='padding';
    $this['padding-bottom']='padding-bottom';
    $this['padding-left']='padding-left';
    $this['padding-right']='padding-right';
    $this['padding-top']='padding-top';
    $this['bottom']='bottom';
    $this['clip']='clip';
    $this['left']='left';
    $this['overflow']='overflow';
    $this['right']='right';
    $this['top']='top';
    $this['vertical-align']='vertical-align';
    $this['z-index']='z-index';
    $this['page-break-after']='page-break-after';
    $this['page-break-before']='page-break-before';
    $this['border-collapse']='border-collapse';
    $this['table-layout']='table-layout';
    $this['letter-spacing']='letter-spacing';
    $this['text-align']='text-align';
    $this['text-decoration']='text-decoration';
    $this['text-indent']='text-indent';
    $this['text-transform']='text-transform';
    $this['white-space']='white-space';
    $this['word-spacing']='word-spacing';
}

function load_common_fonts(&$this){
	$this['verdana']='verdana';
    $this['arial']='arial';
    $this['helvetica']='helvetica'; //Mac
    $this['geneva']='geneva'; //Mac
    $this['times new roman']='times new roman';
    $this['times']='times'; //Mac
    $this['palatino']='palatino';
    $this['georgia']='georgia';
    $this['courier new']='courier new';
    $this['sans-serif']='sans-serif'; //Family
    $this['serif']='serif'; //Family
    $this['fantasy']='fantasy'; //Family
    $this['cursive']='cursive'; //Family
    $this['monospace']='monospace'; //Family
}

function language_codes(){
	$codes=Array();
	$codes['abk']='Abkhazian';
	$codes['ab']='Abkhazian';
	$codes['ace']='Achinese';
	$codes['ach']='Acoli';
	$codes['ada']='Adangme';
	$codes['aar']='Afar';
	$codes['aa']='Afar';
	$codes['afh']='Afrihili';
	$codes['afr']='Afrikaans';
	$codes['af']='Afrikaans';
	$codes['afa']='Afro-Asiatic (Other)';
	$codes['aka']='Akan';
	$codes['akk']='Akkadian';
	$codes['alb']='Albanian';
	$codes['sqi']='Albanian';
	$codes['sq']='Albanian';
	$codes['ale']='Aleut';
	$codes['alg']='Algonquian languages';
	$codes['tut']='Altaic (Other)';
	$codes['amh']='Amharic';
	$codes['am']='Amharic';
	$codes['apa']='Apache languages';
	$codes['ara']='Arabic';
	$codes['ar']='Arabic';
	$codes['arc']='Aramaic';
	$codes['arp']='Arapaho';
	$codes['arn']='Araucanian';
	$codes['arw']='Arawak';
	$codes['arm']='Armenian';
	$codes['hye']='Armenian';
	$codes['hy']='Armenian';
	$codes['art']='Artificial (Other)';
	$codes['asm']='Assamese';
	$codes['as']='Assamese';
	$codes['ath']='Athapascan languages';
	$codes['map']='Austronesian (Other)';
	$codes['ava']='Avaric';
	$codes['ave']='Avestan';
	$codes['awa']='Awadhi';
	$codes['aym']='Aymara';
	$codes['ay']='Aymara';
	$codes['aze']='Azerbaijani';
	$codes['az']='Azerbaijani';
	$codes['nah']='Aztec';
	$codes['ban']='Balinese';
	$codes['bat']='Baltic (Other)';
	$codes['bal']='Baluchi';
	$codes['bam']='Bambara';
	$codes['bai']='Bamileke languages';
	$codes['bad']='Banda';
	$codes['bnt']='Bantu (Other)';
	$codes['bas']='Basa';
	$codes['bak']='Bashkir';
	$codes['ba']='Bashkir';
	$codes['baq']='Basque';
	$codes['eus']='Basque';
	$codes['eu']='Basque';
	$codes['bej']='Beja';
	$codes['bem']='Bemba';
	$codes['ben']='Bengali';
	$codes['bn']='Bengali';
	$codes['ber']='Berber (Other)';
	$codes['bho']='Bhojpuri';
	$codes['bih']='Bihari';
	$codes['bh']='Bihari';
	$codes['bik']='Bikol';
	$codes['bin']='Bini';
	$codes['bis']='Bislama';
	$codes['bi']='Bislama';
	$codes['bra']='Braj';
	$codes['bre']='Breton';
	$codes['be']='Breton';
	$codes['bug']='Buginese';
	$codes['bul']='Bulgarian';
	$codes['bg']='Bulgarian';
	$codes['bua']='Buriat';
	$codes['bur']='Burmese';
	$codes['mya']='Burmese';
	$codes['my']='Burmese';
	$codes['bel']='Byelorussian';
	$codes['be']='Byelorussian';
	$codes['cad']='Caddo';
	$codes['car']='Carib';
	$codes['cat']='Catalan';
	$codes['ca']='Catalan';
	$codes['cau']='Caucasian (Other)';
	$codes['ceb']='Cebuano';
	$codes['cel']='Celtic (Other)';
	$codes['cai']='Central American Indian (Other)';
	$codes['chg']='Chagatai';
	$codes['cha']='Chamorro';
	$codes['che']='Chechen';
	$codes['chr']='Cherokee';
	$codes['chy']='Cheyenne';
	$codes['chb']='Chibcha';
	$codes['chi']='Chinese';
	$codes['zho']='Chinese';
	$codes['zh']='Chinese';
	$codes['chn']='Chinook jargon';
	$codes['cho']='Choctaw';
	$codes['chu']='Church Slavic';
	$codes['chv']='Chuvash';
	$codes['cop']='Coptic';
	$codes['cor']='Cornish';
	$codes['cos']='Corsican';
	$codes['co']='Corsican';
	$codes['cre']='Cree';
	$codes['mus']='Creek';
	$codes['crp']='Creoles and Pidgins (Other)';
	$codes['cpe']='Creoles and Pidgins, English-based (Other)';
	$codes['cpf']='Creoles and Pidgins, French-based (Other)';
	$codes['cpp']='Creoles and Pidgins, Portuguese-based (Other)';
	$codes['cus']='Cushitic (Other)';
	$codes['hr']='Croatian';
	$codes['ces']='Czech';
	$codes['cze']='Czech';
	$codes['cs']='Czech';
	$codes['dak']='Dakota';
	$codes['dan']='Danish';
	$codes['da']='Danish';
	$codes['del']='Delaware';
	$codes['din']='Dinka';
	$codes['div']='Divehi';
	$codes['doi']='Dogri';
	$codes['dra']='Dravidian (Other)';
	$codes['dua']='Duala';
	$codes['dut']='Dutch';
	$codes['nla']='Dutch';
	$codes['nl']='Dutch';
	$codes['dum']='Dutch, Middle (ca. 1050-1350)';
	$codes['dyu']='Dyula';
	$codes['dzo']='Dzongkha';
	$codes['dz']='Dzongkha';
	$codes['efi']='Efik';
	$codes['egy']='Egyptian (Ancient)';
	$codes['eka']='Ekajuk';
	$codes['elx']='Elamite';
	$codes['eng']='English';
	$codes['en']='English';
	$codes['enm']='English, Middle (ca. 1100-1500)';
	$codes['ang']='English, Old (ca. 450-1100)';
	$codes['esk']='Eskimo (Other)';
	$codes['epo']='Esperanto';
	$codes['eo']='Esperanto';
	$codes['est']='Estonian';
	$codes['et']='Estonian';
	$codes['ewe']='Ewe';
	$codes['ewo']='Ewondo';
	$codes['fan']='Fang';
	$codes['fat']='Fanti';
	$codes['fao']='Faroese';
	$codes['fo']='Faroese';
	$codes['fij']='Fijian';
	$codes['fj']='Fijian';
	$codes['fin']='Finnish';
	$codes['fi']='Finnish';
	$codes['fiu']='Finno-Ugrian (Other)';
	$codes['fon']='Fon';
	$codes['fra']='French';
	$codes['fre']='French';
	$codes['fr']='French';
	$codes['frm']='French, Middle (ca. 1400-1600)';
	$codes['fro']='French, Old (842- ca. 1400)';
	$codes['fry']='Frisian';
	$codes['fy']='Frisian';
	$codes['ful']='Fulah';
	$codes['gaa']='Ga';
	$codes['gae']='Gaelic (Scots)';
	$codes['gdh']='Gaelic (Scots)';
	$codes['glg']='Gallegan';
	$codes['gl']='Gallegan';
	$codes['lug']='Ganda';
	$codes['gay']='Gayo';
	$codes['gez']='Geez';
	$codes['geo']='Georgian';
	$codes['kat']='Georgian';
	$codes['ka']='Georgian';
	$codes['deu']='German';
	$codes['ger']='German';
	$codes['de']='German';
	$codes['gmh']='German, Middle High (ca. 1050-1500)';
	$codes['goh']='German, Old High (ca. 750-1050)';
	$codes['gem']='Germanic (Other)';
	$codes['gil']='Gilbertese';
	$codes['gon']='Gondi';
	$codes['got']='Gothic';
	$codes['grb']='Grebo';
	$codes['grc']='Greek, Ancient (to 1453)';
	$codes['ell']='Greek, Modern (1453-)';
	$codes['gre']='Greek, Modern (1453-)';
	$codes['el']='Greek, Modern (1453-)';
	$codes['kal']='Greenlandic';
	$codes['kl']='Greenlandic';
	$codes['grn']='Guarani';
	$codes['gn']='Guarani';
	$codes['guj']='Gujarati';
	$codes['gu']='Gujarati';
	$codes['hai']='Haida';
	$codes['hau']='Hausa';
	$codes['ha']='Hausa';
	$codes['haw']='Hawaiian';
	$codes['heb']='Hebrew';
	$codes['he']='Hebrew';
	$codes['her']='Herero';
	$codes['hil']='Hiligaynon';
	$codes['him']='Himachali';
	$codes['hin']='Hindi';
	$codes['hi']='Hindi';
	$codes['hmo']='Hiri Motu';
	$codes['hun']='Hungarian';
	$codes['hu']='Hungarian';
	$codes['hup']='Hupa';
	$codes['iba']='Iban';
	$codes['ice']='Icelandic';
	$codes['isl']='Icelandic';
	$codes['is']='Icelandic';
	$codes['ibo']='Igbo';
	$codes['ijo']='Ijo';
	$codes['ilo']='Iloko';
	$codes['inc']='Indic (Other)';
	$codes['ine']='Indo-European (Other)';
	$codes['ind']='Indonesian';
	$codes['id']='Indonesian';
	$codes['ina']='Interlingua (International Auxiliary language Association)';
	$codes['ia']='Interlingua (International Auxiliary language Association)';
	$codes['ine']='Interlingue';
	$codes['iku']='Inuktitut';
	$codes['iu']='Inuktitut';
	$codes['ipk']='Inupiak';
	$codes['ik']='Inupiak';
	$codes['ira']='Iranian (Other)';
	$codes['gai']='Irish';
	$codes['iri']='Irish';
	$codes['ga']='Irish';
	$codes['sga']='Irish, Old (to 900)';
	$codes['mga']='Irish, Middle (900 - 1200)';
	$codes['iro']='Iroquoian languages';
	$codes['ita']='Italian';
	$codes['it']='Italian';
	$codes['jpn']='Japanese';
	$codes['ja']='Japanese';
	$codes['jav']='Javanese';
	$codes['jaw']='Javanese';
	$codes['jv']='Javanese';
	$codes['jw']='Javanese';
	$codes['jrb']='Judeo-Arabic';
	$codes['jpr']='Judeo-Persian';
	$codes['kab']='Kabyle';
	$codes['kac']='Kachin';
	$codes['kam']='Kamba';
	$codes['kan']='Kannada';
	$codes['kn']='Kannada';
	$codes['kau']='Kanuri';
	$codes['kaa']='Kara-Kalpak';
	$codes['kar']='Karen';
	$codes['kas']='Kashmiri';
	$codes['ks']='Kashmiri';
	$codes['kaw']='Kawi';
	$codes['kaz']='Kazakh';
	$codes['kk']='Kazakh';
	$codes['kha']='Khasi';
	$codes['khm']='Khmer';
	$codes['km']='Khmer';
	$codes['khi']='Khoisan (Other)';
	$codes['kho']='Khotanese';
	$codes['kik']='Kikuyu';
	$codes['kin']='Kinyarwanda';
	$codes['rw']='Kinyarwanda';
	$codes['kir']='Kirghiz';
	$codes['ky']='Kirghiz';
	$codes['kom']='Komi';
	$codes['kon']='Kongo';
	$codes['kok']='Konkani';
	$codes['kor']='Korean';
	$codes['ko']='Korean';
	$codes['kpe']='Kpelle';
	$codes['kro']='Kru';
	$codes['kua']='Kuanyama';
	$codes['kum']='Kumyk';
	$codes['kur']='Kurdish';
	$codes['ku']='Kurdish';
	$codes['kru']='Kurukh';
	$codes['kus']='Kusaie';
	$codes['kut']='Kutenai';
	$codes['lad']='Ladino';
	$codes['lah']='Lahnda';
	$codes['lam']='Lamba';
	$codes['oci']="Langue d'Oc (post 1500)";
	$codes['oc']="Langue d'Oc (post 1500)";
	$codes['lao']='Lao';
	$codes['lo']='Lao';
	$codes['lat']='Latin';
	$codes['la']='Latin';
	$codes['lav']='Latvian';
	$codes['lv']='Latvian';
	$codes['ltz']='Letzeburgesch';
	$codes['lez']='Lezghian';
	$codes['lin']='Lingala';
	$codes['ln']='Lingala';
	$codes['lit']='Lithuanian';
	$codes['lt']='Lithuanian';
	$codes['loz']='Lozi';
	$codes['lub']='Luba-Katanga';
	$codes['lui']='Luiseno';
	$codes['lun']='Lunda';
	$codes['luo']='Luo (Kenya and Tanzania)';
	$codes['mac']='Macedonian';
	$codes['mak']='Macedonian';
	$codes['mk']='Macedonian';
	$codes['mad']='Madurese';
	$codes['mag']='Magahi';
	$codes['mai']='Maithili';
	$codes['mak']='Makasar';
	$codes['mlg']='Malagasy';
	$codes['mg']='Malagasy';
	$codes['may']='Malay';
	$codes['msa']='Malay';
	$codes['ms']='Malay';
	$codes['mal']='Malayalam';
	$codes['mlt']='Maltese';
	$codes['ml']='Maltese';
	$codes['man']='Mandingo';
	$codes['mni']='Manipuri';
	$codes['mno']='Manobo languages';
	$codes['max']='Manx';
	$codes['mao']='Maori';
	$codes['mri']='Maori';
	$codes['mi']='Maori';
	$codes['mar']='Marathi';
	$codes['mr']='Marathi';
	$codes['chm']='Mari';
	$codes['mah']='Marshall';
	$codes['mwr']='Marwari';
	$codes['mas']='Masai';
	$codes['myn']='Mayan languages';
	$codes['men']='Mende';
	$codes['mic']='Micmac';
	$codes['min']='Minangkabau';
	$codes['mis']='Miscellaneous (Other)';
	$codes['moh']='Mohawk';
	$codes['mol']='Moldavian';
	$codes['mo']='Moldavian';
	$codes['mkh']='Mon-Kmer (Other)';
	$codes['lol']='Mongo';
	$codes['mon']='Mongolian';
	$codes['mn']='Mongolian';
	$codes['mos']='Mossi';
	$codes['mul']='Multiple languages';
	$codes['mun']='Munda languages';
	$codes['nau']='Nauru';
	$codes['na']='Nauru';
	$codes['nav']='Navajo';
	$codes['nde']='Ndebele, North';
	$codes['nbl']='Ndebele, South';
	$codes['ndo']='Ndongo';
	$codes['nep']='Nepali';
	$codes['ne']='Nepali';
	$codes['new']='Newari';
	$codes['nic']='Niger-Kordofanian (Other)';
	$codes['ssa']='Nilo-Saharan (Other)';
	$codes['niu']='Niuean';
	$codes['non']='Norse, Old';
	$codes['nai']='North American Indian (Other)';
	$codes['nor']='Norwegian';
	$codes['no']='Norwegian';
	$codes['nno']='Norwegian (Nynorsk)';
	$codes['nub']='Nubian languages';
	$codes['nym']='Nyamwezi';
	$codes['nya']='Nyanja';
	$codes['nyn']='Nyankole';
	$codes['nyo']='Nyoro';
	$codes['nzi']='Nzima';
	$codes['oji']='Ojibwa';
	$codes['ori']='Oriya';
	$codes['or']='Oriya';
	$codes['orm']='Oromo';
	$codes['om']='Oromo';
	$codes['osa']='Osage';
	$codes['oss']='Ossetic';
	$codes['oto']='Otomian languages';
	$codes['pal']='Pahlavi';
	$codes['pau']='Palauan';
	$codes['pli']='Pali';
	$codes['pam']='Pampanga';
	$codes['pag']='Pangasinan';
	$codes['pan']='Panjabi';
	$codes['pa']='Panjabi';
	$codes['pap']='Papiamento';
	$codes['paa']='Papuan-Australian (Other)';
	$codes['fas']='Persian';
	$codes['per']='Persian';
	$codes['fa']='Persian';
	$codes['peo']='Persian, Old (ca 600 - 400 B.C.)';
	$codes['phn']='Phoenician';
	$codes['pol']='Polish';
	$codes['pl']='Polish';
	$codes['pon']='Ponape';
	$codes['por']='Portuguese';
	$codes['pt']='Portuguese';
	$codes['pra']='Prakrit languages';
	$codes['pro']='Provencal, Old (to 1500)';
	$codes['pus']='Pushto';
	$codes['ps']='Pushto';
	$codes['que']='Quechua';
	$codes['qu']='Quechua';
	$codes['roh']='Rhaeto-Romance';
	$codes['rm']='Rhaeto-Romance';
	$codes['raj']='Rajasthani';
	$codes['rar']='Rarotongan';
	$codes['roa']='Romance (Other)';
	$codes['ron']='Romanian';
	$codes['rum']='Romanian';
	$codes['ro']='Romanian';
	$codes['rom']='Romany';
	$codes['run']='Rundi';
	$codes['rn']='Rundi';
	$codes['rus']='Russian';
	$codes['ru']='Russian';
	$codes['sal']='Salishan languages';
	$codes['sam']='Samaritan Aramaic';
	$codes['smi']='Sami languages';
	$codes['smo']='Samoan';
	$codes['sm']='Samoan';
	$codes['sad']='Sandawe';
	$codes['sag']='Sango';
	$codes['sg']='Sango';
	$codes['san']='Sanskrit';
	$codes['sa']='Sanskrit';
	$codes['srd']='Sardinian';
	$codes['sco']='Scots';
	$codes['sel']='Selkup';
	$codes['sem']='Semitic (Other)';
	$codes['sr']='Serbian';
	$codes['scr']='Serbo-Croatian';
	$codes['sh']='Serbo-Croatian';
	$codes['srr']='Serer';
	$codes['shn']='Shan';
	$codes['sna']='Shona';
	$codes['sn']='Shona';
	$codes['sid']='Sidamo';
	$codes['bla']='Siksika';
	$codes['snd']='Sindhi';
	$codes['sd']='Sindhi';
	$codes['sin']='Singhalese';
	$codes['si']='Singhalese';
	$codes['sit']='Sino-Tibetan (Other)';
	$codes['sio']='Siouan languages';
	$codes['sla']='Slavic (Other)';
	$codes['ssw']='Siswant';
	$codes['ss']='Siswant';
	$codes['slk']='Slovak';
	$codes['slo']='Slovak';
	$codes['sk']='Slovak';
	$codes['slv']='Slovenian';
	$codes['sl']='Slovenian';
	$codes['sog']='Sogdian';
	$codes['som']='Somali';
	$codes['so']='Somali';
	$codes['son']='Songhai';
	$codes['wen']='Sorbian languages';
	$codes['nso']='Sotho, Northern';
	$codes['sot']='Sotho, Southern';
	$codes['st']='Sotho, Southern';
	$codes['sai']='South American Indian (Other)';
	$codes['esl']='Spanish';
	$codes['spa']='Spanish';
	$codes['es']='Spanish';
	$codes['suk']='Sukuma';
	$codes['sux']='Sumerian';
	$codes['sun']='Sudanese';
	$codes['su']='Sudanese';
	$codes['sus']='Susu';
	$codes['swa']='Swahili';
	$codes['sw']='Swahili';
	$codes['ssw']='Swazi';
	$codes['sve']='Swedish';
	$codes['swe']='Swedish';
	$codes['sv']='Swedish';
	$codes['syr']='Syriac';
	$codes['tgl']='Tagalog';
	$codes['tl']='Tagalog';
	$codes['tah']='Tahitian';
	$codes['tgk']='Tajik';
	$codes['tg']='Tajik';
	$codes['tmh']='Tamashek';
	$codes['tam']='Tamil';
	$codes['ta']='Tamil';
	$codes['tat']='Tatar';
	$codes['tt']='Tatar';
	$codes['tel']='Tatar';
	$codes['te']='Tatar';
	$codes['ter']='Tereno';
	$codes['tha']='Thai';
	$codes['th']='Thai';
	$codes['bod']='Tibetan';
	$codes['tib']='Tibetan';
	$codes['bo']='Tibetan';
	$codes['tig']='Tigre';
	$codes['tir']='Tigrinya';
	$codes['ti']='Tigrinya';
	$codes['tem']='Timne';
	$codes['tiv']='Tivi';
	$codes['tli']='Tlingit';
	$codes['tog']='Tonga (Nyasa)';
	$codes['to']='Tonga (Nyasa)';
	$codes['ton']='Tonga (Tonga Islands)';
	$codes['tru']='Truk';
	$codes['tsi']='Tsimshian';
	$codes['tso']='Tsonga';
	$codes['ts']='Tsonga';
	$codes['tsn']='Tswana';
	$codes['tn']='Tswana';
	$codes['tum']='Tumbuka';
	$codes['tur']='Turkish';
	$codes['tr']='Turkish';
	$codes['ota']='Turkish, Ottoman (1500 - 1928)';
	$codes['tuk']='Turkmen';
	$codes['tk']='Turkmen';
	$codes['tyv']='Tuvinian';
	$codes['twi']='Twi';
	$codes['tw']='Twi';
	$codes['uga']='Ugaritic';
	$codes['uig']='Uighur';
	$codes['ug']='Uighur';
	$codes['ukr']='Ukrainian';
	$codes['uk']='Ukrainian';
	$codes['umb']='Umbundu';
	$codes['und']='Undetermined';
	$codes['urd']='Urdu';
	$codes['ur']='Urdu';
	$codes['uzb']='Uzbek';
	$codes['uz']='Uzbek';
	$codes['vai']='Vai';
	$codes['ven']='Venda';
	$codes['vie']='Vietnamese';
	$codes['vi']='Vietnamese';
	$codes['vol']='Volap�k';
	$codes['vo']='Volap�k';
	$codes['vot']='Votic';
	$codes['wak']='Wakashan languages';
	$codes['wal']='Walamo';
	$codes['war']='Waray';
	$codes['was']='Washo';
	$codes['cym']='Welsh';
	$codes['wel']='Welsh';
	$codes['cy']='Welsh';
	$codes['wol']='Wolof';
	$codes['wo']='Wolof';
	$codes['xho']='Xhosa';
	$codes['xh']='Xhosa';
	$codes['sah']='Yakut';
	$codes['yao']='Yao';
	$codes['yap']='Yap';
	$codes['yid']='Yiddish';
	$codes['yi']='Yiddish';
	$codes['yor']='Yoruba';
	$codes['yo']='Yoruba';
	$codes['zap']='Zapotec';
	$codes['zen']='Zenaga';
	$codes['zha']='Zhuang';
	$codes['za']='Zhuang';
	$codes['zul']='Zulu';
	$codes['zu']='Zulu';
	$codes['zun']='Zuni';

	return $codes;
}

function load_sound_extensions(){
	$sounds=Array();
	$sound['wav']='wav';
	$sound['au']='au';
	$sound['snd']='snd';
	$sound['dwd']='dwd';
	$sound['iff']='iff';
	$sound['svx']='svx';
	$sound['sam']='sam';
	$sound['smp']='smp';
	$sound['vce']='vce';
	$sound['voc']='voc';
	$sound['pcm']='pcm';
	$sound['aif']='aif';
	
	return $sounds;
}

function load_multimedia_extensions(&$this){
	$this['mp2']='mp2';
	$this['mpa']='mpa';
	$this['mpe']='mpe';
	$this['mpeg']='mpeg';
	$this['mpg']='mpg';
	$this['mpv2']='mpv2';
	$this['mov']='mov';
	$this['qt']='qt';
	$this['lsf']='lsf';
	$this['lsx']='lsx';
	$this['asf']='asf';
	$this['asr']='asr';
	$this['asx']='asx';
	$this['avi']='avi';
	$this['movie']='movie';
	$this['mp4']='mp4';	
}
?>
Return current item: OpenWolf Guidelines Validator