<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
<head>

<title>Media | Micro Focus</title>

<script type="text/javascript" src="/common/inc/swfobject.js"></script>
<script type="text/javascript" src="/common/inc/jquery/jquery.min.js"></script>


<style type="text/css">
html, body { background-color:#FFFFFF; font-family: Arial, Helvetica, Sans-Serif; height:100%; margin:0; padding:0; }
#flasherrormsg { padding:20px; }
#flashcontent { height:100%; width:100%; background-color:#000000; overflow:hidden; text-align:center; color:#ffffff; }
img { border:none; }
a { color:#ffffff; }
<?php
	if(isset($_GET['showCallForm']) && $_GET['showCallForm'] == 'true') {
		// beginning of Sales Call Request functions
		?>
#salesCallRequestContainer { display:none; }
#contenthead { background-color:#000000; padding-right:68px; }
#content { font-size:70%; line-height:160%; margin:0; padding:25px 73px 45px 80px; position:relative; }
#requestcall { position:relative; padding-top:12px; padding-bottom:12px; }
#requestcall h3 { color:#00A0DD; font-size:200%; font-weight:bold; margin:0; padding:0 0 8px 0; }
#requestcall p { margin:0; padding:10px 0 0 0; }
#requestcall p.call_intro { margin:0; padding:0 0 18px 0; line-height:120%; }
#requestcall form { padding:2px 0 26px 0; margin:0; width:500px; position:relative; }
#requestcall fieldset { text-align:left; margin:0; padding:4px 0 14px 0; border:none;  }
#requestcall fieldset p { float:left; width:240px; padding-top:6px; }
#requestcall fieldset p#requestcall_fname, #requestcall fieldset p#requestcall_company, #requestcall fieldset p#requestcall_city { width:240px; clear:left; }
#requestcall fieldset p#requestcall_email { width:400px; }
#requestcall fieldset p#requestcall_email input { width:460px; }
#requestcall fieldset input, #requestcall fieldset select { width:220px; border:0px solid #000000; padding:3px 0; background-color:#CCCCCC; border:0px solid #000000; color:#000000; font:108% Arial, Helvetica, Sans-Serif; padding:2px 0 2px 8px; }
#requestcall fieldset select { width:228px; }
#requestcall label { display:block; }
#requestcall_submit { clear:left; height:2.9em; margin:0; padding:0; }
#requestcall_submit input { background-color:#231f20; border:0px solid #000000; color:#ffffff; font-weight:bold; font:120% Arial, Helvetica, Sans-Serif; padding:2px 8px; cursor:pointer; }
#requestcall select { width:84px; padding:1px 0; }
#requestcall_salesphone { clear:both; }
#requestcall_salesphone a { font-weight:bold; font-size:109.5%; }
		<?php
		// end of Sales Call Request functions
	}
?>
</style>

<?php
	if(isset($_GET['showCallForm']) && $_GET['showCallForm'] == 'true') {
		// beginning of Sales Call Request functions
		?>
<script type="text/javascript">
	//<!--
	var requestForm = "";
	var player;
	var rc_thankyou_page = "/company/corporatevideothankyou.html";

	function playerReady(obj) {
		player = document.getElementById(obj['id']);
		player.addModelListener('STATE','showSalesCallRequestForm');

		<?php if(isset($_GET['debug']) && $_GET['debug'] == 'true') { ?>
			player.sendEvent('STOP');
			var debugTimer = setTimeout("showSalesCallRequestForm({ 'newstate' : 'COMPLETED' });", 1000);
		<?php } ?>

	};
	
	function showSalesCallRequestForm(obj) {
		if(obj.newstate == 'COMPLETED') {
			$("#flashcontent").empty();
			$("#flashcontent").animate({ opacity: 0 }, 800, function() {
				$("#flashcontent").css("display","none");
				$("#salesCallRequestContainer").css("opacity","0").css("display","block");
				$("#salesCallRequestContainer").animate({ opacity: 1 }, 800);
				$("#salesCallRequestContainer h3").after('<p class="call_intro">Thank you for taking time to watch this video.  If you would like learn more about what we can do for you, complete the form below to request a sales call.<\/p>');
			});
		}
	}
	//-->
</script>
		<?php
		// end of Sales Call Request functions
	}
?>
</head>
<body>

<script type="text/javascript" src="/common/inc/metrics.js"></script>

<div id="flashcontent">
	<div id="flasherrormsg">
		<p>This content requires JavaScript and the <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Adobe Flash player</a> version <strong>9</strong> or higher.  If you are seeing this message, you do not meet these requirements.  Please make sure you are using a recent browser with JavaScript enable and that you have Flash 9 or higher installed.</p>
		<p><a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"><img src="https://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" style="margin-top:5px;" /></a></p>
	</div>
</div>

<?php
	if(isset($_GET['showCallForm']) && $_GET['showCallForm'] == 'true') {
		// beginning of Sales Call Request functions
		?>
			<div id="salesCallRequestContainer">
				<div id="contenthead">
					<img src="/common/img/novell_logo_redonblack.png" width="113" height="41" alt="Micro Focus" />
				</div>
				<div id="content">
					<?php
						//<!--#include virtual="/common/util/countryselect_names.html"-->

						$fh = fopen("../../common/inc/requestcall_smallform.html", "r");
						
						while(!feof($fh)) {
							$output = fgets($fh, 1024);
							if(strpos($output,'<!--#include virtual="/common/util/countryselect_names.html"-->') !== false) {
								include("../../common/util/countryselect_names.html");
							}
							else {
								echo($output);
							}
						}
						
						fclose($fh);

//						$requestFrm = include("");
//						echo $requestFrm;
					?>
				</div>
			</div>
		<?php
		// end of Sales Call Request functions
	}
?>

<?php
$autostart = (isset($_GET['autostart'])) ? $_GET["autostart"] : "true";
?>

<script type="text/javascript">
	//<!--
	var mediaPath = "<?=$_GET['media'];?>";
	var swf;
	if(mediaPath.indexOf('.swf') > 0) {
		// media is standalone swf, so just load the swf
		swf = new SWFObject(mediaPath,"media","100%","100%","9","#000000");
	} else {
		// medua is not a swf so load the media using the standard player
		swf = new SWFObject("/common/flash/jwplayer/player.swf","media","100%","100%","9","#000000");
		swf.addParam('allowfullscreen','true');
		swf.addParam('allowscriptaccess','always');

		<?php
		if(isset($_GET["image"])){
			echo "swf.addVariable('image','".$_GET["image"]."');";
		}
		?>
		swf.addVariable('file',mediaPath);
		swf.addVariable('backcolor','333333');
		swf.addVariable('frontcolor','eeeeee');
		swf.addVariable('autostart','<?= $autostart ?>');
		swf.addVariable('skin','/common/flash/jwplayer/skin_fy09launch.swf');

		//swf.addVariable('plugins', 'gapro-1');
		//swf.addVariable('gapro.accountid', gaNovellKey_video); temporarily removed with move to GUA

	}
	swf.write("flashcontent");

	var s_prop22 = "<?=$_GET['media'];?>";
	var s_eVar19 = "video";
	var s_events = "event12";
	//-->
</script>


</body>
</html>
