var ie4=document.all&&!document.getElementById
var ns4=document.layers
var isIE = document.all ? true : false;
var rotateDelay=5000
var janetGalleryRotateN=0
function janetGalleryRotate(){
	var browserName=navigator.appName;
	if (browserName=="Microsoft Internet Explorer") {
		document.getElementById("janetGallery_Rotate").style.filter="blendTrans(duration=2)";
		document.getElementById("janetGallery_Rotate").style.filter="blendTrans(duration=crossFadeDuration)";
		document.getElementById("janetGallery_Rotate").filters.blendTrans.Apply();
		document.getElementById("janetGallery_Rotate").filters.blendTrans.Play();
	}
	if (janetGalleryRotateN>=arJanetGalleryRotate.length){
		janetGalleryRotateN=0;
	}
	if (document.getElementById){
		document.getElementById("janetGallery_Rotate").innerHTML="<span>" + arJanetGalleryRotate[janetGalleryRotateN]+ "</span>";
	}
		janetGalleryRotateN++
		setTimeout("janetGalleryRotate()",rotateDelay)
}
//news scroll
function janetGallery_Scroll(item)
{
	var it = document.getElementById(item);
	it.style.top=it.style.top.replace(/px|pt,*\)*/g,"")-1;
	if((parseInt(it.style.top) + parseInt(it.offsetHeight))<=0)
	{
		it.style.top=it.parentNode.offsetHeight;
	}
}