var currentTab = 1
function switchTab(showTab) {
	if(showTab == currentTab) { return }
	var hideTab = currentTab
	var doIt = false
	if(document.all) {
		var dShow = document.all['tbl' + showTab + 'Content']
		var dShowLine = document.all['tbl' + hideTab + 'Line']
		var dShowLabel = document.all['td' + showTab + 'Label']
		var dHide = document.all['tbl' + hideTab + 'Content']
		var dHideLine = document.all['tbl' + showTab + 'Line']
		var dHideLabel = document.all['td' + hideTab + 'Label']
		doIt = true
	}
	
	else if (document.getElementById) {
		var dShow = document.getElementById('tbl' + showTab + 'Content')
		var dShowLine = document.getElementById('tbl' + hideTab + 'Line')
		var dShowLabel = document.getElementById('td' + showTab + 'Label')
		var dHide = document.getElementById('tbl' + hideTab + 'Content')
		var dHideLine = document.getElementById('tbl' + showTab + 'Line')
		var dHideLabel = document.getElementById('td' + hideTab + 'Label')
		doIt = true	
	}
	if(doIt) {
		dShow.className = 'Visible'
		dShowLine.className = 'Visible'
		dShowLabel.bgColor = '#FFFFFF'
		dHideLabel.bgColor = '#F8EBF9'
		dHide.className = 'Hidden'
		dHideLine.className = 'Hidden'
		dShowLabel.className = 'Label'
		dHideLabel.className = ''
		dShowLabel.style.backgroundImage = 'url(facelift/tab_light_mid.gif)'; 
		dHideLabel.style.backgroundImage = 'url(facelift/tab_dark_mid.gif)';
		if(document.images) { 
			var hideImageChar = currentTab//.substr(0, 1); 
			var transImageChar = showTab//.substr(0, 1); 
			if(hideTab == 1) { var stopper1 = '_stopper' } else { var stopper1 = '' }; 
			if(showTab == 1) { var stopper2 = '_stopper' } else { var stopper2 = '' }; 
			document.images['LT' + transImageChar].src = 'facelift/tab_light_left' + stopper2 + '.gif'; 
			document.images['RT' + transImageChar].src = 'facelift/tab_light_right.gif'; 
			document.images['LT' + hideImageChar].src = 'facelift/tab_dark_left' + stopper1 + '.gif'; 
			document.images['RT' + hideImageChar].src = 'facelift/tab_dark_right.gif';
		}
	}
	else {
		alert('Your browser is too old to use this function.')
	}
	currentTab = showTab
}




