//Šg’£ŠJ‚­
function ow_ex4() {
	window.open('/ff11eu/altana/index.html','ex4');
}




var button = new Button();
button.slide = true;
/*
 * SubMenu
 *------------------------------------------------------------------------*/
if (isMatchUrl('https')) var str = 'http://www.playonline.com';
else var str = '';

var sub = new Menu('sub');
sub.slide = true;
/*------------------------------------------------------------------------*/
if(isMatchUrl('index.shtml')){
	sub.slide = false;
	sub.backgroundImage('/ff11eu/imgs/introbt.jpg' );
	sub.size(170,733 + 28 + 90 + 97);

	button.id('ikou');
	button.position(0,0,0,0);
	button.size(170,75);
	button.link('/homeeu/polshift/');
	button.target('_blank');
	button.alt(null);

	button.id('newplayer');
	button.position(0,0,0,-75);
	button.size(170,40);
	button.link('/ff11eu/newplayer/index.html');
	button.target('_blank');
	button.alt('New Player Guide');

	button.id('tmp');
	button.position(0,0,0,-115);
	button.size(149,65);
	button.link(null);
	button.alt('');

	button.id('sub1');
	button.position(5,0,-5,-180);
	button.size(149,22);
	button.link(str+'/ff11eu/intro/about/welcom.html?pageID=about');
	button.alt('Welcome to Vana\'diel');

	button.id('sub2');
	button.position(5,0,-5,-202);
	button.size(149,22);
	button.link(str+'/ff11eu/intro/world/index.html');
	button.alt('Locations');

	button.id('sub3');
	button.position(5,0,-5,-224);
	button.size(149,22);
	button.link(str+'/ff11eu/intro/about/live01.html?pageID=about');
	button.alt('Citizens of Vana\'diel');

	button.id('sub4');
	button.position(5,0,-5,-246);
	button.size(149,22);
	button.link(str+'/ff11eu/intro/monster/index.html?pageID=monster');
	button.alt('Monsters');

	button.id('sub5');
	button.position(5,0,-5,-268);
	button.size(149,22);
	button.link(str+'/ff11eu/guide/system/index.html?pageID=system');
	button.alt('Gameplay');

	button.id('sub6');
	button.position(5,0,-5,-290);
	button.size(149,29);
	button.link(null);

	button.id('sub7');
	button.position(5,0,-5,-319);
	button.size(149,22);
	button.link(str+'/ff11eu/intro/extension.html?pageID=extension');
	button.alt('Rise of the Zilart');

	button.id('sub8');
	button.position(5,0,-5,-341);
	button.size(149,22);
	button.link(str+'/ff11eu/promathia/index.html');
	button.alt('Chains of Promathia');
	button.target('_blank');

	button.id('sub9');
	button.position(5,0,-5,-363);
	button.size(149,22);
	button.link(str+'/ff11eu/ahturhgan/index.html');
	button.alt('Treasures of Aht Urhgan');
	button.target('_blank');

	button.id('sub10');
	button.position(5,0,-5,-385);
	button.size(149,22);
	button.link(str+'/ff11eu/altana/index.html');
	button.alt('Wings of the Goddess');
	button.target('_blank');

	button.id('sub11');
	button.position(5,0,-5,-407);
	button.size(149,29);
	button.link(null);

	button.id('sub12');
	button.position(5,0,-5,-436);
	button.size(149,22);
	button.link(str+'/ff11eu/addon/scenario/index.html');
	button.alt('A Crystalline Prophecy');
	button.target('_blank');

	button.id('sub13');
	button.position(5,0,-5,-458);
	button.size(149,22);
	button.link(str+'/ff11eu/addon/scenario/index.html');
	button.alt('A Moogle Kupo d\'Etat');
	button.target('_blank');

	button.id('sub14');
	button.position(5,0,-5,-480);
	button.size(149,22);
	button.link(str+'/ff11eu/addon/scenario/index.html');
	button.alt('A Shantotto Ascension');
	button.target('_blank');

	button.id('sub15');
	button.position(5,0,-5,-502);
	button.size(149,29);
	button.link(null);

	button.id('sub16');
	button.position(5,0,-5,-531);
	button.size(149,22);
	button.link(str+'/ff11eu/addon/index.html');
	button.alt('');
	button.target('_blank');

	button.id('sub17');
	button.position(5,0,-5,-553);
	button.size(149,22);
	button.link(str+'/ff11eu/addon/index.html');
	button.alt('');
	button.target('_blank');

	button.id('sub18');
	button.position(5,0,-5,-575);
	button.size(149,22);
	button.link(str+'/ff11eu/addon/index.html');
	button.alt('');
	button.target('_blank');

	button.id('sub19');
	button.position(5,0,-5,-597);
	button.size(149,15);
	button.link(null);

	button.id('sub20');
	button.position(5,0,-5,-612);
	button.size(149,22);
	button.link(str+'/ff11eu/intro/shop.html');
	button.alt('Online Store');

	button.id('sub21');
	button.position(5,0,-5,-634);
	button.size(149,22);
	button.link(str+'/ff11eu/intro/optional/wd_transfer01.html');
	button.alt('World Transfer');

	button.id('sub22');
	button.position(5,0,-5,-656);
	button.size(149,22);
	button.link(str+'/ff11eu/topics/optional/regist.html');
	button.alt('Registration Code Sales');

	button.id('sub23');
	button.position(5,0,-5,-678);
	button.size(149,42);
	button.link(null);


} else if (isMatchUrl('/info/')||isMatchUrl('/polnews')||isMatchUrl('/polff11s')||isMatchUrl('/topics')||isMatchUrl('/server')||isMatchUrl('/service/')||isMatchUrl('/verup/')) {
	sub.slide = false;
	sub.backgroundImage('/ff11eu/imgs/introbt2.jpg' );
	sub.size(170,733 + 28 + 90 + 97);

	button.id('ikou');
	button.position(0,0,0,0);
	button.size(170,62);
	button.link('/homeeu/polshift/');
	button.target('_blank');
	button.alt('null');

	button.id('newplayer');
	button.position(0,0,0,-62);
	button.size(170,40);
	button.link('/ff11eu/newplayer/index.html');
	button.target('_blank');
	button.alt('New Player Guide');

	button.id('tmp');
	button.position(0,0,0,-102);
	button.size(149,65);
	button.link(null);
	button.alt('');

	button.id('sub1');
	button.position(5,0,-5,-164);
	button.size(149,22);
	button.link(str+'/ff11eu/intro/about/welcom.html?pageID=about');
	button.alt('Welcome to Vana\'diel');

	button.id('sub2');
	button.position(5,0,-5,-186);
	button.size(149,22);
	button.link(str+'/ff11eu/intro/world/index.html');
	button.alt('Locations');

	button.id('sub3');
	button.position(5,0,-5,-208);
	button.size(149,22);
	button.link(str+'/ff11eu/intro/about/live01.html?pageID=about');
	button.alt('Citizens of Vana\'diel');

	button.id('sub4');
	button.position(5,0,-5,-230);
	button.size(149,22);
	button.link(str+'/ff11eu/intro/monster/index.html?pageID=monster');
	button.alt('Monsters');

	button.id('sub5');
	button.position(5,0,-5,-252);
	button.size(149,22);
	button.link(str+'/ff11eu/guide/system/index.html?pageID=system');
	button.alt('Gameplay');

	button.id('sub6');
	button.position(5,0,-5,-274);
	button.size(149,29);
	button.link(str+'/ff11eu/guide/development/index.html?pageID=system');
	button.alt('Developper\'s Room');

	button.id('sub7');
	button.position(5,0,-5,-303);
	button.size(149,22);
	button.link(str+'/ff11eu/intro/extension.html?pageID=extension');
	button.alt('Rise of the Zilart');

	button.id('sub8');
	button.position(5,0,-5,-325);
	button.size(149,22);
	button.link(str+'/ff11eu/promathia/index.html');
	button.alt('Chains of Promathia');
	button.target('_blank');

	button.id('sub9');
	button.position(5,0,-5,-347);
	button.size(149,22);
	button.link(str+'/ff11eu/ahturhgan/index.html');
	button.alt('Treasures of Aht Urhgan');
	button.target('_blank');

	button.id('sub10');
	button.position(5,0,-5,-369);
	button.size(149,22);
	button.link(str+'/ff11eu/altana/index.html');
	button.alt('Wings of the Goddess');
	button.target('_blank');

	button.id('sub11');
	button.position(5,0,-5,-391);
	button.size(149,29);
	button.link(null);

	button.id('sub12');
	button.position(5,0,-5,-420);
	button.size(149,22);
	button.link(str+'/ff11eu/addon/scenario/index.html');
	button.alt('A Crystalline Prophecy');
	button.target('_blank');

	button.id('sub13');
	button.position(5,0,-5,-442);
	button.size(149,22);
	button.link(str+'/ff11eu/addon/scenario/index.html');
	button.alt('A Moogle Kupo d\'Etat');
	button.target('_blank');

	button.id('sub14');
	button.position(5,0,-5,-464);
	button.size(149,22);
	button.link(str+'/ff11eu/addon/scenario/index.html');
	button.alt('A Shantotto Ascension');
	button.target('_blank');

	button.id('sub15');
	button.position(5,0,-5,-486);
	button.size(149,29);
	button.link(null);

	button.id('sub16');
	button.position(5,0,-5,-515);
	button.size(149,22);
	button.link(str+'/ff11eu/addon/index.html');
	button.alt('');
	button.target('_blank');

	button.id('sub17');
	button.position(5,0,-5,-537);
	button.size(149,22);
	button.link(str+'/ff11eu/addon/index.html');
	button.alt('');
	button.target('_blank');

	button.id('sub18');
	button.position(5,0,-5,-559);
	button.size(149,22);
	button.link(str+'/ff11eu/addon/index.html');
	button.alt('');
	button.target('_blank');

	button.id('sub19');
	button.position(5,0,-5,-581);
	button.size(149,15);
	button.link(null);

	button.id('sub20');
	button.position(5,0,-5,-596);
	button.size(149,22);
	button.link(str+'/ff11eu/intro/shop.html');
	button.alt('Online Store');

	button.id('sub21');
	button.position(5,0,-5,-618);
	button.size(149,22);
	button.link(str+'/ff11eu/intro/optional/wd_transfer01.html');
	button.alt('World Transfer');

	button.id('sub22');
	button.position(5,0,-5,-640);
	button.size(149,22);
	button.link(str+'/ff11eu/topics/optional/regist.html');
	button.alt('Registration Code Sales');

	button.id('sub23');
	button.position(5,0,-5,-662);
	button.size(149,42);
	button.link(null);


}

