function Addevents__hp(  ) {
	WINDOWIDTH = document.body.clientWidth ;
	Hpageimg_positioner__hp(  ) ;
	Pullthru__hp(  ) ;
//	Setcircumvent__hp(  ) ;
	return true ;
}

function Attachevents__hp(  ) {
	WINDOWIDTH = document.documentElement.offsetWidth ;
	Hpageimg_positioner__hp(  ) ;
	Pullthru__hp(  ) ;
//	Setcircumvent__hp(  ) ;
	return true ;
}

function Circumvent_downleft__hp(  ) {
	var youcan = document.getElementById( 'youcan' ) ;
	youcan.style.top = parseInt( youcan.style.top ) + 1 + 'px' ;
	youcan.style.left = parseInt( youcan.style.left ) - 1 + 'px' ;

	if ( parseInt( youcan.style.top ) < 310 ) window.setTimeout( 'Circumvent_downleft__hp()', 10 ) ;
	else window.setTimeout( 'Circumvent_downright__hp()', 10 ) ;
}

function Circumvent_downright__hp(  ) {
	var youcan = document.getElementById( 'youcan' ) ;
	youcan.style.top = parseInt( youcan.style.top ) + 1 + 'px' ;
	youcan.style.left = parseInt( youcan.style.left ) + 1 + 'px' ;

	if ( parseInt( youcan.style.top ) < 460 ) window.setTimeout( 'Circumvent_downright__hp()', 10 ) ;
	else window.setTimeout( 'Circumvent_upright__hp()', 10 ) ;
}

function Circumvent_upright__hp(  ) {
	var youcan = document.getElementById( 'youcan' ) ;
	youcan.style.top = parseInt( youcan.style.top ) - 1 + 'px' ;
	youcan.style.left = parseInt( youcan.style.left ) + 1 + 'px' ;

	if ( parseInt( youcan.style.top ) > 310 ) window.setTimeout( 'Circumvent_upright__hp()', 10 ) ;
	else window.setTimeout( 'Circumvent_upleft__hp()', 10 ) ;
}

function Circumvent_upleft__hp(  ) {
	var youcan = document.getElementById( 'youcan' ) ;
	youcan.style.top = parseInt( youcan.style.top ) - 1 + 'px' ;
	youcan.style.left = parseInt( youcan.style.left ) - 1 + 'px' ;

	if ( parseInt( youcan.style.top ) > 160 ) window.setTimeout( 'Circumvent_upleft__hp()', 10 ) ;
	else window.setTimeout( 'Circumvent_downleft__hp()', 10 ) ;
}

function Pullthru__hp(  ) {
	document.getElementById( 'thrufire' ).style.right = POSITION__HP++ + 'px' ;
	if ( POSITION__HP > WINDOWIDTH ) POSITION__HP = 0 ;
	window.setTimeout( 'Pullthru__hp(  )', 10 ) ;
}

function Hpageimg_positioner__hp(  ) {
	var hpageimgstyleleft = ( ( WINDOWIDTH -790 ) / 2 ) ;
	if ( hpageimgstyleleft < 0 ) hpageimgstyleleft = 0 ;
	document.getElementById( 'hpageimg' ).style.left = hpageimgstyleleft + 'px' ;
	document.getElementById( 'youcan' ).style.left = 380 + hpageimgstyleleft + 'px' ;
}

function Setcircumvent__hp(  ) {
	var youcan = document.getElementById( 'youcan' ) ;
	youcan.style.top = '160px' ;
	youcan.style.left = '500px' ;

	window.setTimeout( 'Circumvent_downleft__hp( 0, 0 )', 10 ) ;
}


// ------------------------------------

var POSITION__HP = 0 ;
var WINDOWIDTH = 0 ;

if ( document.addEventListener ) {
	window.addEventListener( 'load', Addevents__hp, false ) ;
}
else if ( document.attachEvent ) {
	window.attachEvent( 'onload', Attachevents__hp ) ;
}
