/* SpryMenuBar.js - Revision: Spry Preview Release 1.4 */

// Copyright (c) 2006. Adobe Systems Incorporated.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
//   * Redistributions of source code must retain the above copyright notice,
//     this list of conditions and the following disclaimer.
//   * Redistributions in binary form must reproduce the above copyright notice,
//     this list of conditions and the following disclaimer in the documentation
//     and/or other materials provided with the distribution.
//   * Neither the name of Adobe Systems Incorporated nor the names of its
//     contributors may be used to endorse or promote products derived from this
//     software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.

/*******************************************************************************

 SpryMenuBar.js
 This file handles the JavaScript for Spry Menu Bar.  You should have no need
 to edit this file.  Some highlights of the MenuBar object is that timers are
 used to keep submenus from showing up until the user has hovered over the parent
 menu item for some time, as well as a timer for when they leave a submenu to keep
 showing that submenu until the timer fires.

 *******************************************************************************/

var Spry;
if(!Spry)
{
	Spry = {};
}
if(!Spry.Widget)
{
	Spry.Widget = {};
}

// Constructor for Menu Bar
// element should be an ID of an unordered list (<ul> tag)
// preloadImage1 and preloadImage2 are images for the rollover state of a menu
Spry.Widget.MenuBar = function(element, opts)
{
	this.init(element, opts);
};

Spry.Widget.MenuBar.prototype.init = function(element, opts)
{
	this.element = this.getElement(element);

	// represents the current (sub)menu we are operating on
	this.currMenu = null;

	var isie = (typeof document.all != 'undefined' && typeof window.opera == 'undefined' && navigator.vendor != 'KDE');
	if(typeof document.getElementById == 'undefined' || (navigator.vendor == 'Apple Computer, Inc.' && typeof window.XMLHttpRequest == 'undefined') || (isie && typeof document.uniqueID == 'undefined'))
	{
		// bail on older unsupported browsers
		return;
	}

	// load hover images now
	if(opts)
	{
		for(var k in opts)
		{
			var rollover = new Image;
			rollover.src = opts[k];
		}
	}

	if(this.element)
	{
		this.currMenu = this.element;
		var items = this.element.getElementsByTagName('li');
		for(var i=0; i<items.length; i++)
		{
			this.initialize(items[i], element, isie);
			if(isie)
			{
				this.addClassName(items[i], "MenuBarItemIE");
				items[i].style.position = "static";
			}
		}
		if(isie)
		{
			if(this.hasClassName(this.element, "MenuBarVertical"))
			{
				this.element.style.position = "relative";
			}
			var linkitems = this.element.getElementsByTagName('a');
			for(var i=0; i<linkitems.length; i++)
			{
				linkitems[i].style.position = "relative";
			}
		}
	}
};

Spry.Widget.MenuBar.prototype.getElement = function(ele)
{
	if (ele && typeof ele == "string")
		return document.getElementById(ele);
	return ele;
};

Spry.Widget.MenuBar.prototype.hasClassName = function(ele, className)
{
	if (!ele || !className || !ele.className || ele.className.search(new RegExp("\\b" + className + "\\b")) == -1)
	{
		return false;
	}
	return true;
};

Spry.Widget.MenuBar.prototype.addClassName = function(ele, className)
{
	if (!ele || !className || this.hasClassName(ele, className))
		return;
	ele.className += (ele.className ? " " : "") + className;
};

Spry.Widget.MenuBar.prototype.removeClassName = function(ele, className)
{
	if (!ele || !className || !this.hasClassName(ele, className))
		return;
	ele.className = ele.className.replace(new RegExp("\\s*\\b" + className + "\\b", "g"), "");
};

// addEventListener for Menu Bar
// attach an event to a tag without creating obtrusive HTML code
Spry.Widget.MenuBar.prototype.addEventListener = function(element, eventType, handler, capture)
{
	try
	{
		if (element.addEventListener)
		{
			element.addEventListener(eventType, handler, capture);
		}
		else if (element.attachEvent)
		{
			element.attachEvent('on' + eventType, handler);
		}
	}
	catch (e) {}
};

// createIframeLayer for Menu Bar
// creates an IFRAME underneath a menu so that it will show above form controls and ActiveX
Spry.Widget.MenuBar.prototype.createIframeLayer = function(menu)
{
	var layer = document.createElement('iframe');
	layer.tabIndex = '-1';
	layer.src = 'javascript:false;';
	menu.parentNode.appendChild(layer);
	
	layer.style.left = menu.offsetLeft + 'px';
	layer.style.top = menu.offsetTop + 'px';
	layer.style.width = menu.offsetWidth + 'px';
	layer.style.height = menu.offsetHeight + 'px';
};

// removeIframeLayer for Menu Bar
// removes an IFRAME underneath a menu to reveal any form controls and ActiveX
Spry.Widget.MenuBar.prototype.removeIframeLayer =  function(menu)
{
	var layers = menu.parentNode.getElementsByTagName('iframe');
	while(layers.length > 0)
	{
		layers[0].parentNode.removeChild(layers[0]);
	}
};

// clearMenus for Menu Bar
// root is the top level unordered list (<ul> tag)
Spry.Widget.MenuBar.prototype.clearMenus = function(root)
{
	var menus = root.getElementsByTagName('ul');
	for(var i=0; i<menus.length; i++)
	{
		this.hideSubmenu(menus[i]);
	}
	this.removeClassName(this.element, "MenuBarActive");
};

// bubbledTextEvent for Menu Bar
// identify bubbled up text events in Safari so we can ignore them
Spry.Widget.MenuBar.prototype.bubbledTextEvent = function()
{
	return (navigator.vendor == 'Apple Computer, Inc.' && (event.target == event.relatedTarget.parentNode || (event.eventPhase == 3 && event.target.parentNode == event.relatedTarget)));
};

// showSubmenu for Menu Bar
// set the proper CSS class on this menu to show it
Spry.Widget.MenuBar.prototype.showSubmenu = function(menu)
{
	if(this.currMenu)
	{
		this.clearMenus(this.currMenu);
		this.currMenu = null;
	}
	
	if(menu)
	{
		this.addClassName(menu, "MenuBarSubmenuVisible");
		if(typeof document.all != 'undefined' && typeof window.opera == 'undefined' && navigator.vendor != 'KDE')
		{
			if(!this.hasClassName(this.element, "MenuBarHorizontal") || menu.parentNode.parentNode != this.element)
			{
				menu.style.top = menu.parentNode.offsetTop + 'px';
			}
			if(!this.hasClassName(this.element, "MenuBarHorizontal") || menu.parentNode != this.element)
			{
				menu.style.left = menu.parentNode.offsetLeft + 'px';
			}
		}
		if(typeof document.uniqueID != "undefined")
		{
			this.createIframeLayer(menu);
		}
	}
	this.addClassName(this.element, "MenuBarActive");
};

