// JavaScript Document
var selectedContact = -1;
var selectedLocation = -1;
function getSalesContact(idx){
var contact = [{name:'Brent Gross',region:'Americas',telephone:'+1 216 486 6100',url:'',map:'1',email:'bgross@goochandhousego.com'},{name:'Martin Cheng',region:'Asia Pacific',telephone:' + 852 63486199',url:'',map:'3',email:'mcheng@goochandhousego.com'},{name:'Graham Catley',region:'Europe, Middle East & Africa',telephone:'+44 (0)1803 407 893',url:'',map:'2',email:'gcatley@goochandhousego.com'}];
var html = '
' + contact[idx].region + '
' + contact[idx].name + '';
html = html + '
Telephone: ' + contact[idx].telephone + '
Email: ' + contact[idx].email + '
';
$('salescontactinfo').innerHTML = html;
$('globe').src = '/images/globe/ghglobe' + contact[idx].map + '.png';
}
function selectContact(idx){
selectedContact = idx;
document.__getElementsByClassName("lnkcontact").each(function(lnk){lnk.style.color = '#ffffff';});
$('salescontact_' + idx).style.color = '#0083d7';
}
function mouseoutContact(){
if(selectedContact > -1) getSalesContact(selectedContact)
}
function getLocation(idx2){
var location = [{title:'Ilminster, UK',spec:'',address:'Gooch & Housego
Dowlish Ford
Ilminster
Somerset, UK
TA19 0PF',map:'',url:'http://maps.google.com/maps?f=q&hl=en&geocode=&q=TA19+0PF&ie=UTF8&ll=50.916563,-2.914124&spn=0.022213,0.053902&z=15&iwloc=addr',telephone:'+44 (0) 1460 256440',x:'80',y:'180',fulldetails:'1',email:'sales@goochandhousego.com'},{title:'Cleveland, Ohio, USA',spec:'',address:'676 Alpha Drive
Highland Heights
Ohio 44143
USA',map:'',url:'',telephone:'',x:'100',y:'75',fulldetails:'1',email:'sales@goochandhousego.com'},{title:'Hong Kong',spec:'',address:'',map:'',url:'',telephone:'',x:'125',y:'335',fulldetails:'1',email:'sales@goochandhousego.com'},{title:'Melbourne, Florida, USA',spec:'',address:'4005 Opportunity Drive
Melbourne, Florida USA
32935',map:'',url:'',telephone:'',x:'120',y:'70',fulldetails:'1',email:'sales@goochandhousego.com'},{title:'Norderstedt, Germany',spec:'',address:'Stettiner Str. 7
D-22850 Norderstedt
Germany',map:'',url:'',telephone:'',x:'80',y:'195',fulldetails:'1',email:'sales@goochandhousego.com'},{title:'San Jose, California, USA',spec:'',address:'',map:'',url:'',telephone:'',x:'100',y:'25',fulldetails:'1',email:'sales@goochandhousego.com'},{title:'Torquay UK',spec:'',address:'Broomhill Way
Torquay
Devon, UK
TQ2 7QL',map:'',url:'',telephone:'',x:'83',y:'178',fulldetails:'1',email:'sales@goochandhousego.com'}];
var pre = '';
if(idx2 == 0) pre = 'Head Office, ';
var html2 = '' + pre + location[idx2].title + '
';
if(location[idx2].spec != '') html2 = html2 + '
' + location[idx2].spec + '
';
if(location[idx2].fulldetails == '1') html2 = html2 + '
' + location[idx2].address + '
';
if(location[idx2].email != '' && location[idx2].fulldetails == '1') html2 = html2 + 'Email:
' + location[idx2].email + '';
if(location[idx2].fulldetails == '1' && location[idx2].telephone != '') html2 = html2 + 'Telephone: ' + location[idx2].telephone + '';
if(location[idx2].url != '') html2 = html2 + '
Click here for a location map';
html2 = html2 + '
';
$('locationinfo').innerHTML = html2;
if(parseInt(location[idx2].x) > 0 && parseInt(location[idx2].y) > 0){
$('pulse').style.display = 'block';
movePulse(location[idx2].x, location[idx2].y);
}else{
$('pulse').style.display = 'none';
}
}
function selectLocation(idx2){
selectedLocation = idx2;
document.__getElementsByClassName("lnklocation").each(function(lnk){lnk.style.color = '#ffffff';});
$('location_' + idx2).style.color = '#0083d7';
}
function mouseoutLocation(){
if(selectedLocation > -1) getLocation(selectedLocation)
}