//Javascript File
function switchMode(id){//enlarges and minimises id links
var h=document.getElementById(id).style.height;
if(h=='120px'){
h=document.getElementById(id).style.height='100%';
}else{
h=document.getElementById(id).style.height='120px';
}
};

function switchMode1(id,symbol){//enlarges and minimises id links

var h=document.getElementById(id).style.height;
if(h=='30px'){
h=document.getElementById(id).style.height='100%';
s=document.getElementById(symbol).innerHTML='-';
document.getElementById(symbol).title='collapse section';
if(document.getElementById("getwebsitelinks")&& id=="thgw"){
document.getElementById("getwebsitelinks").style.visibility='visible';
}
}else{
h=document.getElementById(id).style.height='30px';
s=document.getElementById(symbol).innerHTML='+';
document.getElementById(symbol).title='expand section';
if(document.getElementById("getwebsitelinks") && id=="thgw"){
	document.getElementById("getwebsitelinks").style.visibility='hidden';
	}
}

};

//the below function is for accessibility in case javascript is turned off
function lineHeight(tag){//if Javascript is OFF then DISPLAY else MINIMISE link boxes with class webLinks
var links=document.getElementsByTagName(tag);
for (var i=0; i < links.length; i++) {
    if (links[i].className.match("webLinks")) {
      var h=links[i].style.height;
		if(h){
		h=links[i].style.height='120px';
		}
	}
}
};
//the below function is for accessibility in case javascript is turned off
function divHeight(tag){//if Javascript is OFF then DISPLAY else MINIMISE link boxes with class text_holder
var links=document.getElementsByTagName(tag);
for (var i=0; i < links.length; i++) {
    if (links[i].className.match("text_holder")) {
      var h=links[i].style.height;
		if(h){
		h=links[i].style.height='30px';
		if(document.getElementById("getwebsitelinks")){
			document.getElementById("getwebsitelinks").style.visibility='hidden';
			}
		}
	}
}
};
//swfobject loader

function swferLoad(file,title,h,w,v,bg,wMODE){
var so = new SWFObject(file, title, h, w, v, bg);
so.addParam("quality", "high");
so.addParam("wmode", wMODE);
so.write("flashcontent");
}
function tipExpand(id){
	if(document.getElementById('th1').style.height=='100%'){
		document.getElementById(id).style.visibility='hidden';	
	}else{
	document.getElementById(id).style.visibility='visible';	
}
}
function tipExpand2(id){
	document.getElementById(id).style.visibility='hidden';	
}

