// Globals
// Major version of Flash required
var requiredMajorVersion = 8;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Minor version of Flash required
var requiredRevision = 0;
 function validateLength(oSrc, args)
  {
     if(args.Value != "")
        args.IsValid = (args.Value.length >= 6);
     else
        args.IsValid = true;
  }
//function to load the Flash Dynamically to avoid the problem of inactivation
function LoadFlash(width, height, filePath)
{
	// Version check based upon the values entered above in "Globals"
	var hasReqestedVersion=true;// DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
  
	// Check to see if the version meets the requirements for playback
	if (hasReqestedVersion) {	
		// if we've detected an acceptable version
		// embed the Flash Content SWF when all tests are passed
		document.write('<object width='+width+' height='+height+' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">');
        document.write('<param name="URL" value="'+filePath+'">');      
        document.write('<param name="Quality" value="High">');
        document.write('<param name="Menu" value="true">');
        document.write('<param name="Loop" value="true">');
        document.write('<param name="Scale" value="ShowAll">');
        document.write('<param name="DeviceFont" value="0">');
        document.write('<param name="WMode" value="transparent">');
		 document.write('<param name="salign" value="LT">');
        document.write('<param name="Src" value="'+filePath+'">');
        document.write('<param name="Play" value="1">');
        document.write('<param name="EmbedMovie" value="0">');
        document.write('<param name="autoStart" value="-1">')
        document.write('<param name="AllowScriptAccess" value="always">')
        document.write('<embed src="'+filePath+'" menu="true" loop="true" quality="high" salign="LT" WMode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width='+width+' height='+height+'> </embed>')    
        document.write('</object>');
	} else {  // flash is too old or we can't detect the plugin
	    // insert non-flash content
	    var alternateContent = '<font color="red"><strong>Flash plugin could not be detected or it is an older version. <a href="http://www.macromedia.com/go/getflash/" target="_blank">Please install/upgrade your Flash plugin.</a></strong></font>';
		document.write('<table width='+width+' height='+height+' cellpadding="0" cellspacing="0">');
        document.write('<tr>');
        document.write('<td>');
        document.write(alternateContent); 
        document.write('    </td>');
        document.write('  </tr>');
        document.write('</table>');
	}
    
}





function openWindowOnFocus1(width, height, filePath, strWinFeatures) 
{
	var pWindow = window.open(filePath, "secure_demo", strWinFeatures);     
	if (pWindow)
		pWindow.focus();
}


function openWindowOnFocus(width, height, filePath, target, strWinFeatures) 
{
	var pWindow = window.open("", target,strWinFeatures);
	pWindow.document.open();
       pWindow.height = height;
	
     // Version check based upon the values entered above in "Globals"
	var hasReqestedVersion=true;// DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
      pWindow.document.write('<html><body style="margin:0px;padding:0px;overflow:hidden">');
	// Check to see if the version meets the requirements for playback
	if (hasReqestedVersion) {	
		// if we've detected an acceptable version
		// embed the Flash Content SWF when all tests are passed
	  pWindow.document.write('<object width='+width+' height='+height+' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">');
        pWindow.document.write('<param name="URL" value="'+filePath+'">');      
        pWindow.document.write('<param name="Quality" value="High">');
        pWindow.document.write('<param name="Menu" value="true">');
        pWindow.document.write('<param name="Loop" value="true">');
        pWindow.document.write('<param name="Scale" value="ShowAll">');
        pWindow.document.write('<param name="DeviceFont" value="0">');
        pWindow.document.write('<param name="WMode" value="transparent">');
	  pWindow.document.write('<param name="salign" value="LT">');
        pWindow.document.write('<param name="Src" value="'+filePath+'">');
        pWindow.document.write('<param name="Play" value="1">');
        pWindow.document.write('<param name="EmbedMovie" value="0">');
        pWindow.document.write('<param name="autoStart" value="-1">')
        pWindow.document.write('<param name="AllowScriptAccess" value="always">')
        pWindow.document.write('<embed src="'+filePath+'" menu="true" loop="true" quality="high" salign="LT" WMode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width='+width+' height='+height+'> </embed>')    
        pWindow.document.write('</object>');


	} else {  // flash is too old or we can't detect the plugin


	    // insert non-flash content
	    var alternateContent = '<font color="red"><strong>Flash plugin could not be detected or it is an older version. <a href="http://www.macromedia.com/go/getflash/" target="_blank">Please install/upgrade your Flash plugin.</a></strong></font>';
	  pWindow.document.write('<table width='+width+' height='+height+' cellpadding="0" cellspacing="0">');
        pWindow.document.write('<tr>');
        pWindow.document.write('<td>');
        pWindow.document.write(alternateContent); 
        pWindow.document.write('    </td>');
        pWindow.document.write('  </tr>');
        pWindow.document.write('</table>');
	  
	}
 pWindow.document.write('</body></html>');

      pWindow.document.close();

	if (pWindow)
		pWindow.focus();
}

