/* 
Methods for resizing the flash stage at runtime.

setFlashWidth(divid, newW)
divid: id of the div containing the flash movie.
newW: new width for flash movie

setFlashWidth(divid, newH)
divid: id of the div containing the flash movie.
newH: new height for flash movie

setFlashSize(divid, newW, newH)
divid: id of the div containing the flash movie.
newW: new width for flash movie
newH: new height for flash movie

canResizeFlash()
returns true if browser supports resizing flash, false if not. 
*/
function setFlashWidth(divid, newW){
	document.getElementById(divid).style.width = newW;
}
function setFlashHeight(divid, newH,resize_type){
	if (resize_type == "pixels"){
		document.getElementById(divid).style.height = newH+'px';
		//document.getElementById('flash_embed').style.height = newH+'px';
		document.getElementById('flash_object').style.height = newH+'px';
		} else {
		document.getElementById(divid).style.height = newH+'%';
		//document.getElementById('flash_embed').style.height = newH+'%';
		document.getElementById('flash_object').style.height = newH+'%';
	}
}
function setFlashSize(divid, newW, newH){
	setFlashWidth(divid, newW);
	setFlashHeight(divid, newH, "pixels");
}
function canResizeFlash(){
	var ua = navigator.userAgent.toLowerCase();
	var opera = ua.indexOf("opera");
	if( document.getElementById ){
		if(opera == -1) return true;
		else if(parseInt(ua.substr(opera+6, 1)) >= 7) return true;
	}
	return false;
}

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=705,height=550,left = 287.5,top = 237');");
}

function freestylin() {
URL = 'freestylin.htm';
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=810,height=730,left = 287.5,top = 237');");
}

function moblog() {
URL = 'moblog.htm';
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=490,left = 287.5,top = 237');");
}