
	function removeElById(id) {
	document.getElementById('light').style.display='none';
	document.getElementById('fade').style.display='none';
	  var el = document.getElementById(id)
       el.parentNode.removeChild(el)
	   currentTPage = '';
	}

	
	function show_webinar(webinarID,webinarLang) {
		
		var webinarXML = "/webinars/webinars/" + webinarID + "/SlidePlatformXML.xml";
				
 		var swfPath;
          switch(webinarLang)
          {
            case "ch":
              swfPath = '/webinars/Webinar_ch.swf';         
              break;
            default:
              swfPath = '/webinars/Webinar.swf';
              break;
          }             
	  document.getElementById('light').style.display='block';
	  document.getElementById('fade').style.display='block';

	  var objWebinar = document.getElementById("flashdiv");
      if (objWebinar) {
				var so = new SWFObject(swfPath, "theWebinar",  "966", "509", "8", "#ffffff", "wmode");
			 	so.addParam( "wmode","transparent");
			 	so.addVariable('webinarXML',webinarXML);
			 	so.addVariable('webinarLang',webinarLang);
			 	so.write(objWebinar);
			}
	}


	function launch_demo(demoID) {
		var newWin = new WindowUtils();
		var dWidth = 560;
		var dHeight = 560;
		
		if ((demoID == "insight_demo") || (demoID == "ice"))	{
			var dWidth = 700;
			var dHeight = 560;
		}
		
		if (demoID == "pc_cool_IT")	{
			var dWidth = 800;
			var dHeight = 600;
		}	
	
		newWin.popup('demos/' + demoID + '/', dWidth, dHeight, 'demoWin_' + demoID) 
	}
	
	function launch_dsc() {
		var newWin = new WindowUtils();
		newWin.popup('demos/dsc/', 960, 465, 'dscDemo') 
	}
	
	function launch_trivia() {
		var newWin = new WindowUtils();
		newWin.popup('/demos/pc_trivia/', 700, 475, 'pcTrivia') 
	}
	
	function showVBadge()	{
		//document.getElementById('vbadge').style.display='block';
	}
	function hideVBadge()	{
		//document.getElementById('vbadge').style.display='none';
	}