function openWindowOnFocusNew(width, height, filePath, target, strWinFeatures) 
{
	var pWindow = window.open("", target,strWinFeatures);
	pWindow.document.open();
       pWindow.height = height;
	
     // Version check based upon the values entered above in "Globals"
	var hasReqestedVersion=true;// DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
      pWindow.document.write('<html><body bgcolor="#cccccc" style="margin:0px;padding:0px;overflow:hidden">');
	// Check to see if the version meets the requirements for playback
	if (hasReqestedVersion) {	
		// if we've detected an acceptable version
		// embed the Flash Content SWF when all tests are passed
	  pWindow.document.write('<object width='+width+' height='+height+' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">');
        pWindow.document.write('<param name="URL" value="'+filePath+'">');      
        pWindow.document.write('<param name="Quality" value="High">');
        pWindow.document.write('<param name="Menu" value="true">');
 	pWindow.document.write('<param name="bgcolor" value="#cccccc">');
        pWindow.document.write('<param name="Loop" value="true">');
        pWindow.document.write('<param name="Scale" value="ShowAll">');
        pWindow.document.write('<param name="DeviceFont" value="0">');
        pWindow.document.write('<param name="WMode" value="transparent">');
	  pWindow.document.write('<param name="salign" value="LT">');
        pWindow.document.write('<param name="Src" value="'+filePath+'">');
        pWindow.document.write('<param name="Play" value="1">');
        pWindow.document.write('<param name="EmbedMovie" value="0">');
        pWindow.document.write('<param name="autoStart" value="-1">')
        pWindow.document.write('<param name="AllowScriptAccess" value="always">')
        pWindow.document.write('<embed src="'+filePath+'" menu="true" loop="true" bgcolor="#cccccc" quality="high" salign="LT" WMode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width='+width+' height='+height+'> </embed>')    
        pWindow.document.write('</object>');


	} else {  // flash is too old or we can't detect the plugin


	    // insert non-flash content
	    var alternateContent = '<font color="red"><strong>Flash plugin could not be detected or it is an older version. <a href="http://www.macromedia.com/go/getflash/" target="_blank">Please install/upgrade your Flash plugin.</a></strong></font>';
	  pWindow.document.write('<table width='+width+' height='+height+' cellpadding="0" cellspacing="0">');
        pWindow.document.write('<tr>');
        pWindow.document.write('<td>');
        pWindow.document.write(alternateContent); 
        pWindow.document.write('    </td>');
        pWindow.document.write('  </tr>');
        pWindow.document.write('</table>');
	  
	}
 pWindow.document.write('</body></html>');

      pWindow.document.close();

	if (pWindow)
		pWindow.focus();
}

