/*--SimpleModal 1.3. | http://www.ericmmartin.com/projects/simplemodal/ |--*/

/*--MDS--*/
jQuery.each(jQuery.browser, function(i) {
if($.browser.msie){
$('li.mds').click(function (e) {
	e.preventDefault();
	var src = "works/mds.html";
	$.modal('<iframe src="' + src + '" height="600" width="906" style="border:0">', {
		closeHTML: "<a href='#'><span>Cerrar</span></a>",
		containerCss:{
			backgroundColor: "#fff",
			height: 585,
			padding: 0,
			width: 906,
			overflow: "hidden",
			border: 0
		},
		dataCss:{
			overflow: "hidden",
			height: 585,
			width: 906,
			border: 0
		},
		overlayClose:true,
		onOpen: function (dialog) {
		dialog.overlay.fadeIn(500, function () {
			dialog.data.hide();
			dialog.container.fadeIn(500, function () {
				dialog.data.fadeIn(800);
			});
		});
	}});
});
}else{
	$('li.mds').click(function (e) {
		e.preventDefault();
		var src = "works/mds.html";
		$.modal('<iframe src="' + src + '" height="600" width="900" style="border:0">', {
			closeHTML: "<a href='#'><span>Cerrar</span></a>",
			containerCss:{
				backgroundColor: "#fff",
				height: 570,
				padding: 0,
				width: 900,
				overflow: "hidden",
				border: 0
			},
			dataCss:{
				overflow: "hidden",
				height: 570,
				width: 900,
				border: 0
			},
			overlayClose:true,
			onOpen: function (dialog) {
			dialog.overlay.fadeIn(500, function () {
				dialog.data.hide();
				dialog.container.fadeIn(500, function () {
					dialog.data.fadeIn(800);
				});
			});
		}});
	});
}
});

/*--MEDIATINTA-V2--*/
jQuery.each(jQuery.browser, function(i) {
if($.browser.msie){
$('li.mediatinta2').click(function (e) {
	e.preventDefault();
	var src = "works/mediatinta2.html";
	$.modal('<iframe src="' + src + '" height="600" width="906" style="border:0">', {
		closeHTML: "<a href='#'><span>Cerrar</span></a>",
		containerCss:{
			backgroundColor: "#fff",
			height: 600,
			padding: 0,
			width: 906,
			overflow: "hidden",
			border: 0
		},
		dataCss:{
			overflow: "hidden",
			height: 600,
			width: 906,
			border: 0
		},
		overlayClose:true,
		onOpen: function (dialog) {
		dialog.overlay.fadeIn(500, function () {
			dialog.data.hide();
			dialog.container.fadeIn(500, function () {
				dialog.data.fadeIn(800);
			});
		});
	}});
});
}else{
	$('li.mediatinta2').click(function (e) {
		e.preventDefault();
		var src = "works/mediatinta2.html";
		$.modal('<iframe src="' + src + '" height="600" width="900" style="border:0">', {
			closeHTML: "<a href='#'><span>Cerrar</span></a>",
			containerCss:{
				backgroundColor: "#fff",
				height: 600,
				padding: 0,
				width: 900,
				overflow: "hidden",
				border: 0
			},
			dataCss:{
				overflow: "hidden",
				height: 600,
				width: 900,
				border: 0
			},
			overlayClose:true,
			onOpen: function (dialog) {
			dialog.overlay.fadeIn(500, function () {
				dialog.data.hide();
				dialog.container.fadeIn(500, function () {
					dialog.data.fadeIn(800);
				});
			});
		}});
	});
}
});

