//AV-JQUERY
//頁簽滑動區塊效果
function tab(areas,item,rows,get_name,tab_style){
	for(var i=1;i<=rows;i++){	
		$("#tab_"+areas+i).removeClass();
	}
	switch (tab_style){
	case "style1":
			if(item == rows){//如果是最後一個頁簽則要設尾線
				$("#tab_"+areas+item).addClass("here tag2_last");
			}else{
				$("#tab_"+areas+item).addClass("here");
				$("#tab_"+areas+rows).addClass("tag2_last");
			}
			break;
	case "style2":		
	case "style3":
				$("#tab_"+areas+item).addClass("here");
	}	
	if(tab_style != "style3"){
	    $.ajax({ url: get_name,type:"get", dataType:"html",
	             success:function(msg){ 
	               $("#show_pages_"+areas).html(msg);
	             } 
	    });
	}
}

//mv試看
function wopen(url,name,width,height,k,url2) {
		LeftPosition = (screen.width) ? (screen.width-width)/2 : 0;
		TopPosition  = (screen.availHeight) ? (screen.availHeight-height)/2 : 0 ;
		window.open(url,name,'top='+ TopPosition+',left='+ LeftPosition+ ',width='+width+',height='+height+',resizable=1,scrollbars='+k+',status=0');
}                           
