/***********************************************
* Cross browser Marquee II- ? Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
var slideTimeBetweenSteps = 40;	// General speed variable (Lower = slower)


var scrollingContainer = false;
var scrollingContent = false;
var containerHeight;
var contentHeight;	

var contentObjects = new Array();
var originalslideSpeed = false;
function slideContent(containerId)
{
	var topPos = contentObjects[containerId]['objRef'].style.top.replace(/[^\-0-9]/g,'');
	topPos = topPos - contentObjects[containerId]['slideSpeed'];
	if(topPos/1 + contentObjects[containerId]['contentHeight']/1<0)topPos = contentObjects[containerId]['containerHeight'];
	contentObjects[containerId]['objRef'].style.top = topPos + 'px';
	setTimeout('slideContent("' + containerId + '")',slideTimeBetweenSteps);
	
}

function stopSliding()
{
	var containerId = this.id;
	contentObjects[containerId]['slideSpeed'] = 0;	
}

function restartSliding()
{
	var containerId = this.id;
	contentObjects[containerId]['slideSpeed'] = contentObjects[containerId]['originalSpeed'];
	
}
function initSlidingContent(containerId,slideSpeed)
{
	scrollingContainer = document.getElementById(containerId);
	scrollingContent = scrollingContainer.getElementsByTagName('DIV')[0];
	
	scrollingContainer.style.position = 'relative';
	scrollingContainer.style.overflow = 'hidden';
	scrollingContent.style.position = 'relative';
	
	scrollingContainer.onmouseover = stopSliding;
	scrollingContainer.onmouseout = restartSliding;
	
	originalslideSpeed = slideSpeed;
	
	scrollingContent.style.top = '0px';
	
	contentObjects[containerId] = new Array();
	contentObjects[containerId]['objRef'] = scrollingContent;
	contentObjects[containerId]['contentHeight'] = scrollingContent.offsetHeight;
	contentObjects[containerId]['containerHeight'] = scrollingContainer.clientHeight;
	contentObjects[containerId]['slideSpeed'] = slideSpeed;
	contentObjects[containerId]['originalSpeed'] = slideSpeed;
	
	slideContent(containerId);
	
}

// ==============================================
// Copyright 2004 by CodeLifter.com
// Free for all; but please leave in this header.
// ==============================================

var Testimonial=new Array() // do not change this!

Testimonial[0] = "<b style='font-size: 14px; color: #BD595F;'>Bryan D</b><br /><br />Submitted on 06/27/10 at 5:39 PM<br />I just recently purchased a server from MainVoice by refferal from a friend. The quality, service and support are by far unmatched by any other company I've been with before. Not to mention the low low prices and custom control panel. This is truely the best choice I have made for my voip services</div>";
Testimonial[1] = "<b style='font-size: 14px; color: #BD595F;'>Eliot Mado #atrocity</b><br /><br />Submitted on 06/27/10 at 5:39 PM<br />Being a very popular online superstar, Ventrilo is vital in my everyday life. I only choose one server company and that's Main Voice. Winning CALopen and CALmain is tough but when you have a good Ventrilo hosting company like Main Voice, anything is possible. People ask me, \"Mado, how are you so good?\" I respond with \"Main Voice Servers.\" That's how I roll. With there instant server setup and support whenever needed, how can they not be your choice?</div>";
Testimonial[2] = "<b style='font-size: 14px; color: #BD595F;'>Ashlyn Lewis</b><br /><br />Submitted on 06/27/10 at 5:39 PM<br />Setup is very quick with MainVoice, and I had a fully operational server in a little over five minutes. The voice quality is outstanding. I get better ping to Mainvoice servers than I do with any other company. Their pricing is definitely in my range and they also offer custom DNS (Which is... AMAZING!)\"I'll be going with MainVoice for as long as I need a ventrilo\":)</div>";
Testimonial[3] = "<b style='font-size: 14px; color: #BD595F;'>Team Motus</b><br /><br />Submitted on 06/27/10 at 3:24 PM<br />MainVoice Ventrilos hands down have the best clear cut voice qualitys. Using MainVoice helps us make quick clear calls, we recommend them to everyone.</div>";
Testimonial[4] = "<b style='font-size: 14px; color: #BD595F;'>Team Disturbing The Peace</b><br /><br />Submitted on 06/27/10 at 12:18 PM<br />Simply THE BEST! With an amazing service and support, MainVoice understands and is always there to help out gamers</div>";
Testimonial[5] = "<b style='font-size: 14px; color: #BD595F;'>NEXXT</b><br /><br />Submitted on 06/27/10 at 2:47 PM<br />Mainvoice has provided us with astonishing service, Server setup was done within minutes and any trouble we had a tech was there within minutes to help us solve our problems. We have had great service and don’t see why that would change anytime in the future. If you\’re looking for a Ventrillo server at an amazing price, I would highly recommend Mainvoice.</div>";
Testimonial[6] = "<b style='font-size: 14px; color: #BD595F;'>vVv</b><br /><br />Submitted on 06/27/10 at 11:38 PM<br />Mainvoice has provided our team with a top notch ventrilo server. They are no doubt one of the top ventrilo providers. They're customer service is quick, and their quality is even better. They are quick to act, and want whatever is best for you. 10/10 for mainvoice!</div>";
Testimonial[7] = "<b style='font-size: 14px; color: #BD595F;'>dTpRadio</b><br /><br />Submitted on 06/27/10 at 8:39 PM<br />When it comes to having a radio, clearity and codecs are a MUST! MainVoice communications have always given us the best Performance Stability and Reliable Voice Servers we have ever gotton. And all of that under a very affordable price. Trust MainVoice!</div>";
Testimonial[8] = "<b style='font-size: 14px; color: #BD595F;'>TESTIMONIALS</b><br /><br />Submitted on 06/27/10 at 6:19 PM<br />Feel free to email us your testimonials at: testimonials@MainVoice.net Be sure to add your name/team/company vent ip/port and vent location to your testimonial. It will take minutes to be setup on the frontpage. teastimonials@MainVoice.net";
Testimonial[9] = "<b style='font-size: 14px; color: #BD595F;'>John C</b><br /><br />Submitted on 06/27/10 at 5:39 PM<br />For years I've been paying outrages prices on voice servers with lag, bad codecs and not to mention horrid support. Thank god I found MainVoice with their unbeatable prices, amazing supoprt and high quality voice servers I will be a client for life. Thank you MainVoice.</div>";
Testimonial[10] = "<b style='font-size: 14px; color: #BD595F;'>rickyphaNtastic - Team CaF`E AMW Fugitivez </b><br /><br />Submitted on 06/27/10 at 10:36 AM<br />MainVoice is a honor to be with, great service and good people.The Ventrilo servers are fantastic and non-lag free community. Thanks MainVoice</div>";
Testimonial[11] = "<b style='font-size: 14px; color: #BD595F;'>Team Kinetix</b><br /><br />Submitted on 06/27/10 at 4:38 PM<br />We have had our MainVoice vent for months now and not once have we had problems with \"vent lag\" or the server crashing. The price is amazing for the quality server you get, we would recommend one to anybody. Thanks for the awesome vent MainVoice!";


var T = Testimonial.length;
var whichTestimonial=Math.round(Math.random()*(T-1));
function showTestimonial(){document.write(Testimonial[whichTestimonial]);}



var delayb4scroll=1040 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed=1 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?

////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var actualheight=''

function scrollmarquee(){
if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8))
cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px"
else
cross_marquee.style.top=parseInt(marqueeheight)+8+"px"
}

function initializemarquee(){
cross_marquee=document.getElementById("vmarquee")
cross_marquee.style.top=0
marqueeheight=document.getElementById("marqueecontainer").offsetHeight
actualheight=cross_marquee.offsetHeight
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee.style.height=marqueeheight+"px"
cross_marquee.style.overflow="scroll"
return
}
setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll)
}

if (window.addEventListener)
window.addEventListener("load", initializemarquee, false)
else if (window.attachEvent)
window.attachEvent("onload", initializemarquee)
else if (document.getElementById)
window.onload=initializemarquee