// JavaScript Document

function flash(file, headline, subhead, myImage, width, height, align, r, g, b, myKey1, myKey2) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="'+ width +'" height="'+ height +'">');
    document.write('<param name="movie" value="'+ file +'.swf">');
	document.write('<PARAM NAME=FlashVars VALUE="headline='+ headline +'&subhead='+ subhead +'&where='+ align +'&r='+ r +'&g='+ g +'&b='+ b +'&image='+ myImage +'&key1='+ myKey1 +'&key2='+ myKey2 +'">\n');
    document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="transparent" />');
    document.write('<embed src="'+ file +'.swf" FlashVars="headline='+ headline +'&subhead='+ subhead +'&where='+ align +'&r='+ r +'&g='+ g +'&b='+ b +'&image='+ myImage +'&key1='+ myKey1 +'&key2='+ myKey2 +'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ width +'" height="'+ height +'" wmode="transparent"></embed>');
    document.write('</object>');
}


function checkForm(name) {
	alert(name);
	}




function toggle_visibility(id) {
	var e = document.getElementById(id);
	/*
	if(e.style.display == 'block')
		e.style.display = 'none';
	else
		e.style.display = 'block';
	*/
	if(e.style.visibility == 'visible')
		e.style.visibility = 'hidden';
	else
		e.style.visibility = 'visible';
}

function setFlashWidth(divid, newW) {
	document.getElementById(divid).style.width = newW+"px";
}
function setFlashHeight(divid, newH){
	document.getElementById(divid).style.height = newH+"px";  
}
function setFlashSize(divid, newW, newH){
	setFlashWidth(divid, newW);
	setFlashHeight(divid, newH);
}



function hide(id) {
	var myID = document.getElementById(id);
	myID.style.visibility = 'hidden';
}

function show(id) {
	var myID = document.getElementById(id);
	myID.style.visibility = 'visible';
}

function move(id, xvalue) {
	var myID = document.getElementById(id);
	myID.style.top = xvalue;
}





