 
// PURAFAST JS

// START WINDOW ONLOAD CONTENT

window.onload=function(){


// SYSTEM IMAGE PRELOADER

shadowblock = document.getElementsByClassName('shadow');
	shadowblock.each(function(el){
	el.style.opacity = '0';
	});
	bottomblock = document.getElementsByClassName('bottom');
	bottomblock.each(function(el){
	el.style.opacity = '0';
	});

var busy = false, timer, loadedImages = [], shadow = $('shadow'), progress = $('progress'), bar = $E('#progress .bar'); 

var images = [ '../images/system/weaponry_icon.gif','../images/system/li1.gif','../images/system/Elemental_Avatar.jpg','../images/system/store.jpg','../images/system/dolphin.jpg','../images/system/cybank.jpg','../images/system/monsterx.jpg','../images/system/scorn.jpg','../images/system/logosplatter.jpg','../images/system/postuser.gif','../images/system/komonazuk.jpg','../images/system/combat_logo2.jpg','../images/system/navigation_icon.gif','../images/system/bracket.jpg','../images/system/feeds_icon.gif','../images/system/japan_house.jpg','../images/system/prev2.gif','../images/system/shuriken5.gif','../images/system/pointb.jpg','../images/system/cursorminer.jpg','../images/system/store_hover.jpg','../images/system/shelley.jpg','../images/system/contact_hover.jpg','../images/system/allies_hover.jpg','../images/system/battlefields_hover.jpg','../images/system/zilla.jpg','../images/system/download2.gif','../images/system/combat_logo.jpg','../images/system/combatbg.jpg','../images/system/clan_icon.gif','../images/system/home_hover.jpg','../images/system/weaponry_hover.jpg','../images/system/news_icon.gif','../images/system/monkeysteak.jpg','../images/system/dropshadowbottom.gif','../images/system/battlefields.jpg','../images/system/logo_right2.gif','../images/system/prev.gif','../images/system/news_hover.jpg','../images/system/martialflaw.jpg','../images/system/clan_hover.jpg','../images/system/logo_right.jpg','../images/system/dropshadowright.gif','../images/system/menuarrow.gif','../images/system/scanone.jpg','../images/system/newsletter_icon.gif','../images/system/loaderbox.gif','../images/system/images.jpg','../images/system/edchamberlain.jpg','../images/system/navigation.gif','../images/system/ekaros_myspazz.jpg','../images/system/prev.png','../images/system/weedjs.jpg','../images/system/replacement.gif','../images/system/next.png','../images/system/damo_avatar.jpg','../images/system/threnody.jpg','../images/system/milanese.jpg','../images/system/1.gif','../images/system/clan.jpg','../images/system/menuarrow2.gif','../images/system/contact.jpg','../images/system/logo_right.gif','../images/system/home_replacement.jpg','../images/system/links_icon.gif','../images/system/posttime.gif','../images/system/shuriken2.gif','../images/system/shuriken1.gif','../images/system/home.jpg','../images/system/download.gif','../images/system/shuriken3.gif','../images/system/shuriken4.gif','../images/system/audio_hover.jpg','../images/system/close.png','../images/system/ardisson.jpg','../images/system/dir.gif','../images/system/contact_icon.gif','../images/system/li2.gif','../images/system/news.jpg','../images/system/weaponry.jpg','../images/system/images_hover.jpg','../images/system/audio.jpg','../images/system/postcat.gif','../images/system/scanonecat.jpg','../images/system/stormfield.jpg','../images/system/x.gif','../images/system/logo_right3.gif','../images/system/japanesetxtbg.gif','../images/system/dropshadowtop.gif','../images/system/blackmassfinal.jpg','../images/system/allies.jpg','../images/system/damo.jpg','../images/system/whiteboi.jpg','../images/system/ekaros.jpg','../images/system/3.gif','../images/system/close_hover.png','../images/system/Synapse_avatar.gif','../images/system/dir.png','../images/system/x.gif' ];

function imageloader() {

		progress.setStyle('visibility', 'visible');
//		shadow.setStyle('visibility', 'hidden');


		new Asset.images(images, {
			onProgress: function(i) {

loadedImages[i] = this;
				var percent = ((i + 1) * progress.getStyle('width').toInt()) / images.length;
				bar.setStyle('width', percent).setHTML(i + 1 + ' / ' + images.length);

			},
			
	onComplete: function() {
	
	progress.setStyle('display', 'none');
	
	var shadowfade = function(){
	
	var div = $('shadow').setStyles({
	display:'block',
	opacity: 0
	});
	
	new Fx.Style(div, 'opacity', {duration: 1500} ).start(1);
	
	}
	
	shadowfade();
	
	var bottomfade = function(){
	
	var div = $('bottom').setStyles({
	display:'block',
	opacity: 0
	});
	
	new Fx.Style(div, 'opacity', {duration: 1500} ).start(1);
	
	}
	
	bottomfade();
	}
	
	});
	};

imageloader();

var so2 = new SWFObject("../files/combatplayer.swf", "combatplayer1", "160", "40", "8", "#000000");
so2.addParam("id", "combatplayer1");
so2.addParam("swLiveConnect", "true");
so2.write("mp3");
so2.addParam("wmode", "transparent");


}

// CLOSING WINDOW ONLOAD