// popup window
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// set required flash version
var requiredMajorVersion = 6;	// Major version of Flash required
var requiredMinorVersion = 0;	// Minor version of Flash required
var requiredRevision = 0;		// Minor version of Flash required

// animate get start form (or any specifid form
// when using this function, identify the element by using document.getElementbyId()
function changeHeight(elm,begin,end,duration,fps) {
		
    var change      = end-begin;
    var interval    = Math.ceil(1000/fps);
    var totalFrames = Math.ceil(duration/interval);
    var fixedStep   = change/totalFrames;

    for(i=0;i < totalFrames;i++) {
     (function() {
         var n = i;
         function innerChangeHeight() {
              var height        = begin+(fixedStep*n);
              elm.style.height  = height+'px';			  
         }
         timer = setTimeout(innerChangeHeight,interval*n);
     })();
   }
	elm.style.visibility = 'visible';  
}

// hide any specifide element
function hideElm(elm) {
	elm.style.visibility = 'hidden';
}
// show any specifide element
function showElm(elm) {
	elm.style.visibility = 'visible';
}

// deal with overflow problems in ie
window.onload = function () {  
	// only apply to IE
	if (!/*@cc_on!@*/0) return;  
	// find every element to test  
	var all = document.getElementsByTagName('*'), i = all.length;  
	// fast reverse loop  
	while (i--) {    
	// if the scrollWidth (the real width) is greater than    
	// the visible width, then apply style changes    
		if (all[i].scrollWidth > all[i].offsetWidth) {      
			all[i].style['paddingBottom'] = '20px';      
			all[i].style['overflowY'] = 'hidden';    
		}  
	}
};



function changePage(newLoc)
 {
   nextPage = newLoc.options[newLoc.selectedIndex].value
		
   if (nextPage != "")
   {
      document.location.href = nextPage
   }
 }
 
 function flip(number)
 {
	 switch (number) 
	 {
	 	case 1:
		document.getElementById('cc_paragraph').innerHTML = "The dashboard is the hub of your Client Central lead management software. It is the 1st page you will view when logging into your software program. From a recap of how many leads have filtered trough to how many clients have clicked on and e-mail for additional information. It's all on the dashboard.";
		document.getElementById('cc_picture').src = "images/client_central/dashboard.jpg";
		document.getElementById('cc_link').setAttribute('href','images/client_central/dashboard_big.jpg');
		break;

	 	case 2:
		document.getElementById('cc_paragraph').innerHTML = "Drill down and easily segment portions of your database. Input any search criteria in any of the available fields and click the search button for your results. You can sort results by name, phone, status or category by mousing over the field heading on the top of the search results area. ";
		document.getElementById('cc_picture').src = "images/client_central/contact_list.jpg";
		document.getElementById('cc_link').setAttribute('href','images/client_central/contact_list_big.jpg');
		break;
		
	 	case 3:
		document.getElementById('cc_paragraph').innerHTML = "Communicating with individual contacts is a breeze when using the individual  messaging component Simply assign an pre-configured campaign or individual e-mails or voice messages to any contact.";
		document.getElementById('cc_picture').src = "images/client_central/individual.jpg";
		document.getElementById('cc_link').setAttribute('href','images/client_central/individual_big.jpg');
		break;

	 	case 4:
		document.getElementById('cc_paragraph').innerHTML = "Tell Vision allows businesses to easily create, send, and track e-mail newsletters, surveys, blogs, auto responders, and on-line ad campaign's. Our bulk messaging component is  designed to be easy to use while providing important reporting statistics to help you measure each campaigns effectiveness.";
		document.getElementById('cc_picture').src = "images/client_central/bulk.jpg";
		document.getElementById('cc_link').setAttribute('href','images/client_central/bulk_big.jpg');
		break;
		
	 	case 5:
		document.getElementById('cc_paragraph').innerHTML = "Imagine implementing a follow up campaign that will automatically send a series of effective and entertaining reach outs to each contact over a span of hours, days or months. You choose the day and time each correspondence is to be delivered. ";
		document.getElementById('cc_picture').src = "images/client_central/auto_connect.jpg";
		document.getElementById('cc_link').setAttribute('href','images/client_central/auto_connect_big.jpg');
		break;

	 	case 6:
		document.getElementById('cc_paragraph').innerHTML = "This area allows you to manage and create your automated phone calls. Simply log in and record your message. Moments latter it will appear in your voice message inventory and be ready to be sent to any number of contacts.";
		document.getElementById('cc_picture').src = "images/client_central/voice.jpg";
		document.getElementById('cc_link').setAttribute('href','images/client_central/voice_big.jpg');
		break;
		
	 	case 7:
		document.getElementById('cc_paragraph').innerHTML = "Client Central makes creating new e-mails and modifying current ones very easy. If you can type  letter using a word processor you can quickly create an e-mail and send it to thousands of contacts in a matter of seconds.";
		document.getElementById('cc_picture').src = "images/client_central/email_editor.jpg";
		document.getElementById('cc_link').setAttribute('href','images/client_central/email_editor_big.jpg');
		break;

	 	case 8:
		document.getElementById('cc_paragraph').innerHTML = "This automated trigger feature allows you to pre-program the system to initiate a different of e-mails and automated phone calls when a category option is changed for an individual file. ";
		document.getElementById('cc_picture').src = "images/client_central/status.jpg";
		document.getElementById('cc_link').setAttribute('href','images/client_central/status_big.jpg');
		break;	
		
	 	case 9:
		document.getElementById('cc_paragraph').innerHTML = "Upload CSV files from any source and easily communicate with them using client centrals amazing automated drip campaign capabilities. ";
		document.getElementById('cc_picture').src = "images/client_central/contact_import.jpg";
		document.getElementById('cc_link').setAttribute('href','images/client_central/contact_import_big.jpg');
		break;			
	 }
	 
 }