// JavaScript Document
//ZombiePixel.com javascript functionality. Not people,,, brainzzzz.
		
//section toggle
function Toggle(thediv) {
	document.getElementById("div1").style.display = "none";
	document.getElementById("div2").style.display = "none";
	document.getElementById("div3").style.display = "none";
	document.getElementById(thediv).style.display = "block";
}
   
//ILLUSTRATION manual image cycle
   var num_of_slides = 10;   
   var slide_num = 1;      

	function prevslide(){
     slide_num = slide_num - 1;
     if(slide_num < 1){
       slide_num = num_of_slides;
     }
     eval('document.illobox.src = "images/examples/illustration' + slide_num + '.jpg"');
   }
   function nextslide(){
     slide_num = slide_num + 1;
     if(slide_num > num_of_slides){
       slide_num = 1
     }
     eval('document.illobox.src = "images/examples/illustration' + slide_num + '.jpg"');
   }

//OFFLINE manual image cycle
   var num_of_off = 13;   
   var off_num = 1;      

	function prevoff(){
     off_num = off_num - 1;
     if(off_num < 1){
       off_num = num_of_off;
     }
     eval('document.offbox.src = "images/examples/offline' + off_num + '.jpg"');
   }
   function nextoff(){
     off_num = off_num + 1;
     if(off_num > num_of_off){
       off_num = 1
     }
     eval('document.offbox.src = "images/examples/offline' + off_num + '.jpg"');
   }
   
   
//ONLINE manual image cycle
   var num_of_on = 8;   
   var on_num = 1;      

	function prevon(){
     on_num = on_num - 1;
     if(on_num < 1){
       on_num = num_of_on;
     }
     eval('document.onbox.src = "images/examples/online' + on_num + '.jpg"');
   }
   function nexton(){
     on_num = on_num + 1;
     if(on_num > num_of_on){
       on_num = 1
     }
     eval('document.onbox.src = "images/examples/online' + on_num + '.jpg"');
   }


//BRANDING manual image cycle
   var num_of_brand = 4;   
   var brand_num = 1;      

	function prevbrand(){
     brand_num = brand_num - 1;
     if(brand_num < 1){
       brand_num = num_of_brand;
     }
     eval('document.brandbox.src = "images/examples/branding' + brand_num + '.jpg"');
   }
   function nextbrand(){
     brand_num = brand_num + 1;
     if(brand_num > num_of_brand){
       brand_num = 1
     }
     eval('document.brandbox.src = "images/examples/branding' + brand_num + '.jpg"');
   }

