function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} 
	else {
		window.onload = function() {
			oldonload();
			func();
		}
	}
}


var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
if(win.window.focus){win.window.focus();}
}

/**********************************************************************************************
Dreamweaver : find object
**********************************************************************************************/
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

/**********************************************************************************************
Netscape : check if window has been resized
**********************************************************************************************/
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

/**********************************************************************************************
Cache images
**********************************************************************************************/
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


/**********************************************************************************************
Dreamweaver : swap image
**********************************************************************************************/
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


/**********************************************************************************************
Dreamweaver : swap image restore
**********************************************************************************************/
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function P7_autoLayers() { //v1.1 PVII
 var g,b,k,f,args=P7_autoLayers.arguments;
 if(!document.p7setc) {p7c=new Array();document.p7setc=true;}
 for(k=0; k<p7c.length; k++) {
  if((g=MM_findObj(p7c[k]))!=null) {
   b=(document.layers)?g:g.style;b.visibility="hidden";}}
 for(k=0; k<args.length; k++) {
  if((g=MM_findObj(args[k])) != null) {
   b=(document.layers)?g:g.style;b.visibility="visible";f=false;
   for(j=0;j<p7c.length;j++) {
    if(args[k]==p7c[j]) {f=true;}}
  if(!f) {p7c[p7c.length++]=args[k];}}}
}

/**********************************************************************************************
Project seven : snap Layer
**********************************************************************************************/
function P7_Snap() { //v2.5 by PVII
  var x,y,ox,oy,p,tx,a,b,k,d,da,e,el,args=P7_Snap.arguments;
  var bx,byy;a=parseInt(a);
  for (k=0; k<(args.length-3); k+=4)
   if ((g=MM_findObj(args[k]))!=null) {
    el=eval(MM_findObj(args[k+1]));
    a=parseInt(args[k+2]);b=parseInt(args[k+3]);
    x=0;y=0;ox=0;oy=0;p="";tx=1;da="document.all['"+args[k]+"']";
    if(document.getElementById) {
     d="document.getElementsByName('"+args[k]+"')[0]";
     if(!eval(d)) {d="document.getElementById('"+args[k]+"')";if(!eval(d)) {d=da;}}
    }else if(document.all) {d=da;} 
    if (document.all || document.getElementById) {
     while (tx==1) {p+=".offsetParent";
      if(eval(d+p)) {x+=parseInt(eval(d+p+".offsetLeft"));y+=parseInt(eval(d+p+".offsetTop"));
      }else{tx=0;}}
     ox=parseInt(g.offsetLeft);oy=parseInt(g.offsetTop);var tw=x+ox+y+oy;
     if(tw==0 || (navigator.appVersion.indexOf("MSIE 4")>-1 && navigator.appVersion.indexOf("Mac")>-1)) {
      ox=0;oy=0;if(g.style.left){x=parseInt(g.style.left);y=parseInt(g.style.top);
      }else{var w1=parseInt(el.style.width);bx=(a<0)?-5-w1:-10;
      a=(Math.abs(a)<1000)?0:a;b=(Math.abs(b)<1000)?0:b;
      x=document.body.scrollLeft + event.clientX + bx;
      y=document.body.scrollTop + event.clientY;}}
   }else if (document.layers) {x=g.x;y=g.y;
    var q0=document.layers,dd="";
    for(var s=0;s<q0.length;s++) {dd='document.'+q0[s].name;
     if(eval(dd+'.document.'+args[k])) {
      x+=eval(dd+'.left');y+=eval(dd+'.top');break;}}}
   if(el) {e=(document.layers)?el:el.style;
   var xx=parseInt(x+ox+a),yy=parseInt(y+oy+b);
   if(navigator.appName=="Netscape" && parseInt(navigator.appVersion)>4){xx+="px";yy+="px";}
   if(navigator.appVersion.indexOf("MSIE 5")>-1 && navigator.appVersion.indexOf("Mac")>-1){
    xx+=parseInt(document.body.leftMargin);yy+=parseInt(document.body.topMargin);
    xx+="px";yy+="px";}
   e.left=xx;e.top=yy;}}
}

var formRtnVal=true;


function submitForm(form)
{
//alert(location+'\n'+appBrowse) 
if(isProg || appBrowse)return false;
var ErrMsg="";
var errs=false;
validTxt="";
for(i=0 ; i<form.elements.length-1 ; i++)
	{
	thisElement=form.elements[i];


if(thisElement.type=="text" || thisElement.type=="textarea")	
	{
	if(escape(thisElement.value)=='%20' || escape(thisElement.value)=='%A0')thisElement.value='';
	}

if(typeof(form.reminder)!='undefined')
	{
	if(form.reminder.checked!=true){
		if(thisElement.name.indexOf("_TR_")!=-1)validTxt+="'"+thisElement.name+"','','R',";
		}
	}
	else
		{
		if(thisElement.name.indexOf("_TR_")!=-1)validTxt+="'"+thisElement.name+"','','R',";
		}
	if(thisElement.name.indexOf("_NR_")!=-1)validTxt+="'"+thisElement.name+"','','RisNum',";
	if(thisElement.name.indexOf("_NU_")!=-1)validTxt+="'"+thisElement.name+"','','NisNum',";
	if(thisElement.name.indexOf("_ER_")!=-1)validTxt+="'"+thisElement.name+"','','RisEmail',";
	if(thisElement.name.indexOf("_EU_")!=-1)validTxt+="'"+thisElement.name+"','','NisEmail',";
	}
validTxt=validTxt.substring(0,validTxt.length-1)
formRtnVal=eval("MM_validateForm("+validTxt+")");
if(typeof(formRtnVal)=='undefined')
	{
	//form.method=form.get_JS_Method.value;
	//form.action=form.get_JS_Action.value;
/***********************************************************
@MODIFICATION@
22-10-2005
Enable projects to send amendment details
***********************************************************/
	emailLink();
	form.submit();
	}
//MM_validateForm('first_name','','R','surname','','R','email_address','','RisEmail','postcode','','R');
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) 
		{ 
		nm=val.name; 
		n_m=nm;
		n_m=n_m.replace(/_TR_/g, ""); 
		n_m=n_m.replace(/_NR_/g, ""); 
		n_m=n_m.replace(/_NU_/g, ""); 
		n_m=n_m.replace(/_ER_/g, ""); 
		n_m=n_m.replace(/_EU_/g, ""); 
		n_m=n_m.replace(/_/g, " "); 
		if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+n_m+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+n_m+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+n_m+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+n_m+' is required.\n'; }
  } 
  
  document.MM_returnValue = (errors == '');
  if (errors)
	{ 
	alert('The following error(s) occurred:\n'+errors);
	return document.MM_returnValue
	}
}

