TeszVeszAuction_LinkArray   = new Array('http://teszvesz.hu/show_item.php?item=1201297546','http://teszvesz.hu/show_item.php?item=1207041464','http://teszvesz.hu/show_item.php?item=1197174754','http://teszvesz.hu/show_item.php?item=1198591278','http://teszvesz.hu/show_item.php?item=1197177944','http://teszvesz.hu/show_item.php?item=1197178221','http://teszvesz.hu/show_item.php?item=1192809312','http://teszvesz.hu/show_item.php?item=1198948307','http://teszvesz.hu/show_item.php?item=1199331531','http://teszvesz.hu/show_item.php?item=1204822151','http://teszvesz.hu/show_item.php?item=1199333047','http://teszvesz.hu/show_item.php?item=1199691136','http://teszvesz.hu/show_item.php?item=1199691390','http://teszvesz.hu/show_item.php?item=1203042090','http://teszvesz.hu/show_item.php?item=1203221425','http://teszvesz.hu/show_item.php?item=1204894051','http://teszvesz.hu/show_item.php?item=1212634635','http://teszvesz.hu/show_item.php?item=1209243733','http://teszvesz.hu/show_item.php?item=1210450390','http://teszvesz.hu/show_item.php?item=1211849734','http://teszvesz.hu/show_item.php?item=1198122059','http://teszvesz.hu/show_item.php?item=1203225167','http://teszvesz.hu/show_item.php?item=1204456240','http://teszvesz.hu/show_item.php?item=1208615134','http://teszvesz.hu/show_item.php?item=1211840434','http://teszvesz.hu/show_item.php?item=1197170529','http://teszvesz.hu/show_item.php?item=1206444518','http://teszvesz.hu/show_item.php?item=1205069133','http://teszvesz.hu/show_item.php?item=1197229090','http://teszvesz.hu/show_item.php?item=1197709403','http://teszvesz.hu/show_item.php?item=1198123178','http://teszvesz.hu/show_item.php?item=1198123256','http://teszvesz.hu/show_item.php?item=1198128057','http://teszvesz.hu/show_item.php?item=1198128059','http://teszvesz.hu/show_item.php?item=1198128058','http://teszvesz.hu/show_item.php?item=1192809312','http://teszvesz.hu/show_item.php?item=1200020615','http://teszvesz.hu/show_item.php?item=1200429723','http://teszvesz.hu/show_item.php?item=1201877793','http://teszvesz.hu/show_item.php?item=1207045842','http://teszvesz.hu/show_item.php?item=1201298295','http://teszvesz.hu/show_item.php?item=1200053585','http://teszvesz.hu/show_item.php?item=1205065967','http://teszvesz.hu/show_item.php?item=1207621273','http://teszvesz.hu/show_item.php?item=1200059878','http://teszvesz.hu/show_item.php?item=1197174754','http://teszvesz.hu/show_item.php?item=1197177944','http://teszvesz.hu/show_item.php?item=1211947436','http://teszvesz.hu/show_item.php?item=1201467396','http://teszvesz.hu/show_item.php?item=1201873875','http://teszvesz.hu/show_item.php?item=1205270857','http://teszvesz.hu/show_item.php?item=1215831890','http://teszvesz.hu/show_item.php?item=1211945768','http://teszvesz.hu/show_item.php?item=1207040011','http://teszvesz.hu/show_item.php?item=1208400489','http://teszvesz.hu/show_item.php?item=1199697750','http://teszvesz.hu/show_item.php?item=1199698266','http://teszvesz.hu/show_item.php?item=1200782660','http://teszvesz.hu/show_item.php?item=1213029471','http://teszvesz.hu/show_item.php?item=1209055819','http://teszvesz.hu/show_item.php?item=1212635730','http://teszvesz.hu/show_item.php?item=1208403769','http://teszvesz.hu/show_item.php?item=1200059908','http://teszvesz.hu/show_item.php?item=1200059904','http://teszvesz.hu/show_item.php?item=1210839976','http://teszvesz.hu/show_item.php?item=1209052100','http://teszvesz.hu/show_item.php?item=1214291094','http://teszvesz.hu/show_item.php?item=1214237773','http://teszvesz.hu/show_item.php?item=1206416470');
TeszVeszAuction_TitleArray  = new Array('Óriási márkás ruhacsomi...','Mayo Chix dzseki 2010 1...','Szuper szexi platform...','STRADIVARIUS homokszínű /...','eredeti Nike sportcipő','S - M - L - es méretű klassz...','Party flitteres 2db...','Mayo Chix piros szoknya...','H&M trendi kabát extra...','DS - 0511 - GN - U Ruha','100db 50cm - es mikrógyűrűs...','TATTOO szett, 2DB...','Kozmetikai tetováló gép','UV LÁMPA 9W - os ...','Oriflame Glacier  70% - os...','Eredeti Lancome Hypnose...','Profiderm 6 az 1 ben...','Nem kell alapozó,korrekto...','TATTOO szett, 2DB...','Outspoken by Fergie...','Playboy ékszerszett...','Ajándék gyűrű','125 darab, mindenféle...','Hello Kitty nyaklánc...','Új egyedi ezüst...','Baldachin méret a...','Macis baldachin tartóval','Brendon baldahin függöny','Baldachin macikás 1000ft','Új Disney Tigris...','Baldachin szúnyogháló...','Micimackó, malacka ...','100% pamut babaaágynemű...','100% pamut babaaágynemű...','100% pamut babaaágynemű...','Party flitteres 2db...','Fekete szatén bolero több...','Exkluzív fodros sztreccs...','Tüllös,flitteres Bay...','Exkluzív,strasszos,csipké...','Coast törtfehér csinos...','Kiárusítás! Alkalmi ruha...','A legszebb ruhák Panni - m...','Bay két rétegű...','Alkalmi ruha SM12 - 052 - WH','Szuper szexi platform...','eredeti Nike sportcipő','új 40 - es Cameo szandál','eredeti Adidas Team ...','Árzuhanás! Új, márkás...','Nike új szuper bőr...','Eredeti EVERLAST fekete...','ADIDAS Missy Eliots...','gyönyörű zebramintás...','Exclusive 40 - es Fekete ...','Redial kígyó trikó Új 1ft...','Amnesia top párduc 1. - ft...','Rózsa Sándor női póló  - ...','SEXY Pink strasszos...','Rövidujjú trikó K - 001 - WH','Moletti virágos trendi...','Új, címkés Keyo Paris...','Tunika SM12 - 108 - CR','Tunika SM12 - 108 - WH','Ocean Club 40es fehér...','Tunika S10 - 83580 - BT','Új egyedi eredeti AMNESIA...','TN - 0091 - 01 Tunika','TN - 0201 - BK - U Tunika');
TeszVeszAuction_TitlefArray = new Array('Óriási márkás ruhacsomi 38 - as!','Mayo Chix dzseki 2010 1 Ft!','Szuper szexi platform 37 - es strasszos cipő!!','STRADIVARIUS homokszínű / bézs csőfarmer 38/10','eredeti Nike sportcipő','S - M - L - es méretű klassz őszi felső csomag 15db - ','Party flitteres 2db s - m - l, több színben','Mayo Chix piros szoknya M - es 1. -  ft ról minden','H&M trendi kabát extra részletekkel10/38','DS - 0511 - GN - U Ruha','100db 50cm - es mikrógyűrűs fekete egyenes haj','TATTOO szett, 2DB Tetováló Gép  +  kiegészítők','Kozmetikai tetováló gép','UV LÁMPA 9W - os  körbetükrös Akció!  Új','Oriflame Glacier  70% - os kedvezménnyel!','Eredeti Lancome Hypnose Senses 75ml Eau De Parfüm','Profiderm 6 az 1 ben kozmetika kezelőtorony','Nem kell alapozó,korrektor! ELICINA csigacsoda','TATTOO szett, 2DB Tetováló Gép  +  kiegészítők','Outspoken by Fergie LEGÚJABB Avon  + testáp  - 50%','Playboy ékszerszett szint. gyémánt kövekkel','Ajándék gyűrű','125 darab, mindenféle bizsu vegyesen  -  vadi újak','Hello Kitty nyaklánc ajándék karkötő !!!','Új egyedi ezüst nyaklánc (igazi ritkaság) ','Baldachin méret a képen,ágyneműk,gyerek ruhák','Macis baldachin tartóval','Brendon baldahin függöny','Baldachin macikás 1000ft','Új Disney Tigris baldachin barack','Baldachin szúnyogháló sárkányos','Micimackó, malacka  függöny 2db eredeti Disney','100% pamut babaaágynemű szett 2 részes','100% pamut babaaágynemű szett 4 részes','100% pamut babaaágynemű szett 3 részes','Party flitteres 2db s - m - l, több színben','Fekete szatén bolero több méretben','Exkluzív fodros sztreccs női ingblúz L - es','Tüllös,flitteres Bay pántnélküli koktél ruha','Exkluzív,strasszos,csipkés míder  -  álomszép','Coast törtfehér csinos ruha 36 - 38 - as','Kiárusítás! Alkalmi ruha S2 - R120 - YE','A legszebb ruhák Panni - m nál! Mori Lee alkalmi!','Bay két rétegű tüllös,gyöngyös flitteres p','Alkalmi ruha SM12 - 052 - WH','Szuper szexi platform 37 - es strasszos cipő!!','eredeti Nike sportcipő','új 40 - es Cameo szandál','eredeti Adidas Team  38 - as 1ftról Nmá','Árzuhanás! Új, márkás lábbelik kiárusítás','Nike új szuper bőr balerina 39','Eredeti EVERLAST fekete boxcipő 41 - es olcsón!','ADIDAS Missy Eliots respect m.e.női csizma bőr','gyönyörű zebramintás magassarkú 39 - es 1Ft - ról!','Exclusive 40 - es Fekete  cipő','Redial kígyó trikó Új 1ft ról minden Márkás','Amnesia top párduc 1. - ft ról minden Márkás','Rózsa Sándor női póló  -  Limitált, tattoo','SEXY Pink strasszos csipkés top,S/M/L,ne hagyd ki','Rövidujjú trikó K - 001 - WH','Moletti virágos trendi csodás tunika 44 - 46','Új, címkés Keyo Paris tunika olcsón M','Tunika SM12 - 108 - CR','Tunika SM12 - 108 - WH','Ocean Club 40es fehér strandruha,vadiúj,cimkés!','Tunika S10 - 83580 - BT','Új egyedi eredeti AMNESIA tunika ruha! One size','TN - 0091 - 01 Tunika','TN - 0201 - BK - U Tunika');
TeszVeszAuction_ThumbArray  = new Array('http://img11.allegroimg.pl/photos/128x96/12/01/29/75/1201297546','http://img05.allegroimg.pl/photos/128x96/12/07/04/14/1207041464','http://img05.allegroimg.pl/photos/128x96/11/97/17/47/1197174754','http://img07.allegroimg.pl/photos/128x96/11/98/59/12/1198591278','http://img13.allegroimg.pl/photos/128x96/11/97/17/79/1197177944','http://img19.allegroimg.pl/photos/128x96/11/97/17/82/1197178221','http://img03.allegroimg.pl/photos/128x96/11/92/80/93/1192809312','http://img20.allegroimg.pl/photos/128x96/11/98/94/83/1198948307','http://img09.allegroimg.pl/photos/128x96/11/99/33/15/1199331531','http://img06.allegroimg.pl/photos/128x96/12/04/82/21/1204822151','http://img10.allegroimg.pl/photos/128x96/11/99/33/30/1199333047','http://img08.allegroimg.pl/photos/128x96/11/99/69/11/1199691136','http://img08.allegroimg.pl/photos/128x96/11/99/69/13/1199691390','http://img02.allegroimg.pl/photos/128x96/12/03/04/20/1203042090','http://img13.allegroimg.pl/photos/128x96/12/03/22/14/1203221425','http://img16.allegroimg.pl/photos/128x96/12/04/89/40/1204894051','http://img05.allegroimg.pl/photos/128x96/12/12/63/46/1212634635','http://img09.allegroimg.pl/photos/128x96/12/09/24/37/1209243733','http://img08.allegroimg.pl/photos/128x96/12/10/45/03/1210450390','http://img04.allegroimg.pl/photos/128x96/12/11/84/97/1211849734','http://img04.allegroimg.pl/photos/128x96/11/98/12/20/1198122059','http://img18.allegroimg.pl/photos/128x96/12/03/22/51/1203225167','http://img17.allegroimg.pl/photos/128x96/12/04/45/62/1204456240','http://img20.allegroimg.pl/photos/128x96/12/08/61/51/1208615134','http://img05.allegroimg.pl/photos/128x96/12/11/84/04/1211840434','http://img05.allegroimg.pl/photos/128x96/11/97/17/05/1197170529','http://img18.allegroimg.pl/photos/128x96/12/06/44/45/1206444518','http://img09.allegroimg.pl/photos/128x96/12/05/06/91/1205069133','http://img01.allegroimg.pl/photos/128x96/11/97/22/90/1197229090','http://img20.allegroimg.pl/photos/128x96/11/97/70/94/1197709403','http://img11.allegroimg.pl/photos/128x96/11/98/12/31/1198123178','http://img16.allegroimg.pl/photos/128x96/11/98/12/32/1198123256','http://img20.allegroimg.pl/photos/128x96/11/98/12/80/1198128057','http://img20.allegroimg.pl/photos/128x96/11/98/12/80/1198128059','http://img20.allegroimg.pl/photos/128x96/11/98/12/80/1198128058','http://img03.allegroimg.pl/photos/128x96/11/92/80/93/1192809312','http://img07.allegroimg.pl/photos/128x96/12/00/02/06/1200020615','http://img10.allegroimg.pl/photos/128x96/12/00/42/97/1200429723','http://img20.allegroimg.pl/photos/128x96/12/01/87/77/1201877793','http://img02.allegroimg.pl/photos/128x96/12/07/04/58/1207045842','http://img17.allegroimg.pl/photos/128x96/12/01/29/82/1201298295','http://img15.allegroimg.pl/photos/128x96/12/00/05/35/1200053585','http://img16.allegroimg.pl/photos/128x96/12/05/06/59/1205065967','http://img14.allegroimg.pl/photos/128x96/12/07/62/12/1207621273','http://img15.allegroimg.pl/photos/128x96/12/00/05/98/1200059878','http://img05.allegroimg.pl/photos/128x96/11/97/17/47/1197174754','http://img13.allegroimg.pl/photos/128x96/11/97/17/79/1197177944','http://img18.allegroimg.pl/photos/128x96/12/11/94/74/1211947436','http://img12.allegroimg.pl/photos/128x96/12/01/46/73/1201467396','http://img04.allegroimg.pl/photos/128x96/12/01/87/38/1201873875','http://img15.allegroimg.pl/photos/128x96/12/05/27/08/1205270857','http://img02.allegroimg.pl/photos/128x96/12/15/83/18/1215831890','http://img13.allegroimg.pl/photos/128x96/12/11/94/57/1211945768','http://img14.allegroimg.pl/photos/128x96/12/07/04/00/1207040011','http://img14.allegroimg.pl/photos/128x96/12/08/40/04/1208400489','http://img20.allegroimg.pl/photos/128x96/11/99/69/77/1199697750','http://img20.allegroimg.pl/photos/128x96/11/99/69/82/1199698266','http://img03.allegroimg.pl/photos/128x96/12/00/78/26/1200782660','http://img18.allegroimg.pl/photos/128x96/12/13/02/94/1213029471','http://img15.allegroimg.pl/photos/128x96/12/09/05/58/1209055819','http://img05.allegroimg.pl/photos/128x96/12/12/63/57/1212635730','http://img17.allegroimg.pl/photos/128x96/12/08/40/37/1208403769','http://img15.allegroimg.pl/photos/128x96/12/00/05/99/1200059908','http://img15.allegroimg.pl/photos/128x96/12/00/05/99/1200059904','http://img02.allegroimg.pl/photos/128x96/12/10/83/99/1210839976','http://img15.allegroimg.pl/photos/128x96/12/09/05/21/1209052100','http://img18.allegroimg.pl/photos/128x96/12/14/29/10/1214291094','http://img06.allegroimg.pl/photos/128x96/12/14/23/77/1214237773','http://img06.allegroimg.pl/photos/128x96/12/06/41/64/1206416470');
TeszVeszAuction_PriceArray  = new Array('4544','6500','23000','3600','4600','2700','4000','1250','3000','1800','16000','19900','10000','4300','1470','3650','160000','2601','19900','3300','3900','2000','7750','1650','41990','2200','1500','1073','1000','2400','2800','3790','1800','4900','3200','4000','3400','4500','2500','2050','2000','1620','1550','2050','1940','23000','4600','2200','4300','1701','3200','5500','4300','1570','3800','1500','1450','3700','2600','1300','1380','2990','2420','2420','3490','2340','1','1300','1500');
function isset(varname){
    return (typeof(window[varname])!='undefined') ? true : false ;
}

