﻿
function ClipBoard()
{
	var field = parent.document.getElementById('txtGadgetEmbed');
	field.select() 
	var Copied = field.createTextRange();
	Copied.execCommand("Copy");
	alert('De tekst is naar het klembord gekopieerd.');
}

var dge=document.getElementById;
function cl_expcol(a){
  if(!dge)return;
    document.getElementById(a).style.display = 
      (document.getElementById(a).style.display=='none')?
      'block':'none';
}

function cl_colall(startYear, exceptYear){

  if(!dge)return;
  
  for(i=startYear;document.getElementById('year'+i);i++)
  {
    if(exceptYear != i)
        document.getElementById('year'+i).style.display='none';
  }
}

   
function MensenLinqRedirect(){  
    
    if (document.getElementById)
    {
        var tbx_search = document.getElementById('tbx_ML_search'); 
        //var rbt_deceased = document.getElementById('rbt_deceased'); 
        //var mensenLinqUrl = "http://www.mensenlinq.nl/";
        var mensenLinqUrl = "http://nl.sitestat.com/mensenlinq/mensenlinq/s?clickin.familieband&ns_type=clickout&ns_url=";
        var currentTime = new Date()
	    var trackLink = "/outgoing/mensenlinq/"  

        var day = currentTime.getDay();
        var month = currentTime.getMonth()+1;
        var year = currentTime.getFullYear();
    
        //if(rbt_deceased.checked){
            //mensenLinqUrl += "mensenlinq/overlijdennl/site/advertentie/overzicht?zoekad=1&cookieupdate=1&advzoek_zoek=" + tbx_search.value + "&advzoek_titel=&advzoek_periode=p&advzoek_dag="+day+"&advzoek_maand="+month+"&advzoek_jaar="+year+"&advzoek_vandag=1&advzoek_vanmaand=1&advzoek_vanjaar=2006&advzoek_totdag="+day+"&advzoek_totmaand="+month+"&advzoek_totjaar="+year;
            mensenLinqUrl += "http://www.mensenlinq.nl/mensenlinq/overlijdennl/site/advertentie/overzicht?zoekad=1&cookieupdate=1&advzoek_plaats=&advzoek_voornaam=&advzoek_zoek=" + tbx_search.value + "&advzoek_titel=&advzoek_periode=p&advzoek_dag="+day+"&advzoek_maand="+month+"&advzoek_jaar="+year+"&advzoek_vandag=1&advzoek_vanmaand=1&advzoek_vanjaar=2006&advzoek_totdag="+day+"&advzoek_totmaand="+month+"&advzoek_totjaar="+year;
	    trackLink += "overlijden";
        /*}else{
            mensenLinqUrl = "http://www.ikbendeleukste.nl/ikbendeleukste/doShowSearchResults.do?doFunction=search&lastName=" + tbx_search.value;
	    trackLink += "geboorte";
        }*/
    
        if((_gaq != null) && (_gaq.push != null))
        {
			_gaq.push(['_trackPageview',trackLink]);
        }
        
        //alert(mensenLinqUrl);
        window.open(mensenLinqUrl);
    }
}

   
function ExternalRedirect(url)
{   
   	var trackLink = "/outgoing/";
   	
   	if(url.match('mensenlinq.nl'))
   	{
   	    trackLink += "mensenlinq/overlijden";
   	}
   	else if(url.match('ikbendeleukste.nl'))
    {
        trackLink += "mensenlinq/geboorte";
    }
    else if(url.match('ad.nl'))   
    {
        trackLink += "ad";
    }else{
        trackLink += fnGetDomain(url);
    }
    
    if((pageTracker != null) && (pageTracker._trackPageview != null))
    {
		pageTracker._trackPageview(trackLink);
    }
        
    window.open(url);

}

function fnGetDomain(url) {
   return url.match(/:\/\/www.(.[^/]+)/)[1];
}


/* Action hovers */
function ActionItemOver(actionItem, deleteItem)
{
	$("#"+actionItem.id).css("background-color","#e5e5e5");
	var btnDelete = document.getElementById(deleteItem);
	if(btnDelete != null)
	{
		btnDelete.style.display = "block";
	}
}

