$(document).ready(function()
{
//			var cookiename='cy20090318'; 
//			if (jQuery.cookie(cookiename) != '1')
//		{
//				$("#black-screen").stop().animate({opacity: "show", top: "1"}, "slow"); // show message box with slow opacity
//				$('#black-screen').animate({ opacity:.65 }, "slow");//the messagebox gets scroll up with top property and gets hidden with zero opacity
//				$("#messagebox").stop().animate({opacity: "show", top: "10%", left: "8%"}, "slow"); // show message box with slow opacity
//				$('#messagebox').css('zIndex', '999');
//				$('#messagebox').animate({ opacity:.95 }, "slow");//the messagebox gets scroll up with top property and gets hidden with zero opacity
//				$('#messagebox').click(function()
//						{//close button is clicked
//				$('#black-screen').css('zIndex', '-1');
//				$('#black-screen').animate({ opacity:0 }, "slow");//the messagebox gets zero opacity
//				$('#messagebox').css('zIndex', '-2');
//						jQuery.cookie(cookiename, '1', { expires: 2 }); //sets a new cookie, # days
//						});
//		}
				
});
function jb_specials () 
{
				$("#black-screen").stop().animate({opacity: "show", top: "1"}, "slow"); // show message box with slow opacity
				$('#black-screen').animate({ opacity:.65 }, "slow");//the messagebox gets scroll up with top property and gets hidden with zero opacity
				$("#messagebox").stop().animate({opacity: "show", top: "10%", left: "8%"}, "slow"); // show message box with slow opacity
				$('#messagebox').css('zIndex', '999');
				$('#messagebox').animate({ opacity:.95 }, "slow");//the messagebox gets scroll up with top property and gets hidden with zero opacity
				$('#messagebox').click(function()
						{//close button is clicked
				$('#black-screen').css('zIndex', '-1');
				$('#black-screen').animate({ opacity:0 }, "slow");//the messagebox gets zero opacity
				$('#messagebox').css('zIndex', '-2');
						});

};

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}
function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}
var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		exposition_over = newImage("images/consultation-over.gif");

		preloadFlag = true;
	}
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}