﻿// JScript File

function writeHTML(a){document.write(a)}

function swf( src, width, height, id )
        {
        if(!id) id = 'swf';
 writeHTML('<embed src="'+src+'" scale="noscale" salign="lt" quality="high" bgcolor="#ffffff" width="700px" height="500px" name="'+id+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
 }
 
 function swffull( src, width, height, id )
        {
        if(!id) id = 'swf';
 writeHTML('<embed src="'+src+'" scale="noscale" salign="lt" quality="high" bgcolor="#ffffff" width="'+width+'%" height="'+height+'%" name="'+id+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
 }
 
 function swfcustom( src, width, height, id )
        {
        if(!id) id = 'swf';
 writeHTML('<embed src="'+src+'" scale="noscale" salign="lt" quality="high" bgcolor="#ffffff" width="'+width+'" height="'+height+'" name="'+id+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
 }
 
 var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function ProCharts_DoFSCommand(command, args)
{
	switch( command )
	{
	case 'help':
	    window.open('http://aktieguiden.ichartsonline.com/chartcontent.aspx','_blank','height=420px,width=720px');
	    break;
	}
	return false;
}

// Hook for Internet Explorer.
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<script language=\"VBScript\"\>\n');
	document.write('On Error Resume Next\n');
	document.write('Sub ProCharts_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call ProCharts_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}
