function popUp(strURL,strType,strHeight,strWidth) {
			var strOptions="";
				if (strType=="console") strOptions="resizable,scrollbars,height="+strHeight+",width="+strWidth;
				if (strType=="showall") strOptions="toolbar,menubar,scrollbars,resizable,location,status,height="+strHeight+",width="+strWidth;
				if (strType=="elastic") strOptions="menubar,location,scrollbars,resizable,height="+strHeight+",width="+strWidth;
				
				if ( window.screen ) {
				    var ah = screen.availHeight - 30;
				    var aw = screen.availWidth - 10;
		
				    var xc = ( aw - strWidth ) / 2;
				    var yc = ( ah - strHeight ) / 2;
				
				strOptions += ",left=" + xc + ",screenX=" + xc;
				strOptions += ",top=" + yc + ",screenY=" + yc;
				}
				// Fenster öffnen	
				fenster = window.open(strURL, 'newWin', strOptions);
				fenster.focus();
				}
				
				
function updateWKDiv(req) 
	{
/*  Unterschiedliche Versionen der Warenkorb-Effekte */
/*var blind51  = new Spry.Effect.Highlight('topnav', {duration: 2000, from: '#EAEDF6', to: '#FFD6D8'});
var blind52  = new Spry.Effect.Highlight('topnav', {duration: 2000, from: '#FFD6D8', to: '#EAEDF6', finish: blind51.start()});

 blind52.start();*/

/* Lege Waren in den WK */ 
Tip('<img class="ajaxloader" src="/onlineshop/design/ajax-loader.gif" alt="-" width="32" height="32" /><br />Sie haben den gewünschten<br />Artikel erfolgreich in den<br />Warenkorb gelegt',FOLLOWMOUSE, false,ABOVE, true, FADEIN, 400, FADEOUT, 300);
 Spry.Utils.setInnerHTML('topbasket', req.xhRequest.responseText);
 
 window.setTimeout("UnTip()", 2000);
};

function SetCookie( name, value, expires, path, domain, secure ) 
{
// set time, it's in milliseconds
var today = new Date();
today.setTime( today.getTime() );

/*
if the expires variable is set, make the correct 
expires time, the current script below will set 
it for x number of days, to make it for hours, 
delete * 24, for minutes, delete * 60 * 24
*/
if ( expires )
{
expires = expires * 1000 * 60 * 60 * 24;
}
var expires_date = new Date( today.getTime() + (expires) );

document.cookie = name + "=" +escape( value ) +
( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + 
( ( path ) ? ";path=" + path : "" ) + 
( ( domain ) ? ";domain=" + domain : "" ) +
( ( secure ) ? ";secure" : "" );
}
