// Set up the image files to be used.
var theImages = new Array() // do not change this
var theLink = new Array() // do not change this
var fromsite = window.location.host; //window.location.protocol + "//" + window.location.host + "/" + window.location.pathname;
var width = '468';
var height = '60';
var baner_size = width + "_" + height;
//alert(fromsite)


// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'http://www.interface-soft.com/BannerSitesFiles/'+ baner_size +'/Fakturi_468x60.swf'
theImages[1] = 'http://www.interface-soft.com/BannerSitesFiles/'+ baner_size +'/Pazaruvai_468_60.swf'
theImages[2] = 'http://www.interface-soft.com/BannerSitesFiles/'+ baner_size +'/Sveteshta_Pinseta_468x60.swf'
theImages[3] = 'http://www.interface-soft.com/BannerSitesFiles/'+ baner_size +'/Banner_Chestit_8_Mart_468x60.swf'

theLink[0] = 'http://www.e-fakturi.net/'
theLink[1] = 'http://www.pazaruvai.net'
theLink[2] = 'http://www.pazaruvai.net'
theLink[3] = 'http://www.pazaruvai.net'

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(ip){

	if((theImages[whichImage].substr(theImages[whichImage].lastIndexOf('.') + 1)) == 'swf')
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+ width +'" height="'+ height +'"><param name="movie" value="'+theImages[whichImage]+'"><param name="quality" value="high"><embed src="'+theImages[whichImage]+'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ width +'" height="'+ height +'" quality="high"></embed></object>');
	
	else document.write('<a href="http://www.interface-soft.com/clicks.php?fromsite='+fromsite+'&tosite='+theLink[whichImage]+'"><img src="'+theImages[whichImage]+'" border="0"></a>');
}
