
/*Bloque 1*/
/* 1.- Simple - This function build all Podcast object elements*/	
 
 /* This function Show everything video, background, close image etc…*/
function showOverlay(varTit, varFrStory, varRf) {
showLayer();  

document.getElementById('layer').style.display = "block";
document.getElementById('apDiv').style.display = "block";
document.getElementById('apDiv1').style.display = "block";
document.getElementById("apDiv1").innerHTML = "<a href='javascript:hideVids()'><img src='http://welcome.hp-ww.com/country/us/en/img/welcome/close.gif' alt='close' border='0'> </a><center><strong>" + varTit + "</strong><br><br /><object height='302' width='632'><param name='allowFullScreen' id='object' value='true'><param name='allowScriptAccess' value='always'/><param name='movie' value='http://players.feedroom.com/hptv/wsoneclip/player.swf?site=hptv&skin=wsoneclip&fr_story=" + varFrStory + "&rf=" + varRf +"&autoplay=true&fullscreen=true'/> <embed src= 'http://players.feedroom.com/hptv/wsoneclip/player.swf?site=hptv&skin=wsoneclip&fr_story=" + varFrStory + "&rf=" + varRf +"&autoplay=true&fullscreen=true' height='314'width='500'allowFullScreen='true' allowScriptAccess='always'/></object>";

}

function showVids0() {
showLayer();  

document.getElementById('layer').style.display = "block";
document.getElementById('apDiv').style.display = "block";
document.getElementById('apDiv1').style.display = "block";
document.getElementById("apDiv1").innerHTML = "<object height='315' width='560'><param name='allowFullScreen' id='object' value='true'><param name='allowScriptAccess' value='always'/><param name='movie' value='http://hpproserv.pb.feedroom.com/hp/hpproserv/hpscaleshare/player.swf?Environment =&Site ID=hpproserv&SiteName=HP Products &  ServicesVideos&SkinName=hpscaleshare&ChannelID=2694b6388b9296446822a583bebf9f8fd966e0b1&StoryID=04d62fd6d2d6c9cc83440a67ef8ca75156824390&Volume=5&AutoPlay=false'/> <embed src= 'http://hpproserv.pb.feedroom.com/hp/hpproserv/hpscaleshare/player.swf?Environment =&Site ID=hpproserv&SiteName=HP Products &  ServicesVideos&SkinName=hpscaleshare&ChannelID=2694b6388b9296446822a583bebf9f8fd966e0b1&StoryID=04d62fd6d2d6c9cc83440a67ef8ca75156824390&Volume=5&AutoPlay=false' height='315' width='560' allowFullScreen='true' allowScriptAccess='always'/></object>";

}
 
function showVids1() {
showLayer();  

document.getElementById('layer').style.display = "block";
document.getElementById('apDiv').style.display = "block";
document.getElementById('apDiv1').style.display = "block";
document.getElementById('close_txt').style.visibility = "visible";
document.getElementById("apDiv1").innerHTML = "<object height='270' width='480'><param name='allowFullScreen' value='true'><param name='allowScriptAccess' value='always'/><param name='movie' value='http://hpproserv.pb.feedroom.com/hp/hpproserv/hpscaleshare/player.swf?Environment=&Site ID=hpproserv&SiteName=HP Products & ServicesVideos&SkinName=hpscaleshare&ChannelID=73b38ee214e1d379cb19e7596c4fdf9f61a4fe98&StoryID=f1fff0f999bd74005f6bedc4bc6977c88c68c093&Volume=5&AutoPlay=true'/> <embed src= 'http://hpproserv.pb.feedroom.com/hp/hpproserv/hpscaleshare/player.swf?Environment=&Site ID=hpproserv&SiteName=HP Products & ServicesVideos&SkinName=hpscaleshare&ChannelID=73b38ee214e1d379cb19e7596c4fdf9f61a4fe98&StoryID=f1fff0f999bd74005f6bedc4bc6977c88c68c093&Volume=5&AutoPlay=true' height='270'width='480'allowFullScreen='true' allowScriptAccess='always'/></object>";
}

