$(function() {
	/*
	setTimeout(function() {
		//$('#cover img:first').fadeIn(2000);
		$('#cover').cycle();
	}, 1000);
	*/
	$('#cover').cycle({ 
		fx:     'fade', 
		speed:   1200, 
		timeout: 5000, 
		next:   '#cover', 
		pause:   1 
	});
});

function Email()
{
	var erp = new Array;
	erp[0] = 1868981865;
	erp[1] = 1667580003;
	erp[2] = 1634951524;
	erp[3] = 1701015410;
	erp[4] = 779251518;
	erp[5] = 1044266044;
	erp[6] = 1013933670;
	erp[7] = 1768121664;
	erp[8] = 1667330913;
	erp[9] = 1684366191;
	erp[10] = 1915646575;
	erp[11] = 0;
	var em = '';
	var tmp;
	for(i=0;i<erp.length;i++){
		tmp = erp[i];
		if(Math.floor((tmp/Math.pow(256,3)))>0){
			em += String.fromCharCode(Math.floor((tmp/Math.pow(256,3))));
		};
		tmp = tmp - (Math.floor((tmp/Math.pow(256,3))) * Math.pow(256,3));
		if(Math.floor((tmp/Math.pow(256,2)))>0){
			em += String.fromCharCode(Math.floor((tmp/Math.pow(256,2))));
		};
		tmp = tmp - (Math.floor((tmp/Math.pow(256,2))) * Math.pow(256,2));
		if(Math.floor((tmp/Math.pow(256,1)))>0){
			em += String.fromCharCode(Math.floor((tmp/Math.pow(256,1))));
		};
		tmp = tmp - (Math.floor((tmp/Math.pow(256,1))) * Math.pow(256,1));
		if(Math.floor((tmp/Math.pow(256,0)))>0){
			em += String.fromCharCode(Math.floor((tmp/Math.pow(256,0))));
		};
	};
	var tmp = new Array;
	tmp = em.split('>>><<<');
	em = tmp[0];
	var an = tmp[1];
	var nl = document.createElement('a');
	nl.setAttribute('id', 'linkob162167');
	nl.setAttribute('href', 'mailto:' + em);
	document.getElementById('phlinkob162167').appendChild(nl);
	document.getElementById('linkob162167').innerHTML = an;
	var n2 = document.createElement('a');
	n2.setAttribute('id', 'linkob162168');
	n2.setAttribute('href', 'mailto:' + em);
	if (document.getElementById('phlinkob162168'))
	{
		document.getElementById('phlinkob162168').appendChild(n2);
		document.getElementById('linkob162168').innerHTML = an;
	}
}
