if (window.Event) 
document.captureEvents(Event.MOUSEUP); 
function nocontextmenu()  
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
function norightclick(e)	
{
if (window.Event)	
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}	
}
document.oncontextmenu = nocontextmenu;		
document.onmousedown = norightclick;		

function zoom(artiste, oeuvre, largeur, longueur)
{
    url = '../artiste/zoom.php?artiste='+artiste+'&oeuvre='+oeuvre;
    window.open(url,'','menubar=no, status=no, scrollbars=no, menubar=no, width='+largeur+', height='+longueur);
}

function makevisible(cur,which)
{
	if (which==0)
	{
		for(i=1 ; i<7 ; i++)
		{
			cur.filters.alpha.opacity=40+(i*10);
		}
	}
	else cur.filters.alpha.opacity=40
}

function run_filter(obj){ 
if(obj && obj.filters[0]){
obj.filters[0].apply();
obj.visibility="visible";
obj.filters[0].play();}}

var plecran
function pleinecran(page) {
ie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ))
ns4 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4 ))
/* if (ie4)
plecran=window.open(page, "plecran", "fullscreen=yes");
else*/
plecran=window.open(page, "plecran", "height="+(window.screen.availHeight-100)+", width="+(window.screen.availWidth-10)+", top=0, left=0, toolbar=yes, status=yes, scrollbars=yes, location=yes, menubar=yes, directories=yes, resizable=yes");
}
