
function articles(rn, rm, cp){

	if (document.all.Layer_side2.style.visibility=="hidden"){
		MM_showHideLayers('Layer_side','','show');
		MM_showHideLayers('Layer_side2','','show');
		document.all.Layer_side2.style.height = 430;
	}
	notice.location.href="http://www.pixdine.com/mainFrontNoticeR.aspx?no="+rn+"&cp="+cp+"&rm="+rm;

}

function updown_back(rn, cp, seqNum){

    notice.location.href="http://www.pixdine.com/mainFrontNoticeR.aspx?no="+rn+"&cp="+cp;
	window.Movie.SetVariable("curPG", cp);
	window.Movie.SetVariable("seqNum", seqNum);
	window.Movie.TGotoFrame("/changer", 2);
}



function layerhide() {
	if (document.all.Layer_side2.style.visibility=="visible"){
		MM_showHideLayers('Layer_side2','','hide');
		MM_showHideLayers('Layer_side','','hide');
	}
}


// ?
function MM_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}


// ½ºÅ©·Ñ°ü·Ã
/*
var isDOM = (document.getElementById ? true : false); 
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);

function getRef(id) {
	if (isDOM) return document.getElementById(id);
	if (isIE4) return document.all[id];
	if (isNS4) return document.layers[id];
}

var isNS = navigator.appName == "Netscape";

function moveRightEdge() {
	var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;
	if (isNS4) {
		yMenuFrom   = Layer_side.top;
		yMenuTo     = windows.pageYOffset+(document.body.clientHeight-550); //500
	} else if (isDOM) {
		yMenuFrom   = parseInt (Layer_side.style.top, 10);
		yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop)+(document.body.clientHeight-550); //550
	}
	if( yMenuTo < 600 ) yMenuTo = 600;

	timeoutNextCheck = 500;

	if (yMenuFrom != yMenuTo) {
		yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 10);
		if (yMenuTo < yMenuFrom) yOffset = -yOffset;
		if (isNS4) Layer_side.top += yOffset;
		else if (isDOM) Layer_side.style.top = parseInt (Layer_side.style.top, 10) + yOffset;
		timeoutNextCheck = 10;
	}
	setTimeout ("moveRightEdge()", timeoutNextCheck);
}


if (isNS4) {
	var divMenu = document["Layer_side"];
	divMenu.top = top.pageYOffset + 600;
	divMenu.visibility = "visible";
	moveRightEdge();
} else if (isDOM) {
	var divMenu = getRef('Layer_side');
	divMenu.style.top = (isNS ? window.pageYOffset : document.body.scrollTop) + 600;
	divMenu.style.visibility = "visible";
	moveRightEdge();
}
*/

function printpop() {
	window.open('pop_print.html','','scrollbars=no,resizable=no,width=722,height=439,left=10,top=10'); 
}

function FlashInc(f_name,f_value,f_width,f_height,f_align){
	document.write('<object id="'+f_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="'+f_width+'" height="'+f_height+'">') ;
	document.write('<param name="movie" value="'+f_value+'.swf" />') ;
	document.write('<param name="quality" value="high" />') ;
	document.write('<param name="menu" value="false" />') ;
	document.write('<param name="wmode" value="transparent" />') ;
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<PARAM NAME=scale VALUE=noscale> ');
	document.write('<PARAM NAME="SAlign" VALUE="'+f_align+'">') ;
	document.write('<embed src="'+f_value+'.swf" quality="high" name="'+f_name+'" SAlign="'+f_align+'" scale=noscale width="'+f_width+'" height="'+f_height+'" allowScriptAccess="always"  type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />') ;
	document.write('</object>') ;
}


function showNewsletter() {
	window.open('/newsletter/last/pop_last.html','','scrollbars=no,resizable=no,width=695,height=558,left=10,top=10'); 
}

function requestNewsletter() {
	window.open('/newsletter/pop_apply.aspx','','scrollbars=no,resizable=no,width=374,height=265,left=10,top=10'); 
}

function requestRecruit() {
	window.open('/Recruit/popRecruitInfo.html','','scrollbars=no,resizable=no,width=500,height=720,left=10,top=10'); 
}

function requestAlert() {
	window.open('/popaward.html','','scrollbars=no,resizable=no,width=591,height=630,left=10,top=10'); 
}


//·Î±×°ü·Ã
function pixlog(m1, m2, m3){
	var url = window.location;
//	alert(m1+m2+m3);
//	alert(url);
	logfr.location.href="http://www.pixdine.com/pixdineLog.aspx?m1="+m1+"&m2="+m2+"&m3="+m3+"&url="+url;
}

//´º½º·¹ÅÍ ÃßÃµÇÏ±â
function recNewsletter() {
	window.open('/newsletter/pop_apply_rec.aspx','','scrollbars=no,resizable=no,width=374,height=265,left=10,top=10'); 
}
