//Diverse Standardfunktionen
function linkOver(ID) {
	var pic = document.getElementById(ID);
	pic.src = "img/" + ID + "_on.gif";
}
function linkOut(ID) {
	var pic = document.getElementById(ID);
	pic.src = "img/" + ID + ".gif";
}			
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function pause(numberMillis) {
	var now = new Date();
	var exitTime = now.getTime() + numberMillis;
	while (true) {
		now = new Date();
		if (now.getTime() > exitTime)
			return;
	}
}
Object.extend(Element, {
	setSrc: function(element,src) {
    	element = $(element);
    	element.src = src; 
	},
	setHref: function(element,href) {
    	element = $(element);
    	element.href = href; 
	},
	setInnerHTML: function(element,content) {
		element = $(element);
		element.innerHTML = content;
	}
});
//Naechstes Bild vorladen
function preloadpicture(picture)
{
	preloadNextImage = new Image();
	preloadNextImage.src = picture;
		
}
//Zeigt die CollectionsGallery an.
function collection_gallery(sex)
{
	//Ausblenden
	new Effect.Parallel(
	   	[new Effect.Appear('getpic_content', { sync: true, from:1.0, to: 0.0 }), new Effect.Appear('getpic_nav', { sync: true, from:1.0, to: 0.0 } ) ], { duration: 0.5,afterFinish: function (){showLoadingMessage_gal(sex); } }
	);
	//Sichtbarkeit tauschen
	function showLoadingMessage_gal(sex)
	{
		Element.hide('getpic_content');	
		Element.hide('getpic_nav');	
		Element.show('loading');	
		Element.show('loading2');
		//dann ajaxrequest mit onSucces Funktion
		new Ajax.Request('inc/funktionen/getpic_gallery.php', {
			method:'get',
			parameters: 'sex='+sex,
			asynchronous:true,
			evalScripts:true,
			onSuccess: function(xhrObject){
			    $('getpic_content').innerHTML = xhrObject.responseText;
			    $('getpic_nav').innerHTML = '<a href="index2.php"><img src="img/logo.gif" vspace="40" hspace="16"></a>';
				Element.hide('loading');	
				Element.hide('loading2');	
				new Effect.Parallel(
				 	[new Effect.Appear('getpic_content', { sync: true, from:0.0, to: 1.0 }), new Effect.Appear('getpic_nav', { sync: true, from:0.0, to: 1.0 } ) ], { duration: 0.5 }
				);
			}
		});	
	}
}
//Zeigt die Collection an.
function collection(key,sex)
{
	//Ausblenden
	new Effect.Parallel(
	   	[new Effect.Appear('getpic_content', { sync: true, from:1.0, to: 0.0 }), new Effect.Appear('getpic_nav', { sync: true, from:1.0, to: 0.0 } ) ], { duration: 0.5,afterFinish: function (){showLoadingMessage(key,sex); } }
	);
	//Sichtbarkeit tauschen
	function showLoadingMessage(key,sex)
	{
		Element.hide('getpic_content');	
		Element.hide('getpic_nav');	
		Element.show('loading');	
		Element.show('loading2');
		
		//dann ajaxrequest mit onSucces Funktion
		new Ajax.Request('inc/funktionen/getpic.php', {
			method:'get',
			parameters: 'key='+key+'&sex='+sex,
			asynchronous:true,
			evalScripts:true,
			onSuccess: function(xhrObject){
				//Element pic resetten
				$('pic').innerHTML = '<div id=getpic_content style="display:none;"><img id="picture" src=""></div>';
				//Response nach || aufsplitten
				var response = xhrObject.responseText;
			    var update = new Array();					
			    if(response.indexOf('||' != -1)) {
			      update = response.split('||');
			      //Navigation updaten
			      $('getpic_nav').innerHTML = update[1];
			      //Bild vorladen
			      imgPreloader = new Image();
					// wenn vorgeladen, dann loading ausblenden, pausieren, Einblendeffekt und dann preloadnext image.
					imgPreloader.onload=function(){
						Element.setSrc('picture', update[0]);
						Element.hide('loading');	
						Element.hide('loading2');	
						if (navigator.appVersion.indexOf("MSIE")!=-1){ pause(250); } else { pause(100);} 

					    new Effect.Parallel(
						   	[new Effect.Appear('getpic_content', { sync: true, from:0.0, to: 1.0 }), new Effect.Appear('getpic_nav', { sync: true, from:0.0, to: 1.0 } ) ], { duration: 0.5 ,afterFinish: function (){preloadpicture(update[2]); } }
						);
					}
					imgPreloader.src = update[0]; 
			    }	
			}
		});
	}	
}
//Zeigt die KIDS an.
function kids(key)
{
	//Ausblenden
	new Effect.Parallel(
	   	[new Effect.Appear('getpic_content', { sync: true, from:1.0, to: 0.0 }), new Effect.Appear('getpic_nav', { sync: true, from:1.0, to: 0.0 } ) ], { duration: 0.5,afterFinish: function (){showLoadingMessage_kids(key); } }
	);
	//Sichtbarkeit tauschen
	function showLoadingMessage_kids(key)
	{
		Element.hide('getpic_content');	
		Element.hide('getpic_nav');	
		Element.show('loading');	
		Element.show('loading2');
		
		//dann ajaxrequest mit onSucces Funktion
		new Ajax.Request('inc/funktionen/getpic_kids.php', {
			method:'get',
			parameters: 'key='+key,
			asynchronous:true,
			evalScripts:true,
			onSuccess: function(xhrObject){
				//Element pic resetten
				$('pic').innerHTML = '<div id=getpic_content style="display:none;"><img id="picture" src=""></div>';
				//Response nach || aufsplitten
				var response = xhrObject.responseText;
			    var update = new Array();					
			    if(response.indexOf('||' != -1)) {
			      update = response.split('||');
			      //Navigation updaten
			      $('getpic_nav').innerHTML = update[1];
			      //Bild vorladen
			      imgPreloader = new Image();
					// wenn vorgeladen, dann loading ausblenden, pausieren, Einblendeffekt und dann preloadnext image.
					imgPreloader.onload=function(){
						Element.setSrc('picture', update[0]);
						Element.hide('loading');	
						Element.hide('loading2');	
						if (navigator.appVersion.indexOf("MSIE")!=-1){ pause(250); } else { pause(100);} 

					    new Effect.Parallel(
						   	[new Effect.Appear('getpic_content', { sync: true, from:0.0, to: 1.0 }), new Effect.Appear('getpic_nav', { sync: true, from:0.0, to: 1.0 } ) ], { duration: 0.5 ,afterFinish: function (){preloadpicture(update[2]); } }
						);
					}
					imgPreloader.src = update[0]; 
			    }	
			}
		});
	}	
}
//Zeigt die Collection an wenn man vom Warenkorb kommt
function collection_fromcart(key,sex)
{
	Element.hide('getpic_content');	
	Element.hide('getpic_nav');	
	Element.show('loading');	
	Element.show('loading2');
	
	new Ajax.Request('inc/funktionen/getpic_gallery.php', {
		method:'get',
		parameters: 'sex='+sex,
		asynchronous:true,
		evalScripts:true,
		onSuccess: function(xhrObject){
		    $('getpic_content').innerHTML = xhrObject.responseText;
		    $('getpic_nav').innerHTML = '<a href="index2.php"><img src="img/logo.gif" vspace="40" hspace="16"></a>';
			Element.hide('loading');	
			Element.hide('loading2');	
			new Effect.Parallel(
			 	[new Effect.Appear('getpic_content', { sync: true, from:0.0, to: 1.0 }), new Effect.Appear('getpic_nav', { sync: true, from:0.0, to: 1.0 } ) ], { duration: 0.5 }
			);
		}
	});	
		
}
//Zeigt die KIDS an wenn man vom Warenkorb kommt
function kids_fromcart(key,sex)
{
	Element.hide('getpic_content');	
	Element.hide('getpic_nav');	
	Element.show('loading');	
	Element.show('loading2');
	
	//dann ajaxrequest mit onSucces Funktion
	new Ajax.Request('inc/funktionen/getpic_kids.php', {
		method:'get',
		parameters: 'key='+key,
		asynchronous:true,
		evalScripts:true,
		onSuccess: function(xhrObject){
			//Element pic resetten
			$('pic').innerHTML = '<div id=getpic_content style="display:none;"><img id="picture" src=""></div>';
			//Response nach || aufsplitten
			var response = xhrObject.responseText;
		    var update = new Array();					
		    if(response.indexOf('||' != -1)) {
		      update = response.split('||');
		      //Navigation updaten
		      $('getpic_nav').innerHTML = update[1];
		      //Bild vorladen
		      imgPreloader = new Image();
				// wenn vorgeladen, dann loading ausblenden, pausieren, Einblendeffekt und dann preloadnext image.
				imgPreloader.onload=function(){
					Element.setSrc('picture', update[0]);
					Element.hide('loading');	
					Element.hide('loading2');	
					if (navigator.appVersion.indexOf("MSIE")!=-1){ pause(250); } else { pause(100);} 

				    new Effect.Parallel(
					   	[new Effect.Appear('getpic_content', { sync: true, from:0.0, to: 1.0 }), new Effect.Appear('getpic_nav', { sync: true, from:0.0, to: 1.0 } ) ], { duration: 0.5 ,afterFinish: function (){preloadpicture(update[2]); } }
					);
				}
				imgPreloader.src = update[0]; 
		    }	
		}
	});
		
}
//Zeigt die Collection an. (DETAILS)
function collection_details(key,aid,sex)
{
	//Ausblenden
	new Effect.Parallel(
	   	[new Effect.Appear('getpic_content', { sync: true, from:1.0, to: 0.0 }), new Effect.Appear('getpic_nav', { sync: true, from:1.0, to: 0.0 } ) ], { duration: 0.5,afterFinish: function (){showLoadingMessage(key,aid,sex); } }
	);
	//Sichtbarkeit tauschen
	function showLoadingMessage(key,aid,sex)
	{
		Element.hide('getpic_content');	
		Element.hide('getpic_nav');	
		Element.show('loading');	
		Element.show('loading2');
		//dann ajaxrequest mit onSucces Funktion
		new Ajax.Request('inc/funktionen/getpic_details.php', {
			method:'get',
			parameters: 'key='+key+'&aid='+aid+'&sex='+sex,
			asynchronous:true,
			evalScripts:true,
			onSuccess: function(xhrObject){
				//Response nach || aufsplitten
				var response = xhrObject.responseText;
			    var update = new Array();					
			    if(response.indexOf('||' != -1)) {
				    update = response.split('||');
				    //Navigation updaten
				    $('getpic_nav').innerHTML = update[1];
				    $('getpic_content').innerHTML = update[0];
				    Element.hide('loading');	
					Element.hide('loading2');	
				    new Effect.Parallel(
					   	[new Effect.Appear('getpic_content', { sync: true, from:0.0, to: 1.0 }), new Effect.Appear('getpic_nav', { sync: true, from:0.0, to: 1.0 } ) ], { duration: 0.0 }
					);	
			    }	
			}
		});
	}	
}
//Zeigt die KIDS an. (DETAILS)
function kids_details(key,aid,sex)
{
	//Ausblenden
	new Effect.Parallel(
	   	[new Effect.Appear('getpic_content', { sync: true, from:1.0, to: 0.0 }), new Effect.Appear('getpic_nav', { sync: true, from:1.0, to: 0.0 } ) ], { duration: 0.5,afterFinish: function (){showLoadingMessage(key,aid,sex); } }
	);
	//Sichtbarkeit tauschen
	function showLoadingMessage(key,aid,sex)
	{
		Element.hide('getpic_content');	
		Element.hide('getpic_nav');	
		Element.show('loading');	
		Element.show('loading2');
		//dann ajaxrequest mit onSucces Funktion
		new Ajax.Request('inc/funktionen/kids_details.php', {
			method:'get',
			parameters: 'key='+key+'&aid='+aid+'&sex='+sex,
			asynchronous:true,
			evalScripts:true,
			onSuccess: function(xhrObject){
				//Response nach || aufsplitten
				var response = xhrObject.responseText;
			    var update = new Array();					
			    if(response.indexOf('||' != -1)) {
				    update = response.split('||');
				    //Navigation updaten
				    $('getpic_nav').innerHTML = update[1];
				    $('getpic_content').innerHTML = update[0];
				    Element.hide('loading');	
					Element.hide('loading2');	
				    new Effect.Parallel(
					   	[new Effect.Appear('getpic_content', { sync: true, from:0.0, to: 1.0 }), new Effect.Appear('getpic_nav', { sync: true, from:0.0, to: 1.0 } ) ], { duration: 0.0 }
					);	
			    }	
			}
		});
	}	
}
//Zeigt die FARBEN an.
function colors(sex)
{
	var s;
	s = $F("grossid");
	new Ajax.Request('inc/funktionen/getcolor.php', {
		method:'get',
		parameters: 's='+s+'&sex='+sex,
		asynchronous:true,
		evalScripts:true,
		onSuccess: function(xhrObject){
			var response = xhrObject.responseText;
		    $('select2').innerHTML = response; 
		}	
		}
	 );		
}
//Zeigt die FARBEN an.
function getsize(sex,aid)
{
	var s;
	s = $F("farbid");
	new Ajax.Request('inc/funktionen/getsize.php', {
		method:'get',
		parameters: 's='+s+'&sex='+sex+'&aid='+aid,
		asynchronous:true,
		evalScripts:true,
		onSuccess: function(xhrObject){
			var response = xhrObject.responseText;
		    $('select2').innerHTML = response; 
		}	
		}
	 );		
}
//ADDTOCART lauft erst ueber diese  Funktion um Formularcheck auszufuehren
function chk(key,sex){
var artid;
var farbid;
var grossid;
var quant;
artid = $F("artid");
farbid = $F("farbid");
grossid = $F("grossid");
quant = $F("quant");

	if ($F("grossid")=="") {
		alert("Please choose a size. / Bitte w�hlen Sie eine Gr��e");
		$('grossid').focus();
		return false;
	}	
	if ($F("farbid")=="") {
		alert("Please choose a color. / Bitte w�hlen Sie eine Farbe");
		$('farbid').focus();
		return false;
	}	
	if (($F("grossid") !="") && ($F("farbid") !="")) {	
		
		//Wenn alles passt - ruf addtocart auf ueber xajax und blende den Highlighteffekt ein.
  		new Ajax.Request('inc/funktionen/addtocart.php', {
			method:'get',
			parameters: 'sex='+sex+'&artid='+artid+'&farbid='+farbid+'&grossid='+grossid+'&quant='+quant,
			asynchronous:true,
			evalScripts:true
		});
	   // new Effect.Highlight('carthigh',{startcolor:'#e85959', endcolor:'#b8babc',duration: 2.0, afterFinish: function (){collection_gallery(sex); } });
	    new Effect.Highlight('carthigh',{startcolor:'#e85959', endcolor:'#b8babc',duration: 2.0, afterFinish: function (){showcart0(); } });
	
	
	}
}
//ADDTOCART ENDE
//Showcart
function showcart(step) {
new Ajax.Request('inc/funktionen/showcart.php', {
method:'get',
parameters: 'step='+step,
asynchronous:true,
evalScripts:true,
onSuccess: function(xhrObject){
			var response = xhrObject.responseText;
		    $('wagen').innerHTML = response; 
			}	
});
}
//Showcart ENDE
//Showcart STEP3
function showcart_step3() {

	if ($F("vorname")=="") {
		alert("Please fill in your first name. / Bitte geben Sie Ihren Vornamen an.");
		$('vorname').focus();
		return false;
	}		
	if ($F("nachname")=="") {
		alert("Please fill in your last name. / Bitte geben Sie Ihren Nachnamen an.");
		$('nachname').focus();
		return false;
	}			
	if ($F("anschrift")=="") {
		alert("Please fill in your adress. / Bitte geben Sie Ihre Strasse an.");
		$('anschrift').focus();
		return false;
	}				
	if ($F("plz")=="") {
		alert("Please fill in your ZIP-Code. / Bitte geben Sie Ihre Postleitzahl an.");
		$('plz').focus();
		return false;
	}				
	if ($F("ort")=="") {
		alert("Please fill in your city. / Bitte geben Sie Ihren Wohnort an.");
		$('ort').focus();
		return false;
	}	
	if ($F("land")=="") {
		alert("Please fill in your country. / Bitte geben Sie Ihr Land an.");
		$('land').focus();
		return false;
	}					
	if ($F("email")=="") {
		alert("Please fill in your E-Mail. / Bitte geben Sie Ihre E-Mail an.");
		$('email').focus();
		return false;
	}							
	if ($F("telfax")=="") {
		alert("Please fill in your Phonenumber. / Bitte geben Sie Ihre Telefonnummer an.");
		$('telfax').focus();
		return false;
	}					
	if (($F("vorname") !="") && ($F("nachname") !="")&& ($F("anschrift") !="")&& ($F("plz") !="")&& ($F("ort") !="")&& ($F("email") !="")&& ($F("land") !="")&& ($F("telfax") !="")) {	
		var serializedForm = Form.serialize('adress');
		new Ajax.Request('inc/funktionen/showcart_step3.php', {
		method:'get',
		parameters: serializedForm,
		asynchronous:true,
		evalScripts:true,
		onSuccess: function(xhrObject){
					var response = xhrObject.responseText;
				    $('wagen').innerHTML = response; 
					}	
		});

	}
}
//Showcart STEP3ENDE
//cart update
function cartupdate(id) {
var quant;
quant = $F('quant'+id);
if (quant == 0) {cartdelete(id);} else {
	new Ajax.Request('inc/funktionen/cart_update.php', {
	method:'get',
	parameters: 'id='+id+'&quant='+quant,
	asynchronous:true,
	evalScripts:true,
	onSuccess: function() {new Effect.Highlight('carthd' + id,{startcolor:'#e85959', endcolor:'#ffffff',duration: 1.0, afterFinish: function (){showcart(1); } });	}	    				
	});
	}
}
//cart update ENDE
//cart update_land
function cartupdate_land() {
var euro;
euro = String.fromCharCode(8364);
var land;
var land1;
var land2;
var land3;
land = $F('land');
if (land == 'Belgien') {land1 = '7.50'; land2 = '7,50 '+euro; land3 = '7,50';}
if (land == 'Deutschland'){ land1 = '5.20'; land2 = '5,20 '+euro; land3 = '5,20';}
if (land == 'Frankreich'){ land1 = '10.50'; land2 = '10,50 '+euro; land3 = '10,50';}
if (land == 'Italien') {land1 = '11.50'; land2 = '11,50 '+euro; land3 = '11,50';}
if (land == 'Luxemburg') {land1 = '7.50'; land2 = '7,50 '+euro; land3 = '7,50';}
if (land == 'Liechtenstein') {land1 = '8.80'; land2 = '8,80 '+euro; land3 = '8,80';}
if (land == 'Niederlande') {land1 = '7.50'; land2 = '7,50 '+euro; land3 = '7,50';}
if (land == 'Monaco') {land1 = '10.50'; land2 = '10,50 '+euro; land3 = '10,50';}
if (land == 'Oesterreich') {land1 = '8.50'; land2 = '8,50 '+euro; land3 = '8,50';}
if (land == 'Spanien') {land1 = '10.50'; land2 = '10,50 '+euro; land3 = '10,50';}
if (land == 'Schweiz') {land1 = '11.50'; land2 = '11,50 '+euro; land3 = '11,50';}
if (land == 'England') {land1 = '10.50'; land2 = '10,50 '+euro; land3 = '10,50';}
new Ajax.Request('inc/funktionen/cart_update_land.php', {
	method:'get',
	parameters: 'land='+land+'&land1='+land1+'&land2='+land3+'%20%26euro%3B',
	asynchronous:true,
	evalScripts:true,
	onSuccess: function() {
		$('land2').innerHTML = land2;
		showcart(1);
	}
	});
}
//cart update_land ENDE
//cart check AGB
function showcart_agb() {
	if (document.forms[0].agb.checked == true) { document.location.href ="https://www.wasserstoff-online.de/checkout.php"; } else {
			alert("Bitte akzeptieren Sie unsere AGB.");
			document.forms[0].agb.focus();
			return false;
	}
}	
//cart check AGB ENDE	
//cart delete
function cartdelete(id) {
new Ajax.Request('inc/funktionen/cart_delete.php', {
method:'get',
parameters: 'id='+id,
asynchronous:true,
evalScripts:true,
onSuccess: function() {new Effect.Highlight('carthd' + id,{startcolor:'#e85959', endcolor:'#ffffff',duration: 1.0, afterFinish: function (){showcart(1); } });	}	    				
});
}
//cart delete ENDE
//Zeigt die Gallery an.
function gallery2(sex)
{
	Element.hide('gallery_content');	
	Element.show('loading');	
	//dann ajaxrequest mit onSucces Funktion
	new Ajax.Request('inc/funktionen/gallery.php', {
		method:'get',
		parameters: 'sex='+sex,
		asynchronous:true,
		evalScripts:true,
		onSuccess: function(xhrObject){
		    $('gallery_content').innerHTML = xhrObject.responseText;
			Element.hide('loading');	
			Element.show('gallery_content');	  	
		}
	});	
}
//Zeigt die Gallery an. (DETAILS)
function gallery_details(key,aid,sex)
{
		Element.hide('gallery_content');	
		Element.show('loading');	
		//dann ajaxrequest mit onSucces Funktion
		new Ajax.Request('inc/funktionen/gallery_details.php', {
			method:'get',
			parameters: 'key='+key+'&aid='+aid+'&sex='+sex,
			asynchronous:true,
			evalScripts:true,
			onSuccess: function(xhrObject){
			    $('gallery_content').innerHTML = xhrObject.responseText;
				Element.hide('loading');	
				Element.show('gallery_content');	  	
			}
		});
}
//ADDTOCART gallery lauft erst ueber diese  Funktion um Formularcheck auszufuehren
function chk_gallery(key,sex){	
var artid;
var farbid;
var grossid;
var quant;
artid = $F("artid");
farbid = $F("farbid");
grossid = $F("grossid");
quant = $F("quant");

	if ($F("grossid")=="") {
		alert("Please choose a size. / Bitte w�hlen Sie eine Gr��e");
		$('grossid').focus();
		return false;
	}	
	if ($F("farbid")=="") {
		alert("Please choose a color. / Bitte w�hlen Sie eine Farbe");
		$('farbid').focus();
		return false;
	}	
	if (($F("grossid") !="") && ($F("farbid") !="")) {	
		
		//Wenn alles passt - ruf addtocart auf ueber xajax und blende den Highlighteffekt ein.
  		new Ajax.Request('inc/funktionen/addtocart.php', {
			method:'get',
			parameters: 'sex='+sex+'&artid='+artid+'&farbid='+farbid+'&grossid='+grossid+'&quant='+quant,
			asynchronous:true,
			evalScripts:true
		});
	   // new Effect.Highlight('carthigh',{startcolor:'#e85959', endcolor:'#b8babc',duration: 2.0, afterFinish: function (){gallery2(sex); } });
	    new Effect.Highlight('carthigh',{startcolor:'#e85959', endcolor:'#b8babc',duration: 2.0, afterFinish: function (){showcart0(); } });
	
	
	}
}
//ADDTOCART gallery ENDE

