function PreloadImages() {
	var aImages = new Array(
		 'media/menu/btn-menu-home-h.png'
		,'media/menu/btn-menu-faqs-h.png'
		,'media/menu/btn-menu-about-us-h.png'
		,'media/menu/btn-menu-pricing-h.png'
		,'media/menu/btn-menu-privacy-policy-h.png'
		,'media/menu/btn-menu-terms-of-use-h.png'
		,'media/menu/btn-menu-contact-us-h.png'
		,'media/menu/btn-menu-vinyl-instal-h.png'
		,'media/btn-flash-top-h.png'
		,'media/btn-flash-bottom-h.png'
		,'media/di-solution.png');
	widthHack();
	for(var i=0; i < aImages.length; i++) {
		var img = new Image();
		img.src = aImages[i];
	}
}

function widthHack() {
	var outer = document.getElementById('outer');
	var footer = document.getElementById('footer');
	if (document.body.offsetWidth < 896){
		outer.style.left = '0px';
		outer.style.marginLeft = '0px';
		footer.style.left = '0px';
		footer.style.marginLeft = '10px';
	}
	else{
		outer.style.left = document.body.offsetWidth/2-448 + 'px';
		outer.style.marginLeft = '0px';
		footer.style.left = '50%';
		footer.style.marginLeft = '-438px';
	}
}

function setUpload(){
	var uploading = document.getElementById('uploading');
	uploading.style.visibility = 'visible';
}

function confirmDelete(id){
	if (window.confirm("Are you sure you want delete this image?")){
		document.deleteImage.id.value = id;
		document.deleteImage.submit();
	}
}

function confirmDeleteOrder(id){
	if (window.confirm("Are you sure you want to delete this item from your cart?")){
		document.deleteOrder.id.value = id;
		document.deleteOrder.submit();
	}
}