/**
 * @author Kasper
 */

function resize(){
	var w = 0;
	var h = 0;
	
	//IE
	
	if(BrowserDetect.browser + BrowserDetect.version == "Explorer6"){
		resizeElementWidth(document.getElementById("flashcontent"));
		resizeElementHeight(document.getElementById("flashcontent"));
		
		resizeElementWidth(document.body);
	}
}

function resizeElementWidth(element) {
 	var width = 0;
  	var body = window.document.body;
 
 	width = document.documentElement.clientWidth;

	if (width < 960) {
  		element.style.width = (960) + "px" ;
  	} else {
  		element.style.width = (width) + "px";
  	}
}

function resizeElementHeight(element) {
  	var height = 0;
  	var body =  window.document.body;
  	
	height = document.documentElement.clientHeight;
  
  	if (height < 601) {
  		element.style.height = 601 + "px";
  	} else {
  		element.style.height = height + "px";
  	}
}
