var myLastInfo;

var universe_1 = new Array("rubric_3408","article_3768","article_3413","article_3414","article_3415","article_3767","article_3416","article_3417","article_3418","article_3419");
var universe_2 = new Array("rubric_3409","article_3769","article_3420","article_3421","article_3422","article_3423","article_3424");
var universe_3 = new Array("rubric_3410","article_3803","article_3425","article_3426","article_3427","article_3428");

// Types de pages :
// u -> univers
// s -> salon
var myProductType = new Array();
var myProductItem = new Array();
// HOME
myProductType['frontpage_949'] = 'u';
myProductItem['frontpage_949'] = '04';
// MAISON & ENVIRONNEMENT
myProductType['article_3768'] = 'u';
myProductItem['article_3768'] = '01';
// Cuisine, salle de bains & électroménager
myProductType['article_3413'] = 's';
myProductItem['article_3413'] = '07';
// Construction & rénovation - Energie
myProductType['article_8824'] = 's';
myProductItem['article_8824'] = '06';
// Construction & rénovation - Bâtiment
myProductType['article_3415'] = 's';
myProductItem['article_3415'] = '05';
// Cheminée
myProductType['article_3414'] = 's';
myProductItem['article_3414'] = '04';
// Jardin & véranda
myProductType['article_3416'] = 's';
myProductItem['article_3416'] = '10';
// Piscine
myProductType['article_3417'] = 's';
myProductItem['article_3417'] = '13';
// Ameublement & décoration
myProductType['article_3418'] = 's';
myProductItem['article_3418'] = '02';
// Image & son
myProductType['article_3419'] = 's';
myProductItem['article_3419'] = '09';
// BIEN-ÊTRE & LOISIRS
myProductType['article_3769'] = 'u';
myProductItem['article_3769'] = '02';
// Forme & bien-être
myProductType['article_3420'] = 's';
myProductItem['article_3420'] = '08';
// Accessoires de mode
myProductType['article_3421'] = 's';
myProductItem['article_3421'] = '01';
// Les ateliers créatifs
myProductType['article_3422'] = 's';
myProductItem['article_3422'] = '12';
// Les démonstrateurs
myProductType['article_3423'] = 's';
myProductItem['article_3423'] = '11';
// Résidences & loisirs de plein air
myProductType['article_3424'] = 's';
myProductItem['article_3424'] = '14';
// CULTURES DU MONDE
myProductType['article_3803'] = 'u';
myProductItem['article_3803'] = '03';
// Richesses du monde
myProductType['article_3425'] = 's';
myProductItem['article_3425'] = '15';
// Terres des tropiques
myProductType['article_3426'] = 's';
myProductItem['article_3426'] = '16';
// Artisanat & métiers d'art
myProductType['article_3427'] = 's';
myProductItem['article_3427'] = '03';
// Vins & gastronomie
myProductType['article_3428'] = 's';
myProductItem['article_3428'] = '17';


