// Pop user to top frame
function pop2TopFrame() { if (top == self) top.location.href = "http://www.womoco.co.uk"; 
}

// Set Menu Selection
var id;
if(document.all) id = setInterval("setMenu()", 500);

function setMenu()
{
if(parent.document.readyState == "complete")
{
clearInterval(id);
parent.frMenu.setSelected(0);
}
}

// Electric Roof Animation
var picCopen, picDash;
var animRf=new Array();
var anim=0;

animRf[0]="resources/copen_anim1.jpg";
animRf[1]="resources/copen_anim2.jpg";
animRf[2]="resources/copen_anim3.jpg";
animRf[3]="resources/copen_anim4.jpg";
animRf[4]="resources/copen_anim3.jpg";
animRf[5]="resources/copen_anim2.jpg";

var preloadedimages = new Array();

for(i=1; i < animRf.length; i++)
{
preloadedimages[i]=new Image();
preloadedimages[i].src=animRf[i];
}

picCopen = new Image();
picCopen.src = "resources/daihatsu_copen_rear.jpg";
picDash = new Image();
picDash.src = "resources/daihatsu_copen_dash.jpg";

var picTerios_HL = new Image();
picTerios_HL.src = "resources/Daihatsu_Terios_sport_hl.jpg";
var picHiJet_HL = new Image();
picHiJet_HL.src = "resources/Daihatsu_HiJet_van_hl.jpg";
var picCharade_HL = new Image();
picCharade_HL.src = "resources/Daihatsu_Charade_5dr_hl.jpg";
var picSirion_HL = new Image();
picSirion_HL.src = "resources/Daihatsu_Sirion_rally4_hl.jpg";
var picYRV_HL = new Image();
picYRV_HL.src = "resources/Daihatsu_YRV_turbo130_hl.jpg";
var picCopen_HL = new Image();
picCopen_HL.src = "resources/Daihatsu_Copen_yellow_hl.jpg";
var picExtol_HL = new Image();
picExtol_HL.src = "resources/Daihatsu_Extol_hl.jpg";

function animRoof(startframe)
{
if(document.readyState != "complete")
{
theTimer=setTimeout("animRoof()", 5000);
return;
}

if(anim >= animRf.length-1) startframe = 0;

if(startframe != null) anim = startframe-1;

if(anim < animRf.length-1)
{
anim++ ;
document.images.animElecRoof.src = animRf[anim];
theTimer=setTimeout("animRoof()", 1500);
}
}

function cellHL(ref, col, stat)
{
with(ref.style)
{
backgroundColor = col;
cursor = document.all?'hand':'pointer';
}
return window.status = stat&&ref.getAttribute ? ref.getAttribute('title') : '';
}