/*--GREENHOUSE--*/
jQuery.each(jQuery.browser, function(i) {
if($.browser.msie){
$('li.greenhouse').click(function (e) {
	e.preventDefault();
	var src = "works/greenhouse.html";
	$.modal('<iframe src="' + src + '" height="600" width="906" style="border:0">', {
		closeHTML: "<a href='#'><span>Cerrar</span></a>",
		containerCss:{
			backgroundColor: "#fff",
			height: 600,
			padding: 0,
			width: 906,
			overflow: "hidden",
			border: 0
		},
		dataCss:{
			overflow: "hidden",
			height: 600,
			width: 906,
			border: 0
		},
		overlayClose:true,
		onOpen: function (dialog) {
		dialog.overlay.fadeIn(500, function () {
			dialog.data.hide();
			dialog.container.fadeIn(500, function () {
				dialog.data.fadeIn(800);
			});
		});
	}});
});
}else{
	$('li.greenhouse').click(function (e) {
		e.preventDefault();
		var src = "works/greenhouse.html";
		$.modal('<iframe src="' + src + '" height="600" width="900" style="border:0">', {
			closeHTML: "<a href='#'><span>Cerrar</span></a>",
			containerCss:{
				backgroundColor: "#fff",
				height: 600,
				padding: 0,
				width: 900,
				overflow: "hidden",
				border: 0
			},
			dataCss:{
				overflow: "hidden",
				height: 600,
				width: 900,
				border: 0
			},
			overlayClose:true,
			onOpen: function (dialog) {
			dialog.overlay.fadeIn(500, function () {
				dialog.data.hide();
				dialog.container.fadeIn(500, function () {
					dialog.data.fadeIn(800);
				});
			});
		}});
	});
}
});

/*--TERESA--*/
jQuery.each(jQuery.browser, function(i) {
if($.browser.msie){
$('li.teresa').click(function (e) {
	e.preventDefault();
	var src = "works/teresa.html";
	$.modal('<iframe src="' + src + '" height="585" width="906" style="border:0">', {
		closeHTML: "<a href='#'><span>Cerrar</span></a>",
		containerCss:{
			backgroundColor: "#fff",
			height: 585,
			padding: 0,
			width: 906,
			overflow: "hidden",
			border: 0
		},
		dataCss:{
			overflow: "hidden",
			height: 585,
			width: 906,
			border: 0
		},
		overlayClose:true,
		onOpen: function (dialog) {
		dialog.overlay.fadeIn(500, function () {
			dialog.data.hide();
			dialog.container.fadeIn(500, function () {
				dialog.data.fadeIn(800);
			});
		});
	}});
});
}else{
	$('li.teresa').click(function (e) {
		e.preventDefault();
		var src = "works/teresa.html";
		$.modal('<iframe src="' + src + '" height="585" width="900" style="border:0">', {
			closeHTML: "<a href='#'><span>Cerrar</span></a>",
			containerCss:{
				backgroundColor: "#fff",
				height: 585,
				padding: 0,
				width: 900,
				overflow: "hidden",
				border: 0
			},
			dataCss:{
				overflow: "hidden",
				height: 585,
				width: 900,
				border: 0
			},
			overlayClose:true,
			onOpen: function (dialog) {
			dialog.overlay.fadeIn(500, function () {
				dialog.data.hide();
				dialog.container.fadeIn(500, function () {
					dialog.data.fadeIn(800);
				});
			});
		}});
	});
}
});


/*--CANDOMBE--*/
jQuery.each(jQuery.browser, function(i) {
if($.browser.msie){
	$('li.candombe').click(function (e) {
		e.preventDefault();
		var src = "works/candombe.html";
		$.modal('<iframe src="' + src + '" height="585" width="906" style="border:0">', {
			closeHTML: "<a href='#'><span>Cerrar</span></a>",
			containerCss:{
				backgroundColor: "#fff",
				borderColor: "#0063dc",
				height: 585,
				padding: 0,
				width: 906,
				overflow: "hidden",
			},
			dataCss:{
				overflow: "hidden",
				height: 585,
			},
			overlayClose:true,
			onOpen: function (dialog) {
			dialog.overlay.fadeIn(500, function () {
				dialog.data.hide();
				dialog.container.fadeIn(500, function () {
					dialog.data.fadeIn(800);
				});
			});
		}});
	});
}else{
	$('li.candombe').click(function (e) {
		e.preventDefault();
		var src = "works/candombe.html";
		$.modal('<iframe src="' + src + '" height="585" width="900" style="border:0">', {
			closeHTML: "<a href='#'><span>Cerrar</span></a>",
			containerCss:{
				backgroundColor: "#fff",
				borderColor: "#0063dc",
				height: 585,
				padding: 0,
				width: 900,
				overflow: "hidden",
			},
			dataCss:{
				overflow: "hidden",
				height: 585
			},
			overlayClose:true,
			onOpen: function (dialog) {
			dialog.overlay.fadeIn(500, function () {
				dialog.data.hide();
				dialog.container.fadeIn(500, function () {
					dialog.data.fadeIn(800);
				});
			});
		}});
	});
}
});


