uagent = window.navigator.userAgent.toLowerCase(); IEB = (uagent.indexOf('msie') != -1) ? true : false; var scompat = document.compatMode; ac1titarr = new Array(); ac1desarr = new Array(); ac1titarr[0] = ""; ac1desarr[0] = ""; ac1titarr[1] = ""; ac1desarr[1] = "Specialist Sportvision assessments, to give you the edge over your opponents"; ac1titarr[2] = ""; ac1desarr[2] = "Specialist eyewear designed for a wide variety of sports"; ac1titarr[3] = ""; ac1desarr[3] = "Specially trained opticians in the UK and abroad"; var ac1stepcount = 10; var ac1currstep = 10; var ac1timeo = null; var ac1horvert = 0; var ac1gorun_imgwidth = 0; var ac1gorun_blockwidth = 0; var ac1gorun_overblock_width = 0; var ac1imgid = new Array(); var ac1dscid = new Array(); var ac1yeniposx = new Array(); var ac1startposx = new Array(); var ac1currposx = new Array(); var i = 0; var ac1lastover = 0; var ac1DescCalcLeft = 0; var ac1DescCalcWidth = 0; var ac1DescCalcHeight = 0; var ac1DescCalcIcWidth = 0; var ac1DescCalcIcHeight = 0; var ac1hpiece = ''; var ac1ds = ""; function ac1init_doc(fstr) { ac1DescCalcLeft = 5; if (0 == 0) { ac1DescCalcWidth = 340 - 5 - 5; } else { ac1DescCalcWidth = 705 - 5 - 5; } if ((ac1horvert == 1) && (0 == 1)) { ac1DescCalcHeight = 340 - 110 - 110; } else { ac1DescCalcHeight = 340 - 110 - 110; } if ((IEB == true) && (scompat == "BackCompat")) { ac1DescCalcIcWidth = ac1DescCalcWidth; ac1DescCalcIcHeight = ac1DescCalcHeight; } else { ac1DescCalcIcWidth = ac1DescCalcWidth - 2 * (2) - 2 * (20); ac1DescCalcIcHeight = ac1DescCalcHeight - 2 * (2) - 2 * (20); } ac1folderset = fstr; ac1hpiece = ac1hpiece + '<div style="position:relative;width:' + 705 + 'px;height:' + 340 + 'px;overflow:hidden;border-style:solid;border-width:1px;border-color:#c4d2d9;cursor:default;" onMouseOver="ac1outall()" onMouseOut="ac1mouse_divout()">'; ac1hpiece = ac1hpiece + '<div id="ac1po1" style="position:absolute;left:0px;top:0px;" onMouseOver="ac1mouse_over(1)"><div style="background-color:#FFFFFF;padding-left:0px;padding-top:0px;"><a href="" target="_self"><img width="340" height="340" src="' + ac1folderset + 'pic1a.jpg" style="border-style:solid;border-width:0px;" TITLE=""></img></a></div></div>'; ac1hpiece = ac1hpiece + '<div id="ac1po2" style="position:absolute;left:0px;top:0px;" onMouseOver="ac1mouse_over(2)"><div style="background-color:#FFFFFF;padding-left:2px;padding-top:0px;"><a href="" target="_self"><img width="340" height="340" src="' + ac1folderset + 'pic2a.jpg" style="border-style:solid;border-width:0px;" TITLE=""></img></a></div></div>'; ac1hpiece = ac1hpiece + '<div id="ac1po3" style="position:absolute;left:0px;top:0px;" onMouseOver="ac1mouse_over(3)"><div style="background-color:#FFFFFF;padding-left:2px;padding-top:0px;"><a href="" target="_self"><img width="340" height="340" src="' + ac1folderset + 'pic3a.jpg" style="border-style:solid;border-width:0px;" TITLE=""></img></a></div></div>'; for (i = 1; i <= 3; i++) { ac1ds = ac1ds + '<div id="adesc' + i + '" style="position:absolute;top:' + 110 + 'px;left:0px;width:' + ac1DescCalcWidth + 'px;height:' + ac1DescCalcHeight + 'px;visibility:hidden;overflow:hidden;cursor:pointer;z-index:20;" onMouseOut="ac1outall()">'; ac1ds = ac1ds + '<div style="position:absolute;left:0px;top:0px;width:' + ac1DescCalcWidth + 'px;height:' + ac1DescCalcHeight + 'px;border-style:solid;border-width:0px;border-color:#000000;background-color:#' + '000000' + ';opacity: ' + 0.50 + ';filter:alpha(opacity=' + 50 + ');" onMouseOut="ac1outall()"></div>'; ac1ds = ac1ds + '<div style="position:relative;left:0px;top:0px;width:' + ac1DescCalcIcWidth + ';height:' + ac1DescCalcIcHeight + 'px;text-align:' + 'center' + ';overflow:hidden;padding:' + 20 + 'px;border-style:' + 'solid' + ';border-width:' + 2 + 'px;border-color:#' + 'C60000' + ';color:#' + 'FFFFFF' + ';font-family:' + 'arial' + ';font-style:' + 'normal' + ';font-size: ' + 20 + ';font-weight:' + 'bold' + ';text-decoration:' + 'none' + ';opacity: 1.0;filter:alpha(opacity=100);" onMouseOut="ac1outall()">'; ac1ds = ac1ds + '<span style="color:#' + 'FFFFFF' + ';font-family:' + 'arial' + ';font-style:' + 'normal' + ';font-size: ' + 20 + ';font-weight:' + 'bold' + ';text-decoration:' + 'none' + ';" onMouseOut="ac1outall()">' + ac1titarr[i] + '</span>'; if (ac1titarr[i].length > 0) { ac1ds = ac1ds + '<br />'; } ac1ds = ac1ds + '' + ac1desarr[i]; ac1ds = ac1ds + '</div>'; ac1ds = ac1ds + '</div>'; } ac1hpiece = ac1hpiece + ac1ds; ac1hpiece = ac1hpiece + '</div>'; document.write('' + ac1hpiece); } function ac1init_position(hv) { ac1horvert = hv; for (i = 1; i <= 3; i++) { ac1imgid[i] = document.getElementById('ac1po' + i); ac1dscid[i] = document.getElementById('adesc' + i); if ((ac1imgid[i] == null) || (ac1dscid[i] == null)) { setTimeout("ac1init_position(" + parseInt(hv) + ")", 200); return; } } if (ac1horvert == 0) { ac1gorun_imgwidth = parseInt((705 - ((3 - 1) * 2)) / (3)); ac1gorun_blockwidth = ac1gorun_imgwidth + 2; ac1gorun_overblock_width = parseInt(((710 - 340) / (3 - 1))); } else { ac1gorun_imgwidth = parseInt((280 - ((3 - 1) * 2)) / (3)); ac1gorun_blockwidth = ac1gorun_imgwidth + 2; ac1gorun_overblock_width = parseInt(((280 - 340) / (3 - 1))); } for (i = 1; i <= 3; i++) { ac1imgid[i] = document.getElementById('ac1po' + i); sx = (ac1gorun_blockwidth * (i - 1)) - 2; if (ac1horvert == 0) { if (i == 1) { ac1imgid[i].style.left = "0px"; } else { ac1imgid[i].style.left = "" + sx + "px"; } } else { if (i == 1) { ac1imgid[i].style.top = "0px"; } else { ac1imgid[i].style.top = "" + sx + "px"; } } ac1startposx[i] = sx; ac1currposx[i] = ac1startposx[i]; } } function ac1do_anim() { if (ac1currstep <= 0) { if (ac1lastover >= 1) { if (ac1horvert == 0) { if (0 == 0) { ac1dscid[ac1lastover].style.left = "" + (ac1DescCalcLeft + parseInt(ac1imgid[ac1lastover].style.left)) + "px"; } else { ac1dscid[ac1lastover].style.left = "" + (ac1DescCalcLeft) + "px"; } } else { if (0 == 0) { ac1dscid[ac1lastover].style.left = "" + (ac1DescCalcLeft + parseInt(ac1imgid[ac1lastover].style.left)) + "px"; ac1dscid[ac1lastover].style.top = "" + (110 + parseInt(ac1imgid[ac1lastover].style.top)) + "px"; } else { ac1dscid[ac1lastover].style.left = "" + (ac1DescCalcLeft) + "px"; ac1dscid[ac1lastover].style.top = "" + 110 + "px"; } } if ((ac1titarr[ac1lastover].length > 0) || (ac1desarr[ac1lastover].length > 0)) { ac1dscid[ac1lastover].style.visibility = "visible"; } else { ac1dscid[ac1lastover].style.visibility = "hidden"; } } return; } for (i = 2; i <= 3; i++) { ac1currposx[i] = parseInt(ac1currposx[i]) + parseInt((ac1yeniposx[i] - ac1currposx[i]) / ac1currstep); if (ac1horvert == 0) { ac1imgid[i].style.left = "" + ac1currposx[i] + "px"; } else { ac1imgid[i].style.top = "" + ac1currposx[i] + "px"; } } ac1currstep--; setTimeout("ac1do_anim()", 40); } function ac1reposition(g) { for (i = 1; i <= 3; i++) { if (i <= g) { if (i == 1) { ac1yeniposx[i] = 0; } else { ac1yeniposx[i] = parseInt(((i - 1) * ac1gorun_overblock_width) - 2); } } else { oncekix = 0; for (j = 1; j < (i - 1); j++) { oncekix = oncekix + ac1gorun_overblock_width; } if (ac1horvert == 0) { ac1yeniposx[i] = parseInt(((340) + (oncekix))); } else { ac1yeniposx[i] = parseInt(((340) + (oncekix))); } } } ac1currstep = ac1stepcount; ac1do_anim(); } function ac1mouse_over(g) { clearTimeout(ac1timeo); ac1lastover = g; for (i = 1; i <= 3; i++) { if (i != g) { ac1dscid[i].style.visibility = "hidden"; } } ac1reposition(g); } function ac1outall() { clearTimeout(ac1timeo); } function ac1mouse_divout2() { clearTimeout(ac1timeo); for (i = 1; i <= 3; i++) { ac1dscid[i].style.visibility = "hidden"; } for (i = 1; i <= 3; i++) { sx = (ac1gorun_blockwidth * (i - 1)) - 2; if (i == 1) { ac1yeniposx[i] = 0; } else { ac1yeniposx[i] = sx; } } ac1lastover = -1; ac1currstep = ac1stepcount; ac1do_anim(); } function ac1mouse_divout() { clearTimeout(ac1timeo); ac1timeo = setTimeout("ac1mouse_divout2()", 300); }