function ActionItemOut(actionItem, deleteItem)
{
	$("#"+actionItem.id).css("background-color","#ffffff");
	actionItem.style.background = "#ffffff";
	var btnDelete = document.getElementById(deleteItem);
	if(btnDelete != null)
	{
		btnDelete.style.display = "none";
	}
}

function changeCategory(linkid,hdnid, txtid, ddlid)
{
	var textbox = document.getElementById(txtid);
	var dropdown = document.getElementById(ddlid);
	var link = document.getElementById(linkid);
	var hiddenfield = document.getElementById(hdnid);
	if(dropdown.style.display == "none")
	{
		link.innerHTML = "Nieuwe categorie";
		textbox.style.display = "none";
		dropdown.style.display = "inline";
		hiddenfield.value = "false";
	}
	else
	{
		link.innerHTML = "Bestaande categorie";
		dropdown.style.display = "none";
		textbox.style.display = "inline";
		hiddenfield.value = "true";		
	} 
}

function removeErrorbox(errorbox)
{
	$("#"+ errorbox).slideUp();
}

function removeReaction(reactiondiv, mid, sid, type, uid, url)
{
	confirmModal('Weet je zeker dat je deze reactie wilt verwijderen?', function()
	{
		$("#"+ reactiondiv).slideUp(1000, function() 
		{
			$("#"+ reactiondiv).remove();
			if($("#ReactionItems").html().trim()=='')
			{				
				$("#lblBericht").slideDown("slow"); 
			}		
		});	
		
		$.ajax({
		   type: "POST",
		   url: url,
		   data: "mid="+mid+"&sid="+sid+"&uid="+uid+"&type="+type,
		   error:function (html){
                    $("#ErrorHolder").css({'display' : 'block'}); 
					$("#ErrorHolderText").html(html.responseText);		 
					window.scrollTo(0, 0);
                                    
            } 
		 });		
	});
}

var reactioncount = 1;

function saveReaction(txt, sid, uid, type, url, username)
{	
	var text = "";
	text += $("#"+ txt).val();
	$.ajax({
	  type: "POST",
	  url: url,
	  data: "sid="+sid+"&uid="+uid+"&type="+type + "&count=" + reactioncount+ "&text="+text + "&username=" + username,
	  cache: false,
	  success: function(html){
		$("#"+ txt).val("");			
		$("#ReactionItems").append(html);
		$("#lblBericht").slideUp("slow"); 
		$("#actionItem" + reactioncount).fadeIn(1000);
		reactioncount++;
	  },
	  error: function(html){
		$("#ErrorHolder").css({'display' : 'block'}); 
		$("#ErrorHolderText").html(html.responseText);		 
		window.scrollTo(0, 0);
	  }
	});
}

function saveNote(txt, sid, uid, type, url, username)
{	
	var text = "";
	$("#addLoader").css({'display' : 'block'}); 
	text += $("#"+ txt).val();
	$.ajax({
	  type: "POST",
	  url: url,
	  data: "sid="+sid+"&uid="+uid+"&type="+type + "&count=" + reactioncount+ "&text="+text + "&username=" + username,
	  cache: false,
	  success: function(html){
		$("#"+ txt).val("");			
		$("#allReactions").prepend(html);
		$("#lblBericht").slideUp("slow"); 
		$("#addLoader").css({'display' : 'none'}); 
		$("#actionItem" + reactioncount).fadeIn("slow");
		reactioncount++;
	  },
	  error: function(html){
		$("#ErrorHolder").css({'display' : 'block'}); 
		$("#addLoader").css({'display' : 'none'}); 
		$("#ErrorHolderText").html(html.responseText);		 
		window.scrollTo(0, 0);
	  }
	});
}

function removeAction(actiondiv, aid, type, uid, dtClss, url)
{
	confirmModal('Weet je zeker dat je dit bericht wilt verwijderen?', function()
	{
		$("#"+ actiondiv).fadeOut("slow", function()
		{			
			if($("#"+actiondiv+" ."+dtClss).css('display') != 'none')
			{
				$("."+dtClss+":first").remove();

				$("."+dtClss+"Line:first").remove();
				$("."+dtClss+":first").css({'display' : 'block'});
			}
			
			var parentDiv = $("#"+ actiondiv).parent();
			$("#"+ actiondiv).remove();

			if(parentDiv.attr('id') != 'Actions20')
			{	
				if(parentDiv.html().trim() == '')
				{
					parentDiv.remove();
				}
			}		
			

			if($("#Actions20").html().trim() == '')
			{
				var noMessages = document.createElement('div');
				noMessages.className = "Center ActionNoMessage";
				
				noMessages.innerHTML = 'Er zijn geen berichten meer.';
				
				$("#Actions20").append(noMessages);
			}
			
			
			$.ajax({
			   type: "POST",
			   url: url,
			   data: "aid="+aid+"&uid="+uid+"&type="+type,
			   error:function (objRequest){					
					$("#ErrorHolder").css({'display' : 'block'}); 
					$("#ErrorHolderText").text(objRequest.responseText); 
					window.scrollTo(0, 0);               
				} 
			 });			
		});
	});	
}

