
function right(e) {
    if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3)) {
      alert("Disabled!");
      return false;
    }
    else if (event.button == 2 || event.button == 3) {
      alert("Disabled!");
      return false;
    }
    return true;
  }


loadOverColor=function()
{


  if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown = right;
  }
  else if (document.all && !document.getElementById){
    document.onmousedown = right;
  }
	document.oncontextmenu = new Function("alert('Disabled');return false");



/*	$overs=$$('img.overme');
	$overs.each(function(item) {
				item.onmouseover=function() {
					this.src='images/overme.jpg';
				}
				item.onmouseout=function() {
					this.src=this.title;
				}
						 
		})*/
	$overs=$$('div.overcont_deprecated');
	$overs.each(function(item) {
				item.onmouseover=function() {
						//this.down(0).next('a').down(0).src='http://work.pcjobs.ro/decora/images/overme.jpg';
						this.down(0).next('a').down(0).hide();
				}
				item.onmouseout=function() {
					//this.down(0).next('a').down(0).src=this.down(0).next('a').down(0).title;
					this.down(0).next('a').down(0).show();
				}
		})
	
if ($$('.prezentare')[0].clientHeight==$$('.prezentare')[0].scrollHeight)
    $('_see_more').hide();

}


loadMenuActions=function()
{
	$slides=$$('a.hasSubMenu');
	jjar = new CookieJar({
	expires:3600000,   // seconds
	path: '/'
	});							

	$slides.each(function(item) { item.onclick=function(){ 
									if (this.up(0).next(0).visible())					
										{ this.up(0).next(0).blindUp();jjar.put('menu_Info',{state:"0"}) } 
										else
										{ this.up(0).next(0).blindDown();jjar.put('menu_Info',{state:"1"})}
										
										} });
	if (jjar.get('menu_Info')!=null)	
			if (jjar.get('menu_Info').state=="1")
			{
				$slides=$$('a.hasSubMenu');
				$slides[0].up(0).next(0).blindDown({duration: 0.5});	
			}
	
}

loadMenuActionsIE=function()
{
	$slides=$$('a.hasSubMenu');
	jjar = new CookieJar({
	expires:3600000,   // seconds
	path: '/'
	});							

	$slides.each(function(item) { item.onclick=function(){ 
									if (this.next(0).visible())					
										{ this.next(0).blindUp();jjar.put('menu_Info',{state:"0"}) } 
										else
										{ this.next(0).blindDown();jjar.put('menu_Info',{state:"1"})}
										
										} });
	if (jjar.get('menu_Info')!=null)	
			if (jjar.get('menu_Info').state=="1")
			{
				$slides=$$('a.hasSubMenu');
				$slides[0].next(0).blindDown({duration: 0.5});	
			}
	
}
//if (Prototype.Browser.IE)  loadMenuActionsIE();  else loadMenuActions(); 

document.observe("dom:loaded", function() {  loadOverColor(); }); 