var dirList = new Array("images/oldest2","images/oldest/","images/israel","images/jan02d1h","images/feb02","images/feb202","images/March02","images/Easter02","images/Kazakhstan","images/LtSpr02","images/norf02","images/Smr02","images/ltsmr02","images/aut02","images/oct02","images/Wint02","images/Jan03","images/Jan2_03","images/Feb03","images/Feb2_03","images/Feb3_03","images/Apr03","images/Nrf_03","images/ltsp03","images/OmanNorth","images/OmanCent","images/OmanSouth");
var menList = new Array("AlphaTab","AlphaTabA","AlphaTabB","AlphaTabC","AlphaTabD","AlphaTabE","AlphaTabF","AlphaTabG","AlphaTabH","AlphaTabI","AlphaTabJ","AlphaTabK","AlphaTabL","AlphaTabM","AlphaTabN","AlphaTabO","AlphaTabP","AlphaTabQ","AlphaTabR","AlphaTabS","AlphaTabT","AlphaTabU","AlphaTabV","AlphaTabW","AlphaTabX","AlphaTabY","AlphaTabZ","V1Menu","V2Menu","V3Menu","V4Menu","V5Menu","V6Menu","V1Menu1","V1Menu2","V1Menu3","V1Menu4","V1Menu5","V1Menu6","V1Menu7","V1Menu8","V1Menu9","V1MenuA","V2Menu1","V2Menu2","V2Menu3","V2Menu4","V2Menu5","V2Menu6","V2Menu7","V2Menu8","V3Menu2","V3Menu3","V3Menu4","V3Menu5","V3Menu6","V3Menu7","V3Menu8","V4Menu2","V4Menu3","V4Menu4","V4Menu5","V4Menu6","V4Menu7","V4Menu8","V4Menu9","V4MenuA","V4MenuB","V4MenuC","V4MenuD","V4MenuE","V5Menu1","V5Menu2","V5Menu3","V5Menu4","V5Menu5","V5Menu6","V5Menu7","V5Menu8","V5Menu9","V5MenuA","V5MenuB","V6Menu1","V6Menu2","V6Menu3","V6Menu4","V6Menu5","V6Menu6","V6Menu7","V6Menu8","V6Menu9","V6MenuA","V6MenuB");