function submitResponse()
{
if(!isProg)
	{
	document.write("<table cellpadding='10' cellspacing='15' width='100%' border='0'>")
	for(i=1; i< URLqueryName.length; i++)
		{
		if(URLqueryName[i] && URLqueryName[i].length>0) document.write("<tr><td valign='top'><strong>"+(unescape(URLqueryName[i]))+'<\/strong><\/td><td>'+(unescape(URLquery[i]))+"<\/td><\/tr>");
		}
	}
document.write("<\/table>")
}

/***********************************************************
@MODIFICATION@
22-10-2005
Enable projects to send amendment details
***********************************************************/
function contactResponse()
{
if(!isProg)
	{
	for(i=1; i< URLqueryName.length; i++)
		{
		if(URLqueryName[i] && URLqueryName[i].length>0)if(i==1){document.write("Contact : ")};document.write(unescape(URLquery[i])+"<br>");
		}
	}
}

/***********************************************************
@MODIFICATION@
22-10-2005
Enable projects to send amendment details
***********************************************************/
var ReporterrorTxt="";
function errorResponse()
{
if(!isProg)
	{

	for(i=1; i< URLqueryName.length; i++)
		{
		if(URLqueryName[i] && URLqueryName[i]=="errorTxt") {
		ReporterrorTxt=unescape(URLquery[i]);
		//alert(unescape(URLquery[i]));	
		window.onload = new Function("newOnload ="+window.onload+"; newOnload();redoForm();alert(ReporterrorTxt)") 
		//document.write("<strong style='color:#cc0000'>"+unescape(URLquery[i])+" </strong>");
			}
		}
	}

}

function redoForm()
{
if(!isProg)
	{
	form=false;
	for(i=0;i<document.forms.length;i++)if(document.forms[i].action=="php/feedback.php")form=document.forms[i];
	if(form)
		{
		for(i=0;i<form.elements.length;i++)
			{
			elem=(form.elements[i])
				for(j=1; j< URLqueryName.length; j++)
					{
					if(URLqueryName[j]==elem.name)
						{
						if(elem.type=="text" || elem.type=="textarea" || elem.type=="password")elem.value=unescape(URLquery[j]);
						if(elem.type=="select-one")	for(k=0;k<elem.options.length;k++)if(elem.options[k].text==unescape(URLquery[j]))elem.selectedIndex=k;
						}
					}
			}
		}

	}
}