var ss_size = 200 + 28;

function charamake(){
	window.open("/ff11eu/intro/charmake/index.html","chara","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=no,width=549,height=399");
}

if(isMatchUrl('/intro/')){
	document.write('<img src="/ff11eu/menu/imgs/catl01.gif">');
	sub.backgroundImage('/ff11eu/menu/imgs/subbt01.gif' );
	sub.size(170,528+ss_size);
	
	link = [
	'about&start',
		'/ff11eu/intro/about/welcom.html?pageID=about',
		'/ff11eu/intro/about/history01.html?pageID=about',
		'/ff11eu/intro/about/class01.html?pageID=about',
		'/ff11eu/intro/about/job01.html?pageID=about',
		'/ff11eu/intro/about/live01.html?pageID=about',
		'javascript:charamake();&end',
	'/ff11eu/intro/world/index.html',
	'monster&start',
		'/ff11eu/intro/monster/index.html?pageID=monster',
		'/ff11eu/intro/monster/tribe.html?pageID=monster&end',
	'extension&start',
		'/ff11eu/intro/extension.html?pageID=extension',
		'/ff11eu/promathia/index.html&blank',
		'/ff11eu/ahturhgan/index.html&blank',
		'/ff11eu/altana/index.html&blank&end',
	'/ff11eu/intro/shop.html',
	'/ff11eu/intro/optional/wd_transfer01.html'
	];
}