//ADDTOCART KIDS lauft erst ueber diese  Funktion um Formularcheck auszufuehren
function chk_kids(key,sex){	
var artid;
var farbid;
var grossid;
var quant;
artid = $F("artid");
farbid = $F("farbid");
grossid = $F("grossid");
quant = $F("quant");

	if ($F("grossid")=="") {
		alert("Please choose a size. / Bitte w�hlen Sie eine Gr��e");
		$('grossid').focus();
		return false;
	}	
	if ($F("farbid")=="") {
		alert("Please choose a color. / Bitte w�hlen Sie eine Farbe");
		$('farbid').focus();
		return false;
	}	
	if (($F("grossid") !="") && ($F("farbid") !="")) {	
		
		//Wenn alles passt - ruf addtocart auf ueber xajax und blende den Highlighteffekt ein.
  		new Ajax.Request('inc/funktionen/addtocart.php', {
			method:'get',
			parameters: 'sex='+sex+'&artid='+artid+'&farbid='+farbid+'&grossid='+grossid+'&quant='+quant,
			asynchronous:true,
			evalScripts:true
		});
	  //  new Effect.Highlight('carthigh',{startcolor:'#e85959', endcolor:'#b8babc',duration: 2.0, afterFinish: function (){kids(key); } });
	    new Effect.Highlight('carthigh',{startcolor:'#e85959', endcolor:'#b8babc',duration: 2.0, afterFinish: function (){showcart0(); } });
	
	
	}
}
//ADDTOCART gallery ENDE

function showcart0(){
	window.location='cart.php?id=50';
}