$(document).ready(function(){ 
	$("div.factbox-design").click(factbox_handler);
	$('#header div#topmenu div#navigation ul.navigation_niv_2 > .navigation_3768').css('display', 'none');
	$('#header div#topmenu div#navigation ul.navigation_niv_2 > .navigation_3769').css('display', 'none');
	$('#header div#topmenu div#navigation ul.navigation_niv_2 > .navigation_3803').css('display', 'none');
	if ($('body').attr('id') != '' && $('body').attr('id') == 'frontpage_949')
	{
		$('#block-0e09ba9a742fbec3a8c37085e965aeb3').html('');
		var transport = new easyXDM.Socket(/** The configuration */{
			remote: "http://fdp2011.napsy.net/wsp/proxy.html?url=projets_home.php",
			container: "block-0e09ba9a742fbec3a8c37085e965aeb3",
			onMessage: function(message, origin){
				this.container.getElementsByTagName("iframe")[0].style.height = message + "px";
				$('iframe').attr('scrolling', 'no');
			}
		});
	}
	if ($("body").attr("id") == "article_3699alpha")
	{
		if ((getUrlVars()["id"]) || (getUrlVars()["id"] != ''))
		{
			$('#zone_content').html('');
			var transport = new easyXDM.Socket(/** The configuration */{
				remote: "http://fdp2011.napsy.net/wsp/proxy.html?url=projets_detail.php&langue=fr&id="+getUrlVars()["id"],
				container: "zone_content",
				onMessage: function(message, origin){
					this.container.getElementsByTagName("iframe")[0].style.height = message + "px";
					$('iframe').attr('scrolling', 'no');
				}
			});
		} else {
			var transport = new easyXDM.Socket(/** The configuration */{
				remote: "http://fdp2011.napsy.net/wsp/proxy.html?url=projets_detail.php&langue=fr&id=0",
				container: "zone_content",
				onMessage: function(message, origin){
					this.container.getElementsByTagName("iframe")[0].style.height = message + "px";
					$('iframe').attr('scrolling', 'no');
				}
			});
		}
	}
	if ($("body").attr("id") == "article_3699")
	{
		if ((getUrlVars()["id"]) || (getUrlVars()["id"] != ''))
		{
			$('#zone_content').html('');
			var transport = new easyXDM.Socket(/** The configuration */{
				remote: "http://fdp2011.napsy.net/wsp2/proxy.html?url=projets_detail.php&langue=fr&id="+getUrlVars()["id"],
				container: "zone_content",
				onMessage: function(message, origin){
					this.container.getElementsByTagName("iframe")[0].style.height = message + "px";
					$('iframe').attr('scrolling', 'no');
				}
			});
		} else {
			var transport = new easyXDM.Socket(/** The configuration */{
				remote: "http://fdp2011.napsy.net/wsp2/proxy.html?url=projets_detail.php&langue=fr&id=0",
				container: "zone_content",
				onMessage: function(message, origin){
					this.container.getElementsByTagName("iframe")[0].style.height = message + "px";
					$('iframe').attr('scrolling', 'no');
				}
			});
		}
	}
	/* DEV */
	if ($("body").attr("id") == "article_9641")
	{
		if ((getUrlVars()["offer"]) || (getUrlVars()["offer"] != ''))
		{
			$('#zone_content').html('');
			var transport = new easyXDM.Socket(/** The configuration */{
				remote: "http://fdp2011.napsy.net/wsp2/proxy2.html?url=liste_produits.php&offer="+getUrlVars()["id"],
				container: "zone_content",
				onMessage: function(message, origin){
					this.container.getElementsByTagName("iframe")[0].style.height = message + "px";
					$('iframe').attr('scrolling', 'no');
				}
			});
		} else {
			var transport = new easyXDM.Socket(/** The configuration */{
				remote: "http://fdp2011.napsy.net/wsp2/proxy2.html?url=liste_produits.php",
				container: "zone_content",
				onMessage: function(message, origin){
					this.container.getElementsByTagName("iframe")[0].style.height = message + "px";
					$('iframe').attr('scrolling', 'no');
				}
			});
		}
	}
	if ($("body").attr("id") == "article_6578")
	{
		//alert(getUrlVars());
		if (getUrlVars()["id"] && getUrlVars()["id"] != "" && getUrlVars()["id"] != undefined)
		{
			$('#zone_content').html('');
			var transport = new easyXDM.Socket(/** The configuration */{
				remote: "http://fdp2011.napsy.net/wsp2/proxy.html?url=fiche_exposant.php&langue=fr&id="+getUrlVars()["id"],
				container: "zone_content",
				onMessage: function(message, origin){
					this.container.getElementsByTagName("iframe")[0].style.height = message + "px";
					$('iframe').attr('scrolling', 'no');
				}
			});
		} else if (getUrlVars()["pid"] && getUrlVars()["pid"] != "" && getUrlVars()["pid"] != undefined)
		{
			$('#zone_content').html('');
			var transport = new easyXDM.Socket(/** The configuration */{
				remote: "http://fdp2011.napsy.net/wsp2/proxy.html?url=fiche_exposant.php&langue=fr&pid="+getUrlVars()["pid"],
				container: "zone_content",
				onMessage: function(message, origin){
					this.container.getElementsByTagName("iframe")[0].style.height = message + "px";
					$('iframe').attr('scrolling', 'no');
				}
			});
		} else if (getUrlVars()["letter"] && getUrlVars()["letter"] != "" && getUrlVars()["letter"] != undefined) {
			$('#zone_content').html('');			
			var transport = new easyXDM.Socket(/** The configuration */{
				remote: "http://fdp2011.napsy.net/wsp2/proxy.html?url=liste_exposants.php&langue=fr&letter="+getUrlVars()["letter"],
				container: "zone_content",
				onMessage: function(message, origin){
					this.container.getElementsByTagName("iframe")[0].style.height = message + "px";
					$('iframe').attr('scrolling', 'no');
				}
			});
		} else if (getUrlVars()["lookfor"] && getUrlVars()["lookfor"] != "" && getUrlVars()["lookfor"] != undefined) {
			$('#zone_content').html('');			
			var transport = new easyXDM.Socket(/** The configuration */{
				remote: "http://fdp2011.napsy.net/wsp2/proxy.html?url=liste_exposants.php&langue=fr&lookfor="+getUrlVars()["lookfor"],
				container: "zone_content",
				onMessage: function(message, origin){
					this.container.getElementsByTagName("iframe")[0].style.height = message + "px";
					$('iframe').attr('scrolling', 'no');
				}
			});
		} else if (getUrlVars()["offer"] && getUrlVars()["offer"] != "" && getUrlVars()["offer"] != undefined && !getUrlVars()["so"] && !getUrlVars()["sso"]) {
			$('#zone_content').html('');			
			var transport = new easyXDM.Socket(/** The configuration */{
				remote: "http://fdp2011.napsy.net/wsp2/proxy.html?url=liste_exposants.php&langue=fr&offer="+getUrlVars()["offer"],
				container: "zone_content",
				onMessage: function(message, origin){
					this.container.getElementsByTagName("iframe")[0].style.height = message + "px";
					$('iframe').attr('scrolling', 'no');
				}
			});
		} else if (getUrlVars()["offer"] && getUrlVars()["offer"] != "" && getUrlVars()["offer"] != undefined && getUrlVars()["so"] && getUrlVars()["so"] != "" && getUrlVars()["so"] != undefined && !getUrlVars()["sso"]) {
			$('#zone_content').html('');			
			var transport = new easyXDM.Socket(/** The configuration */{
				remote: "http://fdp2011.napsy.net/wsp2/proxy.html?url=liste_exposants.php&langue=fr&offer="+getUrlVars()["offer"]+"&so="+getUrlVars()["so"],
				container: "zone_content",
				onMessage: function(message, origin){
					this.container.getElementsByTagName("iframe")[0].style.height = message + "px";
					$('iframe').attr('scrolling', 'no');
				}
			});
		} else if (getUrlVars()["offer"] && getUrlVars()["offer"] != "" && getUrlVars()["offer"] != undefined && getUrlVars()["so"] && getUrlVars()["so"] != "" && getUrlVars()["so"] != undefined && getUrlVars()["sso"] && getUrlVars()["sso"] != "" && getUrlVars()["sso"] != undefined) {
			$('#zone_content').html('');			
			var transport = new easyXDM.Socket(/** The configuration */{
				remote: "http://fdp2011.napsy.net/wsp2/proxy.html?url=liste_exposants.php&langue=fr&offer="+getUrlVars()["offer"]+"&so="+getUrlVars()["so"]+"&sso="+getUrlVars()["sso"],
				container: "zone_content",
				onMessage: function(message, origin){
					this.container.getElementsByTagName("iframe")[0].style.height = message + "px";
					$('iframe').attr('scrolling', 'no');
				}
			});
		} else {
			$('#zone_content').html('');			
			var transport = new easyXDM.Socket(/** The configuration */{
				remote: "http://fdp2011.napsy.net/wsp2/proxy.html?url=liste_exposants.php&langue=fr",
				container: "zone_content",
				onMessage: function(message, origin){
					this.container.getElementsByTagName("iframe")[0].style.height = message + "px";
					$('iframe').attr('scrolling', 'no');
				}
			});
		}
	}
	if($.browser.msie && $.browser.version=="6.0")
	{
		$('img').pngfix();
	} else {
		if ($('#sitemap') && $('#footer'))
		{
			/**/
			var sitemap_tmp = $("#sitemap").html();
			$("#sitemap").html('<div id="sitemapcontent"><a href="http://itunes.apple.com/fr/app/foire-de-paris-2011/id429405168?mt=8" id="BTN_04"><img src="/extension/comexposiumsites/design/foiredeparis/images/css/BTN_04.png" title="" alt="" /></a>'+sitemap_tmp+'</div>');
			var w = $(document).width();
			$('#sitemap').css("width", w);
			$('#sitemap').css("margin-left", -((w-1000)/2)-10);
			var footer_tmp = $("#footer").html();
			$("#footer").html('<div id="footercontent">'+footer_tmp+'</div>');
			$('#footer').css("width", w);
			$('#footer').css("margin-left", -((w-1000)/2)-10);
			/**/
		}
	}
	if ($('body').attr('id') != '' && $('body').attr('id') == 'frontpage_949')
	{
		$(".block-NArticleDynamic").prepend("<div id='jcarousel-control'></div>");
		var nb = $(".Layout_1 .block-NArticleDynamic .border-bottom-right > .block-article-item").size();
		for (var i=1; i <= nb; i++)
		{
			$("#jcarousel-control").append("<a href='javascript:' class='homeCarouselBtn'><img src='/extension/comexposiumsites/design/foiredeparis/images/css/PICTO_04-off.gif' alt='"+i+"' title='"+i+"' /><span style='display:none;'>"+i+"</span></a>");
		}
		$("#block-d604c0d7915b064a417da43c9b8ea9ac").css("display", "");
		//$("#block-16e66e876e22ad0c72c38d169a9aca2b").css("display", "none");
		init_home_carousel();
	} else {
		$("#block-f38ead76ddf745878f30644446d49c17").css("display", "none");
		$("#block-d604c0d7915b064a417da43c9b8ea9ac").css("display", "");
		//$("#block-16e66e876e22ad0c72c38d169a9aca2b").css("display", "");
		//$("#zone_content").prepend($("#block-d604c0d7915b064a417da43c9b8ea9ac"));
		init_universe();
	}
}); 

