function get_phone_image() { document.write(""); } function get_freight_phone_no() { document.write("0870 626 3990"); } function get_phone_no() { document.write("0871 222 3312*"); } function get_phone_no_static() { document.write("0871 222 3312"); } function get_phone_no_conf1() { document.write("0871 222 3313"); } function get_phone_no_conf2() { document.write("(+44) 1473 717 322"); } function write_callcentre_box_over() { showLayer('Times','0'); } function write_callcentre_box_out() { btnTimer(); } function get_monfri_hours() { document.write("0900 - 1800"); } function get_monfri_text() { document.write("Mon - Fri:"); } function get_sat_hours() { document.write("1000 - 1600"); } function get_sat_text() { document.write("Saturday:"); } function get_phone_charges() { document.write("Calls charged at 10p/min"); } function get_cancellation_days() { document.write("3"); } window.onerror = null; var bName = navigator.appName; var bVer = parseInt(navigator.appVersion); var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4); var menuActive = 0; var menuOn = 0; var onLayer; var timeOn = null; function showLayer(layerName,aa){ if (timeOn != null) { clearTimeout(timeOn); hideLayer(onLayer); } var elementRef = document.getElementById(layerName); var x; if (window.innerWidth) x=window.innerWidth; else if (document.documentElement && document.documentElement.clientWidth) x=document.documentElement.clientWidth; else if (document.body) x=document.body.clientWidth; x = x/2; if (x<386) { x=386; } if (layerName=='languages') { elementRef.style.top= 20 + "px"; elementRef.style.left = (x - 386 + 676) + "px"; } else if (layerName=='languages2') { elementRef.style.top= 130 + "px"; elementRef.style.left = 2 + "px"; } else if (layerName=='Times') { var phone = document.getElementById("phone"); if (phone != undefined){ elementRef.style.top= (findPosY(phone) + 15) + "px"; elementRef.style.left = (findPosX(phone) - (x - 996)) + "px"; } else { elementRef.style.top = 130 + "px"; elementRef.style.left = 450 + "px"; } } else { elementRef.style.top = 140 + "px"; elementRef.style.left = (x - 386) + "px"; } elementRef.style.visibility="visible"; onLayer = layerName } function hideLayer(layerName){ if (menuActive == 0) { if (IE4){ eval('document.all["'+layerName+'"].style.visibility="hidden"'); } else{ if(document.getElementById){ var elementRef = document.getElementById(layerName); if((elementRef.style)&& (elementRef.style.visibility!=null)){ elementRef.style.visibility = 'hidden'; } } } } } function btnTimer() { timeOn = setTimeout("btnOut()",600) } function btnOut(layerName){ if (menuActive == 0){ hideLayer(onLayer) } } var item; function menuOver(itemName,ocolor){ item=itemName; itemName.style.backgroundColor = ocolor; clearTimeout(timeOn); menuActive = 1 } function menuOut(itemName,ocolor){ if(item) itemName.style.backgroundColor = ocolor; menuActive = 0 timeOn = setTimeout("hideLayer(onLayer)", 100) } function findPosX(obj) { var curleft = -448; if(obj.offsetParent) while(1) { curleft += obj.offsetLeft; if(!obj.offsetParent) break; obj = obj.offsetParent; } else if(obj.x) curleft += obj.x; return curleft; } function findPosY(obj) { var curtop = 0; if(obj.offsetParent) while(1) { curtop += obj.offsetTop; if(!obj.offsetParent) break; obj = obj.offsetParent; } else if(obj.y) curtop += obj.y; return curtop; } var pop = null; function popdown() { if (pop && !pop.closed) pop.close(); } function popup(obj,w,h) { var url = (obj.getAttribute) ? obj.getAttribute('href') : obj.href; if (!url) return true; w = (w) ? w += 20 : 650; // 150px*150px is the default size h = (h) ? h += 25 : 650; var args = 'width='+w+',height='+h+',resizable'; popdown(); pop = window.open(url,'',args); return (pop) ? false : true; }