function make_bookmark(url, name, script){
  try {
    window.external.AddFavorite(url, name)
  } catch(exc) {
    alert("Sorry, your browser doesn't support bookmarks")
  }

  try {
    var img=new Image()
    img.src=url+script
  } catch(exc) { }
}
var myrules = {
	'.nav_top img' : function(el){
		var nm;
		el.onmouseover = function(){
			nm = this.src.split(".gif");
			this.src = nm[0]+"o.gif";
		}
		el.onmouseout = function(){
			nm = this.src.split("o.gif");
			this.src = nm[0]+".gif";
		}
	},
	'.nav_top a.act img' : function(el){
		el.onmouseover = null;
		el.onmouseout = null;
	},
	'.prod' : function(el){
		el.onmouseover = function(){
			this.style.borderColor = "#487b10";
		}
		el.onmouseout = function(){
			this.style.borderColor = "";
		}
	},
	'#big_pic img' : function(el){
		el.onmouseover = function(){
			document.getElementById("big_pic").style.backgroundImage = "url(imgs/"+this.id+".jpg)";
		}
	},
	'p.test' : function(el){
		el.onmouseover = function(){
			this.style.color = "#000000";
		}
		el.onmouseout = function(){
			this.style.color = "";
		}
	},
	'.main .news' : function(el){
		el.onmouseover = function(){
			this.className = "news news1"
		}
		el.onmouseout = function(){
			this.className = "news"
		}
	}
};
Behaviour.register(myrules);
