/*!	iPhone Userbility Code Library
	(CC) 2009 codeplay by Jam
*/

function orientationChange() {
	switch(window.orientation)
	
	{
	
		case 0:
		case 180:
			alert("portrait");
    	    document.getElementById("viewport").setAttribute("content","width=320;", false);
			break;
		case 90:
		case -90:
			alert("landscape");
    	    document.getElementById("viewport").setAttribute("content","width=480;", false);
			break;
	}
};

