function runFlashTransparentVideo(flashFile,width,height) {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+width+'" height="'+height+'">');
	document.write('<param name="movie" value="'+flashFile+'" />');
	document.write('<param name="allowfullscreen" value="true" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<embed src="'+flashFile+'" quality="high" width="'+width+'" height="'+height+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"  wmode="transparent" allowfullscreen="true"/>');
	document.write('</object>');
}

//////////////////////////////////////////////////////////////////////////////////////////
////GENERAL FUNCTIONS
//////////////////////////////////////////////////////////////////////////////////////////
function login_updatecontent(login_element){
	$("#login_container_login").hide();
	$("#login_container_students").hide();
	$("#login_container_graduates").hide();
	$("#login_container_board").hide();
	$("#pods_login").removeClass('pods_login_login_container_login pods_login_login_container_students pods_login_login_container_graduates pods_login_login_container_board');
	$("#pods_login").addClass('pods_login_'+login_element);
	$("#"+login_element).show();
	sIFR.replace(palatino, {selector: 'h3.h3_sifrreplace_grey',css: ['.sIFR-root { text-align: left;font-weight:normal; color: #666666; background-color:#EBEBEB }','a { text-decoration: none; }','a:link { color: #666666; }','a:hover { color: #000000; }']});
}

function openlink(aurl){
	window.open (aurl,"mywindow","menubar=1,resizable=1,width=800,height=600"); 
	return false;
}


function updatelanguage(language,p_id){
	$.get(JSPAGEPATH+'assets/includes/content/languages.php?p_id='+p_id+'&language='+language, function(data) {
	  $('#textpane').html(data);
	  sIFR.replace(palatino, {selector: 'h1.h1_swfreplace',css: ['.sIFR-root { text-align: left;font-weight:normal; color: #008752 }','a { text-decoration: none; }','a:link { color: #008752; }','a:hover { color: #000000; }']});
	});
}


function showwarning(actionMessage){
	var agree=confirm(actionMessage);
	if (agree){return true;}else{return false;}
}



