function CategorySelect() {
//室内空間/インテリア
	var category_interior = document.getElementById("option_interior");
	if (window.document.URL.match("category0=室内空間/インテリア") || window.document.URL.match("category0=室内空間%2Fインテリア") || window.document.URL.match("category0=%E5%AE%A4%E5%86%85%E7%A9%BA%E9%96%93%2F%E3%82%A4%E3%83%B3%E3%83%86%E3%83%AA%E3%82%A2")){
		category_interior.selected=true;
	};

//エクステリア
	var category_exterior = document.getElementById("option_exterior");
	if (window.document.URL.match("category0=エクステリア") || window.document.URL.match("category0=%E3%82%A8%E3%82%AF%E3%82%B9%E3%83%86%E3%83%AA%E3%82%A2")){
		category_exterior.selected=true;
	};

//工業製品/電化製品
	var category_industrial = document.getElementById("option_industrial");
	if (window.document.URL.match("category0=工業製品/電化製品") || window.document.URL.match("category0=工業製品%2F電化製品") || window.document.URL.match("category0=%E5%B7%A5%E6%A5%AD%E8%A3%BD%E5%93%81%2F%E9%9B%BB%E5%8C%96%E8%A3%BD%E5%93%81")){
		category_industrial.selected=true;
	};

//雑貨/調度品
	var category_goods = document.getElementById("option_goods");
	if (window.document.URL.match("category0=雑貨/調度品") || window.document.URL.match("category0=雑貨%2F調度品") || window.document.URL.match("category0=%E9%9B%91%E8%B2%A8%2F%E8%AA%BF%E5%BA%A6%E5%93%81")){
		category_goods.selected=true;
	};

//食品/植物
	var category_food = document.getElementById("option_food");
	if (window.document.URL.match("category0=食品/植物") || window.document.URL.match("category0=食品%2F植物") || window.document.URL.match("category0=%E9%A3%9F%E5%93%81%2F%E6%A4%8D%E7%89%A9")){
		category_food.selected=true;
	};

//スポーツ
	var category_sports = document.getElementById("option_sports");
	if (window.document.URL.match("category0=スポーツ") || window.document.URL.match("category0=%E3%82%B9%E3%83%9D%E3%83%BC%E3%83%84")){
		category_sports.selected=true;
	};

//乗り物
	var category_vehicle = document.getElementById("option_vehicle");
	if (window.document.URL.match("category0=乗り物") || window.document.URL.match("category0=%E4%B9%97%E3%82%8A%E7%89%A9")){
		category_vehicle.selected=true;
	};

//2D素材/3D素材
	var category_2D3D = document.getElementById("option_2D3D");
	if (window.document.URL.match("category0=2D素材/3D素材") || window.document.URL.match("category0=2D素材%2F3D素材") || window.document.URL.match("category0=2D%E7%B4%A0%E6%9D%90%2F3D%E7%B4%A0%E6%9D%90")){
		category_2D3D.selected=true;
	};

//HDRI
	var category_HDRI = document.getElementById("option_HDRI");
	if (window.document.URL.match("category0=HDRI")){
		category_HDRI.selected=true;
	};

//Tips/トレーニングツール
	var category_tips = document.getElementById("option_tips");
	if (window.document.URL.match("category0=Tips/トレーニングツール") || window.document.URL.match("category0=Tips%2Fトレーニングツール") || window.document.URL.match("category0=Tips%2F%E3%83%88%E3%83%AC%E3%83%BC%E3%83%8B%E3%83%B3%E3%82%B0%E3%83%84%E3%83%BC%E3%83%AB")){
		category_tips.selected=true;
	};


}


function ApplicationSelect() {
//3ds Max
	var app_3dsMax = document.getElementById("option_3dsMax");
	if (window.document.URL.match("application=3ds") && window.document.URL.match("max")){
		app_3dsMax.selected=true;
	};
//Maya
	var app_Maya = document.getElementById("option_Maya");
	if (window.document.URL.match("application=Maya")){
		app_Maya.selected=true;
	};
//OBJ
	var app_OBJ = document.getElementById("option_OBJ");
	if (window.document.URL.match("application=OBJ")){
		app_OBJ.selected=true;
	};
//FBX
	var app_FBX = document.getElementById("option_FBX");
	if (window.document.URL.match("application=FBX")){
		app_FBX.selected=true;
	};
//DXF
	var app_DXF = document.getElementById("option_DXF");
	if (window.document.URL.match("application=DXF")){
		app_DXF.selected=true;
	};
}


//onload
if(window.addEventListener) {
	window.addEventListener("load", CategorySelect, false);
	window.addEventListener("load", ApplicationSelect, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", CategorySelect);
	window.attachEvent("onload", ApplicationSelect);
};
 
