// JavaScript Document
  if(window.attachEvent)
    window.attachEvent("onload",setListeners);

  function setListeners(){
    inputList = document.getElementsByTagName("INPUT");
    for(i=0;i<inputList.length;i++){
      inputList[i].attachEvent("onpropertychange",restoreStyles);
      inputList[i].style.backgroundColor = "";
    }
    selectList = document.getElementsByTagName("SELECT");
    for(i=0;i<selectList.length;i++){
      selectList[i].attachEvent("onpropertychange",restoreStyles);
      selectList[i].style.backgroundColor = "";
    }
  }

  function restoreStyles(){
    if(event.srcElement.style.backgroundColor != "")
      event.srcElement.style.backgroundColor = "";
  }
/***********************************************
* Ultimate Fade-In Slideshow (v1.51): © Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
 
var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["http://www.globalhardcorealliance.com/images/logo/photo1.jpg", "", ""] //plain image syntax
fadeimages[1]=["http://www.globalhardcorealliance.com/images/logo/photo2.gif", "", ""] //image with link syntax
fadeimages[2]=["http://www.globalhardcorealliance.com/images/logo/photo3.jpg", "", ""] //image with link and target syntax
fadeimages[3]=["http://www.globalhardcorealliance.com/images/logo/djs/vxtc/vxbanner_13.jpg", "http://www.virtualxtc.globalhardcorealliance.com", ""] //plain image syntax
fadeimages[4]=["http://www.globalhardcorealliance.com/images/logo/djs/leto/letobanner_13.jpg", "http://www.djleto.globalhardcorealliance.com", ""] //plain image syntax

var fadextc=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadextc[0]=["http://www.globalhardcorealliance.com/images/logo/djs/vxtc/vxbanner_1.jpg", "", ""] //plain image syntax
fadextc[1]=["http://www.globalhardcorealliance.com/images/logo/djs/vxtc/vxbanner_2.jpg", "", ""] //plain image syntax
fadextc[2]=["http://www.globalhardcorealliance.com/images/logo/djs/vxtc/vxbanner_3.jpg", "", ""] //plain image syntax
fadextc[3]=["http://www.globalhardcorealliance.com/images/logo/djs/vxtc/vxbanner_4.jpg", "", ""] //plain image syntax
fadextc[4]=["http://www.globalhardcorealliance.com/images/logo/djs/vxtc/vxbanner_5.jpg", "", ""] //plain image syntax
fadextc[5]=["http://www.globalhardcorealliance.com/images/logo/djs/vxtc/vxbanner_6.jpg", "", ""] //plain image syntax
fadextc[6]=["http://www.globalhardcorealliance.com/images/logo/djs/vxtc/vxbanner_7.jpg", "", ""] //plain image syntax
fadextc[7]=["http://www.globalhardcorealliance.com/images/logo/djs/vxtc/vxbanner_8.jpg", "", ""] //plain image syntax
fadextc[8]=["http://www.globalhardcorealliance.com/images/logo/djs/vxtc/vxbanner_9.jpg", "", ""] //plain image syntax
fadextc[9]=["http://www.globalhardcorealliance.com/images/logo/djs/vxtc/vxbanner_10.jpg", "", ""] //plain image syntax
fadextc[10]=["http://www.globalhardcorealliance.com/images/logo/djs/vxtc/vxbanner_11.jpg", "", ""] //plain image syntax
fadextc[11]=["http://www.globalhardcorealliance.com/images/logo/djs/vxtc/vxbanner_12.jpg", "", ""] //plain image syntax
fadextc[12]=["http://www.globalhardcorealliance.com/images/logo/djs/vxtc/vxbanner_13.jpg", "", ""] //plain image syntax
fadextc[13]=["http://www.globalhardcorealliance.com/images/logo/djs/vxtc/vxbanner_13.jpg", "", ""] //plain image syntax
fadextc[14]=["http://www.globalhardcorealliance.com/images/logo/djs/vxtc/vxbanner_13.jpg", "", ""] //plain image syntax
fadextc[15]=["http://www.globalhardcorealliance.com/images/logo/djs/vxtc/vxbanner_13.jpg", "", ""] //plain image syntax
fadextc[16]=["http://www.globalhardcorealliance.com/images/logo/djs/vxtc/vxbanner_13.jpg", "", ""] //plain image syntax

var fadeleto=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeleto[0]=["http://www.globalhardcorealliance.com/images/logo/djs/leto/letobanner_1.jpg", "", ""] //plain image syntax
fadeleto[1]=["http://www.globalhardcorealliance.com/images/logo/djs/leto/letobanner_2.jpg", "", ""] //plain image syntax
fadeleto[2]=["http://www.globalhardcorealliance.com/images/logo/djs/leto/letobanner_3.jpg", "", ""] //plain image syntax
fadeleto[3]=["http://www.globalhardcorealliance.com/images/logo/djs/leto/letobanner_4.jpg", "", ""] //plain image syntax
fadeleto[4]=["http://www.globalhardcorealliance.com/images/logo/djs/leto/letobanner_5.jpg", "", ""] //plain image syntax
fadeleto[5]=["http://www.globalhardcorealliance.com/images/logo/djs/leto/letobanner_6.jpg", "", ""] //plain image syntax
fadeleto[6]=["http://www.globalhardcorealliance.com/images/logo/djs/leto/letobanner_7.jpg", "", ""] //plain image syntax
fadeleto[7]=["http://www.globalhardcorealliance.com/images/logo/djs/leto/letobanner_8.jpg", "", ""] //plain image syntax
fadeleto[8]=["http://www.globalhardcorealliance.com/images/logo/djs/leto/letobanner_9.jpg", "", ""] //plain image syntax
fadeleto[9]=["http://www.globalhardcorealliance.com/images/logo/djs/leto/letobanner_10.jpg", "", ""] //plain image syntax
fadeleto[10]=["http://www.globalhardcorealliance.com/images/logo/djs/leto/letobanner_11.jpg", "", ""] //plain image syntax
fadeleto[11]=["http://www.globalhardcorealliance.com/images/logo/djs/leto/letobanner_12.jpg", "", ""] //plain image syntax
fadeleto[12]=["http://www.globalhardcorealliance.com/images/logo/djs/leto/letobanner_13.jpg", "", ""] //plain image syntax
fadeleto[13]=["http://www.globalhardcorealliance.com/images/logo/djs/leto/letobanner_13.jpg", "", ""] //plain image syntax
fadeleto[14]=["http://www.globalhardcorealliance.com/images/logo/djs/leto/letobanner_13.jpg", "", ""] //plain image syntax
fadeleto[15]=["http://www.globalhardcorealliance.com/images/logo/djs/leto/letobanner_13.jpg", "", ""] //plain image syntax
fadeleto[16]=["http://www.globalhardcorealliance.com/images/logo/djs/leto/letobanner_13.jpg", "", ""] //plain image syntax


var fadebgcolor="black"

////NO need to edit beyond here/////////////
 
var fadearray=new Array() //array to cache fadeshow instances
var fadeclear=new Array() //array to cache corresponding clearinterval pointers
 
var dom=(document.getElementById) //modern dom browsers
var iebrowser=document.all
 
function fadeshow(theimages, fadewidth, fadeheight, borderwidth, delay, pause, displayorder){
this.pausecheck=pause
this.mouseovercheck=0
this.delay=delay
this.degree=10 //initial opacity degree (10%)
this.curimageindex=0
this.nextimageindex=1
fadearray[fadearray.length]=this
this.slideshowid=fadearray.length-1
this.canvasbase="canvas"+this.slideshowid
this.curcanvas=this.canvasbase+"_0"
if (typeof displayorder!="undefined")
theimages.sort(function() {return 0.5 - Math.random();})
this.theimages=theimages
this.imageborder=parseInt(borderwidth)
this.postimages=new Array() //preload images
for (p=0;p<theimages.length;p++){
this.postimages[p]=new Image()
this.postimages[p].src=theimages[p][0]
}
 
var fadewidth=fadewidth+this.imageborder*2
var fadeheight=fadeheight+this.imageborder*2
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie: Firefox)
document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div></div>')
else
document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>')
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers such as Firefox
this.startit()
else{
this.curimageindex++
setInterval("fadearray["+this.slideshowid+"].rotateimage()", this.delay)
}
}

function fadepic(obj){
if (obj.degree<100){
obj.degree+=10
if (obj.tempobj.filters&&obj.tempobj.filters[0]){
if (typeof obj.tempobj.filters[0].opacity=="number") //if IE6+
obj.tempobj.filters[0].opacity=obj.degree
else //else if IE5.5-
obj.tempobj.style.filter="alpha(opacity="+obj.degree+")"
}
else if (obj.tempobj.style.MozOpacity)
obj.tempobj.style.MozOpacity=obj.degree/101
else if (obj.tempobj.style.KhtmlOpacity)
obj.tempobj.style.KhtmlOpacity=obj.degree/100
else if (obj.tempobj.style.opacity&&!obj.tempobj.filters)
obj.tempobj.style.opacity=obj.degree/101
}
else{
clearInterval(fadeclear[obj.slideshowid])
obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1"
obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas)
obj.populateslide(obj.tempobj, obj.nextimageindex)
obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)? obj.nextimageindex+1 : 0
setTimeout("fadearray["+obj.slideshowid+"].rotateimage()", obj.delay)
}
}
 
fadeshow.prototype.populateslide=function(picobj, picindex){
var slideHTML=""
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'
slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML+='</a>'
picobj.innerHTML=slideHTML
}
 
 
fadeshow.prototype.rotateimage=function(){
if (this.pausecheck==1) //if pause onMouseover enabled, cache object
var cacheobj=this
if (this.mouseovercheck==1)
setTimeout(function(){cacheobj.rotateimage()}, 100)
else if (iebrowser&&dom||dom){
this.resetit()
var crossobj=this.tempobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
crossobj.style.zIndex++
fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50)
this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0"
}
else{
var ns4imgobj=document.images['defaultslide'+this.slideshowid]
ns4imgobj.src=this.postimages[this.curimageindex].src
}
this.curimageindex=(this.curimageindex<this.postimages.length-1)? this.curimageindex+1 : 0
}
 
fadeshow.prototype.resetit=function(){
this.degree=10
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
if (crossobj.filters&&crossobj.filters[0]){
if (typeof crossobj.filters[0].opacity=="number") //if IE6+
crossobj.filters(0).opacity=this.degree
else //else if IE5.5-
crossobj.style.filter="alpha(opacity="+this.degree+")"
}
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=this.degree/101
else if (crossobj.style.KhtmlOpacity)
crossobj.style.KhtmlOpacity=this.degree/100
else if (crossobj.style.opacity&&!crossobj.filters)
crossobj.style.opacity=this.degree/101
}
 
 
fadeshow.prototype.startit=function(){
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
this.populateslide(crossobj, this.curimageindex)
if (this.pausecheck==1){ //IF SLIDESHOW SHOULD PAUSE ONMOUSEOVER
var cacheobj=this
var crossobjcontainer=iebrowser? iebrowser["master"+this.slideshowid] : document.getElementById("master"+this.slideshowid)
crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1}
crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0}
}
this.rotateimage()
}

// ***********************************************
// AUTHOR: WWW.CGISCRIPT.NET, LLC
// URL: http://www.cgiscript.net
// Use the script, just leave this message intact.
// Download your FREE CGI/Perl Scripts today!
// ( http://www.cgiscript.net/scripts.htm )
// ***********************************************
var default1 = "The Global Hardcore Alliance"; // only shown once at page load
var changeRate = 0; // 1000 = 1 second
var messageNumber = 0;

function changeStatus() {
  if (messageNumber == 0) {
     window.status=default1;
     document.title=default1;
    }
  else if (messageNumber == 1) {
     window.status=text1;
     document.title=text1;
    }
  else if (messageNumber == 2) {
     window.status=text2;
     document.title=text2;
     }
  else if (messageNumber == 3) {
     window.status=text3;
     document.title=text3;
     messageNumber = 0;
     }

  messageNumber++;
  setTimeout("changeStatus();",changeRate);

}

changeStatus(); // leave here to run right away

// Title: Tigra Fader
// URL: http://www.softcomplex.com/products/tigra_fader/
// Version: 1.0 (commented source)
// Date: 07/23/2007
// Notes: This script is free. Visit official site for further details.

function tFader (a_items, a_tpl) {

	// validate parameters and set defaults
	if (!a_items) return alert("items structure is missing");
	if (typeof(a_items) != 'object') return alert("format of the items structure is incorrect");
	if (a_items[a_items.length - 1] == null) return alert("last element of the items structure is undefined");
	if (!a_tpl) a_tpl = [];
	for (var i = 0; i < A_TSLIDEDEFS.length; i += 2)
		if (a_tpl[A_TSLIDEDEFS[i]] == null)
			a_tpl[A_TSLIDEDEFS[i]] = A_TSLIDEDEFS[i + 1];

	// save config parameters in the slider object
	this.a_tpl   = a_tpl;
	this.a_items = a_tpl.random ? tslide_randomize(a_items) : a_items;

	// initialize parameters, assign methods	
	this.n_currentSlide = 0;
	this.f_goto  = tslide_goto;
	this.f_run   = function () { this.b_running = 1; this.f_goto(); };
	this.f_stop  = function () { this.b_running = 0; clearTimeout(this.o_timerS); };
	this.f_fadeIn  = tslide_fadeIn;
	this.f_fadeOut = tslide_fadeOut;
	this.f_slideOp = tslide_slideOp;

	// register in the global collection	
	if (!window.A_SLIDES)
		window.A_SLIDES = [];
	this.n_id = window.A_SLIDES.length;
	window.A_SLIDES[this.n_id] = this;

	// generate control's HTML
	var s_attributes = ' '
		+ (a_tpl['css']    ? ' class="'  + a_tpl['css']    + '"' : '')
		+ (a_tpl['width']  ? ' width="'  + a_tpl['width']  + '"' : '')
		+ (a_tpl['height'] ? ' height="' + a_tpl['height'] + '"' : '')
		+ (a_tpl['alt']    ? ' title="'  + a_tpl['alt']    + '" alt="' + a_tpl['alt'] + '"' : '');

	this.a_imgRefs = [];
	document.write ('<img src="', this.a_items[0] , '"', s_attributes, ' name="tslide', this.n_id, '_0" />');
	this.a_imgRefs[0] = document.images['tslide' + this.n_id + '_0'];
	this.n_currentSlide = 0;

	// exit on old browsers
	if (!this.a_imgRefs[0] || !this.a_imgRefs[0].style || this.a_imgRefs[0].style.marginLeft == null)
		return;

	for (var i = 1; i < this.a_items.length; i++) {
		document.write('<img src="', this.a_items[i] , '"', s_attributes, ' name="tslide', this.n_id, '_', i, '" style="position:relative;z-index:-1;filter:alpha(opacity=100);" />');
		this.a_imgRefs[i] = document.images['tslide' + this.n_id + '_' + i];
		this.a_imgRefs[i].style.marginLeft = '-' + this.a_tpl.width + 'px';
		this.f_slideOp(i, 0);
		this.a_imgRefs[i].style.zIndex = i;
	}

	// calculate transition variables
	this.n_timeDec = Math.round(this.a_tpl['transtime'] * 1e3 / this.a_tpl['steps']);
	this.n_opacDec = Math.round(100 / this.a_tpl['steps']);

	// run this sucker
	this.f_run();
}

function tslide_goto (n_slide, b_now) {

	// cancel any scheduled transitions	
	if (this.o_timerS) {
		clearTimeout(this.o_timerS);
		this.o_timerS = null;
		if (this.n_nextSlide) {
			this.f_slideOp(this.n_nextSlide, 0);
			this.n_nextSlide = null;
		}
	}

	// determine the next slide
	this.n_nextSlide = (n_slide == null ? this.n_currentSlide + 1 : n_slide) % this.a_items.length;
	if (this.n_nextSlide == this.n_currentSlide) return;
	
	// schedule transition
	this.o_timerS = setTimeout('A_SLIDES[' + this.n_id + '].f_fade' + (this.n_nextSlide > this.n_currentSlide ? 'In' : 'Out') + '()', (b_now ? 0 : this.a_tpl['slidetime'] * 1e3));
}

function tslide_fadeIn (n_opacity) {
	// new transition
	if (n_opacity == null) {
		n_opacity = 0;
	}
	n_opacity += this.n_opacDec;
	// end of transition
	if (n_opacity > 99) {
		this.f_slideOp(this.n_nextSlide, 99);
		this.f_slideOp(this.n_currentSlide, 0);
		this.n_currentSlide = this.n_nextSlide;
		this.n_nextSlide = null;
		return this.f_run();
	}
	// set transparency
	this.f_slideOp(this.n_nextSlide, n_opacity);

	// cycle
	this.o_timerT = setTimeout('A_SLIDES[' + this.n_id + '].f_fadeIn(' + n_opacity + ')', this.n_timeDec);
}
function tslide_fadeOut (n_opacity) {
	// new transition
	if (n_opacity == null) {
		n_opacity = 99;
		this.f_slideOp(this.n_nextSlide, 99);
	}
	n_opacity -= this.n_opacDec;
	// end of transition
	if (n_opacity < 0) {
		this.f_slideOp(this.n_currentSlide, 0);
		this.n_currentSlide = this.n_nextSlide;
		this.n_nextSlide = null;
		return this.f_run();
	}
	// set transparency
	this.f_slideOp(this.n_currentSlide, n_opacity);

	// cycle
	this.o_timerT = setTimeout('A_SLIDES[' + this.n_id + '].f_fadeOut(' + n_opacity + ')', this.n_timeDec);
}

function tslide_slideOp (n_slide, n_opacity) {
	if (!n_slide) return;
	var e_slide = this.a_imgRefs[n_slide];
	tslide_setOpacity(e_slide, n_opacity);
}

function tslide_randomize (a_source) {
	var n_index,
		a_items = [];
	while (a_source.length) {
		n_index = Math.ceil(Math.random() * a_source.length) - 1;
		a_items[a_items.length] = a_source[n_index];
		a_source[n_index] = a_source[a_source.length - 1];
		a_source.length = a_source.length - 1;
	}
	return a_items;
}

// cross-browser opacity
var s_uaApp  = navigator.userAgent.toLowerCase();
if (s_uaApp.indexOf('opera') != -1 || s_uaApp.indexOf('safari') != -1)
	window.tslide_setOpacity = function (e_element, n_opacity) {
		e_element.style.opacity = n_opacity / 100;
	};
else if (s_uaApp.indexOf('gecko') != -1)
	window.tslide_setOpacity = function (e_element, n_opacity) {
		e_element.style.MozOpacity = n_opacity / 100;
	};
else if (s_uaApp.indexOf('msie') != -1)
	window.tslide_setOpacity = function (e_element, n_opacity) {
		try { e_element.filters.alpha.opacity = n_opacity } catch (e) {};
	};
else
	window.tslide_setOpacity = null;

// defaults
var A_TSLIDEDEFS = [
	'steps', 40,
	'css', '',
	'transtime', 0.5,
	'slidetime', 2
];