// BOOT
var botaoglobal,cabecalho,rodape,saidatext;
criabotoes();criacabecalho();criarodape();
window.onload = function() {ed();MM_preloadImages();};
function ParaOut(x,y){x.className="barra";}
function ParaOver(x,y){x.className="barraover";}
function muda(x,y){document.getElementById(x).src=y;}
function criacabecalho(){
index = Math.floor(Math.random() * 15);
cabecalho=
"
"+
""+
""+
""+
""+
""+
" "+
" | "+
""+
" "+
" © Copyright Kelsall Catamarans | |
";
}
function criabotoes(){
var botoes=new Array(),endereco=new Array();
botoes[0]="Concept"; endereco[0]='concept.html';
botoes[1]="Designs"; endereco[1]="index.html";
botoes[2]="Beam System"; endereco[2]="beams.html";
botoes[3]="Trailer"; endereco[3]="trailer.html";
botoes[4]="Construction"; endereco[4]="construction.html";
botoes[5]="Contact Us";endereco[5]="../contactus.html";
botoes[6]="KC Web Page";endereco[6]="../index.html";
botaoglobal=""+
""+
"
";
for (i=0;i"+botoes[i]+" ";
}
botaoglobal=botaoglobal+" | | "+
"";
}
function criarodape(){
rodape=" |
"+
""+
" Kelsall Catamarans Ltd. Tel. +64 7 863 3332 Fax. +64 7 863 7912 Email."+
"  © Copyright Kelsall Catamarans, 1964-2006 "
" |
|
";
rodape+="";
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i= 0) {
setOpacity(obj, opacity);
opacity -= 20;
window.setTimeout("fadeOut('"+objId+"',"+opacity+")", 50);
}
}
}
function setOpacity(obj, opacity) {
opacity = (opacity == 100)?99.999:opacity;
// IE/Win
obj.style.filter = "alpha(opacity:"+opacity+")";
// Safari 1.2, Konqueror
obj.style.KHTMLOpacity = opacity/100;
// Older Mozilla and Firefox
obj.style.MozOpacity = opacity/100;
// Safari 1.2, newer Firefox and Mozilla, CSS3
obj.style.opacity = opacity/100;
}
function ed() {
setOpacity(document.getElementById("head1"), 0);
setOpacity(document.getElementById("head2"), 0);
window.setTimeout("initImage('head1',index)",0);
window.setTimeout("initImage('head2',index)",1000);
index = Math.floor(Math.random() * 15);
//window.setTimeout("ed()",4500);
}
function criavideo(videoname,picturename,noframes,videospeed){
var i=0;
eval("Running"+videoname+"=0")
saidatext="";
if(!videospeed)
var videospeed=2000;
for(i=1; i<=noframes; i++){
eval("Running"+videoname+"ID"+i+"=''")
saidatext+="";
saidatext+="

";
saidatext+="
";
}
setTimeout("for(i=1; i<="+noframes+"; i++){setOpacity(document.getElementById('"+videoname+"'+i), 0);}",100);
eval("num"+videoname+"=1")
setTimeout("setOpacity(document.getElementById('"+videoname+"'+1), 100);",150);
eval("transtime"+videoname+"="+videospeed);
eval("noframes"+videoname+"="+noframes);
return saidatext
//
}
function iniciovideo(videoname){
var i,j,noframes,trabstime;
eval("transtime=transtime"+videoname);
eval("noframes=noframes"+videoname);
eval("var checkrunning=Running"+videoname)
if (eval("Running"+videoname)){
eval("Running"+videoname+"=0");
for(i=1; i<=noframes; i++)
eval("clearTimeout(Running"+videoname+"ID"+i+")")
}
else{
//alert("Inside Else")
eval("Running"+videoname+"=1")
eval("i=num"+videoname)
setTimeout("for(i=1; i<="+i+"; i++){setOpacity(document.getElementById('"+videoname+"'+i), 0);}",0);
if(eval("noframes==num"+videoname)){
eval("num"+videoname+"=1");
eval("noframes=num"+videoname);
eval("Running"+videoname+"=0")
i=1;
}
j=1;
while(i<=noframes){
//alert("Inside While")
eval("Running"+videoname+"ID"+i+"=setTimeout(\"initImage('"+videoname+i+"');num"+videoname+"="+i+";\",("+j+"-1)*transtime);")
i++;
j++;
}
}
}
function iniciovideopar(videoname,newpos){
var i,j,noframes,trabstime;
eval("transtime=transtime"+videoname);
eval("noframes=noframes"+videoname);
setTimeout("for(i=1; i<="+noframes+"; i++){setOpacity(document.getElementById('"+videoname+"'+i), 0);}",100);
eval("Running"+videoname+"=0");
for(i=1; i<=noframes; i++)
{
setOpacity(document.getElementById(videoname+i), 0)
if (eval("!Running"+videoname+"ID"+i)){
}
else{
eval("clearTimeout(Running"+videoname+"ID"+i+")")
}
}
eval("num"+videoname+"="+newpos)
iniciovideo(videoname)
}
function previousbut(videoname){
var i,j,noframes,trabstime;
eval("transtime=transtime"+videoname);
eval("noframes=noframes"+videoname);
eval("for(i=1; i<="+noframes+"; i++){setOpacity(document.getElementById('"+videoname+"'+i), 0);}");
eval("Running"+videoname+"=0");
for(i=1; i<=noframes; i++)
{
setOpacity(document.getElementById(videoname+i), 0)
if (eval("!Running"+videoname+"ID"+i)){
}
else{
eval("clearTimeout(Running"+videoname+"ID"+i+")")
}
}
if(eval("num"+videoname)-1>0){
eval("num"+videoname+"--")
}
setOpacity(document.getElementById(videoname+eval("num"+videoname)), 100)
}
function nextbut(videoname){
var i,j,noframes,trabstime;
eval("transtime=transtime"+videoname);
eval("noframes=noframes"+videoname);
eval("for(i=1; i<="+noframes+"; i++){setOpacity(document.getElementById('"+videoname+"'+i), 0);}");
eval("Running"+videoname+"=0");
for(i=1; i<=noframes; i++)
{
setOpacity(document.getElementById(videoname+i), 0)
if (eval("!Running"+videoname+"ID"+i)){
}
else{
eval("clearTimeout(Running"+videoname+"ID"+i+")")
}
}
if(eval("num"+videoname)+1<=noframes){
eval("num"+videoname+"++")
}
setOpacity(document.getElementById(videoname+eval("num"+videoname)), 100)
}