function TeszVeszRandNum (num) {
    now  = new Date();
    seed = now.getSeconds();
    rand = Math.round(Math.random() * seed) % num;
} // end of function TeszVeszRandNum()

function TeszVeszRandPic (num) {
    while( tv_counter < 5 )
    {
        TeszVeszRandNum(num);

        if(tv_counter==1)
        {
            TeszVeszLink1  = TeszVeszAuction_LinkArray[rand].replace('teszvesz.hu','piacter.storyonline.hu');
            TeszVeszTitle1 = TeszVeszAuction_TitleArray[rand];
            TeszVeszTitlef1 = TeszVeszAuction_TitlefArray[rand];
            TeszVeszThumb1 = TeszVeszAuction_ThumbArray[rand];
            TeszVeszPrice1 = TeszVeszAuction_PriceArray[rand];

            tv_counter++;
        }
	if(tv_counter==2)
        {
            TeszVeszLink2  = TeszVeszAuction_LinkArray[rand].replace('teszvesz.hu','piacter.storyonline.hu');
            TeszVeszTitle2 = TeszVeszAuction_TitleArray[rand];
            TeszVeszTitlef2 = TeszVeszAuction_TitlefArray[rand];
            TeszVeszThumb2 = TeszVeszAuction_ThumbArray[rand];
            TeszVeszPrice2 = TeszVeszAuction_PriceArray[rand];

            if (TeszVeszLink2 != TeszVeszLink1)
            {
                tv_counter++;
            }
        }
	if(tv_counter==3)
        {
            TeszVeszLink3  = TeszVeszAuction_LinkArray[rand].replace('teszvesz.hu','piacter.storyonline.hu');
            TeszVeszTitle3 = TeszVeszAuction_TitleArray[rand];
            TeszVeszTitlef3 = TeszVeszAuction_TitlefArray[rand];
            TeszVeszThumb3 = TeszVeszAuction_ThumbArray[rand];
            TeszVeszPrice3 = TeszVeszAuction_PriceArray[rand];

            if (
                TeszVeszLink3 != TeszVeszLink1 &&
                TeszVeszLink3 != TeszVeszLink2
               )
            {
                tv_counter++;
            }
        }
        if(tv_counter==4)
        {
            TeszVeszLink4   = TeszVeszAuction_LinkArray[rand].replace('teszvesz.hu','piacter.storyonline.hu');
            TeszVeszTitle4  = TeszVeszAuction_TitleArray[rand];
            TeszVeszTitlef4 = TeszVeszAuction_TitlefArray[rand];
            TeszVeszThumb4  = TeszVeszAuction_ThumbArray[rand];
            TeszVeszPrice4  = TeszVeszAuction_PriceArray[rand];

            if (
                TeszVeszLink4 != TeszVeszLink1 &&
                TeszVeszLink4 != TeszVeszLink2 &&
                TeszVeszLink4 != TeszVeszLink3
               )
            {
                tv_counter++;
            }
        }
    } // end of while
} // end of function - TeszVeszRandPic()


