var ROW_SPACER='\u00A0\u00A0\u00A0\u00A0';updateRequired=false;queueProcessing=false;currentSearchId=0;textInput=null;rowCount=35;menuTable=null;menuTableRows=new Array();previousQuery=null;var targetDoc=null;var targetWin=null;function setupSearchField(win)
{targetWin=win;targetDoc=win.document;textInput=targetDoc.getElementById('gaSearch');textInput.onkeydown=keydown;textInput.onkeyup=keyup;textInput.onfocus=processFocus;textInput.onblur=processBlur;try
{}catch(e)
{}menuTable=targetDoc.createElement('table');menuTable.className='gaMenu';menuTable.style.display='none';menuTable.cellSpacing=0;menuTable.cellPadding=0;menuTable.border=0;menuTable.style.position='absolute';menuTable.style.zIndex=100;for(var i=0;i<rowCount;i++)
{var row=menuTable.insertRow(i);var td=targetDoc.createElement('td');td.align='left';td.idx=i;td.onmousedown=goToResource;row.appendChild(td);td.appendChild(targetDoc.createTextNode('\u00A0'));menuTableRows[i]=td;}targetDoc.body.appendChild(menuTable);}function gotapi_prepareData(data)
{for(var i=0;i<data.length-1;i++)
{var offset=data[i].p;data[i].p=data[i-offset];}}function removeAllChilds(argNode)
{while(argNode.firstChild)
{argNode.removeChild(argNode.firstChild);}}function processFocus(evt)
{var value=textInput.value;if(value=='')
{setMenuVisible(false);return;}if(updateRequired) {update();}setMenuVisible(true);}function processBlur(evt)
{setMenuVisible(false);}function Module(id,path,title,url,popup)
{this.id=id;this.path=path;this.title=title;this.data=null;this.url=url;this.popup=popup;}function keyup(evt)
{var key=evt?evt.keyCode:targetWin.event.keyCode;if(key !=13 && key !=255 && key !=40 && key !=38)
{update();return false;}}function keydown(evt)
{var key=evt?evt.keyCode:targetWin.event.keyCode;if(key==13)
{showRow(selectedRow,false);var isNetscape=navigator.appName.toLowerCase().indexOf('netscape') >=0;if(isNetscape)
{if (evt.preventDefault) evt.preventDefault();if (evt.returnValue) evt.returnValue=false;if (evt.stopPropagation) evt.stopPropagation();}return false;}else if(key==40)
{selectRow(selectedRow+1,+1);setMenuVisible(true);}else if(key==38)
{selectRow(selectedRow-1,-1);setMenuVisible(true);}else if(key !=255)
{setMenuVisible(true);return true;}return false;}function selectRow(argRow,argDirection)
{var row=argRow;for(;;)
{if(row >=rowCount||row < 0||menuTableRows[row].style.display=='none')
{return;}if(menuTableRows[row].n)
{break;}row+=argDirection;}if(selectedRow >=0)
{var activeRow=menuTableRows[selectedRow];activeRow.className='gaRegularRow';}selectedRow=row;var activeRow=menuTableRows[selectedRow];activeRow.className='gaSelectedRow';}function search(argSearchId)
{if(currentSearchId !=argSearchId)
{return;}if(updateRequired)
previousQuery=null;var value=textInput.value;if(value=='')
{setMenuVisible(false);return;}if(value==previousQuery)
{return;}var extendPrevious=value.indexOf(previousQuery)==0;previousQuery=value;var keywords=value.split(/[ \t\.=<>\/\\\*_\(\):]+/);var res=new Array();for(var i=0;i<keywords.length;i++)
{res.push(new RegExp(keywords[i],"i"));}var startTime=new Date();var result=searchModules(argSearchId,res,keywords[0].toLowerCase());if(!result)
{return;}displayedRows=result;var endTime=new Date();var queryExecutionTime=endTime.getTime()-startTime.getTime();var startTime=new Date();var proceed=showResults(argSearchId,displayedRows);var endTime=new Date();var resultsRenderingTime=endTime.getTime()-startTime.getTime();if(! proceed)
{return;}selectedRow=-1;setMenuVisible(true);selectRow(0,+1);addStats('s',value+':'+queryExecutionTime+":"+resultsRenderingTime);}function searchModules(argSearchId,argRegList,argPriorityKey)
{var results=new Array();var klen=argRegList.length;for(var m=0;m<allModules.length;m++)
{var module=allModules[m];var moduleResults=new Array();var exactMatchEnd=0;var startsWithEnd=0;results.push(moduleResults);if(!module.data||!module.active) continue;var dx=module.data;if(! dx)
{continue;}var len=dx.length-1;for(var i=0;i<len;i++)
{if(exactMatchEnd+startsWithEnd > rowCount)
{break;}if(currentSearchId !=argSearchId)
{return null;}var item=dx[i];var n=dx[i].n;var matched=false;var re=null;for(var k=0;k<klen;k++)
{re=argRegList[k];if(re.test(n))
{matched=true;break;}}if(!matched)
{continue;}if(klen==1||matchItemParents(item,argRegList,re))
{if(n)
{var ln=n.toLowerCase();if(ln==argPriorityKey)
{moduleResults.splice(exactMatchEnd++,0,item);}else if(ln.indexOf(argPriorityKey)==0)
{moduleResults.splice(exactMatchEnd+startsWithEnd++,0,item);}else
{moduleResults.push(item);}}else
{moduleResults.push(item);}}}}return results;}function matchItemParents(argItem,argRes,argExcludingRe)
{var klen=argRes.length;var failed=false;for(var k=0;k<klen;k++)
{var re=argRes[k];if(re==argExcludingRe)
{continue;}var matched=false;var current=argItem;while(current)
{if(re.test(current.n))
{matched=true;break;}current=current.p;}if(!matched)
{failed=true;break;}}return !failed;}function showResults(argSearchId,argResults)
{var nonemptyModuleCount=0;for(var i=0;i<argResults.length;i++)
{if(argResults[i].length > 0) nonemptyModuleCount++;}var row=0;if(nonemptyModuleCount > 0)
{var fairCount=(rowCount - nonemptyModuleCount*2)/ nonemptyModuleCount;fairCount=Math.floor(fairCount);var leftoverCount=0;for(var i=0;i<argResults.length;i++)
{var r=argResults[i];var module=allModules[i];if(module.active && module.data && r.length > 0 && r.length < fairCount)
{leftoverCount+=fairCount - r.length;}}for(var m=0;m<allModules.length;m++)
{var module=allModules[m];if(!module.data||!module.active) continue;var moduleResults=argResults[m];if(! module.data||moduleResults.length <=0)
{continue;}if(row+1 >=rowCount) break;updateResultRow(row++,module.title,'gaHeaderRow',null);var i=0;for(;i<moduleResults.length;i++)
{if(i >=fairCount)
{if(leftoverCount==0) break;leftoverCount--;}var n=moduleResults[i];updateResultRow(row++,getResourceTitle(n),'gaRegularRow',n);}if(i < moduleResults.length)
{updateResultRow(row++,ROW_SPACER+'...','gaFooterRow',null);}}}if(row==0)
{updateResultRow(row++,'... No Matches Found ...','gaHeaderRow',null);addStats('s','-');}while(row < rowCount)
{var tableRow=menuTableRows[row++];tableRow.style.display='none';}return true;}function updateResultRow(argRowId,argTitle,argStyle,argNode)
{var row=menuTableRows[argRowId];row.firstChild.nodeValue=argTitle;row.className=argStyle;row.n=argNode;row.style.display='';}function getResourceTitle(argItem)
{var result='';var item=argItem;while(item && (item.p||item==argItem))
{name=getResourceLabel(item);result=name+(result==''?'':' \u00A0\u2192\u00A0 '+result);item=item.p;}return ROW_SPACER+result;}function getResourceLabel(argItem)
{var name=argItem.n;var type=argItem.t;if(type=='T') name='<'+name+' ... >';else if(type=='M') name=name+' (...)';else if(type=='C') name='class '+name;else if(type=='P');else if(type=='I') name='interface '+name;else if(type=='O');else if(type=='D') name=/*'\u00A7\u00A7 '+*/name;else if(type=='S') name='{'+name+':... }';else if(type=='V');return name;}function setMenuVisible(argVisible)
{if(queueProcessing) return;var visibleNow=menuTable.style.display=='';if(visibleNow==argVisible)
{return;}if(argVisible)
{showPopupNode(menuTable,textInput,3,0);}else
{menuTable.style.display='none';}if(window.opera)
{siteFrame.style.display=argVisible?'none':'';}}function showPopupNode(showNode,relativeNode,offsetX,offsetY)
{var nodeX=relativeNode.offsetLeft;var nodeY=relativeNode.offsetTop+relativeNode.offsetHeight;var node=relativeNode;while(node.offsetParent)
{node=node.offsetParent;nodeX+=node.offsetLeft;nodeY+=node.offsetTop;}showNode.style.left=(nodeX+offsetX)+'px';showNode.style.top=(nodeY+offsetY)+'px';showNode.style.display='';}function getResourceContext(argNode)
{var context=argNode.p
?getResourceContext(argNode.p)
:'';var c=argNode.c;if(c)
{c=uncompressValue(c,argNode);context=c.indexOf('http://')==0
?c:context+c;}return context;}function getResourceUrl(argNode)
{if(argNode.u||argNode.c)
{var ctx=getResourceContext(argNode);var u=argNode.u;if(! u)
{return ctx;}u=uncompressValue(u,argNode);return u.indexOf('http://')==0
?u
:ctx+u;}else
{return argNode.p?getResourceUrl(argNode.p):null;}}function uncompressValue(argValue,argNode)
{var idx=argValue.indexOf('`');if(idx < 0)
{return argValue;}var name=argNode.n;return argValue.substr(0,idx)+name+argValue.substr(idx+1);}function goToResource()
{showRow(this.idx,false)
}function showRow(argRow,argMenuVisible)
{if(argRow < 0)
{return;}setMenuVisible(argMenuVisible);var row=menuTableRows[argRow];showItem(row.n);}function update()
{if(queueProcessing) {if(textInput.value=='') {return;}updateWhenLoaded=true;var lbl=$('loading')
if(lbl) lbl.style.color='black';return;}++currentSearchId;setTimeout('search('+currentSearchId+')',1);}function showItem(argItem)
{var url=getResourceUrl(argItem);targetWin.location.href=url;}allModules=[new Module(0,gaMod,gaTitle,null,null)];function startModuleProcessing(name)
{setupSearchField(window);queueProcessing=true;}function finishModuleProcessing(name,data)
{gotapi_prepareData(data);allModules[0].data=data;allModules[0].active=true;queueProcessing=false;if(updateWhenLoaded) update();document.getElementById('gaWait').style.display='none';document.getElementById('gaInfo').style.display='';}function addStats(argType,argMsg)
{}function sendStats()
{}startModuleProcessing('module_css.js');var P = 'P';
var C = 'C';
var I = 'I';
var M = 'M';
var O = 'O';
var T = 'T';
var D = 'D';
var S = 'S';
var V = 'V';
var tmp = new Array(
{t:D,n:'CSS',c:'http://www.htmlhelp.com/reference/css/all-properties.html',p:1},
{t:S,n:'font-family',c:'#`',p:1},
{t:V,n:'serif',p:1},
{t:V,n:'sans-serif',p:2},
{t:V,n:'cursive',p:3},
{t:V,n:'fantasy',p:4},
{t:V,n:'monospace',p:5},
{t:S,n:'font-style',c:'#`',p:7},
{t:V,n:'normal',p:1},
{t:V,n:'italic',p:2},
{t:V,n:'oblique',p:3},
{t:S,n:'font-variant',c:'#`',p:11},
{t:V,n:'normal',p:1},
{t:V,n:'small-caps',p:2},
{t:S,n:'font-weight',c:'#`',p:14},
{t:V,n:'normal',p:1},
{t:V,n:'bold',p:2},
{t:V,n:'bolder',p:3},
{t:V,n:'lighter',p:4},
{t:S,n:'font-size',c:'#`',p:19},
{t:V,n:'xx-small',p:1},
{t:V,n:'x-small',p:2},
{t:V,n:'small',p:3},
{t:V,n:'medium',p:4},
{t:V,n:'large',p:5},
{t:V,n:'x-large',p:6},
{t:V,n:'xx-large',p:7},
{t:V,n:'larger',p:8},
{t:V,n:'smaller',p:9},
{t:S,n:'font',u:'#`',p:29},
{t:S,n:'color',u:'#`',p:30},
{t:S,n:'background-color',c:'#`',p:31},
{t:V,n:'transparent',p:1},
{t:S,n:'background-image',c:'#`',p:33},
{t:V,n:'none',p:1},
{t:S,n:'background-repeat',c:'#`',p:35},
{t:V,n:'repeat',p:1},
{t:V,n:'repeat-x',p:2},
{t:V,n:'repeat-y',p:3},
{t:V,n:'no-repeat',p:4},
{t:S,n:'background-attachment',c:'#`',p:40},
{t:V,n:'scroll',p:1},
{t:V,n:'fixed',p:2},
{t:S,n:'background-position',c:'#`',p:43},
{t:V,n:'top',p:1},
{t:V,n:'center',p:2},
{t:V,n:'bottom',p:3},
{t:V,n:'left',p:4},
{t:V,n:'center',p:5},
{t:V,n:'right',p:6},
{t:S,n:'background',u:'#`',p:50},
{t:S,n:'word-spacing',u:'#`',p:51},
{t:S,n:'letter-spacing',u:'#`',p:52},
{t:S,n:'text-decoration',c:'#`',p:53},
{t:V,n:'none',p:1},
{t:V,n:'underline',p:2},
{t:V,n:'overline',p:3},
{t:V,n:'line-through',p:4},
{t:V,n:'blink',p:5},
{t:S,n:'vertical-align',u:'#`',p:59},
{t:S,n:'text-transform',c:'#`',p:60},
{t:V,n:'none',p:1},
{t:V,n:'capitalize',p:2},
{t:V,n:'uppercase',p:3},
{t:V,n:'lower',p:4},
{t:S,n:'text-align',c:'#`',p:65},
{t:V,n:'left',p:1},
{t:V,n:'right',p:2},
{t:V,n:'center',p:3},
{t:V,n:'justify',p:4},
{t:S,n:'text-indent',u:'#`',p:70},
{t:S,n:'line-height',u:'#`',p:71},
{t:S,n:'margin-top',u:'#`',p:72},
{t:S,n:'margin-right',u:'#`',p:73},
{t:S,n:'margin-bottom',u:'#`',p:74},
{t:S,n:'margin-left',u:'#`',p:75},
{t:S,n:'margin',u:'#`',p:76},
{t:S,n:'padding-top',u:'#`',p:77},
{t:S,n:'padding-right',u:'#`',p:78},
{t:S,n:'padding-bottom',u:'#`',p:79},
{t:S,n:'padding-left',u:'#`',p:80},
{t:S,n:'padding',u:'#`',p:81},
{t:S,n:'border-top-width',c:'#`',p:82},
{t:V,n:'thin',p:1},
{t:V,n:'medium',p:2},
{t:V,n:'thick',p:3},
{t:S,n:'border-right-width',c:'#`',p:86},
{t:V,n:'thin',p:1},
{t:V,n:'medium',p:2},
{t:V,n:'thick',p:3},
{t:S,n:'border-bottom-width',c:'#`',p:90},
{t:V,n:'thin',p:1},
{t:V,n:'medium',p:2},
{t:V,n:'thick',p:3},
{t:S,n:'border-left-width',c:'#`',p:94},
{t:V,n:'thin',p:1},
{t:V,n:'medium',p:2},
{t:V,n:'thick',p:3},
{t:S,n:'border-width',c:'#`',p:98},
{t:V,n:'thin',p:1},
{t:V,n:'medium',p:2},
{t:V,n:'thick',p:3},
{t:S,n:'border-color',u:'#`',p:102},
{t:S,n:'border-style',c:'#`',p:103},
{t:V,n:'none',p:1},
{t:V,n:'dotted',p:2},
{t:V,n:'dashed',p:3},
{t:V,n:'solid',p:4},
{t:V,n:'double',p:5},
{t:V,n:'groove',p:6},
{t:V,n:'ridge',p:7},
{t:V,n:'inset',p:8},
{t:V,n:'outset',p:9},
{t:S,n:'border-top',u:'#`',p:113},
{t:S,n:'border-right',u:'#`',p:114},
{t:S,n:'border-bottom',u:'#`',p:115},
{t:S,n:'border-left',u:'#`',p:116},
{t:S,n:'border',u:'#`',p:117},
{t:S,n:'width',u:'#`',p:118},
{t:S,n:'height',u:'#`',p:119},
{t:S,n:'float',c:'#`',p:120},
{t:V,n:'left',p:1},
{t:V,n:'right',p:2},
{t:V,n:'none',p:3},
{t:S,n:'clear',c:'#`',p:124},
{t:V,n:'none',p:1},
{t:V,n:'left',p:2},
{t:V,n:'right',p:3},
{t:V,n:'both',p:4},
{t:S,n:'display',c:'#`',p:129},
{t:V,n:'block',p:1},
{t:V,n:'inline',p:2},
{t:V,n:'list-item',p:3},
{t:V,n:'none',p:4},
{t:S,n:'white-space',c:'#`',p:134},
{t:V,n:'normal',p:1},
{t:V,n:'pre',p:2},
{t:V,n:'nowrap',p:3},
{t:S,n:'list-style-type',c:'#`',p:138},
{t:V,n:'disc',p:1},
{t:V,n:'circle',p:2},
{t:V,n:'square',p:3},
{t:V,n:'decimal',p:4},
{t:V,n:'lower-roman',p:5},
{t:V,n:'upper-roman',p:6},
{t:V,n:'lower-alpha',p:7},
{t:V,n:'upper-alpha',p:8},
{t:V,n:'none',p:9},
{t:S,n:'list-style-image',u:'#`',p:148},
{t:S,n:'list-style-position',c:'#`',p:149},
{t:V,n:'inside',p:1},
{t:V,n:'outside',p:2},
{t:S,n:'list-style',u:'#`',p:152},
{t:S,n:'length',u:'#`',p:153},
{t:S,n:'percentage',u:'#`',p:154},
{t:S,n:'color-units',u:'#`',p:155},
{t:S,n:'urls',u:'#`',p:156},
null);
finishModuleProcessing('module_css.js',tmp);
