
function selecterStart(URL,SEPOS){
	if(URL != ''){
		if(window.location.href.indexOf(URL) > -1){
			if(SEPOS){
				document.write('<div id="current">');
			}else{
				document.write('</div>');
			}
		}else{
			if(SEPOS){
				document.write('<div id="current_off">');
			}else{
				document.write('</div>');
			}
		}
	}else{
		if(window.location.href.indexOf(".html") > -1){
			if(SEPOS){
				document.write('<div id="current_off">');
			}else{
				document.write('</div>');
			}
		}else{
			if(SEPOS){
				document.write('<div id="current">');
			}else{
				document.write('</div>');
			}
		}
	}
}

function selecterHeadNaviStart(){

//1段目ヘッダーナビ
	if(window.location.href.indexOf('/topics/') > -1){
		document.Topics.src = searchIndex(document.Topics.src) + 'main_topics_over.gif';
	}
	if(window.location.href.indexOf('/profile/') > -1){
		document.Profile.src = searchIndex(document.Profile.src) + 'main_profile_over.gif';
	}
	if(window.location.href.indexOf('/solution_service/') > -1){
		document.SolutionServic.src = searchIndex(document.SolutionServic.src) + 'main_solution_service_over.gif';
	}
	if(window.location.href.indexOf('/ibps/') > -1){
		document.IBPS.src = searchIndex(document.IBPS.src) + 'main_ibps_over.gif';
	}
	if(window.location.href.indexOf('/case_study/') > -1){
		document.CaseStudy.src = searchIndex(document.CaseStudy.src) + 'main_case_study_over.gif';
	}
	if(window.location.href.indexOf('/recruit/') > -1){
		document.SeminarEvent.src = searchIndex(document.SeminarEvent.src) + 'main_seminar_event_over.gif';
	}
	if(window.location.href.indexOf('/seminar_event/') > -1){
		document.Recruit.src = searchIndex(document.Recruit.src) + 'main_recruit_over.gif';
	}
//2段目ヘッダーナビ
	if(window.location.href.indexOf('/contact/') > -1){
		document.Contact.src = searchIndex(document.Contact.src) + 'util_contact_over.gif';
	}
	if(window.location.href.indexOf('/sitemap/') > -1){
		document.SiteMap.src = searchIndex(document.SiteMap.src) + 'util_sitemap_over.gif';
	}
	if(window.location.href.indexOf('/privacypolicy/') > -1){
		document.privacypolicy.src = searchIndex(document.privacypolicy.src) + 'util_privacypolicy_over.gif';
	}
	if(window.location.href.indexOf('/copyright/') > -1){
		document.Copyright.src = searchIndex(document.Copyright.src) + 'util_copyright_over.gif';
	}

}

function searchIndex(STRPATH){
	var numlastindex;
	var srtre
		numlastindex = STRPATH.lastIndexOf('/common/');
		srtre = STRPATH.substring(0,numlastindex+8);
		return srtre+'image/';
}