function fixXMLFormat(thisXTML)
{
thisXTML=thisXTML.replace(/</g, "&lt;");
thisXTML=thisXTML.replace(/>/g, "&gt;");
thisXTML=thisXTML.replace(/"/g, "&quot;");
thisXTML=thisXTML.replace(/&amp;pound;/g, "£");
thisXTML=thisXTML.replace(/&pound;/g, "£");
thisXTML=thisXTML.replace(/&/g, "&amp;");
return thisXTML;
}

/////////////////////////////////////////var ID;
var isNS4 = (document.layers && !document.getElementById)? true : false;
var isIE4 = (document.all && !document.getElementById) ? true : false;
var isIE5 = (document.all && document.getElementById) ? true : false;
var isNS6 = (!document.all && document.getElementById) ? true : false;
var isOP=(
		  (navigator.appName.indexOf('Opera') != -1)
		  ||(navigator.plugins.length>0 && navigator.appName.indexOf('Microsoft') != -1)
		  ||(!navigator.product && navigator.appName.indexOf('Netscape') != -1)
		  )
var isIE=(isIE4 || isIE5)
var isDOM=(isIE4 || isIE5 || isNS6)
var WritePageTitle="";
var writeMenu="";
var endMenuTxt="";
var writeSubMenu="";
var pageMenusTxt="";
var owriteSubMenu="";
var opageTitle="";
var omenuTitle="";
var on="_on";
var off="_off";
//var oareaColor=areaProperties[ID][1];

var isProg=false;
var thisPage=document.title;
if(typeof(previewthisFile)=='undefined') previewthisFile=false;
	var thisFile=location.search.substring(6,location.search.length);


if(parent.document.frames && parent.document.frames[0] && parent.document.frames[0].name=="menubar")
{
isProg=true; 
		parent.document.frames[2].continuesetEditable();
		editStyle();
}



if(!isProg){
	if(isNS4){
		/*startPos=(myUrl.length);
		thisFile=(location.href.substring(startPos,location.href.length));*/
		//document.write('<link rel="stylesheet" href="style/NS4style.css" type="text/css">');
		}
	//if(isIE)document.write('<link rel="stylesheet" href="style/IEstyle.css" type="text/css">');
	//if(isNS6)document.write('<link rel="stylesheet" href="style/NS6style.css" type="text/css">');
	}

// || parent.parent.location.href.indexOf("admin_menu.php")!=-1
if(parent.location.href.indexOf("show_addrecord.php?filename=")!=-1 || parent.location.href.indexOf("findFile.php")!=-1 || parent.parent.location.href.indexOf("admin_index.php")!=-1  || parent.parent.location.href.indexOf("topbar.php?mySite=")!=-1)
{
appBrowse=true;
startPos=(myUrl.length);
thisFile=(location.href.substring(startPos,location.href.length));
if(location.search!="") thisFile=location.search.substring(6,location.search.length);

}
else
{
appBrowse=false;	
/*if(location.href.indexOf("showPage.php?file=")==-1 && location.href.indexOf("searchIT.php")==-1)
	{
	if(!isProg){alert('Access Denied');location="showPage.php?file=index.htm";} //1083613538.htm";
	}
	else*/
		{
			/*XwriteSubMenu=eval("pageLink"+ID);
			for(j=1; j<XwriteSubMenu.length; j++)
				{
				//docFound++
				owriteSubMenu=XwriteSubMenu[j].split("|");
				if(thisFile==owriteSubMenu[1] && owriteSubMenu[3]=="false") //owriteSubMenu[0]==fixXMLFormat(thisPage) && owriteSubMenu[3]=="false")
					{
					alert("SORRY \n\n"+(owriteSubMenu[0])+" is unavailable   ");
					//document.write("<meta http-equiv='Refresh' content='0; URL=showPage.php?file=index.htm'>");
					location="showPage.php?file=index.htm";
					}
				}*/
		}
}

	var URLquery=new Array();
	var URLqueryName=new Array();
	var args = new Object();
	var myvar=new Array();
	var query = location.search.substring(1);  // Get query string.
    var pairs = query.split("&");              // Break at & ambersand.
    for(var i = 0; i < pairs.length; i++) 
		{
		var pos = pairs[i].indexOf('=');       // Look for "name=value".
			if (pos == -1) continue;               // If not found, skip.
			var argname = pairs[i].substring(0,pos);  // Extract the name.
			myvar[i] = pairs[i].substring(pos+1);
			var value = pairs[i].substring(pos+1); // Extract the value.
			args[argname] = unescape(value);          // Store as a property.
value=value.replace(/\+/g, " ");
value=value.replace(/\"/g, "&quot;");
value=value.replace(/\</g, "&lt;");
value=value.replace(/\>/g, "&gt;");
URLquery[i]=value;
URLqueryName[i]=argname;
		}
		
function emailLink()
{
if(isProg)return false
get_JS_Recipient=MM_findObj("get_JS_Recipient");
get_JS_Subject=MM_findObj("get_JS_Subject");
if(URLqueryName[1])
	{
if(URLqueryName[1]=="emailID")
		{
		if(get_JS_Recipient)
			{
			get_JS_Recipient.value=""+URLquery[1]+"";
			}
		}
	}
if(URLqueryName[2])
	{
if(URLqueryName[2]=="emailSubject")
		{
		if(get_JS_Subject)
			{
			get_JS_Subject.value=""+URLquery[2]+"";
			}
		}
	}
}
function isLoggedIn(){
WriteLogIn="";
if(URLqueryName[1]=="access")
{
WriteLogIn=""+
"<div id=noAccess>UserName or Password incorrect</div>";
}
if(URLqueryName[1]=="logged")
{
document.forms.form1.disabled=true;	
WriteLogIn=""+
"<div id=Access>You are now Logged-In</div>";
}

if(isProg){WriteLogIn=""}
document.write(WriteLogIn);
}


function docArea()
{
$writedocArea=areaProperties[ID][0].replace(/_/g, " ");
if(isProg){$writedocArea=""}
document.write($writedocArea)	
}

function showImage()
{
var thePath = 'siteimages/';
var theExt = '.jpg';
var theImages = new Array('bg1','bg2','bg3','bg4','bg5','bg6');
var whichImage = thePath+theImages[Math.round(Math.random()*(theImages.length-1))]+theExt;
if(isProg) return false;
if(document.getElementsByTagName) document.body.style.backgroundImage = "url("+whichImage+")";
}

function intronet()
{
$intronet=$intronetFooter;
if(isProg){$intronet=""}
document.write($intronet);
}


function submitButtons()
{
subMiTxt=""+
"  <div>"+
"  <INPUT type=reset value=reset>"+
"  &nbsp;"+
"  <INPUT onclick=\"submitForm(this.form)\" type=button value=send></div>";
if(isProg){subMiTxt=""}
document.write(subMiTxt);
}

function setActiveStyleSheet(title) {
  var i, a, main;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) 
  	{
    if(a.rel)
		{
		if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) 
			{
      		a.disabled = true;
      		if(a.getAttribute("title") == title) a.disabled = false;
    		}
		}
  	}
}


function getActiveStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");
  }
  return null;
}

function getPreferredStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1
       && a.getAttribute("rel").indexOf("alt") == -1
       && a.getAttribute("title")
       ) return a.getAttribute("title");
  }
  return null;
}

function createCookie(name,value,days) {
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
  }
  else expires = "";
  document.cookie = name+"="+value+expires+"; path=/";
}


function targetLinks()
{
for(i=0;i<document.links.length;i++)
	{
	thisLink=document.links[i];
	if(thisLink.href.indexOf(myUrl)==-1 && thisLink.href.indexOf('javascript:')==-1 && thisLink.href.indexOf('mailto:')==-1) 
		{
		if(thisLink.target!="_blank") thisLink.target="_blank";
		}
	}
}

function readCookie(name) {
  var nameEQ = name + "=";
  var ca = document.cookie.split(';');
  for(var i=0;i < ca.length;i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
  }
  return null;
}

/*if(!document.getElementsByTagName)
	{
	window.onload = function(e) 
		{
		targetLinks();
		}
	}*/

if(!document.getElementsByTagName) addLoadEvent(targetLinks);

		function Winload() 
			{
			for (i=0;i<document.forms.length;i++)
				{
				for(ii=0;ii<document.forms[i].elements.length;ii++)
					{
					if(document.forms[i].elements[ii].type=="text" || document.forms[i].elements[ii].type=="textarea")	
						{
						//if(escape(document.forms[i].elements[ii].value)=='%20' || escape(document.forms[i].elements[ii].value)=='%A0')document.forms[i].elements[ii].value='';
						if(document.forms[i].elements[ii].value=='.')document.forms[i].elements[ii].value='';
						}
					}
				}
			targetLinks();
			var cookie = readCookie("style");
			var title = cookie ? cookie : getPreferredStyleSheet();
			setActiveStyleSheet(title);
			/*reSizeContent();*/
			if(isIE){
				if(previewthisFile !=false && window.document.title.length==0)window.document.title="PREVIEW";
				}
			}



