function vardump( a ){
aux = "";
if( typeof a == "object" ){
	var espaco = ( typeof arguments[1] != "undefined" )?arguments[1]:"..";
	if( typeof a.nodeType != "undefined"){
		return "[NODE] = ( '"+ a.innerHTML.substr( 0, 15 ) +"...' )\n";
	}
	aux += typeof a + " {\n";
	for( i in a ){
		aux += espaco + "["+i+"]" + " = " + vardump( a[i], espaco + ".." );
	}
	aux += espaco + "}\n";
}else{
	aux += typeof a + " '" + a + "'\n"
}
return aux;
}
function panoramic()
{
		var viewPort = {
				width : $("#shadowbox_body_inner").innerWidth(),
				height : $("#shadowbox_body_inner").innerHeight()
		}
		var pictInt = {
				width : 0,
				height : 0
		}
		var pixels = {
				horizontal : 0,
				vertical : 0

		}
		pictInt.height = $("#shadowbox_content").height();
		pictInt.width = $("#shadowbox_content").width();

		pixels.horizontal = (viewPort.width-pictInt.width) / viewPort.width;
		pixels.vertical = (viewPort.height-pictInt.height) / viewPort.height;
		$("#shadowbox_body_inner").mousemove(function(event){
				var realPosition = {
						X : event.pageX - $(this).offset().left,
						Y: event.pageY -$(this).offset().top
				}
				moveLeft = (realPosition.X * pixels.horizontal);
				moveTop = (realPosition.Y * pixels.vertical);
				if(Math.abs(moveLeft - viewPort.width) > pictInt.width)moveLeft = -(pictInt.width - viewPort.width);
				var cssObj = {
						'left' : moveLeft,
						'top' : moveTop
				}

				$("#shadowbox_content").css(cssObj);
			})
}