var actionSetId = 0;
var canLoad = 1;				
function moreActions(la_uid, filt, hdnfD, hdnfI, url)
{
	if (canLoad == 1)
	{
		canLoad = 0;
		$("#LoadingActions").slideDown(100);
	
		ldate = document.getElementById(hdnfD).getAttribute("value");
		l_aid = document.getElementById(hdnfI).getAttribute("value");
		
		$.ajax({
			type: "POST",
			url: url,	
			data: "la_uid="+la_uid+"&filt="+filt+"&ldate="+ldate+"&l_aid="+l_aid, 
			cache: false,
			success: function(result){ 
				$("#Actions20").append(result); 
				$("#actionsAdded" + l_aid).fadeIn("slow", function(){
						$("#LoadingActions").slideUp(100);
					});
				
				if(document.getElementById("hiddenLastDate").innerHTML == '')
				{
					$("#MoreButtonDiv").slideUp(10);
				}
				else
				{
					$("#MoreButtonDiv").slideDown(10);
				}

				document.getElementById(hdnfD).setAttribute("value", 
					document.getElementById("hiddenLastDate").innerHTML);

				document.getElementById(hdnfI).setAttribute("value", 
					document.getElementById("hiddenLastActionId").innerHTML);
														
				$("#hiddenLastDate").remove();
				$("#hiddenLastActionId").remove();

				actionSetId++;
			},
			error:function (objRequest){ 
				$("#ErrorHolderText").text("Fout bij het ophalen van berichten.");
				$("#LoadingActions").slideUp(100);
				$("#ErrorHolder").css({'display' : 'block'});
				window.scrollTo(0, 0);
			} 
		});	
		
		canLoad = 1;
	}					
}

function showSmileys(btn, div)
{
	if($("#"+btn).text() == "Verberg emoticons")
	{
		$("#"+btn).text("Toon emoticons");
	}
	else
	{
		$("#"+btn).text("Verberg emoticons");
	}
	
	$("#"+div).toggle();
}

function addSmiley(tfield, smiley)
{
	var field = document.getElementById(tfield);
	insertAtCursor(field, smiley);
	field.focus();
}


function checkCharsLeft(tfield, leftField, nmChars, button, disabledButton)
{
	var field = document.getElementById(tfield);
	if(field.value.length>=800) 
	{
		$("#"+leftField).html("Tekens: "+(nmChars - field.value.length).toString());
	}
	else
	{
		$("#"+leftField).html("&nbsp;");
	}
	
	if(field.value.length>1000)
	{		
		$("#"+button).css("display","none");
		$("#"+disabledButton).css("display","block");
		$("#"+leftField).removeClass("charsLeftClass").addClass("charsLeftClassError");
		return false;
	}
	else 
	{
		$("#"+button).css("display","block");
		$("#"+disabledButton).css("display","none");
		$("#"+leftField).removeClass("charsLeftClassError").addClass("charsLeftClass");
	}
	return true;
}

