
window.onload = function(){ 
	var userAgent = window.navigator.userAgent.toLowerCase();
	var appVersion = window.navigator.appVersion.toLowerCase();

	if (userAgent.indexOf("msie") > -1) {
		if (appVersion.indexOf("msie 6.0") > -1) {
			document.newp2.location.href = "http://www.k-products.jp/new-k-products-kari/jqIE6.php";
		}
		else if (appVersion.indexOf("msie 7.0") > -1) {
			document.newp2.location.href = "http://www.k-products.jp/new-k-products-kari/jq.php";
		}
		else if (appVersion.indexOf("msie 8.0") > -1) {
			document.newp2.location.href = "http://www.k-products.jp/new-k-products-kari/jq.php";
		}
		else if (appVersion.indexOf("msie 9.0") > -1) {
			document.newp2.location.href = "http://www.k-products.jp/new-k-products-kari/jq.php";
		}
		else {
			document.newp2.location.href = "http://www.k-products.jp/new-k-products-kari/jq.php";
		}
	}
	else if (userAgent.indexOf("firefox") > -1) {
		newp2.location.href = "http://www.k-products.jp/new-k-products-kari/jq.php";
	}
	else if (userAgent.indexOf("opera") > -1) {
		document.newp2.location.href = "http://www.k-products.jp/new-k-products-kari/jq.php";
	}
	else if (userAgent.indexOf("chrome") > -1) {
		document.newp2.location.href = "http://www.k-products.jp/new-k-products-kari/jq.php";
	}
	else if (userAgent.indexOf("safari") > -1) {
		document.newp2.location.href = "http://www.k-products.jp/new-k-products-kari/jq.php";
	}
	else {
		newp2.location.href = "http://www.k-products.jp/new-k-products-kari/jq.php";
	}

}


function userAgt(vVal){
	var userAgent = window.navigator.userAgent.toLowerCase();
	var appVersion = window.navigator.appVersion.toLowerCase();

	if (userAgent.indexOf("msie") > -1) {
		if (appVersion.indexOf("msie 6.0") > -1) {
			document.newp2.location.href = "http://www.k-products.jp/new-k-products-kari/jqIE6_" + vVal + ".php";
		}
		else if (appVersion.indexOf("msie 7.0") > -1) {
			document.newp2.location.href = "http://www.k-products.jp/new-k-products-kari/jq" + vVal + ".php";
		}
		else if (appVersion.indexOf("msie 8.0") > -1) {
			document.newp2.location.href = "http://www.k-products.jp/new-k-products-kari/jq" + vVal + ".php";
		}
		else if (appVersion.indexOf("msie 9.0") > -1) {
			document.newp2.location.href = "http://www.k-products.jp/new-k-products-kari/jq" + vVal + ".php";
		}
		else {
			document.newp2.location.href = "http://www.k-products.jp/new-k-products-kari/jq" + vVal + ".php";
		}
	}
	else if (userAgent.indexOf("firefox") > -1) {
		newp2.location.href = "http://www.k-products.jp/new-k-products-kari/jq" + vVal + ".php";
	}
	else if (userAgent.indexOf("opera") > -1) {
		document.newp2.location.href = "http://www.k-products.jp/new-k-products-kari/jq" + vVal + ".php";
	}
	else if (userAgent.indexOf("chrome") > -1) {
		document.newp2.location.href = "http://www.k-products.jp/new-k-products-kari/jq" + vVal + ".php";
	}
	else if (userAgent.indexOf("safari") > -1) {
		document.newp2.location.href = "http://www.k-products.jp/new-k-products-kari/jq" + vVal + ".php";
	}
	else {
		newp2.location.href = "http://www.k-products.jp/new-k-products-kari/jq" + vVal + ".php";
	}
}

function imgChange(vVal){

	if(vVal == 1){
		document.getElementById("s1").src = "http://www.k-products.jp/image/event-shot2.jpg";
		document.getElementById("s2").src = "http://www.k-products.jp/image/product-shot.jpg";
		document.getElementById("s3").src = "http://www.k-products.jp/image/other-shot.jpg";
	}

	if(vVal == 2){
		document.getElementById("s1").src = "http://www.k-products.jp/image/event-shot.jpg";
		document.getElementById("s2").src = "http://www.k-products.jp/image/product-shot2.jpg";
		document.getElementById("s3").src = "http://www.k-products.jp/image/other-shot.jpg";
	}

	if(vVal == 3){
		document.getElementById("s1").src = "http://www.k-products.jp/image/event-shot.jpg";
		document.getElementById("s2").src = "http://www.k-products.jp/image/product-shot.jpg";
		document.getElementById("s3").src = "http://www.k-products.jp/image/other-shot2.jpg";
	}
}

function dummy(){

}
