//from HEAD

function MM_preloadImages() { 
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { 
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { 
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function openpopup(theURL,winName,features) { 
  var x = window.open(theURL,winName,features);
  x.focus();
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function doSitePopup(externalURL){
	   window.open(externalURL,'externalpage');
	   MM_openBrWindow('/linkpop.html','externallink','width=250,height=150');
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function jumpTo(targ,selObj,restore){ //v3.0
//  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  window.open(selObj.options[selObj.selectedIndex].value,'_blank','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=517,height=500');
  if (restore) selObj.selectedIndex=0;
}
function popUpSummary()
{
window.open ('login_revenueSummary.htm', '_blank','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=1000,height=500')
}
function popUpMotorola(){window.open ('login_Motorola.htm', '_blank','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=720,height=300')}




///////////////////////////////////////////////////////////////////////////FAQ - General

// define the different tip categories
var cat1 = "";
var cat2 = "";
var cat3 = "";
var cat4 = "";
var cat5 = "";
var cat6 = "";
var cat7 = "";
var cat8 = "";
var cat9 = "";
var cat10 = "";
var cat11 = "";
var cat12 = "";
var cat13 = "";
var cat14 = "";
		
// and their  hyperlinks
var cat1url = "";
var cat2url = "";
var cat3url = "";
var cat4url = "";
var cat5url = "";
var cat6url = "";
var cat7url = "";
var cat8url = "";
var cat9url = "";
var cat10url = "";
var cat11url = "";
var cat12url = "";
var cat13url = "";
var cat14url = "";

// and the blurb for linking through
var cat1blurb = "";
var cat2blurb = "";
var cat3blurb = "";
var cat4blurb = "";
var cat5blurb = "";
var cat6blurb = "";
var cat7blurb = "";
var cat8blurb = "";	
var cat9blurb = "";	
var cat10blurb = "";	
var cat11blurb = "";	
var cat12blurb = "";	
var cat13blurb = "";	
var cat14blurb = "";	

/*
	array containing content for questions & answers. [0] = question [1] = answer
	(all strings should have special characters escaped)
*/		

var recenttips = new Array (
 ["I can't get some of your web site links to work.","Make sure that you disable any pop-up blocking software. Our site opens a new window and pop-up blockers may prevent links from opening the page.",4],
 ["What is InterASP?","InterASP is an emailing engine which enables broadcasting & tracking of responses of email campaigns. It allows for the designing of professional-looking email campaigns & the tracking of each response from your customers.<br><br>InterASP is dedicated to bringing reliability and safety to high value email communications for the benefit of all participants in the email value chain. Its sole focus is the development, implementation, and operation of an effective email platform. ",4],
 ["What is your business address and contact information?","NetInfinium Corporation Sdn Bhd<br>70B, Jln SS 21/39, Damansara Utama<br>47400 Petaling Jaya, Selangor , Malaysia.<br>Tel: +603 7722 3869<br>Fax: +603 7722 3871<br>Email: <a href='mailto:sales@netinfinium.com'>sales@netinfinium.com</a><br><br>We process orders and offer email support 9am to 5pm Monday to Friday<br>(GMT +8:00).",4],
 ["After I sign up, can I start right away?","Yes! Just sign up for an account. Get your username and password. Log in and start communicating with your customers in the masses.",4],
 ["Do you have a free trial package?","Yes, Please <a href='contact_us.htm'>contact us</a> regarding the free trial package.",4],
 //["Do you have a free trial package?","Yes, <a href='sign_up.htm'>sign up</a> at our Free Trial area. You are allowed to send up to 3MB worth of messages (approximately 100 emails).",4],
 ["Can I send my marketing campaign in HTML format?","Yes.",4],
 ["Is there any kind of content you don’t accept?","We reserve the right to refuse any marketing advertisement if its content is illegal or inappropriate.",4],
 ["Can I send spam?","No. We comply with all current laws and provide an unsubscribe option in every transmission.",4],
 ["How will I know when my marketing advertisement has been sent?","We'll send you an email notification.",4],
 ["How many characters can I have in the subject line and email body?","Although though we don't have size limits, we strongly recommended you keep your email body size under 12kb to maximize ISP filter penetration. Subject lines are best at 9 words or less.",4],
 ["How will I know when the newsletter or mail reaches subscribers?","The Reports section will track and report on delivery in real time. We also recommend that you always include yourself on your mailing list so you will receive the email too.",4],
 ["What time of day do the mailings go out?","It will start on your scheduled delivery date. However, an exact time of day is impossible to predict.",4],
 ["Once the mailing starts, how long before I start seeing responses?","It's possible to start seeing some responses within just a couple of minutes after your mailing starts delivery.",4],
 ["Do you use safe lists?","No, we send out the email according to your email lists.",4]
 );

/*
	function to display the answers content and toggle any
	previously visible answer to hidden.
*/	
var active = null;
function toggleanswer(num)
{
	var answer = document.getElementById("a"+num);
	if(answer.style.display == "inline")
	{
		answer.style.display = "none"
		document.getElementById("arrow"+num).src = "up.gif";
		active = null;				
	}
	else	
	{
		answer.style.display = "inline";
		document.getElementById("arrow"+num).src = "down.gif";
		(active!=null) ? toggleanswer(active) : void(null);
		active = num;
	}
}	

/*
	function to take question & answers content from an array and build
	html elements, returns code string
*/
function maketips(obj)
{
	var code = "";			
	var j = 0;
	if(testos.indexOf("mac")==-1 && !document.layers)
	{
		for(i=0; i<obj.length; i++)
		{
			j = i + 1;
			code += "<div id=\"question\">";
			code += "	<span class=\"arrow\"><img src=\"up.gif\" width=\"10\" height=\"24\" border=\"0\" id=\"arrow" + j + "\"></span>";
			code += "	<span class=\"question\"><a href=\"javascript:toggleanswer(" + j + ")\">" + obj[i][0] + "</a><br></span>";
			code += "	<span class=\"answer\" id=\"a" + j + "\">" + obj[i][1];
			(eval("cat"+obj[i][2]+"blurb")!=null) ? code += "<br>" + eval("cat"+obj[i][2]+"blurb") +"&nbsp;</span>" : code += "</span>";
			code += "</div><br>";
		}
	}
	else if(document.all || document.layers)
	{
		var linkcode;
		code += "<table border=\"0\" width=\"500px\" cellpadding=\"0\" cellspacing=\"0\">";
		for(i=0; i<obj.length; i++)				
		{
			j = i + 1;
			if(!document.layers)
				linkcode = "<a href=\"javascript:toggleanswer(" + j + ")\">";										
			else
				linkcode = "<a href=\"/protected/expert/" + eval("cat"+obj[i][2]+"url") + "#tip" + j + "\">";										
				
			// the question hyperlink
			code += "<tr class=\"question\">";
			code +=	"	<td width=\"10\"><img src=\"up.gif\" id=\"arrow" + j + "\" width=\"10\" height=\"24\" alt=\"\" border=\"0\"></td>";
			code += " <td width=\"588\">" + linkcode + obj[i][0] + "</a></td>";
			code += "</tr>";					
			// and the answer (if NOT netscape 4.x)
			if(!document.layers)
			{
				code +=	"<tr class=\"answer\" id=\"a" + j + "\">";
				code +=	"<td width=\"20\"><img src=\"/images/spacer.gif\" width=\"12\" height=\"1\"></td>";
				code +=	"<td width=\"588\"><span class=\"answertext\">" + obj[i][1];
				(eval("cat"+obj[i][2]+"blurb")!=null) ? code += "<br>" + eval("cat"+obj[i][2]+"blurb") +"&nbsp;</span></td>" : code += "<br><br></span></td>";			
				code +=	"</tr>";
			}
			// and a blank row
			//code += "<tr class=\"gap\">";
			//code += "<td><img src=\"/images/assets/spacer.gif\" width=\"20\" height=\"1\"></td>";
			//code += "<td><img src=\"/images/assets/spacer.gif\" width=\"100\" height=\"1\"></td>";
			//code += "</tr>";													
		}
		code += "</table>";
	}
	else if(document.getElementById)
	{
		for(i=0; i<obj.length; i++)
		{
			j = i + 1;
			code += "<div id=\"question\">";
			code += "	<span class=\"arrow\"><img src=\"up.gif\" width=\"5\" height=\"12\" border=\"0\" id=\"arrow" + j + "\"></span>";
			code += "	<span class=\"question\"><a href=\"javascript:toggleanswer(" + j + ")\">" + obj[i][0] + "</a></span>";
			code += "	<span class=\"answer\" id=\"a" + j + "\">" + obj[i][1];
			(eval("cat"+obj[i][2]+"blurb")!=null) ? code += "<br>" + eval("cat"+obj[i][2]+"blurb") +"&nbsp;</span>" : code += "<br><br></span>";	
			code += "</div>";
		}
	}
				
	return code;
}		

var testos = navigator.platform.toLowerCase();

// create the different CSS code needed for each platform		

// pc ie, mozilla, netscape 6.x mac/pc
var domcss = "<style type=\"text/css\">\n";
domcss += "div#question { border-bottom:0px solid silver; width:500px; padding-top:0px;padding-bottom:0px; }\n";
domcss += "div span { font-family:tahoma,verdana; font-size:11px; color:#333333;}\n";
domcss += "div span.arrow { float:left; width:25px; }\n";
domcss += "div span.question a { position:relative; font-weight:bold; color:#5A9943; text-decoration:underline; display:block}\n";
domcss += "div span.question a:hover { text-decoration:underline; }\n";
domcss += "div span.answer { position:relative; padding-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; width:100%; display:none; }\n";
domcss += "div span.answer a { color:#5A9943;font-weight:bold }\n";
domcss += "div span.answer a:hover { text-decoration:none; }\n";
domcss += "div hr { color:#ededed; }\n";
domcss += "</style>";

// netscape 4.x
var ns4css = "<style type=\"text/css\">\n";
ns4css    += "td { font-family:verdana; font-size:11pt }\n";	
ns4css    += "td a { color: #333333 }\n";		
ns4css    += "</style>";

// mac ie
var maccss = "<style type=\"text/css\">\n";
maccss    += "td {  text-align:left; font-family:verdana; font-size:9pt; }\n";	
maccss	  += "tr.question a { text-align:left; text-decoration:none; font-weight:bold; color:#5A9943; }\n";
maccss    += "tr.question a:hover { text-decoration:underline }\n";
maccss    += "tr.answer { display:none; }\n";
maccss    += "tr.gap { border-top:1px solid #5A9943; margin-bottom:4px };\n";
maccss    += "</style>";

// insert the appropriate css code
(testos.indexOf("mac")!=-1) ? ((document.all) ? document.write(maccss) : document.write(domcss)) : ((document.layers) ? document.write(ns4css) : document.write(domcss));
if(document.getElementById && !document.all)
	document.write("<style>span.question a { left:15px }</style>");	
	
///////////////////////////////////////////////////////////////////////////end      FAQ - General