var currentWebcam = 10
function switchWebcam(showWebcam) {
	if(showWebcam == currentWebcam) { return }
	var hideWebcam = currentWebcam
	var doIt = false
	if(document.all) {
		var dShow = document.all['tblW' + showWebcam + 'Content']
		var dShowLine = document.all['tblW' + hideWebcam + 'Line']
		var dShowLabel = document.all['tdW' + showWebcam + 'Label']
		var dHide = document.all['tblW' + hideWebcam + 'Content']
		var dHideLine = document.all['tblW' + showWebcam + 'Line']
		var dHideLabel = document.all['tdW' + hideWebcam + 'Label']
		doIt = true
	}	
	else if (document.getElementById) {
		var dShow = document.getElementById('tblW' + showWebcam + 'Content')
		var dShowLine = document.getElementById('tblW' + hideWebcam + 'Line')
		var dShowLabel = document.getElementById('tdW' + showWebcam + 'Label')
		var dHide = document.getElementById('tblW' + hideWebcam + 'Content')
		var dHideLine = document.getElementById('tblW' + showWebcam + 'Line')
		var dHideLabel = document.getElementById('tdW' + hideWebcam + 'Label')
		doIt = true	
	}
	if(doIt) {
		dShow.className = 'Visible'
		dShowLine.className = 'Visible'
		dShowLabel.bgColor = '#FFFFFF'
		dHideLabel.bgColor = '#F8EBF9'
		dHide.className = 'Hidden'
		dHideLine.className = 'Hidden'
		dShowLabel.className = 'Label'
		dHideLabel.className = ''
		dShowLabel.style.backgroundImage = 'url(facelift/tab_light_mid.gif)'; dHideLabel.style.backgroundImage = 'url(facelift/tab_dark_mid.gif)';
		if(document.images) { 
			var hideImageChar = currentWebcam//.substr(0, 1); 
			var transImageChar = showWebcam//.substr(0, 1); 
			if(hideWebcam == 10) { var stopper1 = '_stopper' } else { var stopper1 = '' }; 
			if(showWebcam == 10) { var stopper2 = '_stopper' } else { var stopper2 = '' }; 
			document.images['LTW' + transImageChar].src = 'facelift/tab_light_left' + stopper2 + '.gif'; 
			document.images['RTW' + transImageChar].src = 'facelift/tab_light_right.gif'; 
			document.images['LTW' + hideImageChar].src = 'facelift/tab_dark_left' + stopper1 + '.gif'; 
			document.images['RTW' + hideImageChar].src = 'facelift/tab_dark_right.gif';
		}
	}
	else {
		alert('Your browser is too old to use this function.')
	}
	currentWebcam = showWebcam
}
var currentSMSChat = 10
function switchSMSChat(showSMSChat) {
	if(showSMSChat == currentSMSChat) { return }
	var hideSMSChat = currentSMSChat
	var doIt = false
	if(document.all) {
		var dShow = document.all['tblW' + showSMSChat + 'Content']
		var dShowLine = document.all['tblW' + hideSMSChat + 'Line']
		var dShowLabel = document.all['tdW' + showSMSChat + 'Label']
		var dHide = document.all['tblW' + hideSMSChat + 'Content']
		var dHideLine = document.all['tblW' + showSMSChat + 'Line']
		var dHideLabel = document.all['tdW' + hideSMSChat + 'Label']
		doIt = true
	}
	
	else if (document.getElementById) {
		var dShow = document.getElementById('tblW' + showSMSChat + 'Content')
		var dShowLine = document.getElementById('tblW' + hideSMSChat + 'Line')
		var dShowLabel = document.getElementById('tdW' + showSMSChat + 'Label')
		var dHide = document.getElementById('tblW' + hideSMSChat + 'Content')
		var dHideLine = document.getElementById('tblW' + showSMSChat + 'Line')
		var dHideLabel = document.getElementById('tdW' + hideSMSChat + 'Label')
		doIt = true	
	}
	if(doIt) {
		dShow.className = 'Visible'
		dShowLine.className = 'Visible'
		dShowLabel.bgColor = '#FFFFFF'
		dHideLabel.bgColor = '#F8EBF9'
		dHide.className = 'Hidden'
		dHideLine.className = 'Hidden'
		dShowLabel.className = 'Label'
		dHideLabel.className = ''
		dShowLabel.style.backgroundImage = 'url(facelift/tab_light_mid.gif)'; dHideLabel.style.backgroundImage = 'url(facelift/tab_dark_mid.gif)';
		if(document.images) { 
			var hideImageChar = currentSMSChat//.substr(0, 1); 
			var transImageChar = showSMSChat//.substr(0, 1); 
			if(hideSMSChat == 10) { var stopper1 = '_stopper' } else { var stopper1 = '' }; 
			if(showSMSChat == 10) { var stopper2 = '_stopper' } else { var stopper2 = '' }; 
			document.images['LTW' + transImageChar].src = 'facelift/tab_light_left' + stopper2 + '.gif'; 
			document.images['RTW' + transImageChar].src = 'facelift/tab_light_right.gif'; 
			document.images['LTW' + hideImageChar].src = 'facelift/tab_dark_left' + stopper1 + '.gif'; 
			document.images['RTW' + hideImageChar].src = 'facelift/tab_dark_right.gif';
		}
	}
	else {
		alert('Your browser is too old to use this function.')
	}
	currentSMSChat = showSMSChat
}
var currentPhoneChat = 10
function switchPhoneChat(showPhoneChat) {
	if(showPhoneChat == currentPhoneChat) { return }
	var hidePhoneChat = currentPhoneChat
	var doIt = false
	if(document.all) {
		var dShow = document.all['tblP' + showPhoneChat + 'Content']
		var dShowLine = document.all['tblP' + hidePhoneChat + 'Line']
		var dShowLabel = document.all['tdP' + showPhoneChat + 'Label']
		var dHide = document.all['tblP' + hidePhoneChat + 'Content']
		var dHideLine = document.all['tblP' + showPhoneChat + 'Line']
		var dHideLabel = document.all['tdP' + hidePhoneChat + 'Label']
		doIt = true
	}
	
	else if (document.getElementById) {
		var dShow = document.getElementById('tblP' + showPhoneChat + 'Content')
		var dShowLine = document.getElementById('tblP' + hidePhoneChat + 'Line')
		var dShowLabel = document.getElementById('tdP' + showPhoneChat + 'Label')
		var dHide = document.getElementById('tblP' + hidePhoneChat + 'Content')
		var dHideLine = document.getElementById('tblP' + showPhoneChat + 'Line')
		var dHideLabel = document.getElementById('tdP' + hidePhoneChat + 'Label')
		doIt = true	
	}
	if(doIt) {
		dShow.className = 'Visible'
		dShowLine.className = 'Visible'
		dShowLabel.bgColor = '#FFFFFF'
		dHideLabel.bgColor = '#F8EBF9'
		dHide.className = 'Hidden'
		dHideLine.className = 'Hidden'
		dShowLabel.className = 'Label'
		dHideLabel.className = ''
		dShowLabel.style.backgroundImage = 'url(facelift/tab_light_mid.gif)'; dHideLabel.style.backgroundImage = 'url(facelift/tab_dark_mid.gif)';
		if(document.images) { 
			var hideImageChar = currentPhoneChat//.substr(0, 1); 
			var transImageChar = showPhoneChat//.substr(0, 1); 
			if(hidePhoneChat == 10) { var stopper1 = '_stopper' } else { var stopper1 = '' }; 
			if(showPhoneChat == 10) { var stopper2 = '_stopper' } else { var stopper2 = '' }; 
			document.images['LTP' + transImageChar].src = 'facelift/tab_light_left' + stopper2 + '.gif'; 
			document.images['RTP' + transImageChar].src = 'facelift/tab_light_right.gif'; 
			document.images['LTP' + hideImageChar].src = 'facelift/tab_dark_left' + stopper1 + '.gif'; 
			document.images['RTP' + hideImageChar].src = 'facelift/tab_dark_right.gif';
		}
	}
	else {
		alert('Your browser is too old to use this function.')
	}
	currentPhoneChat = showPhoneChat
}
var curGT = 0, startGT = 0
function sGT(showGT) {
	if(showGT == curGT) { return }; var hideGT = curGT; var doIt = false;
	if(document.all) { var dShow = document.all['content' + showGT]; var dShowButton = document.all['btn' + showGT]; var dHide = document.all['content' + hideGT]; var dHideButton = document.all['btn' + hideGT]; var dShowAnchor = document.all['anc' + showGT]; doIt = true }
	else if (document.getElementById) { var dShow = document.getElementById('content' + showGT); var dShowButton = document.getElementById('btn' + showGT); var dHide = document.getElementById('content' + hideGT); var dHideButton = document.getElementById('btn' + hideGT); var dShowAnchor = document.getElementById('anc' + showGT); doIt = true }
	if(doIt) { if(hideGT == startGT ) { var stopper1 = '-stopper' } else { var stopper1 = '' };  if(showGT == startGT ) { var stopper2 = '-stopper' } else { var stopper2 = '' }; dShow.className = 'Padded Visible'; dShowButton.className = 'on' + stopper2; dHide.className = 'Padded Hidden'; dHideButton.className = 'off' + stopper1; dShowAnchor.blur(); }
	else { alert('Your browser is too old to use this function.') }
	curGT = showGT
}
var curOGT = 0, startOGT = 0
function sOGT(showOGT) {
	if(showOGT == curOGT) { return }; var hideOGT = curOGT; var doIt = false;
	if(document.all) { var dShow = document.all['contentO' + showOGT]; var dShowButton = document.all['btnO' + showOGT]; var dHide = document.all['contentO' + hideOGT]; var dHideButton = document.all['btnO' + hideOGT]; var dShowAnchor = document.all['ancO' + showOGT]; doIt = true }
	else if (document.getElementById) { var dShow = document.getElementById('contentO' + showOGT); var dShowButton = document.getElementById('btnO' + showOGT); var dHide = document.getElementById('contentO' + hideOGT); var dHideButton = document.getElementById('btnO' + hideOGT); var dShowAnchor = document.getElementById('ancO' + showOGT); doIt = true }
	if(doIt) { if(hideOGT == startOGT ) { var stopper1 = '-stopper' } else { var stopper1 = '' };  if(showOGT == startOGT ) { var stopper2 = '-stopper' } else { var stopper2 = '' }; dShow.className = 'Padded Visible'; dShowButton.className = 'on' + stopper2; dHide.className = 'Padded Hidden'; dHideButton.className = 'off' + stopper1; dShowAnchor.blur(); }
	else { alert('Your browser is too old to use this function.') }
	curOGT = showOGT
}
var curBGT = 0, startBGT = 0
function sBGT(showBGT) {
	if(showBGT == curBGT) { return }; var hideBGT = curBGT; var doIt = false;
	if(document.all) { var dShow = document.all['contentB' + showBGT]; var dShowButton = document.all['btnB' + showBGT]; var dHide = document.all['contentB' + hideBGT]; var dHideButton = document.all['btnB' + hideBGT]; var dShowAnchor = document.all['ancB' + showBGT]; doIt = true }
	else if (document.getElementById) { var dShow = document.getElementById('contentB' + showBGT); var dShowButton = document.getElementById('btnB' + showBGT); var dHide = document.getElementById('contentB' + hideBGT); var dHideButton = document.getElementById('btnB' + hideBGT); var dShowAnchor = document.getElementById('ancB' + showBGT); doIt = true }
	if(doIt) { if(hideBGT == startBGT ) { var stopper1 = '-stopper' } else { var stopper1 = '' };  if(showBGT == startBGT ) { var stopper2 = '-stopper' } else { var stopper2 = '' }; dShow.className = 'Padded Visible'; dShowButton.className = 'on' + stopper2; dHide.className = 'Padded Hidden'; dHideButton.className = 'off' + stopper1; dShowAnchor.blur(); }
	else { alert('Your browser is too old to use this function.') }
	curBGT = showBGT
}