var highReso_ArrText = new Array();
highReso_ArrText[0]="Woody Hobbs, President & CEO, Phoenix Technologies";
highReso_ArrText[1]="Gaurav Banga, CTO and SVP Engineering, Phoenix Technologies";
highReso_ArrText[2]="Ling Zhao, General Manager of China Region, Phoenix Technologies";
highReso_ArrText[3]="Julia Wu, Head of Taiwan & PRC Field Operations, Phoenix Technologies";

highReso_ArrText[4]="FailSafe - Login Screen";
highReso_ArrText[5]="FailSafe - Where is My PC, Track It";
highReso_ArrText[6]="FailSafe - Tracking Details";
highReso_ArrText[7]="FailSafe - Protect Your PC";
highReso_ArrText[8]="AwardCore Tiano Splash Screen";
highReso_ArrText[9]="Remote Debug Station Architecture Diagram";
highReso_ArrText[10]="HyperSpace 'Cube' Architecture Diagram";
highReso_ArrText[11]="PC 3.0 BIOS Diagram";
//Career
highReso_ArrText[12]="Australia";
highReso_ArrText[13]="Baseball";
highReso_ArrText[14]="Basketball";
highReso_ArrText[15]="Bicycle";
highReso_ArrText[16]="Community Work";
highReso_ArrText[17]="Cricket";
highReso_ArrText[18]="Diving in malysia";
highReso_ArrText[19]="";
highReso_ArrText[20]="";
highReso_ArrText[21]="Malysia-Angkor";
highReso_ArrText[22]="";
highReso_ArrText[23]="Wine tasting in NewZealand";
highReso_ArrText[24]="On the beach in Australia";
highReso_ArrText[25]="Rafting in Bali";
highReso_ArrText[26]="FamilyBBQ";
highReso_ArrText[27]="";
highReso_ArrText[28]="Team Building";
highReso_ArrText[29]="Playing Survivor";

var image_ArrText = new Array();
image_ArrText[0]="/NR/rdonlyres/E8FBE844-F041-41EF-AE11-51C4BE01A64F/0/WoodyHobbs_preview.jpg";
image_ArrText[1]="/NR/rdonlyres/EA6DFBBD-6C8E-4BB4-B90B-9AD606891D5E/0/DrGauravBanga_preview.jpg";
image_ArrText[2]="/NR/rdonlyres/DBACE1E5-F4CB-4CAB-AB5E-6887C3BBEE21/0/LingZhao_preview.jpg";
image_ArrText[3]="/NR/rdonlyres/96676D05-7A4B-4CBE-B504-AE9DD8C65461/0/Julia_preview.jpg";