if(isMatchUrl('/envi/')){
	document.write('<img src="/ff11eu/menu/imgs/catl02.gif">');
	sub.backgroundImage('/ff11eu/menu/imgs/subbt02.gif' );
	sub.size(170,108+ss_size);

	link = [
	'/ff11eu/envi/win/win01.html',
	'/ff11eu/envi/xbox/xbox01.html',
	'/ff11eu/envi/charge.html'
	];
}

if(isMatchUrl('/guide/')){
	document.write('<img src="/ff11eu/menu/imgs/catl03.gif">');
	sub.backgroundImage('/ff11eu/menu/imgs/subbt03.gif' );
	sub.size(170,584+ss_size);
	
	link = [
	'system&start',
		'/ff11eu/guide/system/index.html?pageID=system',
		'/ff11eu/guide/system/quests.html?pageID=system',
		'/ff11eu/guide/system/comm.html?pageID=system',
		'/ff11eu/guide/system/battle.html?pageID=system',
		'/ff11eu/guide/system/other.html?pageID=system',
		'/ff11eu/guide/system/worlds.html?pageID=system',
		'/ff11eu/guide/system/item.html?pageID=system',
		'/ff11eu/guide/system/dictionary01.html?pageID=system&end',
	'development&start',
		'/ff11eu/guide/development/concept01.html?pageID=development',
		'/ff11eu/guide/development/census/index.html&blank',
		'/ff11eu/guide/development/vt2/backnumber/index.html&blank',
		'/ff11eu/guide/development/goblin/main/index.html&end&blank',
		'/ff11eu/guide/mogbon/index.html',
		'/ff11eu/guide/mogtab/index.html',
		'/ff11eu/guide/recruitment01.html',
		'/ff11eu/crs/&blank',
		'http://forum.square-enix.com/ffxi/threads/17021&blank',
		'/ff11eu/guide/glossary/index.html'
	];
}

