// JavaScript Document

var pagequery=window.location.search.substring(1);

var pngstatus='native';
var hdrspeed=100;
var bulletspeed=75;
var bulletpause=300;
var thespeed=hdrspeed;

var elemstar=new Array(7);
var elemdist=new Array(7);

elemstar[0]=478; elemdist[0]=478;
elemstar[1]=478; elemdist[1]=238;
elemstar[2]=478; elemdist[2]=478;
elemstar[3]=478; elemdist[3]=478;
elemstar[4]=478; elemdist[4]=478;
elemstar[5]=478; elemdist[5]=478;
elemstar[6]=478; elemdist[6]=478;
elemstar[7]=478; elemdist[7]=240;

var ss=elemstar[0];
var an=1.5707;
var el=0;
var oo=0;

var qq=0;
var ff=100;

var quotestext=new Array(3);

quotestext[0]='<table cellspacing="0" cellpadding="0" border="0" width="445"><tr valign="middle" style="height: 100px;"><td align=center><table cellspacing="0" cellpadding="0" border="0"><tr><td><font size=3 face="Helvetica, Arial" color="#868686">"NASplex is quick and responsive to our<br>&nbsp;&nbsp;demanding needs. Joey and his team do a<br>&nbsp;&nbsp;&nbsp;&nbsp;wonderful job." <font size=1 color="#000000"><i>-- James Moak, Gulfsouth Technology<\/i><\/font><\/font><\/td><\/tr><\/table><\/td><\/tr><\/table>';

quotestext[1]='<table cellspacing="0" cellpadding="0" border="0" width="445"><tr valign="middle" style="height: 100px;"><td align=center><table cellspacing="0" cellpadding="0" border="0"><tr><td><font size=3 face="Helvetica, Arial" color="#868686">"<a href="learn1.shtml" class="tourlinks">Click Here<\/a> to learn what I value in customer service,<br>&nbsp;&nbsp;expect from our service providers, and what you<br>&nbsp;&nbsp;can expect from NASplex..." <font size=1 color="#000000"><i>-- Joey Messenger, NASplex Owner\/CEO<\/i><\/font><\/font><\/td><\/tr><\/table><\/td><\/tr><\/table>';

quotestext[2]='<table cellspacing="0" cellpadding="0" border="0" width="445"><tr valign="middle" style="height: 100px;"><td align=center><table cellspacing="0" cellpadding="0" border="0"><tr><td><font size=3 face="Helvetica, Arial" color="#868686">"We have had very satisfactory service since switching<br>&nbsp;&nbsp;to NASplex. Their support team knows me and I am never<br>&nbsp;&nbsp;&nbsp;&nbsp;treated as just a number" <font size=1 color="#000000"><i>-- Fernando Fernandez, Tekdesign<\/i><\/font><\/font><\/td><\/tr><\/table><\/td><\/tr><\/table>';

quotestext[3]='<table cellspacing="0" cellpadding="0" border="0" width="445"><tr valign="middle" style="height: 100px;"><td align=center><table cellspacing="0" cellpadding="0" border="0"><tr><td><font size=3 face="Helvetica, Arial" color="#868686">"NASplex is not for everybody, certain businesses are best<br>&nbsp;&nbsp;served elsewhere - we serve a select group of customers<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="learn2.shtml" class="tourlinks">Click Here<\/a> to learn more..." <font size=1 color="#000000"><i>-- Joey Messenger, NASplex Owner\/CEO<\/i><\/font><\/font><\/td><\/tr><\/table><\/td><\/tr><\/table>';

if (navigator.appVersion.indexOf('MSIE')>0) {
	var arVersion = navigator.appVersion.split("MSIE")
	var version = parseFloat(arVersion[1])
	if (version >= 5.5) {pngstatus='corrected';}
	else {pngstatus='notavailable';}
	}

function startup() {
	document.getElementById('points_container').style.clip="rect(0px 477px 149px 0px)";
	document.getElementById('points_container').style.visibility="visible";
	document.getElementById('quotes_container').innerHTML=quotestext[0];
	gallery.document.location="gallery.shtml";
	slidein();
	}
	
function slidein() {
	if (pagequery == 'v=1') {
		for (i=0; i<8; i++) {
			num=478-elemdist[i];
			REF=eval('elem'+i);
			REF.style.left=num+'px';
			}
		setTimeout('fadeout()',6000);
		}
	else {
		if (ss > (elemstar[el]-elemdist[el])) {
			idtag='elem'+el;
			REF=document.getElementById(idtag);
			if (pngstatus=='corrected') {
				REF.style.left=ss+'px';
				REF.style.filter='alpha(opacity='+oo+')';
				}
			if (pngstatus=='native') {
				REF.style.left=ss+'px';
				REF.style.opacity=(oo/100);
				}
			ss=elemstar[el]-(elemdist[el]*Math.cos(an));
			an=an-(1.5707/thespeed);

			oo=oo+(100/thespeed);
			setTimeout('slidein()',10);
			}
		else {
			ss=elemstar[el];
			an=1.5707;
			el++;
			oo=0;
			if (el>1) {
				thespeed=bulletspeed;
				}
			else {
				thespeed=hdrspeed;
				}
			if (el<8) {setTimeout ('slidein()',bulletpause);}
			else {setTimeout ('fadeout()',10000);}
			}
		}
	}

function fadein() {
	if (ff < 102) {
		num=((100-ff)/2);
		document.getElementById('hr_upper').style.top=document.getElementById('hr_upper').style.top=num+'px';
		num=200-(150-(ff/2));
		document.getElementById('hr_lower').style.top=document.getElementById('hr_lower').style.top=num+'px';
		if (pngstatus=='corrected') {
			document.getElementById('quotes_container').style.filter='alpha(opacity='+ff+')';
			}
		if (pngstatus=='native') {
			document.getElementById('quotes_container').style.opacity=(ff/100);
			}
		ff=ff+2;
		setTimeout('fadein()',10);
		}
	else {
		qq++;
		ff=100;
		if (qq>2) {qq=-1;}
		setTimeout('fadeout()',6000);
		}
	}
	
function fadeout() {
	if (ff > -2) {
		num=((100-ff)/2);
		document.getElementById('hr_upper').style.top=document.getElementById('hr_upper').style.top=num+'px';
		num=200-(150-(ff/2));
		document.getElementById('hr_lower').style.top=document.getElementById('hr_lower').style.top=num+'px';
		if (pngstatus=='corrected') {
			document.getElementById('quotes_container').style.filter='alpha(opacity='+ff+')';
			}
		if (pngstatus=='native') {
			document.getElementById('quotes_container').style.opacity=(ff/100);
			}
		ff=ff-2;
		setTimeout('fadeout()',10);
		}
	else {
		ff=0;
		document.getElementById('quotes_container').innerHTML=quotestext[qq+1];
		setTimeout ('fadein()',50);
		}
	}

