if(( (document.location.href=="http://www.vishay.com/") || (document.location.href=="http://www.vishay.com") )&& (navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || navigator.userAgent.match(/Android/) || (navigator.userAgent.match(/BlackBerry/))  || (navigator.userAgent.match( /IEMobile/ ) ) || (navigator.userAgent.match( /Windows CE/ ) ) ) {
   if (document.cookie.indexOf("iphone_redirect=false") == -1){
	//window.location = "http://localhost:8080/mobile/";
	window.location = "http://www.vishay.com/mobile/";
   }	
}else if(( (document.location.href=="http://lxmv65.corp.vishayint.com:7070/") )&& (navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || navigator.userAgent.match(/Android/) || (navigator.userAgent.match(/BlackBerry/))  || (navigator.userAgent.match( /IEMobile/ ) ) || (navigator.userAgent.match( /Windows CE/ ) ) ) {
   if (document.cookie.indexOf("iphone_redirect=false") == -1){
	window.location = "http://lxmv65.corp.vishayint.com:7070/mobile/";
   }	
}
