var raampje, xtra, ytra;
function sleepen(){if (event.button!=1)return;	
raampje = eval("maildiv");temp1=raampje.style.posLeft;
temp2=raampje.style.posTop;xpos=event.clientX;
ypos=event.clientY;xtra = temp1-xpos;
ytra = temp2-ypos;document.onmousemove=plaats;}
function plaats(){if (event.button==1){
raampje.style.pixelLeft=event.clientX+xtra;
raampje.style.pixelTop=event.clientY+ytra;return false;}}

function raam(inside,width,height,use_iframe){
titlecolor = "#FCF8EB"; 						
opacitytitle = 45;   						
if(!width){
width = 365;            					
height = 170;}								
if(use_iframe==1)
inside = "<iframe frameborder=0 name=\"raampje\" width="+(width)+" height="+(height)+" src=\""+inside+"\" scrolling=\"no\" ></iframe>"; 

color = "#ffffff";							
var thisspan = eval("maildiv.style") 
thisspan.pixelLeft = document.body.scrollLeft + 100;		
thisspan.pixelTop =  document.body.scrollTop + 100;
thisspan.visibility="visible";
//output = inside+"<br><a href='#' onclick='closeraam();return false' style='text-decoration:none'>Close</a>";
/*output = "<table cellpadding=0 cellspacing=0 width=" + width + " height=" + height + " border=0 bgcolor='"+titlecolor+"'><!--<tr>";
output += "<td onmousedown='sleepen()' style='cursor:move' onmouseup='JavaScript:document.onmousemove=\"\" ' bgcolor='"+titlecolor+"' style='background:"+titlecolor+";filter:alpha(opacity="+opacitytitle+");' width =" + width + " height=20 align=center><span style='FONT-SIZE: 14px; COLOR: #000000; FONT-FAMILY: Tahoma;'>Marco Island Marriott Beach Resort Inquiry</span></td><td bgcolor='#83684D'>";
output += "<a href='#' onclick='closeraam();return false' style='text-decoration:none'><img alt=\"Close\" src='http://vrmarketing.net/popupmanager/popupmanager/images/close.jpg' border='0'></a></td></tr>-->";
output += "<tr><td height='90%' width=90% valign='top'><table ";   
output += " width=100% height=100% bgcolor='ffffff'><tr><td height=100% width=100% >"+ inside+"</td></tr></table></td><td bgcolor='#83684D'>";
output += "<a href='#' onclick='closeraam();return false' style='text-decoration:none'><img alt=\"Close\" src='http://vrmarketing.net/popupmanager/popupmanager/images/close.jpg' border='0'></a></td></tr>";
*/
output = inside;
maildiv.innerHTML = output;
maildiv.style.posLeft = 600;
maildiv.style.posTop = 60;
}
function closeraam(){maildiv.style.visibility="hidden";}

var Event_Time_From = new Array();
var Event_Time_To = new Array();
Event_Count = 0;
Popup_Background = '#ffffff';
var cookie_oio="Uzw6GMTM";

function show_popup(url){
	raam(url,389,171,1);
	return;

}
function show_popup_location(url){
	raam(url,390,170,1);
	return;

}

function getcookie_oio(cookieName) {
	var id = cookieName + "=";
	var cookievalue = "";
	if (document.cookie.length>0) {
		offset = document.cookie.indexOf(id);
		if (offset != -1) {cookievalue = "x";}
	}
	//return '';
	return cookievalue;
}
function setcookie_oio () {
	var today = new Date();
	document.cookie = cookie_oio+"="+escape("done");
}
