/*

Popup Funktion



@param url zu Ã¶ffnende URL

@param name Name des Fensters

@param width Breite des Fensters

@param height HÃ¶he des Fensters

@param top Abstand des Popups vom oberen Rand des Bildschirms

@param left Abstand des Popups vom linken Rand de Bildschirms

@param toolbar Toolbar anzeigen = yes nicht anzeigen = no

@param status Statusbar anzeigen = yes nicht anzeigen = no

@param scrollbars Scrollbalken anzeigen = yes nicht anzeigen = no

@param resize GrÃ¶ÃŸe des Fensters verÃ¤nderbar = yes fixiert = no

*/



	hs.graphicsDir = '/graphics/';

	hs.align = 'center';

	hs.transitions = ['expand', 'crossfade'];

	hs.outlineType = 'rounded-white';

	hs.captionEval = 'this.thumb.alt';

	hs.showCredits = false;







//hs.dimmingOpacity = 0.75;



// Add the controlbar

if (hs.addSlideshow) hs.addSlideshow({

	//slideshowGroup: 'group1',

	interval: 5000,

	repeat: false,

	useControls: true,

	fixedControls: 'fit',

	overlayOptions: {

		opacity: .75,

		position: 'bottom center',

		hideOnMouseOut: false

	}

});







var detect = navigator.userAgent.toLowerCase();

if((detect.indexOf('safari')) != -1) {

           document.write('<link href="templates/<?php echo CURRENT_TEMPLATE; ?>/safari.css" rel="stylesheet" type="text/css" />');

}







$(document).ready(function(){	

			$("#slide_products").easySlider({

				auto: false,

				continuous: true,

				speed: 		1000,

				pause:			1000,

				prevId: 		'prevBtn',

				prevText: 		'',

				nextId: 		'nextBtn',	

				nextText: 		''

			});

		});	



 







		$(document).ready(function(){	

			$("#slider_big").easySlider({

				auto: true,

                                vertical:false,

				continuous: true,

                                speed: 2000,

                                pause:5000,

				numeric: true                                

			});

		});	





$(document).ready(function(){

    $("#menu_box1").hover(function() {

        $("#a0").click();

    });

    $("#menu_box3").hover(function() {

        $("#a1").click();

    });

    $("#menu_box4").hover(function() {

        $("#a2").click();

    });

    $("#menu_box5").hover(function() {

        $("#a3").click();

    });

});









var win = null;

function windowOpen(url,name,width,height,top,left,toolbar,status,scrollbars,resize){



 //schliesse das fenster wenn es bereits geÃ¶ffnet ist

 if( win != null )win.close();

 win=window.open(url,name,'"toolbar='+toolbar+',width='+width+',height='+height+',top='+top+',left='+left+',directories=no,status='+status+',scrollbars='+scrollbars+',resize='+resize+'"');

 return true;

}





function showHint(id,s)

{

  var sdiv=document.getElementById(id);

  if(s==1)

    sdiv.style.display='block';

  else

    sdiv.style.display='none';

}



function initRollovers() {



  if (!document.getElementById) return



    var aPreLoad = new Array();

    var sTempSrc;

    var aImages = document.getElementsByTagName('img');



    for (var i = 0; i < aImages.length; i++) {

    if (aImages[i].className == 'imgover') {

      var src = aImages[i].getAttribute('src');

      var ftype = src.substring(src.lastIndexOf('.'), src.length);

      var hsrc = src.replace(ftype, '_1'+ftype);



      aImages[i].setAttribute('hsrc', hsrc);



      aPreLoad[i] = new Image();

      aPreLoad[i].src = hsrc;



      aImages[i].onmouseover = function() {

      sTempSrc = this.getAttribute('src');

      this.setAttribute('src', this.getAttribute('hsrc'));

    }



    aImages[i].onmouseout = function() {

      if (!sTempSrc) sTempSrc = this.getAttribute('src').

          replace('_1'+ftype, ftype);

        this.setAttribute('src', sTempSrc);

      }

    }

  }

}



window.onload = initRollovers;



function targetblank(ziel)

{

	ziel.target = '_blank';

}