// hideSubmenu for Menu Bar
// remove the proper CSS class on this menu to hide it
Spry.Widget.MenuBar.prototype.hideSubmenu = function(menu)
{
	if(menu)
	{
		this.removeClassName(menu, "MenuBarSubmenuVisible");
		if(typeof document.all != 'undefined' && typeof window.opera == 'undefined' && navigator.vendor != 'KDE')
		{
			menu.style.top = '';
			menu.style.left = '';
		}
		this.removeIframeLayer(menu);
	}
};

// initialize for Menu Bar
// create event listeners for the Menu Bar widget so we can properly
// show and hide submenus
Spry.Widget.MenuBar.prototype.initialize = function(listitem, element, isie)
{
	var opentime, closetime;
	var link = listitem.getElementsByTagName('a')[0];
	var submenus = listitem.getElementsByTagName('ul');
	var menu = (submenus.length > 0 ? submenus[0] : null);

	var hasSubMenu = false;
	if(menu)
	{
		this.addClassName(link, "MenuBarItemSubmenu");
		hasSubMenu = true;
	}

	if(!isie)
	{
		// define a simple function that comes standard in IE to determine
		// if a node is within another node
		listitem.contains = function(testNode)
		{
			// this refers to the list item
			if(testNode == null)
			{
				return false;
			}
			if(testNode == this)
			{
				return true;
			}
			else
			{
				return this.contains(testNode.parentNode);
			}
		};
	}
	
	// need to save this for scope further down
	var self = this;

	this.addEventListener(listitem, 'mouseover', function(e)
	{
		if(self.bubbledTextEvent())
		{
			// ignore bubbled text events
			return;
		}
		clearTimeout(closetime);
		if(self.currMenu == listitem)
		{
			self.currMenu = null;
		}
		// show menu highlighting
		self.addClassName(link, hasSubMenu ? "MenuBarItemSubmenuHover" : "MenuBarItemHover");
		if(menu && !self.hasClassName(menu, "MenuBarSubmenuVisible"))
		{
			opentime = window.setTimeout(function(){self.showSubmenu(menu);}, 250);
		}
	}, false);

	this.addEventListener(listitem, 'mouseout', function(e)
	{
		if(self.bubbledTextEvent())
		{
			// ignore bubbled text events
			return;
		}

		var related = (typeof e.relatedTarget != 'undefined' ? e.relatedTarget : e.toElement);
		if(!listitem.contains(related))
		{
			clearTimeout(opentime);
			self.currMenu = listitem;

			// remove menu highlighting
			self.removeClassName(link, hasSubMenu ? "MenuBarItemSubmenuHover" : "MenuBarItemHover");
			if(menu)
			{
				closetime = window.setTimeout(function(){self.hideSubmenu(menu);}, 600);
			}
		}
	}, false);
};



//画像
var arrImage = new Array(
		"img/item_category/flight/s4/ageha_half_pink.jpg",//1
		"img/item_category/flight/s4/agehahalf_purple_tear.jpg",//2
		"img/item_category/flight/s4/agehahalf_red.jpg",//3
		"img/item_category/flight/s4/aloha.jpg",//4
		"img/item_category/flight/s4/ankh_heartpink.jpg",//5
		"img/item_category/flight/s4/ankh_pinstripe.jpg",//6
		"img/item_category/flight/s4/apple_heart_blue.jpg",//7
		"img/item_category/flight/s4/apple_heart_pink.jpg",//8
		"img/item_category/flight/s4/asagao.jpg",//9
		"img/item_category/flight/s4/atomic_hold.jpg",//10
		"img/item_category/flight/s4/black_fire.jpg",//11
		"img/item_category/flight/s4/blue.jpg",//12
	    "img/item_category/flight/s4/blue_fire.jpg",//13
		"img/item_category/flight/s4/buttefly_purple.jpg",//14
		"img/item_category/flight/s4/buttefly_red.jpg",//15
		"img/item_category/flight/s4/cherry_blossom.jpg",//16
		"img/item_category/flight/s4/chou_purple.jpg",//17
		"img/item_category/flight/s4/cross_purple.jpg",//18
		"img/item_category/flight/s4/devil.jpg",//19
		"img/item_category/flight/s4/dolphin_heart.jpg");//20
//
var arrImageShaft = new Array(
		"img/item_category/flight/s4/dragon_hearts.jpg",//1
		"img/item_category/flight/s4/egypt.jpg",//2
		"img/item_category/flight/s4/europien_mono.jpg",//3
		"img/item_category/flight/s4/feather_orange.jpg",//4
		"img/item_category/flight/s4/feather_pink.jpg",//5
		"img/item_category/flight/s4/feather_purple.jpg",//6
		"img/item_category/flight/s4/flower_pink.jpg",//7
		"img/item_category/flight/s4/flower_shower.jpg",//8
		"img/item_category/flight/s4/flower_yellow.jpg",//9
		"img/item_category/flight/s4/flowernail_black.jpg",//10
		"img/item_category/flight/s4/game_over.jpg",//11
		"img/item_category/flight/s4/ganja.jpg",//12
	    "img/item_category/flight/s4/garbella.jpg",//13
		"img/item_category/flight/s4/gecko.jpg",//14
		"img/item_category/flight/s4/girly_classic.jpg",//15
		"img/item_category/flight/s4/gokuaku.jpg",//16
		"img/item_category/flight/s4/hat_pink.jpg",//17
		"img/item_category/flight/s4/hazure.jpg",//18
		"img/item_category/flight/s4/heart_pink.jpg",//19
		"img/item_category/flight/s4/hebi.jpg");//20
