var delay = 5000;
var ie4=document.all&&!document.getElementById;
var DOM2=document.getElementById;
var index=0;

//function to change content
function changecontent(lengarray){
	if(index>=lengarray) index =0;
	index++;
	for(i=1;i<=lengarray;i++){
		try{
			document.getElementById('content_'+i).style.display='none';
		}
		catch(e){}			
	}
	document.getElementById('content_'+index).style.display='block';
	setTimeout("changecontent("+lengarray+")", delay);
}
function ShowFlash_swf(FlashIDName, FlashFileName, FlashWidth, FlashHeight, DNSSetting, WMODESetting, QSetting, FlashAlign)
{
	document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write('CODEBASE="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=8,0,0,0" ');
	document.write(' ID="'+FlashIDName+'" WIDTH="' + FlashWidth + '" HEIGHT="' + FlashHeight + '" ALIGN="'+FlashAlign+'">');
	document.write('<PARAM NAME="movie" VALUE="'+ FlashFileName +'">');
	document.write('<PARAM NAME="quality" VALUE="'+QSetting+'">');
	//document.write('<PARAM NAME="bgcolor" VALUE="'+FlashBGColor+'">');  BGCOLOR="'+FlashBGColor+'"
	document.write('<PARAM NAME="wmode" VALUE="'+WMODESetting+'">');
	document.write('<PARAM NAME="allowScriptAccess" VALUE="'+DNSSetting+'">');
	document.write('<EMBED SRC="'+ FlashFileName +'"  NAME="'+FlashIDName+'"');
	document.write(' WIDTH="' + FlashWidth + '" HEIGHT="' + FlashHeight + '" QUALITY="'+QSetting+'" ');
	document.write(' ALLOWSCRIPTACCESS="'+DNSSetting+'" ALIGN="'+FlashAlign+'" WMODE="'+WMODESetting+'" TYPE="application/x-shockwave-flash" ');
	document.write(' PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" >');
	document.write('</EMBED>');
	document.write('</OBJECT>');
}
// JavaScript Document
function tabdetail(id,count){
	for(i=1;i<=count;i++){
		try{
			document.getElementById('detail_'+i).className='tab_nomal';
			document.getElementById('description_'+i).style.display='none';
		}
		catch(e){}			
	}
	document.getElementById('detail_'+id).className='tab_select';
	document.getElementById('description_'+id).style.display='block';
}
function tabrelate(id,count){
	for(i=1;i<=count;i++){
		try{
			document.getElementById('relate_'+i).className='tab_nomal';
			document.getElementById('desrelate_'+i).style.display='none';
		}
		catch(e){}			
	}
	document.getElementById('relate_'+id).className='tab_select';
	document.getElementById('desrelate_'+id).style.display='block';
}
function pic_show(show_pic){
	//document.all.load_view.style.display='inline';
	if(navigator.appName=="Microsoft Internet Explorer")
    {
		document.getElementById('pictureproduct').style.filter=rand_filter();
		document.getElementById('pictureproduct').filters[0].apply();
		document.getElementById('pictureproduct').src =show_pic;
		document.getElementById('pictureproduct').filters[0].play();
	 }else{
		document.getElementById("pictureproduct").src =show_pic; 
	 }
}
//move product to left
 function rand_filter(){
		var Max_Ind=41;
		var str_filter ='';
		i=Math.floor(Math.random()*Max_Ind);
		//=42;
	  switch(i){	
		case 1:
			//box in
			str_filter='progid:DXImageTransform.Microsoft.Iris(irisStyle=SQUARE,motion=in,enabled=0,Duration=0.60)';			
		break;
		case 2:
			//box out
			str_filter='progid:DXImageTransform.Microsoft.Iris(irisStyle=SQUARE,motion=out,enabled=0,Duration=0.60)';			
		break;
		case 3:
			//circle in
			str_filter='progid:DXImageTransform.Microsoft.Iris(irisStyle=CIRCLE,motion=in,enabled=0,Duration=0.60)';			
		break;
		case 4:
			//circle out
			str_filter='progid:DXImageTransform.Microsoft.Iris(irisStyle=CIRCLE,motion=out,enabled=0,Duration=0.60)';
		break;
		case 5:
			//cross in
			str_filter='progid:DXImageTransform.Microsoft.Iris(irisStyle=cross,motion=in,enabled=0,Duration=0.60)';
		break;
		case 6:
			//cross out
			str_filter='progid:DXImageTransform.Microsoft.Iris(irisStyle=cross,motion=out,enabled=0,Duration=0.60)';			
		break;
		case 7:
			//plus in
			str_filter='progid:DXImageTransform.Microsoft.Iris(irisStyle=plus,motion=in,enabled=0,Duration=0.60)';
		break;
		case 8:
			//plus out
			str_filter='progid:DXImageTransform.Microsoft.Iris(irisStyle=plus,motion=out,enabled=0,Duration=0.60)';
		break;
		case 9:
			//start in
			str_filter='progid:DXImageTransform.Microsoft.Iris(irisStyle=star,motion=in,enabled=0,Duration=0.60)';
		break;
		case 10:
			//start out
			str_filter='progid:DXImageTransform.Microsoft.Iris(irisStyle=star,motion=out,enabled=0,Duration=0.60)';
		break;
		case 11:
			//diamond in
			str_filter='progid:DXImageTransform.Microsoft.Iris(irisStyle=diamond,motion=in,enabled=0,Duration=0.60)';
		break;
		case 12:
			//diamond out
			str_filter='progid:DXImageTransform.Microsoft.Iris(irisStyle=diamond,motion=out,enabled=0,Duration=0.60)';
		break;
		case 13:
			//wipe up
			str_filter='progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=1,motion=reverse,enabled=0,Duration=0.60)';
		break;
		case 14:
			//wipe down
			str_filter='progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=1,motion=forward,enabled=0,Duration=0.60)';
		break;
		case 15:
			//wipe right
			str_filter='progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=0,motion=forward,enabled=0,Duration=0.60)';
		break;
		case 16:
			//wipe left
			str_filter='progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=0,motion=reverse,enabled=0,Duration=0.60)';
		break;
		case 17:
			//blinds up
			str_filter='progid:DXImageTransform.Microsoft.Iris(irisStyle=diamond,motion=out,enabled=0,Duration=0.60)';
		break;
		case 18:
			//blinds down 
			str_filter='progid:DXImageTransform.Microsoft.Blinds(bands=8,direction=DOWN,enabled=0,Duration=0.60)';
		break;
		case 19:
			//blinds right
			str_filter='progid:DXImageTransform.Microsoft.Blinds(bands=8,direction=RIGHT,enabled=0,Duration=0.60)';
		break;
		case 20:
			//blinds left
			str_filter='progid:DXImageTransform.Microsoft.Blinds(bands=8,direction=left,enabled=0,Duration=0.60)';
		break;
		case 21:
			//checkerboard up
			str_filter='progid:DXImageTransform.Microsoft.Checkerboard(squaresX=16,squaresY=16,direction=up,enabled=0,Duration=0.60)';
		break;
		case 22:
			//checkerboard down
			str_filter='progid:DXImageTransform.Microsoft.Checkerboard(squaresX=12,squaresY=12,direction=down,enabled=0,Duration=0.60)';
		break;
		case 23:
			//checkerboard right
			str_filter='progid:DXImageTransform.Microsoft.Checkerboard(squaresX=12,squaresY=12,direction=right,enabled=0,Duration=0.60)';
		break;
		case 34:
			//checkerboard left
			str_filter='progid:DXImageTransform.Microsoft.Checkerboard(squaresX=12,squaresY=12,direction=left,enabled=0,Duration=0.60)';
		break;
		case 25:
			//random dissolve
			str_filter='progid:DXImageTransform.Microsoft.RandomDissolve(,enabled=0,Duration=0.60)';
		break;
		case 26:
			//split vertical in
			str_filter='progid:DXImageTransform.Microsoft.Barn(orientation=vertical,motion=in,enabled=0,Duration=0.60)';
		break;
		case 27:
			//split vertical in
			str_filter='progid:DXImageTransform.Microsoft.Barn(orientation=vertical,motion=out,enabled=0,Duration=0.60)';
		break;
		case 28:
			//split horizontal in
			str_filter='progid:DXImageTransform.Microsoft.Barn(orientation=horizontal,motion=in,enabled=0,Duration=0.60)';
		break;
		case 29:
			//split horizontal in
			str_filter='progid:DXImageTransform.Microsoft.Barn(orientation=horizontal,motion=out,enabled=0,Duration=0.60)';
		break;
		case 30:
			//strips left down
			str_filter='progid:DXImageTransform.Microsoft.Strips(Motion=leftdown,enabled=0,Duration=0.60)';
		break;
		case 31:
			//strips left up
			str_filter='progid:DXImageTransform.Microsoft.Strips(Motion=leftup,enabled=0,Duration=0.60)';
		break;
		case 32:
			//strips right down
			str_filter='progid:DXImageTransform.Microsoft.Strips(Motion=rightdown,enabled=0,Duration=0.60)';
		break;
		case 33:
			//strips left le
			str_filter='progid:DXImageTransform.Microsoft.Strips(Motion=rightup,enabled=0,Duration=0.60)';
		break;
		case 34:
			//random bars horuzontal
			str_filter='progid:DXImageTransform.Microsoft.RandomBars(orientation=horizontal,enabled=0,Duration=0.60)';
		break;
		case 35:
			//random bars vetical
			str_filter='progid:DXImageTransform.Microsoft.RandomBars(orientation=vertical,enabled=0,Duration=0.60)';
		break;
		case 36:
			//wheel
			str_filter='progid:DXImageTransform.Microsoft.Wheel(spokes=16,enabled=0,Duration=0.60)';
		break;
		case 37:
			//silde
			str_filter='progid:DXImageTransform.Microsoft.Slide(slideStyle=hide,bands=15,enabled=0,Duration=0.60)';
		break;
		case 38:
			//silde plush
			str_filter='progid:DXImageTransform.Microsoft.Slide(slideStyle=swap,bands=15,enabled=0,Duration=0.60)';
		break;
		case 39:
			//spread
			str_filter='progid:DXImageTransform.Microsoft.Inset(,enabled=0,Duration=0.60)';
		break;
		case 40:
			//picelplate
			str_filter='progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=15,enabled=0,Duration=0.60)';
		break;
		case 41:
			//fade
			str_filter='progid:DXImageTransform.Microsoft.Fade(overlap=.5,enabled=0,Duration=0.60)';
		break;
		default:
			//random filter
			str_filter='revealTrans(Transition=23,enabled=0,Duration=0.60)';
		break;
	  }
	  return str_filter;
 }
 //*
lastScrollY=0;
function heartBeat(){ 
var diffY;
if (document.documentElement && document.documentElement.scrollTop)
    diffY = document.documentElement.scrollTop;
else if (document.body)
    diffY = document.body.scrollTop
else
    { }

percent=.1*(diffY-lastScrollY); 
if(percent>0)percent=Math.ceil(percent); 
else percent=Math.floor(percent); 
document.getElementById("full").style.top=parseInt(document.getElementById("full").style.top)+percent+"px";

lastScrollY=lastScrollY+percent; 
}
suspendcode="<div id=\"full\" style='right:2px; top:300px; position:absolute;'><div align=\"center\"><a href=\"#_top\"><img src=\"/images/top.gif\" border=\"0\"></a></div><div align=\"center\" style=\"padding-top:5px;\"><a href=\"/en/contact.php\"><img src=\"/images/gmail.gif\" border=0 width=25></a></div></div>"

document.write(suspendcode);
window.setInterval("heartBeat()",1);
//*/