// JavaScript Document
function loadHtml(filename){
	//document.getElementById('content_content').innerHTML = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loading... ";
	$("#content_content").text("Loading...");
	$("#content_content").load(filename); 
}

function cName(words){
	document.getElementById('class_name_area').innerHTML = words;
	}
	
function slToggle(divid){
	$("#"+divid).slideToggle("fast");
}
// 滑动开关

function selScreenWidth(){
	var screenWidth = window.screen.width;
	if(screenWidth <= 1024){
	//alert("<=1024");
	cNewb();
	document.getElementById('content_change').setAttribute('class','content_words_slim');
	}else{
	//alert(">1024");
	document.getElementById('content_change').setAttribute('class','content_words');
	}
}

function popProduct(divid){
			$("#"+divid).fancybox({
				'width'				: '55%',
				'height'			: '75%',
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
}

function cNewb(){
	document.getElementById('newb').setAttribute('src','images/news_banner_short.jpg');
}