function DT(full){
	if (document.all){
		string2=window.parent.document.frames.sz.document.body.innerHTML;
		tmp=dirList.length;
		for (i=0;i<tmp;i++){
			regexp=new RegExp(dirList[i],"gi");
			string2=string2.replace(regexp,('http://www.freenetpages.co.uk/hp/PBurrows/'+dirList[i]));
		}
		if (document.domain==''){
			var regexp4 =new RegExp("http://www.freenetpages.co.uk/hp/PBurrows/","gi");
			string2=string2.replace(regexp4,'../webbird10Mb/');
			//window.status='If you are not viewing the original files on a PC press Shift-H now'
		}
		//if (==true) string2=string2+'These image links are to a full-screen. Click on <b>Close</b> or hit <b>ALT-F4</b> to return.';
		string2=string2+'<hr color=\'#071B54\' noshade>';
		//alert(string2);
		window.parent.document.all.fillthis.insertAdjacentHTML('AfterBegin',string2);}
	if (document.all){
		b=window.parent.document.frames.sz.document.body.all.tags('A');
		a=window.parent.document.all.fillthis.all.tags('A');
		c=window.parent.document.all.scrmess;

		for(j=0;j<b.length;j++){
			
			string2=b(j).outerHTML;
			//alert(string2);

			tmp=dirList.length;
			for (i=0;i<tmp;i++){
				regexp=new RegExp(dirList[i],"gi");
				string2=string2.replace(regexp,('http://www.freenetpages.co.uk/hp/PBurrows/'+dirList[i]));
			}
			var regexpf =/freenetpages/i;
			var regexph =/webbird/i;
			
			if (document.domain==''){
				var regexp4 =new RegExp("http://www.freenetpages.co.uk/hp/PBurrows/","gi");
				string2=string2.replace(regexp4,'../webbird10Mb/');
				//window.status='If you are not viewing the original files on a PC press Shift-H now'
			}
		
			var regexp1 =/href="/gi;
			var regexp2 =/htm">/gi;
			
			if ((b(j).id=='n')){
				string2=string2.replace(regexp1,'class="sl" style="cursor: hand" onmouseup="newWind(\'pic\',\'');
				string2=string2.replace(regexp2,'htm\',\'850\',\'700\',\'yes\',\'yes\',1);">')
				string2=string2.replace(/onelli's-/,'onelli\\\'s-');		
			}
			if ((b(j).id=='e')){
				string2=string2.replace(regexp1,'class="sl" style="cursor: hand" onmouseup="newWind(\'nspic\',\'');
				string2=string2.replace(regexp2,'htm\',\'850\',\'700\',\'yes\',\'yes\',0);">')
				string2=string2.replace(/onelli's-/,'onelli\\\'s-');	
			}
			if ((b(j).id=='o')){
				string2=string2.replace(regexp1,'class="sl" style="cursor: hand" onmouseup="newWind(\'');
				string2=string2.replace(regexp2,'htm\',\'FSI.htm\',\'850\',\'700\',\'yes\',\'yes\',1);">')
				string2=string2.replace(/onelli's-/,'onellis-');
		
				FirstAp=string2.search(/'/);
				SecondAp=string2.substr(FirstAp+1).search(/'/);
				string2a=string2.substr(0,FirstAp);
				string2b=string2.substr(FirstAp,(SecondAp+1));
				string2c=string2.substr((FirstAp+SecondAp+1))
				if(regexph.test(string2)){
					string2b=string2b.replace(/...webbird10Mb./g,'WebBird10');
					string2c=string2c.replace(/FSI/g,'../webbird10Mb/FSI');
		    		}
				if(regexpf.test(string2)){
					string2b=string2b.replace(/:..www.freenetpages.co.uk/g,'FreeNet');
					string2c=string2c.replace(/FSI/g,'http://www.freenetpages.co.uk/hp/PBurrows/FSI');
				}
				var slsh= new RegExp("/","g");
				string2b=string2b.replace(slsh,'FSlash');
				string2b=string2b.replace(/-/g,'Minus');
				string2b=string2b.replace(/.htm/g,'Dothtm');
				string2b=string2b.replace(/\(/g,'OpBrak');
				string2b=string2b.replace(/\)/g,'ClosBrak');
				
				string2=string2a+string2b+string2c;
			}

			window.status=window.status.replace(/Loading/,'Loaded');
			//alert(string2);
			a(j).outerHTML=string2;
			c.scrollTop=0;
		}
	}
	if (!document.all && document.getElementById){
		string2=window.parent.getElementById("sz").document.body.innerHTML;
	}
	
	if (!document.all && document.getElementById){
		window.parent.document.getElementById("fillthis").insertAdjacentHTML('AfterBegin',string2);
	}
}

function CT(ident){
		string2=window.parent.document.frames.MnTp.document.body.innerHTML;
		if (window.parent.document.all.item(ident)!=null) window.parent.document.all[ident].outerHTML=string2;
}

function AW(arg,c){
		if ((window.parent.document.all.item(arg)!=null)&&(window.parent.document.all[arg].className=='smd')){
			window.status='Loading Menus '+arg;
			addr='bsm/'+arg+'.htm';
			window.setTimeout("window.parent.document.all.MnTp.src=addr",10);
		}
}
function plMainMenus(menId,docWidth,ofset){
	MMoff=((docWidth-(docWidth%2))/2);
	if ((document.all.item(menId)!=null)){
		if (docWidth>0){
			document.all[menId].style.left=((ofset+MMoff).toString())+'px';
		}else{
			document.all[menId].style.left=((ofset).toString())+'px';
		}
	}
	
}
function plSubMenus(menId,docWidth){
		MMoff=((docWidth-(docWidth%2))/2);
		prent=menId.substr(0,(menId.length-1));
		if ((document.all.item(menId)!=null)){
			if (prent!='AlphaTab'){
				if (window.event.clientX<docWidth+500){
					document.all[menId].style.left=((document.all[prent].offsetLeft+90).toString())+'px';
				}else{
					document.all[menId].style.left=((document.all[prent].offsetLeft-170).toString())+'px';
				}
			}else{
					document.all[menId].style.left=((document.all[prent].offsetLeft+47).toString())+'px';
			}
			sbmnuht=document.all[menId].offsetHeight;
			hf=((sbmnuht-(sbmnuht%2))/2);
			if (50+sbmnuht>window.event.clientY){
				document.all[menId].style.top=50+document.body.scrollTop;
			}else{	
				document.all[menId].style.top=window.event.clientY-hf+document.body.scrollTop;
			}
		}
}
