function slideshow() {
	$('#bg').show();
	$('#lbox').css('z-index','10');
	$('#lbox').css('display','block')
	document.getElementById("framebox").contentWindow.ssstart();
	//showslide();
	//$('#lbox').css('display','block');
	//$('#lbox').css('height','100%');
	//$('#framebox').css('height','100%');

	
	//$('#lbox').show();
	//var winHeight = document.documentElement.scrollHeight;
	//alert(winHeight);
	//$('#bga').css('height',winHeight);

	$('#bga').fadeIn("slow");
	//$('#framebox').fadeIn("slow");
 	$('#framebox').fadeTo("slow", 1);
	
	
}
function slideshowoff() {
	
	$('#bga').fadeOut("slow");
	$('#bg').hide();
	$('#framebox').fadeOut("slow",function(){$('#lbox').css('display','none')});
	//$('#framebox').fadeOut("slow",function(){$('#lbox').css('display','none'); document.getElementById("framebox").contentWindow.showslide();});
	//$('#framebox').fadeOut("slow",function(){$('#lbox').css('display','none'); showslide();});
	//$('#lbox').css('z-index','0');
}

function conceptbox() {
	
	$('#lbox').show();
	$('#lbox').css('z-index','10');
	//var winHeight = document.documentElement.scrollHeight;
	
	//var winHeight = document.getElementById("conceptbox").contentWindow.document.documentElement.scrollHeight;
	//$('#conceptbox').css('height',get.contentWindow.document.body.scrollHeight);
	//$('#lbox').css('height',$('#conceptbox').contentWindow.document.body.scrollHeight);
	
	//$('#conceptbox').css('height',winHeight);
	//$('#bga').css('height',winHeight);
	
	$('#bga').fadeIn("slow");
	$('#conceptbox').fadeIn("slow");
}
function conceptboxoff() {
	$('#bga').fadeOut("slow");
	$('#conceptbox').fadeOut("slow",function(){$('#lbox').css('display','none')});
}


function downloadbox() {
	$('#lbox').show();
	$('#lbox').css('z-index','10');
	//var winHeight = document.documentElement.scrollHeight;
	//var winHeight = document.getElementById("downloadbox").contentWindow.scrollHeight;
	//alert(winHeight);
	//$('#downloadbox').css('height',winHeight);
	//$('#bga').css('height',winHeight);
	
	$('#bga').fadeIn("slow");
	$('#downloadbox').fadeIn("slow");
}
function downloadboxoff() {
	$('#bga').fadeOut("slow");
	$('#downloadbox').fadeOut("slow",function(){$('#lbox').css('display','none')});
}

function linkbox() {
	$('#lbox').show();
	$('#lbox').css('z-index','10');
	//var winHeight = document.documentElement.scrollHeight;
	//var winHeight = document.getElementById("linkbox").contentWindow.scrollHeight;
	//alert(winHeight);
	//$('#linkbox').css('height',winHeight);
	//$('#bga').css('height',winHeight);
	$('#bga').fadeIn("slow");
	$('#linkbox').fadeIn("slow");
}
function linkboxoff() {
	$('#bga').fadeOut("slow");
	$('#linkbox').fadeOut("slow",function(){$('#lbox').css('display','none')});
}


function newsbox() {
	$('#lbox').show();
	$('#lbox').css('z-index','10');
	//var winHeight = document.documentElement.scrollHeight;
	//var winHeight = document.getElementById("newsbox").contentWindow.scrollHeight;
	//alert(winHeight);
	//$('#newsbox').css('height',winHeight);
	//$('#bga').css('height',winHeight);
	$('#bga').fadeIn("slow");
	$('#newsbox').fadeIn("slow");
	//document.getElementById("newsbox").contentWindow.sc();

}
function newsboxoff() {
	$('#bga').fadeOut("slow");
	$('#newsbox').fadeOut("slow",function(){$('#lbox').css('display','none')});
}

function mobilebox() {
	$('#lbox').show();
	$('#lbox').css('z-index','10');
	//var winHeight = document.documentElement.scrollHeight;
	//var winHeight = document.getElementById("mailmagazinebox").contentWindow.scrollHeight;
	//alert(winHeight);
	//$('#mailmagazinebox').css('height',winHeight);
	//$('#bga').css('height',winHeight);
	$('#bga').fadeIn("slow");
	$('#mobilebox').fadeIn("slow");
}
function mobileboxoff() {
	$('#bga').fadeOut("slow");
	$('#mobilebox').fadeOut("slow",function(){$('#lbox').css('display','none')});
}


function mailmagazinebox() {
	$('#lbox').show();
	$('#lbox').css('z-index','10');
	//var winHeight = document.documentElement.scrollHeight;
	//var winHeight = document.getElementById("mailmagazinebox").contentWindow.scrollHeight;
	//alert(winHeight);
	//$('#mailmagazinebox').css('height',winHeight);
	//$('#bga').css('height',winHeight);
	$('#bga').fadeIn("slow");
	$('#mailmagazinebox').fadeIn("slow");
}
function mailmagazineboxoff() {
	$('#bga').fadeOut("slow");
	$('#mailmagazinebox').fadeOut("slow",function(){$('#lbox').css('display','none')});
}


