// JavaScript Document

$(function() {
	$("#embedCode").click(function() {
		this.select();
	});
});

function init(id)
{
	$(".dropShadow").wrap("<div class='wrap1'><div class='wrap2'><div class='wrap3'></div></div></div>");
	//$(".dropShadow").wrap("<div class='wrap1'><div class='wrap2'><div class='wrap3'></div></div></div>");
	
	var swf = createswf("http://housser.ca/vr/krpano/krpano.swf", "pano");
	swf.addVariable("xml", "http://housser.ca/vr/krpano/krpano.php?id=" + id);
	try {
		swf.addParam('wmode','transparent');
	} catch(err) {}
	swf.embed("vrViewer");

	$(".emailJohn").wrap('<a href="mailto:john@housser.ca"></a>');
}

function FullScreen(theURL) {
	var theWindowName = 'FullScreen' ;
	window.open(theURL, theWindowName , 'resizable=yes, status=yes, scrollbars=auto');
}

loadHD = function(id) {
	pano.call("loadpano('krpano.php?id=" + id + "&size=lg',null,KEEPALL,BLEND(2))");
}
