/* Preload */
var myimages=new Array();
function preloadImages() {
    for (i=0;i<preloadImages.arguments.length;i++) {
        myimages[i]=new Image();
        myimages[i].src=preloadImages.arguments[i];
    }
}


/* Intro */
function lookLeft() {
    offset = 1;
    document.images[offset].src="images/intro_auge_li02.jpg";
    document.images[offset+1].src="images/intro_auge_re02.jpg";
}

function lookRight() {
    offset = 1;
    document.images[offset].src="images/intro_auge_li03.jpg";
    document.images[offset+1].src="images/intro_auge_re03.jpg";
}

function lookReset() {
    offset = 1;
    document.images[offset].src="images/intro_auge_li01.jpg";
    document.images[offset+1].src="images/intro_auge_re01.jpg";
}


/* Galerie */
function showImage(imgNr, type) {
	var offset;
	if (type == 'airbrush')
	{
		offset = 9;
	}
	else
	{
		offset = 9;
	}
	
	document.images[offset].src = "images/galerie" + imgNr + ".jpg";
}


/* Shop */
function showProductImage(url, titel, breite, hoehe) {
	var productImage = window.open('shopProductImage.php?url=' + url + '&titel=' + titel, '', 'width=' + (breite + 40) + ',height=' + (hoehe + 65) + ',status=no,locationbar=no,menubar=no,scrollbars=auto');
}

function adminShowProductImage(url, titel, breite, hoehe) {
	var productImage = window.open('../airbrush/shopProductImage.php?url=' + url + '&titel=' + titel, '', 'width=' + (breite + 40) + ',height=' + (hoehe + 65) + ',status=no,locationbar=no,menubar=no,scrollbars=auto');
}
