function showPicture(cURL, nWidth, nHeight) {
  return window.open(cURL,'','toolbar=no, location=no,scrollbars=no, status=no, width='+ (nWidth + 40) +', height='+ (nHeight + 40))
}

function showPhotogallery(cID) {
	document.getElementById('divContent').style.height = '230px';
	document.getElementById('remoexGallery').style.display = 'block';
	var so = new SWFObject("/flash/gallery.swf?articleID=" + cID, "remoexFlashGallery", "100%", "100%", "8", "#FFFFFF");
	so.write("remoexGallery");
}

function addToBasket(oHref, cInputAmountID) {
	window.location = oHref + '&amount=' + window.document.getElementById(cInputAmountID).value;
	return false;
}

function showSubMenu(oThis) {
	if (oPrevSelectedMenu) {
		oPrevSelectedMenu.className = oPrevSelectedMenu.className.replace(' displaySubMenu', '');
	};
	if (oThis) {
		oThis.className = oThis.className + ' displaySubMenu';
		oPrevSelectedMenu = oThis;
	};
}

function setCss(lChecked, theClass, theStyle, theValue) {
   var CSSRules;

   if (!lChecked) {
	 theValue = '';
   }

   if (document.all) {
     CSSRules = 'rules'
   } else if (document.getElementById) {
     CSSRules = 'cssRules'
   }

   for (var i = 0; i < document.styleSheets[2][CSSRules].length; i++) {
     if (document.styleSheets[2][CSSRules][i].selectorText == theClass) {
       document.styleSheets[2][CSSRules][i].style[theStyle] = theValue;
     }
   }
}