if(!isProg)
	{
	if(document.getElementsByTagName)
		{
		addLoadEvent(Winload);
		window.onunload = function(e) 
			{
			var title = getActiveStyleSheet();
			createCookie("style", title, 365);
			}
		
		var cookie = readCookie("style");
		var title = cookie ? cookie : getPreferredStyleSheet();
		setActiveStyleSheet(title);
		}
	}
	


function editStyle()
{
customStyle();
document.styleSheets[0].addRule("BODY" , "scrollbar-3d-light-color : #ffffff");
document.styleSheets[0].addRule("BODY" , "scrollbar-arrow-color : #ffffff;");
document.styleSheets[0].addRule("BODY" , "scrollbar-base-color : #cccccc;");
document.styleSheets[0].addRule("BODY" , "scrollbar-base-color : #cccccc;");
document.styleSheets[0].addRule("BODY" , "scrollbar-dark-shadow-color : #ffffff;");
document.styleSheets[0].addRule("BODY" , "scrollbar-face-color : #666699;");
document.styleSheets[0].addRule("BODY" , "scrollbar-highlight-color : #ffffff;;");
document.styleSheets[0].addRule("BODY" , "scrollbar-shadow-color : #999999;");
document.styleSheets[0].addRule("* html *" , "cursor:crosshair");
document.body.onclick=function(){return false};
}


function customStyle()
{
//document.styleSheets[0].addRule("#docArea" , "color:#444");
document.styleSheets[0].addRule("#textonly A" , "left:-999px;top:-999px");
document.styleSheets[0].addRule("#iconmenu" , "left:-999px;top:-999px");
document.styleSheets[0].addRule("#headerSpacer" , "height:144px !important");
document.styleSheets[0].addRule("#siteSearch" , "margin-left:687px !important");
document.styleSheets[0].addRule("#maincontents #contentBox" , "padding-top:20px !important");
document.styleSheets[0].addRule("#refugee #pageContent" , "height:"+(screen.availHeight-390)+"px");
document.styleSheets[0].addRule("#bodyBG #contentBox" , "height:"+(screen.availHeight-390)+"px");
document.styleSheets[0].addRule("#refugee #pagePanel" , "height:100px");
document.styleSheets[0].addRule("#footer" , "height:70px !important; position:static;");
document.styleSheets[0].addRule(".Panelbox h3" , "height:20px;overflow:hidden");


if(previewthisFile !=false)	{
	$("#docArea").html("");
	_menubar=window.opener._menubar;
	_toolbar=window.opener._toolbar;

	//document.styleSheets[0].addRule("BODY#bodyBG #maincontents #contentBox" , "padding-top:140px !important");
	document.styleSheets[0].addRule("#Newnavcontainer #iconmenu" , "position:relative;margin-left:-210px;top:0;display:inline;float:left;margin-top:140px;");
	document.styleSheets[0].addRule("#refugee #Newnavcontainer #iconmenu" , "margin-top:5px;");
	document.styleSheets[0].addRule("BODY.homePage #Newnavcontainer #iconmen" , "margin-top:5px;display:none;");
	document.styleSheets[0].addRule("#bodyBG #contentBox" , "height:auto");
	document.styleSheets[0].addRule("#footer", "height:auto");
	document.styleSheets[0].addRule(".Panelbox h3" , "height:auto");

	$.post("server/XmlToArray.php", 
		{ preview: "true", previewtxtView: "true", index1: _menubar.$thisArea, file: _menubar.$url }, 
		function(data){ 
			$("div#txtView").html(data)
			$("a.txtView").click( function() { return false; } );
			} 
		);
	$.post("server/XmlToArray.php", 
		{ preview: "true", previewSearch: "true", index1: _menubar.$thisArea, file: _menubar.$url }, 
		function(data){ 
			$("#siteSearch").html(data)
			} 
		);
	$.post("server/XmlToArray.php", 
		{ preview: "true", previewFooter: "true", index1: _menubar.$thisArea, file: _menubar.$url }, 
		function(data){ 
			$("#footer").html(data)
			} 
		);
	$.post("server/XmlToArray.php", 
		function(data){ 
			$("#sitemapping").html(data)
			} 
		);
	$.post("server/XmlToArray.php", 
		{ preview: "true", previewAreaMenu: "true", index1: _menubar.$thisArea, file: _menubar.$url }, 
		function(data){ 
			$("#iconmenu").before("<div style='margin-left:-7px'>n<div id=newMenu>"+data+"</div></div>");
			$("#docArea").remove();
			} 
		);
	$.post("server/XmlToArray.php", 
		{ preview: "true", previewPageMenu: "true", index1: _menubar.$thisArea, file: _menubar.$url }, 
		function(data){ 
			$("#iconmenu").remove();
			$("#contentBox").before(data);
			document.styleSheets[0].addRule("#iconmenu" , "left:0px;position:absolute;top:600px;z-index:999");
			$("html").css({ visibility: "visible"});
			$(".Panelbox IMG.sidepic").attr({ src: "images/sidepic-"+(Math.floor(Math.random() * 9)+1)+".jpg"});
			} 
		);
	}
}




var tdColor="#6699CC";
var menuStyle="tsnAreaName";
var AreaSelected="tsnAreaNameSelected";

function docWritePageTitle()
{
WritePageTitle=document.title;
if(previewthisFile !=false)
	{
	WritePageTitle=previewthisFile[0]
	}
if(isProg){WritePageTitle=""}
document.write(WritePageTitle);
WritePageTitle="";
}



