//Preloads rollover images
function doPreload()
{

   var the_images = new Array('team-building/on-about-airsoft-uk.gif','team-building/on-about-airsoft.gif','team-building/on-airsoft-contact.gif','team-building/on-airsoft-day-prices.gif','team-building/on-airsoft-gallery.gif','team-building/on-airsoft-home.gif','team-building/on-airsoft-kit.gif','team-building/on-airsoft-prices.gif','team-building/on-military-contact.gif','on-military-gallery.gif','on-military-kit.gif','team-building/on-military-shield.gif','team-building/on-military-team-building.gif','on-team-building-events.gif','team-building/on-airsoft-rifle-range.png');
   preloadImages(the_images);
}

function preloadImages(the_images_array) {

   for(var loop = 0; loop < the_images_array.length; loop++)

   {
 	var an_image = new Image();
	an_image.src = the_images_array[loop];
   }
}


//Defines bookmark/favourite details and messeges for different browsers

var bookmarkurl="http://www.uk-airsoft.com/";
var bookmarktitle="Bringing you the very best in miltary simulated games and team building. www.uk-airsoft.com";

function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle);

else if (window.sidebar) 
        alert('This feature only works for Internet Explorer, use Control+D to bookmark Military Outdoor Adventure');
        
else if( window.opera && window.print ) 
        alert('This feature only works for Internet Explorer, use Control+T to bookmark Military Outdoor Adventure');
}



/*
Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

var win = null;
function NewWindow(mypage,myname,w,h,scroll,resize){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable='+resize+' '
win = window.open(mypage,myname,settings)
}


//the end
