﻿/*//lightbox 1.0
$(function(){

	$(".mask").css("position","absolute");
	$(".mask").css("left",0);
	$(".mask").css("top",0);
	$(".mask").css("width",($("body").width()));
	$(".mask").css("height",($("body").height()));
	$(".mask").css("opacity",0.7);
	$(".popbox").css("margin-left",(-($(".popbox").width()/2)));
	$(".popbox").css("margin-top",(-($(".popbox").height()/2)));
	
	$(window).resize(function(){
		$(".popbox").css("left",($("body").width())/2);
		$(".popbox").css("margin-left",(-($(".popbox").width()/2)));
	});
	$(".mask").css("width",($("body").width()));
	$(".mask").css("height",($("body").width()));
	$(".open-popbox a").click(function(){
		$(".popbox").css({
			display:"block"
		});
		$(".mask").css({
			display:"block",
			backgroundColor:"black"
		});
		setTimeout("playVideo();", 1000);
	});
	$(".closepop-btn").click(function(){
		$(".popbox").css({
			display:"none"
		});
		$(".mask").css({
			display:"none"
		});
		stopVideo();
	});
});
*/
//lightbox - jqModal http://dev.iceburg.net/jquery/jqModal/
	$(function(){
		// overall
		$('.lookingreat-video-pop').jqm({modal: true,overlay:70});
		$('#article .open-lookingreat a').click(function(){
			$('.lookingreat-video-pop').jqmShow();
			setTimeout("playVideo();", 1000);
	})
		$('.lookingreat-video-pop .closepop-btn').click(function(){stopVideo();$('.lookingreat-video-pop').jqmHide(); })

		$('.mailto-pop').jqm({modal: true,overlay:70, trigger: '.open-mailbox a'});
		$('.mailto-pop .closepop-btn').click(function(){$('.mailto-pop').jqmHide(); })
		
		$('.login-pop').jqm({modal: true,overlay:70, trigger: '.open-login a'});
		$('.login-pop .closepop-btn').click(function(){$('.login-pop').jqmHide(); })
		
		$('.forgotpw-pop').jqm({modal: true,overlay:70, trigger: '.open-forgotpw a'});
		$('.forgotpw-pop .closepop-btn').click(function(){$('.forgotpw-pop').jqmHide(); })
		
		$('.dlagreement-pop').jqm({modal: true,overlay:70, trigger: '.open-dlagreement a'});
		$('.dlagreement-pop .closepop-btn').click(function(){$('.dlagreement-pop').jqmHide(); })

		$('.pjtlamp-pop').jqm({modal: true,overlay:70, trigger: '.open-pjtlamp a'});
		$('.pjtlamp-pop .closepop-btn').click(function(){$('.pjtlamp-pop').jqmHide(); })
		
		$('.pjtlamp-side-pop').jqm({modal: true,overlay:70, trigger: '.open-pjtlamp-side a'});
		$('.pjtlamp-side-pop .closepop-btn').click(function(){$('.pjtlamp-side-pop').jqmHide(); })

		$('.wheretobuy-pop').jqm({modal: true,overlay:70, trigger: '.open-wheretobuy a'});
		$('.wheretobuy-pop .closepop-btn').click(function(){$('#id_popbox-wheretobuy-pop').css('display', 'none');																							   $(".jqmOverlay").remove();$('.wheretobuy-pop').jqmHide(); })

		$('.popspic-pop').jqm({modal: true,overlay:70, trigger: '.open-popspic a'});
		$('.popspic-pop .closepop-btn').click(function(){$('.popspic-pop').jqmHide(); })
});

