
	var gkktab=Array();
	function gkktab_init(id,n,def){
		gkktab[id]=Array();
		gkktab[id]['tabs']=Array();
		gkktab[id]['a']=Array();
		if(!def)def=1;
		for(i=1;i<=n;i++){
			gkktab[id]['tabs'][i]=document.getElementById(''+id+'_'+i+'');
			gkktab[id]['a'][i]=document.getElementById(''+id+'_'+i+'_a');
			gkktab[id]['a'][i].className=''+id+'_inactive';
			if(def != i) gkktab[id]['tabs'][i].style.display='none';
		}
		try{gkktab[id]['tabs'][def].style.display='block';}catch(e){}
		try{gkktab[id]['a'][def].className=''+id+'_active';}catch(e){}
		try{gkktab[id]['last']=def;}catch(e){}
	}
	function gkktab_click(id,i){
		if(i==gkktab[id]['last']) return; 
		try{
			
		gkktab[id]['tabs'][gkktab[id]['last']].style.display='none';
		}catch(e){}
		try{
			
		gkktab[id]['a'][gkktab[id]['last']].className=''+id+'_inactive';
		}catch(e){}
		try{
		gkktab[id]['tabs'][i].style.display='block';
			
		}catch(e){}
		try{
		gkktab[id]['a'][i].className=''+id+'_active';
			
		}catch(e){}
		gkktab[id]['last']=i;
	}
function Getcurrentpage() { 
	if (!document.getElementsByTagName) return;  
	var anchors = document.getElementsByTagName("a");  
	var thispage = location.href.replace(new RegExp(/\/$/),""); 
	//	alert(thispage);
	for (var i=0; i<anchors.length; i++) {  
		var anch = anchors[i]; 
		thisHREF = anch.getAttribute("href").replace(new RegExp(/\/$/),"");
		if ((thisHREF == thispage) ||   thispage.substr( (thisHREF.length )* -1) ==  thisHREF || (location.protocol + "//" + location.hostname + thisHREF == thispage)) { 
			anch.className = (anch.className?anch.className+' ':'')+"current";  
			//return; 
		} 
	}  
}  
function onLoadFunct(){
	Getcurrentpage();
	/*fixExtSgif();
	if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ 
		var ieversion=new Number(RegExp.$1);
	}
	if(ieversion<=7){
		
	}*/
	
}


