//var ROOTURL="http://localhost/COM/MAKE/evolutiongroup/";
var ROOTURL="http://www.evolutiongroup.co.uk/";

function roll_over(image_id,change_to) {
   var this_img=document.getElementById(image_id);
   this_img.src=change_to;
}
function post_form($form_id){document.getElementById($form_id).submit();}
function add_event($object,$type,$fn){ 
   if($object.attachEvent){ 
      $object['e'+$type+$fn] = $fn; 
      $object[$type+$fn] = function(){$object['e'+$type+$fn]( window.event );} 
      $object.attachEvent( 'on'+$type, $object[$type+$fn] ); 
   }else{
      $object.addEventListener($type,$fn,false); 
   }
}
function remove_event($object,$type,$fn){
   if($object.detachEvent){
      $object.detachEvent('on'+$type,$object[$type+$fn]);
      $object[$type+$fn]=null;
   }else{
      $object.removeEventListener($type,$fn,false);
   }
} 
function elements_with_class($elem,$tag_name,$class_name){
   var $arr_elems=($tag_name=="*" && document.all)? document.all : $elem.getElementsByTagName($tag_name);
   var $found = new Array();
   for($i=0;$i<$arr_elems.length;$i++){  
      if($arr_elems[$i].className==$class_name) $found.push($arr_elems[$i]);
   }
   return ($found);
}
function http_location($filename){
   window.location=ROOTURL+$filename;
}

function open_window($file_path,$width,$height,$title) {
popup = window.open($file_path,$title,'scrollbars=yes,menubar=no,height='+$height+',width='+$width+',resizable=no,toolbar=no,location=no,status=no');
}

function company_info($num){
$info=new Array();
$info[0]='Hover over the Evolution Group companies above to view description here.';
$info[1]='New and used vehicles for sale including commercial and plant.';
$info[2]='Prestige and super car hire company.';
$info[3]='Personal injury consultancy.';
$info[4]='Lifestyle and events management company.';
$info[5]='Fleet management and asset tracking - WEBSITE UNDER CONSTRUCTION.';
$info[6]='Business info to IT maintenance - WEBSITE UNDER CONSTRUCTION.';
$info[7]='Property development company - WEBSITE UNDER CONSTRUCTION.';
$info[8]='Sales and leasing of prestige and hyper-performance cars, yachts and aircraft.';
$info[9]='Estate agents and property lettings.';
$info[10]='Website design and ecommerce specialists.';
document.getElementById('description1').firstChild.nodeValue=$info[$num];
$ipanel=document.getElementById('infopanel');
if($num==0){
$ipanel.style.backgroundColor='transparent';
$ipanel.style.color='#003399';
}else{
$ipanel.style.backgroundColor='#003399';
$ipanel.style.color='#FFFFFF';
}
}