var titlea = new Array();
var texta = new Array();
var linka = new Array();
var trgfrma = new Array();
var heightarr = new Array();
var cyposarr = new Array();

cyposarr[0]=0;
cyposarr[1]=1;
cyposarr[2]=2;
						
titlea[0] = "<a href='./1/1/0/0/product'><img height=25 border=0 src='./img/brand/row1/1.gif'></a> ";
titlea[0] = titlea[0] + "<a href='./1/38/0/0/product'><img height=25 border=0 src='./img/brand/row1/2.gif'></a> ";
titlea[0] = titlea[0] + "<a href='./1/88/0/0/product'><img height=25 border=0 src='./img/brand/row1/3.gif'></a> ";
titlea[0] = titlea[0] + "<a href='./1/218/0/0/product'><img height=25 border=0 src='./img/brand/row1/4.gif'></a> ";
titlea[0] = titlea[0] + "<a href='./1/33/0/0/product'><img height=25 border=0 src='./img/brand/row1/5.gif'></a> ";
titlea[0] = titlea[0] + "<a href='./1/227/0/0/product'><img height=25 border=0 src='./img/brand/row1/6.gif'></a> ";
titlea[0] = titlea[0] + "<a href='./1/152/0/0/product'><img height=25 border=0 src='./img/brand/row1/7.gif'></a> ";
titlea[0] = titlea[0] + "<a href='./1/41/0/0/product'><img height=25 border=0 src='./img/brand/row1/8.gif'></a> ";
titlea[0] = titlea[0] + "<a href='./1/35/0/0/product'><img height=25 border=0 src='./img/brand/row1/9.gif'></a> ";
titlea[0] = titlea[0] + "<a href='./1/54/0/0/product'><img height=25 border=0 src='./img/brand/row1/10.gif'></a> ";
titlea[0] = titlea[0] + "<a href='./1/34/0/0/product'><img height=25 border=0 src='./img/brand/row1/11.gif'></a> ";
titlea[0] = titlea[0] + "<a href='./1/55/0/0/product'><img height=25 border=0 src='./img/brand/row1/12.gif'></a> ";
texta[0] = "";
linka[0] = "";
trgfrma[0] = "_parent";


titlea[1] = "<a href='./1/48/0/0/product'><img height=25 border=0 src='./img/brand/row2/1.gif'></a> ";
titlea[1] = titlea[1] + "<a href='./1/93/0/0/product'><img height=25 border=0 src='./img/brand/row2/2.gif'></a> ";
titlea[1] = titlea[1] + "<a href='./1/236/0/0/product'><img height=25 border=0 src='./img/brand/row2/3.gif'></a> ";
titlea[1] = titlea[1] + "<a href='./1/244/0/0/product'><img height=25 border=0 src='./img/brand/row2/4.gif'></a> ";
titlea[1] = titlea[1] + "<a href='./1/45/0/0/product'><img height=25 border=0 src='./img/brand/row2/5.gif'></a> ";
titlea[1] = titlea[1] + "<a href='./1/53/0/0/product'><img height=25 border=0 src='./img/brand/row2/6.gif'></a> ";
titlea[1] = titlea[1] + "<a href='./1/232/0/0/product'><img height=25 border=0 src='./img/brand/row2/7.gif'></a> ";
titlea[1] = titlea[1] + "<a href='./1/250/0/0/product'><img height=25 border=0 src='./img/brand/row2/8.gif'></a> ";
titlea[1] = titlea[1] + "<a href='./1/46/0/0/product'><img height=25 border=0 src='./img/brand/row2/9.gif'></a> ";
titlea[1] = titlea[1] + "<a href='./1/225/0/0/product'><img height=25 border=0 src='./img/brand/row2/10.gif'></a> ";
titlea[1] = titlea[1] + "<a href='./1/207/0/0/product'><img height=25 border=0 src='./img/brand/row2/11.gif'></a> ";
titlea[1] = titlea[1] + "<a href='./1/209/0/0/product'><img height=25 border=0 src='./img/brand/row2/12.gif'></a> ";
texta[1] = "";
linka[1] = "";
trgfrma[1] = "_parent";


