$(document).scroll(function() {
	$('#overDiv2').css({top: $(document).scrollTop()});
});
function getHeight () {
	if (typeof document.height != "undefined") {
		docHeight = document.height;
	} else if (document.body && typeof document.body.scrollHeight != "undefined") {
		docHeight = document.body.scrollHeight;
	}
	if (docHeight < document.documentElement.clientHeight) {
		docHeight = document.documentElement.clientHeight;
	}
	return docHeight;
}
function myBoxShow(element, url) {
	$('#overDiv2').html('<div id="myBoxHead"><div onclick="myBoxClose();" style="cursor: pointer; position: relative; right: 5px; top: 5px;">'+str_close+'</div></div><iframe style="position: relative; z-index: 1002; border: 0px;" width="'+(screen.width*0.8)+'" height="400" src="'+url+'"></iframe>');
	f_height = $("#overDiv2").height();
	f_width = $("#overDiv2").width();

	$("#overDiv2").css({position: "absolute", left: ((screen.width/2)-(f_width/2)), top: $(document).scrollTop()}).show();
	$('#overDiv1').css({display: "block", height: getHeight(), margin: 'auto'}).show();
}

function myBoxClose() {
	$('#overDiv1').hide();
	$('#overDiv2').hide();
}

function infoShow(info, type) {

	if (type == 1) {
		$("#overDiv2").css({position: "absolute", top: $(document).scrollTop()+(screen.height/2)-150, left: (screen.width/2)-220, width: 440, height: 70, "font-size": 16, background: "#dff3dc", "border": "1px solid #45ab34", "text-align": "center", color: "#105305", "font-weight": "bold", "z-index": 20}).html('<div style="margin: 25px;">'+info+'</div>').show();
	} else {
		$("#overDiv2").css({position: "absolute", top: $(document).scrollTop()+(screen.height/2)-150, left: (screen.width/2)-220, width: 440, height: 70, "font-size": 16, background: "#eacfc7", "border": "1px solid #e12405", "text-align": "center", color: "#e12405", "font-weight": "bold", "z-index": 20}).html('<div style="margin: 25px;">'+info+'</div>').show();
	}

	setTimeout("$('#overDiv2').fadeOut();",3000);
	
}

