function externalLinks() { 
if (!document.getElementsByTagName) return; 
var anchors = document.getElementsByTagName("a"); 
for (var i=0; i<anchors.length; i++) { 
var anchor = anchors[i]; 
if (anchor.getAttribute("href") && 
anchor.getAttribute("rel") == "external") 
anchor.target = "_blank"; 
} 
} 
window.onload = externalLinks;

function closeTrailer() {
	document.getElementById('trailer').style.display='none';	
}

function openTrailer() {
	document.getElementById('trailer').style.display='block';	
}



function getHeight() {
	return (window.frames['monIframe'].returnHeight())+20;	
}

function setHeight() {
	var docHeight=getHeight();
	document.getElementById('monIframe').style.height = docHeight+'px';
	document.getElementById('iframe').style.height = docHeight+'px';
}

function showIframe() 
{
	
	document.getElementById('fogall').style.height = document.body.parentNode.scrollHeight+'px';
	document.getElementById('fogall').style.display = 'block';
	document.getElementById('iframe').style.display = 'block';	
	setHeight();	
}



function hideIframe() 
{
	parent.document.getElementById('fogall').style.display='none';
	parent.document.getElementById('iframe').style.display='none';			
}	



function hide_warning(url_tracking){
	$('#body_warning').fadeOut();
	$('#main_warning').fadeOut();
	$.getScript(url_tracking);
}

function adjust_warning() {
	document.getElementById('body_warning').style.height = document.body.parentNode.scrollHeight+'px';
}