function docWriteMenuTitle(defaultPage)
{
	
thispageTitle="";
if(previewthisFile !=false)
	{
	thispageTitle=previewthisFile[1];
	//document.write("<TD width=100% height=35 class=tsnBoxTitle> "+(thispageTitle)+"</TD><td>&nbsp;&nbsp;</td> ");
	document.write(thispageTitle);	//WriteTitle);
	return;
	}

if(!isProg)
	{
	//otitleBGcolor=oareaColor[1];
	opLink=eval("pageLink"+ID);
	if(defaultPage)
		{
		opLink=eval("pageLink["+ID+"]")
		osubpageLink=opLink.split("|");
		if(osubpageLink[1]==thisFile)
			{
			navTitle=(osubpageLink[2].split("[#]"));
			thispageTitle=navTitle[0];
			}
		}
		else
			{
			for(i=1;i<opLink.length;i++)
				{
				osubpageLink=opLink[i].split("|");
				if(osubpageLink[1]==thisFile)
					{
					navTitle=(osubpageLink[2].split("[#]"));
					thispageTitle=navTitle[0];
					}
				}
			opLink=eval("pageLink["+ID+"]")
			osubpageLink=opLink.split("|");
			navTitle=(osubpageLink[2].split("[#]"));
			thispageTitle=navTitle[0]+"<br><br>"+thispageTitle;
			}
	//document.write("<TD width=100% height=35 class=tsnBoxTitle> "+(thispageTitle)+"</TD><td>&nbsp;&nbsp;</td> ");
	document.write(thispageTitle);	//WriteTitle);
	}
}

function randomImg(defaultPage)
{
ImgNum = Math.floor(Math.random() * 6)+1;
	if(!isProg)
	{
	document.write("<td class=\"tsnStoryTitle\" align=\"center\" valign=\"middle\" width=100% background=\"siteimages/globe"+(ImgNum)+".gif\" colspan=3>");
	docWriteMenuTitle(defaultPage)
	document.write("</td>");
	}
}


function displayDate()
{
var monthNames = new Array("January","February","March","April","May",
"June","July","August","September","October","November","December");
var now = new Date();
var year = now.getYear()
if (now.getYear()<=1970){
var year = now.getYear() + 1900
}
day=parseInt(now.getDate());
if(day==1 || day==21 || day==31){day=day+"st";}
else if(day==2 || day==22){day=day+"nd";}
else if(day==3 || day==23){day=day+"rd";}
else {day=day+"th";}

if(isProg){return;}
document.write(day + " " + monthNames[now.getMonth()] + " " + year + "&nbsp;&nbsp;")
}


function sizeContent(thisSize)
{
if(!isProg)
	{
	if(thisSize==1)thisSize=115; 
	if(isIE)
		{
		window.onresize=function(){
			if(document.all.sizeContentImage)document.all.sizeContentImage.setAttribute("height",(document.body.clientHeight-(thisSize-0)));  
			}
		document.write('<img border=0 name=sizeContentImage width=10 src=siteimages/shim.gif height='+(document.body.clientHeight-(thisSize-0))+'>');
		}

	 if(isNS4)
		{
		document.write('<img name=sizeContentImage width=10 src=siteimages/shim.gif height='+(window.innerHeight-(thisSize-1))+'>');
	 	}


	if(isNS6)
		{
		window.onresize=function(){
			osizeContentImage=MM_findObj("sizeContentImage");	
			if(osizeContentImage) osizeContentImage.style.height=(window.innerHeight-(thisSize-0));
			}
		document.write('<img name=sizeContentImage width=10 src=siteimages/shim.gif height='+(window.innerHeight-(thisSize-0))+'>');
		}
	}
}


function lastEdited()
{
return;	
if(typeof(lastModified)=='undefined') lastModified="";
if(!isProg)document.write('This page was last edited on - '+lastModified);//document.lastModified)
}


function sitemap()
{
opageNum=0	;
if(isProg)return false;
document.write("");
for (i=0; i <Menus; i++)
	{  
	osub="";
	isSub="";
	endsub="";
	splitDate=new Array();
	opageLink=eval("pageLink"+(i+1));
	oArea=eval("pageLink["+(i+1)+"]").split("|");
	opageNum++;
	
	oAreaNav=oArea[2].split("[#]")
	
	document.write("<span class=TeLayoutsMap><a href='showPage.php?file="+oArea[1]+"'>"+oAreaNav[0]+"</a></span><ul class=XTeLayoutnoMargin>");
	for (j=0; j< opageLink.length-1; j++)
		{
		othisPageDetails=opageLink[j+1].split("|")
		osubArea=othisPageDetails[2].split("[#]")
		if(/*othisPageDetails[3]=="true" && */othisPageDetails[1]!="Site_Map.htm" && othisPageDetails[1]!="thanks.htm")
			{
			opageNum++;
			splitDate=othisPageDetails[0].split(" - ")
			if(osubArea[1]=="true")
				{
				osub=true;	
				if(osubArea[3]=="start")
					{
					osub="sub";
					if(othisPageDetails[3]=="true")document.write("<li> <a href='showPage.php?file="+othisPageDetails[1]+"'><STRONG>"+othisPageDetails[0]+"</STRONG></a></li><ul>")
					}
					else
					{
					osub="";
					if(othisPageDetails[3]=="true"){document.write("<li class=XTeLayoutnoList> |__  <a href='showPage.php?file="+othisPageDetails[1]+"'>"+othisPageDetails[0]+"</a></li></ul>")}else{document.write('</ul>')}
					}
				}else
					{
					if(osub=="sub")
						{
						if(othisPageDetails[3]=="true")document.write("<li class=XTeLayoutnoList> |__  <a href='showPage.php?file="+othisPageDetails[1]+"'>"+othisPageDetails[0]+"</a></li>");
						}
					if(osub=="")
						{
						if(othisPageDetails[3]=="true")document.write("<li> <a href='showPage.php?file="+othisPageDetails[1]+"'>"+othisPageDetails[0]+"</a></li>");
						}
					}
			}
		}
	document.write("</ul>"); 
	document.write("<div align=right><A href='showPage.php?file=Site_Map.htm#'>Top of page</A></div>");  
	} 
}



/*
if(appBrowse==true)	{
	var $reSizeContent
	window.onunload=function()
		{
		clearInterval($reSizeContent);
		}
	window.onload=function()
		{
		$reSizeContent=setInterval("reSizeContent()",1);
		//disableForm();
		}

	}
*/


