function regular() 
{
	window.open('#COMMENTS_LINK_ONLY#','325x300','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=325,height=300')
}


function show_clip() 
{
	window.open('#SERVERLOCATION#/xta-asp/show_clipping.asp','Save','toolbar=yes,status=no,resizable=yes,scrollbars=yes,width=486,height=400,left=0,top=0,screenX=0,screenY=0,outerwidth=500,outerheight=400')
}

function clear_clip() 
{
	window.open('#SERVERLOCATION#/xta-asp/clear_clipping.asp','Show','toolbar=no,status=no,scrollbars=yes,width=486,height=100,left=0,top=0,screenX=0,screenY=0,outerwidth=500,outerheight=100')
}

function save_clip() 
{
	var browser=navigator.platform;
	ismac=false;
	if((browser.indexOf("Mac") != -1))ismac=true;
	if((browser.indexOf("mac") != -1))ismac=true;

	if(navigator.appName=="Netscape")
	{
	   q=document.getSelection();
	   for(i=0;i<frames.length;i++)
		  {q=frames[i].document.getSelection();
		  if(q)break;
	   }
	}

	if(navigator.appName=="Microsoft Internet Explorer" && ismac)
	{
	q=(document.getSelection());
	for(i=0;i<document.frames.length;i++)
		{q=document.frames[i].getSelection.createRange().text};
	//alert ("Q="+q); CAN't GET IT TO SAVE SELECTION!!!
	}

	if(navigator.appName=="Microsoft Internet Explorer" && !ismac)
	{

	  q=(document.frames.length?'':document.selection.createRange().text);
	  for(i=0;i<document.frames.length;i++)
		{q=document.frames[i].document.selection.createRange().text};
	}


	//document.writeln("browser="+navigator.appName);
	hvar="#SERVERLOCATION#/xta-asp/save_clipping.asp?type=2&vpath=#VPATH#&storyid=#STORYID#&edate=#EDATE#&contents=" + escape(q);
	window.open(hvar,'Save','toolbar=no,status=no,scrollbars=yes,width=486,height=200,left=0,top=0,screenX=0,screenY=0,outerwidth=500,outerheight=200')
}


function setVariables(){
	if (navigator.appName == "Netscape") {
	v=".top=";h=".left=";dS="document.";sD="";
	y="window.pageYOffset";x="window.pageXOffset";}
	else {h=".pixelLeft=";v=".pixelTop=";dS="";sD=".style";
	y="document.body.scrollTop";x="document.body.scrollLeft";}checkLocationA()}
	movex=0,movey=0,xdiff=550,ydiff=0,ystart=0,xstart=550
	function checkLocation(){
	object="object1";yy=eval(y);xx=eval(x);ydiff=ystart-yy;xdiff=xstart-550-xx;
	if ((ydiff<(-1))||(ydiff>(1))) movey=Math.round(ydiff/10),ystart-=movey
	if ((xdiff<(-1))||(xdiff>(1))) movex=Math.round(xdiff/10),xstart-=movex
	eval(dS+object+sD+v+ystart);eval(dS+object+sD+h+xstart);
	setTimeout("checkLocation()",10)
}

function checkLocationA(){ystart=eval(y);xstart=550+eval(x);}

function look()
{
	iti=document.change.menu.selectedIndex;
	image=document.change.menu.options[iti].value;
	document.leftnav_cov.src= "http://www.macleans.ca/xta-doc/" + image + "/covertw.jpg";
}

function Jmp_Issue()
{
iti=document.change.menu.selectedIndex;
image=document.change.menu.options[iti].value;
window.top.location="http://www.macleans.ca/xta-asp/storyview.asp?viewtype=browse&tpl=browse_frame&vpath=/" + image + "/Cover/index.shtml";
}
      
function Big_Pic()
{
	iti=document.change.menu.selectedIndex;
	image=document.change.menu.options[iti].value;
	document.leftnav_cov.src=image + "covertw.jpg";
}

function Change_Pic(iti)
{
	image=iti;
	document.top_cov.src=image + "";
}


function myVoid() {} 

function Jmp_Gallery()
{
	iti=document.change.menu.selectedIndex;
	image=document.change.menu.options[iti].value;
	window.location=image + "index.shtml";
} 

function Change_Gal(iti)
{
	image=iti;
	document.gallery_i.src=image + "";
}

