//
// /ct/ct.js
// /ct/ct2.js
//


/* get userAgent add y.m 111022 */

var os, ua = navigator.userAgent;
if (ua.match(/Windows Phone/)) {
	os = "Windows Phone";
}
if (ua.match(/Win(dows )?NT 6\.1/)) {
	os = "Windows 7";			
}
else if (ua.match(/Win(dows )?NT 6\.0/)) {
	os = "Windows Vista";				
}
else if (ua.match(/Win(dows )?NT 5\.2/)) {
	os = "Windows Server 2003";		
}
else if (ua.match(/Win(dows )?(NT 5\.1|XP)/)) {
	os = "Windows XP";				
}
else if (ua.match(/Win(dows)? (9x 4\.90|ME)/)) {
	os = "Windows ME";				
}
else if (ua.match(/Win(dows )?(NT 5\.0|2000)/)) {
	os = "Windows 2000";			
}
else if (ua.match(/Win(dows )?98/)) {
	os = "Windows 98";				
}
else if (ua.match(/Win(dows )?NT( 4\.0)?/)) {
	os = "Windows NT";				
}
else if (ua.match(/Win(dows )?95/)) {
	os = "Windows 95";				
}
else if (ua.match(/iPad/)) {
	os = "Apple iPad";
}
else if (ua.match(/iPhone/)) {
	os = "Apple iPhone";	
}
else if (ua.match(/iPod/)) {
	os = "Apple iPod touch";			
}
else if (ua.match(/Android/)) {
	os = "1.5+ Android";
}
else if (ua.match(/dream/)) {
	os = "Pre 1.5 Android";				
}
else if (ua.match(/CUPCAKE/)) {
	os = "1.5+ Android";		
}
else if (ua.match(/blackberry9500/)) {
	os = "blackberry";	
}
else if (ua.match(/blackberry9530/)) {
	os = "blackberry";			
}
else if (ua.match(/blackberry9520/)) {
	os = "blackberry";
}
else if (ua.match(/blackberry9550/)) {
	os = "blackberry";	
}
else if (ua.match(/blackberry9800/)) {
	os = "blackberry";	
}
else if (ua.match(/webOS/)) {
	os = "Palm Pre Experimental";
}
else if (ua.match(/incognito/)) {
	os = "Other iPhone browser";
}
else if (ua.match(/webmate/)) {
	os = "Other iPhone browser";
}
else if (ua.match(/Mac|PPC/)) {
	os = "Mac OS";				
}
else if (ua.match(/Linux/)) {
	os = "Linux";					
}
else if (ua.match(/(Free|Net|Open)BSD/)) {
	os = RegExp.$1 + "BSD";				
}
else if (ua.match(/SunOS/)) {
	os = "Solaris";				
}

else {
	os = "new_"+ua;				
}

s.eVar4=os;
s.prop21=s.eVar4;
s.eVar5=s.u;
s.prop22=s.eVar5;
/* get userAgent add y.m 111022 */



//** Google Analytics 2/2 [date:2009.07.28] **//

try {
var pageTracker = _gat._getTracker("UA-8860447-1");
pageTracker._trackPageview();
} catch(err) {}

function tracking(code){
	try{
		pageTracker._trackPageview(code);
	}catch(e){
	}
}

//** SiteCatalyst 2/2 [date:2010.09.01] **//

/* SIGNAL code version: 1.0 */

