﻿// JScript File
 //alert("s");
function fnMapLoadDest(queryString,Path,clientID,pid)
{
   
    if(queryString == "")
    {
        var nHeight = ((pid == 1) ? 211 : 173);
        var nWidth = ((pid == 1) ? 340 : 319);
    
        if(pid == 3)
        {
            nWidth = 325; 
            nHeight = 211;
        }
    
        var str = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0' width='" + nWidth + "' height='" + nHeight + "' id='ImgFlashWorld'>";
                    str = str + "<param name='movie' value='" + Path + "' />"
                    str = str + "<param name='quality' value='high' />";
                    str = str + "<param name='wmode' value='transparent' />";
                    str = str + "<embed src='" + Path + "' quality='high' wmode='transparent'  pluginspage='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='" + nWidth + "' height='" + nHeight + "' name='ImgFlashWorld' swLiveConnect='true'></embed>"
                str = str + "</object>";
                
         document.getElementById(clientID + "_divMap").innerHTML = str;
    }
    else
    {
     var str = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0' width='580' height='300' id='ImgFlashCont'>";
                    str = str + "<param name='movie' value='" + Path + "' />"
                    str = str + "<param name='quality' value='high' />";
                    str = str + "<param name='wmode' value='transparent' />";
                    str = str + "<embed src='" + Path + "' quality='high' wmode='transparent'  pluginspage='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='580' height='300' name='ImgFlashCont' swLiveConnect='true'></embed>"
                str = str + "</object>";
                
        document.getElementById(clientID + "_divMap").innerHTML = str;
    }
}