function load( ) {
	var address = document.address.uri.value.toLowerCase( )

	if( address.length > 0 ) {
  	if( address.truncate( 7, '' ) != "http://" ) {
			address = "http://" + address
			document.address.uri.value = address
		}

		frames['site'].location = address
	}
}

function reload( ) {
	frames['site'].location.reload(true);
}

function back( ) {
	frames['site'].history.back( );
}

function forward( ) {
	frames['site'].history.forward( );
}

function pivoter() {
	Element.toggle( 'iphone1' )
	Element.toggle( 'iphone2' )
	
	if( Element.visible( 'iphone1' ) ) {
		$('site').setStyle({
			top: '221px',
			left: '43px',
			width: '320px',
			height: '360px'
		})
		
		$('uri').setStyle({
			top: '184px',
			left: '95px'
		})
		
		$('addr').setStyle({
			width: '215px'
		})
		
		$('reload').setStyle({
			top: '185px',
			left: '330px'
		})
		
		$('back').setStyle({
			top: '590px',
			left: '65px'
		})
		
		$('forward').setStyle({
			top: '590px',
			left: '150px'
		})
	} else {
		$('site').setStyle({
			top: '120px',
			left: '142px',
			width: '479px',
			height: '200px'
		})
		
		$('uri').setStyle({
			top: '82px',
			left: '195px'
		})

		$('addr').setStyle({
			width: '370px'
		})
		
		$('reload').setStyle({
			top: '85px',
			left: '588px'
		})

		$('back').setStyle({
			top: '328px',
			left: '163px'
		})

		$('forward').setStyle({
			top: '328px',
			left: '302px'
		})
		
	}
}