
<!--

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

defaultStatus="Clube Desportivo do Candal"
var message="Clube Desportivo do Candal © 2009, Todos os Direitos Reservados";

///////////////////////////////////
function clickIE4()
{
if (event.button==2)
{
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

// --> 


function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}

function MM_displayStatusMsg(msgStr) 
{ 
  status=msgStr;
  document.MM_returnValue = true;
}

function LauncherWin(mypage, w, h, scroll) {
var winl = 0;
var wint = 0;
var w1 = (screen.width-w) / 2;
var h1 = (screen.height-h) / 2;
winprops = 'height='+h+',width='+w+',top='+h1+',left='+w1+',scrollbars='+scroll+',noresiz'
window.open(mypage,'',winprops)
}

function LauncherWin1(mypage,scroll) {
var winl = 0;
var wint = 0;
var h = screen.height - 65;
var w = screen.width - 10;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',noresiz'
window.open(mypage,self.win,winprops)
window.close()
}

function changelocation(h,w)
{
var scroll=0;
var winl = 0;
var wint = 0;
//var w = 310; //largura
//var h = 230;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',noresiz'
window.open('popup.htm',self.win,winprops);
//location='default.htm';
}

function loadgallery(h,w)
{
var scroll=1;
var winl = 0;
var wint = 0;
var w1 = (screen.width-w) / 2;
var h1 = (screen.height-h) / 2;
winprops = 'height='+h+',width='+w+',top='+h1+',left='+w1+',scrollbars='+scroll+',noresiz'
window.open('http://cdcandal.fotopic.net','',winprops)
}
