

heightinit=null;
	setIn=null;
	strName=null;
	
if(window.navigator.appName == "Netscape")
{
	document.write("<link rel='stylesheet' type='text/css' href='/tool/jNetscape.css'>")
}
else
{
	document.write("<link rel='stylesheet' type='text/css' href='/tool/jIE.css'>")	
}

	
	function view(int){
		//document.getElementById(str).style.display="inline";
		document.getElementById("tipTitle"+int).style.cursor="pointer";		
	}
	
	/*function move(str,event){
		document.getElementById(str).style.top=event.clientY+document.body.scrollTop-157+"px";
		document.getElementById(str).style.left=event.clientX+4+"px";
	}
	function noview(str){
		document.getElementById(str).style.display="none";
		
	}*/
	function vheight(str,intHeight,intNum){
	if(setIn==null){
	//alert(document.getElementById("test").offsetHeight);
		if(document.getElementById(str).style.display =="none"){
			//alert(str);
			heightinit=intHeight;
			document.getElementById(str).style.height="1px";			
			setIn=setInterval(jiah,10,str);	
		}else{	
			heightinit=intHeight;
			setIn=setInterval(jianh,10,str);
		}
	}else{}
		function jianh(){		
			//	document.getElementById("data").innerHTML=document.getElementById("test").offsetHeight-3;
				if(document.getElementById(str).offsetHeight>10){
				document.getElementById(str).style.height=document.getElementById(str).offsetHeight-15+"px";					
			}else{
			document.getElementById(str).style.display ="none";
				clearInterval(setIn);
				setIn=null;
				document.getElementById("tipTitle"+intNum).style.backgroundImage="url(/tool/add.gif)";
				//alert(document.getElementById("test").style.height);				
			}
		}
		function jiah(){		
		//alert(heightinit);
		//alert(str);
			document.getElementById(str).style.display ="block";				
			if(document.getElementById(str).offsetHeight<heightinit){
				document.getElementById(str).style.height=document.getElementById(str).offsetHeight+15+"px";					
			}else{
				clearInterval(setIn);
				setIn=null;
				document.getElementById("tipTitle"+intNum).style.backgroundImage="url(/tool/sub.gif)";
				//alert(document.getElementById("test").style.height);				
			}
		}		
	}


function change(num1,num2){
		for(var i=1;i<num2;i++){
			document.getElementById("condiv"+i).style.display = 'none';
			document.getElementById("titlediv"+i).style.borderBottomStyle = "solid";
			document.getElementById("titlediv"+i).style.backgroundImage = "url(/tool/bgo.gif)";
		}	
		document.getElementById("condiv"+num1).style.display = 'inline';	
		document.getElementById("titlediv"+num1).style.borderBottomStyle = "none";
		document.getElementById("titlediv"+num1).style.backgroundImage = "url(/tool/bgi.gif)";
	}
	
		function changeClass(name,line){
		if(window.navigator.appName == "Microsoft Internet Explorer"){
			if(line==1){
				for(i=1;i<5;i++){
						document.getElementById("pro"+i).setAttribute("className","jpproLogo jpunselected");
						document.getElementById("prodes"+i).setAttribute("className","jpudivDes");
					}
					document.getElementById("prodes"+name).setAttribute("className","jpdivDes");
							
				document.getElementById("pro"+name).setAttribute("className","jpproLogo jpselected");
				
			}else{
				for(i=5;i<9;i++){
						document.getElementById("pro"+i).setAttribute("className","jpproLogo jpunselected");
						document.getElementById("prodes"+i).setAttribute("className","jpudivDes");
					}
				document.getElementById("prodes"+name).setAttribute("className","jpdivDes");
				document.getElementById("pro"+name).setAttribute("className","jpproLogo jpselected");
				}
			}else{
				if(line==1){
				for(i=1;i<5;i++){
						document.getElementById("pro"+i).setAttribute("class","jpproLogo jpunselected");
						document.getElementById("prodes"+i).setAttribute("class","jpudivDes");
					}
					document.getElementById("prodes"+name).setAttribute("class","jpdivDes");
							
				document.getElementById("pro"+name).setAttribute("class","jpproLogo jpselected");
				
			}else{
				for(i=5;i<9;i++){
						document.getElementById("pro"+i).setAttribute("class","jpproLogo jpunselected");
						document.getElementById("prodes"+i).setAttribute("class","jpudivDes");
					}
				document.getElementById("prodes"+name).setAttribute("class","jpdivDes");
				document.getElementById("pro"+name).setAttribute("class","jpproLogo jpselected");
				}
				}
		}
		
  function change2(obj,img){
           // alert(obj.innerHTML);
            if(img){
				$("img[id*='"+obj.className+"']").hide();
				$("img[id*='"+obj.innerHTML+"-"+obj.className+"']").fadeIn();
				$("div[id*='"+obj.className+"']").hide();
				$("div[id*='"+obj.innerHTML+"-"+obj.className+"']").fadeIn();
        	}else{
        		$("div[id*='"+obj.className+"']").hide();
            	$("div[id*='"+obj.innerHTML+"-"+obj.className+"']").fadeIn();
			}
        }
function lightbox(url,width,height){
				$("body").append("<div align='center' id='lg' class='lightbox' style='height:"+document.body.scrollHeight+"px'><iframe frameborder='no' src='"+url+"' width='"+width+"px' height='"+height+"px' /><br /><a onclick='closebox()'><img align='center' src='/tool/closelabel.gif' width='66' height='22'></a></div>");
		}
function closebox(){
			document.body.removeChild(document.getElementById("lg"));	}
		$(".ff, .drum, .normal").mouseover(function(){
									//alert(this.className);
			viewTip(this.className);							
		});	
		$(".ff, .drum, .normal").mouseout(function(){
			hideTip(this.className);							
		});	
		$(".slide-details >p > span > a").mouseover(function(){
			//alert(this.innerHTML);
			hideTip("Flash");
			hideTip("Java");
			hideTip("QTVR");
			viewTip(this.innerHTML);
		});
		
function viewTip(divName){
			$("#tip-"+divName).show();
			}
function hideTip(divName){
			$("#tip-"+divName).hide();
			}
			
			
function viewintroAtProindex(obj){
		//alert($(".pro-box").index($("#"+obj)));
		//.eq().fadeOut();
	resetAtProindex();
	ii=$(":input").index(obj)-1;
	//alert(ii);
	for(i=0;i<$(".pro-box").length;i++){
			if(i!=ii){
					$(".pro-box").eq(i).hide(200);
				}
		}
	$(".pro-box").eq(ii).animate( { width:"99%" }, { queue:false, duration:500 } )
			   .animate( { height:"44%" }, { queue:false, duration:500 } );
	$(".pro-box").eq(ii).children("p").fadeIn(1500);
	
}
function resetAtProindex(){
		for(i=0;i<$(".pro-box").length;i++){
			$(".pro-box").eq(i).width(163)
			.height("");
			
			$(".pro-box").eq(i).show();
			$(".pro-box").eq(i).children("p").hide();
			}
	}

			