//
var arrImageFlight = new Array(
		"img/item_category/flight/s4/hibiscus.jpg",//1
		"img/item_category/flight/s4/hujin.jpg",//2
		"img/item_category/flight/s4/indian.jpg",//3
		"img/item_category/flight/s4/japan.jpg",//4
		"img/item_category/flight/s4/joto.jpg",//5
		"img/item_category/flight/s4/kaisou.jpg",//6
		"img/item_category/flight/s4/kannon.jpg",//7
		"img/item_category/flight/s4/karajishi.jpg",//8
		"img/item_category/flight/s4/king_of_kings.jpg",//9
		"img/item_category/flight/s4/kingyo.jpg",//10
		"img/item_category/flight/s4/koi.jpg",//11
		"img/item_category/flight/s4/kokuun.jpg",//12
	    "img/item_category/flight/s4/kyo.jpg",//13
		"img/item_category/flight/s4/laster_safari.jpg",//14
		"img/item_category/flight/s4/lock_on.jpg",//15
		"img/item_category/flight/s4/lucky_feather.jpg",//16
		"img/item_category/flight/s4/luv_darts.jpg",//17
		"img/item_category/flight/s4/luv_darts_blue.jpg",//18
		"img/item_category/flight/s4/luv_darts_orange.jpg");//19
//
var arrImageFlight2 = new Array(
		"img/item_category/flight/s4/mahalo.jpg",//1
		"img/item_category/flight/s4/marble.jpg",//2
		"img/item_category/flight/s4/melancolic_camof.jpg",//3
		"img/item_category/flight/s4/metal.jpg",//4
		"img/item_category/flight/s4/mexican_serape.jpg",//5
		"img/item_category/flight/s4/misstake.jpg",//6
		"img/item_category/flight/s4/nature.jpg",//7
		"img/item_category/flight/s4/nordicsnow.jpg",//8
		"img/item_category/flight/s4/orange.jpg",//9
		"img/item_category/flight/s4/orizuru.jpg",//10
		"img/item_category/flight/s4/panda_black.jpg",//11
		"img/item_category/flight/s4/panda_blue.jpg",//12
	    "img/item_category/flight/s4/panda_darts_tear.jpg",//13
		"img/item_category/flight/s4/panda_mohikan.jpg",//14
		"img/item_category/flight/s4/panda_panch.jpg",//15
		"img/item_category/flight/s4/panda_pink.jpg",//16
		"img/item_category/flight/s4/panda_red.jpg",//17
		"img/item_category/flight/s4/panda_reesent.jpg",//18
		"img/item_category/flight/s4/panda_white.jpg");//19
//
var arrImageAcc = new Array(
		"img/item_category/flight/s4/panda_yellow.jpg",//1
		"img/item_category/flight/s4/panda_yopparai_tear.jpg",//2
		"img/item_category/flight/s4/p-dash.jpg",//3
		"img/item_category/flight/s4/pink.jpg",//4
		"img/item_category/flight/s4/pink_rose.jpg",//5
		"img/item_category/flight/s4/pop_star.jpg",//6
		"img/item_category/flight/s4/punk_black.jpg",//7
		"img/item_category/flight/s4/punk_gray.jpg",//8
		"img/item_category/flight/s4/punk_purple.jpg",//9
		"img/item_category/flight/s4/punk_red.jpg",//10
		"img/item_category/flight/s4/punk_white.jpg",//11
		"img/item_category/flight/s4/raijin.jpg",//12
	    "img/item_category/flight/s4/red_fire.jpg",//13
		"img/item_category/flight/s4/reggae_face.jpg",//14
		"img/item_category/flight/s4/retro_marble.jpg",//15
		"img/item_category/flight/s4/samurai_damashii.jpg",//16
		"img/item_category/flight/s4/sdf0302.jpg",//17
		"img/item_category/flight/s4/seiji.jpg",//18
		"img/item_category/flight/s4/shachihoko.jpg");//19
//
var arrImageAcc2 = new Array(
		"img/item_category/flight/s4/shin-ryu.jpg",//1
		"img/item_category/flight/s4/skull.jpg",//2
		"img/item_category/flight/s4/skull_pink.jpg",//3
		"img/item_category/flight/s4/snow_blue.jpg",//4
		"img/item_category/flight/s4/snow_pink.jpg",//5
		"img/item_category/flight/s4/snow_purple.jpg",//6
		"img/item_category/flight/s4/stomp_blue.jpg",//7
		"img/item_category/flight/s4/stomp_pink.jpg",//8
		"img/item_category/flight/s4/taiji.jpg",//9
		"img/item_category/flight/s4/tamadance.jpg",//10
		"img/item_category/flight/s4/tribal2008.jpg",//11
		"img/item_category/flight/s4/tribal_graffiti.jpg",//12
	    "img/item_category/flight/s4/tribal_tear.jpg",//13
		"img/item_category/flight/s4/tribe.jpg",//14
		"img/item_category/flight/s4/tsukiusagi.jpg",//15
		"img/item_category/flight/s4/tuesday.jpg",//16
		"img/item_category/flight/s4/viollet.jpg",//17
		"img/item_category/flight/s4/wagara_hana.jpg",//18
		"img/item_category/flight/s4/yopparai.jpg");//19

//タイトル
var arrTitle = new Array(
						 "S4",//1
						 "S4",//2
						 "S4",//3
						 "S4",//4
						 "S4",//5
						 "S4",//6
						 "S4",//7
						 "S4",//8
						 "S4",//9
						 "S4",//10
						 "S4",//11
						 "S4",//12
						 "S4",//13
						 "S4",//14
						 "S4",//15
						 "S4",//16
						 "S4",//17
						 "S4",//18
						 "S4",//19
						 "S4");//20
//
var arrTitleShaft = new Array(
						 "S4",//1
						 "S4",//2
						 "S4",//3
						 "S4",//4
						 "S4",//5
						 "S4",//6
						 "S4",//7
						 "S4",//8
						 "S4",//9
						 "S4",//10
						 "S4",//11
						 "S4",//12
						 "S4",//13
						 "S4",//14
						 "S4",//15
						 "S4",//16
						 "S4",//17
						 "S4",//18
						 "S4",//19
						 "S4");//20
//
var arrTitleFlight = new Array(
						 "S4",//1
						 "S4",//2
						 "S4",//3
						 "S4",//4
						 "S4",//5
						 "S4",//6
						 "S4",//7
						 "S4",//8
						 "S4",//9
						 "S4",//10
						 "S4",//11
						 "S4",//12
						 "S4",//13
						 "S4",//14
						 "S4",//15
						 "S4",//16
						 "S4",//17
						 "S4",//18
						 "S4");//19
var arrTitleFlight2 = new Array(						 
						 "S4",//1
						 "S4",//2
						 "S4",//3
						 "S4",//4
						 "S4",//5
						 "S4",//6
						 "S4",//7
						 "S4",//8
						 "S4",//9
						 "S4",//10
						 "S4",//11
						 "S4",//12
						 "S4",//13
						 "S4",//14
						 "S4",//15
						 "S4",//16
						 "S4",//17
						 "S4",//18
						 "S4");//19
