$(document).ready(function(){	menu = "";				   	if( location.href.match(/series=Z-eco&/)){ menu = "amp_01"; }	else if( location.href.match(/series=Z&/)){ menu = "amp_02"; }	else if( location.href == "http://www.optex-fa.jp/products/photo_sensor/amp/index.html#01" ){ menu = "amp_03"; }	else if( location.href.match(/series=E&/)){ menu = "amp_04"; }	else if( location.href.match(/series=W2&/)){ menu = "amp_05"; }	else if( location.href.match(/series=J&/)){ menu = "amp_06"; }	else if( location.href.match(/series=K&/)){ menu = "amp_07"; }	else if( location.href.match(/series=S&/)){ menu = "amp_08"; }	else if( location.href.match(/series=S2&/)){ menu = "amp_09"; }	else if( location.href == "http://www.optex-fa.jp/products/photo_sensor/amp/index.html#02" ){ menu = "amp_10"; }	else if( location.href == "http://www.optex-fa.jp/products/photo_sensor/amp/index.html#03" ){ menu = "amp_11"; }	else if( location.href == "http://www.optex-fa.jp/products/photo_sensor/amp/index.html#03" ){ menu = "amp_12"; }	else if( location.href.match(/series=C&/)){ menu = "amp_13"; }	else if( location.href.match(/series=J2D&/)){ menu = "amp_14"; }	else if( location.href.match(/series=V2&/)){ menu = "amp_15"; }	else if( location.href.match(/series=V&/)){ menu = "amp_16"; }	else if( location.href == "http://www.optex-fa.jp/products/photo_sensor/amp/index.html#04" ){ menu = "amp_17"; }	else if( location.href == "http://www.optex-fa.jp/products/photo_sensor/amp/index.html#04" ){ menu = "amp_18"; }	else if( location.href == "http://www.optex-fa.jp/products/photo_sensor/amp/index.html#05" ){ menu = "amp_19"; }	else if( location.href == "http://www.optex-fa.jp/products/photo_sensor/amp/index.html#05" ){ menu = "amp_20"; }	else if( location.href.match(/series=WF&/)){ menu = "amp_21"; }	else if( location.href.match(/series=C2&/)){menu = "amp_22";}	else if( location.href.match(/series=Z-M&/)){menu = "amp_23";}	else if( location.href.match(/series=D2RF&/)){ menu = "fiber_01"; }	else if( location.href.match(/series=BRF\/BGF\/BIF&/)){ menu = "fiber_02"; }	else if( location.href.match(/series=JRF&/)){ menu = "fiber_03"; }	else if( location.href.match(/series=NF&/)){ menu = "fiberp_04"; }	else if( location.href.match(/series=NF-easymount&/)){ menu = "fiber_05"; }	else if( location.href.match(/series=NF-screwmount&/)){ menu = "fiber_06"; }	else if( location.href.match(/series=NF-cylindrical&/)){ menu = "fiber_07"; }	else if( location.href.match(/series=NF-sleeve\[headview\]&/)){ menu = "fiber_08"; }	else if( location.href.match(/series=NF-sleeve\[sideview\]&/)){ menu = "fiber_09"; }	else if( location.href.match(/series=NF-R4mm&/)){ menu = "fiber_10"; }	else if( location.href.match(/series=NF-R1mm&/)){ menu = "fiber_11"; }	else if( location.href.match(/series=NF-R2mm&/)){ menu = "fiber_12"; }	else if( location.href.match(/series=NF-retroreflective&/)){ menu = "fiber_13"; }	else if( location.href.match(/series=NF-smallobjects&/)){ menu = "fiber_14"; }	else if( location.href.match(/series=NF-screen\/array&/)){ menu = "fiber_15"; }	else if( location.href.match(/series=NF-limitedrange&/)){ menu = "fiber_16"; }	else if( location.href.match(/series=NF-narrowview&/)){ menu = "fiber_17"; }	else if( location.href.match(/series=NF-130C&/)){ menu = "fiber_18"; }	else if( location.href.match(/series=NF-180-200C&/)){ menu = "fiber_19"; }	else if( location.href.match(/series=NF-250-350C&/)){ menu = "fiber_20"; }	else if( location.href.match(/series=NF-chemicalproof&/)){ menu = "fiber_21"; }	else if( location.href.match(/series=NF-vacuum&/)){ menu = "fiber_22"; }	else if( location.href.match(/series=NF-liquid&/)){ menu = "fiber_23"; }	else if( location.href.match(/series=NF-lens&/)){ menu = "fiber_24"; }	else if( location.href.match(/series=D3RF&/)){ menu = "fiber_25"; }			else if( location.href.match(/series=R&/)){ menu = "separate_amp_01"; }	else if( location.href.match(/series=Z-L&/)){ menu = "laser_01"; }	else if( location.href.match(/series=DS&/)){ menu = "laser_02"; }	else if( location.href.match(/series=D&/)){ menu = "laser_03"; }	else if( location.href == "http://www.optex-fa.jp/products/photo_sensor/laser/index.html#01" ){ menu = "laser_04"; }	else if( location.href == "http://www.optex-fa.jp/products/photo_sensor/laser/index.html#02" ){ menu = "laser_05"; }	else if( location.href.match(/series=DR-Q&/)){ menu = "transparency_01"; }	else if( location.href.match(/series=ZR-QX\/ZR-Q&/)){ menu = "transparency_02"; }	else if( location.href.match(/series=JR-Q&/)){ menu = "transparency_03"; }	else if( location.href.match(/series=KR-Q\/SR-Q&/)){ menu = "transparency_04"; }	else if( location.href == "http://www.optex-fa.jp/products/photo_sensor/transparency/index.html#01" ){ menu = "transparency_05"; }	else if( location.href == "http://www.optex-fa.jp/products/photo_sensor/transparency/index.html#01" ){ menu = "transparency_06"; }	else if( location.href.match(/series=BGS-DL&/)){ menu = "bgs_01"; }	else if( location.href.match(/series=BGS-D\/FGS-D&/)){ menu = "bgs_02"; }	else if( location.href.match(/series=BGS-ZL\/BGS-Z&/)){ menu = "bgs_03"; }	else if( location.href.match(/series=BGS-S\/BGS-2S&/)){ menu = "bgs_04"; }	else if( location.href.match(/series=BGS&/)){ menu = "bgs_05"; }	else if( location.href.match(/series=WT2S&/)){ menu = "bgs_06"; }	else if( location.href == "http://www.optex-fa.jp/products/photo_sensor/bgs/index.html#01" ){ menu = "bgs_07"; }	else if( location.href == "http://www.optex-fa.jp/products/photo_sensor/bgs/index.html#01" ){ menu = "bgs_08"; }	else if( location.href == "http://www.optex-fa.jp/products/photo_sensor/bgs/index.html#02" ){ menu = "bgs_09"; }	else if( location.href == "http://www.optex-fa.jp/products/photo_sensor/bgs/index.html#02" ){ menu = "bgs_10"; }	else if( location.href.match(/series=BGS-DL\/Volume&/)){ menu = "bgs_11"; }	else if( location.href.match(/series=BGS-3J\/-H\/-S&/)){ menu = "bgs_12"; }	else if( location.href.match(/series=BGS-V&/)){ menu = "bgs_13"; }	else if( location.href.match(/series=BGS-V2000&/)){ menu = "bgs_14"; }	else if( location.href == "http://www.optex-fa.jp/products/photo_sensor/bgs/index.html#03" ){ menu = "bgs_15"; }	else if( location.href == "http://www.optex-fa.jp/products/photo_sensor/bgs/index.html#03" ){ menu = "bgs_16"; }	else if( location.href.match(/series=WT24&/)){ menu = "bgs_17"; }	else if( location.href.match(/series=WT45&/)){ menu = "bgs_18"; }	else if( location.href.match(/series=DS60&/)){ menu = "bgs_19"; }	else if( location.href.match(/series=BGS-ZM&/)){ menu = "bgs_22"; }	else if( location.href.match(/series=WTB4\/WTV4&/)){ menu = "special_01"; }	else if( location.href.match(/series=W4T&/)){ menu = "special_02"; }	else if( location.href == "http://www.optex-fa.jp/products/photo_sensor/special/index.html#02" ){ menu = "special_03"; }	else if( location.href == "http://www.optex-fa.jp/products/photo_sensor/special/index.html#02" ){ menu = "special_04"; }	else if( location.href.match(/series=DM&/)){ menu = "color_01"; }	else if( location.href.match(/series=CS\/CSM1&/)){ menu = "color_02"; }	else if( location.href.match(/series=KT10W&/)){ menu = "color_03"; }	else if( location.href.match(/series=KT5W&/)){ menu = "color_04"; }	else if( location.href.match(/series=KT5G&/)){ menu = "color_05"; }	else if( location.href.match(/series=KT3&/)){ menu = "color_06"; }	else if( location.href.match(/series=J3M&/)){ menu = "color_07"; }	else if( location.href.match(/series=NT6&/)){ menu = "color_08"; }	else if( location.href.match(/series=LUT&/)){ menu = "color_09"; }	else if( location.href.match(/series=CD5&/)){ menu = "dsp_sensor_1_01"; }	else if( location.href.match(/series=CD4&/)){ menu = "dsp_sensor_1_02"; }	else if( location.href.match(/series=CD33&/)){ menu = "dsp_sensor_1_03"; }	else if( location.href.match(/series=CD3&/)){ menu = "dsp_sensor_1_04"; }	else if( location.href.match(/series=CD1&/)){ menu = "dsp_sensor_1_05"; }	else if( location.href == "http://www.optex-fa.jp/products/dsp_sensor/index02.html#01" ){ menu = "dsp_sensor_1_06"; }	else if( location.href.match(/series=SHP&/)){ menu = "dsp_sensor_2_01"; }	else if( location.href.match(/series=UQ1&/)){ menu = "dsp_sensor_3_01"; }		else if( location.href.match(/series=MVS-PM&/)){ menu = "vision_multi_camera_01"; }	else if( location.href.match(/series=MVS-EM&/)){ menu = "vision_multi_camera_02"; }	else if( location.href.match(/series=MVS-OCR&/)){ menu = "vision_multi_camera_03"; }		else if( location.href.match(/series=CVSE1-R&/)){ menu = "vision_all_in_one_01"; }	else if( location.href.match(/series=CVS1&/)){ menu = "vision_all_in_one_02"; }	else if( location.href.match(/series=CVS2&/)){ menu = "vision_all_in_one_03"; }	else if( location.href.match(/series=CVS3&/)){ menu = "vision_all_in_one_04"; }	else if( location.href.match(/series=CVS4&/)){ menu = "vision_all_in_one_05"; }	else if( location.href.match(/series=CVS4-R&/)){ menu = "vision_all_in_one_06"; }	else if( location.href.match(/series=CVS1-R&/)){ menu = "vision_all_in_one_07"; }	else if( location.href.match(/series=CVS2-R&/)){ menu = "vision_all_in_one_08"; }	else if( location.href.match(/series=CVS3-R&/)){ menu = "vision_all_in_one_09"; }	else if( location.href == "http://www.optex-fa.jp/products/vision/cvse1_r/" ){ menu = "vision_all_in_one_10"; }		else if( location.href == "http://www.optex-fa.jp/products/vision/index02.html#03_1" ){ menu = "decsys_01"; }	else if( location.href == "http://www.optex-fa.jp/products/vision/index02.html#03_1" ){ menu = "decsys_02"; }	else if( location.href == "http://www.optex-fa.jp/products/vision/index02.html#03_2" ){ menu = "decsys_03"; }	else if( location.href == "http://www.optex-fa.jp/products/vision/index02.html#03_2" ){ menu = "decsys_04"; }	else if( location.href == "http://www.optex-fa.jp/products/vision/index02.html#03_3" ){ menu = "decsys_05"; }	else if( location.href == "http://www.optex-fa.jp/products/vision/index02.html#03_3" ){ menu = "decsys_06"; }	else if( location.href == "http://www.optex-fa.jp/products/vision/index02.html#03_4" ){ menu = "decsys_07"; }	else if( location.href == "http://www.optex-fa.jp/products/vision/index02.html#03_4" ){ menu = "decsys_08"; }	else if( location.href == "http://www.optex-fa.jp/products/vision/index02.html#03_5" ){ menu = "decsys_09"; }	else if( location.href == "http://www.optex-fa.jp/products/vision/index02.html#03_5" ){ menu = "decsys_10"; }	else if( location.href == "http://www.optex-fa.jp/products/vision/index02.html#03_6" ){ menu = "decsys_11"; }	else if( location.href == "http://www.optex-fa.jp/products/vision/index02.html#04" ){ menu = "jfas_01"; }	else if( location.href.match(/series=OPB&/)){ menu = "led_01"; }	else if( location.href.match(/series=OPDR&/)){ menu = "led_02"; }	else if( location.href.match(/series=OPDR-F&/)){ menu = "led_03"; }	else if( location.href.match(/series=OPDR-LA&/)){ menu = "led_04"; }	else if( location.href.match(/series=OPDR-H&/)){ menu = "led_05"; }	else if( location.href.match(/series=OPDB&/)){ menu = "led_06"; }	else if( location.href.match(/series=OPDB-LSE&/)){ menu = "led_07"; }	else if( location.href.match(/series=OPIR\/OPIR-S&/)){ menu = "led_08"; }	else if( location.href.match(/series=OPLR&/)){ menu = "led_09"; }	else if( location.href.match(/series=OPLQ&/)){ menu = "led_10"; }	else if( location.href.match(/series=OPDB-RGB&/)){ menu = "led_11"; }	else if( location.href.match(/series=OPLR-RGB&/)){ menu = "led_12"; }	else if( location.href.match(/series=OPSM&/)){ menu = "led_13"; }	else if( location.href.match(/series=OPEM&/)){ menu = "led_14"; }	else if( location.href.match(/series=OPCX&/)){ menu = "led_15"; }	else if( location.href.match(/series=OPID&/)){ menu = "led_16"; }	else if( location.href.match(/series=OPS\/OPHS&/)){ menu = "led_17"; }	else if( location.href.match(/series=UV&/)){ menu = "led_18"; }	else if( location.href.match(/series=IR&/)){ menu = "led_19"; }	else if( location.href.match(/series=OPR&/)){ menu = "led_20"; }	else if( location.href.match(/series=OPPCW&/)){ menu = "led_power_01"; }	else if( location.href.match(/series=OPPA&/)){ menu = "led_power_02"; }	else if( location.href.match(/series=OPP\/OPPW&/)){ menu = "led_power_03"; }	else if( location.href.match(/series=OPPD&/)){ menu = "led_power_04"; }	else if( location.href.match(/series=OPPF&/)){ menu = "led_power_05"; }		else if( location.href.match(/series=DF&/)){ menu = "led_opti_acc_01"; }	else if( location.href.match(/series=PL&/)){ menu = "led_opti_acc_02"; }	else if( location.href.match(/series=OP&/)){ menu = "led_opti_acc_03"; }	else if( location.href.match(/series=OPAU&/)){ menu = "led_opti_acc_04"; }	else if( location.href.match(/series=MDF&/)){ menu = "led_monitoring_01"; }	else if( location.href == "http://www.optex-fa.jp/products/dst_sensor/index.html" ){ menu = "other_navi_01"; }	else if( location.href == "http://www.optex-fa.jp/products/u_sonic/index.html" ){ menu = "other_navi_02"; }	else if( location.href == "http://www.optex-fa.jp/products/light_grid/index.html" ){ menu = "other_navi_03"; }	else if( location.href == "http://www.optex-fa.jp/products/prx_sensor/index.html" ){ menu = "other_navi_04"; }	else if( location.href == "http://www.optex-fa.jp/products/sensor_ctrl/index.html" ){ menu = "other_navi_05"; }	else if( location.href == "http://www.optex-fa.jp/products/sensor_ctrl/tmc/index.html" ){ menu = "other_navi_05"; }	else if( location.href == "http://www.optex-fa.jp/products/encoder/index.html" ){ menu = "other_navi_06"; }	else if( location.href == "http://www.optex-fa.jp/products/thermo/index.html" ){ menu = "other_navi_07"; }	else if( location.href == "http://www.optex-fa.jp/products/discon/index.html" ){ menu = "other_navi_08"; }		if( menu != ""){ $( 'li.' + menu ).addClass( menu + '_on' ); }	$("ul.side_menu_close").hide();		$('#side_menu_large > div.photo_sensor'			).click(function(){ $(this).next().slideToggle('500'); });	$('#side_menu_large > div.dsp_sensor'			).click(function(){ $(this).next().slideToggle('500'); });	$('#side_menu_large > div.vision'				).click(function(){ $(this).next().slideToggle('500'); });	$('#side_menu_large > div.light'				).click(function(){ $(this).next().slideToggle('500'); });	$('#side_menu_large > div.photo_sensor_under'	).click(function(){ $(this).next().slideToggle('500'); });	$('#side_menu_large > div.dsp_sensor_under'		).click(function(){ $(this).next().slideToggle('500'); });	$('#side_menu_large > div.vision_under'			).click(function(){ $(this).next().slideToggle('500'); });	$('#side_menu_large > div.light_under'			).click(function(){ $(this).next().slideToggle('500'); });	$('#list_series > div.amp'						).click(function(){ $(this).next().slideToggle('500'); });	$('#list_series > div.fiber'					).click(function(){ $(this).next().slideToggle('500'); });	$('#list_series > div.separate_amp'				).click(function(){ $(this).next().slideToggle('500'); });	$('#list_series > div.laser'					).click(function(){ $(this).next().slideToggle('500'); });	$('#list_series > div.transparency'				).click(function(){ $(this).next().slideToggle('500'); });	$('#list_series > div.bgs'						).click(function(){ $(this).next().slideToggle('500'); });	$('#list_series > div.special'					).click(function(){ $(this).next().slideToggle('500'); });	$('#list_series > div.color'					).click(function(){ $(this).next().slideToggle('500'); });	$('#list_series > div.dsp_sensor_1'				).click(function(){ $(this).next().slideToggle('500'); });	$('#list_series > div.dsp_sensor_2'				).click(function(){ $(this).next().slideToggle('500'); });	$('#list_series > div.dsp_sensor_3'				).click(function(){ $(this).next().slideToggle('500'); });	$('#list_series > div.vision_all_in_one'		).click(function(){ $(this).next().slideToggle('500'); });	$('#list_series > div.vision_multi_camera'		).click(function(){ $(this).next().slideToggle('500'); });	$('#list_series > div.decsys'					).click(function(){ $(this).next().slideToggle('500'); });	$('#list_series > div.jfas'						).click(function(){ $(this).next().slideToggle('500'); });	$('#list_series > div.led'						).click(function(){ $(this).next().slideToggle('500'); });	$('#list_series > div.led_power'				).click(function(){ $(this).next().slideToggle('500'); });	$('#list_series > div.led_opti_acc'				).click(function(){ $(this).next().slideToggle('500'); });	$('#list_series > div.led_monitoring'			).click(function(){ $(this).next().slideToggle('500'); });});