var tv_counter=1;
var now;
var seed;
var rand;
var TeszVesz_width  = (typeof(Teszvesz_ad_width)  == 'number') ? Teszvesz_ad_width  : 292 ;
var TeszVesz_height = (typeof(Teszvesz_ad_height) == 'number') ? Teszvesz_ad_height : 440 ;

if (
    isset('TeszVeszAuction_LinkArray') &&
    isset('TeszVeszAuction_TitleArray') &&
    isset('TeszVeszAuction_ThumbArray') &&
    isset('TeszVeszAuction_PriceArray')
   )
{
	TeszVeszRandPic(TeszVeszAuction_LinkArray.length);

	//document.write('<div id="teszvesz" style="margin: 2px;">');
	document.write('	<table cellpadding="0" cellspacing="0" border="0" width="' + TeszVesz_width + '" bgcolor="#ffffff" height="'+ TeszVesz_height +'">');


	for (tv_i=1; tv_i <= 4; tv_i++)
	{
		//d = i * 1 + ( (i > 1) ? 1 : 0 ) ;
		d = tv_i;
		document.write('		<tr>');
		document.write('			<td>');
		document.write('				<div class="story_teszvesz_one_line">');
		document.write('					<div class="story_teszvesz_kep"><a href="' + eval("TeszVeszLink" + d) + '" target="_blank"><img src="' + eval("TeszVeszThumb" + d) + '" height="60" width="80"  style="border: 1px solid #CCAAD0;" hspace="7" align="left" ></a></div>');
		document.write('					<div class="story_teszvesz_adatok"><a href="' + eval("TeszVeszLink" + d) + '" target="_blank">' + eval("TeszVeszTitle" + d) + '</a><br>');
		document.write('					<span class="story_teszvesz_ar">Aktuális ár: ');
		document.write('					<b>' + eval("TeszVeszPrice" + d) + ' Ft</b></span><br>');
		document.write('					<a href="' + eval("TeszVeszLink" + d) + '" class="story_teszvesz_megnez" target="_blank"></a><br></div>');
		document.write('				</div>');
		document.write('			</td>');
		document.write('		</tr>');

	} // end of for
	
	document.write('	</table>');
	//document.write('</div>');
}