//
var arrTitleAcc = new Array(
						 "S4",//1
						 "S4",//2
						 "S4",//3
						 "S4",//4
						 "S4",//5
						 "S4",//6
						 "S4",//7
						 "S4",//8
						 "S4",//9
						 "S4",//10
						 "S4",//11
						 "S4",//12
						 "S4",//13
						 "S4",//14
						 "S4",//15
						 "S4",//16
						 "S4",//17
						 "S4",//18
						 "S4");//19
var arrTitleAcc2 = new Array(						 
						 "S4",//1
						 "S4",//2
						 "S4",//3
						 "S4",//4
						 "S4",//5
						 "S4",//6
						 "S4",//7
						 "S4",//8
						 "S4",//9
						 "S4",//10
						 "S4",//11
						 "S4",//12
						 "S4",//13
						 "S4",//14
						 "S4",//15
						 "S4",//16
						 "S4",//17
						 "S4",//18
						 "S4");//19

//リンク
var arrLink = new Array(
                        "<a href='shop/s4_flights01.html#ageha_half_pink'>S4アゲハハーフ・ピンク</a>",//1
                        "<a href='shop/s4_flights01.html#ageha_half_pink'>S4パープル・ティアドロップ</a>",//2
			            "<a href='shop/s4_flights01.html#ageha_half_pink'>S4アゲハハーフ・レッド</a>",//3
			            "<a href='shop/s4_flights01.html#aloha'>S4アロハ・ピンク</a>",//4
			            "<a href='shop/s4_flights01.html#ankh_pinstripe'>S4アンククロス</a>",//5
			            "<a href='shop/s4_flights01.html#ankh_pinstripe'>S4アンククロス</a>",//6
	                    "<a href='shop/s4_flights01.html#apple_heart_blue'>S4アップル ブルー</a>",//7
                        "<a href='shop/s4_flights01.html#apple_heart_blue'>S4アップル ピンク</a>",//8
			            "<a href='shop/s4_flights01.html#kaisou'>S4あさがお</a>",//9
			            "<a href='shop/s4_flights01.html#garbella'>S4ジャーマン</a>",//10
			            "<a href='shop/s4_flights01.html#samurai_damashii'>S4ブラックファイヤー</a>",//11
			            "<a href='shop/s4_flights01.html#valentine'>S4ハート ブルー</a>",//12
			            "<a href='shop/s4_flights01.html#blue_fire'>S4ブルーファイヤー</a>",//13
			            "<a href='shop/s4_flights01.html#ageha_half_pink'>S4アゲハハーフ ・パープル</a>",//14
	                    "<a href='shop/s4_flights01.html#buttefly_purple'>S4アゲハ・ブラック</a>",//15
                        "<a href='shop/s4_flights01.html#aloha'>S4チェリーブロッサム</a>",//16
			            "<a href='shop/s4_flights01.html#chou_purple'>S4蝶文字・パープル</a>",//17
			            "<a href='shop/s4_flights01.html#chou_purple'>S4クロスパープル</a>",//18
			            "<a href='shop/s4_flights01.html#metal'>S4デビル</a>",//19
			            "<a href='shop/s4_flights01.html#luv_darts'>S4ドルフィンハート</a>");//20
//
var arrLinkShaft = new Array(
                        "<a href='shop/s4_flights01.html#ragon_hearts'>S4DRAGON HEARTS</a>",//1
                        "<a href='shop/s4_flights01.html#egypt'>S4壁画</a>",//2
			            "<a href='shop/s4_flights01.html#agehahalf_red'>S4ヨーロピアン・モノ</a>",//3
			            "<a href='shop/s4_flights01.html#feather_orange'>S4フェザー・オレンジ</a>",//4
			            "<a href='shop/s4_flights01.html#feather_pink'>S4フェザーピンク</a>",//5
			            "<a href='shop/s4_flights01.html#feather_orange'>S4フェザー・パープル</a>",//6
	                    "<a href='shop/s4_flights01.html#kaisou'>S4フラワー・ピンク</a>",//7
                        "<a href='shop/s4_flights01.html#mexican_serape'>S4フラワーシャワー</a>",//8
			            "<a href='shop/s4_flights01.html#stomp_blue'>S4フラワー・イエロー</a>",//9
			            "<a href='shop/s4_flights01.html#agehahalf_red'>S4フラワーネイル・ブラック</a>",//10
			            "<a href='shop/s4_flights01.html#lock_on'>S4ゲームオーバー</a>",//11
			            "<a href='shop/s4_flights01.html#red_fire'>S4ガンジャ</a>",//12	
			            "<a href='shop/s4_flights01.html#garbella'>S4ガーベラ</a>",//13
			            "<a href='shop/s4_flights01.html#gecko'>S4GECKO</a>",//14
	                    "<a href='shop/s4_flights01.html#mexican_serape'>S4ガーリークラシック</a>",//15
                        "<a href='shop/s4_flights01.html#gokuaku'>S4極悪伝説</a>",//16
			            "<a href='shop/s4_flights01.html#snow_blue'>S4ハットピンク</a>",//17
			            "<a href='shop/s4_flights01.html#yopparai'>S4ダーツパンダ</a>",//18
			            "<a href='shop/s4_flights01.html#cross_purple'>S4ハート×ピンク</a>",//19
			            "<a href='shop/s4_flights01.html#indian'>S4蛇</a>");//20
//
var arrLinkFlight = new Array(
                        "<a href='shop/s4_flights01.html#kaisou'>S4ハイビスカスブラック</a>",//1
                        "<a href='shop/s4_flights01.html#chou_purple'>S4風神</a>",//2
			            "<a href='shop/s4_flights01.html#indian'>S4インディアン</a>",//3
			            "<a href='shop/s4_flights01.html#gecko'>S4JAPAN</a>",//4
			            "<a href='shop/s4_flights01.html#egypt'>S4喧嘩上等</a>",//5
			            "<a href='shop/s4_flights01.html#kaisou'>S4モンステラ</a>",//6
	                    "<a href='shop/s4_flights01.html#kannon'>S4観音像</a>",//7
                        "<a href='shop/s4_flights01.html#kannon'>S4唐獅子</a>",//8
			            "<a href='shop/s4_flights01.html#lucky_feather'>S4キング オブ キングス</a>",//9
			            "<a href='shop/s4_flights01.html#indian'>S4金魚</a>",//10
			            "<a href='shop/s4_flights01.html#indian'>S4鯉</a>",//11
			            "<a href='shop/s4_flights01.html#luv_darts'>S4黒雲</a>",//12
			            "<a href='shop/s4_flights01.html#luv_darts'>S4紅葉・京</a>",//13
			            "<a href='shop/s4_flights01.html#metal'>S4ラスタファリ</a>",//14
	                    "<a href='shop/s4_flights01.html#lock_on'>S4ロックオン</a>",//15
                        "<a href='shop/s4_flights01.html#lucky_feather'>S4ラッキーフェザー</a>",//16
			            "<a href='shop/s4_flights01.html#luv_darts'>S4LUV DARTS</a>",//17
			            "<a href='shop/s4_flights01.html#tribal_graffiti'>S4LUV DARTS</a>",//18
			            "<a href='shop/s4_flights01.html#tribal_graffiti'>S4LUV DARTS</a>");//19
