// JavaScript Document
function setStatusBar(msgStr) { self.status = msgStr; }

<!--Script redirectionare//-->
function redirect(URLStr) { location = URLStr; }

<!--deschidere fereastra suplimentara
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//ex: <a href="#" onMouseOver="window.status='';return true" onClick="MM_openBrWindow('leo/contact.php','frmContact', 'toolbar=no, location=no, directoties=no, status=no, menubar=no, scrollbar=yes, resizable=yes, copyhistory=yes, width=450, height=400')">Contact</a>
//-->

//forms functions
//end forms functions

function disableRightClick(e)
{
  var message = "Right click disabled!";
  
  if(!document.rightClickDisabled) // initialize
  {
    if(document.layers) 
    {
      document.captureEvents(Event.MOUSEDOWN);
      document.onmousedown = disableRightClick;
    }
    else document.oncontextmenu = disableRightClick;
    return document.rightClickDisabled = true;
  }
  if(document.layers || (document.getElementById && !document.all))
  {
    if (e.which==2||e.which==3)
    {
      alert(message);
      return false;
    }
  }
  else
  {
    alert(message);
    return false;
  }
}

<!--Script redirectionare//-->
function redirect(URLStr) { location = URLStr; }

<!-- Script no select-->
var omitformtags=["input", "textarea", "select"]

function disableselect(e){
for (i = 0; i < omitformtags.length; i++)
if (omitformtags[i]==(e.target.tagName.toLowerCase()))
return;
return false
}

function reEnable(){
return true
}

function noSelect(){
	if (typeof document.onselectstart!="undefined"){
		document.onselectstart=new Function ("return false")
		if (document.getElementsByTagName){
			tags=document.getElementsByTagName('*')
			for (j = 0; j < tags.length; j++){
				for (i = 0; i < omitformtags.length; i++)
				if (tags[j].tagName.toLowerCase()==omitformtags[i]){
					tags[j].onselectstart=function(){
						document.onselectstart=new Function ('return true')
					}
					tags[j].onmouseup=function(){
						document.onselectstart=new Function ('return false')
					}
				}
			}
		}
	}
	else{
		document.onmousedown=disableselect
		document.onmouseup=reEnable
	}
}
function noclick(){
	document.oncontextmenu=new Function ("return false");
}
function cuplate(){
	noSelect();
	noclick();
}

<!-- script clock
function startclock()
{
var thetime=new Date();

var nhours=thetime.getHours();
var nmins=thetime.getMinutes();
var nsecn=thetime.getSeconds();
var nday=thetime.getDay();
var nmonth=thetime.getMonth();
var ntoday=thetime.getDate();
var nyear=thetime.getYear();

if (nsecn<10)
 nsecn="0"+nsecn;

if (nmins<10)
 nmins="0"+nmins;

nmonth+=1;

if (nmonth==1)
  nmonth="Ian";
if (nmonth==2)
  nmonth="Feb";
if (nmonth==3)
  nmonth="Mar";
if (nmonth==4)
  nmonth="Apr";
if (nmonth==5)
  nmonth="Mai";
if (nmonth==6)
  nmonth="Iun";
if (nmonth==7)
  nmonth="Iul";
if (nmonth==8)
  nmonth="Aug";
if (nmonth==9)
  nmonth="Sept";
if (nmonth==10)
  nmonth="Oct";
if (nmonth==11)
  nmonth="Nov";
if (nmonth==12)
  nmonth="Dec";

if (nyear<=99)
  nyear= "19"+nyear;

if ((nyear>99) && (nyear<2000))
 nyear+=1900;

<!--document.clockform.clockspot.value=nhours+": "+nmins+": "+nsecn+" "+AorP+" "+nday+", "+nmonth+"/"+ntoday+"/"+nyear; //>
document.clockform.clockspot.value=ntoday+" "+nmonth+" "+nyear+" "+nhours+": "+nmins+": "+nsecn;

setTimeout('startclock()',1000);

} 