titlea[2] = "<a href='./1/52/0/0/product'><img height=25 border=0 src='./img/brand/row3/1.gif'></a> ";
titlea[2] = titlea[2] + "<a href='./1/129/0/0/product'><img height=25 border=0 src='./img/brand/row3/2.gif'></a> ";
titlea[2] = titlea[2] + "<a href='./1/182/0/0/product'><img height=25 border=0 src='./img/brand/row3/3.gif'></a> ";
titlea[2] = titlea[2] + "<a href='./1/103/0/0/product'><img height=25 border=0 src='./img/brand/row3/4.gif'></a> ";
titlea[2] = titlea[2] + "<a href='./1/212/0/0/product'><img height=25 border=0 src='./img/brand/row3/5.gif'></a> ";
titlea[2] = titlea[2] + "<a href='./1/83/0/0/product'><img height=25 border=0 src='./img/brand/row3/6.gif'></a> ";
titlea[2] = titlea[2] + "<a href='./1/56/0/0/product'><img height=25 border=0 src='./img/brand/row3/7.gif'></a> ";
titlea[2] = titlea[2] + "<a href='./1/82/0/0/product'><img height=25 border=0 src='./img/brand/row3/8.gif'></a> ";
titlea[2] = titlea[2] + "<a href='./1/111/0/0/product'><img height=25 border=0 src='./img/brand/row3/9.gif'></a> ";
titlea[2] = titlea[2] + "<a href='./1/81/0/0/product'><img height=25 border=0 src='./img/brand/row3/10.gif'></a> ";
titlea[2] = titlea[2] + "<a href='./1/228/0/0/product'><img height=25 border=0 src='./img/brand/row3/11.gif'></a> ";
titlea[2] = titlea[2] + "<a href='./1/1/0/0/product'><img height=25 border=0 src='./img/brand/row1/1.gif'></a> ";
titlea[2] = titlea[2] + "<a href='./1/38/0/0/product'><img height=25 border=0 src='./img/brand/row1/2.gif'></a> ";
texta[2] = "";
linka[2] = "";
trgfrma[2] = "_parent";

var mc=3;

var inoout=false;
var spage;
var cvar=0,say=0,tpos=0,enson=0,hidsay=0,hidson=0;
var tmpv;tmpv=958-4-4-(2*1);
var psy = new Array();
divtextb ="<div id=d";divtextb2 ="<div id=dz";divtev1=" onmouseover=\"mdivmo(";divtev2=")\" onmouseout =\"restime(";divtev3=")\" onclick=\"butclick(";divtev4=")\"";divtexts = " style=\"position:absolute;visibility:hidden;width:"+tmpv+"; COLOR: DEE2ED; left:0; top:0; FONT-FAMILY: MS Sans Serif,arial,helvetica; FONT-SIZE: 8pt; FONT-STYLE: normal; FONT-WEIGHT: normal;TEXT-DECORATION: none; margin:0px; LINE-HEIGHT: 12pt; text-align:left;padding:0px;\">";
ns6span= " style=\"position:relative; COLOR: FFFFFF; width:"+tmpv+";FONT-FAMILY: verdana,arial,helvetica; FONT-SIZE: 9pt;FONT-STYLE: normal; FONT-WEIGHT: bold; TEXT-DECORATION: none; LINE-HEIGHT: 14pt; text-align:left;padding:0px;\"";
uzun="<div id=\"enuzun\" style=\"position:absolute;align:center;top:0;\">";
uzun2="<div id=\"enuzun2\" style=\"position:absolute;align:center;top:0;\">";

var uzunobj=null,uzunobj2=null;
var uzuntop=0;var toplay=0;

function mdivmo(gnum,gnum5){
	inoout=true;
	if((linka[gnum].length)>2){
		if(gnum5==1){    
			objd=document.getElementById('dz'+gnum);
			objd2=document.getElementById('hgdz'+gnum);
		}
		else{   
		 objd=document.getElementById('d'+gnum);    
		 objd2=document.getElementById('hgd'+gnum);
		}
		objd.style.color="#DBF7BF";
		objd2.style.color="#F4ECAE";
		objd.style.cursor='pointer';
		objd2.style.cursor='pointer';
		objd.style.textDecoration='underline';
		objd2.style.textDecoration='underline';
		window.status=""+linka[gnum];
	}
}