//
var arrLinkFlight2 = new Array(
                        "<a href='shop/s4_flights01.html#aloha'>S4マハロ・ブルー</a>",//1
                        "<a href='shop/s4_flights01.html#pink'>S4マーブル</a>",//2
			            "<a href='shop/s4_flights01.html#pmetal'>S4メランコリック・カモ</a>",//3
			            "<a href='shop/s4_flights01.html#metal'>S4メタル</a>",//4
			            "<a href='shop/s4_flights01.html#mexican_serape'>S4メキシカンセラペ</a>",//5
			            "<a href='shop/s4_flights01.html#stomp_blue'>S4ミステイク</a>",//6
	                    "<a href='shop/s4_flights01.html#lucky_feather'>S4ネイチャー</a>",//7
                        "<a href='shop/s4_flights01.html#valentine'>S4ノルディックスノー</a>",//8
			            "<a href='shop/s4_flights01.html#pink'>S4オレンジ</a>",//9
			            "<a href='shop/s4_flights01.html#ageha_half_pink'>S4折り鶴</a>",//10
			            "<a href='shop/s4_flights01.html#panda_white'>S4パンダ・ブラック</a>",//11
			            "<a href='shop/s4_flights01.html#panda_white'>S4パンダ・ブルー</a>",//12	
			            "<a href='shop/s4_flights01.html#panda_yellow'>S4ダーツパンダ</a>",//13
			            "<a href='shop/s4_flights01.html#yopparai'>S4モヒカンパンダ</a>",//14
	                    "<a href='shop/s4_flights01.html#panda_panch'>S4パンチパンダ</a>",//15
                        "<a href='shop/s4_flights01.html#panda_yellow'>S4パンダ・ピンク</a>",//16
			            "<a href='shop/s4_flights01.html#panda_white'>S4パンダ・レッド</a>",//17
			            "<a href='shop/s4_flights01.html#yopparai'>S4リーゼントパンダ</a>",//18
			            "<a href='shop/s4_flights01.html#panda_white'>S4パンダ・ホワイト</a>");//19
//
var arrLinkAcc = new Array(
                        "<a href='shop/s4_flights01.html#panda_white'>S4パンダ・イエロー</a>",//1
                        "<a href='shop/s4_flights01.html#panda_yellow'>S4パンダ・ティアドロップ</a>",//2
			            "<a href='shop/s4_flights01.html#p-dash'>S4ピンポンダッシュ</a>",//3
			            "<a href='shop/s4_flights01.html#pink'>S4ピンク</a>",//4
			            "<a href='shop/s4_flights01.html#mexican_serape'>S4ピンクローズ</a>",//5
			            "<a href='shop/s4_flights01.html#dragon_hearts'>S4ポップスター</a>",//6
	                    "<a href='shop/s4_flights01.html#punk_black'>S4パンキッシュ・ブラック</a>",//7
                        "<a href='shop/s4_flights01.html#punk_black'>S4パンキッシュ・グレー</a>",//8
			            "<a href='shop/s4_flights01.html#punk_black'>S4パンキッシュ・パープル</a>",//9
			            "<a href='shop/s4_flights01.html#punk_black'>S4パンキッシュ・レッド</a>",//10
			            "<a href='shop/s4_flights01.html#gecko'>S4パンキッシュ・ホワイト</a>",//11
			            "<a href='shop/s4_flights01.html#chou_purple'>S4雷神</a>",//12	
			            "<a href='shop/s4_flights01.html#red_fire'>S4レッドファイヤー</a>",//13
			            "<a href='shop/s4_flights01.html#gecko'>S4レゲエフェイス</a>",//14
	                    "<a href='shop/s4_flights01.html#feather_pink'>S4レトロマーブル</a>",//15
                        "<a href='shop/s4_flights01.html#samurai_damashii'>S4侍魂</a>",//16
			            "<a href='shop/s4_flights01.html#valentine'>S4ハートピンク</a>",//17
			            "<a href='shop/s4_flights01.html#blue_fire'>S4青磁</a>",//18
			            "<a href='shop/s4_flights01.html#kannon'>S4鯱鉾</a>");//19
//
var arrLinkAcc2 = new Array(						
                        "<a href='shop/s4_flights01.html#chou_purple'>S4神龍</a>",//1
                        "<a href='shop/s4_flights01.html#pink'>S4スカル</a>",//2
			            "<a href='shop/s4_flights01.html#egypt'>S4スカル・ピンク</a>",//3
			            "<a href='shop/s4_flights01.html#snow_blue'>S4雪の結晶・ブルー</a>",//4
			            "<a href='shop/s4_flights01.html#snow_blue'>S4雪の結晶・ピンク</a>",//5
			            "<a href='shop/s4_flights01.html#snow_blue'>S4雪の結晶・パープル</a>",//6
	                    "<a href='shop/s4_flights01.html#snow_blue'>S4スタンプ・ブルー</a>",//7
                        "<a href='shop/s4_flights01.html#lucky_feather'>S4スタンプ・ピンク</a>",//8
			            "<a href='shop/s4_flights01.html#lock_on'>S4対峙</a>",//9
			            "<a href='shop/s4_flights01.html#tribal_graffiti'>S4タマダンス</a>",//10
			            "<a href='shop/s4_flights01.html#tribal_graffiti'>干支トライバル・2008</a>",//11
			            "<a href='shop/s4_flights01.html#panda'>S4トライバル</a>",//12	
			            "<a href='shop/s4_flights01.html#panda'>S4トライバル</a>",//13
			            "<a href='shop/s4_flights01.html#valentine'>S4トライブ</a>",//14
	                    "<a href='shop/s4_flights01.html#egypt'>S4月兎</a>",//15
                        "<a href='shop/s4_flights01.html#tuesday'>S4火サス</a>",//16
			            "<a href='shop/s4_flights01.html#feather_pink'>S4蝶文字・パープル</a>",//17
			            "<a href='shop/s4_flights01.html#kannon'>S4和柄・華</a>",//18
			            "<a href='shop/s4_flights01.html#yopparai'>S4酔っ払いパンダ</a>");//19