function reSizeContent()
{
return;
var $iconmenu = document.getElementById('iconmenu');
var $midmenu = document.getElementById('midmenu');
var $contentBox = document.getElementById('contentBox');
var $footer = document.getElementById('footer');
if($iconmenu &&  $midmenu){
	$extraSpace=(0); 
	if(isIE)$extraSpace=130;
	if(isOP)$extraSpace=0;
	if(previewthisFile !=false)$extraSpace=0;

	$menuHeight=(parseInt($iconmenu.offsetHeight+$midmenu.offsetHeight+$extraSpace));
	$contentHeight=(parseInt($contentBox.offsetHeight));
	if($menuHeight>$contentHeight)$contentBox.style.height=$menuHeight;
	if(isIE)document.all.footer.style.pixelTop =0;
	//if(appBrowse==true) clearInterval($reSizeContent);
	}
}




$(document).ready(function () {
	if(appBrowse==true){
		$("a.txtView").click( function() { return false; } );
	}
	if(isProg){
		return false;
	}
	/*var $iconmenu = document.getElementById('iconmenu');
	var $midmenu = document.getElementById('midmenu');
	var $contentBox = document.getElementById('contentBox');
	var $footer = document.getElementById('footer');
	if($iconmenu &&  $midmenu){
		$extraSpace=3; $adjust=140
		if(isIE){$extraSpace=0; $adjust=0};
		if(previewthisFile !=false)$extraSpace=0;
		$menuHeight=(parseInt(($iconmenu.offsetHeight)+($midmenu.offsetHeight)+($extraSpace)));
		$contentHeight=(parseInt($contentBox.offsetHeight));
		if($contentHeight < $menuHeight)$contentBox.style.height=($menuHeight)-($adjust)+"px";
		if(isIE)document.all.footer.style.pixelTop =0;
		}*/
	/*if(location.href.indexOf("showPage.php?file=index.htm")!=-1){
		getNum=Math.floor(Math.random()* 8);
		$("#headerSpacer").after("<div class=homebannerImgHolder id='bannerImgHolder'><div style=';background-image:url(images/banner_"+(getNum)+".jpg);' id='bannerImg'>"+(quote[getNum])+"<\/div><\/div>");
		}*/
		
	var _selected=$(".tabsmenu A").get(0)
	$(_selected).addClass("selected");
	
	$(".tabsmenu A").each(function(i){
		$(this).mouseover( function() { eval(this.rel); } );							   
		});


	/*	TOOLTIP	*/
	$(".tooltip").hover(function(){
		$(this).children("span").css({ display: "block"});
		},function(){ 
	  		$(this).children("span").css({ display: "none"});
			});
	}
);



function rtnSrc()
	{
	if(appBrowse==false)
		{
		document.forms.searchForm.action="javascript:rtnSrc();";
		if(document.forms.searchForm.keyword.value=="" || document.forms.searchForm.keyword.value==" " || document.forms.searchForm.keyword.value.length<3)
			{
			alert('Please enter a valid search query');
			document.forms.searchForm.keyword.focus();
			return false;
			}
		document.forms.searchForm.action="searchIT.php";
		document.forms.searchForm.submit();
		}
	}


function disableForm()
{
if(! document.forms.searchForm)return;
return;
document.forms.searchForm.action="javascript:;";
document.forms.searchForm.keyword.disabled=true
if(document.all.searchButton)document.all.searchButton.removeAttribute("href");
}


function sideMenuBAK()
{
/*pageLink[1]="forum|forum.htm|Share Ideas[#]false[#]true[#]false[#]false[#]false[#]false[#]false|true|false";*/
document.write("<UL id=iconmenu>");
for($i=1;$i<Menus;$i++)
	{
	$areaLink=pageLink[$i].split("|");
	$areaLink=$areaLink[1]
	$areaName=(areaProperties[$i][0]);
	$correctedareaName=$areaName.replace(/_/g, ' ');	
	if($i !=ID)document.write("<li><a href='showPage.php?file="+($areaLink)+"'>"+$correctedareaName+"</a>");
	if($i==ID)pageMenu2();
	if($i !=ID)document.write("</li>");
	}
document.write("</UL>");
//document.write("<div id='bannerImgHolder'><div style='background-image:url(images/banner_"+ID+".jpg);' id='bannerImg'>&nbsp;<\/div><\/div>");
}

var quote=[ 
"<div id='quote0'>Good children’s services are crucial, but adult services also have a crucial role to play in determining children’s achievements and future life chances<br><em>Think Family:<br>Improving the Life Chances of Families at Risk 2008 </em></div>",
"<div id='quote1'>Improve support to parents with drug problems so that children do not fall into excessive or inappropriate caring roles<br><em>The 2008-2018 Strategy Drugs:<br>protecting families and communities</em></div>",
"<div id='quote2'>Cultural and linguistic differences should be taken into account in the provision and delivery of services.<br><br><em>Human Rights Act 1998</em></div>",
"<div id='quote3'>“I would like an assessment for each person in need in our family and for all professionals to get together and talk about us as a family rather then as separate individuals”<br><em>disabled parent</em></div>",
"<div id='quote4'>No care package should depend on the inappropriate caring role of a child  Carers<br><br><em>(Equal Op) Act 2004</em></div>",
"<div id='quote5'>Sustain a family unit which avoids children being required to take on inappropriate caring roles<br><br><em>Putting People First (HM Government, 2007)</em></div>",
"<div id='quote6'>Strengthening of support for families with disabled children will bring benefits for the whole family including any siblings in those families who assist with caring - <em>The Carers’ Strategy 2008 - Carers at the heart of 21st century families and communities</em></div>",
"<div id='quote7'>In a system that ‘thinks family’, both adults’ and children’s services join up around the needs<br>of the family<br><em>Think Family:<br>Improving the Life Chances of Families at Risk 200</em></div>",
"<div id='quote8'>Extensive or inappropriate caring can be damaging, constraining young people’s time and contribution to poor outcomes - <em>The Carers’ Strategy 2008 Carers at the heart of 21st century families and communities</em></div>",
];

function sideMenu()
{
if(isProg)return false;
document.write("<UL id=iconmenu>");
	$areaLink=pageLink[ID].split("|");
	$areaLink=$areaLink[1]
	$areaName=(areaProperties[ID][0]);
	$correctedareaName=$areaName.replace(/_/g, ' ');	
	pageMenu2();
document.write("</UL>");
getNum=Math.floor(Math.random()* 9);
if(ID < 7)document.write("<div id='bannerImgHolder'><div style='background-image:url(images/banner_"+(getNum)+".jpg);' id='bannerImg'>"+(quote[getNum])+"<\/div><\/div>");
}