function restime(gnum2,gnum5){
	inoout=false;
	if(gnum5==1){    
		objd=document.getElementById('dz'+gnum2);  
		objd2=document.getElementById('hgdz'+gnum2);
	}
	else{    
		objd=document.getElementById('d'+gnum2);    
		objd2=document.getElementById('hgd'+gnum2);
	}	
	objd.style.color="#DEE2ED";objd2.style.color="#FFFFFF";
	objd.style.textDecoration='none';objd2.style.textDecoration='none';window.status="";
}

function butclick(gnum3){
	if(linka[gnum3].substring(0,11)=="javascript:"){
		eval(""+linka[gnum3]);
	}
	else{
		if((linka[gnum3].length)>3){
			if((trgfrma[gnum3].indexOf("_parent")>-1)){
				eval("parent.window.location='"+linka[gnum3]+"'");
			}
		else if((trgfrma[gnum3].indexOf("_top")>-1)){
			eval("top.window.location='"+linka[gnum3]+"'");
		}
	else{
		window.open(''+linka[gnum3],''+trgfrma[gnum3]);
	}
}

}}

function dotrans()
{
	if(inoout==false){    
		uzuntop--;    
		if(uzuntop<(-1*toplay)) {    
			uzuntop=0;    
			uzunobj2.style.top=35+"px";    
		}   
		uzunobj.style.top=uzuntop+"px";

		if((uzuntop+toplay)<35){
			uzunobj2.style.top=""+(uzuntop+toplay)+"px";
		}    
	}   
		
	if(psy[(uzuntop*(-1))+4]==3){
		setTimeout('dotrans()',3000+35);
	}
	else{
		setTimeout('dotrans()',35);
	}
}

function initte2()
{

i=0;
for(i=0;i<mc;i++){
objd=document.getElementById('d'+i);heightarr[i]=objd.offsetHeight;
}

toplay=4;
for(i=0;i<mc;i++){
	objd=document.getElementById('d'+i);
	objd2=document.getElementById('dz'+i);
	objd.style.visibility="visible";
	objd2.style.visibility="visible";
	objd.style.top=""+toplay+"px";
	objd2.style.top=""+toplay+"px";
	psy[toplay]=3;
	toplay=toplay+heightarr[i]+10;
}

uzunobj=document.getElementById('enuzun');
uzunobj.style.left=8+"px";
uzunobj.style.height=toplay+"px";
uzunobj.style.width=tmpv+"px";
uzunobj.style.top=35+"px";
uzunobj2=document.getElementById('enuzun2');uzunobj2.style.left=8+"px";
uzunobj2.style.height=toplay+"px";
uzunobj2.style.width=tmpv+"px";
uzunobj2.style.top=35+"px";
uzuntop=35;
dotrans();

}

function initte(){
	i=0;
	innertxt=""+uzun;
	
	for(i=0;i<mc;i++){
		innertxt=innertxt+""+divtextb+""+i+""+divtev1+i+",0"+divtev2+i+",0"+divtev3+i+divtev4+divtexts+"<div id=\"hgd"+i+"\""+ns6span+">"+titlea[i]+"<br></div>"+texta[i]+"</div>";
	}
	innertxt=innertxt+"</div>";innertxt=""+innertxt+uzun2;
	
	for(i=0;i<mc;i++){
	innertxt=innertxt+""+divtextb2+""+i+""+divtev1+i+",1"+divtev2+i+",1"+divtev3+i+divtev4+divtexts+"<div id=\"hgdz"+i+"\""+ns6span+">"+titlea[i]+"<br></div>"+texta[i]+"</div>";
	}

	innertxt=innertxt+"</div>";
	spage=document.getElementById('spagens');
	spage.innerHTML=""+innertxt;spage.style.left="0px";spage.style.top="0px";
	setTimeout('initte2()',500);
}

window.onload=initte;
