$(function(){
			if (self.location.href == top.location.href){
				$("body").css({font:"normal 13px/22px 'trebuchet MS', verdana, sans-serif"});
				var logo=$("");
				$("body").prepend(logo);
				$("#logo").fadeIn();
			}

			$.mbBgndGallery.buildGallery({
//				containment:"#wrapper",
				containment:"body",
				timer:8000,
				effTimer:1000,
				controls:"#controls",
				grayScale:false,
				// If your server allow directory listing
				folderPath:"elements/",

				// else:

				images:[
				 "elements/broemmler1.jpg",
				 "elements/broemmler2.jpg"
				 ],

				onStart:function(){$("#controls .play").hide();$("#controls .pause").show();},
				onPause:function(){$("#controls .play").show();$("#controls .pause").hide();},
				onPlay:function(opt){$("#controls .play").hide();$("#controls .pause").show();},
				onChange:function(idx){}, //idx=the zero based index of the displayed photo
				onNext:function(opt){},   //opt=the options relatives to this component instance
				onPrev:function(opt){}   //opt=the options relatives to this component instance
			});

			$(".bw").toggle(
					function(){
						var el=$("body").get(0);
						el.opt.grayScale=true;
						$(this).addClass("sel");
						el.opt.gallery.find("img:first").greyScale();
					},
					function(){
						var el=$("body").get(0);
						el.opt.grayScale=false;
						$(this).removeClass("sel");
						el.opt.gallery.find("img:first").attr("src",el.opt.images[el.opt.imageCounter]);
					}
					)
		});
		function enableDropdownMenuForIE()
		{
		if (document.all)
			{
     		   uls = document.getElementsByTagName('UL');

       		 for(i = 0; i < uls.length; i++)
        		{
          		  if (uls[i].className == 'dropdown')
          		 {
             		   var lis = uls[i].getElementsByTagName('li');

             		   for (j = 0; j < lis.length; j++)
            		    {
             		       if(lis[j].lastChild.tagName == 'UL')
								{
              		         	lis[j].onmouseover = function() { this.lastChild.style.display = 'block'; }
								lis[j].onmouseout = function() { this.lastChild.style.display = 'none'; }
                  				}
                		}
            		}
        		}
    		}
		}