function init_universe()
{
	if (universe_1.indexOf($('body').attr('id')) !== -1)
	{
		$("#page").prepend("<div id='PICTO_PAGE'><img src='/extension/comexposiumsites/design/foiredeparis/images/css/PICTO_06-1.png' /></div>");
		$("#page .Layout_1 .bloc_article h2").css("color", "#5796a0");
		$("#page .Layout_1 .bloc_article h3").css("color", "#79becb");
		$("#page .Layout_1 .bloc_article li").css("background", "url(/extension/comexposiumsites/design/foiredeparis/images/css/PUCE_00-1.gif) no-repeat 0px 7px");
		$("#page .Layout_1 .bloc_article h3").css("background", "url(/extension/comexposiumsites/design/foiredeparis/images/css/PICTO_08-1.gif) no-repeat 0px 50%");
	} else if (universe_2.indexOf($('body').attr('id')) !== -1)
	{
		$("#page").prepend("<div id='PICTO_PAGE'><img src='/extension/comexposiumsites/design/foiredeparis/images/css/PICTO_06-2.png' /></div>");
		$("#page .Layout_1 .bloc_article h2").css("color", "#756857");
		$("#page .Layout_1 .bloc_article h3").css("color", "#d6b386");
		$("#page .Layout_1 .bloc_article li").css("background", "url(/extension/comexposiumsites/design/foiredeparis/images/css/PUCE_00-3.gif) no-repeat 0px 7px");
		$("#page .Layout_1 .bloc_article h3").css("background", "url(/extension/comexposiumsites/design/foiredeparis/images/css/PICTO_08-2.gif) no-repeat 0px 50%");
	} else if (universe_3.indexOf($('body').attr('id')) !== -1)
	{
		$("#page").prepend("<div id='PICTO_PAGE'><img src='/extension/comexposiumsites/design/foiredeparis/images/css/PICTO_06-3.png' /></div>");
		$("#page .Layout_1 .bloc_article h2").css("color", "#9bb220");
		$("#page .Layout_1 .bloc_article h3").css("color", "#d1e345");
		$("#page .Layout_1 .bloc_article li").css("background", "url(/extension/comexposiumsites/design/foiredeparis/images/css/PUCE_00-2.gif) no-repeat 0px 7px");
		$("#page .Layout_1 .bloc_article h3").css("background", "url(/extension/comexposiumsites/design/foiredeparis/images/css/PICTO_08-3.gif) no-repeat 0px 50%");
	} else {
		$("#page").prepend("<div id='PICTO_PAGE'><img src='/extension/comexposiumsites/design/foiredeparis/images/css/PICTO_06-4.png' /></div>");
	}
	/*
	if ($('body').attr('id') == "sitemap_3653" || $('body').attr('id') == "survey_3652" || $('body').attr('id') == "article_3642" || $('body').attr('id') == "rubric_3678" || $('body').attr('id') == "article_3698" || $('body').attr('id') == "page" || $('body').attr('id') == "article_4265" || $('body').attr('id') == "article_4951" || $('body').attr('id') == "article_3430" || $('body').attr('id') == "article_3431" || $('body').attr('id') == "article_3931" || $('body').attr('id') == "article_3432"|| $('body').attr('id') == "article_7010")
	{
		$("#PICTO_PAGE").css("display", "none");
	}
	*/
	if ($('body').attr('id') == "article_4321" || $('body').attr('id') == "article_4132" || $('body').attr('id') == "article_4152" || $('body').attr('id') == "article_4168" || $('body').attr('id') == "sitemap_3653" || $('body').attr('id') == "survey_3652" || $('body').attr('id') == "article_3642" || $('body').attr('id') == "rubric_3678" || $('body').attr('id') == "article_3698" || $('body').attr('id') == "page" || $('body').attr('id') == "article_4265" || $('body').attr('id') == "article_4951" || $('body').attr('id') == "article_3430" || $('body').attr('id') == "article_3431" || $('body').attr('id') == "article_3931" || $('body').attr('id') == "article_3432" || $('body').attr('id') == "article_5581" || $('body').attr('id') == "article_3699" || $('body').attr('id') == "article_6486" || $('body').attr('id') == "article_6568" || $('body').attr('id') == "article_6578"|| $('body').attr('id') == "article_3430" || $('body').attr('id') == "article_7010" || $('body').attr('id') == "article_list_7403" || $('body').attr('id') == "article_3937" || $('body').attr('id') == "article_3407" || $('body').attr('id') == "rubric_8083" || $('body').attr('id') == "article_9641" || $('body').attr('id') == "rubric_9336" || $('body').attr('id') == "survey_10369" || $('body').attr('id') == "article_11834")
	{
		$("#PICTO_PAGE").css('margin', '-329px 0 0 0');
		$("#PICTO_PAGE").css('left', '-42px');
	}
	if($.browser.msie && $.browser.version=="6.0")
	{
		$('img').pngfix();
	}
	if ($('#block-8ade08ec87a12eb8bc2cb53336366aa1 > div').size() >= 1)
	{
		$('#PICTO_PAGE').css('top', '710px').css('left', '-37px');
		$('#zone2').css('margin', '-116px 0 0 0');
	}
	if ($('#block-7d513ee54e53d9082e7c854d77de404e > div').size() >= 1)
	{
		$('#PICTO_PAGE').css('top', '710px').css('left', '-37px');
		$('#zone2').css('margin', '-116px 0 0 0');
	}
	if ($('#block-f7aeaed123c2c8083fdf4a9b9d2c92d5 > div').size() >= 1)
	{
		$('#PICTO_PAGE').css('top', '710px').css('left', '-37px');
		$('#zone2').css('margin', '-116px 0 0 0');
	}
	if ($('#block-7fbe65534a4ead997fca34625eb5e542 > div').size() >= 1)
	{
		$('#PICTO_PAGE').css('top', '710px').css('left', '-37px');
		$('#zone2').css('margin', '-116px 0 0 0');
	}
}

