/***********************************************
* preload any rollover background images
***********************************************/
function checkInput(e){
	var feild = e.replace(":","");
	var id = "con"+feild;
	var myTextField = document.getElementById(id);
	if(myTextField.value == ""){
		myTextField.value = e;
		
	}	else if (myTextField.value == e){
		myTextField.value = e;
		
		}else {
			//more error checking to come
		
	}	
}
function focusInput(e){
	var feild = e.replace(":","");
	var id = "con"+feild;
	var myTextField = document.getElementById(id);
	if (myTextField.value == e){
		myTextField.value = "";
		
		}else {
			//more error checking to come
		
	}	
}

var preloaded = new Array(); 
function preload_images() { 
    for (var i = 0; i < arguments.length; i++){
        preloaded[i] = document.createElement('img');
        preloaded[i].setAttribute('src',arguments[i]);
    };
};
preload_images(
	'images/contact_submit_button_upgif',
	'images/contact_submit_button_pressed.gif',
	'images/fastlink_extraction_rollover.png',
	'images/fastlink_p2p_rollover.png',
	'images/fastlink_indexing_rollover.png',
	'images/submenu_up.gif',
	'images/submenu_pressed.gif',
	'images/bg_header_menu_hover.png',
	'images/subheader_contact.png',
	'images/subheader_index_creating.gif',
	'images/subheader_index_creating.png',
	'images/subheader_products_extraction.png',
	'images/subheader_products_intuidisk.png',
	'images/subheader_products_ixp2p.png',
	'images/subheader_products_products.png',
	'images/subheader_technologies_extraction.png',
	'images/subheader_technologies_indexing.png',
	'images/subheader_technologies_p2p.png',
	'images/subheader_technologies_technologies.png',
	'images/subheader_vision_aboutceo.png',
	'images/subheader_vision_investors.png',
	'images/subheader_vision_opportunities.png',
	'images/subheader_vision_partnerships.png',
	'images/subheader_vision_vision.png'
);

function switchBg(){
  document.getElementById['header'].style.background= url('images/bg_header_menu_hover.png');
}
