/////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//	Copyright © 2007 On-Line Builder, LLC. All rights reserved
//	
/////////////////////////////////////////////////////////////////////////////////////////////////////////////

function popitup(url, width, height) 
{
    if(width == null || width == 0)
        width = "1049";
    
    if(height == null || height == 0)
        height = "730";
    
	var newwindow = window.open(url,'name','toolbar=no,titlebar=no,scrollbars=yes,menubar=no,resizable=yes,width=' + width + ',height=' + height);

	if (window.focus) 
	    newwindow.focus()
}

var index = 1;

var ar = new Array();
ar[0] = "Build With Us. Grow your business with best practices. <a href='productoverview.aspx'>Click to Learn More Now!</a>";
ar[1] = "Quick, Easy Setup - Begin using SuperBuild in a matter of minutes. <a href='productoverview.aspx'>Click to Learn More Now!</a>";
ar[2] = "Easy To Learn - Begin in less than 30 minutes. <a href='productoverview.aspx'>Click to Learn More Now!</a>";
ar[3] = "Real-Time Updates - Pre-loaded, up-to-date industry product information. <a href='productoverview.aspx'>Click to Learn More Now!</a>";
ar[4] = "Work Anywhere - Web access is all you need, just log on and work! <a href='productoverview.aspx'>Click to Learn More Now!</a>";
ar[5] = "Fast and Accurate Estimating - Pre-loaded checklists and costs by region. <a href='productoverview.aspx'>Click to Learn More Now!</a>";
ar[6] = "Relax, You're Covered! All your work is secure in a managed data center. <a href='productoverview.aspx'>Click to Learn More Now!</a>";
ar[7] = "Low Subscription Price - Annual and seasonal pricing options available. <a href='pricing.aspx'>Click to Learn More Now!</a>";
ar[8] = "Free Training & Support - Our support team and training tools are ready anytime. <a href='service.aspx'>Click to Learn More Now!</a>";
ar[9] = "Trouble-Fee Reporting - Reports are updated as you work through your job. <a href='productoverview.aspx'>Click to Learn More Now!</a>";

function StartRotation() 
{
    setInterval("displayText()", 5000);
}

function displayText() 
{
    var panel = document.getElementById("rotatingText");    
    panel.innerHTML = ar[index];
    
    index++;

    if (index == ar.length)
        index = 0;
}
