//checking browsing devices in "index.html"
function appleCheck() {
	if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) ||(navigator.userAgent.match(/iPad/i))|| (navigator.userAgent.match(/Ideos/i)))
	{
	window.open("index_apple.html","_self");
	}
}

// buttons' events for "index_apple.html"
buttonLink1="about_us.html";
buttonLink2="our_business.html";
buttonLink3="our_products.html";
buttonLink4="customer_services.html";
buttonLink5="contact_us.html";
function hoveringOn(buttonName) {
	document.getElementById(buttonName).width=110;
	document.getElementById(buttonName).height=123;
	document.getElementById(buttonName).style.opacity=0.6;
	document.getElementById(buttonName).filters.alpha.opacity=60;
}
function hoveringOff(buttonName) {
	document.getElementById(buttonName).width=100;
	document.getElementById(buttonName).height=113;
	document.getElementById(buttonName).style.opacity=1;
	document.getElementById(buttonName).filters.alpha.opacity=100;
}
function buttonClick (buttonName) {
	var webSiteIndex = "buttonLink"+buttonName.slice(6);

	switch (webSiteIndex) {
		case "buttonLink1":
		window.open(buttonLink1,"_self");
		break;
	    case "buttonLink2":
		window.open(buttonLink2,"_self");
		break;
	    case "buttonLink3":
		window.open(buttonLink3,"_self");
		break;
	    case "buttonLink4":
		window.open(buttonLink4,"_self");
		break;		
	    case "buttonLink5":
		window.open(buttonLink5,"_self");
			
	}
}
//Event for clicking "Terms of Use" in all pages

function termsPopup() {
	window.open("terms.html","mywindow","status=1,width=900,height=600,resizable=1,scrollbars=1");
}
//Event for clicking "Privacy and Security" in all pages
function privacyPopup(){
	window.open("privacy.html","mywindow","status=1,width=900,height=600,resizable=1,scrollbars=1");
}

