function editDiv(divid,total)
{for(i=1;i<=total;i++){	var ele="s"+i;var links="q"+i;	
		if (divid==i){		
			document.getElementById(ele).style.display='block';document.getElementById(links).className = "flashnow";			}else{document.getElementById(ele).style.display='none';document.getElementById(links).className = "noflashnow";
	}}}

function _livechat() {
          // change the following parameters to your liking

          var url = "http://vsplashtechlabs.24im.com/live/d5"; // get this from your department
          var width = "550";var height = "350";var im = window.open(url, '', 'width='+width+',height='+height+',resizable=yes,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no');

}


function show_mobile() {document.getElementById('simulator').style.display="block";}
function dont_show_mobile() {document.getElementById('simulator').style.display="none";}


function preloader() 

{


     // counter
     var i = 0;


     // create object
     imageObj = new Image();


     // set image list
     images = new Array();
     images[0]="http://vsplash.com/wp-content/themes/vsplash/images/sbwd_h.gif"
     images[1]="http://vsplash.com/wp-content/themes/vsplash/images/seo_h.gif"
     images[2]="http://vsplash.com/wp-content/themes/vsplash/images/ewd_h.gif"
     images[3]="http://vsplash.com/wp-content/themes/vsplash/images/do_h.gif"


     // start preloading
     for(i=0; i<=3; i++) 
     {
          imageObj.src=images[i];
     }



} 
