// Video Resize Functions

// Uncerimoneously stolen
// ... kudos!

function normalscreen(sizex, sizey){
	size = "normal"
	
	if (document.all){
		window.resizeTo(sizex+50,sizey+200)
		self.moveTo((screen.width / 2) - ((sizex+50) / 2),(screen.height / 2) - ((sizey+200) / 2))
		//document.all.screen.style.left = (screen.width / 2) - ((sizex+50) / 2)
		//document.all.screen.style.top = (screen.height / 2) - ((sizey+100) / 2)
		//document.all.screen.style.width = sizex+50
		//document.all.screen.style.height = sizey+100
		document.all.flashvideoObj.width = sizex 
    	document.all.flashvideoObj.height = sizey
		//document.all.flashvideoEmb.width = sizex 
    	//document.all.flashvideoEmb.height = sizey
	}else if (!document.all && document.getElementById){
		window.resizeTo(sizex+50,sizey+200)
		self.moveTo((screen.width / 2) - ((sizex+50) / 2),(screen.height / 2) - ((sizey+200) / 2))
		document.getElementById("flashvideoObj").width = sizex
		document.getElementById("flashvideoObj").height= sizey
		document.getElementById("flashvideoEmb").width = sizex
		document.getElementById("flashvideoEmb").height= sizey
	} 
}

function fullscreen(){
	size = "fullscreen"
	
	if (document.all){
		self.moveTo(0,0)
		window.resizeTo((screen.width),(screen.height))
		//document.all.screen.style.left = 0
		//document.all.screen.style.top = 0
		//document.all.screen.style.width = (screen.availWidth)
		//document.all.screen.style.height = (screen.availHeight-87)
		document.all.flashvideoObj.width = (screen.availWidth-20)
    	document.all.flashvideoObj.height = (screen.availHeight-250)
		//document.all.flashvideoEmb.width = (screen.availWidth)
    	//document.all.flashvideoEmb.height = (screen.availHeight-87)
	} else if (!document.all && document.getElementById) {
		window.moveTo(0,0)
		window.resizeTo(screen.width,screen.height-30)
		document.getElementById("flashvideoObj").width = (screen.availWidth)
		document.getElementById("flashvideoObj").height= (screen.availHeight-250)
		document.getElementById("flashvideoEmb").width = (screen.availWidth)
		document.getElementById("flashvideoEmb").height= (screen.availHeight-250)
	} 
}