function showVids2() {
showLayer();  

document.getElementById('layer').style.display = "block";
document.getElementById('apDiv').style.display = "block";
document.getElementById('apDiv1').style.display = "block";
document.getElementById('close_txt').style.visibility = "visible";
document.getElementById("apDiv1").innerHTML = "<object height='270' width='480'><param name='allowFullScreen' value='true'><param name='allowScriptAccess' value='always'/><param name='movie' value='http://hpproserv.pb.feedroom.com/hp/hpproserv/hpscaleshare/player.swf?Environment=&SiteID=hpproserv&SiteName=HP Products & Services&SkinName=hpscaleshare&ChannelID=73b38ee214e1d379cb19e7596c4fdf9f61a4fe98&StoryID=9c3b62b1367945d98264671ac446f0855fb26ed6&AutoPlay=true'/> <embed src= 'http://hpproserv.pb.feedroom.com/hp/hpproserv/hpscaleshare/player.swf?Environment=&SiteID=hpproserv&SiteName=HP Products & Services&SkinName=hpscaleshare&ChannelID=73b38ee214e1d379cb19e7596c4fdf9f61a4fe98&StoryID=9c3b62b1367945d98264671ac446f0855fb26ed6&AutoPlay=true' height='270'width='480'allowFullScreen='true' allowScriptAccess='always'/></object>";

}
function showVids3() {
showLayer();  

document.getElementById('layer').style.display = "block";
document.getElementById('apDiv').style.display = "block";
document.getElementById('apDiv1').style.display = "block";
document.getElementById("apDiv1").innerHTML = "<a href='javascript:hideVids()'><img src='/services/images/overlay_close.gif' alt='close' border='0'> </a><center><strong>USB cable setup</strong><br><br /><object height='302' width='632'><param name='movie' value='http://hpproserv.pb.feedroom.com/hp/hpproserv/hpscaleshare/player.swf?Environment=&Site ID=hpproserv&SiteName=HP Products & ServicesVideos&SkinName=hpscaleshare&ChannelID=2694b6388b9296446822a583bebf9f8fd966e0b1&StoryID=04d62fd6d2d6c9cc83440a67ef8ca75156824390&Volume=5&AutoPlay=true'/><embed src= 'http://hpproserv.pb.feedroom.com/hp/hpproserv/hpscaleshare/player.swf?Environment=&Site ID=hpproserv&SiteName=HP Products & ServicesVideos&SkinName=hpscaleshare&ChannelID=2694b6388b9296446822a583bebf9f8fd966e0b1&StoryID=04d62fd6d2d6c9cc83440a67ef8ca75156824390&Volume=5&AutoPlay=true' height='284'width='502'allowFullScreen='true' allowScriptAccess='always'/></object>";

}



 
/* This function close the video*/
function hideVids(){
document.getElementById('apDiv1').style.display = "none";
document.getElementById('layer').style.display = "none";
document.getElementById('apDiv').style.display = "none";
document.getElementById('close_txt').style.visibility = "hidden";
closeLayer();
}
 
/* This function creates the backgroung of the video object */	

	function showLayer()
  {  
	var apDiv = document.createElement('div');
	apDiv.style.zIndex = 1800;
	apDiv.style.width = '480px';
	apDiv.style.height = '255px';
	apDiv.style.display = "none"; 
	apDiv.style.backgroundColor = 'white';
	apDiv.id = 'apDiv';
	apDiv.style.position = 'absolute';
    apDiv.style.top = '205px';
    apDiv.style.left = '255px';
              document.body.appendChild(apDiv); 

 
/* This function creates the video object*/
	var apDiv1 = document.createElement('div');
              apDiv1.style.zIndex = 1900;
              apDiv1.style.display = "none"; 
              apDiv1.id = 'apDiv1';
              apDiv1.style.position = 'absolute';
              apDiv1.style.top = '205px';
              apDiv1.style.left = '255px';
              document.body.appendChild(apDiv1);  
 
/* This function creates the black  screen background*/
    var width = document.documentElement.clientWidth + document.documentElement.scrollLeft; 
    var layer = document.createElement('div');
    layer.style.zIndex = 1001;
    layer.style.display = "none"; 
    layer.id = 'layer';
    layer.style.position = 'absolute';
    layer.style.top = '0px';
    layer.style.left = '0px';
    layer.style.height = document.documentElement.scrollHeight + 'px';
    layer.style.width = width + 'px';
    layer.style.backgroundColor = 'black';
    layer.style.opacity = '.6';
    layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=60)");
    document.body.appendChild(layer);  
}
 
 /* This function  Close the video*/
function closeLayer()
  {  
document.body.removeChild(document.getElementById('layer'));     
document.body.removeChild(document.getElementById('apDiv'));
document.body.removeChild(document.getElementById('apDiv1')); 

  }
  
/* this is used in /hho/us/en/pclc/articles/why-buy-hp.html page */  
