

<!--
var ie = (navigator.appName == 'Microsoft Internet Explorer');
if(ie){
	document.write('<link rel="stylesheet" href=".http://images3.stardock.com/tgNET/css/style_ie.css">');	
}else{
	document.write('<link rel="stylesheet" href="http://images3.stardock.com/tgNET/css/style_other.css">');	
}

function VerifyAction(TypeID)
{
	var sPrompt;
	if (TypeID == 1){
		sPrompt = "Are you sure you want to delete this Article?";
	}else if (TypeID == 2){
		sPrompt = "Are you sure you want to un delete this Article?";
	}else if (TypeID == 3){
		sPrompt = "Are you sure you want to delete this Comment?";
	}
	if (!confirm(sPrompt)) 
	{
		event.returnValue=false;
		return false;
	}
}

function ShowMovieRequest()
{
var DisplayWindow
	DisplayWindow = window.open('','','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=no,width=350,height=179');	

	DisplayWindow.document.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">");
	DisplayWindow.document.write("<HTML>");
	DisplayWindow.document.write("<HEAD>");
	DisplayWindow.document.write("<title>TotalGaming.net</title>");
	DisplayWindow.document.write("<style type=\"text/css\">");
	DisplayWindow.document.write(".body { font-family: arial; font-size: 12px; line-height: 16px; color: #000000; }");
	DisplayWindow.document.write("A {COLOR: #003399; TEXT-DECORATION: UNDERLINE;}");
	DisplayWindow.document.write("A:hover {COLOR: #550000; TEXT-DECORATION: UNDERLINE;}");
	DisplayWindow.document.write("</style>");
	DisplayWindow.document.write("</HEAD>");
	DisplayWindow.document.write("<body text=\"#000000\" link=\"#000000\" vlink=\"#000000\" alink=\"#000000\" rightmargin=\"0\" leftmargin=\"0\" marginwidth=\"0\" topmargin=\"0\" marginheight=\"0\" bgcolor=\"#EEEEEE\">");
	DisplayWindow.document.write("<img src=\"http://images3.stardock.com/tgNET/tgn_popup-header.gif\">");
	DisplayWindow.document.write("<table width=\"100%\" cellpadding=8 cellspacing=0><tr><td><form name=\"theForm\" style=\"margin: 0px;\">");
	DisplayWindow.document.write("<font style=\"font-family: arial; font-size: 11px;\">");
	DisplayWindow.document.write("<B>Please select video size:</B>");
	DisplayWindow.document.write("<BR><span style=\"width:130px;\"><a href=\"http://images3.stardock.com/tgNET/TGDN_Trailer_small.wmv\" onMouseOver=\"document.theForm.Label.value='Save Low Quality Video';\" onMouseOut=\"document.theForm.Label.value='';\">Save As...</a>&nbsp;&nbsp;<input type=radio name=Size value=1 OnClick=\"window.close();window.open('http://totalgaming.stardock.com/showmovie.asp?URL=http://images3.stardock.com/tgn/TGDN_Trailer_Small.wmv&StatusBar=0&Controls=0&Width=240&Height=176','','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=no,width=350,height=200');\"> <B>Small</B></span>  240x176 Video (801 KB)");
	DisplayWindow.document.write("<BR><span style=\"width:130px;\"><a href=\"http://images3.stardock.com/tgNET/TGDN_Trailer_Med.wmv\" onMouseOver=\"document.theForm.Label.value='Save Medium Quality Video';\" onMouseOut=\"document.theForm.Label.value='';\">Save As...</a>&nbsp;&nbsp;<input type=radio name=Size value=2 OnClick=\"window.close();window.open('http://totalgaming.stardock.com/showmovie.asp?URL=http://images3.stardock.com/tgn/TGDN_Trailer_Med.wmv&StatusBar=0&Controls=0&Width=320&Height=240','','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=no,width=400,height=268');\"> <B>Medium</B></span>  320x240 Video (2,304 KB)");
	DisplayWindow.document.write("<BR><span style=\"width:130px;\"><a href=\"http://images3.stardock.com/tgNET/TGDN_Trailer_Large.wmv\" onMouseOver=\"document.theForm.Label.value='Save High Quality Video';\" onMouseOut=\"document.theForm.Label.value='';\">Save As...</a>&nbsp;&nbsp;<input type=radio name=Size value=3 OnClick=\"window.close();window.open('http://totalgaming.stardock.com/showmovie.asp?URL=http://images3.stardock.com/tgn/TGDN_Trailer_Large.wmv&StatusBar=0&Controls=0&Width=704&Height=576','','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=no,width=730,height=605');\"> <B>Large</B></span> 704x576 Video (4,910 KB)");
	DisplayWindow.document.write("</font>");
	DisplayWindow.document.write("</td></tr></table>");
	DisplayWindow.document.write("<table width=\"100%\" height=1 cellpadding=0 cellspacing=0 bgcolor=\"#000000\" style=\"font-family: arial; font-size: 11px;\"><tr><td></td></tr></table>");
	DisplayWindow.document.write("<table width=\"100%\" cellpadding=8 cellspacing=0><tr><td>");
	DisplayWindow.document.write("<font style=\"font-family: arial; font-size: 11px;\">");
	DisplayWindow.document.write("<B>Note:</B> You must be capable of playing Windows Media Video Files (.wmv). Please visit <a href=\"http://www.microsoft.com/windows/windowsmedia/9series/player.aspx\" target=_Blank onMouseOver=\"document.theForm.Label.value='Download Media Player 9';\" onMouseOut=\"document.theForm.Label.value='';\">Windows Media Player 9 Series</a> to download.");
	DisplayWindow.document.write("</font>");
	DisplayWindow.document.write("</td></tr></table>");
	DisplayWindow.document.write("<table width=\"100%\" height=15 cellpadding=0 bgcolor=\"#999999\" cellspacing=0 style=\"font-family: arial; font-size: 10px; color: #FFFFFF;\"><tr><td><td width=10></td>");
	DisplayWindow.document.write("<td width=155>");
	DisplayWindow.document.write("<input type=text name=Label value=\"\" style=\"width: 100%; background-color: #999999; font-family: arial; font-size: 10px; line-height: 12px; font-family: Arial; margin: 0px; border: 0px; color: #FFFFFF;\">")
	DisplayWindow.document.write("</td><td align=right>");
	DisplayWindow.document.write("<a href=\"http://www.stardock.com/privacy.html\" target=_Blank style=\"font-family: arial; font-size: 10px; color: #FFFFFF; text-decoration: none;\" onMouseOver=\"document.theForm.Label.value='View Privacy Policy';\" onMouseOut=\"document.theForm.Label.value='';\">Privacy Policy</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href=\"http://tgnforums.stardock.com/?ForumID=139\" target=_Blank style=\"font-family: arial; font-size: 10px; color: #FFFFFF; text-decoration: none;\" onMouseOver=\"document.theForm.Label.value='Fequently Asked Questions';\" onMouseOut=\"document.theForm.Label.value='';\">FAQ</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href=\"mailto:support@stardock.com\" target=_Blank style=\"font-family: arial; font-size: 10px; color: #FFFFFF; text-decoration: none;\" onMouseOver=\"document.theForm.Label.value='Contact TotalGaming.net';\" onMouseOut=\"document.theForm.Label.value='';\">Contacts</a>");
	DisplayWindow.document.write("</td><td width=10></td></tr></table></form>");
	DisplayWindow.document.write("</body>");
	DisplayWindow.document.write("</HTML>");
}
function getCookie(name) {
  var dc = document.cookie;
  var prefix = name + "=";
  var begin = dc.indexOf("; " + prefix);
  if (begin == -1) {
    begin = dc.indexOf(prefix);
    if (begin != 0) return null;
  } else
    begin += 2;
  var end = document.cookie.indexOf(";", begin);
  if (end == -1)
    end = dc.length;
  return unescape(dc.substring(begin + prefix.length, end));
}
function setControls(phLoggedIn, phNotLoggedIn)
{
	if (getCookie("AuthCookie")){
		//window.status = 'found cookie';
		//User Logged In
		var foo = document.getElementById(phNotLoggedIn);
		if(foo) foo.style.display='none';
		var foo = document.getElementById(phLoggedIn);
		if(foo) foo.style.display='';
	} else if (getCookie("AuthCookie2")){
		//window.status = 'found cookie';
		//User Logged In
		var foo = document.getElementById(phNotLoggedIn);
		if(foo) foo.style.display='none';
		var foo = document.getElementById(phLoggedIn);
		if(foo) foo.style.display='';
	} else {
		//window.status = 'did not find cookie';
		//User Logged Out
		var foo = document.getElementById(phNotLoggedIn);
		if(foo) foo.style.display='';
		var foo = document.getElementById(phLoggedIn);
		if(foo) foo.style.display='none';
	}

	//window.status = document.cookie;

}
//===============Dynamic Article Functions=========================
function redirectToComments(id)
{
	location.href='#add_' + id;
}
function HideShowComments(id, mode)
{
	if(mode==0){
		document.getElementById('aHideShow_'+ id).href = 'javascript:HideShowComments("'+ id +'", 1);';
		document.getElementById('aHideShow_'+ id).innerText = 'Show Comments';
		document.getElementById('iHideShow_'+ id).src = 'http://images3.stardock.com/tgNet/plus-red.gif';
		document.getElementById('CommentBox1_' + id).style.display = 'none';
		setTimeout("redirectToComments('" + id + "')", 10);
	}else{
		document.getElementById('aHideShow_'+ id).href = 'javascript:HideShowComments("'+ id +'", 0);';
		document.getElementById('aHideShow_'+ id).innerText = 'Hide Comments';
		document.getElementById('iHideShow_'+ id).src = 'http://images3.stardock.com/tgNet/minus-red.gif';
		document.getElementById('CommentBox1_' + id).style.display = '';
	}
}
function HideShowCommentForm(id, mode)
{
	if(mode==0){
		document.getElementById('aHideShowFrm_'+ id).href = 'javascript:HideShowCommentForm("'+ id +'", 1);';
		document.getElementById('aHideShowFrm_'+ id).innerText = 'Add Comment';
		document.getElementById('iHideShowFrm_'+ id).src = 'http://images3.stardock.com/tgNet/plus-red.gif';
		document.getElementById('CommentBox_' + id).style.display = 'none';
	}else{
		document.getElementById('aHideShowFrm_'+ id).href = 'javascript:HideShowCommentForm("'+ id +'", 0);';		
		document.getElementById('aHideShowFrm_' + id).innerText = 'Hide Form';
		document.getElementById('iHideShowFrm_'+ id).src = 'http://images3.stardock.com/tgNet/minus-red.gif';
		document.getElementById('CommentBox_' + id).style.display = '';
		if (document.getElementById('CommentFrmTextArea_' + id)){
			
		}else{
			CommentForm(id);
		}
	}	
}
function CommentForm(id)
{
	if(navigator.userAgent.indexOf('Opera') != -1) { 
		location.href='/articles.aspx?AID='+ id + '&c=1';
	}else{ 
		var sStr;
		sStr = '<div align=left style="width:650px\; font-size: 11px\;">Make a quick comment below: (<span id="Count_'+ id +'">255</span> Left)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <img src="http://images3.stardock.com/tgNET/boxarrow-red.gif"> <a href="javascript:SendToAdvancedForm('+ id +')\;" class="dNavBarText_LinkTo">Advanced Comment Form</a></div>';
		sStr += '<div><textarea name="CommentFrmTextArea_'+ id +'" id="CommentFrmTextArea_'+ id +'" style="width: 650px\; height: 60px\;" onKeyUp="javascript:CheckTextAreaSize(255, \'CommentFrmTextArea_'+ id +'\', \'Count_'+ id +'\');"></textarea></div>';
		sStr += '<div align=left style="width:650px\;" id="SubmitTxt_'+ id +'"><a href="javascript:;" onClick="javascript:SubmitComment_' + id + '(\'' + id + '\');" class="dNavBarText_LinkTo" target="actFrm_'+ id +'"><img src="http://images3.stardock.com/tgNET/btn-submit_quick_comment.gif" border=0></a></div>';
		sStr += '<BR><BR>';
		document.getElementById('CommentBox_' + id).innerHTML = sStr;
	}
}
function Comments(id)
{
	if(navigator.userAgent.indexOf('Opera') != -1) { 
		location.href='/articles.aspx?AID='+ id +'&c=1';
	}else{ 
		document.getElementById('ShowCommentsBtn_' + id).innerHTML = '<span style="background-color: #FF0000;">&nbsp;&nbsp;<B><I>Loading comments. Please wait....</I></B>&nbsp;&nbsp;</span>';
		document.getElementById('ShowCommentsBtn_' + id).style.color='#FFFFFF';
		document.getElementById('ShowCommentsBtn_' + id).style.decoration='none';
	}
}
function Loading(id)
{
	document.getElementById('NavMenuLeft_' + id).innerHTML = '<span style="color: #FF0000;">&nbsp;&nbsp;<B><I>Loading...</I></B>&nbsp;&nbsp;</span>';
	document.getElementById('NavMenuRight_' + id).innerHTML = '';
}
function UpdateInputFieldCounter(iLength, sTextAreaName,sInputFieldName)
{
	var vartxtDesc = document.getElementById(sTextAreaName);
	var varChars = document.getElementById(sInputFieldName);
	varChars.innerHTML = iLength - vartxtDesc.innerHTML.length; 
}
function CheckTextAreaSize(iLength, sTextAreaName, sInputFieldName)
{
	var vartxtDesc = document.getElementById(sTextAreaName);
	if(vartxtDesc.innerHTML.length <= iLength) {	
		UpdateInputFieldCounter(iLength, sTextAreaName,sInputFieldName); 
	}else {
		var str = vartxtDesc.innerHTML;
		vartxtDesc.innerHTML = String(str).substring(0,iLength);
	}
}
function SendToAdvancedForm(id)
{
	location.href='http://'+ document.domain +'/articles.aspx?AID='+ id +'&c=1&jscom=' + escape(document.getElementById('CommentFrmTextArea_'+ id).value) + '#add';
}

//-->