var actionSetId = 0;				
function saveUserMessage(txt, uid, url)
{
	$(".ToggleSmiley").text("Toon emoticons");
	$(".ActionSmilies").hide();

	$("#LoadingSingleAction").show();

	$.ajax({
		  type: "POST",
		  url: url,
		  data: "uid="+uid+"&count="+actionSetId+"&text="+$("#"+ txt).val(),
		  cache: false,
		  success: function(html){
			$("#LoadingSingleAction").hide();
			$("#"+ txt).val("");
		
			$("#Actions20").prepend(html);			
			$("#singleActionAdded" + actionSetId).fadeIn("slow");
								
			var newDiv = document.createElement("div");
			var divContainer = document.createElement("div");
			newDiv.className = "ActionLineNoDate";
			divContainer.appendChild(newDiv);
			divContainer.className = "TodayClassLine";
			
			$(".TodayClass:eq(1)").parent().prepend(divContainer);
			$(".TodayClass:eq(1)").css({'display' : 'none'});
			
			$(".ActionNoMessage").remove();
			
			actionSetId++;
		  },
		  error: function(html){
				$("#LoadingSingleAction").slideUp(100);
				$("#ErrorHolderText").html(html.responseText);							
				$("#ErrorHolder").css({'display' : 'block'});
				window.scrollTo(0, 0); 
		  }
	});
}

var filterLoading = false;
function filterActions(la_uid, filt, hdnfD, hdnfI, btnAll, btnMe, url)
{
	if (!filterLoading)
	{
		filterLoading = true;
		
		if(filt == "True")
		{
			document.getElementById("FilterAllTab").className = "ActionFilterTabInActive";
			document.getElementById("FilterMeTab").className  = "ActionFilterTabActive";
			
			document.getElementById(btnAll).className = "HyperLinkGray";
			document.getElementById(btnMe).className  = "HyperLinkBlack";
		}
		else
		{
			document.getElementById("FilterAllTab").className = "ActionFilterTabActive";
			document.getElementById("FilterMeTab").className  = "ActionFilterTabInActive";
										
			document.getElementById(btnAll).className = "HyperLinkBlack";
			document.getElementById(btnMe).className  = "HyperLinkGray";
		}
				
		$("#Actions20").fadeOut(200, function(){
			$("#Actions20").empty(); 	
			$("#Actions20").show();
			
			document.getElementById(hdnfD).setAttribute("value", "");
			document.getElementById(hdnfI).setAttribute("value", "");
			moreActions(la_uid, filt, hdnfD, hdnfI, url);
			
			filterLoading = false;
		});
		
	}
}

function getActionRequests(url)
{
	$("#ActionRequestItems").empty();
	$("#loadingActionRequests").css({'display' : 'block'});

	$.ajax({
		  type: "POST",
		  url: url,
		  data : {},
		  cache: false,
		  success: function(html){
		  
			if(html.trim() == '')
			{
				$("#actionRequest").fadeOut();
			}
			else
			{
				$("#ActionRequestItems").html(html);
								
				$("#loadingActionRequests").css({'display' : 'none'});
				$("#ActionRequestItems").fadeIn("slow");
			}
		  },
		  error: function(html){
				$("#loadingActionRequests").fadeOut("slow");
				$("#ErrorHolderText").html(html.responseText);							
				$("#ErrorHolder").css({'display' : 'block'});
				window.scrollTo(0, 0); 
		  }
	});
}

function processActionRequest(aid, nst, s_uid, pid, accpt, url, url2)
{
	$("#ActionRequestItems").css({'display' : 'none'});
	$("#loadingActionRequests").css({'display' : 'block'});
	
	$.ajax({
		  type: "POST",
		  url: url,			
		  data: "aid="+aid+"&nst="+nst+"&s_uid="+s_uid+"&pid="+pid+"&accpt="+accpt,			  
		  cache: false,
		  success: function(html){
				getActionRequests(url2);
		  },
		  error: function(html){
				$("#loadingActionRequests").fadeOut();
				$("#ErrorHolderText").html(html.responseText);							
				$("#ErrorHolder").css({'display' : 'block'});
				window.scrollTo(0, 0); 
		  }
	});
}

function insertAtCursor(myField, myValue) {
	if (document.selection) { //IE
		myField.focus();
		sel = document.selection.createRange();
		sel.text = myValue;
	}					
	else if (myField.selectionStart || myField.selectionStart == '0') { //MOZILLA/NETSCAPE
		var startPos = myField.selectionStart;
		var endPos = myField.selectionEnd;
		myField.value = myField.value.substring(0, startPos) + myValue + myField.value.substring(endPos, myField.value.length);
		
		startPos = startPos + myValue.length;
		myField.selectionStart = startPos;
		myField.selectionEnd = startPos;
	} 
	else { //all the others
		myField.value += myValue;
	}
}

