var portCount = 20; // width expand and contract value on rollover
var portStop = 20; // width expand and contract value on rollover
var portStopTop = 287; // width of divs
var portStopSteps = 10; //gaite
if(navigator.appName == 'Microsoft Internet Explorer')
{
	portCount  = 70;
	portStopSteps = 5;
}
var im2Use1;
var im2Use2;
var im2Use3;
var im2Use4;
var im2Use5;
var im2Use6;
var cover2Use1;
var cover2Use2;
var cover2Use3;
var cover2Use4;
var cover2Use5;
var cover2Use6;
var unslideim1;
var unslideim2;
var unslideim3;
var unslideim4;
var unslideim5;
var unslideim6;
var unslidediv1;
var unslidediv2;
var unslidediv3;
var unslidediv4;
var unslidediv5;
var unslidediv6;
function portSlide1()/*image showing: close image */
{
	im2Use1 = document.getElementById('portImg1');
	if (parseInt(im2Use1.style.width) > portStop )
	{
		im2Use1.style.width = parseInt(im2Use1.style.width) - portCount + "px";
		setTimeout(portSlide1, portStopSteps);
	}
	else
	{
		im2Use1.style.width = "0px";
		portUnslide1();
	}
}
function portSlide1a() /*text showing: close text*/
{
	cover2Use1 = document.getElementById('cover1');
	if (parseInt(cover2Use1.style.width) > portStop )
	{
		cover2Use1.style.width = parseInt(cover2Use1.style.width) - portCount + "px";
		setTimeout(portSlide1a, portStopSteps);
	}
	else
	{
		cover2Use1.style.width = "0px";
		document.getElementById('portImg1').style.width = '0px';
		portUnslide1a();
	}
}
function portSlide2()
{
	im2Use2 = document.getElementById('portImg2');
	if (parseInt(im2Use2.style.width) > portStop )
	{
		im2Use2.style.width = parseInt(im2Use2.style.width) - portCount + "px";
		setTimeout(portSlide2, portStopSteps);
	}
	else
	{
		im2Use2.style.width = "0px";
		portUnslide2();
	}
}
function portSlide2a()
{
	cover2Use2 = document.getElementById('cover2');
	if (parseInt(cover2Use2.style.width) > portStop )
	{
		cover2Use2.style.width = parseInt(cover2Use2.style.width) - portCount + "px";
		setTimeout(portSlide2a, portStopSteps);
	}
	else
	{
		cover2Use2.style.width = "0px";
		document.getElementById('portImg2').style.width = '0px';
		portUnslide2a();
	}
}
function portSlide3()
{
	im2Use3 = document.getElementById('portImg3');
	if (parseInt(im2Use3.style.width) > portStop )
	{
		im2Use3.style.width = parseInt(im2Use3.style.width) - portCount + "px";
		setTimeout(portSlide3, portStopSteps);
	}
	else
	{
		im2Use3.style.width = "0px";
		portUnslide3();
	}
}
function portSlide3a()
{
	cover2Use3 = document.getElementById('cover3');
	if (parseInt(cover2Use3.style.width) > portStop )
	{
		cover2Use3.style.width = parseInt(cover2Use3.style.width) - portCount + "px";
		setTimeout(portSlide3a, portStopSteps);
	}
	else
	{
		cover2Use3.style.width = "0px";
		document.getElementById('portImg3').style.width = '0px';
		portUnslide3a();
	}
}
function portSlide4()
{
	im2Use4 = document.getElementById('portImg4');
	if (parseInt(im2Use4.style.width) > portStop )
	{
		im2Use4.style.width = parseInt(im2Use4.style.width) - portCount + "px";
		setTimeout(portSlide4, portStopSteps);
	}
	else
	{
		im2Use4.style.width = "0px";
		portUnslide4();
	}
}
function portSlide4a()
{
	cover2Use4 = document.getElementById('cover4');
	if (parseInt(cover2Use4.style.width) > portStop )
	{
		cover2Use4.style.width = parseInt(cover2Use4.style.width) - portCount + "px";
		setTimeout(portSlide4a, portStopSteps);
	}
	else
	{
		cover2Use4.style.width = "0px";
		document.getElementById('portImg4').style.width = '0px';
		portUnslide4a();
	}
}
function portSlide5()
{
	im2Use5 = document.getElementById('portImg5');
	if (parseInt(im2Use5.style.width) > portStop )
	{
		im2Use5.style.width = parseInt(im2Use5.style.width) - portCount + "px";
		setTimeout(portSlide5, portStopSteps);
	}
	else
	{
		im2Use5.style.width = "0px";
		portUnslide5();
	}
}
function portSlide5a()
{
	cover2Use5 = document.getElementById('cover5');
	if (parseInt(cover2Use5.style.width) > portStop )
	{
		cover2Use5.style.width = parseInt(cover2Use5.style.width) - portCount + "px";
		setTimeout(portSlide5a, portStopSteps);
	}
	else
	{
		cover2Use5.style.width = "0px";
		document.getElementById('portImg5').style.width = '0px';
		portUnslide5a();
	}
}
function portSlide6()
{
	im2Use6 = document.getElementById('portImg6');
	if (parseInt(im2Use6.style.width) > portStop )
	{
		im2Use6.style.width = parseInt(im2Use6.style.width) - portCount + "px";
		setTimeout(portSlide6, portStopSteps);
	}
	else
	{
		im2Use6.style.width = "0px";
		portUnslide6();
	}
}
function portSlide6a()
{
	cover2Use6 = document.getElementById('cover6');
	if (parseInt(cover2Use6.style.width) > portStop )
	{
		cover2Use6.style.width = parseInt(cover2Use6.style.width) - portCount + "px";
		setTimeout(portSlide6a, portStopSteps);
	}
	else
	{
		cover2Use6.style.width = "0px";
		document.getElementById('portImg6').style.width = '0px';
		portUnslide6a();
	}
}
//
//	Un- slide section
//
function portUnslide1()/*open text */
{
	cover2Use1 = document.getElementById('cover1');
	if (parseInt(cover2Use1.style.width) < portStopTop )
	{
		cover2Use1.style.width = parseInt(cover2Use1.style.width) + portCount + "px";
		setTimeout(portSlide1, portStopSteps);
	}
	else
	{
		cover2Use1.style.width = portStopTop+'px';
		//document.getElementById('coverHype1').style.zIndex = "400";
		//document.getElementById('portDv1').style.zIndex = "0";
		//document.getElementById('cover1').style.zIndex = "0";
		//document.getElementById('coverHype1').style.backgroundColor = "#234234";
		//document.getElementById('coverUp1').style.zIndex = "399";
		//alert(document.getElementById('coverHype1').style.zIndex);
		//document.getElementById('coverHype1').style.visibility='hidden';
	}
}
function portUnslide1a()/*open image */
{
	//alert(document.getElementById('portImg1').style.width = '0px');
	im2Use1 = document.getElementById('portImg1');
	if (parseInt(im2Use1.style.width) < portStopTop )
	{
		im2Use1.style.width = parseInt(im2Use1.style.width) + portCount + "px";
		setTimeout(portUnslide1a, portStopSteps);
	}
	else
	{
		im2Use1.style.width = portStopTop+'px';
	}
}
function portUnslide2()
{
	cover2Use2 = document.getElementById('cover2');
	if (parseInt(cover2Use2.style.width) < portStopTop )
	{
		cover2Use2.style.width = parseInt(cover2Use2.style.width) + portCount + "px";
		setTimeout(portSlide2, portStopSteps);
	}
	else
	{
		cover2Use2.style.width = portStopTop+'px';
	}
}
function portUnslide2a()
{
	//alert(document.getElementById('portImg2').style.width = '0px');
	im2Use2 = document.getElementById('portImg2');
	if (parseInt(im2Use2.style.width) < portStopTop )
	{
		im2Use2.style.width = parseInt(im2Use2.style.width) + portCount + "px";
		setTimeout(portUnslide2a, portStopSteps);
	}
	else
	{
		im2Use2.style.width = portStopTop+'px';
	}
}
function portUnslide3()
{
	cover2Use3 = document.getElementById('cover3');
	if (parseInt(cover2Use3.style.width) < portStopTop )
	{
		cover2Use3.style.width = parseInt(cover2Use3.style.width) + portCount + "px";
		setTimeout(portSlide3, portStopSteps);
	}
	else
	{
		cover2Use3.style.width = portStopTop+'px';
	}
}
function portUnslide3a()
{
	//alert(document.getElementById('portImg3').style.width = '0px');
	im2Use3 = document.getElementById('portImg3');
	if (parseInt(im2Use3.style.width) < portStopTop )
	{
		im2Use3.style.width = parseInt(im2Use3.style.width) + portCount + "px";
		setTimeout(portUnslide3a, portStopSteps);
	}
	else
	{
		im2Use3.style.width = portStopTop+'px';
	}
}
function portUnslide4()
{
	cover2Use4 = document.getElementById('cover4');
	if (parseInt(cover2Use4.style.width) < portStopTop )
	{
		cover2Use4.style.width = parseInt(cover2Use4.style.width) + portCount + "px";
		setTimeout(portSlide4, portStopSteps);
	}
	else
	{
		cover2Use4.style.width = portStopTop+'px';
	}
}
function portUnslide4a()
{
	//alert(document.getElementById('portImg4').style.width = '0px');
	im2Use4 = document.getElementById('portImg4');
	if (parseInt(im2Use4.style.width) < portStopTop )
	{
		im2Use4.style.width = parseInt(im2Use4.style.width) + portCount + "px";
		setTimeout(portUnslide4a, portStopSteps);
	}
	else
	{
		im2Use4.style.width = portStopTop+'px';
	}
}
function portUnslide5()
{
	cover2Use5 = document.getElementById('cover5');
	if (parseInt(cover2Use5.style.width) < portStopTop )
	{
		cover2Use5.style.width = parseInt(cover2Use5.style.width) + portCount + "px";
		setTimeout(portSlide5, portStopSteps);
	}
	else
	{
		cover2Use5.style.width = portStopTop+'px';
	}
}
function portUnslide5a()
{
	//alert(document.getElementById('portImg5').style.width = '0px');
	im2Use5 = document.getElementById('portImg5');
	if (parseInt(im2Use5.style.width) < portStopTop )
	{
		im2Use5.style.width = parseInt(im2Use5.style.width) + portCount + "px";
		setTimeout(portUnslide5a, portStopSteps);
	}
	else
	{
		im2Use5.style.width = portStopTop+'px';
	}
}
function portUnslide6()
{
	cover2Use6 = document.getElementById('cover6');
	if (parseInt(cover2Use6.style.width) < portStopTop )
	{
		cover2Use6.style.width = parseInt(cover2Use6.style.width) + portCount + "px";
		setTimeout(portSlide6, portStopSteps);
	}
	else
	{
		cover2Use6.style.width = portStopTop+'px';
	}
}
function portUnslide6a()
{
	//alert(document.getElementById('portImg6').style.width = '0px');
	im2Use6 = document.getElementById('portImg6');
	if (parseInt(im2Use6.style.width) < portStopTop )
	{
		im2Use6.style.width = parseInt(im2Use6.style.width) + portCount + "px";
		setTimeout(portUnslide6a, portStopSteps);
	}
	else
	{
		im2Use6.style.width = portStopTop+'px';
	}
}
//
//   entry funcs
//
function portShow1()// expand div 1
{
	var check1a = document.getElementById('portImg1');
	var check1b = document.getElementById('cover1');
	if (parseInt(check1a.style.width) == 0 && parseInt(check1b.style.width) == 287) /* text showing */
	{
		portSlide1a();
	}
	if (parseInt(check1a.style.width) == 287 && parseInt(check1b.style.width) == 0) /* image showing */
	{
		portSlide1();
	}
}
function portShow2()// expand div 2
{
	var check2a = document.getElementById('portImg2');
	var check2b = document.getElementById('cover2');
	if (parseInt(check2a.style.width) == 0 && parseInt(check2b.style.width) == 287)
	{
		portSlide2a();
	}
	if (parseInt(check2a.style.width) == 287 && parseInt(check2b.style.width) == 0)
	{
		portSlide2();
	}
}
function portShow3()// expand div 3
{
	var check3a = document.getElementById('portImg3');
	var check3b = document.getElementById('cover3');
	if (parseInt(check3a.style.width) == 0 && parseInt(check3b.style.width) == 287)
	{
		portSlide3a();
	}
	if (parseInt(check3a.style.width) == 287 && parseInt(check3b.style.width) == 0)
	{
		portSlide3();
	}
}
function portShow4()// expand div 4
{
	var check4a = document.getElementById('portImg4');
	var check4b = document.getElementById('cover4');
	if (parseInt(check4a.style.width) == 0 && parseInt(check4b.style.width) == 287)
	{
		portSlide4a();
	}
	if (parseInt(check4a.style.width) == 287 && parseInt(check4b.style.width) == 0)
	{
		portSlide4();
	}
}
function portShow5()// expand div 5
{
	var check5a = document.getElementById('portImg5');
	var check5b = document.getElementById('cover5');
	if (parseInt(check5a.style.width) == 0 && parseInt(check5b.style.width) == 287)
	{
		portSlide5a();
	}
	if (parseInt(check5a.style.width) == 287 && parseInt(check5b.style.width) == 0)
	{
		portSlide5();
	}
}
function portShow6()// expand div 6
{
	var check6a = document.getElementById('portImg6');
	var check6b = document.getElementById('cover6');
	if (parseInt(check6a.style.width) == 0 && parseInt(check6b.style.width) == 287)
	{
		portSlide6a();
	}
	if (parseInt(check6a.style.width) == 287 && parseInt(check6b.style.width) == 0)
	{
		portSlide6();
	}
}

