var sCiUrl="http://www.contentinside.net/GKClick.aspx"; var sCiImpUrl="http://log.contentinside.net/ADImp2.aspx"; var sCiGKUrl="http://inserter.contentinside.net/"; var sCiIPageUrl="" var sCiIPPCUrl="http://www.contentinside.net/ppc/call2.aspx" var sCiIPPCImpUrl="http://log.contentinside.net/PPCImp.aspx" var theArrayTitle = new Array(); var theArrayUrl = new Array(); var theArraySubTitle = new Array(); var theArrayImpUrl = new Array(); var theArrayContent = new Array(); var theArrayPPCUrl = new Array(); if(CiAdColorTable==null) var CiAdColorTable="#ffffff"; if(CiAdColorDesplay1==null) var CiAdColorDesplay1="#666666"; if(CiAdColorDesplay2==null) var CiAdColorDesplay2="#000000"; if(CiAdColorDesplay3==null) var CiAdColorDesplay3="#000000"; if(CiAdColorDesplay4==null) var CiAdColorDesplay4=CiAdColorDesplay3; if(CiAdColorTitle==null) var CiAdColorTitle="#0000FF"; if(CiAdColorNotes==null) var CiAdColorNotes="#333333"; if(CiAdColorDomain==null) var CiAdColorDomain="#808080"; if(CiAdColorHead==null) var CiAdColorHead="#f2f2f2"; if(CiAdColorTitleHover==null) var CiAdColorTitleHover="#E1003C"; if(CiAdColorLinka==null) var CiAdColorLinka="#FF0000"; if(CiAdColorLinkb==null) var CiAdColorLinkb="#0000FF"; if(CiAdColorFooter==null) var CiAdColorFooter=CiAdColorHead; if(CiAdColorLinkHot==null) var CiAdColorLinkHot=CiAdColorLinkb; if(CiAdType==null) var CiAdType=1; if(CiAdColorTablecellSpacing==null) var CiAdColorTablecellSpacing="1"; var theArrayOK; function GetCIAD() { var sCIGkpTypeUrl=sCiGKUrl+'pat/gkp'; if(CiAdType<=9) sCIGkpTypeUrl+="0"+CiAdType; else if(CiAdType>9 && CiAdType<13) sCIGkpTypeUrl+=CiAdType; else sCIGkpTypeUrl+="01"; sCIGkpTypeUrl+=".js"; ciDynamicIncludeJs(sCIGkpTypeUrl); } function buildArray(numOfItems, maxNum){ CreateGKPAD(numOfItems, maxNum); } function CreateGKPAD(numOfItems, maxNum){ var sContentADTotal=""; if(maxNum>theArrayTitle.length) maxNum=theArrayTitle.length; if(numOfItems>theArrayTitle.length) numOfItems=theArrayTitle.length; theArrayOK=getRandArray(numOfItems, maxNum); } function getRand(maxNum){ return (Math.ceil(Math.random()*100))%maxNum; } function testNum(testNum, theArray){ testResult = 0; for (i=0; i <= theArray.length; i++){ if (testNum == theArray[i]){ testResult = 1; } } return testResult; } function getRandArray(numOfItems, maxNum){ var theArray1 = new Array(); var theArray2 = new Array(); var y = 0; for (x=0; x < maxNum; x++){ theArray1.push(x); } if(numOfItems>maxNum) numOfItems=maxNum; do { temp = getRand(theArray1.length); theArray2.push(theArray1[temp]); theArray1.splice(temp,1); y++; } while (y < numOfItems); return theArray2; } function ShowKeywordADColor() { try{ if(document.getElementById("CiAdTable")) document.getElementById("CiAdTable").bgColor = CiAdColorTable; if(document.getElementById("CiAdHead")) document.getElementById("CiAdHead").bgColor = CiAdColorHead; if(document.getElementById("CiAdFooter")) document.getElementById("CiAdFooter").bgColor = CiAdColorFooter; if(document.getElementById("CiAdDesplay1")) document.getElementById("CiAdDesplay1").style.color = CiAdColorDesplay1; if(document.getElementById("CiAdDesplay2")) document.getElementById("CiAdDesplay2").style.color = CiAdColorDesplay2; if(document.getElementById("CiAdDesplay3")) document.getElementById("CiAdDesplay3").style.color = CiAdColorDesplay3; var i=0; while ( i< theArrayOK.length) { if(CiAdColorTitle!=null && document.getElementById("CiAdTitle"+i)) document.getElementById("CiAdTitle"+i).style.color = CiAdColorTitle; if(CiAdColorNotes!=null && document.getElementById("CiAdNotes"+i)) document.getElementById("CiAdNotes"+i).style.color = CiAdColorNotes; if(CiAdColorNotes!=null && document.getElementById("CiAdST"+i)) document.getElementById("CiAdST"+i).style.color = CiAdColorDomain; if(CiAdColorLinka!=null && document.getElementById("CiAdLinka"+i)) document.getElementById("CiAdLinka"+i).style.color = CiAdColorLinka; if(CiAdColorLinkb!=null && document.getElementById("CiAdLinkb"+i)) document.getElementById("CiAdLinkb"+i).style.color = CiAdColorLinkb; i++; } }catch(e){} document.getElementById("ctkeywordGKP").style.visibility = "visible"; } function ShowStatus(sMsg) { window.status = sMsg ; return true ; } try{ GetCIAD(); }catch(e){}