onload=function(){
	if(typeof init!='undefined')init();
	AlwaysInTheFeet();
	LinkTarget();
};

onresize=function(){
	if(typeof resize!='undefined')resize();
	AlwaysInTheFeet();
};

function AlwaysInTheFeet(){
	var f=$('.footerAITF');
	var m=$('.mainAITF');
	var v=$(window).height()-f.outerHeight(true)-(m.outerHeight(true)-m.height());
	m.css({'min-height':v});
}

function LinkTarget(){
	var attr=null;
	var a=$('a');
	$.each(a,function(c,d){
		attr=$(this).attr('rel');
		switch(attr){
			case 'blank':
			this.target = "_blank";
			break;
			
			case 'top':
			this.target = "_top";
			break;
			
			case 'self':
			this.target = "_self";
			break;
			
			default:
			break;
		}
	});
}