function init_home_carousel()
{
	var nb = $(".Layout_1 .block-NArticleDynamic .border-bottom-right > .block-article-item").size();
	for (var i=1; i <= nb; i++)
	{
		var obj = $(".Layout_1 .block-NArticleDynamic .border-bottom-right > .block-article-item")[i-1];
		$(obj).fadeOut(0);
	}
	
	var obj = $(".Layout_1 .block-NArticleDynamic .border-bottom-right > .block-article-item")[0];
	$(obj).fadeIn(500);
	
	var obj2 = $(".homeCarouselBtn > img")[0];
	var src = $(obj2).attr('src').replace('-off', '-on');
	$(obj2).attr('src', src);

	myLastInfo = 0;

	$(".homeCarouselBtn").bind('click', function() {
		var nb = $(".Layout_1 .block-NArticleDynamic .border-bottom-right > .block-article-item").size();
		var j = jQuery(this).text();

		for (var i=1; i <= nb; i++)
		{
			var obj = $(".Layout_1 .block-NArticleDynamic .border-bottom-right > .block-article-item")[i-1];
			var obj2 = $(".homeCarouselBtn > img")[i-1];
			var src = $(obj2).attr('src').replace('-on', '-off');
			$(obj2).attr('src', src);
			if (i-1 == myLastInfo)
			{
				$(obj).fadeOut(0);
			}
		}

		myLastInfo = j-1;

		var obj = $(".Layout_1 .block-NArticleDynamic .border-bottom-right > .block-article-item")[j-1];
		$(obj).fadeIn(500);
		var obj2 = $(".homeCarouselBtn > img")[j-1];
		var src = $(obj2).attr('src').replace('-off', '-on');
		$(obj2).attr('src', src);
	});
}

