
	
	
			          var currShowcase = 1;
								
								var showcaseHrefs = new Array();
								showcaseHrefs[0] = 'http://www.alarmyhurt.pl/';
								showcaseHrefs[1] = 'http://www.alarmyhurt.pl/';
								showcaseHrefs[2] = 'http://www.alarmyhurt.pl/';
								showcaseHrefs[3] = 'http://www.alarmyhurt.pl/';
								
								
								
								var showcases = new Array();
								showcases[0] = 'http://www.alarmyhurt.pl/szablony/1/standard/baner1.jpg';
								showcases[1] = 'http://www.alarmyhurt.pl/szablony/1/standard/baner2.jpg';
								showcases[2] = 'http://www.alarmyhurt.pl/szablony/1/standard/baner3.jpg';
								showcases[3] = 'http://www.alarmyhurt.pl/szablony/1/standard/baner4.jpg';
								
							 
								var showcaseAlt = new Array();
								showcaseAlt[0] = '';
								showcaseAlt[1] = '';
								showcaseAlt[2] = '';
								showcaseAlt[3] = '';
								
								
								function changeShowcase(no) {
									currShowcase = no % showcases.length;
									
									if (showcases[currShowcase] == null)
										return false;
									
									img = document.getElementById('showcase');
									if (img == null)
										return false;
											
									shHref = document.getElementById('showcaseHref');
									if (shHref == null)
										return false;
										
									img.src = showcases[currShowcase];
									shHref.href = showcaseHrefs[currShowcase];
									img.alt =  showcaseAlt[currShowcase];
									
									if (currShowcase == 9999999){
										shHref.target = '_blank';
									}
															else {
																	shHref.target = '_self';
															}
									for (var i = 0; i < showcases.length; i++) {
										anchor = document.getElementById('showcaseLink' + i);
										if (anchor == null)
											continue;
							 
										//anchor.className = i == currShowcase ? 'select' : '';
										//anchor.style.backgroundColor= i == currShowcase ? '#139aca' : 'e1f0f3';
										//anchor.style.color= i == currShowcase ? '#fff' : '#139aca';
										anchor.style.backgroundColor= i == currShowcase ? '#139aca' : '#c2c2c2';
										anchor.style.color= i == currShowcase ? '#fff' : '#fff';
										
										
									}
								}
							 
								function nextShowcase() {
									changeShowcase(++currShowcase);
								}
							 
								function prevShowcase() {
									if (currShowcase == 0)
										changeShowcase(showcases.length - 1);
									else
										changeShowcase(--currShowcase);
								}
							 
								function rotateShowcase() {
									var t = setTimeout("rotateShowcase();", 5000);
									nextShowcase();
								}
