if(typeof Object.create!=="function"){Object.create=function(A){function B(){}B.prototype=A;
return new B();
};
}var SouthTynesideCouncil={};
SouthTynesideCouncil.WebTeam={};
var stc=SouthTynesideCouncil;
var wt=stc.WebTeam;
wt.createNode=function(F,E,B,H,D){var C,A,G;
if(typeof E==="undefined"||E===null||E===""){C=document.createTextNode(D);
}else{C=document.createElement(E);
for(A=0;
A<B.length;
A++){if(B[A].name!=="style"){C.setAttribute(B[A].name,B[A].value);
}else{wt.setElementStyle(C,B[A].value);
}}if(H!==""){C.className=H;
}if(D!==""){if(E!=="input"){C.innerHTML=D;
}else{C.value=D;
}}}if(F!==null&&F!==""){F.appendChild(C);
}return C;
};
wt.getElementById=function(E,F){var D=null,C,A,B=null;
if(E.id===F){return E;
}for(C=0;
C<E.childNodes.length;
C++){if(E.childNodes[C].id===F){B=E.childNodes[C];
break;
}}if(!B){for(C=0;
C<E.childNodes.length;
C++){if(!B&&E.childNodes[C].hasChildNodes){B=wt.getElementById(E.childNodes[C],F);
}}}return B;
};
wt.setElementStyle=function(B,A){if(B.style){B.style.cssText=A;
}else{B.cssText=A;
}};
wt.getElementStyle=function(A){if(!A){return;
}if(A.style){return A.style.cssText;
}else{return A.cssText;
}};
wt.removeAllChildNodes=function(A){if(!A){return;
}if(!A.hasChildNodes()){return;
}while(A.hasChildNodes()){wt.removeNode(A.childNodes[0]);
}};
wt.removeNode=function(A){return A.parentNode.removeChild(A);
};
wt.insertNodeAfter=function(B,A){if(!wt.isValid(B)||!wt.isValid(A)){return;
}if(A.nextSibling){A.parentNode.insertBefore(B,A.nextSibling);
}else{A.parentNode.appendChild(B);
}};
wt.convertUniversalDateToDate=function(C){var D=Utilities;
if(!D.isValid(C)){return null;
}if(C===""){return null;
}if(C.match(/^20\d\d\-[012]\d\-[0123]\dT[012]\d:[012345]\d:[012345]\d(\.(\d){1,4})?[+\-][012]\d:[012345]\d$/i)===null){return;
}var K=parseInt(C.substr(0,4),10);
var E=parseInt(C.substr(5,2),10)-1;
var A=parseInt(C.substr(8,2),10);
var J=parseInt(C.substr(11,2),10);
var H=parseInt(C.substr(14,2),10);
var G=parseInt(C.substr(17,2),10);
var F=C.substr(19,1);
var B=parseInt(C.substr(20,2),10);
var I=parseInt(C.substr(23,2),10);
var L=new Date(K,E,A,J,H,G,0);
return L;
};
wt.convertStringToDate=function(B){var A=/^[0123]\d\/[012]\d\/20\d\d$/;
if(B.match(A)===null){return null;
}return new Date(B.substr(6,4),B.substr(3,2)-1,B.substr(0,2),0,0,0,0);
};
wt.convertStringToTime=function(D,A){var B=/^[012]\d:[012345]\d:[012345]\d$/;
if(D.match(B)===null){return;
}var C=new Date();
if(typeof A!=="undefined"&&A!==null){if(typeof A.getDate==="function"){C.setFullYear(A.getFullYear());
C.setMonth(A.getMonth());
C.setDate(A.getDate());
}}C.setHours(D.substr(0,2));
C.setMinutes(D.substr(3,2));
C.setSeconds(D.substr(6,2));
C.setMilliseconds(0);
return C;
};
convertStringToDateTime=function(B){var A=wt.convertStringToDate(B);
if(A===null){return null;
}A=wt.convertStringToTime(B,A);
if(A===null){return null;
}return A;
};
wt.convertDateTimeToString=function(D,B){if(!wt.isValid(D)){return"";
}if(B===null||B===""){B="dd/mm/yyyy";
}var G=/(_MM|_MN|_MS|_M|_yyyy|_yy|_ss|_s|_mm|_m|_hx|_HH|_hh|_H|_h|_dx|_dn|_ds|_dd|_d){1}/g;
var E=[];
var C,A=B;
while((C=G.exec(B))!==null){E.push(C);
}if(E.length>0){for(var F=E.length-1;
F>=0;
F--){B=B.substr(0,E[F].index)+wt.convertDateTimeToken(D,E[F][0])+B.substring(E[F].index+E[F][0].length,B.length);
}}return B;
};
wt.convertDateTimeToken=function(B,C){var H=["January","February","March","April","May","June","July","August","September","October","November","December"];
var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];
var D=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];
var E=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];
var F=["st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"];
var G="";
C=YAHOO.lang.trim(C);
if(C==="_MM"){G=wt.padNumber(B.getMonth()+1,2);
}else{if(C==="_MN"){G=H[B.getMonth()];
}else{if(C==="_MS"){G=A[B.getMonth()];
}else{if(C==="_M"){G=B.getMonth()+1;
}else{if(C==="_yyyy"){G=wt.padNumber(B.getFullYear(),4);
}else{if(C==="_yy"){G=wt.padNumber(B.getFullYear().toString().substr(2,2),2);
}else{if(C==="_ss"){G=wt.padNumber(B.getSeconds(),2);
}else{if(C==="_s"){G=B.getSeconds();
}else{if(C==="_mm"){G=wt.padNumber(B.getMinutes(),2);
}else{if(C==="_m"){G=B.getMinutes();
}else{if(C==="_hx"){G=B.getHours()>11?"pm":"am";
}else{if(C==="_HH"){G=wt.padNumber(B.getHours(),2);
}else{if(C==="_hh"){G=B.getHours()>12?$.padNumber(B.getHours()-12,2):B.getHours()===0?12:$.padNumber(B.getHours());
}else{if(C==="_H"){G=B.getHours();
}else{if(C==="_h"){G=B.getHours()>12?B.getHours()-12:B.getHours()===0?12:B.getHours();
}else{if(C==="_dx"){G=F[B.getDate()-1];
}else{if(C==="_dn"){G=D[B.getDay()];
}else{if(C==="_ds"){G=E[B.getDay()];
}else{if(C==="_dd"){G=wt.padNumber(B.getDate(),2);
}else{if(C==="_d"){G=B.getDate();
}}}}}}}}}}}}}}}}}}}}return G;
};
wt.padNumber=function(B,A){return String("0"+B).slice(-A);
};
wt.getAncestorNodeOfType=function(C,B,A){if(!this.isValid(C)||!this.isValid(B)){return null;
}if(!this.isValid(A)){A=false;
}if(B.toLowerCase()==="body"){return document.body;
}if(!A){if(C.nodeName.toLowerCase()===B.toLowerCase()){return C;
}}if(C.parentNode){C=C.parentNode;
while(C.nodeName.toLowerCase()!==B.toLowerCase()&&C.nodeName.toLowerCase()!="body"){C=C.parentNode;
}}if(C.nodeName.toLowerCase()==="body"){return null;
}return C;
};
wt.convertToArray=function(B){if(this.isArray(B)){return B;
}var A=[];
A.push(B);
return A;
};
wt.isArray=function(A){if(!this.isValid(A)){return false;
}if(typeof A.join!=="function"){return false;
}return true;
};
wt.isValid=function(A){return(typeof A!=="undefined"&&A);
};
