function eid(ename){
	var e_name = document.getElementById(ename).value;
	return e_name;
}

function aid(ename){
	var a_name = document.getElementById(ename);
	return a_name;
}

function openDiv(divname){
	if(aid(divname).style.display == "block"){
		aid(divname).style.display = "none";
	}else{
		aid(divname).style.display = "block";
	}
}

function mainBanner(){
	//new Ajax.Request('power_reseller_start.tpl', {method: 'get', onSuccess: function(t){ aid().innerHTML = t.responseText;} } );
	if(document.getElementById('main_banner') != null){
		new Ajax.Updater('main_banner', '/specials_files/power_reseller_start.tpl', {method: 'get'});
	}
}

function getCustomerTestemonials(){

	if(document.getElementById('testemonial_text') != null){

	var testemonials = new Array();

	testemonials[1] = new Array();
	testemonials[1]['text'] = "It's been one month since i hosted with Scala Hosting. Prices are great. Excellent fast servers with 8 Cpu's. Maximum load i see was (0.21). Uptime is great. They provide real %99.9 Uptime. Support team is helpful and friendly you may feel like y";
	testemonials[1]['link'] = "8442";
	testemonials[1]['url'] = "www.bugtube.com";
	testemonials[1]['name'] = "Arda";

	testemonials[2] = new Array();
	testemonials[2]['text'] = "Scala Hosting is an excellent Hosting reseller provider, tecnical support is very fast and uptime is real.   Servers are very fast and use the best tecnology to give an prefect service. I recommend Scala Hosting for your businesses.  Thanks Scala";
	testemonials[2]['link'] = "8522";
	testemonials[2]['url'] = "www.linkdirectory.com.ar";
	testemonials[2]['name'] = "Nicolas";

	testemonials[3] = new Array();
	testemonials[3]['text'] = "I've been looking for a reseller hosting package with PHP5 and cPanel in order to host a limited amount of websites. So I've found ScalaHosting. Their reseller package seemed fine to me, But I've had some \"pre-sale questions\". So I've cl";
	testemonials[3]['link'] = "8741";
	testemonials[3]['url'] = "www.mihopa.info";
	testemonials[3]['name'] = "Mike";

	testemonials[4] = new Array();
	testemonials[4]['text'] = "Wow! They are amazing, I have used sereval companies and Never have that quality of hosting and support. My site is 100% on-line and fast servers. The support guys are so nice with me and they Really resolves your problems in seconds! I really recomm";
	testemonials[4]['link'] = "9088";
	testemonials[4]['url'] = "www.amelhoremfotografia.com";
	testemonials[4]['name'] = "Alexandre";

	testemonials[5] = new Array();
	testemonials[5]['text'] = "I'm a reseller host from 4 years ago the important thing in my project to introduce to my client an excellent service so I so my best to do that , for that all this years I found the best host to help me for doing that ,sure I found many kind of hel";
	testemonials[5]['link'] = "9227";
	testemonials[5]['url'] = "www.maroweb-egypt.com";
	testemonials[5]['name'] = "Marwa";

	testemonials[6] = new Array();
	testemonials[6]['text'] = "I have a number of websites, most of them quite small, so I'd been looking for a while for a reseller account for the ease and convenience of multiple cPanel accounts. After going through two reseller hosting services, one of which had downtime liter";
	testemonials[6]['link'] = "9301";
	testemonials[6]['url'] = "www.darkpantheon.com";
	testemonials[6]['name'] = "Daphne";

	testemonials[7] = new Array();
	testemonials[7]['text'] = "I am sorry, but now Destiny drives me to leave the web industry due to my personal cause and so about my beloved websites. So far I should have to let others know about my experiences with ScalaHosting, as it may help others. I have been using scala";
	testemonials[7]['link'] = "9333";
	testemonials[7]['url'] = "www.frankinc.info";
	testemonials[7]['name'] = "Pam";

	testemonials[8] = new Array();
	testemonials[8]['text'] = "Scala hosting is the best hosting company i have ever chosen, I am also happy i have chosen this company.  Here are a couple of points that make it such a good company.  1 : Live Support 24/7 7 Days a Week!. This was even on on christmas Day, and";
	testemonials[8]['link'] = "9923";
	testemonials[8]['url'] = "www.ultrahabbo.net";
	testemonials[8]['name'] = "Kevin";

	testemonials[9] = new Array();
	testemonials[9]['text'] = "I've been in It for over 25 years and have moved from the multiple sized corporate world from Fortune 1000 companies to pre Ipo startup companies. The reason I say this is to give you a perspective of knowledge and experience I have in the systems w";
	testemonials[9]['link'] = "10618";
	testemonials[9]['url'] = "www.bestbuysus.com";
	testemonials[9]['name'] = "Robert";

	testemonials[10] = new Array();
	testemonials[10]['text'] = "I have been using the internet since the late 80`s and have seen hosting companies come and go. I have used many of them, some large and some small, but i have never used a company as good as Scala Hosting, the service is No1 problems are fixed ve";
	testemonials[10]['link'] = "11300";
	testemonials[10]['url'] = "www.tvfinder.co.uk";
	testemonials[10]['name'] = "Gary";

	testemonials[11] = new Array();
	testemonials[11]['text'] = "I have used several hosting companies for the past years, I haved a lot of problems =(. Since I have changed for Scala Hosting I'm A Happy Webmaster! My sites never be off-line, e-mail works fine and support is really fast [ mostly instantly ) I High";
	testemonials[11]['link'] = "13184";
	testemonials[11]['url'] = "www.marquespereira.com";
	testemonials[11]['name'] = "Alexandre";

	testemonials[12] = new Array();
	testemonials[12]['text'] = "i've been with scalahosting for 6 months.  my previous hosting is with hostgator, but they're not cheap. they offer $24+ for reseller package  with scalahosting, i got scala1 reseller package for only $6.95. that's really cheap.  their uptime i";
	testemonials[12]['link'] = "13259";
	testemonials[12]['url'] = "www.onmedan.com";
	testemonials[12]['name'] = "Alex";

	testemonials[13] = new Array();
	testemonials[13]['text'] = "Hi all, I am an old user of web hosting stuff, found hostingpuppy here, happily signed them, worked great for 8 months and then they just just vanished [actually sold all of their customer's without asking them about their feelings]. I had to";
	testemonials[13]['link'] = "14832";
	testemonials[13]['url'] = "www.amerium.se";
	testemonials[13]['name'] = "Malik Imran";

	testemonials[14] = new Array();
	testemonials[14]['text'] = "Hi,,, I am using Scala since last 2 Years and They never got down. i was quite frustrated with my previous Hosts but now i am too setisfied. There servers are best and reliable and must say there online support is truly 24x7 and gr8... I am v";
	testemonials[14]['link'] = "15039";
	testemonials[14]['url'] = "www.lakesparadise.com";
	testemonials[14]['name'] = "Nishant";

	testemonials[15] = new Array();
	testemonials[15]['text'] = "Scala Hosting is great. They have live support and they answer your support issues immediately. They are very professional and knowledgeable. I would recommend this host to anyone. And while I was with them, I had Zero downtime. :-)";
	testemonials[15]['link'] = "16119";
	testemonials[15]['url'] = "www.bestcssdesigns.com";
	testemonials[15]['name'] = "Andre";

	testemonials[16] = new Array();
	testemonials[16]['text'] = "Very Honest, Trouble free hosting, Quick response, Affordable hosting. I tried many hosting providers but found scala is the best.. Very Honest, Trouble free hosting, Quick response, Affordable hosting. I tried many hosting providers but found scala";
	testemonials[16]['link'] = "16254";
	testemonials[16]['url'] = "www.hostpermit.com";
	testemonials[16]['name'] = "Nitin";

	testemonials[17] = new Array();
	testemonials[17]['text'] = "I moved to Scala Hosting after trouble with a past host. My first account with Scala was their reseller hosting. After amazing customer service I decided to get a dedicated server. These guys are truly the best in the business. They understand th";
	testemonials[17]['link'] = "17304";
	testemonials[17]['url'] = "www.dnterms.com";
	testemonials[17]['name'] = "Emmett";

	testemonials[18] = new Array();
	testemonials[18]['text'] = "this is the best hosting  i ever tried, nice support online chat. techs really now about their business. i really comfortable with this company and his crew. i recommend it 100 %.";
	testemonials[18]['link'] = "17824";
	testemonials[18]['url'] = "www.gsrandco.com";
	testemonials[18]['name'] = "albert";

	var ran_number = Math.ceil(Math.random()*18); 
	
	aid('testemonial_text').innerHTML = testemonials[ran_number]['text'] + "... <a href=\"http://www.webhostingstuff.com/comments/ScalaHosting-" + testemonials[ran_number]['link'] + ".html\" id=\"testemonial_link\" target=\"_blank\">read more...</a>";
	aid('testemonial_url').innerHTML = testemonials[ran_number]['url'];
	aid('testemonial_url').href = "http://" + testemonials[ran_number]['url'];
	aid('testemonial_name').innerHTML = testemonials[ran_number]['name'];
	
	}

}


function showDedicatedHelp(id){
	if(aid('descr_'+id).style.display == "none"){
		//$('#descr_'+id).slideDown("slow");
		$('descr_'+id).show(); 
		//Effect.SlideDown('descr_' + id, { duration: 3.0 });
	}else{
		//$('#descr_'+id).slideUp("slow");
		$('descr_'+id).hide();
		//Effect.SlideUp('descr_' + id, { duration: 3.0 });
	}
}