function switchPic(imName){ Effect.SlideUp('bigPic', {queue: {position:'front', scope: 'bp'},duration:0.3,afterFinish: swapSrc(imName) }); Effect.SlideDown('bigPic', {queue: {position:'end', scope: 'bp'},duration:0.7 }); } function swapSrc(imName){ var el = document.getElementById('swapIm'); var path = 'grphx/madepage/hundred/'; el.src = path+imName; } function squige(itemId){ new Effect.Morph(itemId,{ style:'width:70px;height:70px;margin:0px;z-index:1;', duration:0.2,queue: {position:'end', scope: itemId} }); } function plodge(itemId){ new Effect.Morph(itemId,{ style:'width:100px;height:100px;margin:-15px;z-index:10;', duration:0.3,queue: {position:'front', scope: itemId} }); } function cgChangeInfo(cgName,cgCode,cgProduct,cgSize,cgFinish,cgFile){ new Effect.Opacity('cgBigImg', {duration:1.0, from:0.1, to:1.0}); new Effect.Opacity('cgText', {duration:1.0, from:0.1, to:1.0}); var el = document.getElementById('cgText'); //cgBigImg cgText var elim = document.getElementById('cgBigImg'); var upd = '

'+cgName+'

'+cgCode+'
'+cgProduct+'
'+cgSize+'
'+cgFinish+'

'; el.innerHTML = upd; elim.src = 'grphx/colour-guide/200/'+cgFile; return false; } /* function homeProducts(itemId){ var el = document.getElementById(itemId); if(el.style.left == '-450px'){ new Effect.Morph(itemId,{ style:'left:0px;', duration:1.3,queue: {position:'front', scope: itemId} }); }else{ new Effect.Morph(itemId,{ style:'left:-450px;', duration:1.3,queue: {position:'front', scope: itemId} }); } } */ function homeProducts(itemId){ if($('show1').style.display == 'none'){ new Effect.Fade('show2', { queue: 'front', duration: 0.5, from: 1, to: 0 }); new Effect.Appear('show1', { queue: 'end', duration: 0.5, from: 0, to: 1 }); }else{ new Effect.Fade('show1', { queue: 'front', duration: 0.5, from: 1, to: 0 }); new Effect.Appear('show2', { queue: 'end', duration: 0.5, from: 0, to: 1 }); } } function startHomeProds(){ homeIntervalId = setInterval ( "homeProducts('productWideContainer')", 9000 ); }