/*--MEDIATINTA--*/
jQuery.each(jQuery.browser, function(i) {
if($.browser.msie){
	$('li.mediatinta').click(function (e) {
		e.preventDefault();
		var src = "works/mediatinta.html";
		$.modal('<iframe src="' + src + '" height="585" width="906" style="border:0">', {
			closeHTML: "<a href='#'><span>Cerrar</span></a>",
			containerCss:{
				backgroundColor: "#fff",
				borderColor: "#0063dc",
				height: 585,
				padding: 0,
				width: 906,
				overflow: "hidden",
			},
			dataCss:{
				overflow: "hidden",
				height: 585,
			},
			overlayClose:true,
			onOpen: function (dialog) {
			dialog.overlay.fadeIn(500, function () {
				dialog.data.hide();
				dialog.container.fadeIn(500, function () {
					dialog.data.fadeIn(800);
				});
			});
		}});
	});
}else{
	$('li.mediatinta').click(function (e) {
		e.preventDefault();
		var src = "works/mediatinta.html";
		$.modal('<iframe src="' + src + '" height="585" width="900" style="border:0">', {
			closeHTML: "<a href='#'><span>Cerrar</span></a>",
			containerCss:{
				backgroundColor: "#fff",
				borderColor: "#0063dc",
				height: 585,
				padding: 0,
				width: 900,
				overflow: "hidden",
			},
			dataCss:{
				overflow: "hidden",
				height: 585,
			},
			overlayClose:true,
			onOpen: function (dialog) {
			dialog.overlay.fadeIn(500, function () {
				dialog.data.hide();
				dialog.container.fadeIn(500, function () {
					dialog.data.fadeIn(800);
				});
			});
		}});
	});
}
});

/*--MALDITAS PERRAS--*/
jQuery.each(jQuery.browser, function(i) {
if($.browser.msie){
	$('li.malditas').click(function (e) {
	  e.preventDefault();
	  var src = "works/malditas.html";
	  $.modal('<iframe src="' + src + '" height="585" width="906" style="border:0">', {
		  closeHTML: "<a href='#'><span>Cerrar</span></a>",
		  containerCss:{
			  backgroundColor: "#fff",
			  borderColor: "#0063dc",
			  height: 585,
			  padding: 0,
			  width: 906,
			  overflow: "hidden",
		  },
		  dataCss:{
			  overflow: "hidden",
			  height: 585
		  },
		  overlayClose:true,
		  onOpen: function (dialog) {
		  dialog.overlay.fadeIn(500, function () {
			  dialog.data.hide();
			  dialog.container.fadeIn(500, function () {
				  dialog.data.fadeIn(800);
			  });
		  });
	  }});
	});
}else{
$('li.malditas').click(function (e) {
	e.preventDefault();
	var src = "works/malditas.html";
	$.modal('<iframe src="' + src + '" height="570" width="900" style="border:0">', {
		closeHTML: "<a href='#'><span>Cerrar</span></a>",
		containerCss:{
			backgroundColor: "#fff",
			borderColor: "#0063dc",
			height: 570,
			padding: 0,
			width: 900,
			overflow: "hidden",
		},
		dataCss:{
			overflow: "hidden",
			height: 570,
		},
		overlayClose:true,
		onOpen: function (dialog) {
		dialog.overlay.fadeIn(500, function () {
			dialog.data.hide();
			dialog.container.fadeIn(500, function () {
				dialog.data.fadeIn(800);
			});
		});
	}});
});
}
});
