// http://localhost/Interstore/JavaScript Document
var VorigeTumb=1
var slideShowSpeed = 5000
var crossFadeDuration = 3
var Maxpic = 59
var Loop = 'Loop'

function stopshow(){Loop=''}

function startshow(){
if (VorigeTumb==59){document.getElementById('ImageContainer').innerHTML='<img src="Image/Winkelinterieur/foto1.jpg" alt="parfumerie" name="BigImage" width="600" height="252" id="BigImage">';
			var NextThumb = 1
			Vergroot(NextThumb);}
	Loop='Loop';autoplay();}

function autoplay(){
	if (Loop == 'Loop'){Volgende();}
	 if (Loop == 'Loop')
	 t = setTimeout('autoplay()', 5000);
	}

function jump(branche){
	if(branche =='boekwinkel'){Vergroot(1);}
	if(branche =='bruingoed'){Vergroot(10);}
	if(branche =='drogisterij'){Vergroot(17);}
	if(branche =='tabak'){Vergroot(27);}
	if(branche =='juwelier'){Vergroot(38);}
	if(branche =='mode'){Vergroot(44);}
	if(branche =='kantoor'){Vergroot(49);}
	if(branche =='showroom'){Vergroot(55);}
		
	}
	
function verander(fotonr){
	if(fotonr > 1 && fotonr < 10){branche = 'boekwinkel';changebranche(branche);}
	if(fotonr > 9 && fotonr < 17){branche ='bruingoed';changebranche(branche);}
	if(fotonr > 16 && fotonr < 27){branche ='drogisterij';changebranche(branche);}
	if(fotonr > 26 && fotonr < 38){branche ='tabak';changebranche(branche);}
	if(fotonr > 37 && fotonr < 44){branche ='juwelier';changebranche(branche);}
	if(fotonr > 43 && fotonr < 49){branche ='mode';changebranche(branche);}
	if(fotonr > 48 && fotonr < 55){branche ='kantoor';changebranche(branche);}
	if(fotonr > 54 && fotonr < 60){branche ='showroom';changebranche(branche);}
		
	}


function LastPicture(){
	            document.getElementById('ImageContainer').innerHTML='<p class="intresse">Is uw interesse gewekt?</p><p class="intresse">Bel voor een vrijblijvende afspraak,</p><p class="intresse">0348 - 418176<br />of stuur een <a href="contact.html" class="mail">email</a></p>';
		
	}

function changebranche(tekst){
	            document.getElementById('brancheid').innerHTML=tekst;
		
	}

	function Vergroot(i)	{
		verander(i)
		if(i==Maxpic){LastPicture();}else{
		crossfade(nextpict='Image/Winkelinterieur/foto'+i+'.jpg');
		VorigeTumb = i
		Naar = (i*182)-182
		Verschuif(Naar)	}}

	function Verschuif(Naar)	{
		document.getElementById('Thumbs').scrollLeft= Naar	}

	function Vorige()	{
			if (VorigeTumb == Maxpic-1){
			document.getElementById('ImageContainer').innerHTML='<img src="Image/Winkelinterieur/foto58.jpg" alt="parfumerie" name="BigImage" width="600" height="252" id="BigImage">';
			var NextThumb = VorigeTumb - 1
			Vergroot(NextThumb)}
			else
			{
		var NextThumb = VorigeTumb - 1
		if (NextThumb < 1) NextThumb = 1
		Vergroot(NextThumb)	}}

	function Volgende()	{
		NextThumb = VorigeTumb + 1
		if (NextThumb > Maxpic) {document.getElementById('ImageContainer').innerHTML='<img src="Image/Winkelinterieur/foto3.jpg" alt="parfumerie" name="BigImage" width="600" height="252" id="BigImage">'; NextThumb = 1}
		Vergroot(NextThumb)	}

function crossfade(nextimage){
   if (document.all){document.getElementById('BigImage').style.filter="blendTrans(duration=2)"
      document.getElementById('BigImage').style.filter="blendTrans(duration=crossFadeDuration)"
      document.getElementById('BigImage').filters.blendTrans.Apply()}
   document.getElementById('BigImage').src = nextimage
   if (document.all){document.getElementById('BigImage').filters.blendTrans.Play()}}
   
   
function ShowSub(menuitem){
document.getElementById('Submenu4').style.visibility='visible';
 }

function HideSub(menuitem){
		 timeout = setTimeout('HideSub2();', 1000);
	 
	}
function HideSub2(){
	 
	 document.getElementById('Submenu4').style.visibility='hidden';
}