/* 
 This file was generated by Dashcode.  
 You may edit this file to customize your widget or web page 
 according to the license.txt file included in the project.
 */

//
// Function: load()
// Called by HTML body element's onload event when the web application is ready to start
//
function load()
{
    dashcode.setupParts();
}





function myContentGesturestartHandler(event)
{
    window.location = "../search/"
}

var initialPagePosition = 0;
var lastPagePosition = 0;

function pageTouchstartHandler(event)
{
	var touch = event.touches[0];
	initialPageTouchPosition = touch.pageX;
}

function pageTouchendHandler(event)
{
	var touch = event.touches[0];
	if ((lastPagePosition-initialPageTouchPosition) > 200)
	{
	    history.go(-1)
	}
	if ((initialPageTouchPosition-lastPagePosition) > 200)
	{
	    history.go(1)
	}
}

function pageTouchcancelHandler(event)
{
}

function pageTouchmoveHandler(event)
{
var touch = event.touches[0];
lastPagePosition = touch.pageX;
}