/*
<UL id=iconmenu>
<LI id=panel1c><A title="share your ideas and questions with colleagues using our forum" href="showPage.php?file=forum.htm"><SPAN class=iconLink>Share ideas / Forum</SPAN></A> 
<LI id=panel2c><A class=Selected title="what is the young carers initiative" href="showPage.php?file=initiative.htm"><SPAN class=iconLinkSelected>What is the Young Carers Initiative?</SPAN></A> 
<LI id=panel3c><A title="information for young carers" href="showPage.php?file=info.htm"><SPAN class=iconLink>Information For Young Carers</SPAN></A> 
<LI id=panel4c><A title=projects href="showPage.php?file=projects.htm"><SPAN class=iconLink>Projects / Support</SPAN></A> 
<LI id=panel5c><A title="young carers and their families" href="showPage.php?file=families.htm"><SPAN class=iconLink>Young Carers &amp; Their Families</SPAN></A> 
<LI id=panel6c><A title=professionals href="showPage.php?file=professionals.htm"><SPAN class=iconLink>Professionals</SPAN></A> 
<LI id=panel7c><A title=news href="showPage.php?file=news.htm"><SPAN class=iconLink>News</SPAN></A> </LI></UL>
*/

function iconmenu()
{
sideMenu();
return;
iconmenuTxt="<UL id=iconmenu>";
for($i=1;$i<Menus;$i++)
	{
	$classLink="";
	$areaLink=pageLink[$i].split("|");
	$areaLink=$areaLink[1]
	$areaName=(areaProperties[$i][0]);
	$correctedareaName=$areaName.replace(/_/g, ' ');	
	if(ID==$i)$classLink="Selected";
	iconmenuTxt+="<li><a class='"+$classLink+"' href='showPage.php?file="+($areaLink)+"'><span class=iconLink"+$classLink+">"+$correctedareaName+"</span></a></li>";
	if($i==ID)pageMenu1();
	}
iconmenuTxt+="</UL>";
iconmenuTxt+="<div id='bannerImgHolder'><div id='bannerImg'><img src='images/banner_"+ID+".jpg'><\/div><\/div>";
document.write(iconmenuTxt);
}




var subStart=new Array();	
var subEnd=new Array();	
var iStart=0;
var iEnd=0;
var oStart=0;
icount=0;
var subPage="false";



function pageMenu1()
{
}