function s_codeSetting(){
	s.pageName="";
	pcd=(s.pathConcatDelim=="")?"":s.pathConcatDelim;
	if (typeof(gs_pageType)!='undefined'&& gs_pageType!=""){
		s.pageType=gs_pageType;
	}else{
		if(typeof(gs_pageName)!='undefined' && gs_pageName!=""){
			s.pageName=gs_pageName;
			s.hier1=gs_pageName;
		}else{
			gs_pageName=s.getPageName();
			s.pageName=(gs_siteIDAlign=="right")?gs_pageName+'['+gs_siteID+']':gs_siteID+gs_pageName;
			gs_pageName=(s.defaultPage=="")?gs_pageName.replace(pcd+pcd,pcd+gs_hierDefault+pcd):gs_pageName;
			s.hier1=(gs_pageName.lastIndexOf(pcd)==(gs_pageName.length-1))?gs_siteID+gs_pageName+gs_hierDefault:gs_siteID+gs_pageName;
		}
	}
	s.server=(typeof(gs_server)!='undefined'&& gs_server!="")?gs_server:document.domain;
	s.channel=(typeof(gs_channel)!='undefined'&& gs_channel!="")?gs_channel:document.domain+pcd+s.getFolderName(1,1);
	s.channel=s.channel.replace(/(.+)\/$/,"$1")+pcd;
	s.prop1=document.URL;
	s.prop2=(typeof(gs_title)!='undefined'&& gs_title!="")?gs_title:document.title;

	if(!s.prop3 && s.getQueryParam('natm')){
		s.prop3=s.getQueryParam('natm');
	}else if(!s.prop3 && s.getQueryParam('rbas')){
		if(!s.prop3)s.prop3=s.getQueryParam('rbas');
	}
	var x=s.getQueryParam('rbsc');
	if(!s.prop4&&x)s.prop4=x;
	if(!s.prop3)s.prop3=s.getQueryParam('prop3');
	if(!s.prop4)s.prop4=s.getQueryParam('prop4');
	if(!s.prop5)s.prop5=s.getQueryParam('prop5');
	if(!s.prop6)s.prop6=s.getQueryParam('prop6');

	if(!s.prop3)s.prop3="otherCt";
	if(!s.prop4)s.prop4="otherCt";
	if(!s.prop5)s.prop5="otherCt";
	if(!s.prop6)s.prop6="otherCt";
}


/******* Plug-in Setting *******/
/* SIGNAL Setting */
gs_siteIDAlign="right";
gs_siteID=document.domain;
gs_hierDefault="defaultPage"

/* getPageName Setting*/
s.defaultPage="index.html";
s.pathExcludeList="";
s.queryVarsList="";
s.pathConcatDelim="/";

/******* SiteCatalyst Plug-in code *******/
/* Plugin: getPageName v2.2s */
s.getPageName=new Function(""
+"var s=this,"
+"cs=(s.pathConcatDelim)?s.pathConcatDelim:'/',"
+"l=location,"
+"q=l.search.substring(1),"
+"p=l.pathname.substring(1),"
+"p=p.split('/');"
+"pn='';"
+"var i=0,j=0;"
+"for(j=0;j<p.length;j++){"
+"	if(p[j].length>0){"
+"		pn+=cs;"
+"		if(s.pathExcludeList){"
+"			if((',' + s.pathExcludeList + ',').indexOf(',' + p[j] + ',')<0) pn+=p[j];"
+"		}else{"
+"			pn+=p[j];"
+"		}"
+"	}else{"
+"		pn+=cs;"
+"		if(s.defaultPage.length>0){"
+"			pn+=s.defaultPage"
+"		}"
+"	}"
+"}"
+"if(q.length>0){"
+"	if(s.queryVarsList){"
+"		var qpa=new Array(),qv=s.split(s.queryVarsList,','),qp=s.split(q,'&'),tmp,idx;"
+"		for(i=0;i<qp.length;i++){"
+"			tmp=s.split(qp[i],'=');"
+"			qpa[i]=tmp[0]"
+"		}"
+"		for(i=0;i<qv.length;i++){"
+"			idx=s.ia(qpa,qv[i]);"
+"			if(idx>=0){"
+"				pn+=cs;pn+=qp[idx];"
+"			}"
+"		}"
+"	}"
+"}"
+"if(pn.length==0) pn=cs;"
+"return pn;");

/* Plugin: getFolderName v1.0s */
s.getFolderName=new Function("n","a",""
+"var p=s.wd.location.pathname,pa=p.split('/');"
+"if(a=='1' && pa[pa.length-1].indexOf('.')>-1) pa[pa.length-1]='';"
+"if(pa[0]==''){"
+" for(var i=0;i<pa.length;i++){"
+"  pa[i]=i!=pa.length?pa[i+1]:null;"
+" }"
+"}"
+"return pa[parseInt(n)-1]?pa[parseInt(n)-1]:'';");


/******* shared function *******/
/* Utility Function: p_c */
s.p_c=new Function("v","c",""
+"var x=v.indexOf('=');return c.toLowerCase()==v.substring(0,x<0?v.le"
+"ngth:x).toLowerCase()?v:0");

/* Utility Function: split v1.5 */
s.split=new Function("l","d",""
+"var i,x=0,a=new Array;while(l){i=l.indexOf(d);i=i>-1?i:l.length;a[x"
+"++]=l.substring(0,i);l=l.substring(i+d.length);}return a");

/* Utility Function: ia */
s.ia=new Function("ar","v",""
+"for(var i=0;i<ar.length;i++){if(ar[i]==v)return i}return -1");

/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
s_codeSetting();
var s_code=s.t();if(s_code)document.write(s_code);