if(isMatchUrl('/download/')){
	document.write('<img src="/ff11eu/menu/imgs/catl05.gif">');
	sub.backgroundImage('/ff11eu/menu/imgs/subbt05.gif' );
	sub.size(170,164+ss_size);

	link = [
	'media&start',
		'/ff11eu/download/media/sysinfo01.html?pageID=media',
		'/ff11eu/download/media/benchmark01.html?pageID=media',
		'/ff11eu/download/media/vista01.html?pageID=media&end',
	'/ff11eu/download/wind/index.html'
	];
}

if (isMatchUrl('/rule/')){
	document.write('<img src="/ff11eu/menu/imgs/catl06.gif">');
	sub.backgroundImage('/ff11eu/menu/imgs/subbt06.gif' );
	sub.size(170,304+ss_size);

	link = [
	'/ff11eu/rule/index.html',
	'http://support.eu.square-enix.com/about_igsupport.php?la=2&id=455&blank',
	'manner&start',
		'/ff11eu/rule/manner01.html?pageID=manner',
		'/ff11eu/rule/manner02.html?pageID=manner',
		'/ff11eu/rule/manner03.html?pageID=manner',
		'/ff11eu/rule/manner04.html?pageID=manner',
		'/ff11eu/rule/manner05.html?pageID=manner&end',
	'/ff11eu/rule/uacs01.html',
	'/ff11eu/rule/specialtask.html'
	];
	alt  = [
	'User Agreement',
	'GM',
	'Online Manners',
		'	Outline',
		'	Communicating with Players',
		'	Rules',
		'	Dealing with Disruptions',
		'	Account Penalties',
	'Unauthorized Access',
	'The Special Task Force'
	];

}

/*------------------------------------------------------------------------*/

/* SUB MENU */
var slide_header_data = new Object();
var slide_y = new Object();

if(!isMatchUrl('index.shtml')&&!isMatchUrl('/info/')&&!isMatchUrl('/polnews')&&!isMatchUrl('/polff11s')&&!isMatchUrl('/topics')&&!isMatchUrl('/server')&&!isMatchUrl('/service/')&&!isMatchUrl('/verup/')){
	for(var i=0; i<link.length; i++){

		if (link[i].indexOf('&start', 0) != -1) {
			var match_string = new RegExp(/&start/);
			link[i] = link[i].replace(match_string, '');
			button.id(link[i]);
			button.childNodesStart();
			button.size(162,28);
			button.position(0,0,0,i*(-28));

			slide_y[link[i]] = button.button_aggregater[link[i]].background_image_y;
		} else {
			button.id('subbt'+i);
			button.size(162,28);
			button.position(0,0,0,i*(-28));
		}

		if (link[i].indexOf('&blank', 0) != -1) {
			var match_string = new RegExp(/&blank/);
			link[i] = link[i].replace(match_string, '');
			button.target('_blank');
		}

		if (link[i].indexOf('&end', 0) != -1) {
			button.childNodesEnd();
			var match_string = new RegExp(/&end/);
			link[i] = link[i].replace(match_string, '');
		}

		if (link[i].indexOf('http', 0) != -1) {
			button.link(link[i]);
		} else {
			button.link(str+link[i]);
		}

	}
}

if(!isMatchUrl('index.shtml')&&!isMatchUrl('/info/')&&!isMatchUrl('/polnews')&&!isMatchUrl('/polff11s')&&!isMatchUrl('/topics')&&!isMatchUrl('/server')&&!isMatchUrl('/service/')&&!isMatchUrl('/verup/')){
	button.id('subbt'+i);
	button.size(170,24);
	button.position(0,0,0,i*(-28));
	button.link(null);
}

sub.flushFF11(button);
button.cleanup();

if(!isMatchUrl('index.shtml')&&!isMatchUrl('/info/')&&!isMatchUrl('/polnews')&&!isMatchUrl('/polff11s')&&!isMatchUrl('/topics')&&!isMatchUrl('/server')&&!isMatchUrl('/service/')&&!isMatchUrl('/verup/')){
	slideSwitch($GET('pageID'),-170,slide_y[$GET('pageID')]);
}