$(window).resize(function() {
	if(!$.browser.msie && !$.browser.version=="6.0")
	{
		if ($('#sitemap') && $('#footer'))
		{
			var w = $(document).width();
			$('#sitemap').css("width", w);
			$('#sitemap').css("margin-left", -((w-1000)/2)-10);
			$('#footer').css("width", w);
			$('#footer').css("margin-left", -((w-1000)/2)-10);
		}
	}
});

function askForID()
{
	if ($('body').attr('id') != '')
	{
		var obj1 = $('body').attr('id');
		var tmp1 = obj1.search('_');
		obj1 = obj1.substring(tmp1 + 1, obj1.length);
		if ($('#anim2'))
		{
			getFlexApp("anim2").returnMyID(obj1);
		}
	}
}
function askForIDP()
{
	if ($('body').attr('id') != '' && $('body').attr('id') != 'page')
	{
		var obj1 = $('body').attr('id');
		var tmp1 = obj1.search('_');
		obj1 = obj1.substring(tmp1 + 1, obj1.length);
		if ($('#partenaires'))
		{
			getFlexApp("partenaires").returnMyIDP(obj1);
		}
	} else {
		hidePartenaires();
	}
}

function hidePartenaires()
{
	$("#partenaires").css("display", "none");
}
		
function showPartenaires()
{
	$("#partenaires").css("display", "block");
	$("#partenaires").css("height", "60px");
}
		
