//- Script by Justas Vinevičius
//- php@one.lt

var Images=Array();
var activeImg = new String('square1');

function Img(name, path) {
	Images[name]=new Image();
	Images[name].src=path;
}

function Change(obj, name) { document.images[obj].src=Images[name].src; }

function MM_preloadImages() { //v3.0
	var d=document;
    if(d.images){
        if(!d.MM_p) d.MM_p=new Array();
	    var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
        for(i=0; i<a.length; i++)
		    if (a[i].indexOf("#")!=0){
                d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];
            }
    }
}

function chImage( id, numb ) {
	for (i=1; i<=numb; i++) {
		document.images['square'+i].src='http://www.beola.lt/images/picOff.gif';
	}
    
	document.images['imgbig'].src=imggallery[id].src;
    document.images['square'+id].src='http://www.beola.lt/images/picActive.gif';
	activeImg = 'square'+id;
}

function unmarkSpecial() {
	obj = document.getElementById('specialOffer');
	obj.className = "specialNormal";
	return true;
}

function markSpecial() {
	obj = document.getElementById('specialOffer');
	obj.className = "specialHighlight";
	setTimeout( "unmarkSpecial()", 1000 );
	return true;
}