image_ArrText[4]="/NR/rdonlyres/FDA0B8D9-CCCF-49D2-8924-C78627E08AD2/0/failSafe_login_preview.jpg";
image_ArrText[5]="/NR/rdonlyres/3F720F61-1487-4811-95BF-A896EF3B1A59/0/failSafe_map_preview.jpg";
image_ArrText[6]="/NR/rdonlyres/DCD3C870-4C69-4E9A-9D3A-CAFB9C2D3EB1/0/failSafe_more_preview.jpg";
image_ArrText[7]="/NR/rdonlyres/C3ABFFD6-FCC5-41D6-9FEA-3A2E55760D96/0/failSafe_protect_preview.jpg";
image_ArrText[8]="/NR/rdonlyres/CD4C58FD-A674-4985-8486-584E5AE0253A/0/AwardCore_Tiano_splash_preview.jpg";
image_ArrText[9]="/NR/rdonlyres/2E4B6446-CBF8-4477-9A71-F96B95B92643/0/RemoteValidationDebugLab_preview.jpg";
image_ArrText[10]="/NR/rdonlyres/ADC6B616-FF75-46D9-B6F3-9F54C70EBAA9/0/hyperspaceCube_preview.jpg";
image_ArrText[11]="/NR/rdonlyres/31F1643E-F76B-42C4-AE72-9E7D824934F4/0/biosPc30_preview.jpg";
//Career : preview 
image_ArrText[12]="/NR/rdonlyres/E3D1ABE3-C629-44FB-8EB6-282C7A5C7DB0/0/Australia2preview.jpg";
image_ArrText[13]="/NR/rdonlyres/1559A8F8-F8DD-4D07-BE00-D9B1CFA3C6F7/0/baseballgameinJapanpreview.jpg";
image_ArrText[14]="/NR/rdonlyres/A91529A3-E12D-45DC-A2E9-F0E5FFC6F5E3/0/BasketballTeam1preview.jpg";
image_ArrText[15]="/NR/rdonlyres/2CD3F1F3-4B2F-4C02-9089-D2BF79EBF1B4/0/bicycleteampreview.jpg";
image_ArrText[16]="/NR/rdonlyres/6CC5AF00-3074-4225-89C6-80F3CF8387F0/0/Communitywork2preview.jpg";
image_ArrText[17]="/NR/rdonlyres/6A616AB6-23BB-44D1-BA0C-C75E37BB73FE/0/Cricketpreview.JPG";
image_ArrText[18]="/NR/rdonlyres/5921A71E-1E7E-4F42-9E70-8ADA04960D6F/0/DivinginMalysiapreview.jpg";
image_ArrText[19]="/NR/rdonlyres/6AB83E76-B8B1-4A77-BA25-031B3AF709AB/0/DSC01446_JPG1preview.jpg";
image_ArrText[20]="/NR/rdonlyres/4D22D7E4-7977-49CB-BEEE-DA4779F6B4B2/0/DSC01465_JPG1preview.jpg";
image_ArrText[21]="/NR/rdonlyres/D8831526-E986-4F48-8F86-E1A13DBB7732/0/MalaysiaAngkorWatpreview.jpg";
image_ArrText[22]="/NR/rdonlyres/43D4602C-6B18-492F-B3D4-04A83EEC9BB7/0/IMG_2077_jpg1preview.jpg";
image_ArrText[23]="/NR/rdonlyres/02BF5FB2-6AD5-4F0A-A2DD-291B215896BB/0/WinetastinginNewZealandpreview.jpg";
image_ArrText[24]="/NR/rdonlyres/0F69D2A8-C805-4D26-BCCD-A45104B49077/0/onthebeachinAustraliapreview.jpg";
image_ArrText[25]="/NR/rdonlyres/1DA74DCF-5C40-44E1-B18C-E06EEBAACB50/0/RaftinginBalipreview.jpg";
image_ArrText[26]="/NR/rdonlyres/2BFEC11A-CCBA-4235-8056-389E67801494/0/FamilyBBQpreview.JPG";
image_ArrText[27]="/NR/rdonlyres/B05B84CC-1066-4188-916A-F9239E27DABB/0/IMG_2073_jpg1preview.jpg";
image_ArrText[28]="/NR/rdonlyres/C24BAAA5-DD09-473A-BA2A-71C7E2B60CFE/0/TeamBuilding1preview.jpg";
image_ArrText[29]="/NR/rdonlyres/E78B4937-5B80-4172-AE62-157552277658/0/PlayingSurvivorpreview.jpg";




var tif_ArrText = new Array();
tif_ArrText[0]="http://branding.phoenix.com/phoenix/PressKits/Shanghai/WoodyHobbs_print.tif";
tif_ArrText[1]="http://branding.phoenix.com/phoenix/PressKits/Shanghai/DrGauravBanga_print.tif";
tif_ArrText[2]="http://branding.phoenix.com/phoenix/PressKits/Shanghai/LingZhao_print.tif";
tif_ArrText[3]="http://branding.phoenix.com/phoenix/PressKits/Shanghai/Julia_print.tif";

