$(function(){
	$('#hair-pop').click(function(){openPop("hairdresser", "902")});
	$('#vanity-pop').click(function(){openPop("vanity", "838")});
	$('#save-us-pop').click(function(){openPop("saveus", "838")});
	
	$('#hair-pop-web').click(function(){openPop2("hairdresser", "1024")});
	$('#vanity-pop-web').click(function(){openPop2("vanity", "1024")});
});
function openPop(loc, width){
	var scW = screen.availWidth ? screen.availWidth : screen.width;
    var scH = screen.availHeight ? screen.availHeight : screen.height;
	var winPop=window.open("/campaigns/"+loc+"/lookbook/lookbook.html",""+loc+"","width="+width+",height=595, left="+Math.round((scW-width)/2)+", top="+Math.round((scH-595)/2)+",scrollbars,");
}
function openPop2(loc, width){
	var scW = screen.availWidth ? screen.availWidth : screen.width;
    var scH = screen.availHeight ? screen.availHeight : screen.height;
	var winPoper=window.open("/campaigns/"+loc+"/web/index.html",""+loc+"","width="+width+",height=768, left="+Math.round((scW-width)/2)+", top="+Math.round((scH-768)/2)+",scrollbars,");
}


