/**
 * swfobject.execute.js
 * @version	1.0.0.0 - 0:02 2009/01/31
 * @see		SWFObject JavaScript API documentation
 * 			http://code.google.com/p/swfobject/wiki/api
 * @usage	swfobject.embedSWF(
				swfURL:String,
				replaceElementId:String,
				width:String,
				height:String,
				playerVersion:String,
				expressInstallSwfUrl:String,
				flashvars:Object,
				params:Object,
				attributes:Object
			);
 */

(function() {
	
	var swfurl        = '../f/catalog.index.swf';
	var elementId     = 'catalogContent';
	var swfwidth      = '100%';
	var swfheight     = '680';
	var playerversion = '9.0.0';
	
	// Express Install を使わずに代替コンテンツを表示する場合は null
	var expressInstall = null;
	// var expressInstall = './lib/swfobject2.2/expressInstall.swf';
	
	var s = document.getElementsByTagName('script');
	var flashvars = { file: s[s.length - 1].src.split('?')[1] };

	var params = {
		base: '.',
		bgcolor: '#ffffff',
		menu: 'false',
		quality: 'high',
		wmode: 'transparent',
		scale: 'noScale',
		salign: 'TL'
	};
	
	var attributes = {};
	
	swfobject.embedSWF(swfurl, elementId, swfwidth, swfheight, playerversion, expressInstall, flashvars, params, attributes);

})();


Kaas.ready(function() {
	var timer, sl = document.getElementById('shopList');
	Kaas.addClass(sl, 'hide');
	sl.onmouseover = function() {
		clearTimeout(timer);
		Kaas.removeClass(sl, 'hide');
	};
	sl.onmouseout = function() {
		timer = setTimeout(function() {
			clearTimeout(timer);
			Kaas.addClass(sl, 'hide');
		}, 350);
	};
});