tif_ArrText[4]="http://branding.phoenix.com/phoenix/PressKits/Shanghai/failSafe_login_print.tif";
tif_ArrText[5]="http://branding.phoenix.com/phoenix/PressKits/Shanghai/failSafe_map_print.tif";
tif_ArrText[6]="http://branding.phoenix.com/phoenix/PressKits/Shanghai/failSafe_more_print.tif";
tif_ArrText[7]="http://branding.phoenix.com/phoenix/PressKits/Shanghai/failSafe_protect_print.tif";
tif_ArrText[8]="http://branding.phoenix.com/phoenix/PressKits/Shanghai/AwardCore_Tiano_splash_print.tif";
tif_ArrText[9]="http://branding.phoenix.com/phoenix/PressKits/Shanghai/RemoteValidationDebugLab_print.tif";
tif_ArrText[10]="http://branding.phoenix.com/phoenix/PressKits/Shanghai/hyperspaceCube_print.tif";
tif_ArrText[11]="http://branding.phoenix.com/phoenix/PressKits/Shanghai/biosPc30.tif";
//Career
tif_ArrText[12]="/NR/rdonlyres/13313FAE-7561-41E5-A825-E4AC837310BF/0/Cricket.JPG";
tif_ArrText[13]="/NR/rdonlyres/84D1E707-488D-4547-988E-8706E8B0B6FF/0/PlayingSurvivor.jpg";
tif_ArrText[14]="";
tif_ArrText[15]="";
tif_ArrText[16]="";
tif_ArrText[17]="";
tif_ArrText[18]="";
tif_ArrText[19]="";
tif_ArrText[20]="";
tif_ArrText[21]="";
tif_ArrText[22]="";
tif_ArrText[23]="";
tif_ArrText[24]="";
tif_ArrText[25]="";
tif_ArrText[26]="";
tif_ArrText[27]="";
tif_ArrText[28]="";
tif_ArrText[29]="";





var jpg_sizes = new Array();
jpg_sizes[0]="jpg (19.3 KB)";
jpg_sizes[1]="jpg (17.8 KB)";
jpg_sizes[2]="jpg (20.7 KB)";
jpg_sizes[3]="jpg (17.0 KB)";

jpg_sizes[4]="jpg (18.7 KB)";
jpg_sizes[5]="jpg (28.8 KB)";
jpg_sizes[6]="jpg (19.4 KB)";
jpg_sizes[7]="jpg (23.4 KB)";
jpg_sizes[8]="jpg (18.0 KB)";
jpg_sizes[9]="jpg (26.4 KB)";
jpg_sizes[10]="jpg (22.4 KB)";
jpg_sizes[11]="jpg (27.3 KB)";
//Career
jpg_sizes[12]="";
jpg_sizes[13]="";
jpg_sizes[14]="";
jpg_sizes[15]="";
jpg_sizes[16]="";
jpg_sizes[17]="";
jpg_sizes[18]="";
jpg_sizes[19]="";
jpg_sizes[20]="";
jpg_sizes[21]="";
jpg_sizes[22]="";
jpg_sizes[23]="";
jpg_sizes[24]="";
jpg_sizes[25]="";
jpg_sizes[26]="";
jpg_sizes[27]="";
jpg_sizes[28]="";
jpg_sizes[29]="";



var tif_sizes = new Array();
tif_sizes[0]="tif (7.9 MB)";
tif_sizes[1]="tif (2.9 MB)";
tif_sizes[2]="tif (5.8 MB)";
tif_sizes[3]="tif (17.1 MB)";

tif_sizes[4]="tif (2.3 MB)";
tif_sizes[5]="tif (2.3 MB)";
tif_sizes[6]="tif (2.3 MB)";
tif_sizes[7]="tif (2.3 MB)";
tif_sizes[8]="tif (12.4 MB)";
tif_sizes[9]="tif (5.5 MB)";
tif_sizes[10]="tif (12.1 MB)";
tif_sizes[11]="tif (7.2 MB)";
//Career
tif_sizes[12]="";
tif_sizes[13]="";
tif_sizes[14]="";
tif_sizes[15]="";
tif_sizes[16]="";
tif_sizes[17]="";
tif_sizes[18]="";
tif_sizes[19]="";
tif_sizes[20]="";
tif_sizes[21]="";
tif_sizes[22]="";
tif_sizes[23]="";
tif_sizes[24]="";
tif_sizes[25]="";
tif_sizes[26]="";
tif_sizes[27]="";
tif_sizes[28]="";
tif_sizes[29]="";

