path = new Array();
path.push('files/js/lib/animator.js');
path.push('files/js/lib/prototype.js');
path.push('files/js/lib/swfobject.js');
path.push('files/js/topCalendar.js')
path.push('files/js/calendar.js');
path.push('files/js/elementsCalendar.js');
path.push('files/js/classes.js');
path.push('files/js/webcams.js');
path.push('files/js/imgReplace.js');

//path.push('');
loadScrips(path);

function onDocumentLoad ()
{
	var elementhover = new classSwitcher( [ $$('#metanav li'), $$('#metanav li ul li'), $$('#metanav li ul li ul li') ] );
	
	if($('languages') != null)
	{
		var languages = new dropDown($('languages'));
	}
	if($('skiregions') != null)
	{
		var skiregions = new dropDown($('skiregions'));
	}
	
	
	text2image($$('#textarea h1'),{
		font: 'Interstate-Light.ttf',
		width: '520',
		height: '',
		color: '283746',
		size: '16',
		positionx: 0,
		positiony: 17,
		replaceElement: {
			tagName: "span",
			className: "h1"
		}
	});
	
	text2image($$('#sidebar .top_teaser h3.img'),{
		font: 'Interstate-Regular.ttf',
		width: '130',
		height: '',
		color: '283746',
		size: '9.5',
		positionx: 0,
		positiony: 0,
		replaceElement: {
			tagName: "span",
			className: "h3"
		}
	});
	
	text2image($$('#weatherbox h3.img'),{
		font: 'Interstate-Regular.ttf',
		width: '200',
		height: '',
		color: 'ffffff',
		size: '9.5',
		positionx: 0,
		positiony: 0,
		replaceElement: {
			tagName: "span",
			className: "h3"
		},
		modifyValue : function (vari)
		{
			return vari.toUpperCase();
		}
	});
	
	text2image($$('#sidebar h3.img', '#vacationplaner h3.img'),{
		font: 'Interstate-Regular.ttf',
		width: '200',
		height: '',
		color: '283746',
		size: '9.5',
		positionx: 0,
		positiony: 0,
		replaceElement: {
			tagName: "span",
			className: "h3"
		},
		modifyValue : function (vari)
		{
			return vari.toUpperCase();
		}
	});
	
	
	text2image($$('#subnavigation em'),{
		font: 'Interstate-Regular.ttf',
		width: '160',
		height: '',
		color: '283746',
		size: '9.5',
		positionx: 0,
		positiony: 0,
		replaceElement: {
			tagName: "span",
			className: "em"
		},
		modifyValue : function (vari)
		{
			return vari.toUpperCase();
		}
	});
	
	
	text2image($$('#metanav em','#seasons em'),{
		font: 'Interstate-Regular.ttf',
		width: '',
		height: '',
		color: 'ffffff',
		size: '9.5',
		positionx: 0,
		positiony: 0,
		replaceElement: {
			tagName: "span",
			className: "em"
		},
		modifyValue : function (vari)
		{
			return vari.toUpperCase();
		}
	});
	
	text2image($$('#portalteaser .teaser h3.img'),{
		font: 'Interstate-Regular.ttf',
		width: '160',
		height: '',
		color: '283746',
		size: '9.5',
		positionx: 0,
		positiony: 0,
		replaceElement: {
			tagName: "span",
			className: "h3"
		}
	});
	
	
	text2image($$('#textarea .weatherinfo .temperatures em'),{
		font: 'Interstate-Light.ttf',
		width: '50',
		height: '',
		color: 'ffffff',
		size: '15',
		positionx: 0,
		positiony: 0,
		replaceElement: {
			tagName: "span",
			className: "em"
		}
	});
	
	text2image($$('#flashpanorama_teaser_container h3.img'),{
		font: 'Interstate-Regular.ttf',
		width: '200',
		height: '',
		color: 'ffffff',
		size: '9.5',
		positionx: 0,
		positiony: 0,
		replaceElement: {
			tagName: "h3",
			className: "img"
		},
		modifyValue : function (vari)
		{
			return vari.toUpperCase();
		}
	});
	
	/*
	
	text2image($$('#center .packages h3.img'),{
		font: 'HelveticaNeue-MediumCond.ttf',
		width: '470',
		height: '',
		color: 'deaf00',
		size: '11',
		positionx: 0,
		positiony: 12,
		replaceElement: {
			tagName: "span",
			className: "h3"
		},
		modifyValue : function (vari)
		{
			return vari.toUpperCase();
		}
	});
	
	*/
}


//window.onload = onDocumentLoad;


function loadScrips (path)
{
	for(i=0;i<path.length;i++)
	{
		document.write('<script type="text/javascript" src="' + path[i] + '"></script>');
	}
}


function getLink(vari)
{
	window.location.href = vari;
}


