// JavaScript Document
//-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
var img1 = new Image;
img1.src = "images/others/istringsp.gif";
var img2 = new Image;
img2.src = "images/others/igripsp.gif";
var img3 = new Image;
img3.src = "images/others/istringingsp.gif";
var img4 = new Image;
img4.src = "images/others/iballsp.gif";
var img5 = new Image;
img5.src = "images/others/ibagsp.gif";
var img6 = new Image;
img6.src = "images/others/iclothesp.gif";
//-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function di(oImg) {
	//oImg.style.filter = "progid:DXImageTransform.Microsoft.RandomDissolve(duration=1.0)";
	oImg.style.filter = "progid:DXImageTransform.Microsoft.gradientWipe(GradientSize=1.0, wipeStyle=0, motion='forward')";
	oImg.filters[0].Apply();
	oImg.style.visibility = "visible"; 
	oImg.filters[0].Play();
	
	oImg.onmouseenter = function() {
		this.style.filter = "progid:DXImageTransform.Microsoft.gradientWipe(GradientSize=1.0, wipeStyle=0, motion='forward')";
		this.style.visibility = "hidden"; 
		this.filters[0].Apply();
		this.style.visibility = "visible"; 
		this.filters[0].Play();
	}
}
//-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function makeLinks() {
	var oDivs = document.getElementsByTagName("DIV");
	
	for(var i = 0; i < oDivs.length; i++) {
		var oDiv = oDivs[i];
		if(oDiv.getAttribute("link")) {
				if(document.all) {
					oDiv.onmouseenter = function() {
						this.style.filter = "progid:DXImageTransform.Microsoft.gradientWipe(GradientSize=1.0, wipeStyle=0, motion='forward')";
						this.filters(0).Apply();
						this.style.backgroundImage = this.style.backgroundImage.replace(/\.([^\.]+)$/, "p.$1");
						this.filters(0).Play();
					}
					oDiv.onmouseleave = function() {
						this.style.filter = "progid:DXImageTransform.Microsoft.gradientWipe(GradientSize=1.0, wipeStyle=0, motion='reverse')";
						this.filters(0).Apply();
						this.style.backgroundImage = this.style.backgroundImage.replace(/p\.([^\.]+)$/, ".$1");
						this.filters(0).Play();
					}
				} else {
					oDiv.onmouseover = function() {
						this.style.backgroundImage = this.style.backgroundImage.replace(/\.([^\.]+)$/, "p.$1");
					}
					oDiv.onmouseout = function() {
						this.style.backgroundImage = this.style.backgroundImage.replace(/p\.([^\.]+)$/, ".$1");
					}
				}
		}
	}
}
//-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function makeOver() {
	switchTests();
	var oAnchors = document.anchors;
	
	for(var i = 0; i < oAnchors.length; i++) {
		var oAnch = oAnchors[i];
		
		if(oAnch.name == "yes") {
			if(document.all) {
				oAnch.onmousemove = function() {
					if(this.innerHTML != this.innerText) {
						this.firstChild.style.position = "absolute";
						this.firstChild.style.display = "block";
						this.firstChild.style.left = ((event.clientX + this.firstChild.clientWidth + 42 - document.body.scrollLeft) > document.body.offsetWidth) ? (document.body.offsetWidth - this.offsetLeft - 12 - this.firstChild.offsetWidth + document.body.scrollLeft) : (event.x - this.clientLeft + 21);
						this.firstChild.style.top = (event.clientY < this.firstChild.clientHeight + 14) ? -(this.offsetTop - document.body.scrollTop + 63) : (event.y - this.clientTop - this.firstChild.clientHeight - 14);
					}
				}
			} else {
				oAnch.setAttribute("onmousemove", "show(this, event)");
			}
			oAnch.onmouseout = function() {
				if(this.innerHTML != this.innerText) {
					this.firstChild.style.display = "none";
				}
			}
		}
	}
}
//-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function show(oObj, oEvt) {
	if(oObj.innerHTML != oObj.innerText) {
		oObj.firstChild.style.position = "absolute";
		oObj.firstChild.style.display = "block";
		oObj.firstChild.style.left = ((oEvt.clientX + oObj.firstChild.clientWidth + 26) > document.body.offsetWidth) ? (document.body.offsetWidth - oObj.parentNode.offsetLeft - oObj.offsetLeft - oObj.firstChild.clientWidth + document.body.scrollLeft - 5) : (oEvt.clientX - oObj.parentNode.offsetLeft - oObj.offsetLeft + 21 + document.body.scrollLeft);
		oObj.firstChild.style.top = (oEvt.clientY < oObj.firstChild.clientHeight + 18) ? -(oObj.offsetTop - document.body.scrollTop + 62 + oObj.parentNode.offsetTop) : (oEvt.clientY - oObj.parentNode.offsetTop - oObj.offsetTop - oObj.firstChild.clientHeight - 80 + document.body.scrollTop);
	}
}
//-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
var sw_tests;

function switchTests() {
	var Test1 = document.getElementById("test1");
	var Test2 = document.getElementById("test2");
	var Test3 = document.getElementById("test3");
	var Test4 = document.getElementById("test4");
	var Test5 = document.getElementById("test5");
	var Test6 = document.getElementById("test6");

	if(Test1.style.display == "none") {
		Test4.style.display = "none";
		Test5.style.display = "none";
		Test6.style.display = "none";

		Test1.style.display = "inline";
		Test2.style.display = "inline";
		Test3.style.display = "inline";
	} else {
		Test1.style.display = "none";
		Test2.style.display = "none";
		Test3.style.display = "none";
		
		Test4.style.display = "inline";
		Test5.style.display = "inline";
		Test6.style.display = "inline";
	}
	
	sw_tests = setTimeout("switchTests()", 2000);
}