var image_News = new Array();
image_News[0]="/NR/rdonlyres/903A961B-F027-465E-8083-63A4B56802B5/0/mo_010609a_big.jpg";
image_News[1]="/NR/rdonlyres/C7435247-364A-4D84-AB9B-86016E4059E5/0/mo_010609b_big.jpg";
image_News[2]="/NR/rdonlyres/AD9D58B5-BE73-4A93-A94A-7C78473265E6/0/mo_010609c_big.jpg";
image_News[3]="/NR/rdonlyres/187B898C-4794-4F35-A380-B20C4B59523F/0/mo_010609d_big.jpg";
image_News[4]="/NR/rdonlyres/045FAA4F-649D-4962-A7F2-F87276857492/0/mo_010609e_big.jpg";
image_News[5]="/NR/rdonlyres/4A0A7DE6-05D9-45A5-B827-64598DC7B9E8/0/mo_010609f_big.jpg";
image_News[6]="/NR/rdonlyres/D1C5941D-DCB1-4D2B-B03C-A2ED41D21378/0/mo_010609g_big.jpg";
image_News[7]="/NR/rdonlyres/CB1386EE-E1BD-403F-8C86-18925439566E/0/Rich_Arnold_NASDAQ_YouTube_010609_big.jpg";
image_News[8]="/NR/rdonlyres/89F04501-29D7-4432-B537-F402E0E6F30D/0/mo_010609_hires_big.jpg";


function swapNewsPhotos(index,objImg)
{
	var callerSrc = objImg.src;
	callerSrc = image_News[index];

	document.getElementById('imgHolder').src = callerSrc ;
	
}

function swapHighPhotos(index,objImg)
{
	var callerSrc = objImg.src;
	callerSrc = image_ArrText[index];
	if(document.all){
     		document.getElementById('textHolder').innerText = highReso_ArrText[index];
	} else{
    		document.getElementById('textHolder').textContent = highReso_ArrText[index];
	}

	document.getElementById('imgHolder').src = callerSrc ;
	document.getElementById('lowResLink').innerText = jpg_sizes[index] ;
	document.getElementById('lowResLink').href = image_ArrText[index];
	document.getElementById('highResLink').innerText = tif_sizes[index] ;
	document.getElementById('highResLink').href = tif_ArrText[index];
}


// For  "Apply nOw" button : This function is for swaping images



function MM_swapImage(id,imagepath)
 { 

document.getElementById(id).src = imagepath;
 
}

function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'block':(v=='hide')?'none':v; }
    obj.display=v; }

	callIndiaTab();
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function LeftMenuSelectedArrow(tdClientId)
{
alert(tdClientId);
document.getElementById(tdClientId).className = 'leftmenuselecteditem';
}

function rollOver(divid,element1,poselement) {
try
{
element = document.getElementById(element1);
obj_poselement = document.getElementById(poselement);
if(element == null || obj_poselement== null)
	return
	
if(Browser.Version() <= 7)
{
  //change the colour
  element.className += (element.className?' ':'') + 'CSStoHighlight';
  //change display of child
  var divobj = document.getElementById(divid);
   if( divobj.tagName == 'DIV' ) 
   { 
    divobj.className += (divobj.className?' ':'') + 'CSStoShow';
  
	divobj.style.zIndex=parseInt(divobj.style.zIndex) + 20;
    var divObject = obj_poselement.parentNode;
        var left=0;
        var top=0;
     
        while(divObject.offsetParent != null)
        {
         left+=divObject.offsetLeft;
         top+=divObject.offsetTop;
         divObject = divObject.offsetParent;       
        }
     
        divobj.style.position='absolute';
        divobj.style.top =  top + 26;
        divobj.style.left =  left-5;
    
    
   }
  

  }
  else
  {
  // other than IE
  show(divid,element.id);
  //divobj = document.getElementById(divid);
  
  }
  }
  catch(ex)
  {
	alert(ex.description);
  }
  
}


