<!-- Hide from JavaScript-Impaired Browsers;

var rndNum = 0;
var stnr="";
var ns="0123456789";
var a="";
var tx = 0
var hex = 255 // Initial color value.

// Marquee Variables

var formatstart = '<b><a class=neutral href='
var formatend = '</a></b>'
var mycontent=new Array()
mycontent[0]='"emporium/addons.php/catid/cmod">Tired of fans? Get a ThermalTake Aquarius II water cooler!'
mycontent[1]='"emporium/addons.php/catid/cmod">New! Liquid Neon Wave lightbars add spice to windowed cases'
mycontent[2]='"emporium/addons.php/catid/cpu">Intel Pentium 4 Extreme Edition and AMD Athlon 64 processors'
mycontent[3]='"emporium/addons.php/catid/dvd">Read and burn both DVDs and CDs...DVD/RW+R!'
mycontent[4]='"emporium/addons.php/catid/vid">Chaintech GeForce FX5900 128MB video cards!'

function initArray(){
	for(i=0;i<initArray.arguments.length; i++)
		this[i] = initArray.arguments[i];
}

function GotoPageHome(element) {
	var page = element.options[element.selectedIndex].value;
	if (page=="-") {
		element.selectedIndex = 0;
		element.setfocus;
		return false;
	} else if (page.indexOf(".")>0) {
		page += "php";
		window.location = page;
		return false;
	} else if (page.indexOf(",")>0) {
        page = page.substring(0,page.length-1);
		page += ".php";
		window.location = page;
		return false;
	} else {
		page += "index.php3";
		window.location = page;
		return false;
	}
}

function getCookie(name){
	var cname = name + "=";               
	var dc = document.cookie;             
    if (dc.length > 0) {              
    begin = dc.indexOf(cname);       
        if (begin != -1) {           
        begin += cname.length;       
        end = dc.indexOf(";", begin);
            if (end == -1) end = dc.length;
            return unescape(dc.substring(begin, end));
        } 
    }
	return null;
}

// The HTML Contents to Display

function altercontent(){
	var textline = formatstart + mycontent[tx] + formatend
	if (document.all) {
		//if IE 4+
		document.innerHTML=textline;
	} else if (document.layers) {
		//if NS 4
		document.ns4dcontent.document.ns4dcontent2.document.write(textline);
		document.ns4dcontent.document.ns4dcontent2.document.close();
	} else if (document.getElementById) {
		//if NS 6 (supports new DOM)
		rng = document.createRange();
		el = document.getElementById("dcontent");
		rng.setStartBefore(el);
		htmlFrag = rng.createContextualFragment(textline);
		while (el.hasChildNodes())
		el.removeChild(el.lastChild);
		el.appendChild(htmlFrag);
	}

	if (tx==mycontent.length-1)
		tx=0
	else
		tx++
}

function beginrotation(){
	if (document.all||document.layers||document.getElementById) {
		altercontent();
		setInterval("altercontent()",3000);
    }
}

// Fade-in image slideshow- By Dynamic Drive
// For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
// This credit MUST stay intact for use

var slideshow_width=460 	//SET IMAGE WIDTH
var slideshow_height=300 	//SET IMAGE HEIGHT
var pause=3000 				//SET PAUSE BETWEEN SLIDE (3000=3 seconds)
var linktarget="_self"		//SET ANCHOR TARGET
var imageborder="0"			//SET IMAGE BORDER

var fadeimages=new Array()	//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]="img/f/hpicap.jpg"
fadeimages[1]="img/f/hpicby.jpg"
fadeimages[2]="img/f/hpicbz.jpg"
var fadelinks=new Array()	//SET LINK PATHS. Extend or contract array as needed
fadelinks[0]="/help/ras.php"
fadelinks[1]="/help/"
fadelinks[2]="/help/"
var fadetags=new Array()
fadetags[0]="OMIT Remote Assistance Service.  Fix your computer over the Internet"
fadetags[1]="Save time, get better computer service."
fadetags[2]="OMIT computer service.  Pick-up, remote assistance, more..."

////NO need to edit beyond here/////////////

var curpos=10
var degree=10
var curcanvas="canvas0"
var curimageindex=0
var nextimageindex=1

var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1

var preloadedimages=new Array()
for (p=0;p<fadeimages.length;p++){
    preloadedimages[p]=new Image()
    preloadedimages[p].src=fadeimages[p]
}

function creatediv(){
    if (ie4||dom)
        document.write('<div style="position:relative;width:'+slideshow_width+';height:'+slideshow_height+';overflow:hidden"><div id="canvas0" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';top:0;left:0;filter:alpha(opacity=10);-moz-opacity:10"></div><div id="canvas1" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';top:0;left:0;filter:alpha(opacity=10);-moz-opacity:10"></div></div>')
    else
    	document.write('<a href="'+fadelinks[0]+'" name="defaultlink" target="'+linktarget+'"><img name="defaultslide" src="'+fadeimages[0]+'" border="'+imageborder+'" alt="'+fadetags[0]+'" title="'+fadetags[0]+'"></a>')
}

function fadepic(){
    if (curpos<100){
        curpos+=10
        if (tempobj.filters)
        tempobj.filters.alpha.opacity=curpos
        else if (tempobj.style.MozOpacity)
        tempobj.style.MozOpacity=curpos/100
    }
    else{
        clearInterval(dropslide)
        nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1"
        tempobj=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas)
        tempobj.innerHTML='<a href="'+fadelinks[nextimageindex]+'" target="'+linktarget+'"><img src="'+fadeimages[nextimageindex]+'" border="'+imageborder+'" alt="'+fadetags[nextimageindex]+'" title="'+fadetags[nextimageindex]+'"></a>'
        nextimageindex=(nextimageindex<fadeimages.length-1)? nextimageindex+1 : 0
        setTimeout("rotateimage()",pause)
    }
}

function rotateimage(){
    if (ie4||dom){
        resetit(curcanvas)
        var crossobj=tempobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
        crossobj.style.zIndex++
        var temp='setInterval("fadepic()",50)'
        dropslide=eval(temp)
        curcanvas=(curcanvas=="canvas0")? "canvas1" : "canvas0"
    }
    else{
        document.images.defaultslide.src=fadeimages[curimageindex]
		document.images.defaultslide.alt=fadetags[curimageindex]
		document.images.defaultslide.title=fadetags[curimageindex]
		document.anchors.defaultlink.href=fadeimages[curimageindex]
	}
curimageindex=(curimageindex<fadeimages.length-1)? curimageindex+1 : 0
}

function resetit(what){
    curpos=10
    var crossobj=ie4? eval("document.all."+what) : document.getElementById(what)
    if (crossobj.filters)
    	crossobj.filters.alpha.opacity=curpos
    else if (crossobj.style.MozOpacity)
    	crossobj.style.MozOpacity=curpos/100
}

function startit(){
    var crossobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
    crossobj.innerHTML='<a href="'+fadelinks[curimageindex]+'" target="'+linktarget+'"><img src="'+fadeimages[curimageindex]+'" border="'+imageborder+'" alt="'+fadetags[curimageindex]+'" title="'+fadetags[curimageindex]+'"></a>'
    rotateimage()
}

//window.onload=beginrotation()
// End Hiding -->