// BLINK

go_visibility = new Array;

function goblink()
	{
	if(document.getElementById && document.all)
		{
		blink_tab = document.getElementsByTagName('blink');
		for(a=0;a<blink_tab.length;a++)
			{
			if(go_visibility[a] != "visible")
				go_visibility[a] = "visible";
			else
				go_visibility[a] = "hidden";
			blink_tab[a].style.visibility=go_visibility[a];
			}
		}
	setTimeout("goblink()", 800);
	}
	
//////////////////////////////////////////////////////////////////////////////////////////////////////

// NO ERROR
function NoError()
	{
	return true;
	}
window.onerror=NoError;


//////////////////////////////////////////////////////////////////////////////////////////////////////

// ANTI CLIC DROIT
/*function ejs_nodroit()
        {
        alert('www.mobiland17.com');
        return(false);
        }
 
document.oncontextmenu = ejs_nodroit;
        
        /*
SCRIPT TROUVE SUR L'EDITEUR JAVASCRIPT
http://www.editeurjavascript.com
 
Disable select-text script (IE4+, NS6+)- By Andy Scott
Exclusive permission granted to Dynamic Drive to feature script
Visit http://www.dynamicdrive.com for this script
*/
 
/*function disableselect(e){
return false
}
 
function reEnable(){
return true
}
 
//if IE4+
document.onselectstart=new Function ("return false")
 
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}*/
        

//////////////////////////////////////////////////////////////////////////////////////////////////////

// POP UP
function PopupImage(img) {
	titre="Mobiland";
	w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=yes');	
	w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>");
	w.document.write("<SCRIPT>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+12,document.images[0].height+60); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
	w.document.write("<BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><a href=# onClick=javascript:window.close() mousebotton=right onmousedown=javascript:window.close()><IMG src='"+img+"' border=0></a>");
	w.document.write("");
	w.document.write("</BODY></HTML>");
	w.document.close();
}

//////////////////////////////////////////////////////////////////////////////////////////////////////

// 360°

// JavaScript Document
function riviera3(width,height) {
x = (640 - width)/2, y = (480 - height)/2;
if (screen) {
y = (screen.availHeight - height)/2;
x = (screen.availWidth - width)/2;
}
if (screen.availWidth > 1800) { 
x = ((screen.availWidth/2) - width)/2; 
} 
window.open('http://www.mobiland17.com/360/riviera-3/360.asp','newWin2','width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x);
}

function rivieraconfort(width,height) {
x = (640 - width)/2, y = (480 - height)/2;
if (screen) {
y = (screen.availHeight - height)/2;
x = (screen.availWidth - width)/2;
}
if (screen.availWidth > 1800) { 
x = ((screen.availWidth/2) - width)/2; 
} 
window.open('http://www.mobiland17.com/360/riviera-confort/360.asp','newWin2','width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x);
}

function rubis2(width,height) {
x = (640 - width)/2, y = (480 - height)/2;
if (screen) {
y = (screen.availHeight - height)/2;
x = (screen.availWidth - width)/2;
}
if (screen.availWidth > 1800) { 
x = ((screen.availWidth/2) - width)/2; 
} 
window.open('http://www.mobiland17.com/360/rubis-2/360.asp','newWin2','width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x);
}

//////////////////////////////////////////////////////////////////////////////////////////////////////