function pageMenu2()
{
var color1="#CCCCFF";
var color2="#E0CA38";
var color3="#00CCFF";
var color4="#E0CA38";
var pDiv="";//+
//"<DIV class=TeLayoutHline>"+
//"<DIV class=TeLayoutInLineLeft><IMG height=1 alt=\"\" src=\"siteimages/shim.gif\" width=1 border=0></DIV>"+
//"</DIV>";
var oFont="";
var oMargin="id=oMargin";
var oBull="";
var oLeft="";
/*if(!isNS4){
	ofont="style=\"font-size:1px\" ";
	oMargin="style=\"padding-left:25px;font-size:0.85em;\" ";
if(isIE){oBull="16px;";oLeft="-1px"}
if(isNS6){oBull="26px;";oLeft="12px"}
}
*/

if(!isNS4){
	ofont="";
	oMargin="";
if(isIE){oBull="44px";oLeft="-1px"}
if(isNS6){oBull="45px";oLeft="0px"}
}

//  
// style=\"margin:0px;padding-left:25px;font-size:0.85em;\"
// style=\"padding-left:25px;font-size:0.85em;\"

var showSub="false";
var thisSub="";
opLink=eval("pageLink"+ID)
var osub="";
$areaName=(areaProperties[ID][0]);
$correctedareaName=$areaName.replace(/_/g, ' ');
parentArea=pageLink[ID].split("|");
pageTxt="<div id='navcontainer'>";
pageTxt+="<div class='correctedareaName_'><a class='correctedareaName' href='showPage.php?file="+(parentArea[1])+"'>"+$correctedareaName+"</a></div>";
pageTxt+="<ul>";
var opageTxt="";
var doneOnce=0;
xhiddenInput="";
thisStartTag="";
thisEndTag="";

if(parentArea[1]==thisFile)
			{
			thisStartTag="";//"<span style='color:#60237B'>";
			thisEndTag="";//"</span>";
			}
/*pageTxt+="<li><a href='showPage.php?file="+(parentArea[1])+"'>"+(thisStartTag)+(parentArea[0])+(thisEndTag)+"</a></li>";*/
//pageTxt+="<li><a class=\""+(thisClass)+"\" href=\"showPage.php?file="+(osubpageLink[1])+"\">"+(thisStartTag)+(navTitle[0])+(thisEndTag)+"</a></li>"+pDiv;

for(i=1;i<opLink.length;i++) 
	{
	osubpageLink=opLink[i].split("|");
	//if(osubpageLink[3]=="true" && osubpageLink[4]=="true")
		{
		navTitle=(osubpageLink[2].split("[#]"));
		if(navTitle[3]=="start")
			{
			subPage="true";
			iStart++;
			subStart[iStart]=new Array()
			}
			
		if(navTitle[1]=="true" && navTitle[3]=="start" || subPage=="true")
			{
			icount++;
			if(subPage=="true"){subStart[iStart][icount]=osubpageLink;}
			}
			
		if(navTitle[3]=="end")
			{
			icount=0;
			subPage="false";
			}
		}
	}
for(j=1;j<subStart.length;j++)
	{
	for(i=1;i<opLink.length;i++) 
		{
		osubpageLink=opLink[i].split("|");
		//if(osubpageLink[3]=="true" && osubpageLink[4]=="true")
			{
			navTitle=(osubpageLink[2].split("[#]"));
			for(k=1;k<subStart[j].length;k++)
				{
				if(subStart[j][k])
					{
					if(subStart[j][k][1]==thisFile)thisSub=(subStart[j][1][1])
					}
				}
			}
		}
	}

for(i=1;i<opLink.length;i++) 
	{
	osubpageLink=opLink[i].split("|");
	//if(osubpageLink[3]=="true" && osubpageLink[4]=="true")
		{
		navTitle=(osubpageLink[2].split("[#]"));
		if(thisFile==osubpageLink[1]){$class="On"}else{$class="Off"}
		if(isNS4){$space="&nbsp;";}else{$space=" ";}
		//if(xhiddenInput==""){xhiddenInput='hiddenInput';}else{xhiddenInput="";}
		if(navTitle[3]=="start"){if(osubpageLink[1]==thisSub){showSub="true"}else{showSub="false"}osub="start"}
		if(navTitle[3]=="end"){osub="end"}
		if(osubpageLink[1]==thisFile)
			{
			thisStartTag="<span class='selected'>"; //style='color:#60237B'>";
			thisEndTag="</span>";
			thisClass="link2";
			thisSubClass="link2";
			}
		else
			{
			thisStartTag="";
			thisEndTag="";
			thisClass="link1"	
			thisSubClass="";
			}
		if(osub==""){
			if(osubpageLink[3]=="true" && osubpageLink[4]=="true")pageTxt+="<li><a class=\""+(thisClass)+"\" href=\"showPage.php?file="+(osubpageLink[1])+"\">"+(thisStartTag)+(navTitle[0])+(thisEndTag)+"</a></li>"+pDiv;
			}
		
		if(osub=="sub" && showSub=="true"){
			if(osubpageLink[3]=="true" && osubpageLink[4]=="true")pageTxt+="<div class=suBlink><a title='"+(navTitle[0])+"' "+(oMargin)+" href=\"showPage.php?file="+(osubpageLink[1])+"\">";
			//if(osubpageLink[3]=="true" && osubpageLink[4]=="true")if(!isNS4)pageTxt+="<span style='position:absolute;left:"+(oBull)+";font-family:arial;font-size:1.30em;'>&#8226;</span>";
			if(osubpageLink[3]=="true" && osubpageLink[4]=="true")pageTxt+=""+(thisStartTag)+(navTitle[0])+(thisEndTag)+"&raquo;</a></div>"+pDiv;
			}
		
		if(osub=="start"){
			if(showSub=="true"){
				if(osubpageLink[3]=="true" && osubpageLink[4]=="true")pageTxt+="<li><a class='startSub' href=\"showPage.php?file="+(osubpageLink[1])+"\">";
				//if(!isNS4)pageTxt+="<span style='position:absolute;left:"+(oLeft)+"'>-</span>";
				if(osubpageLink[3]=="true" && osubpageLink[4]=="true")pageTxt+=""+(thisStartTag)+(navTitle[0])+(thisEndTag)+"</a></li>"+pDiv;
				}
			else{
				if(osubpageLink[3]=="true" && osubpageLink[4]=="true")pageTxt+="<li><a class=\""+(thisClass)+"\" href=\"showPage.php?file="+(osubpageLink[1])+"\">";
				//if(!isNS4)pageTxt+="<span style='position:absolute;left:"+(oLeft)+"'>+</span>";
				if(osubpageLink[3]=="true" && osubpageLink[4]=="true")pageTxt+=""+(thisStartTag)+(navTitle[0])+(thisEndTag)+"</a></li>"+pDiv;
				}
			osub="sub"
			}
		
		if(osub=="end"){
			if(showSub=="true"){
				if(osubpageLink[3]=="true" && osubpageLink[4]=="true")pageTxt+="<div class=suBlink><a class='lastSub' title='"+(navTitle[0])+"' "+(oMargin)+" href=\"showPage.php?file="+(osubpageLink[1])+"\">";
				//if(osubpageLink[3]=="true" && osubpageLink[4]=="true")if(!isNS4)pageTxt+="<span style='position:absolute;left:"+(oBull)+";font-family:arial;font-size:1.30em;'>&#8226;</span>";
				if(osubpageLink[3]=="true" && osubpageLink[4]=="true")pageTxt+=""+(thisStartTag)+(navTitle[0])+(thisEndTag)+"&raquo;</a></div>"+pDiv;
				}
			osub="";
			}
		}	// end if condition

	}	// end FOR loop
// style='font-size:3px' 
// style=\"margin:0px;padding-left:25px;font-size:0.85em;\"
// style=\"padding-left:25px;font-size:0.85em;\"
pageTxt+="</ul></div>";
if(isProg){pageTxt=""}
document.write(pageTxt);
pageTxt="";
}



function getTabs()
{
tabList=document.getElementsByTagName("DIV");
for(i=0;i<tabList.length;i++)
	{
	if(tabList[i].id)
		{
		if(tabList[i].id.indexOf("tabsmenu")!=-1)
			{
			tabLinks=tabList[i].getElementsByTagName("A");
			for(j=0;j<tabLinks.length;j++)
				{
				/*tabLinks[j].onmouseover=function()
					{
					////////////////////////////////////////////////////////
					}*/
				}
			}
		}
	}
}



function showDivTABS(num,thisTab)
{
if(typeof(num)=='undefined' || typeof(thisTab)=='undefined')
	{
	num=0;thisTab=1
	}

if(isProg) return;
if(document.getElementById)
	{
	tabs=document.getElementById("tabsmenu"+thisTab); if(!tabs) return;
	tabs=document.getElementById("tabsmenu"+thisTab).getElementsByTagName("A");
	if(tabs)
		{
		for(i=0;i<tabs.length;i++)
			{
			tabs[i].className="";
			if(i==num)tabs[i].className="selected";
			}
		}
	divs=document.getElementById("tabsContent"+thisTab); if(!divs) return;
	divs=document.getElementById("tabsContent"+thisTab).getElementsByTagName("DIV");
	if(divs)
		{
		for(i=0;i<divs.length;i++)
			{
			if (divs[i].className.indexOf("divInner")!=-1)
				{
				if(divs[i].id=="tab"+num)
					{
					divs[i].style.display = "block";
					//$("#textLink").css({top: "10"})
					}else
						{
						divs[i].style.display = "none";
						}
				}
			}
		}
	}
}


addLoadEvent(showDivTABS);
addLoadEvent(getTabs);


