doc_pub/LBS UML Model/js/displayToc.js
author Billy Gibson <Billy.Gibson@nokia.com>
Thu, 01 Apr 2010 18:00:00 +0100
branchRCL_3
changeset 11 ffd33da0467c
permissions -rw-r--r--
UML Module of the LBS subsystem
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
     1
var tocRoot, tocBranch, tocSel, tocLoading, tocLastID, tableSel, tabHead, data, tocTab, tocInitRoot, tocMemToc, rFStatus, oldData, tableSelTable;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
     2
var initI;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
     3
var icon=new Array();
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
     4
var preloadIcons=new Array(1,10,101,102,103,104,106,107,108,11,113,116,118,16,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,19,20,21,24,25,26,28,29,31,34,4,5,52,53,56,57,6,60,68,69,7,8,82,9,99);
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
     5
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
     6
var browser=browserCheck();
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
     7
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
     8
function browserCheck() {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
     9
	browser=navigator.userAgent.toLowerCase();
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    10
	if (browser.indexOf('msie')!=-1) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    11
		if(browser.substring(browser.indexOf('msie')+5,browser.indexOf('.',browser.indexOf('msie')))>6) return("ie7");
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    12
		if(browser.substring(browser.indexOf('msie')+5,browser.indexOf('.',browser.indexOf('msie')))>5) return("ie6");
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    13
		else return("ie_old");
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    14
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    15
	else if (browser.indexOf('firefox')!=-1) return("ff");
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    16
	else if (browser.indexOf('opera')!=-1) return("op");
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    17
	else if (browser.indexOf('gecko')!=-1) return("ff");
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    18
}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    19
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    20
function changeCSS(theClass,element,value,target) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    21
	var cssRules;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    22
	target = eval(target+'.document.styleSheets'); 
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    23
	if (browser=='ie6'||browser=='ie7') {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    24
		cssRules = 'rules';
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    25
	} else if (browser=='ff'||browser=='op') {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    26
		cssRules = 'cssRules';
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    27
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    28
	for (var S = 0; S < target.length; S++){
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    29
		for (var R = 0; R < target[S][cssRules].length; R++) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    30
			if (target[S][cssRules][R].selectorText == theClass) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    31
				try {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    32
					target[S][cssRules][R].style[element] = value;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    33
				} catch(e) {}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    34
			}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    35
		}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    36
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    37
}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    38
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    39
function initItem(item) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    40
	tableSel=null;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    41
	if (cont.document.getElementById('TableGroup')!=null) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    42
		toggleItem(cont.document.getElementById('TableGroup').getElementsByTagName('li')[0].id.replace("Title",""));
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    43
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    44
}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    45
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    46
function initLoad(src,toc,home) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    47
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    48
	qs=document.location.search.substring(1);
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    49
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    50
	if (qs.substring(0,qs.indexOf('='))=='goto') {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    51
		var gotoPage = qs.substring(qs.indexOf('=')+1).split(':');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    52
		var fExt = home.substring(home.lastIndexOf('.'));
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    53
		var home = "./EARoot/";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    54
		for (var i=0; i<gotoPage.length; i++) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    55
			home += "EA"+gotoPage[i];
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    56
			if (i!=gotoPage.length-1)
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    57
				home += "/";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    58
			else
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    59
				home += fExt;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    60
		}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    61
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    62
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    63
	src=src.document.location+"";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    64
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    65
	src=src.substring(src.lastIndexOf('/')+1);
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    66
	if(src.indexOf('index')==-1&&src!="") return;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    67
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    68
	var content = document.createElement('div');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    69
	content.className = "IndexBody";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    70
	content.innerHTML="	<iframe src='"+toc+"' name='toc' id='tocIFrame' frameborder='0'></iframe>\n";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    71
	content.innerHTML+="	<iframe src='"+home+"' name='cont' id='contentIFrame' frameborder='0'></iframe>";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    72
	content.innerHTML+="	<div id=\"resizeFrames\"></div>";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    73
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    74
	initPreLoad(content);
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    75
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    76
}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    77
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    78
function initPage(src) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    79
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    80
	if (browser=="ie_old") return;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    81
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    82
	if (toc.document==null) toc=top.frames[0];
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    83
	if (cont.document==null) cont=top.frames[1];
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    84
	if (cont.document==null) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    85
		setTimeout("initPage('"+src+"')","1000");
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    86
		return;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    87
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    88
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    89
	var curPage = cont.document.location+"";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    90
	if (curPage.indexOf('EARoot')!=-1) curPage = curPage.substring(curPage.indexOf('EARoot'));
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    91
	else curPage = curPage.substring(curPage.lastIndexOf('/')+1);
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    92
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    93
	for (var j=0; j<cont.document.getElementsByTagName('div').length; j++) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    94
		if (cont.document.getElementsByTagName('div')[j].className=="ObjectDetailsNotes") {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    95
			var tmpStr = cont.document.getElementsByTagName('div')[j].innerHTML;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    96
			//tmpStr=tmpStr.replace(/&nbsp;<WBR>/g," "); //GAS 810 - removed as it adversely affect PreserveWS
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    97
			tmpStr=tmpStr.replace(/&gt;/g,">");
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    98
			tmpStr=tmpStr.replace(/&lt;/g,"<");
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
    99
			cont.document.getElementsByTagName('div')[j].innerHTML=tmpStr;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   100
		}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   101
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   102
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   103
	if (src!=null) initItem();
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   104
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   105
	if(curPage.substr(0,curPage.indexOf('.'))=="blank")
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   106
		return;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   107
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   108
	//Check ToC is loaded
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   109
	if (toc.document.body==null) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   110
		setTimeout("initPage('"+src+"')","1");
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   111
		return;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   112
	} else if (toc.document.body.childNodes.length==1) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   113
		setTimeout("initPage('"+src+"')","1");
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   114
		return;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   115
	} else if (toc.document.body.lastChild.childNodes.length==0) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   116
		setTimeout("initPage('"+src+"')","1");
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   117
		return;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   118
	} else {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   119
		var parTree = curPage.substr(0,curPage.lastIndexOf('/')).substr(curPage.indexOf('/')+1).replace(/EA/g,"").replace(/\//g,".");
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   120
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   121
		if (parTree) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   122
			if (parTree.indexOf('0')!=0) parTree = "0."+parTree;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   123
			parTree=parTree.split('.');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   124
			var tocTmp;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   125
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   126
			for (var j=0; parTree.length>j; j++) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   127
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   128
				if (j>=2) tocTmp += "."+parTree[j];
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   129
				else tocTmp = parTree[j];
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   130
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   131
				if (toc.document.getElementById('toc'+tocTmp)==null) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   132
					setTimeout("initPage('"+src+"')","1");
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   133
					return;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   134
				}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   135
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   136
				var tmpCurToc = toc.document.getElementById('toc'+tocTmp).parentNode.childNodes;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   137
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   138
				toc.tocMemToc = parTree.length-j;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   139
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   140
				if (tmpCurToc.length>3&&tmpCurToc[tmpCurToc.length-4].src.substring(tmpCurToc[tmpCurToc.length-4].src.lastIndexOf('images')).indexOf('plus')!=-1) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   141
					toc.tocClick(tmpCurToc[tmpCurToc.length-4]);
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   142
				}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   143
			}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   144
		}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   145
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   146
		if (toc.document.getElementById(curPage)==null) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   147
			setTimeout("initPage('"+src+"')","1");
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   148
			return;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   149
		}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   150
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   151
		if (toc.document.getElementById(curPage).parentNode.parentNode.parentNode.parentNode&&toc.document.getElementById(curPage).parentNode.parentNode.parentNode.parentNode.childNodes.length>3) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   152
			if (toc.document.getElementById(curPage).parentNode.parentNode.parentNode.parentNode.childNodes[toc.document.getElementById(curPage).parentNode.parentNode.parentNode.parentNode.childNodes.length-4].src.indexOf('plus')!=-1) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   153
				toc.tocClick(toc.document.getElementById(curPage).parentNode.parentNode.parentNode.parentNode.childNodes[toc.document.getElementById(curPage).parentNode.parentNode.parentNode.parentNode.childNodes.length-4]);
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   154
			}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   155
		}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   156
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   157
		if (toc.document.getElementById(curPage).parentNode.parentNode.childNodes[toc.document.getElementById(curPage).parentNode.parentNode.childNodes.length-4].src.indexOf('plus')!=-1) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   158
				toc.tocClick(toc.document.getElementById(curPage).parentNode.parentNode.childNodes[toc.document.getElementById(curPage).parentNode.parentNode.childNodes.length-4]);
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   159
		}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   160
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   161
		if (tocSel) tocSel.parentNode.childNodes[tocSel.parentNode.childNodes.length-2].style.backgroundColor = "";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   162
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   163
		//Highlight selected ToC item and store in memory
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   164
		if (toc.document.getElementById(curPage)) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   165
			tocSel = toc.document.getElementById(curPage).parentNode;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   166
			tocSel.parentNode.childNodes[tocSel.parentNode.childNodes.length-2].style.backgroundColor = "#B2B4BF";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   167
			if (tocSel.offsetTop<toc.document.body.scrollTop||tocSel.offsetTop>toc.document.body.offsetHeight+toc.document.body.scrollTop) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   168
				toc.scrollTo(0, tocSel.offsetTop-20);
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   169
			}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   170
		}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   171
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   172
}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   173
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   174
function initPreLoad(content) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   175
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   176
	var preload=document.getElementById('IndexHeader').parentNode.insertBefore(document.createElement('div'), document.getElementById('IndexHeader').nextSibling);
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   177
	preload.id="Preload";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   178
	preload.appendChild(document.createElement('p'));
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   179
	preload.firstChild.appendChild(document.createTextNode("Loading..."));
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   180
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   181
	if (browser=="ie_old") return;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   182
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   183
	if (browser=="ie6"||browser=="ie7")
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   184
		changeCSS('#Preload','height',top.document.body.clientHeight-67+'px','this');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   185
	else
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   186
		changeCSS('#Preload','height',top.innerHeight-67+'px','this');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   187
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   188
	for (var i=0; i<preloadIcons.length; i++) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   189
		icon[preloadIcons[i]]=new Image();
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   190
		icon[preloadIcons[i]].src="images/"+preloadIcons[i]+".png";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   191
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   192
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   193
	var preloader = document.body.appendChild(document.createElement('div'));
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   194
	preloader.style.display="none";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   195
	preloader.id="preloader";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   196
	preloader.appendChild(content);
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   197
	
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   198
	resizeFrames('init');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   199
	
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   200
}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   201
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   202
function initPreLoaded() {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   203
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   204
	if (browser=="op")
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   205
		setCSS();
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   206
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   207
	var preloader = document.getElementById('preloader');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   208
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   209
	document.getElementById('Preload').parentNode.replaceChild(preloader.firstChild, document.getElementById('Preload'));
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   210
	preloader.parentNode.removeChild(preloader);
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   211
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   212
	if (browser!="op")
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   213
		setTimeout('setCSS();','1000');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   214
	
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   215
}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   216
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   217
function resizeFrames(str) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   218
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   219
	var resizeFrames = document.getElementById('resizeFrames');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   220
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   221
	if (str=="init") {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   222
		resizeFrames.onmousedown = resizeFramesOn;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   223
		resizeFrames.onmouseup = resizeFramesOff;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   224
		resizeFrames.onmouseout = resizeFramesOff;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   225
		resizeFrames.onmousemove = resizeFramesMove;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   226
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   227
		
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   228
}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   229
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   230
function resizeFramesOn(e) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   231
	rFStatus=1;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   232
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   233
	var resizeFrames = document.getElementById('resizeFrames');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   234
	tmpRF = resizeFrames.parentNode.appendChild(document.createElement('div'));
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   235
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   236
	tmpRF.style.left=(document.getElementById('tocIFrame').clientWidth+1)+"px";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   237
	tmpRF.id="tmpRF";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   238
	resizeFrames.style.width="100%"
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   239
	resizeFrames.style.left="0px";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   240
}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   241
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   242
function resizeFramesOff(e) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   243
	rFStatus=0;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   244
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   245
	var resizeFrames = document.getElementById('resizeFrames');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   246
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   247
	if (document.getElementById('tmpRF')!=null)
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   248
		document.getElementById('tmpRF').parentNode.removeChild(document.getElementById('tmpRF'));
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   249
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   250
	resizeFrames.style.width="5px";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   251
	resizeFrames.style.left=(document.getElementById('tocIFrame').clientWidth+1)+"px";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   252
}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   253
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   254
function resizeFramesMove(e) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   255
	if (rFStatus!=0) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   256
		if (rFStatus==2)
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   257
			var posX = e+2;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   258
		else if (browser=="ff")
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   259
			var posX = e.pageX;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   260
		else
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   261
			var posX = event.x;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   262
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   263
		if (posX<=150)
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   264
			posX=150;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   265
		else if (posX>=top.document.body.clientWidth/2)
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   266
			posX=top.document.body.clientWidth/2;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   267
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   268
		document.getElementById('contentIFrame').style.left=(posX+3)+"px";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   269
		document.getElementById('contentIFrame').style.width=(top.document.body.clientWidth-posX-4)+"px";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   270
		if (document.getElementById('tmpRF')!=null)
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   271
			document.getElementById('tmpRF').style.left=(posX-2)+"px";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   272
		if (browser=="ie6")
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   273
			document.getElementById('tocIFrame').style.width=(posX-4)+"px";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   274
		else
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   275
			document.getElementById('tocIFrame').style.width=(posX-3)+"px";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   276
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   277
		if(tableSelTable!=null) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   278
			if(tableSelTable.childNodes.length>1&&document.getElementById('tmpRF')!=null) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   279
				tableSelTable.style.width=(document.body.clientWidth-(document.getElementById('tmpRF').offsetLeft+6)-20)+"px";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   280
				tableSelTable.childNodes[0].style.width=(tableSelTable.offsetWidth-19)+"px";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   281
				tableSelTable.childNodes[1].style.width=(tableSelTable.offsetWidth-19)+"px";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   282
			}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   283
		}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   284
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   285
}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   286
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   287
function resizePage() {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   288
	if(rFStatus==1) return;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   289
	rFStatus=2;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   290
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   291
	if(document.getElementById('resizeFrames')==null)
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   292
		return;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   293
	
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   294
	if (browser=="ie6") {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   295
		pHeight=top.document.body.clientHeight;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   296
	} else {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   297
		pHeight=top.document.documentElement.clientHeight;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   298
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   299
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   300
	resizeFramesMove(document.getElementById('resizeFrames').offsetLeft);
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   301
	document.getElementById('contentIFrame').style.height=pHeight-74+'px';
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   302
	if (browser=="ie7") {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   303
		document.getElementById('resizeFrames').style.height=pHeight-72+'px';
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   304
		changeCSS('#tmpRF','height',pHeight-72+'px','this');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   305
	} else {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   306
		document.getElementById('resizeFrames').style.height=pHeight-70+'px';
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   307
		changeCSS('#tmpRF','height',pHeight-70+'px','this');		
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   308
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   309
	document.getElementById('tocIFrame').style.height=pHeight-74+'px';
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   310
	rFStatus=0;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   311
}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   312
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   313
function setCSS() {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   314
	if (browser=="ie6") {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   315
		pHeight=top.document.body.clientHeight;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   316
	} else {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   317
		pHeight=top.document.documentElement.clientHeight;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   318
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   319
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   320
	if (browser=="ie6"||browser=="ie7") {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   321
		changeCSS('.IndexBody','width','','this');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   322
		changeCSS('.IndexBody','top','0px','this');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   323
		changeCSS('.IndexBody','position','relative','this');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   324
		changeCSS('#contentIFrame','height',pHeight-74+'px','this');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   325
		changeCSS('#contentIFrame','left','257px','this');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   326
		changeCSS('#resizeFrames','background','#000000','this');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   327
		changeCSS('#resizeFrames','filter','progid:DXImageTransform.Microsoft.Alpha(opacity=0)','this');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   328
		changeCSS('#resizeFrames','height',pHeight-72+'px','this');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   329
		changeCSS('#tmpRF','border','0px','this');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   330
		changeCSS('#tmpRF','height',pHeight-70+'px','this');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   331
		changeCSS('#tocIFrame','height',pHeight-74+'px','this');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   332
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   333
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   334
	if (browser=="op"||browser=="ie6"||browser=="ie7")
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   335
		changeCSS('#contentIFrame','width',top.document.body.clientWidth-258+'px','this');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   336
}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   337
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   338
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   339
function tocBuild(data) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   340
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   341
	var tocType = new Array();
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   342
	var tocTypes = new Array();
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   343
	var tocErrs = new Array();
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   344
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   345
	for (var i=0; i<tocTab.length; i++) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   346
		if (!tocTab[i][8]) tocTab[i][8] = 'misc';
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   347
		if (tocTab[i][8].toLowerCase().indexOf('diagram')!=-1 && (tocTab[i][6]=="" || tocTab[i][6]=="0")) tocTab[i][8] = "0Diagram";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   348
		if (tocTab[i][8].toLowerCase().indexOf('package')!=-1) tocTab[i][8] = "1Package";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   349
		if (!tocType[tocTab[i][8]]) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   350
			tocType[tocTab[i][8]] = new Array();
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   351
			tocTypes[tocTypes.length]=tocTab[i][8];
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   352
		}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   353
		tocType[tocTab[i][8]][tocType[tocTab[i][8]].length] = i;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   354
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   355
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   356
	tocTypes.sort();
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   357
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   358
	for (var i=0; i<tocTypes.length; i++) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   359
		for (var j=0; j<tocType[tocTypes[i]].length; j++) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   360
			var build = tocBuildItem(tocType[tocTypes[i]][j]);
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   361
			if (build!=true) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   362
				build = build.substring(1);
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   363
				tocErrs[tocErrs.length]=build;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   364
			}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   365
		}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   366
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   367
	
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   368
	var errRuns=0;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   369
	var errTotal=tocErrs.length;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   370
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   371
	while(tocErrs.length!=0) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   372
		if (errNums==tocErrs.length) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   373
			errRuns++;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   374
			if (errRuns>errTotal) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   375
				break;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   376
			}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   377
		}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   378
		var errNums=tocErrs.length;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   379
		var tmp=tocBuildItem(tocErrs.shift());
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   380
		if(tmp!=true) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   381
			tocErrs[tocErrs.length]=tmp.substring(1);
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   382
		}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   383
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   384
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   385
	while(tocErrs.length!=0) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   386
		tocTab[tocErrs[0]][6]="0";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   387
		tocBuildItem(tocErrs.shift());
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   388
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   389
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   390
	if (tocLastID!=0) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   391
		var tocLastSrc = document.getElementById("toc"+tocLastID).parentNode.childNodes[document.getElementById("toc"+tocLastID).parentNode.childNodes.length-4];
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   392
		tocLastSrc.src = tocLastSrc.src.substring(tocLastSrc.src.lastIndexOf('images')).replace("01","02");
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   393
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   394
}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   395
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   396
function tocBuildItem(i) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   397
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   398
	var childItem = false;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   399
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   400
	if (tocTab[i][0].indexOf(':')!=-1) tocBranch = document.getElementById("toc"+tocTab[i][0].substring(0, tocTab[i][0].lastIndexOf(':')));
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   401
	else if (tocTab[i][0].indexOf('.')!=-1) tocBranch = document.getElementById("toc"+tocTab[i][0].substring(0, tocTab[i][0].lastIndexOf('.')));
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   402
	else if (tocTab[i][0]!="0") tocBranch = document.getElementById("toc0");
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   403
	else if (tocTab[i][1]==3) tocBranch = document.getElementById("System").parentNode.lastChild;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   404
	else tocBranch = tocRoot;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   405
	
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   406
	//Check if item is child
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   407
	if (tocTab[i][5]&&tocTab[i][6]&&tocTab[i][6]!="0") {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   408
		if (document.getElementById(tocTab[i][6])==null) return 'i'+i;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   409
		tocBranch = document.getElementById(tocTab[i][6]).parentNode.lastChild;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   410
		childItem = true;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   411
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   412
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   413
	tocBranch = tocBranch.appendChild(document.createElement('li'));
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   414
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   415
	if (tocTab[i][0]!=0||tocTab[i][1]==3) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   416
		tocImage = tocBranch.appendChild(document.createElement('img'));
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   417
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   418
		if (tocTab[i][0].indexOf('.')==-1&&(tocTab[i][0].indexOf(':')==-1||tocTab[i][0].indexOf('0')==0)) tocImage.src = "images/join01.gif";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   419
		else if (tocTab[i][0].indexOf('.')!=-1||tocTab[i][0].indexOf(':')!=-1) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   420
			var tocTmp=tocTab[i][0].replace(':','.');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   421
			for (var m=0; tocTmp.split('.').length>m+1; m++) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   422
				if (document.getElementById("toc"+tocTmp.substring(0,tocTmp.lastIndexOf('.'))).parentNode.childNodes[m].src.substring(document.getElementById("toc"+tocTmp.substring(0,tocTmp.lastIndexOf('.'))).parentNode.childNodes[m].src.lastIndexOf('images')).indexOf('02')!=-1||document.getElementById("toc"+tocTmp.substring(0,tocTmp.lastIndexOf('.'))).parentNode.childNodes[m].src.substring(document.getElementById("toc"+tocTmp.substring(0,tocTmp.lastIndexOf('.'))).parentNode.childNodes[m].src.lastIndexOf('images')).indexOf('04')!=-1) tocImage.src = "images/join04.gif";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   423
				else tocImage.src = "images/join03.gif";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   424
				tocImage = tocBranch.appendChild(document.createElement('img'));
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   425
			}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   426
			tocImage.src = "images/join01.gif";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   427
		}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   428
		tocImage.onclick = function() { tocClick(this); }
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   429
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   430
		if (tocTab[i][1]==3) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   431
			tocImage.src=tocImage.src.substring(tocImage.src.lastIndexOf('images')).replace("01","02");
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   432
			if (tocImage.parentNode.parentNode.childNodes.length>1) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   433
				tocTmp = tocImage.parentNode.previousSibling.childNodes[tocImage.parentNode.previousSibling.childNodes.length-4];
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   434
				tocTmp.src=tocTmp.src.substring(tocTmp.src.lastIndexOf('images')).replace("02","01");
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   435
			}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   436
		}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   437
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   438
		//Check if item has children data
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   439
		if (tocTab[i][1]&&tocTab[i][1]!=3) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   440
			tocImage.id=tocTab[i][7];
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   441
			tocImage.alt=tocTab[i][7];
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   442
		} else if (childItem==true) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   443
			while (tocImage.parentNode.childNodes.length<document.getElementById(tocTab[i][6]).parentNode.childNodes.length-2) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   444
				tocImage.parentNode.insertBefore(document.createElement('img'), tocImage).src="images/join03.gif";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   445
			}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   446
			tocImage.src=tocImage.src.substring(tocImage.src.lastIndexOf("images")).replace('01','02');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   447
			if (document.getElementById(tocTab[i][6]).parentNode.lastChild.childNodes.length>1) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   448
				tocTmpSrc=document.getElementById(tocTab[i][6]).parentNode.lastChild.lastChild.previousSibling.childNodes[document.getElementById(tocTab[i][6]).parentNode.lastChild.lastChild.previousSibling.childNodes.length-4];
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   449
				tocTmpSrc.src=tocTmpSrc.src.substring(tocTmpSrc.src.lastIndexOf('images')).replace('02','01');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   450
			}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   451
			tocImage = document.getElementById(tocTab[i][6]).parentNode.childNodes[document.getElementById(tocTab[i][6]).parentNode.childNodes.length-4];
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   452
			tocImage.parentNode.lastChild.style.display = "none";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   453
		}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   454
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   455
		if ((tocTab[i][1]&&tocTab[i][1]!=3)||childItem==true) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   456
			tocImage.id=tocImage.id.substr(1,tocImage.id.length-2);
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   457
			tocImage.src=tocImage.src.substring(tocImage.src.lastIndexOf('images')).replace('join','plus');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   458
		}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   459
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   460
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   461
	//Set Icon
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   462
	if (tocTab[i][3]) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   463
		tocImg = tocBranch.appendChild(document.createElement('a'));
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   464
		tocImg.href = tocTab[i][3];
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   465
		tocImg.target = top.frames[1].name;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   466
	} else tocImg = tocBranch;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   467
	tocTab[i][4]=tocTab[i][4].substring(0,tocTab[i][4].indexOf('.'))
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   468
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   469
	tocImg = tocImg.appendChild(document.createElement('img'));
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   470
	if(top.icon[tocTab[i][4]])
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   471
		tocImg.src = top.icon[tocTab[i][4]].src;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   472
	else
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   473
		tocImg.src = "images/"+tocTab[i][4]+".png";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   474
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   475
	if (tocTab[i][3])
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   476
		tocImg.id=tocTab[i][3];
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   477
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   478
	//Set Text/Link
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   479
	if (tocTab[i][5]&&tocTab[i][8]!="0Diagram") tocBranch.lastChild.id=tocTab[i][5];
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   480
	else tocBranch.lastChild.id="0";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   481
	tocBranch.lastChild.style.marginRight="4px";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   482
	if (tocTab[i][3]) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   483
		tocText = tocBranch.appendChild(document.createElement('a'));
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   484
		tocText.href = tocTab[i][3];
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   485
		tocText.target = top.frames[1].name;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   486
		if (tocTab[i][9])
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   487
			tocText.id = tocTab[i][9];
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   488
		else if (tocTab[i][7])
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   489
			tocText.id = tocTab[i][7];
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   490
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   491
	else tocText = tocBranch;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   492
	var j=0;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   493
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   494
	//Replace values
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   495
	while (tocTab[i][2].indexOf('&quot;')!=-1) tocTab[i][2] = tocTab[i][2].replace('&quot;','\"');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   496
	while (tocTab[i][2].indexOf('<br />')!=-1) tocTab[i][2] = tocTab[i][2].replace('<br />','\n');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   497
	while (tocTab[i][2].indexOf('&#39;')!=-1) tocTab[i][2] = tocTab[i][2].replace('&#39;','\'');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   498
	if (tocTab[i][2]=="") tocTab[i][2]="               ";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   499
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   500
	tocText.appendChild(document.createTextNode(tocTab[i][2]));
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   501
	tocBranch.appendChild(document.createElement('ul')).id = "toc"+tocTab[i][0];
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   502
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   503
	tocLastID = tocTab[i][0];
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   504
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   505
	return true;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   506
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   507
}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   508
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   509
function tocClick(tocSrc) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   510
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   511
	if (tocSrc.src.substring(tocSrc.src.lastIndexOf('images')).indexOf('minus')!=-1) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   512
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   513
		tocSrc.parentNode.childNodes[tocSrc.parentNode.childNodes.length-1].style.display = "none";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   514
		tocSrc.src=tocSrc.src.substring(tocSrc.src.lastIndexOf('images')).replace('minus','plus');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   515
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   516
	} else if (tocSrc.src.substring(tocSrc.src.lastIndexOf('images')).indexOf('plus')!=-1) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   517
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   518
		tocSrc.parentNode.childNodes[tocSrc.parentNode.childNodes.length-1].style.display = "block";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   519
		tocSrc.src=tocSrc.src.substring(tocSrc.src.lastIndexOf('images')).replace('plus','minus');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   520
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   521
		//Check if children data built
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   522
		if (tocSrc.parentNode.childNodes[tocSrc.parentNode.childNodes.length-1].childNodes.length==0) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   523
			tocLoadData(tocSrc.id+".xml");
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   524
		}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   525
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   526
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   527
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   528
}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   529
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   530
function tocInit() {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   531
	if (browser=="ie_old") {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   532
				top.document.getElementById('Preload').childNodes[0].innerHTML="<strong>It appears you are using an outdated version of Internet Explorer, please download a later version from <a href=\"http://www.microsoft.com/windows/ie/default.mspx\">Microsoft</a></strong>";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   533
				return;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   534
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   535
	tocLoading = document.body.appendChild(document.createElement('div'));
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   536
	tocRoot = document.body.appendChild(document.createElement('ul'));
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   537
	tocRoot.id = "tocRoot";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   538
	tocInitRoot = 1;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   539
	tocLoadData('root.xml');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   540
}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   541
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   542
function tocLoadData(src) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   543
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   544
	var tmp=document.location+"";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   545
	tmp=tmp.substring(0,tmp.indexOf('toc.'));
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   546
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   547
	src = tmp+"js/data/"+src;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   548
	tocTab = new Array();
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   549
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   550
	try {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   551
		data = new XMLHttpRequest();
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   552
		data.onreadystatechange = tocLoadDataProcess;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   553
		data.open("GET", src, true);
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   554
		data.send(null);
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   555
	} catch(e) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   556
		if (browser=="ie6"||browser=="ie7") {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   557
			data = new ActiveXObject("Microsoft.XMLHTTP");
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   558
			if (data) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   559
				data.onreadystatechange = tocLoadDataProcess;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   560
				data.open("GET", src, true);
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   561
				data.send();
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   562
			}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   563
		} else {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   564
			alert(e);
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   565
		}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   566
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   567
}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   568
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   569
function tocLoadDataProcess() {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   570
	if (data.readyState == 4) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   571
		if (oldData==data)
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   572
			return;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   573
		oldData=data;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   574
		try {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   575
			eval(data.responseText);
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   576
			tocBuild();
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   577
			tocInitRoot++;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   578
			if (tocInitRoot==2) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   579
				tocLoadData(tocTab[0][7].substring(1,tocTab[0][7].length-1)+".xml");
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   580
			} else if (tocInitRoot==3&&top.document.getElementById('Preload')!=null) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   581
				tocInitRoot=0;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   582
				top.initPreLoaded();
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   583
			}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   584
		} catch(e) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   585
			if(top.document.getElementById('Preload')!=null)
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   586
				top.document.getElementById('Preload').childNodes[0].innerHTML="<strong>An error occured while loading data files, please confirm that all files have been generated and are intact.</strong>";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   587
			return;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   588
		}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   589
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   590
}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   591
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   592
function toggleData(src) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   593
	var dataRoot = cont.document.getElementById(src).parentNode.parentNode.parentNode;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   594
	if (cont.document.getElementById(src).src.substring(cont.document.getElementById(src).src.lastIndexOf('images')).indexOf('plus')!=-1) cont.document.getElementById(src).src=cont.document.getElementById(src).src.substring(0,cont.document.getElementById(src).src.lastIndexOf('images'))+cont.document.getElementById(src).src.substring(cont.document.getElementById(src).src.lastIndexOf('images')).replace('plus','minus');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   595
	else cont.document.getElementById(src).src=cont.document.getElementById(src).src.substring(0,cont.document.getElementById(src).src.lastIndexOf('images'))+cont.document.getElementById(src).src.substring(cont.document.getElementById(src).src.lastIndexOf('images')).replace('minus','plus');
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   596
	for (var i=0; i<dataRoot.getElementsByTagName('tr').length; i++) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   597
		if (dataRoot.getElementsByTagName('tr')[i].id.indexOf(src)!=-1&&cont.document.getElementById(src).src.substring(cont.document.getElementById(src).src.lastIndexOf('images')).indexOf('minus')!=-1&&dataRoot.getElementsByTagName('tr')[i].getElementsByTagName('td')[1].firstChild!=null) dataRoot.getElementsByTagName('tr')[i].style.display="";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   598
		else if (dataRoot.getElementsByTagName('tr')[i].id.indexOf(src)!=-1) dataRoot.getElementsByTagName('tr')[i].style.display="none";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   599
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   600
	if (cont.document.getElementById('TableGroup')!=null) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   601
		toggleItem(tableSel,2);
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   602
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   603
}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   604
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   605
function toggleItem(item,type) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   606
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   607
	if (tableSel!=null) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   608
		cont.document.getElementById(tableSel+"Title").style.background="#FFFFFF";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   609
		cont.document.getElementById(tableSel+"Title").style.color="#000000";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   610
		cont.document.getElementById(tableSel+"Table").style.display="none";	
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   611
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   612
	tableSel=item;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   613
	tableSelTable = cont.document.getElementById(item+"Table");
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   614
	tableSelTitle = cont.document.getElementById(item+"Title");
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   615
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   616
	tableSelTitle.style.background="#DDDDDD";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   617
	tableSelTitle.style.color="#666666";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   618
	tableSelTable.style.display="block";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   619
	
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   620
	if (browser=="ff"||browser=="op"||browser=="ie7") {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   621
		var contWHeight = document.documentElement.clientHeight-78;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   622
		var contWWidth = cont.document.documentElement.clientWidth;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   623
	} else {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   624
		var contWHeight = document.body.clientHeight-74;
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   625
		var contWWidth = document.body.clientWidth-(top.document.getElementById('resizeFrames').offsetLeft+6);
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   626
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   627
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   628
    if (tableSelTable.id=="LinkedDocumentTable")
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   629
		tableSelTable.style.overflow="scroll";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   630
			
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   631
	if (cont.document.body.offsetHeight-contWHeight>0) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   632
		if (tableSelTable.id!="LinkedDocumentTable")
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   633
			tableSelTable.style.overflow="scroll";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   634
		if (browser=="ff"||browser=="op") {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   635
			tableSelTable.style.height=tableSelTable.offsetHeight-(cont.document.body.offsetHeight-cont.innerHeight)-12+"px";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   636
		} else {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   637
		
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   638
			tableSelTable.style.height=tableSelTable.offsetHeight-(cont.document.body.offsetHeight-contWHeight)-3+"px";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   639
			if (cont.document.body.offsetWidth>contWWidth||type==null) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   640
				tableSelTable.style.width=contWWidth-20+"px";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   641
				if(tableSelTable.getElementsByTagName('table').length!=0)
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   642
					tableSelTable.getElementsByTagName('table')[0].style.width=tableSelTable.getElementsByTagName('table')[0].offsetWidth-18+"px";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   643
			}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   644
		}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   645
		if(tableSelTable.getElementsByTagName('table').length!=0) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   646
			tabHead = tableSelTable.appendChild(tableSelTable.getElementsByTagName('table')[0].cloneNode(true));
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   647
			tabHead.style.position="absolute";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   648
			if (browser=="ff"||browser=="op")
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   649
				tabHead.style.width=tableSelTable.offsetWidth+"px";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   650
			tabHead.style.top=tableSelTable.offsetTop+1+"px";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   651
			for (var i=0; i<tabHead.getElementsByTagName('tr').length; i++) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   652
				if (i!=0) tabHead.getElementsByTagName('tr')[i].style.display="none";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   653
			}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   654
		}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   655
	} else if (cont.document.getElementById('TableGroup').offsetHeight+cont.document.getElementById('TableGroup').offsetTop<(contWHeight-6)&&tableSelTable.style.overflow=="scroll") {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   656
		if (browser=="ff"||browser=="op") {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   657
			tableSelTable.style.height=tableSelTable.offsetHeight-(cont.document.body.offsetHeight-cont.innerHeight)-12+"px";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   658
		} else {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   659
			tableSelTable.style.height=tableSelTable.offsetHeight+((contWHeight-8)-(cont.document.getElementById('TableGroup').offsetHeight+cont.document.getElementById('TableGroup').offsetTop))+"px";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   660
		}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   661
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   662
	if(tableSelTable.childNodes.length>1) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   663
		tableSelTable.style.width=(document.body.clientWidth-(top.document.getElementById('resizeFrames').offsetLeft+6)-20)+"px";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   664
		tableSelTable.childNodes[0].style.width=(tableSelTable.offsetWidth-19)+"px";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   665
		tableSelTable.childNodes[1].style.width=(tableSelTable.offsetWidth-19)+"px";
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   666
	}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   667
}
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   668
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   669
function guidLink(guid, qs) {
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   670
	if (toc.document.getElementById(guid))
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   671
		cont.location = toc.document.getElementById(guid);
ffd33da0467c UML Module of the LBS subsystem
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff changeset
   672
}