//

//画像用リンク						
var arrImageLink = new Array(	
				"shop/s4_flights01.html#ageha_half_pink",//1
				"shop/s4_flights01.html#ageha_half_pink",//2
				"shop/s4_flights01.html#buttefly_purple",//3
				"shop/s4_flights01.html#aloha",//4
				"shop/s4_flights01.html#ankh_pinstripe",//5
				"shop/s4_flights01.html#ankh_pinstripe",//6
				"shop/s4_flights01.html#apple_heart_blue",//7
				"shop/s4_flights01.html#apple_heart_blue",//8
				"shop/s4_flights01.html#kaisou",//9
				"shop/s4_flights01.html#garbella",//10
				"shop/s4_flights01.html#samurai_damashii",//11
				"shop/s4_flights01.html#valentine",//12
				"shop/s4_flights01.html#blue_fire",//13
				"shop/s4_flights01.html#ageha_half_pink",//14
				"shop/s4_flights01.html#buttefly_purple",//15
				"shop/s4_flights01.html#aloha",//16
				"shop/s4_flights01.html#chou_purple",//17
				"shop/s4_flights01.html#cross_purple",//18
				"shop/s4_flights01.html#metal",//19
				"shop/s4_flights01.html#luv_darts");//20
//
var arrImageLinkShaft = new Array(	
				"shop/s4_flights01.html#dragon_hearts",//1
				"shop/s4_flights01.html#egypt",//2
				"shop/s4_flights01.html#agehahalf_red",//3
				"shop/s4_flights01.html#feather_orange",//4
				"shop/s4_flights01.html#feather_pink",//5
				"shop/s4_flights01.html#feather_orange",//6
				"shop/s4_flights01.html#kaisou",//7
				"shop/s4_flights01.html#mexican_serape",//8
				"shop/s4_flights01.html#stomp_blue",//9
				"shop/s4_flights01.html#agehahalf_red",//10
				"shop/s4_flights01.html#lock_on",//11
				"shop/s4_flights01.html#red_fire",//12
				"shop/s4_flights01.html#garbella",//13
				"shop/s4_flights01.html#gecko",//14
				"shop/s4_flights01.html#mexican_serape",//15
				"shop/s4_flights01.html#gokuaku",//16
				"shop/s4_flights01.html#snow_blue",//17
				"shop/s4_flights01.html#yopparai",//18
				"shop/s4_flights01.html#cross_purple",//19
				"shop/s4_flights01.html#indian");//20
//
var arrImageLinkFlight = new Array(
				"shop/s4_flights01.html#kaisou",//1
				"shop/s4_flights01.html#chou_purple",//2
				"shop/s4_flights01.html#indian",//3
				"shop/s4_flights01.html#gecko",//4
				"shop/s4_flights01.html#egypt",//5
				"shop/s4_flights01.html#kaisou",//6
				"shop/s4_flights01.html#kannon",//7
				"shop/s4_flights01.html#kannon",//8
				"shop/s4_flights01.html#lucky_feather",//9
				"shop/s4_flights01.html#indian",//10
				"shop/s4_flights01.html#indian",//11
				"shop/s4_flights01.html#luv_darts",//12
				"shop/s4_flights01.html#luv_darts",//13
				"shop/s4_flights01.html#metal",//14
				"shop/s4_flights01.html#lock_on",//15
				"shop/s4_flights01.html#lucky_feather",//16
				"shop/s4_flights01.html#luv_darts",//17
				"shop/s4_flights01.html#tribal_graffiti",//18
				"shop/s4_flights01.html#tribal_graffiti");//19
//
var arrImageLinkFlight2 = new Array(
				"shop/s4_flights01.html#aloha",//1
				"shop/s4_flights01.html#pink",//2
				"shop/s4_flights01.html#metal",//3
				"shop/s4_flights01.html#metal",//4
				"shop/s4_flights01.html#mexican_serape",//5
				"shop/s4_flights01.html#stomp_blue",//6
				"shop/s4_flights01.html#lucky_feather",//7
				"shop/s4_flights01.html#valentine",//8
				"shop/s4_flights01.html#pink",//9
				"shop/s4_flights01.html#ageha_half_pink",//10
				"shop/s4_flights01.html#panda_white",//11
				"shop/s4_flights01.html#panda_white",//12
				"shop/s4_flights01.html#panda_yellow",//13
				"shop/s4_flights01.html#yopparai",//14
				"shop/s4_flights01.html#panda_panch",//15
				"shop/s4_flights01.html#panda_yellow",//16
				"shop/s4_flights01.html#panda_white",//17
				"shop/s4_flights01.html#yopparai",//18
				"shop/s4_flights01.html#panda_white");//19
//
var arrImageLinkAcc = new Array(
				"shop/s4_flights01.html#panda_white",//1
				"shop/s4_flights01.html#panda_yellow",//2
				"shop/s4_flights01.html#p-dash",//3
				"shop/s4_flights01.html#pink",//4
				"shop/s4_flights01.html#mexican_serape",//5
				"shop/s4_flights01.html#dragon_hearts",//6
				"shop/s4_flights01.html#punk_black",//7
				"shop/s4_flights01.html#punk_black",//8
				"shop/s4_flights01.html#punk_black",//9
				"shop/s4_flights01.html#punk_black",//10
				"shop/s4_flights01.html#gecko",//11
				"shop/s4_flights01.html#chou_purple",//12
				"shop/s4_flights01.html#red_fire",//13
				"shop/s4_flights01.html#gecko",//14
				"shop/s4_flights01.html#feather_pink",//15
				"shop/s4_flights01.html#samurai_damashii",//16
				"shop/s4_flights01.html#valentine",//17
				"shop/s4_flights01.html#blue_fire",//18
				"shop/s4_flights01.html#kannon");//19