function rollOff(divid,element1) {

element = document.getElementById(element1);
 
if(element == null)
	return
show(divid,element.id);	
if(Browser.Version() <= 7)
{
  //change the colour
  element.className = element.className.replace(/ ?CSStoHighlight$/,'');
  //change display of child
  var divobj = document.getElementById(divid);
  if( divobj.tagName == 'DIV' ) { divobj.className = 'style100';}
   //alert(divobj.className);
   }
  else
  {
  // other than IE
  
  show('d0',element.id);
  
  }
}

function CloseDiv(divid, e)
{
	var target;
	
	if(window.event)
	{
		target = window.event.srcElement;
	}
	else
	{
		target = e.target;
	}
	
	if(target.tagName == 'DIV' && target.id == divid.id)
	{
		var divObj = document.getElementById(divid.id);
		divObj.style.display = 'none';
	}
	
	//var element = null;
	
	//if (evt.relatedTarget) 
	//{
	//	element = evt.relatedTarget;
    //}
	//else if (evt.toElement) 
	//{
	//	element = evt.toElement;
	//}

	//while(element && element.id != divid.id)
	//{
	//	document.getElementById(divid.id).style.display = 'none';
	//	element = element.parentNode;
	//}

	//if (!element) 
	//{
	//	if (document.getElementById) 
	//	{
	//		document.getElementById(divid.id).style.display = 'none';
	//	}
	//}
}

var Browser = {
  Version: function() {
    var version = 999; // we assume a sane browser
    if (navigator.appVersion.indexOf("MSIE") != -1)
      // bah, IE again, lets downgrade version number
      version = parseFloat(navigator.appVersion.split("MSIE")[1]);
    return version;
  }
  }

function FindTop(objid)
  {
     var divObject = objid ;
             var top=0;
       
        while(divObject.offsetParent != null)
        {
      
         top=divObject.offsetTop;
         divObject = divObject.offsetParent; 
              
        }
      
        return top;
  
  }
  
  function FindLeft(objid)
  {
     var divObject = objid ;
        var left=0;
      
        
        while(divObject.offsetParent != null)
        {
         left+=divObject.offsetLeft;
       
         divObject = divObject.offsetParent;       
        }
        
        return left;
  
  }
  
function store_show1(thisobj)
{

var nav=document.getElementById(thisobj).style;
var divObject = document.getElementById(thisobj).parentNode; 


var top=FindTop(divObject); 
var left=FindLeft(divObject);

		
if(Browser.Version() <= 7)
{ 
//alert('Browser.Version() <= 7')
nav.top =  top + 117;  
nav.left = left + 31;
//document.getElementById(thisobj).style.height= 280; 
}   
else  
{ 
//alert('Browser.Version() <= 7 else')
nav.top =  top + 117; 
nav.left = left +15;
//document.getElementById(ThisObj).style.height= 265;
}

if(nav.display=='none') 
{ 
nav.display='block';
nav.position='absolute';
}
else
{
nav.display='none'; 
nav.position='absolute';
}

}

  
 function store_show() { 
 
document.getElementById("more").style.display = 'none'; 
store_show1("more");
} 
function store_hide() { 

//store_show1("more");
document.getElementById("more").style.display = 'none'; 
} 

function goToHyperSpaceDownload(){
       window.open('http://www.hyperspace.com/Download-HyperSpace.aspx');
}
 
function goToHyperSpaceDemo(){
       window.open("http://www.hyperspace.com/video.aspx","",
"width=680,height=400,left=" + ((screen.width - 680) / 2) + ",top=" +
((screen.height - 400) / 2) +",scrollbars=no,location=no,status=no");
}

