
days = new Array( 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' );
months = new Array( 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 
			'September', 'October', 'November', 'December'  );
										
days_spanish = new Array( 'Domingo', 'Lunes', 'Martes', 'Miercoles', 'Jueves', 'Viernes', 'Sabado' );
months_spanish = new Array( 'Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto',
		'Septiembre', 'Octubre', 'Noviembre', 'Diciembre' );

days_french = new Array( 'dimanche','lundi','mardi', 'mercredi','jeudi','vendredi','samedi' );
months_french = new Array( 'janvier','f&eacute;vrier','mars','avril','mai','juin','juillet','ao&ucirc;t',
		'septembre','octobre','novembre','d&eacute;cembre' );

days_russian = new Array( 'воскресенье','понедельник','вторник','среда','четверг','пятница','суббота' );
months_russian = new Array( 'январь','февраль','март','апрель','май','июнь','июль','август','сентябрь',
		'октябрь','ноябрь','декабрь' );

days_arabic = new Array( '&#x627;&#x644;&#x627;&#x62b;&#x646;&#x64a;&#x646;',
		'&#x627;&#x644;&#x62b;&#x644;&#x627;&#x62b;&#x627;&#x621;','&#x627;&#x644;&#x623;&#x631;&#x628;&#x639;&#x627;&#x621;',
		'&#x627;&#x644;&#x62e;&#x645;&#x64a;&#x633;','&#x627;&#x644;&#x62c;&#x645;&#x639;&#x629;',
		'&#x627;&#x644;&#x633;&#x628;&#x62a;','&#x627;&#x644;&#x623;&#x62d;&#x62f;' );
months_arabic = new Array( '&#x64a;&#x646;&#x627;&#x64a;&#x631;',
		'&#x641;&#x628;&#x631;&#x627;&#x64a;&#x631;','&#x645;&#x627;&#x631;&#x633;',
		'&#x623;&#x628;&#x631;&#x64a;&#x644;','&#x645;&#x627;&#x64a;&#x648;',
		'&#x64a;&#x648;&#x646;&#x64a;&#x648;','&#x64a;&#x648;&#x644;&#x64a;&#x648;',
		'&#x623;&#x63a;&#x633;&#x637;&#x633;','&#x633;&#x628;&#x62a;&#x645;&#x628;&#x631;',
		'&#x623;&#x643;&#x62a;&#x648;&#x628;&#x631;','&#x646;&#x648;&#x641;&#x645;&#x628;&#x631;',
		'&#x62f;&#x64a;&#x633;&#x645;&#x628;&#x631;' );

months_dutch = new Array( 'januari', 'februari', 'mart', 'april',
		'mei', 'juni',  'juli', 'augustus', 'september', 'october', 'november', 'december' );
days_dutch = new Array( 'zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdagdag', 'zaterdag' );

months_port = new Array( 'janeiro', 'fevereiro','marзo','abril','maio','junho','julho','agosto','setembro',
												'outubro','novembro', 'dezembro');
days_port = new Array( 'domingo', 'segunda-feira', 'terзa-feira', 'quarta-feira', 'quinta-feira', 'sexta-feira', 'sбbado' );

months_it = new Array( 'gennaio','febbraio','marzo','aprile','maggio','giugno','luglio','agosto','settembre',
												'ottobre','novembre','dicembre' );
days_it = new Array( 'domenica','lunedм','martedм','mercoledм','giovedм','venerdм','sabato');

months_de = new Array( 'Januar','Februar','Mдrz','April','Mai','Juni','Juli','August','September','Oktober',
											'November', 'Dezember' );
days_de = new Array( 'Sonntag', 'Montag',  'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag' );

//days_chinese = new Array( '&#x661f;&#x671f;&#x65e5;','&#x661f;&#x671f;&#x4e8c;',
//	'&#x661f;&#x671f;&#x4e09;','&#x661f;&#x671f;&#x56db;','&#x661f;&#x671f;&#x4e94;',
//	'&#x661f;&#x671f;&#x516d;','&#x661f;&#x671f;&#x65e5;' );
//months_chinese = new Array( '&#x4e00;&#x6708;','&#x4e8c;&#x6708;','&#x4e09;&#x6708;',
//	'&#x56db;&#x6708;','&#x4e94;&#x6708;','&#x516d;&#x6708;','&#x4e03;&#x6708;','&#x516b;&#x6708;',
//	'&#x4e5d;&#x6708;','&#x5341;&#x6708;','&#x5341;&#x4e00;&#x6708;','&#x5341;&#x4e8c;&#x6708;' );
																			
now = new Date();
dateStr = days[ now.getDay() ] + ", " + now.getDate() + " " + months[ now.getMonth() ] + " " + now.getFullYear();
dateStr_spanish = days_spanish[ now.getDay() ] + ", " + now.getDate() + " de " + months_spanish[ now.getMonth() ] + " de " + now.getFullYear();
dateStr_french = days_french[ now.getDay() ] + " " + now.getDate() + " " + months_french[ now.getMonth() ] + " " + now.getFullYear();
dateStr_russian = days_russian[ now.getDay() ] + ", " + now.getDate() + " " + months_russian[ now.getMonth() ] + " " + now.getFullYear() + "  года";
dateStr_arabic = now.getDate() + " " + months_arabic[ now.getMonth() ] + " " + now.getFullYear();
dateStr_dutch = days_dutch[ now.getDay() ] + ", " + now.getDate() + " " + months_dutch[ now.getMonth() ] + " " + now.getFullYear() + "  года";
dateStr_port = days_port[ now.getDay() ] + ", " + now.getDate() + " " + months_port[ now.getMonth() ] + " " + now.getFullYear() + "  года";
dateStr_it = days_it[ now.getDay() ] + ", " + now.getDate() + " " + months_it[ now.getMonth() ] + " " + now.getFullYear() + "  года";
dateStr_de = days_de[ now.getDay() ] + ", " + now.getDate() + " " + months_de[ now.getMonth() ] + " " + now.getFullYear() + "  года";

function findObj(n, d){
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

// Load images for rollovers
function load() {
	var imgs = load.arguments;
	if (document.images) {
		document.preload = new Array();
		for (var j = 0; j < imgs.length; j++){ document.preload[j] = new Image();document.preload[j].src = imgs[j];}
	}
}

function openW(url,name,w,h) {
	var windowprops = "width=" + w + ",height=" + h + ",scrollbars,toolbar";
	popup = window.open(url, name, windowprops);
	setTimeout('popup.focus();',250);
}

// Restore currently swapped image to original state
function restore(){ 
	if(curSwap != null) if(curSwap.oldSrc) curSwap.src=curSwap.oldSrc;
	curSwap=null;
}

function swap(img,file){ 
	img=findObj(img);
	if(img != null){
		curSwap=img;
		img.oldSrc=img.src;
		img.src=file;
	}
}