//
var arrImageLinkAcc2 = new Array(				
				"shop/s4_flights01.html#chou_purple",//1
				"shop/s4_flights01.html#pink",//2
				"shop/s4_flights01.html#egypt",//3
				"shop/s4_flights01.html#snow_blue",//4
				"shop/s4_flights01.html#snow_blue",//5
				"shop/s4_flights01.html#snow_blue",//6
				"shop/s4_flights01.html#stomp_blue",//7
				"shop/s4_flights01.html#stomp_blue",//8
				"shop/s4_flights01.html#lucky_feather",//9
				"shop/s4_flights01.html#lock_on",//10
				"shop/s4_flights01.html#tribal_graffiti",//11
				"shop/s4_flights01.html#tribal_graffiti",//12
				"shop/s4_flights01.html#valentine",//13
				"shop/s4_flights01.html#egypt",//14
				"shop/s4_flights01.html#aloha",//15
				"shop/s4_flights01.html#tuesday",//16
				"shop/s4_flights01.html#feather_pink",//17
				"shop/s4_flights01.html#kannon",//18
				"shop/s4_flights01.html#yopparai");//19
//

//値段
var arrText = new Array(
			"&#165;300-",//1
			"&#165;300-",//2
			"&#165;300-",//3
			"&#165;300-",//4
			"&#165;300-",//5
			"&#165;300-",//6
			"&#165;300-",//7
			"&#165;300-",//8
			"&#165;300-",//9
			"&#165;300-",//10			
			"&#165;300-",//11
			"&#165;300-",//12
			"&#165;300-",//13
			"&#165;300-",//14
			"&#165;300-",//15
			"&#165;300-",//16
			"&#165;300-",//17
			"&#165;300-",//18
			"&#165;300-",//19
			"&#165;300-");//20
//
var arrTextShaft = new Array(
			"&#165;300-",//1
			"&#165;300-",//2
			"&#165;300-",//3
			"&#165;300-",//4
			"&#165;300-",//5
			"&#165;300-",//6
			"&#165;300-",//7
			"&#165;300-",//8
			"&#165;300-",//9
			"&#165;300-",//10
			"&#165;300-",//11
			"&#165;300-",//12
			"&#165;300-",//13
			"&#165;300-",//14
			"&#165;300-",//15
			"&#165;300-",//16
			"&#165;300-",//17
			"&#165;300-",//18
			"&#165;300-",//19
			"&#165;300-");//20
//
var arrTextFlight = new Array(
			"&#165;300-",//1
			"&#165;300-",//2
			"&#165;300-",//3
			"&#165;300-",//4
			"&#165;300-",//5
			"&#165;300-",//6
			"&#165;300-",//7
			"&#165;300-",//8
			"&#165;300-",//9
			"&#165;300-",//10
			"&#165;300-",//11
			"&#165;300-",//12
			"&#165;300-",//13
			"&#165;300-",//14
			"&#165;300-",//15
			"&#165;300-",//16
			"&#165;300-",//17
			"&#165;300-",//18
			"&#165;300-");//19
//
var arrTextFlight2 = new Array(
			"&#165;300-",//1
			"&#165;300-",//2
			"&#165;300-",//3
			"&#165;300-",//4
			"&#165;300-",//5
			"&#165;300-",//6
			"&#165;300-",//7
			"&#165;300-",//8
			"&#165;300-",//9
			"&#165;300-",//10
			"&#165;300-",//11
			"&#165;300-",//12
			"&#165;300-",//13
			"&#165;300-",//14
			"&#165;300-",//15
			"&#165;300-",//16
			"&#165;300-",//17
			"&#165;300-",//18
			"&#165;300-");//19
//
var arrTextAcc = new Array(
			"&#165;300-",//1
			"&#165;300-",//2
			"&#165;300-",//3
			"&#165;300-",//4
			"&#165;300-",//5
			"&#165;300-",//6
			"&#165;300-",//7
			"&#165;300-",//8
			"&#165;300-",//9
			"&#165;300-",//10
			"&#165;300-",//11
			"&#165;300-",//12
			"&#165;300-",//13
			"&#165;300-",//14
			"&#165;300-",//15
			"&#165;300-",//16
			"&#165;300-",//17
			"&#165;300-",//18
			"&#165;300-");//19
//
var arrTextAcc2 = new Array(			
			"&#165;300-",//1
			"&#165;300-",//2
			"&#165;300-",//3
			"&#165;300-",//4
			"&#165;300-",//5
			"&#165;300-",//6
			"&#165;300-",//7
			"&#165;300-",//8
			"&#165;300-",//9
			"&#165;300-",//10
			"&#165;300-",//11
			"&#165;300-",//12
			"&#165;300-",//13
			"&#165;300-",//14
			"&#165;300-",//15
			"&#165;300-",//16
			"&#165;300-",//17
			"&#165;300-",//18
			"&#165;300-");//19
//

var html= "";

