





//Show Video Intro Popup
function showvideo(){

	try {
	  removed = document.getElementById('remove').innerHTML; 
	  document.getElementById('remove').innerHTML = '';
	} catch (e) {
	  //nothing
	}

	var mywin=dhtmlwindow.open("mybox", "iframe", "http://www.split5.com/split5five-reel.html", "Split Five Video Reel","width=725px,height=460px,resize=0,scrolling=0,center=1");

	mywin.show();

	mywin.onclose=function(){
	 try {document.getElementById('remove').innerHTML = removed;}
	 catch (e) {
	 //nothing
	 }
	}

}




//cookie function
function get_cookie ( cookie_name )
{
  var results = document.cookie.match ( '(^|;) ?' + cookie_name + '=([^;]*)(;|$)' );

  if ( results )
    return ( unescape ( results[2] ) );
  else
    return null;
}


//load intro if it's the first time user has been here
function loadintro(){
	if (get_cookie('popped')!='yes'){
	//showvideo();
	document.cookie="popped=yes";
	//document.cookie="popped=no";
	}
}




//Tabs setup
var panels = new Array('panel1', 'panel2', 'panel3', 'panel4', 'panel5');
var selectedTab = null;
function showPanel(tab, name)
{
	if (selectedTab) {
	selectedTab.style.backgroundColor = '';
	selectedTab.style.paddingTop = '';
	selectedTab.style.marginTop = '6px';
	selectedTab.style.backgroundPosition = '0px -20px';
	selectedTab.style.zIndex = '0';
	selectedTab.style.paddingBottom = "4px";
	}
	selectedTab = tab;
	selectedTab.style.backgroundColor = 'white';
	selectedTab.style.paddingTop = '6px';
	selectedTab.style.marginTop = '4px';
	selectedTab.style.backgroundPosition = '0px 0px';
	selectedTab.style.zIndex = '5';
	selectedTab.style.paddingBottom = "5px";
	 for(i = 0; i < panels.length; i++)

	{
	document.getElementById(panels[i]).style.display = (name == panels[i]) ? 'block':'none';
	}
	return false;
}



function showcontact(){

try {
  removed = document.getElementById('remove').innerHTML; 
  document.getElementById('remove').innerHTML = '';
} catch (e) {
  //nothing
}


var mycontactwin=dhtmlwindow.open("mycontactbox", "iframe", "http://www.split5.com/quickcontact.php", "Average response time: 45 minutes.","width=349px,height=450px,resize=0,scrolling=0,center=1");

mycontactwin.show();

mycontactwin.onclose=function(){
 try {document.getElementById('remove').innerHTML = removed;}
 catch (e) {
 //nothing
 }
}

}


function showmonthly(){

try {
  removed = document.getElementById('remove').innerHTML; 
  document.getElementById('remove').innerHTML = '';
} catch (e) {
  //nothing
}


var mymonthlywin=dhtmlwindow.open("mymonthlybox", "iframe", "http://www.split5.com/monthly.php", "Monthly Service Plan","width=624px,height=470px,resize=0,scrolling=0,center=1");

mymonthlywin.show();

mymonthlywin.onclose=function(){
 try {document.getElementById('remove').innerHTML = removed;}
 catch (e) {
 //nothing
 }
}

}

//window.onDomReady(function(){ new SmoothScroll({duration: 1200}); });
