	function createMenu(menuID,action,subaction)
	{
		var aPreLoad 	= new Array();
		var aPreLoadi 	= 0;
		var selimg 		= '/images/menu/menu_'+action+'.gif';
		var aboutusmenu	= '/images/menu/menu_aboutus.gif';
		var outletmenu	= '/images/menu/menu_outlet.gif';


		$$('img.'+menuID).each(function(img) {
			// initiate
	    	var src 				= img.getProperty('src');
			var extension 			= src.substring(src.lastIndexOf('.'),src.length)

			//preload
			aPreLoad[aPreLoadi] 	= new Image();
			aPreLoad[aPreLoadi].src = src.replace(extension,'_o' + extension);
			aPreLoadi++;

	    	img.addEvent('mouseenter', function() {
				img.setProperty('src',src.replace(extension,'_o' + extension));

				// submenu show?
				if( aboutusmenu != src && aboutusmenu != selimg){
					$$('div.window-aboutusmenu').setStyle('display','none');
					if(action == 'outlet' ){
						$$('div.window-outletmenu').setStyle('display','block')
					}
					if (activeMenu == aboutusmenu) {
						activeMenu = '';
					}
				}
				if( outletmenu != src && outletmenu != selimg ){
					$$('div.window-outletmenu').setStyle('display','none');
					if(action == 'aboutus' ){
						$$('div.window-aboutusmenu').setStyle('display','block')
					}
					if (activeMenu == outletmenu) {
						activeMenu = '';
					}
				}
				if( aboutusmenu == src ){
					$$('div.window-aboutusmenu').setStyle('display','block');
					$$('div.window-outletmenu').setStyle('display','none');
					activeMenu	= aboutusmenu;
				}
				if( outletmenu == src ){
					$$('div.window-outletmenu').setStyle('display','block');
					$$('div.window-aboutusmenu').setStyle('display','none');
					activeMenu	= outletmenu;
				}

			});
	        img.addEvent('mouseleave', function() {
				if( selimg == src){
					img.setProperty('src',src.replace(extension,'_o' + extension));
				}else{
					img.setProperty('src',src);
				}

				if( selimg != aboutusmenu && aboutusmenu != activeMenu ){
						$$('div.window-aboutusmenu').setStyle('display','none')
				}
				if( selimg != outletmenu && outletmenu != activeMenu){
						$$('div.window-outletmenu').setStyle('display','none')
				}

			});
			if( selimg == src) img.setProperty('src',src.replace(extension,'_o' + extension));
		});
	}

	function createSubMenu(menuID,submenuID,trigger,action,subselected)
	{
		var aPreLoad 	= new Array();
		var aPreLoadi 	= 0;
		var selimg 		= '/images/menu/submenu_'+subselected+'.gif';

		$$('img.'+submenuID).each(function(img) {
	    	var ssrc 		= img.getProperty('src');
			var sextension 	= ssrc.substring(ssrc.lastIndexOf('.'),ssrc.length)

			//preload
			aPreLoad[aPreLoadi] = new Image();
			aPreLoad[aPreLoadi].src = ssrc.replace(sextension,'_o' + sextension);
			aPreLoadi++;

	    	img.addEvent('mouseenter', function() {

				img.setProperty('src',ssrc.replace(sextension,'_o' + sextension));
			});

	        img.addEvent('mouseleave', function() {

				if (selimg == ssrc) {
					img.setProperty('src', ssrc.replace(sextension, '_o' + sextension));
				}else{
					img.setProperty('src', ssrc);
				}
			});

			if(selimg == ssrc) {
				img.setProperty('src',ssrc.replace(sextension,'_o' + sextension));
			}
			// show after page is loaded
			if( trigger == action ){
					$$('div.window-'+menuID).setStyle('display','block')
			}
		});

		// mouse out of the submenu area --> hide submenu when the parent menu item is not selected
		$$('div.window-submenu').addEvent('mouseleave', function() {
		 	if(action != trigger ){
				$$('div.window-'+menuID).setStyle('display','none');
			}else{
				$$('div.window-'+menuID).setStyle('display','block');
			}
		});
	}

	function createProductMenu(menuID,submenuID,trigger,action,subselected)
	{
		var aPreLoad 	= new Array();
		var aPreLoadi 	= 0;

		if(!subselected)
				subselected	== 'all-products';

		var selimg 		= '/images/products/products_'+subselected+'.gif';

		$$('img.'+submenuID).each(function(img) {
	    	var ssrc 		= img.getProperty('src');
			var sextension 	= ssrc.substring(ssrc.lastIndexOf('.'),ssrc.length)

			//preload
			aPreLoad[aPreLoadi] = new Image();
			aPreLoad[aPreLoadi].src = ssrc.replace(sextension,'_o' + sextension);
			aPreLoadi++;

	    	img.addEvent('mouseenter', function() {
				img.setProperty('src',ssrc.replace(sextension,'_o' + sextension));
			});

	        img.addEvent('mouseleave', function() {
				if (selimg == ssrc) {

					img.setProperty('src', ssrc.replace(sextension, '_o' + sextension));
				}else{
					img.setProperty('src', ssrc);
				}
			});

			if(selimg == ssrc) {
				img.setProperty('src',ssrc.replace(sextension,'_o' + sextension));
			}
			// show after page is loaded
			if( trigger == action ){
					$$('div.window-'+menuID).setStyle('display','block')
			}
		});

		// mouse out of the submenu area --> hide submenu when the parent menu item is not selected
		$$('div.window-submenu').addEvent('mouseleave', function() {
		 	if(action != trigger ){
				$$('div.window-'+menuID).setStyle('display','none');
			}else{
				$$('div.window-'+menuID).setStyle('display','block');
			}
		});
	}

	function parseSelectLists(template)
	{
		var store	= '';


		if( Browser.Engine.trident ){

			if($('simpleCategory')){ 			$('simpleCategory').addEvent('change', function() {	document.location.href='/products/'+$('simpleCategory').get('value')+'/'; }); }
			if($('simpleProduct'))				$('simpleProduct').addEvent('change', function() {	document.location.href='/products/'+$('simpleCategory').get('value')+'/'+$('simpleProduct').get('value')+'/'; });
			if($('simpleDesigner'))				$('simpleDesigner').addEvent('change', function() {	document.location.href='/products/0/0/0/'+$('simpleDesigner').get('value')+'/'; });
			if($('simpleProject0'))				$('simpleProject0').addEvent('change', function() {	document.location.href='/presentationsevents/'+$('simpleProject0').get('value')+'/'; });
			if($('simpleProject1'))				$('simpleProject1').addEvent('change', function() {	document.location.href='/presentationsevents/'+$('simpleProject1').get('value')+'/'; });
			if($('simpleProject2'))				$('simpleProject2').addEvent('change', function() {	document.location.href='/presentationsevents/'+$('simpleProject2').get('value')+'/'; });
			if($('simpleProject3'))				$('simpleProject3').addEvent('change', function() {	document.location.href='/presentationsevents/'+$('simpleProject3').get('value')+'/'; });
			if($('simpleLab'))					$('simpleLab').addEvent('change', function() {	document.location.href='/lab/'+$('simpleLab').get('value')+'/'; });
			if($('simpleCommissionCompany'))	$('simpleCommissionCompany').addEvent('change', function() {	document.location.href='/creativeagency/'+$('simpleCommissionCompany').get('value')+'/'; });
			if($('simpleCommissionTitle'))		$('simpleCommissionTitle').addEvent('change', function() {		document.location.href='/creativeagency/'+$('simpleCommissionTitle').get('value')+'/'; });
			if($('store'))						if($('store').get('value')){ var store	= $('store').get('value')+'/';}
			if($('simpleStoreTitle'))			$('simpleStoreTitle').addEvent('change', function() {	document.location.href='/outlet/other-stores/'+$('simpleStoreTitle').get('value')+'/'+store; });
			if($('simpleStoreCity'))			$('simpleStoreCity').addEvent('change', function() {	document.location.href='/outlet/other-stores/'+$('simpleStoreCity').get('value')+'/'+store; });
			if($('simpleStoreCountry'))			$('simpleStoreCountry').addEvent('change', function() {	document.location.href='/outlet/other-stores/'+$('simpleStoreCountry').get('value')+'/'+store; });
			if($('simpleReview'))				$('simpleReview').addEvent('change', function() {		document.location.href='/aboutus/reviews/'+$('simpleReview').get('value')+'/'; });
			if($('simpleAward'))				$('simpleAward').addEvent('change', function() {		document.location.href='/aboutus/awards/'+$('simpleAward').get('value')+'/'; });
			if($('simpleAboutDesigner'))		$('simpleAboutDesigner').addEvent('change', function() {document.location.href='/aboutus/designers/'+$('simpleAboutDesigner').get('value')+'/'; });

			
		}else{
			if($('simpleCategory'))
				var select1 = new MavSelectBox({elem: $('simpleCategory'), container: $('navigation'), onSelect: function(_elem) { document.location.href='/products/'+$('simpleCategory').get('value')+'/'; } });
			if($('simpleProduct'))
				var select2 = new MavSelectBox({elem: $('simpleProduct'), container: $('navigation'), onSelect: function(_elem) { document.location.href='/products/'+$('simpleCategory').get('value')+'/'+$('simpleProduct').get('value')+'/'; } });
			if($('simpleDesigner'))
				var select3 = new MavSelectBox({elem: $('simpleDesigner'), container: $('navigation'), onSelect: function(_elem) { document.location.href='/products/0/0/0/'+$('simpleDesigner').get('value')+'/'; } });
			if($('simpleProject0'))
				var select4 = new MavSelectBox({elem: $('simpleProject0'), container: $('navigation'), onSelect: function(_elem) { document.location.href='/presentationsevents/'+$('simpleProject0').get('value')+'/'; } });
			if($('simpleProject1'))
				var select5 = new MavSelectBox({elem: $('simpleProject1'), container: $('navigation'), onSelect: function(_elem) { document.location.href='/presentationsevents/'+$('simpleProject1').get('value')+'/'; } });
			if($('simpleProject2'))
				var select6 = new MavSelectBox({elem: $('simpleProject2'), container: $('navigation'), onSelect: function(_elem) { document.location.href='/presentationsevents/'+$('simpleProject2').get('value')+'/'; } });
			if($('simpleProject3'))
				var select7 = new MavSelectBox({elem: $('simpleProject3'), container: $('navigation'), onSelect: function(_elem) { document.location.href='/presentationsevents/'+$('simpleProject3').get('value')+'/'; } });
			if($('simpleLab'))
				var select8 = new MavSelectBox({elem: $('simpleLab'), container: $('navigation'), onSelect: function(_elem) { 	document.location.href='/lab/'+$('simpleLab').get('value')+'/';  } });
			if($('simpleCommissionCompany'))
				var select9 = new MavSelectBox({elem: $('simpleCommissionCompany'), container: $('navigation'), onSelect: function(_elem) { document.location.href='/creativeagency/'+$('simpleCommissionCompany').get('value')+'/'; } });
			if($('simpleCommissionTitle'))
				var select10 = new MavSelectBox({elem: $('simpleCommissionTitle'), container: $('navigation'), onSelect: function(_elem) { document.location.href='/creativeagency/'+$('simpleCommissionTitle').get('value')+'/'; } });
			if($('store'))						if($('store').get('value')){ var store	= $('store').get('value')+'/';}
			if($('simpleStoreTitle'))
				var select12 = new MavSelectBox({elem: $('simpleStoreTitle'), container: $('navigation'), onSelect: function(_elem) { document.location.href='/outlet/other-stores/'+$('simpleStoreTitle').get('value')+'/'+store; } });
			if($('simpleStoreCity'))
				var select13 = new MavSelectBox({elem: $('simpleStoreCity'), container: $('navigation'), onSelect: function(_elem) { document.location.href='/outlet/other-stores/'+$('simpleStoreCity').get('value')+'/'+store; } });
			if($('simpleStoreCountry'))
				var select14 = new MavSelectBox({elem: $('simpleStoreCountry'), container: $('navigation'), onSelect: function(_elem) { document.location.href='/outlet/other-stores/'+$('simpleStoreCountry').get('value')+'/'+store; } });
			if($('simpleReview'))
				var select15 = new MavSelectBox({elem: $('simpleReview'), container: $('navigation'), onSelect: function(_elem) { document.location.href='/aboutus/reviews/'+$('simpleReview').get('value')+'/'; } });
			if($('simpleAward'))
				var select16 = new MavSelectBox({elem: $('simpleAward'), container: $('navigation'), onSelect: function(_elem) { document.location.href='/aboutus/awards/'+$('simpleAward').get('value')+'/'; } });
			if($('simpleAboutDesigner'))
				var select17 = new MavSelectBox({elem: $('simpleAboutDesigner'), container: $('navigation'), onSelect: function(_elem) { document.location.href='/aboutus/designers/'+$('simpleAboutDesigner').get('value')+'/';  } });
/*			if($('category')){
				var select18 = new MavSelectBox({elem: $('category'), container: $('navigation'), onSelect: function(_elem) {
					if ($('subcategory')) {
						$('subcategory').setProperty('value', '0');
					}
					if ($('detail')) {
						$('detail').setProperty('value', '0');
					}
					$('imagebankNav').setProperty('value', '0');
					$('mediaText').setProperty('value', '');
					document.searchimagebank.submit();
				} });
			}
			if($('subcategory')){
				var select19 = new MavSelectBox({elem: $('subcategory'), container: $('navigation'), onSelect: function(_elem) {
					if ($('detail')) {
						$('detail').setProperty('value', '0');
					}
					$('imagebankNav').setProperty('value', '0');
					$('mediaText').setProperty('value', '');
					document.searchimagebank.submit();
				} });
			}
			if($('detail')){
				var select20 = new MavSelectBox({elem: $('detail'), container: $('navigation'), onSelect: function(_elem) {
					$('mediaText').setProperty('value', '');
					document.searchimagebank.submit();
				} });
			}
*/		}

		if ($('category')) {
				$('category').addEvent('change', function(){
					if ($('subcategory')) {
						$('subcategory').setProperty('value', '0');
					}
					if ($('detail')) {
						$('detail').setProperty('value', '0');
					}
					$('imagebankNav').setProperty('value', '0');
					$('mediaText').setProperty('value', '');
					document.searchimagebank.submit();
				});
			}
			if ($('subcategory')) {
				$('subcategory').addEvent('change', function(){
					if ($('detail')) {
						$('detail').setProperty('value', '0');
					}
					$('imagebankNav').setProperty('value', '0');
					$('mediaText').setProperty('value', '');
					document.searchimagebank.submit();
				});
			}
			if($('detail'))	{
				$('detail').addEvent('change', function() {
					$('mediaText').setProperty('value', ''); document.searchimagebank.submit();
				});
			}
	}


	function setCategoryHighLight(selcat)
	{
		if(selcat){
			if($(selcat) ){
				if( selcat != 'limited-editions'){
					$(selcat).setStyle('border-bottom','3px solid black');
				}
			}
		}
	}


	function highlightBtn(classID)
	{
		var aPreLoad 	= new Array();
		var aPreLoadi 	= 0;

		$$('.'+classID).each(function(img) {
			// initiate
	    	var src 				= img.getProperty('src');
			var extension 			= src.substring(src.lastIndexOf('.'),src.length)

			//preload
			aPreLoad[aPreLoadi] 	= new Image();
			aPreLoad[aPreLoadi].src = src.replace(extension,'_o' + extension);
			aPreLoadi++;

	    	img.addEvent('mouseenter', function() {
				img.setProperty('src',src.replace(extension,'_o' + extension));
			});

	    	img.addEvent('mouseleave', function() {
				img.setProperty('src',src);
			});
		});
	}