function ShowTable(){//

	html += "<table style='width: 100%;'><tr>";
	
	var countNum = 0;
    
	for(i = 0; i < 4; i++){
	
	if(countNum == 1){
		
	html += "</tr><tr>";
	countNum = 0;
	
	}
//darts/
	html += "<td class='item-category-cell01'>";
	
	numCell= StartRandom1(i); //
	//
	html += arrTitle[numCell];
	html += "<br />";
	
	//
	html += "<a href='";
	html += arrImageLink[numCell];
	html += "' >";
	
	//
	html += "<img id='";
	html += "urlNumber"+i+"'";
	html += " src='";
	html += arrImage[numCell];
	html += "'";
	
	html += " />";
	html += "</a>";
	html += "<br />";
	
	html += "<span style='font-weight: 100;'>";
	html += arrLink[numCell];
	
	html += "<p style='margin-top: -10px;'>"+arrText[numCell]+"</p>";
	html += "</span>";
	html += "</td>";
	
	
	
//shaft/
	html += "<td class='item-category-cell01'>";
	
	numCell= StartRandom2(i); //
	//
	html += arrTitleShaft[numCell];
	html += "<br />";
	
	//
	html += "<a href='";
	html += arrImageLinkShaft[numCell];
	html += "' >";
	
	//
	html += "<img id='";
	html += "urlNumber"+i+"'";
	html += " src='";
	html += arrImageShaft[numCell];
	html += "'";
	
	html += " />";
	html += "</a>";
	html += "<br />";
	
	html += "<span style='font-weight: 100;'>";
	html += arrLinkShaft[numCell];
	
	html += "<p style='margin-top: -10px;'>"+arrTextShaft[numCell]+"</p>";
	html += "</span>";
	html += "</td>";
	
	
//flight/
	html += "<td class='item-category-cell01'>";
	
	numCell= StartRandom3(i); //
	//
	html += arrTitleFlight[numCell];
	html += "<br />";
	
	//
	html += "<a href='";
	html += arrImageLinkFlight[numCell];
	html += "' >";
	
	//
	html += "<img id='";
	html += "urlNumber"+i+"'";
	html += " src='";
	html += arrImageFlight[numCell];
	html += "'";
	
	html += " />";
	html += "</a>";
	html += "<br />";
	
	html += "<span style='font-weight: 100;'>";
	html += arrLinkFlight[numCell];
	
	html += "<p style='margin-top: -10px;'>"+arrTextFlight[numCell]+"</p>";
	html += "</span>";
	html += "</td>";
	
	
//flight2/
	html += "<td class='item-category-cell01'>";
	
	numCell= StartRandom4(i); //
	//
	html += arrTitleFlight2[numCell];
	html += "<br />";
	
	//
	html += "<a href='";
	html += arrImageLinkFlight2[numCell];
	html += "' >";
	
	//
	html += "<img id='";
	html += "urlNumber"+i+"'";
	html += " src='";
	html += arrImageFlight2[numCell];
	html += "'";
	
	html += " />";
	html += "</a>";
	html += "<br />";
	
	html += "<span style='font-weight: 100;'>";
	html += arrLinkFlight2[numCell];
	
	html += "<p style='margin-top: -10px;'>"+arrTextFlight2[numCell]+"</p>";
	html += "</span>";
	html += "</td>";
	
	
//acc/
	html += "<td class='item-category-cell01'>";
	
	numCell= StartRandom5(i); //
	//
	html += arrTitleAcc[numCell];
	html += "<br />";
	
	//
	html += "<a href='";
	html += arrImageLinkAcc[numCell];
	html += "' >";
	
	//
	html += "<img id='";
	html += "urlNumber"+i+"'";
	html += " src='";
	html += arrImageAcc[numCell];
	html += "'";
	
	html += " />";
	html += "</a>";
	html += "<br />";
	
	html += "<span style='font-weight: 100;'>";
	html += arrLinkAcc[numCell];
	
	html += "<p style='margin-top: -10px;'>"+arrTextAcc[numCell]+"</p>";
	html += "</span>";
	html += "</td>";
	
	
//acc2/
	html += "<td class='item-category-cell01'>";
	
	numCell= StartRandom6(i); //
	//
	html += arrTitleAcc2[numCell];
	html += "<br />";
	
	//
	html += "<a href='";
	html += arrImageLinkAcc2[numCell];
	html += "' >";
	
	//
	html += "<img id='";
	html += "urlNumber"+i+"'";
	html += " src='";
	html += arrImageAcc2[numCell];
	html += "'";
	
	html += " />";
	html += "</a>";
	html += "<br />";
	
	html += "<span style='font-weight: 100;'>";
	html += arrLinkAcc2[numCell];
	
	html += "<p style='margin-top: -10px;'>"+arrTextAcc2[numCell]+"</p>";
	html += "</span>";
	html += "</td>";
	
	countNum++;
	
}
html += "</tr></table>";
document.write(html);
}


var arrFlag1 = new Array(999,999,999);
var arrFlag2 = new Array(999,999,999);
var arrFlag3 = new Array(999,999,999);
var arrFlag4 = new Array(999,999,999);
var arrFlag5 = new Array(999,999,999);
var arrFlag6 = new Array(999,999,999);


//darts/
var nTemp, nLoop;
function StartRandom1(nIndex)
{

	nLoop = 0;
	nTemp = Math.round(Math.random()*(arrImage.length-1));
	//l?`FbN?B
	if (nIndex != 0)
	{
		for (nLoop = 0; nLoop < nIndex ; nLoop++)
		{
			if (nTemp == arrFlag1[nLoop])
			{
				StartRandom1(nIndex);
			}
		}
	}
	arrFlag1[nIndex] = nTemp;
	return nTemp;
}
function GetNum()
{
	return ;
}





//shaft/
var nTemp, nLoop;
function StartRandom2(nIndex)
{

	nLoop = 0;
	nTemp = Math.round(Math.random()*(arrImageShaft.length-1));
	//l?`FbN?B
	if (nIndex != 0)
	{
		for (nLoop = 0; nLoop < nIndex ; nLoop++)
		{
			if (nTemp == arrFlag2[nLoop])
			{
				StartRandom2(nIndex);
			}
		}
	}
	arrFlag2[nIndex] = nTemp;
	return nTemp;
}
function GetNum()
{
	return ;
}


//flight/
var nTemp, nLoop;
function StartRandom3(nIndex)
{

	nLoop = 0;
	nTemp = Math.round(Math.random()*(arrImageFlight.length-1));
	//l?`FbN?B
	if (nIndex != 0)
	{
		for (nLoop = 0; nLoop < nIndex ; nLoop++)
		{
			if (nTemp == arrFlag3[nLoop])
			{
				StartRandom3(nIndex);
			}
		}
	}
	arrFlag3[nIndex] = nTemp;
	return nTemp;
}
function GetNum()
{
	return ;
}

//flight2/
var nTemp, nLoop;
function StartRandom4(nIndex)
{

	nLoop = 0;
	nTemp = Math.round(Math.random()*(arrImageFlight2.length-1));
	//l?`FbN?B
	if (nIndex != 0)
	{
		for (nLoop = 0; nLoop < nIndex ; nLoop++)
		{
			if (nTemp == arrFlag4[nLoop])
			{
				StartRandom4(nIndex);
			}
		}
	}
	arrFlag4[nIndex] = nTemp;
	return nTemp;
}
function GetNum()
{
	return ;
}

//acc/
var nTemp, nLoop;
function StartRandom5(nIndex)
{

	nLoop = 0;
	nTemp = Math.round(Math.random()*(arrImageAcc.length-1));
	//l?`FbN?B
	if (nIndex != 0)
	{
		for (nLoop = 0; nLoop < nIndex ; nLoop++)
		{
			if (nTemp == arrFlag5[nLoop])
			{
				StartRandom5(nIndex);
			}
		}
	}
	arrFlag5[nIndex] = nTemp;
	return nTemp;
}
function GetNum()
{
	return ;
}


//acc2/
var nTemp, nLoop;
function StartRandom6(nIndex)
{

	nLoop = 0;
	nTemp = Math.round(Math.random()*(arrImageAcc2.length-1));
	//l?`FbN?B
	if (nIndex != 0)
	{
		for (nLoop = 0; nLoop < nIndex ; nLoop++)
		{
			if (nTemp == arrFlag6[nLoop])
			{
				StartRandom6(nIndex);
			}
		}
	}
	arrFlag6[nIndex] = nTemp;
	return nTemp;
}
function GetNum()
{
	return ;
}