var hdnid;
function changealbumWithId(id, uid, url, hdn) 
{
	aid = id;
	hdnid = hdn;
	$("#chooseblogphoto").text("");
	$("#LoadingActions").show();	
	$.ajax({
		   type: "POST",
		   url: url,
		   data: "aid="+aid+"&uid="+uid,
		   success: function (html){
					$("#LoadingActions").hide();
					$("#chooseblogphoto").text("");
                    $("#chooseblogphoto").append(html); 
                    $('#moving').serialScroll({
                     target:'#pictures',
					 items:'li',
					 prev:'img.prev',
					 next:'img.next',
					 navigation:'#navigation a',
					 axis:'x',
					 step:1,
					 start:0, //as we are centering it, start at the 2nd
					 duration:1200,
					 force:true,
					 stop:true,
					 cycle:false,
					 lock:false//don't pull back once you reach the end
					 });                 
            }, 
		   error:function (objRequest){
					$("#ErrorBoxText").text("Er is iets fout gegaan bij het laden van de afbeeldingen"); 
                    $("#ErrorHolder").css({'display' : 'block'});                  
            } 
		 });	  
}  

function changealbum(oList, uid, url, hdn) 
{
	aid = oList.options[oList.selectedIndex].value;
	changealbumWithId(aid, uid, url, hdn);
}    

var images;


function addblogImage(url, id)
{
	if(images == null)
	{
		images = new Array();
	}
	var add = true;
	for(i = 0; i < images.length; i++)
	{
		if(images[i] == id)
			add = false;
	}	
	if(add)
	{
		images.push(id);
		var idstring = "img_"+id;
		$("#photolist").append("<li>" +
								"<div class=\"Clickable\" onmouseover=\"javascript:showOverlayOn('imgover_"+id+"')\" onmouseout=\"javascript:showOverlayOut('imgover_"+id+"')\" style='display:none;'>" +
								"<img id=\"img_"+id+"\" class=\"Clickable\" src='"+url+"' onclick=\"removeblogImage('"+id+"')\" />" + 
								"<span id=\"imgover_"+id+"\" style=\"display:none;\" onclick=\"removeblogImage('"+id+"');\" class=\"LayoverBlogImage\"><br /><br /><br />Klik om te verwijderen</span>" +
								"</div>" +
								"</li>");
		$("#" + idstring).parent().fadeIn(1000 , function () {
		$('#blogphotos').serialScroll({
                     target:'#photos',
					 items:'li',
					 lazy: true,
					 prev:'img.prev',
					 next:'img.next',
					 axis:'x',
					 step:1,
					 start:images.length-3, //as we are centering it, start at the 2nd
					 duration:1000,
					 force:true,
					 stop:false,
					 cycle:false,
					 lock:true//don't pull back once you reach the end
					 }); });
	}
	setHiddenImages();
}  

function setHiddenImages()
{
	var val = "";
	if(images.length > 0)
	{
		$("#lblPictures").slideUp(1000);
		$("#blogphotos").slideDown(1000);       
	}
	else
	{
		$("#lblPictures").slideDown(1000); 
		$("#blogphotos").slideUp(1000);
	}
	for(i = 0; i< images.length; i++)
	{
		val += images[i].toString();
		if(i != images.length -1)
			val += ",";		
	}
	$("#"+hdnid).val(val);	
}


function removeblogImage(id)
{
	$("#img_"+id).parent().fadeOut( 1000, function () {
        $("#img_"+id).parent().parent().remove();
		for(i = 0; i < images.length; i++)
		{
			if(images[i] == id)
			{
				images.splice(i,1);
				index = i;
			}
		}
		$('#blogphotos').serialScroll({
						 target:'#photos',
						 items:'li',
						 lazy: true,
						 prev:'img.prev',
						 next:'img.next',
						 axis:'x',
						 step:1,
						 start:index-2, //as we are centering it, start at the 2nd
						 duration:1000,
						 force:true,
						 stop:false,
						 lock:true,
						 cycle:false
						 }); 
		setHiddenImages();
		  });
}

function initEditBlog(hdn,ids)
{
	hdnid = hdn;
	images = new Array();
	$('#blogphotos').serialScroll({
                     target:'#photos',
					 items:'li',
					 lazy: true,
					 prev:'img.prev',
					 next:'img.next',
					 axis:'x',
					 step:1,
					 start:0, //as we are centering it, start at the 2nd
					 duration:1000,
					 force:true,
					 stop:false,
					 lock:true,
					 cycle:false
					 }); 
	if(ids.length > 0)
	{
		images = ids.split(',');
	}
	setHiddenImages();	
}

