// JavaScript Document
var strBackupImageSrc;
function imageOnMouseEvent( strEvent, objImage, strOverImgSrc)
{
	if (strEvent == "over")
	{
		strBackupImageSrc	= document[ objImage].src;
		document[ objImage].src		= strOverImgSrc;
	}
	else
		document[ objImage].src = strBackupImageSrc;	// Restore Image
}



var intBusinessTab = 11
function moveTab2( intTabBusiness)
{
	var strTargetSrc = "";
	if(intBusinessTab == intTabBusiness) return;
	if (intTabBusiness == 11)
	{
		imageOnMouseEvent('over', 'imgTab11', 'images/saup_roll_01_on.gif'); 
		imageOnMouseEvent('over', 'imgTab21', 'images/saup_roll_02.gif');
		imageOnMouseEvent('over', 'imgTab31', 'images/saup_roll_03.gif');
		imageOnMouseEvent('over', 'imgTab41', 'images/saup_roll_04.gif');
		
	}
	else if (intTabBusiness == 21)
	{
		imageOnMouseEvent('over', 'imgTab21', 'images/saup_roll_02_on.gif'); 
		imageOnMouseEvent('over', 'imgTab11', 'images/saup_roll_01.gif'); 
		imageOnMouseEvent('over', 'imgTab31', 'images/saup_roll_03.gif'); 
		imageOnMouseEvent('over', 'imgTab41', 'images/saup_roll_04.gif');
		
	}
	else if (intTabBusiness == 31)
	{
		imageOnMouseEvent('over', 'imgTab31', 'images/saup_roll_03_on.gif'); 
		imageOnMouseEvent('over', 'imgTab11', 'images/saup_roll_01.gif'); 
		imageOnMouseEvent('over', 'imgTab21', 'images/saup_roll_02.gif'); 
		imageOnMouseEvent('over', 'imgTab41', 'images/saup_roll_04.gif');
		}
	else if (intTabBusiness == 41)
	{
		imageOnMouseEvent('over', 'imgTab41', 'images/saup_roll_04_on.gif'); 
		imageOnMouseEvent('over', 'imgTab11', 'images/saup_roll_01.gif'); 
		imageOnMouseEvent('over', 'imgTab21', 'images/saup_roll_02.gif'); 
		imageOnMouseEvent('over', 'imgTab31', 'images/saup_roll_03.gif');
		
	}
			
	document.all["divTab"+intBusinessTab].style.display	= "none";
	document.all["divTab"+ intTabBusiness].style.display= "";
	intBusinessTab = intTabBusiness;
}




function showtab(m,n,count){
	var strPic1;
	var strPic2;
	var tdcolor;
	if (m==1) {
	strPic1='url(/images/bg_ggfw_004.gif)';
	strPic2='url(/images/bg_ggfw_005.gif)';
		for(var i=1;i<=count;i++){
		if (i==n){			
			getObject(m+'_'+i).style.background=strPic1;
			getObject('td_'+m+'_'+i).style.color='#ffffff';
			getObject('tab_'+m+'_'+i).style.display='';
			}
		else {
			getObject(m+'_'+i).style.background=strPic2;
			getObject('td_'+m+'_'+i).style.color='#000000';
			getObject('tab_'+m+'_'+i).style.display='none';
			}
	}
}
	if (m==2) {
	tdcolor='#94733D';
		for(var i=1;i<=count;i++){
		if (i==n){			
			getObject('bg_'+m+'_'+i).style.backgroundColor=tdcolor;
			getObject('td_'+m+'_'+i).style.color='#ffffff';
			getObject('tab_'+m+'_'+i).style.display='';
			}
		else {
			getObject('bg_'+m+'_'+i).style.backgroundColor='#ffffff';
			getObject('td_'+m+'_'+i).style.color='#000000';
			getObject('tab_'+m+'_'+i).style.display='none';
			}
	}
}
	if (m==3) {
	tdcolor='#989898';
		for(var i=1;i<=count;i++){
		if (i==n){			
			getObject('bg_'+m+'_'+i).style.backgroundColor=tdcolor;
			getObject('td_'+m+'_'+i).style.color='#ffffff';
			getObject('tab_'+m+'_'+i).style.display='';
			}
		else {
			getObject('bg_'+m+'_'+i).style.backgroundColor='#ffffff';
			getObject('td_'+m+'_'+i).style.color='#000000';
			getObject('tab_'+m+'_'+i).style.display='none';
			}
	}
}
	else {
		for(var i=1;i<=count;i++){
		if (i==n){			
			getObject('tab_'+m+'_'+i).style.display='';
			}
		else {
			getObject('tab_'+m+'_'+i).style.display='none';
			}
	}
}
}
function getObject(objectId) {
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId);
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId);
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId];
    } else {
	return false;
    }
}