
function OpenPopupCenter(Link,WinTarget,breite,hoehe) { 
if (!!window && Link) { 
var iMyWidth = (window.screen.width/2) - (breite/2 + 10); 
hoehe = Math.min(hoehe,window.screen.height - 200);
var iMyHeight = (window.screen.height/2) - (hoehe/2 + 50); 
var winPopup = window.open(Link ,WinTarget,"toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,favorites=no,width=" + breite + ",height=" + hoehe + ",left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight); 
winPopup.focus(); 
	}
}

function initRollovers() {

if (!document.getElementById) return false;

var aPreLoad = new Array();
var sTempSrc;
var aImages = document.getElementsByTagName('img');

for (var i = 0; i < aImages.length; i++) { 

  if (aImages[i].className && aImages[i].className.indexOf('ovr') >= 0) {

    var src = aImages[i].getAttribute('src');
    var ftype = src.substring(src.lastIndexOf('.'), src.length);
    var hsrc = src.replace(ftype, '_ovr'+ftype);

 
    aImages[i].setAttribute('hsrc', hsrc);

    aPreLoad[i] = new Image();
    aPreLoad[i].src = hsrc;

    if (aImages[i].className && aImages[i].className.indexOf('select') >= 0) {
      aImages[i].setAttribute('src', hsrc);
    }else{
      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('_ovr'+ftype, ftype);
          this.setAttribute('src', sTempSrc);
        }
      }
    }
  }
}

jQuery.noConflict();

jQuery( function() {

	jQuery('table.shoplist tr:even td').css('background-color', '#f6f6f6');
	jQuery('table.shoplist tr:odd td').css('background-color', '#fff');
	jQuery('table.shoplist td.area').css('background-color', '#fff');

});

jQuery(window).bind("load", function() {

	initRollovers();

	jQuery('#sideOvr03').mouseover( function () { jQuery('#sideOvr03').addClass('son') } );
	jQuery('#sideOvr03').mouseout( function () { jQuery('#sideOvr03').removeClass('son') } );
	jQuery('#sideOvr03').click( function () { location.href='../information/index.html' } );

	jQuery('#sideOvr04').mouseover( function () { jQuery('#sideOvr04').addClass('son') } );
	jQuery('#sideOvr04').mouseout( function () { jQuery('#sideOvr04').removeClass('son') } );
	jQuery('#sideOvr04').click( function () { location.href='../gallery/index.html' } );

});