//-->

<!-- START Script fade images-->
/***********************************************
* Ultimate Fade-In Slideshow: C Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
var fadeimages0=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
	fadeimages0[0]=["img/gal01.jpg", "", ""] //plain image syntax
	fadeimages0[1]=["img/gal02.jpg", "", ""] //image with link syntax
	fadeimages0[2]=["img/gal03.jpg", "", ""] //image with link and target syntax
	fadeimages0[3]=["img/gal04.jpg", "", ""]
	fadeimages0[4]=["img/gal05.jpg", "", ""]
	fadeimages0[5]=["img/gal06.jpg", "", ""]
	
var fadeimages3=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
	fadeimages3[0]=["img/gal07.jpg", "", ""] //plain image syntax
	fadeimages3[1]=["img/gal08.jpg", "", ""] //image with link syntax
	fadeimages3[2]=["img/gal09.jpg", "", ""] //image with link and target syntax
	fadeimages3[3]=["img/gal10.jpg", "", ""]
	fadeimages3[4]=["img/gal11.jpg", "", ""]
	fadeimages3[5]=["img/gal12.jpg", "", ""]
	
var fadeimages1=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
	fadeimages1[0]=["img/gal13.jpg", "", ""] //plain image syntax
	fadeimages1[1]=["img/gal14.jpg", "", ""] //image with link syntax
	fadeimages1[2]=["img/gal15.jpg", "", ""] //image with link and target syntax
	fadeimages1[3]=["img/gal16.jpg", "", ""]
	fadeimages1[4]=["img/gal17.jpg", "", ""]

var fadeimages2=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
	fadeimages2[0]=["img/gal18.jpg", "", ""]
	fadeimages2[1]=["img/gal19.jpg", "", ""] //plain image syntax
	fadeimages2[2]=["img/gal20.jpg", "", ""] //image with link syntax
	fadeimages2[3]=["img/gal21.jpg", "", ""] //image with link and target syntax
	fadeimages2[4]=["img/gal22.jpg", "", ""]

var fadeimages5X=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
	fadeimages5X[0]=["img/abs.jpg", "lucrari.php?cat=pct", ""]
	fadeimages5X[1]=["img/fig.jpg", "lucrari.php?cat=pct", ""]
	fadeimages5X[2]=["img/psj.jpg", "lucrari.php?cat=pct", ""]
	fadeimages5X[3]=["img/prt.jpg", "lucrari.php?cat=pct", ""]
	fadeimages5X[4]=["img/spr.jpg", "lucrari.php?cat=pct", ""]
	fadeimages5X[5]=["img/vtr1.jpg", "lucrari.php?cat=vtr", ""]
	fadeimages5X[6]=["img/ogl1.jpg", "lucrari.php?cat=ogl", ""]

var fadeimages5Y=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
	fadeimages5Y[0]=["img/vp1.jpg", "lucrari.php?cat=vp", ""] 
	fadeimages5Y[1]=["img/cil.jpg", "lucrari.php?cat=cil", ""]
	fadeimages5Y[2]=["img/sfn1.jpg", "lucrari.php?cat=sfn", ""]
	fadeimages5Y[3]=["img/cs1.jpg", "lucrari.php?cat=cs", ""]
	fadeimages5Y[4]=["img/scl.jpg", "lucrari.php?cat=scl", ""]
	fadeimages5Y[5]=["img/mzc.jpg", "lucrari.php?cat=mzc", ""]
	fadeimages5Y[6]=["img/ma1.jpg", "lucrari.php?cat=ma", ""]

var fadeimages5Z=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
	fadeimages5Z[0]=["img/vp1.jpg", "lucrari.php?cat=vp", ""] 
	fadeimages5Z[1]=["img/od1.jpg", "lucrari.php?cat=od", ""]
	fadeimages5Z[2]=["img/sfn1.jpg", "lucrari.php?cat=sfn", ""]
	fadeimages5Z[3]=["img/cs1.jpg", "lucrari.php?cat=cs", ""]
	fadeimages5Z[4]=["img/vtr1.jpg", "lucrari.php?cat=vtr", ""]
	fadeimages5Z[5]=["img/ogl1.jpg", "lucrari.php?cat=ogl", ""]
	fadeimages5Z[6]=["img/ma1.jpg", "lucrari.php?cat=ma", ""]	

// extra --> needed for embeded pages
var fadeimages0B=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
	fadeimages0B[0]=["../img/gal01.jpg", "", ""] //plain image syntax
	fadeimages0B[1]=["../img/gal12.jpg", "", ""] //image with link syntax
	fadeimages0B[2]=["../img/gal03.jpg", "", ""] //image with link and target syntax
	fadeimages0B[3]=["../img/gal04.jpg", "", ""]
	fadeimages0B[4]=["../img/gal05.jpg", "", ""]
	fadeimages0B[5]=["../img/gal06.jpg", "", ""]
	
var fadeimages3B=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
	fadeimages3B[0]=["../img/gal07.jpg", "", ""] //plain image syntax
	fadeimages3B[1]=["../img/gal08.jpg", "", ""] //image with link syntax
	fadeimages3B[2]=["../img/gal09.jpg", "", ""] //image with link and target syntax
	fadeimages3B[3]=["../img/gal10.jpg", "", ""]
	fadeimages3B[4]=["../img/gal11.jpg", "", ""]
	fadeimages3B[5]=["../img/gal02.jpg", "", ""]
	
var fadeimages1B=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
	fadeimages1B[0]=["../img/gal13.jpg", "", ""] //plain image syntax
	fadeimages1B[1]=["../img/gal14.jpg", "", ""] //image with link syntax
	fadeimages1B[2]=["../img/gal15.jpg", "", ""] //image with link and target syntax
	fadeimages1B[3]=["../img/gal16.jpg", "", ""]
	fadeimages1B[4]=["../img/gal17.jpg", "", ""]

var fadeimages2B=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
	fadeimages2B[0]=["../img/gal18.jpg", "", ""]
	fadeimages2B[1]=["../img/gal19.jpg", "", ""] //plain image syntax
	fadeimages2B[2]=["../img/gal20.jpg", "", ""] //image with link syntax
	fadeimages2B[3]=["../img/gal21.jpg", "", ""] //image with link and target syntax
	fadeimages2B[4]=["../img/gal22.jpg", "", ""]
	
//-----------5B----------
var fadeimages5BX=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
	fadeimages5BX[0]=["../img/abs.jpg", "lucrari.php?cat=pct", ""]
	fadeimages5BX[1]=["../img/fig.jpg", "lucrari.php?cat=pct", ""]
	fadeimages5BX[2]=["../img/psj.jpg", "lucrari.php?cat=pct", ""]
	fadeimages5BX[3]=["../img/prt.jpg", "lucrari.php?cat=pct", ""]
	fadeimages5BX[4]=["../img/spr.jpg", "lucrari.php?cat=pct", ""]
	fadeimages5BX[5]=["../img/vtr1.jpg", "lucrari.php?cat=vtr", ""]
	fadeimages5BX[6]=["../img/ogl1.jpg", "lucrari.php?cat=ogl", ""]

var fadeimages5BY=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
	fadeimages5BY[0]=["../img/vp1.jpg", "lucrari.php?cat=vp", ""] 
	fadeimages5BY[1]=["../img/cil.jpg", "lucrari.php?cat=cil", ""]
	fadeimages5BY[2]=["../img/sfn1.jpg", "lucrari.php?cat=sfn", ""]
	fadeimages5BY[3]=["../img/cs1.jpg", "lucrari.php?cat=cs", ""]
	fadeimages5BY[4]=["../img/scl.jpg", "lucrari.php?cat=scl", ""]
	fadeimages5BY[5]=["../img/mzc.jpg", "lucrari.php?cat=mzc", ""]
	fadeimages5BY[6]=["../img/ma1.jpg", "lucrari.php?cat=ma", ""]

var fadeimages5BZ=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
	fadeimages5BZ[0]=["../img/vp1.jpg", "lucrari.php?cat=vp", ""] 
	fadeimages5BZ[1]=["../img/od1.jpg", "lucrari.php?cat=od", ""]
	fadeimages5BZ[2]=["../img/sfn1.jpg", "lucrari.php?cat=sfn", ""]
	fadeimages5BZ[3]=["../img/cs1.jpg", "lucrari.php?cat=cs", ""]
	fadeimages5BZ[4]=["../img/vtr1.jpg", "lucrari.php?cat=vtr", ""]
	fadeimages5BZ[5]=["../img/ogl1.jpg", "lucrari.php?cat=ogl", ""]
	fadeimages5BZ[6]=["../img/ma1.jpg", "lucrari.php?cat=ma", ""]	

//------------5S------------
var fadeimages5SX=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
	fadeimages5SX[0]=["../img/abs.jpg", "shop.php?cat=pct", ""]
	fadeimages5SX[1]=["../img/fig.jpg", "shop.php?cat=pct", ""]
	fadeimages5SX[2]=["../img/psj.jpg", "shop.php?cat=pct", ""]
	fadeimages5SX[3]=["../img/prt.jpg", "shop.php?cat=pct", ""]
	fadeimages5SX[4]=["../img/spr.jpg", "shop.php?cat=pct", ""]
	fadeimages5SX[5]=["../img/vtr1.jpg", "shop.php?cat=vtr", ""]
	fadeimages5SX[6]=["../img/ogl1.jpg", "shop.php?cat=ogl", ""]

var fadeimages5SY=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
	fadeimages5SY[0]=["../img/vp1.jpg", "shop.php?cat=vp", ""] 
	fadeimages5SY[1]=["../img/cil.jpg", "shop.php?cat=cil", ""]
	fadeimages5SY[2]=["../img/sfn1.jpg", "shop.php?cat=sfn", ""]
	fadeimages5SY[3]=["../img/cs1.jpg", "shop.php?cat=cs", ""]
	fadeimages5SY[4]=["../img/scl.jpg", "shop.php?cat=scl", ""]
	fadeimages5SY[5]=["../img/mzc.jpg", "shop.php?cat=mzc", ""]
	fadeimages5SY[6]=["../img/ma1.jpg", "shop.php?cat=ma", ""]

var fadeimages5SZ=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
	fadeimages5SZ[0]=["../img/vp1.jpg", "shop.php?cat=vp", ""] 
	fadeimages5SZ[1]=["../img/od1.jpg", "shop.php?cat=od", ""]
	fadeimages5SZ[2]=["../img/sfn1.jpg", "shop.php?cat=sfn", ""]
	fadeimages5SZ[3]=["../img/cs1.jpg", "shop.php?cat=cs", ""]
	fadeimages5SZ[4]=["../img/vtr1.jpg", "shop.php?cat=vtr", ""]
	fadeimages5SZ[5]=["../img/ogl1.jpg", "shop.php?cat=ogl", ""]
	fadeimages5SZ[6]=["../img/ma1.jpg", "shop.php?cat=ma", ""]	

var fadebgcolor="white"

////NO need to edit beyond here/////////////

var fadearray=new Array() //array to cache fadeshow instances
var fadeclear=new Array()   //array to cache corresponding clearinterval pointers

var dom=(document.getElementById) //modern dom browsers
var ie4=document.all

function fadeshow(theimages, fadewidth, fadeheight, borderwidth, pause, displayorder){

	this.pause=pause
	this.degree=10 //initial opacity degree (10%)
	this.curimageindex=0
	this.nextimageindex=1
	fadearray[fadearray.length]=this
	this.slideshowid=eval(fadearray.length-1)
	this.canvasbase="canvas"+this.slideshowid
	this.curcanvas=this.canvasbase+"_0"
	if (typeof displayorder!="undefined")
		theimages.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :)
	this.theimages=theimages
	this.imageborder=parseInt(borderwidth)
	this.postimages=new Array() //preload images
	for (p=0;p<theimages.length;p++){
		this.postimages[p]=new Image()
		this.postimages[p].src=theimages[p][0]
	}

	var fadewidth=fadewidth+this.imageborder*2
	var fadeheight=fadeheight+this.imageborder*2

	if (ie4||dom)
		document.write('<div style="position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0px;left:0px;filter:alpha(opacity=10);-moz-opacity:10;-khtml-opacity:10;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0px;left:0px;filter:alpha(opacity=10);-moz-opacity:10;background-color:'+fadebgcolor+'"></div></div>')
	else
		document.write('<img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'">')

	if (ie4||dom)
		this.startit()
	else{
		this.curimageindex++
		var temp='setInterval("fadearray['+this.slideshowid+'].rotateimage()", '+this.pause+')'
		eval(temp)
	}
}

function fadepic(obj){
	if (obj.degree<100){
		obj.degree+=10
		if (obj.tempobj.filters)
			obj.tempobj.filters.alpha.opacity=obj.degree
		else if (obj.tempobj.style.MozOpacity)
			obj.tempobj.style.MozOpacity=obj.degree/101
		else if (obj.tempobj.style.KhtmlOpacity)
			obj.tempobj.style.KhtmlOpacity=obj.degree/100
	}
	else{
		clearInterval(fadeclear[obj.slideshowid])
		obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1"
		obj.tempobj=ie4? eval("document.all."+obj.nextcanvas) : document.getElementById(obj.nextcanvas)
		obj.populateslide(obj.tempobj, obj.nextimageindex)
		obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)? obj.nextimageindex+1 : 0
		var temp='setTimeout("fadearray['+obj.slideshowid+'].rotateimage()", '+obj.pause+')'
		eval(temp)
	}
}

fadeshow.prototype.populateslide=function(picobj, picindex){
	var slideHTML=""
	if (this.theimages[picindex][1]!="") //if associated link exists for image
		slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'
	slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
	if (this.theimages[picindex][1]!="") //if associated link exists for image
		slideHTML+='</a>'
	picobj.innerHTML=slideHTML
}


fadeshow.prototype.rotateimage=function(){
	if (ie4||dom){
		this.resetit()
		var crossobj=this.tempobj=ie4? eval("document.all."+this.curcanvas) : document.getElementById(this.curcanvas)
		crossobj.style.zIndex++
		var temp='setInterval("fadepic(fadearray['+this.slideshowid+'])",50)'
		fadeclear[this.slideshowid]=eval(temp)
		this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0"
	}
	else{
		var ns4imgobj=eval("document.images.defaultslide"+this.slideshowid)
		ns4imgobj.src=this.postimages[this.curimageindex].src
	}
	this.curimageindex=(this.curimageindex<this.postimages.length-1)? this.curimageindex+1 : 0
}

fadeshow.prototype.resetit=function(){
	this.degree=10
	var crossobj=ie4? eval("document.all."+this.curcanvas) : document.getElementById(this.curcanvas)
	if (crossobj.filters)
		crossobj.filters.alpha.opacity=this.degree
	else if (crossobj.style.MozOpacity)
		crossobj.style.MozOpacity=this.degree/101
	else if (crossobj.style.KhtmlOpacity)
		crossobj.style.KhtmlOpacity=obj.degree/100
}

fadeshow.prototype.startit=function(){
	var crossobj=ie4? eval("document.all."+this.curcanvas) : document.getElementById(this.curcanvas)
	this.populateslide(crossobj, this.curimageindex)
	this.rotateimage()
}

<!-- END Script fade images-->

// End -->