//LMSOFT Web Creator Pro, Version:6.0.25.3
//LMSOFT Kernel 90

if(getURLParam('skipmobiledetection') == 'true') {document.cookie="skipmobiledetection=true";}
var useragent = navigator.userAgent;
useragent = useragent.toLowerCase();
var pos = document.cookie.search("skipmobiledetection=true");
if (pos == -1) {
   if(useragent.indexOf('iphone') != -1 || useragent.indexOf('symbianos') != -1 || useragent.indexOf('ipod') != -1 || useragent.indexOf('android') != -1 || useragent.indexOf('blackberry') != -1 || useragent.indexOf('samsung') != -1 || useragent.indexOf('nokia') != -1 || useragent.indexOf('windows ce') != -1 || useragent.indexOf('sonyericsson') != -1 || useragent.indexOf('webos') != -1 || useragent.indexOf('wap') != -1 || useragent.indexOf('motor') != -1 || useragent.indexOf('symbian') != -1 ) {
      var pathname = document.location.pathname;
      var mobilePagePathname = '/mobile' + pathname;
      $.get(mobilePagePathname, function(){location.pathname=mobilePagePathname;})
      .fail(function(){$.get('/mobile/', function(){location.pathname='/mobile/';})});
   }
}

var projectroot="./";
InitResources2('en');
var LMObjects = new Array();
var objindex=0;
var fontbase=96.;
//---------------------------------------------------------------------------------------------
try {
if(isValideBrowser(4.00,4.00)) {
//---------------------------------------------------------------------------------------------
LMObjects[objindex++] = LMDiv("Page",1,0,0,null,0,null,null,null,null,0);
defpagewitdh=960;
var Photos=new Array();
Photos[0]= new Photo("./photos/1a_thumb.jpg","./photos/1a.jpg",1000,587,"1a.jpg",null);
Photos[1]= new Photo("./photos/7_thumb.jpg","./photos/7.jpg",1000,587,"7.jpg",null);
Photos[2]= new Photo("./photos/6_thumb.jpg","./photos/6.jpg",1000,587,"6.jpg",null);
Photos[3]= new Photo("./photos/2_1_thumb.jpg","./photos/2_1.jpg",1000,587,"2.jpg",null);
Photos[4]= new Photo("./photos/3_1_thumb.jpg","./photos/3_1.jpg",1000,587,"3.jpg",null);
Photos[5]= new Photo("./photos/4_thumb.jpg","./photos/4.jpg",1000,581,"4.jpg",null);
Photos[6]= new Photo("./photos/5_thumb.jpg","./photos/5.jpg",1000,590,"5.jpg",null);
Photos[7]= new Photo("./photos/9_thumb.jpg","./photos/9.jpg",1000,587,"9.jpg",null);
Photos[8]= new Photo("./photos/10_thumb.jpg","./photos/10.jpg",1000,587,"10.jpg",null);
Photos[9]= new Photo("./photos/11_thumb.jpg","./photos/11.jpg",1000,587,"11.jpg",null);
Photos[10]= new Photo("./photos/12_thumb.jpg","./photos/12.jpg",1000,587,"12.jpg",null);
Photos[11]= new Photo("./photos/13_thumb.jpg","./photos/13.jpg",1000,587,"13.jpg",null);
Photos[12]= new Photo("./photos/14_thumb.jpg","./photos/14.jpg",1000,587,"14.jpg",null);
LMObjects[objindex++] = LMGal("Gal1",1,1,0,0,Photos,4000,"Slide", "./", 572, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0);
branchlist = new Array();
branchlist[0] = new LMBranchEx("1","mailto:bacchus.albufeira@iol.pt",null,0.0,null,"NULL",1,1,1,1,1,1,0,640,480,"_self");
LMObjects[objindex++] = LMText("Text3",1,1,0,null,0,null,branchlist,null,null);
LMObjects[objindex++] = LMDiv("Line2",1,1,0,null,0,null,null,null,null,0);
branchlist = new Array();
branchlist[0] = new LMBranchEx("1","http://www.graficaviva.pt",null,0.0,null,"NULL",1,1,1,1,1,1,0,640,480,"_blank");
LMObjects[objindex++] = LMText("Text4",1,1,0,null,0,null,branchlist,null,null);
LMObjects[objindex++] = LMDiv("Line3",1,1,0,null,0,null,null,null,null,0);
LMObjects[objindex++] = LMImage("Img2",1,1,0,null,0,null,new LMBranchEx("0","./page.html",null,0.0,null,null,1,1,1,1,1,1,0,640,480,"_self"),null,null,1);
if(is.ns) Img2=FindTagFromId('Img2');
LMObjects[objindex++] = LMImage("Img8",1,1,0,null,0,null,new LMBranchEx("0","http://www.facebook.com/confrariabacchusalbufeira",null,0.0,null,null,1,1,1,1,1,1,0,640,480,"_blank"),null,null,1);
if(is.ns) Img8=FindTagFromId('Img8');
LMObjects[objindex++] = LMButton("But1",1,1,0,null,0,null,new LMBranchEx("0","./page.html",null,0.0,null,null,1,1,1,1,1,1,0,640,480,"_self"),null,null,null,0,0,1);
LMObjects[objindex++] = LMImage("Img3",1,1,0,null,0,null,null,null,null,0);
if(is.ns) Img3=FindTagFromId('Img3');
//---------------------------------------------------------------------------------------------
}
}catch(e) {
alert(e.message);
}
SetBaseColor(0x3ee,0x3f9,0x7c);
LMObjectAnimate();

function PageTrapClick(e)
{
	if(is.ns && e.which!=1) return false;
	if(is.ie && event.button!=1) return false;
	if(is.ns && is.major<5) if(NSLMGlobalDn(e)==false) return false;
}
document.onmousedown=PageTrapClick;
document.oncontextmenu=new Function("return false;");