function getFlexApp(appName)
{
	if (navigator.appName.indexOf ("Microsoft") !=-1)
	{
		return window[appName];
	} else {
		return document[appName];
	}
}
function afficheProjet(id)
{
	$(location).attr('href',"/COMMUN/Application?id="+id);
}
function getUrlVars()
{
    var vars = [], hash;
    var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
    for(var i = 0; i < hashes.length; i++)
    {
        hash = hashes[i].split('=');
        vars.push(hash[0]);
        vars[hash[0]] = hash[1];
    }
    return vars;
}

function historyBack()
{
	top.history.back();
}

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-909178-9']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

/******************************************************************************/

/* Gestion des faq */

/******************************************************************************/

function factbox_handler(event){
	var $target = $(event.target);
	if ($target.is("h2"))
	{
		$target.parent().children("div.factbox-content").toggle();
		if ($target.className != "activated")
		{
			$target.toggleClass("activated");
		} else {
			$target.toggleClass("");
		}
	}
}

function hideProducts()
{
$('#block-b05add4dd31e81fcfb44f14c70ac938f').css('display', 'none');
$('#block-c101aebab5c124a01ece3b8c0f3b75a9').css('display', 'none');
$('#block-1b25eaee49043c5b7597494df93bd082').css('display', 'none');
$('#block-bb92b47daee1a9889ececb120b814d8e').css('display', 'none');
}
Shadowbox.init({
	autoplayMovies: true,
	displayNav: true,
	enableKeys: false,
	handleOversize: 'drag',
	overlayColor: '#000000',
	overlayOpacity: 0.8,
	showOverlay: true,
	troubleElements: ["select", "object", "embed", "canvas", "iframe"],
	viewportPadding: 0
});

