
var theImages_r300x250 = new Array() 
theImages_r300x250[0] = 'http://clickserve.cc-dt.com/link/tplimage?lid=41000000023518695&amp;pubid=21000000000136671';
theImages_r300x250[1] = 'http://ad.linksynergy.com/fs-bin/show?id=msyo6fnsbTU&amp;bids=149729&amp;gridnum=13&amp;catid=-1&amp;subid=0';
theImages_r300x250[2] = 'http://ad.linksynergy.com/fs-bin/show?id=msyo6fnsbTU&amp;bids=127413&amp;gridnum=13&amp;catid=-1&amp;subid=0';
theImages_r300x250[3] = 'http://www.lduhtrp.net/1r101r6Az42ORRQPVRPOQPVTVXSV';
theImages_r300x250[4] = 'http://clickserve.cc-dt.com/link/tplimage?lid=41000000027316878&amp;pubid=21000000000136671';
theImages_r300x250[5] = 'http://clickserve.cc-dt.com/link/tplimage?lid=41000000024622784&pubid=21000000000136671';
theImages_r300x250[6] = 'http://www.awltovhc.com/4381y7B-53PSSRQWRWPRQVXVTQX';
theImages_r300x250[7] = 'http://ad.linksynergy.com/fs-bin/show?id=msyo6fnsbTU&bids=21855&gridnum=13&catid=-1&subid=0';
theImages_r300x250[8] = 'http://www.awltovhc.com/rn68iw-ousDGGFEKFKDFEJELFGG';

var href_url_r300x250= new Array();
                        
href_url_r300x250[0] = 'http://clickserve.cc-dt.com/link/tplclick?lid=41000000023518695&amp;pubid=21000000000136671';
href_url_r300x250[1] = 'http://click.linksynergy.com/fs-bin/click?id=msyo6fnsbTU&amp;offerid=149729&amp;subid=0';
href_url_r300x250[2] = 'http://click.linksynergy.com/fs-bin/click?id=msyo6fnsbTU&amp;offerid=127413&amp;subid=0';
href_url_r300x250[3] = 'http://www.tkqlhce.com/oh70ft1zt0GJJIHNJHGIHNLNPKN';
href_url_r300x250[4] = 'http://clickserve.cc-dt.com/link/tplclick?lid=41000000027316878&amp;pubid=21000000000136671';
href_url_r300x250[5] = 'http://clickserve.cc-dt.com/link/tplclick?lid=41000000024622784&pubid=21000000000136671';
href_url_r300x250[6] = 'http://www.tkqlhce.com/kk65wktqks7AA98E9E798DFDB8F';
href_url_r300x250[7] = 'http://click.linksynergy.com/fs-bin/click?id=msyo6fnsbTU&offerid=21855&subid=0';
href_url_r300x250[8] = 'http://www.tkqlhce.com/lt68kjspjr69987D8D687C7E899';

var image_alt_r300x250= new Array() 
image_alt_r300x250[0] = 'Celebrity Picks - 300x250';
image_alt_r300x250[1] = 'Saks Fifth Avenue';
image_alt_r300x250[2] = 'Net-a-Porter U.S.';
image_alt_r300x250[3] = 'BALMAIN for women';
image_alt_r300x250[4] = 'Click Here';
image_alt_r300x250[5] = 'Shop Vivre - Always in Style';
image_alt_r300x250[6] = 'Click Here';
image_alt_r300x250[7] = 'NORDSTROM.com New Stuart Weitzman Boots';
image_alt_r300x250[8] = '';




var theImages_r160x600 = new Array() 
theImages_r160x600[0] = 'http://www.sephora.com/assets/browse/affiliate/TCase_160x600.jpg';

var href_url_r160x600= new Array() 
href_url_r160x600[0] = 'http://click.linksynergy.com/fs-bin/click?id=5/XW4ivaKWg&offerid=32532.10000417&type=4&subid=0';

var image_alt_r160x600= new Array() 
image_alt_r160x600[0] = 'Sephora.com, Inc.';




var theImages_r728x90 = new Array() 
theImages_r728x90[0] = 'http://www.sephora.com/assets/browse/affiliate/TCase_160x600.jpg';

var href_url_r728x90= new Array() 
href_url_r728x90[0] = 'http://click.linksynergy.com/fs-bin/click?id=5/XW4ivaKWg&amp;offerid=32532.10000417&amp;type=4&amp;subid=0';

var image_alt_r728x90= new Array() 
image_alt_r728x90[0] = 'Sephora.com, Inc.';

//////////////////////////////////////////////////////don't edit below here/////////////////////////////////////
//////////////////////////////////////////////////////don't edit below here/////////////////////////////////////
//////////////////////////////////////////////////////don't edit below here/////////////////////////////////////

var arrayType = new Object();
function getAdType(adType){		
		if(adType=='300x250'){
		arrayType.imagesLocation=theImages_r300x250;
		arrayType.altSrc=image_alt_r300x250;
		arrayType.hrefSrc=href_url_r300x250;
		}
		else if ('160x600'){
		arrayType.imagesLocation=theImages_r160x600;
		arrayType.altSrc=image_alt_r160x600;
		arrayType.hrefSrc=href_url_r160x600;
		}
		else if ('728x90'){
		arrayType.imagesLocation=theImages_r728x90;
		arrayType.altSrc=image_alt_r728x90;
		arrayType.hrefSrc=href_url_r728x90;
		}
	return arrayType;
	}
	
var creativeArray
function getAdProperties(adType){	
	creativeArray = getAdType(adType);	
	var loadImages = new Array();
	var oSrc = new Object();
	for (i = 0; i < creativeArray.imagesLocation.length; i++){
		loadImages[i] = new Image();
		loadImages[i].src = creativeArray.imagesLocation[i];			
		oSrc.imgItem = Math.round(Math.random()*(creativeArray.imagesLocation.length-1));
		oSrc.altTag=creativeArray.altSrc[oSrc.imgItem];		
	}
	return oSrc;	
}

function showImage(w,h){
	var currentI=getAdProperties(w+'x'+h);	
	document.write('<div align="center" style="text-align:center;" id="ad'+w+'x'+h+'_0">');
	document.write('<a href="javascript:open_window(arrayType.hrefSrc['+currentI.imgItem+'])">');
	document.write('<img src="'+arrayType.imagesLocation[currentI.imgItem]+'"alt=""  width="'+w+'" height="'+h+'" border=0>');
	document.write('</a>');
	document.write('</div>');
	}

function open_window(openwindow){	
	myWindow = window.open(openwindow, "newWindow", 'toolbar=yes, scrollbars=yes, location=yes,statusbar=yes, menubar=yes,resizable=yes, width=1000, height=600, left = 40,top = 40');
	}
