window.focus();

var minimumW = 960;
var minimumH = 1500;
var fId = 'flash';
var realW =getWindowWidth();
var realH = getWindowHeight();



/*window.onload = function(){
	setMinSize(fId,minimumW,minimumH);
}*/

setMinSize(fId,minimumW,minimumH);

window.onresize = function(){
	setMinSize(fId,minimumW,minimumH);
}

function setObj(idName){
	return document.all ? document.all(idName) : document.getElementById ? document.getElementById(idName) : document.layers[idName];
}

function setMinSize(id, minimumW, minimumH) {
	if (!id || !minimumW || !minimumH) { return; }
	var Obj = setObj(id);
	if (Obj) {
		if (getWindowWidth() <= minimumW) {
			if (Obj.style) { Obj.style.width = minimumW+'px'; }
			Obj.width = minimumW;
		} else {
			if (Obj.style) { Obj.style.width = '100%'; }
			Obj.width = '100%';
		}
		
		//window.alert(getWindowHeight());
		
		if (getWindowHeight() <= minimumH) {
			if (Obj.style) { Obj.style.height = minimumH+'px'; }
			Obj.height = minimumH;
		} else {
			
			//window.alert(Obj.style);
			if (Obj.style) { Obj.style.height = getWindowHeight()+'px'; }
			Obj.height = getWindowHeight()+'px';
		}
	}
}


function getWindowWidth(){
	if(window.innerWidth) return window.innerWidth;
	if(document.documentElement && document.documentElement.clientWidth){
		return document.documentElement.clientWidth;
	}
	else if(document.body && document.body.clientWidth){
		return document.body.clientWidth;
	}
	return 0;
}


function getWindowHeight(){
	/*if(window.innerHeight) return window.innerHeight;
	if(document.documentElement && document.documentElement.clientHeight){
		return document.documentElement.clientHeight;
	}
	else */if(document.body && document.body.clientHeight){
	return document.body.clientHeight;
	}
	return 0;
}


if(!!realW < minimumW)ratedWidth = realW;
if(!!realH < minimumH)ratedHeight = realH;

if(realW<minimumW){
	ratedWidth = minimumW;
}else{
	ratedWidth = "100%";
}

if(realH<minimumH){
	ratedHeight = minimumH;
}else{
	ratedHeight = "100%";
}





