

	//urlLocation: URL not include domain name
	var urlLocation = window.location.pathname;
	//pagename: file name of current page
	var pagename = urlLocation.substring(urlLocation.lastIndexOf('/') + 1);
	var title = "";

	//select title with file name
	switch (pagename){

	case "":
	  title = "USB007 Homepage"; break;
  case "showcase.htm":
   title="Product Showcase";break;
  case "usbpen-carbon.htm":
   title="Ball Pen - Carbon Fiber";break;
  case "usbpen-leather.htm":
   title="Ball Pen - Leather";break;
  case "miniusb-crystal.htm":
   title="Crystal Series";break;
  case "miniusb-translucent.htm":
   title="Translucent Series";break;
  case "dpf-mini150180.htm":
   title="mini-DPF 150/180";break;
  case "presenter-ir.htm":
   title="Laser presenter";break;
  case "miniusb.htm":
   title="mini-USB2 Flash Drive";break;
  case "minidpf.htm":
   title="mini Digital Photo Frame";break;
  case "usbpen.htm":
   title="Ball Pen Flash Drive";break;
  case "presenter.htm":
   title="USB Wireless Presenter";break;
  case "cupwarmer-saucer.htm":
   title="USB Cup Warmer";break;
  case "microsdreader.htm":
   title="microSD Card Reader";break;
  case "specialstyle.htm":
   title="Special Style Flash Drive";break;
  case "mp3-mars.htm":
   title="MarsCapsule MP3 Player";break;
  case "mp3-saturn502.htm":
   title="Saturn 502 MP3 Player";break;
  case "mp3-md300.htm":
   title="MD300 MP3 Player";break;
  case "mouse-mini.htm":
   title="mini Optical Mouse";break;
  case "mouse-wireless.htm":
   title="Wireless Mouse";break;
  case "usbhub-4port.htm":
   title="USB Hub";break;
  case "miniusb-cnt.htm":
   title="mini-USB2 - C/T Series";break;
  case "miniusb-alslim.htm":
   title="mini-USB2 - ALslim";break;
  case "miniusb-almicro.htm":
   title="mini-USB2 - ALmicro";break;
  case "miniusb-altwister.htm":
   title="mini-USB2 - ALtwister";break;
  case "miniusb-alumark.htm":
   title="mini-USB2 - AluMark";break;
  case "usbpen-executive.htm":
   title="Ball Pen - Executive Series";break;
  case "usbpen-ano.htm":
   title="Ball Pen - ANO Series";break;
  case "usbpen-prestige.htm":
   title="Ball Pen - Prestige Style";break;
  case "services.htm":
   title="Customization Services";break;
  case "logobranding.htm":
   title="Logo Branding Service";break;
  case "oem.htm":
   title="OEM Design Service";break;
  case "datapreload.htm":
   title="Data Preload Service";break;
  case "usbautorun.htm":
   title="USB Content Autorun";break;
  case "usbsecureddisk.htm":
   title="Password-secured Disk";break;
  case "usbsid.htm":
   title="Electronic Serial Number";break;
  case "usbprivatedata.htm":
   title="Private Data Storage";break;
  case "cases/medicalstick.htm":
   title="Case Study - Medicalstick";break;
  case "cases/tqs.htm":
   title="Case Study - TQS";break;
  case "download.htm":
   title="Files & Drivers Download";break;
  case "press.htm":
   title="USB007 In Press";break;
  case "aboutus.htm":
   title="About USB007";break;
  case "tc.htm":
   title="Terms & Conditions";break;
  case "privacy.htm":
   title="Privacy Policy";break;
  case "comments.htm":
   title="Customer Comments";break;
  case "faq.htm":
   title="Questions & Answers";break;
  case "index.htm":
   title="USB007 Home Page";break;
  case "contactus.htm":
   title="Contact Us";break;
  case "inqform.htm":
   title="Sales Inquiry Form";break;
	default:
	  title = "Unknown"; break;

	}

 title = document.title;
	addBreadCrumbs(title, urlLocation);

