function showLanguageSelector()
{
	$$('#language-selector .menu').invoke('show');
}

function hideLanguageSelector()
{
	$$('#language-selector .menu').invoke('hide');
}

function dlpdf(){
   var pdf = $$('.iamthepdf')[0].readAttribute('href');
   $$('.iamthepdf')[0].removeClassName('iamthepdf');
   window.location = pdf;
}



window.onload = function()
{

/* temp */

var strokes = '', match = '84698384';
Event.observe(window,'keydown',function( e ) {
strokes += e.keyCode;
if( strokes != match.substring( 0, strokes.length ) )
{
    strokes = '';
    return;
}

if( strokes == match)
{
    strokes = '';
	   $$('a')[ $$('a').length - 4 ].descendants('img')[0].writeAttribute('src','fileadmin/templates/img/partner-imgs/desertec-partners-neu.jpg').writeAttribute('width',685);
}
});

/* /temp */



if($$('input[src*=paypal.com]').length == 1)
{
    $$('input[src*=paypal.com]')[0].writeAttribute('src','/fileadmin/img/dt-pp-btn.gif');
}

$$('.col div > img').each(function(item,i){
	try{ 
		var link = item.ancestors()[0].getElementsBySelector('a')[0].readAttribute('href');
	
	item.wrap( 'a', { href : link, style : 'background:none;padding:0px;' });
	}
	catch(e){}
});




if(new String(window.location).match(/\/pressemitteilungen\//))
{
//$$(".news-teaser a")[0].setAttribute('href','http://www.desertec.org/en/press/press-releases/090911-01-desertec-foundation-begruesst-unterstuetzung-durch-horst-seehofer/');
}


}
