// JavaScript Document
showtime = 0;
function changtab(id,count,clear){
	for(i=1;i<=count;i++){
		document.getElementById('tab_'+i).className='tab_nomal';
	}
	document.getElementById('tab_'+id).className='tab_select';
	valueHtml = document.getElementById('content_'+id).innerHTML;
	//alert(removeHTMLTags(valueHtml));
	document.getElementById('tab_content').innerHTML = valueHtml;
	if(clear==1) clearInterval(showtime);
}
function tabrelate(id,count){
	for(i=1;i<=count;i++){
		try{
			document.getElementById('tabbc'+i).className='tabbc';
			document.getElementById('tabbc_'+i).style.display='none';
		}
		catch(e){}			
	}
	document.getElementById('tabbc'+id).className='tabbcs';
	document.getElementById('tabbc_'+id).style.display='block';
}
function changecontent(lengarray,index){
	for(i=0;i<lengarray;i++){
		try{
			document.getElementById('divshow'+i).style.display='none';
		}
		catch(e){}			
	}
	document.getElementById('divshow'+index).style.display='block';
}
function changetabhome(lengarray,icat,index){
	for(i=0;i<lengarray;i++){
		try{
			document.getElementById('divshow'+icat+'_'+i).style.display='none';
		}
		catch(e){}			
	}
	document.getElementById('divshow'+icat+'_'+index).style.display='block';
}
function winpopup(urlx,param,twidth,theight)
{
	var strurl= urlx + '?param=' + param;
	var tposx= (screen.width- twidth)/2
	var tposy= (screen.height- theight)/2;

	var newWin=window.open(strurl,"moi","toolbar=no,width="+ twidth+",height="+ theight+ ",directories=no,status=no,scrollbars=yes,resizable=no, menubar=no")
	newWin.moveTo(tposx,tposy);
	newWin.focus();
}
function checkcartone(id){
	winpopup('/en/addtocart.php','&iData=' + id,'920','600');
}
function makeTall(){ document.getElementById('languages').style.height = '200px'; }
function makeShort(){ document.getElementById('languages').style.height = '35px'; }




