﻿
	 function Guidedpopup()
         {
            var w = 480, h = 340;

	        if (document.all) {
	            /* the following is only available after onLoad */
	            w = document.body.clientWidth;
	            h = document.body.clientHeight;
	        }
	        else if (document.layers) {
	            w = window.innerWidth;
	            h = window.innerHeight;
	        }

	        var popW = 525, popH = 480;

	        var leftPos = (w - popW) / 2, topPos = (350) / 2;
            //googlewin = dhtmlwindow.open("dynamicsExchange", "iframe", "ceadvisor/TestDefault.aspx?CEID=cf2bd11c-572f-4448-894f-f2abfd4e8ef7", "Build Your CRM Solution", "width=757px,height=580px,resize=0,scrolling=0,center=0","recal");
            googlewin = dhtmlwindow.open("dynamicsExchange", "iframe", "../SCDefault.aspx", "Build Your CRM Solution", "width=750px,height=580px,resize=0,scrolling=0,center=0","recal");
            googlewin.moveTo(370, 190);
         }
  
	
	    function clearDefault(el) 
	    {
	        if (el.defaultValue==el.value) el.value = ""
	    }
	
    

        normal_image = new Image();
        normal_image.src = "images/video1.jpg";

        mouseover_image = new Image();
        mouseover_image.src = "images/video1_over.jpg";

        

        function swap(){
        if (document.images){
        for (var x=0;
        x<swap.arguments.length;
        x+=2) {
        document[swap.arguments[x]].src = eval(swap.arguments[x+1] + ".src");
        }
        }
        }


function ShowFlash()
{

var varpos;
      var divobj =  document.getElementById('chat');
    var count = divobj.getElementsByTagName('img')
    
    if(count.length > 0)
    {
        str = new String(count[0].src)
      
        varpos = str.indexOf('DynamicsCenter_Chat_Available.gif',0)
       
       if(varpos>0 )
       {
          
          document.getElementById("chat").style.display = "none";
       }
       else
       {
         
         document.getElementById("flash").style.display = "none";
         document.getElementById("chat").style.display = "block";
       }
    }
}

