// random quote generation
var Q_Array = new Array();
Q_Array[0]=["IP Telephony","IP Telephony can deliver significant costs savings and productivity enhancements to businesses of all sizes, across all industries. Understanding and addressing the complexities and potential pitfalls involved is critical to ensuring a successful migration.","ip_telephony.html"];
Q_Array[1]=["Telecommunications","The Bearing Group can help you design and deploy multi-vendor solutions in support of your telecommunications business needs. We provide you with cost saving alternatives along with a recommendation outlining the best solutions, and why.","telecommunications.html"];
Q_Array[2]=["Data Networking","Today's small and medium sized businesses need to integrate workstations, notebooks, printers, servers, switches, routers, wireless access points and other devices into a high performance data network infrastructure.  We can assess, design and deploy low cost network solutions that reduce complexity while enhancing performance.","data_networking.html"];
Q_Array[3]=["Network Security","Information is one of the most valuable assets of any company.  To help protect your vital data and to help secure your networking environment, we offer a suite of services that help you assess vulnerabilities, protect your infrastructure, and respond to suspicious activities and events.","network_security.html"];
Q_Array[4]=["Professional Services","Whether you need to optimize your telecommunications, design and deploy a custom network infrastructure or ensure the survivability of your business, we can help you develop and implement a program that will enable you to realize your objectives on time and within your budget.","professional_services.html"];

function RandoQuote(){
	var Rand = Math.round(Math.random()*4);
	document.getElementById('RotatingHeadline').innerHTML = Q_Array[Rand][0];
	document.getElementById('RotatingMessage').innerHTML = Q_Array[Rand][1];
	document.getElementById('RotatingLink').href = Q_Array[Rand][2];
	// now load random item from partners information
	
}

// random partner generation
var P_Array = new Array();
P_Array[0]=["Emergent Communications","Emergent delivers software-based Real-time Collaborative Communications solutions to enterprises.","http://www.viagra.com/images/home/mlbLogo.gif"];
P_Array[1]=["North American Communications, LLC","NAC provides solutions for the information technology professional who wants an easier and more efficient way to manage the procurement of Telecommunication services.","http://www.redwing.com/images/RW_C.gif"];

function RandoPartner(){
	var Rand = Math.round(Math.random()*1);
	document.getElementById('RotatingPartnerName').innerHTML = P_Array[Rand][0];
	document.getElementById('RotatingPartnerDesc').innerHTML = P_Array[Rand][1];
	document.getElementById('RotatingPartnerImg').src = P_Array[Rand][2];
	document.getElementById('RotatingPartnerImg').style.visibility = "visible";
}

// random testimonial generation
var T_Array = new Array();
T_Array[0]=["Tailwind Capital Parters","\"Having a reliable voice and internet infrastructure is mission critical to our business.  The Bearing Group took the time to understand our needs and design a solution that provides us with maximum network uptime and availability.  Their knowledge and expertise enabled us to focus on our business, and not our network.\""];
T_Array[1]=["Darcy Partners","\"Being a professional consulting organization, we travel a tremendous amount and frequently work remotely from client sites.  The Bearing Group designed, implemented and manages a secure remote access solution that enables us to continue to be productive even when we are away from the office.\""];
T_Array[2]=["Worktank","\"We have on-site and remote workers and needed a consolidated, more cost effective way to manage our local, long distance, internet and wireless communications costs. The Bearing Group assessed the situation and managed the consolidation seamlessly. We are now looking to them to help us migrate to VoIP.\""];
T_Array[3]=["Realtime Publications","\"The ability to conduct business in a virtual workgroup environment enabled us to lower our operating expenses and gain a competitive advantage.  The Bearing Group connected our remote offices, programmers and production staff via a secure, fault tolerant, remote access solution.  In addition to increasing productivity, the solution also provided us with enhanced disaster recovery capabilities.\""];
T_Array[4]=["United Processing Corporation","\"Our data network infrastructure was outdated and unreliable.  We were experiencing frequent outages and needed a secure and reliable remote access solution for our sales force.  The Bearing Group upgraded our network our environment, web enabled our business processes and gave us the ability to scale our business as well as provide a higher level of support for our sales team.\""];

function RandoTestimonial(){
	var Rand = Math.round(Math.random()*4);
	document.getElementById('RotatingTestimonialCompany').innerHTML = T_Array[Rand][0];
	document.getElementById('RotatingTestimonial').innerHTML = T_Array[Rand][1];
}