function setPhotoIds(ids)
{
	if(ids.length > 0)
	{
		images = ids.split(',');
	}
	
	$('#blogphotos').serialScroll({
				 target:'#photos',
				 items:'li',
				 lazy: true,
				 prev:'img.prev',
				 next:'img.next',
				 axis:'x',
				 step:1,
				 start:0, 
				 duration:1000,
				 force:true,
				 stop:false,
				 cycle:false,
				 lock:true//don't pull back once you reach the end
				 }); 	
	setHiddenImages();	
}

function showOverlayOut(div)
{
	$('#'+div).css({'display' : 'none'}); 
	$('#'+div).css({'background-color' : '#111'}); 
}

function showOverlayOn(div)
{
	$('#'+div).css({'display' : 'inline'}); 
	$('#'+div).css({'opacity' : '0.8'}); 
	$('#'+div).css({'background-color' : '#111'}); 
}


var notecount = 0;
function getConversation(hndLst, uid, cid, url, morebtn)
{	
	notecount++;
	var lid = $('#'+hndLst).val();
	$("#LoadingNotes").css({'display' : 'block'});
	$.ajax({
		   type: "POST",
		   url: url,
		   data: "lid="+lid+"&uid="+uid+"&cid="+cid+"&count="+notecount,
		   success: function (html){					
                    $("#ReactionItems").append(html); 
                    if($("#hiddenLastId").html()=="-1")
                    {											 
						$("#" + morebtn).css({'display' : 'none'});
						$("#hiddenLastId").remove();
                    }
                    else {							
						$('#'+hndLst).val($("#hiddenLastId").html()); 
						$("#hiddenLastId").remove(); 
                    }                    
                    $("#LoadingNotes").css({'display' : 'none'});
                    $("#newNotes"+notecount).fadeIn(1000);                          
            }, 
		   error:function (html){
					$("#LoadingNotes").css({'display' : 'none'});
					$("#ErrorBoxText").html(html.responseText);	
                    $("#ErrorHolder").css({'display' : 'block'});                  
            } 
		 });	
}

var oldClass;
var oldPercentage;

function showPercentage(visible, currentPercentage, addPercentage, addWidth)
{
    var divAdd = document.getElementById("divAdd");
    var divEnd = document.getElementById("divEnd");
    var divPercentage = document.getElementById("PercentageNumber");
    
    if(visible)
    {
        oldClass = divEnd.className;
        oldPercentage = divPercentage.innerHTML;
        
        divAdd.style.width = addWidth +"px";   
        
        var totalPercentage = (currentPercentage + addPercentage);
        if(totalPercentage < 100)
            divEnd.className = "end endGrey"; 
        else
        {
            divEnd.className = "end endComplete";
            totalPercentage = 100;
        }
            
        divPercentage.innerHTML = totalPercentage +"%";
    }
    else
    {
        divPercentage.innerHTML = oldPercentage;
        divAdd.style.width = "0px";       
        divEnd.className = oldClass;
    }
}

/*
 * SimpleModal Confirm Modal Dialog
 * http://www.ericmmartin.com/projects/simplemodal/
 * http://code.google.com/p/simplemodal/
 *
 * Copyright (c) 2009 Eric Martin - http://ericmmartin.com
 *
 * Licensed under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 *
 * Revision: $Id: confirm.js 185 2009-02-09 21:51:12Z emartin24 $
 *
 */
function confirmModal(message, callback) {
	
	$('#confirm').modal({
		close:false,
		opacity: 0,
		overlayId:'confirmModalOverlay',
		containerId:'confirmModalContainer', 
		onShow: function (dialog) {
			dialog.data.find('.message').append(message);

			// if the user clicks "yes"
			dialog.data.find('.yes').click(function () {
				// call the callback
				if ($.isFunction(callback)) {
					callback.apply();
				}
				// close the dialog
				$.modal.close();											
			});
		},
		onClose: function (dialog) {
			$('#confirmModalContainer').removeShadow();
			$.modal.close();
		}
	});
	$('#confirmModalContainer').dropShadow({left: 5, top: 5, opacity: 1.2, blur: 1});
}