function goToFreezeDemo(){
       window.open("http://www.phoenixfreeze.com/freeze/video.html?f=http://download.hyperspace.com/freeze/media/freeze_overview.flv","",
"width=680,height=400,left=" + ((screen.width - 680) / 2) + ",top=" +
((screen.height - 400) / 2) +",scrollbars=no,location=no,status=no");
}

function goToQuiz(id){
       window.open("/PhoenixTPLT/resources/quiz/online_masm_test.htm","",
"width=680,height=600,left=" + ((screen.width - 680) / 2) + ",top=" +
((screen.height - 600) / 2) +",scrollbars=no,location=no,status=no,resizable=yes");
}

function goToDemo(id){
       window.open("/PhoenixTPLT/resources/"+id+".html","",
"width=680,height=400,left=" + ((screen.width - 680) / 2) + ",top=" +
((screen.height - 400) / 2) +",scrollbars=auto,location=no,status=no");
return false;
}
function goToCareers(id){
       window.open("/PhoenixTPLT/resources/"+id+".html","",
"width=345,height=260,left=" + ((screen.width - 345) / 2) + ",top=" +
((screen.height - 260) / 2) +",scrollbars=no,location=no,status=no,directories=no,address=no,copyhistory=no,titlebar=no;dialog=yes;toolbar=no;menubar=no;chrome=yes;");
}

function goToURL(pageurl){
       window.location.href=pageurl;
}


function goToFailSafeDemo(){
       window.open("http://www.failsafe.com/failsafe/video?f=http://download.hyperspace.com/media/flash/FailSafe/failsafe_sales_video.swf","",
"width=750,height=500,left=" + ((screen.width - 750) / 2) + ",top=" +
((screen.height - 500) / 2) +",scrollbars=no,location=no,status=no");
}


function embeddedBios(objId)
{
	document.getElementById("tr_embedded_0").style.display='none';	
	document.getElementById("tr_embedded_1").style.display='none';
	document.getElementById("div_embedded_1").style.display='none';
	document.getElementById("tr_embedded_2").style.display='none';
	document.getElementById("div_embedded_2").style.display='none';
	document.getElementById("tr_embedded_3").style.display='none';
	document.getElementById("div_embedded_3").style.display='none';
	document.getElementById("tr_embedded_"+objId).style.display='';
	if(document.getElementById("div_embedded_"+objId) && document.getElementById("div_embedded_"+objId)!=null)
		document.getElementById("div_embedded_"+objId).style.display='';	
	
}


function showContent(objId)
{
	for( i=1; i<7; ++i)
	{
		document.getElementById("div_c"+i).style.display='none';
		
		
	}				
	
	document.getElementById("div_"+objId).style.display='';	
	

}

function showPane(paneId, activeTab)
{

	document.getElementById("Pane1").style.display='none';		
	document.getElementById("Pane2").style.display='none';
	document.getElementById("Pane3").style.display='none';
	document.getElementById("Pane4").style.display='none';
	document.getElementById("Pane"+paneId).style.display='block';		
	
}

function  openCoreBIOS(id){
	for( i=1; i<8; ++i)
	{
		if(document.getElementById("td_core_"+i) && document.getElementById("td_core_"+i)!=null) {
			document.getElementById("td_core_"+i).className='normal-tab';
			document.getElementById("tr_core_"+i).style.display='none';	
		}	
		
	}	
	document.getElementById("tr_core_"+id).style.display='';
	document.getElementById("td_core_"+id).className='selected-tab';	
}
function callIndiaTab() {
try{
	if (window.location.href.toLowerCase().indexOf("/en/india/")>0) { 
		document.getElementById("tdmenu6").style.display='';	

	} else{
		//document.getElementById("tdmenu6").style.display='none';	
	}
}
catch(err){
}
}
