/**
 * Pro Framework
 *
 * @category   Pro
 * @author     Pro-Web (http://pro-web.at)
 * @copyright  Copyright (c) 2008 pro-web.at (http://pro-web.at)
 * @version    $Id: site.js 198 2009-03-03 18:48:02Z danielpr $
 */

// nothing to do

jQuery.fn.unobfusEmail = function() {
	this.each(function() {
		this.innerHTML = this.innerHTML.replace(/\s*\(at\)\s*/ig, '@').replace(/\s*\(dot\)\s*/ig, '.').replace(/\s*\(dash\)\s*/ig, '-');
		this.href = this.href.replace(/%20/g, ' ').replace(/\s*\(at\)\s*/ig, '@').replace(/\s*\(dot\)\s*/ig, '.').replace(/\s*\(dash\)\s*/ig, '-');
	});
};
$(function() { $('.email').unobfusEmail();});
jQuery.fn.unobfusPhone = function() {
	// var numbers = ["null","eins","zwei","drei","vier","f\u00fcnf","sechs","sieben","acht","neun"];
	var numbers = ["o","one","two","three","four","five","six","seven","eight","nine"];
	this.each(function() {
		for (i in numbers)
			this.innerHTML = this.innerHTML.replace(new RegExp('\\('+numbers[i]+'\\)', 'g'), i);
	});
}
$(function(){
	$('.phone').unobfusPhone();
	$("#portrait").append('<img id="my-portrait" src="http://www.gravatar.com/avatar/21c134c5ee9fc198fb5ca3ecfc7e1361" />');
});




$('.show-images').live('click', function(){
	var $elements = $(this).parents('.referenz').find('a.lightbox').lightBox(Pro.lightBoxStdOptions);
	$elements.filter(':first').click();
	return false;
});
