function widget_new_01_ole_cb_working_2_DoFSCommand(command, args) 
{

	switch(command)
	{
		case "go_self": location.href=args;break;
		case "go_blank": open(args,"_blank");
	}
}

var width,height,nationality_country,destination_country,bg,affiliate_id,puid,nationality,destination,gotarget,residency,lang, residency_domain,https;
var protocol = location.protocol+'//';
if (https === '1') protocol = 'https://';

residency_domain=(residency_domain && residency_domain!='')?residency_domain:'visahq.com';
var serv_host=protocol+'www.'+residency_domain+'/';

if (width==undefined)
width=400;

if(gotarget!='' && typeof(gotarget)!='undefined' ) var targettext='&gotarget='+gotarget;
else var targettext='';

if(typeof(lang)!='undefined' ) var targetlang='&lang='+lang;
else var targetlang='';

if (puid==undefined)
puid="";
gttooltext="";

if (puid!='')
{
  residency_domain=(residency_domain && residency_domain!='')?residency_domain:'visaheadquarters.com';
  serv_host=protocol+puid+'.'+residency_domain+'/';
}


if (height==undefined)
height=264;
var is_new=true;

if (nationality_country==undefined)
   nacionality_country=214;
else
    is_new=false;

if (destination_country==undefined)
   destination_country=214;

if (bg==undefined)
   bg=1;
if (affiliate_id==undefined)
   affiliate_id=0;
var ref_=protocol+location.host+location.pathname;
ref_=encodeURIComponent(ref_);




//==================================================================
var MM_contentVersion = 6;
var MM_FlashCanPlay;
plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
      var words = navigator.plugins["Shockwave Flash"].description.split(" ");
       for (var i = 0; i < words.length; ++i)
       {
      if (isNaN(parseInt(words[i])))
      continue;
      var MM_PluginVersion = words[i]; 
       }
   MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else 
if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
   //MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)));
   var ss1='<SCRIPT LANGUAGE=VBScript\> MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion))) </SCRIPT>';
   document.write(ss1);
}

//alert(MM_FlashCanPlay);
if ((MM_FlashCanPlay!=true)||(MM_FlashCanPlay==undefined))
{
	ss1='<script type="text/javascript"> visahq_widget_nationality_country="'+nationality+'"; ';
	ss1+=' visahq_widget_destination_country = "'+destination+'";';

	if(puid!='') 	ss1+=' visahq_widget_plugin_name = "'+puid+'";';
	ss1+=' visahq_widget_residency_country = "'+residency+'";';
	ss1+=' visahq_widget_affiliate_id = "'+affiliate_id+'";</script>';
	ss1+='<script src='+protocol+'www.'+residency_domain+'/scripts/widget/widget_v.js" type="text/javascript"></script>';
	
//	alert(ss1);
	document.write(ss1);

}
//=================================================================================	  

          var widget = '<img src="'+serv_host+'widget_6.php?ws_key=1&type=flash" width="1px" height="1px">';
          widget += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ';
          widget+='width="'+ width + '" height="' + height + '" align="middle">';
           widget+= '<param name="wmode" value="transparent" />';
           widget+='<param name="allowScriptAccess" value="sameDomain" />';
           widget+= '<param name="movie" value="'+serv_host+'widget_new_01_ole_cb_working_2.swf">';
           //
           widget+='<param name="FlashVars" value="https='+https+'&puid='+puid+targettext+targetlang+'&residency_domain='+residency_domain+'&ref_='+ref_;
           if (is_new)
                widget+='&nationality=' + nationality +  '&destination=' + destination;
            else
                widget+='&nationality_country=' + nationality_country +  '&destination_country=' + destination_country;

           widget+='&bg=' + bg  + '&affiliate_id=' + affiliate_id + '" />';
           widget+=' <param name="quality" value="high" />';
           widget+=' <param name="bgcolor" value="#ffffff" />';
           
           widget+='<embed name="widget_new_01_ole_cb_working_2" id="widget_new_01_ole_cb_working_2" src="'+serv_host+'widget_new_01_ole_cb_working_2.swf" ';
           widget+=' FlashVars="https='+https+'&puid='+puid+targettext+targetlang+'&residency_domain='+residency_domain+'&ref_='+ref_;
           if (is_new)
           widget+='&nationality=' + nationality + '&destination=' + destination + '&residency=' + residency ;
       else
           widget+='&nationality_country=' + nationality_country + '&destination_country=' + destination_country ;

               widget+='&bg=' + bg+  '&affiliate_id=' + affiliate_id + '" ';
           widget+='quality="high" bgcolor="#ffffff" width="' + width + '" height="' + height + '" align="middle" ';
           widget+='allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"';
           widget+='wmode="transparent" />';
          widget+='</object>';

if (MM_FlashCanPlay) document.write(widget);



