var createFlash = function(url, width, height, name){
	var name = (name) ? name : "flash_" + new Date().getHours() + "_" + new Date().getMinutes() + "_" + new Date().getMilliseconds();
	var string = '<object id="'+name+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'" name="'+name+'" align="middle">';
	string += '<param name="allowScriptAccess" value="sameDomain" />';
	string += '<param name="movie" value="'+url+'" />';
	string += '<param name="quality" value="high" />';
	string += '<param name="bgcolor" value="#000000" />';
	string += '<param name="menu" value="false" />';
	string += '<embed id="'+name+'" src="'+url+'" menu="false" quality="high" bgcolor="#000000" width="'+width+'" height="'+height+'" name="'+name+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	string += '</object>';
	document.write(string);
}

function SkypeCall()
{
 try
 {
   if(skypeCheck())
   {
                      top.location = "skype:pipforex?call";
   }
 }
 catch(e)
 {
                      top.location = "skype:pipforex?call";
 }
}
 

function ShowIcon()
{
 var obj = document.getElementById("skypecall");
 obj.innerHTML = '<img src="http://mystatus.skype.com/smallicon/sandargh" alt="">';
}
