var domain ='';
//------------------------------------------------------------------------------
function datecode(){
weekday=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
month=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
timeA = new Date();
document.write('<b>'+weekday[timeA.getDay()]+",  "+month[timeA.getMonth()]+"  "+timeA.getDate()+",  "+timeA.getFullYear()+"</b>");
}



//-----------------------------------------------------------------------------------------
function newwindow(who) 
{ 
if(who == 1)
{
var popup = window.open("http://www.wonderfulbuys.com/tellfriend.html","wb","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,alwaysRaised=yes,width=400,height=350,left=230,top=130"); }
else
var popup1 = window.open("http://www.wonderfulbuys.com/popups/whyfromwb.html","wb","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,alwaysRaised=yes,width=365,height=500,left=230,top=130");
}

function openWindow(){
popupWin=window.open('http://gm12.com/app/campaigner/services/optinlist/processoptinrequest.jsp?oilb=6047430','openWin','screenX=0,screenY=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=400,height=350,statusbars=no,titlebar=no');
}
//-------------------------------------------------------------------------------------------
// just arrived 'LINK','PRODUCT NAME'
var just_arrived=[
['http://secure.cyberbrands.com/as-seen-on-tv/description.php?lang=2&sort=id&target=new&page=0&id=537','Grease Bullet'],
['http://secure.cyberbrands.com/as-seen-on-tv/description.php?lang=2&path=41&sort=id&page=0&id=513','Sweep N Mop'],
['http://secure.cyberbrands.com/as-seen-on-tv/description.php?lang=2&sort=id&target=new&page=0&id=526','Urinegone'],
['http://secure.cyberbrands.com/as-seen-on-tv/description.php?lang=2&path=36&id=480','Floam'],
['http://secure.cyberbrands.com/as-seen-on-tv/description.php?lang=2&path=77&sort=id&page=20&id=178','EverLife Flashlight'],
['http://www.cyberbrands.com/pub/swivelsweeper.html','Swivel Sweeper'],
['http://www.cyberbrands.com/pub/whitelight.html','White Light'],
['http://secure.cyberbrands.com/as-seen-on-tv/description.php?lang=2&path=39&sort=id&page=20&id=212','Hardwood Restorer'],
['http://www.cyberbrands.com/pub/simoniz.html','Cyclone'],
['http://www.cyberbrands.com/pub/floam.html','Floam'],
['http://www.cyberbrands.com/pub/bakenfill.html','Bake N Fill'],
['http://secure.cyberbrands.com/as-seen-on-tv/description.php?lang=2&path=29&id=178','EverLife Flashlight'],
['http://www.cyberbrands.com/pub/walkfit.html','WalkFit'],
['http://www.cyberbrands.com/pub/kaboombowlblaster.html','Kaboom Bowl Blaster'],
['http://www.cyberbrands.com/pub/new.html','Owl Optical Light'],
['http://www.cyberbrands.com/pub/smartspin.html','Smartspin'],
['http://www.cyberbrands.com/pub/hardwoodrestorer.html','Hardwood Refinisher'],
['http://www.cyberbrands.com/pub/gripnflip.html','Grip N Flip'],
['http://www.cyberbrands.com/pub/popsadent.html','Titanium Turbo'],
['http://www.cyberbrands.com/pub/glasswizard.html','Glass Wizard']




];

//SPECIAL FEATURES 'LINK','NAME'
var special_features =[
['http://www.cyberbrands.com/pub/return.html','30 day money back guarantee'],
['http://www.cyberbrands.com/pub/privacy.html','Privacy Policy']
];

//left col last rows 
var link_array=[
['http://www.cyberbrands.com/pub/tracking.html','Order Tracking'],
['http://www.cyberbrands.com/pub/new.html','New Products'],
['http://www.cyberbrands.com/pub/entry.html','Specials']
];
//_________________________________________________________________________
//                                      DO NOT EDIT BELOW THIS LINE ..
//___________________________________________________________________________
function write_table()
{
	document.write('<table width="100%" border="0" cellspacing="1" cellpadding="1" class="justarrivedstyles">');
	document.write('<tr><td width="4" align="center">&nbsp;</td><td><b>Just arrived</b></td></tr>');
	for(i=0;i<just_arrived.length;i++)
	{
		document.write('<tr><td width="4" valign="top" align="center"><a href="'+domain+just_arrived[i][0]+'">&#149;</a></td>');
		document.write('<td><a href="'+domain+just_arrived[i][0]+'">'+just_arrived[i][1]+'</a></td></tr>');
	}
	document.write('<tr><td width="4" valign="top" align="center"></td>');
	document.write('<td><b>Special features</b></td></tr>');
	for(i=0;i<special_features.length;i++)
	{
		document.write('<tr><td width="4" valign="top" align="center"><a href="'+domain+special_features[i][0]+'">&#149;</a></td>');
		document.write('<td><a href="'+domain+special_features[i][0]+'">'+special_features[i][1]+'</a></td></tr>');
	}
	document.write('<tr><td colspan="2"><br></td></tr>');
	document.write('<tr><td colspan="2"><table width="90%" border="0" cellspacing="1" cellpadding="1" class="justarrivedstyles">');
	for(i=0;i<link_array.length;i++)
		document.write('<tr><td valign="top" bgcolor="#cg2326"><img src="images/redtriangle.gif" width="5" height="10" align="absmiddle" border="0">&nbsp;<a href="'+domain+link_array[i][0]+'"style="color:white">'+link_array[i][1]+'</a></td></tr>');
	document.write('</table></td></tr></table>');
}

// Added by Sheetal for index page on 15th April 03.

function write_table1()
{
	document.write('<table width="100%" border="0" cellspacing="1" cellpadding="1" class="justarrivedstyles">');
	document.write('<tr><td width="4" align="center">&nbsp;</td><td><b>Just arrived</b></td></tr>');
	for(i=0;i<just_arrived.length;i++)
	{
		document.write('<tr><td width="4" valign="top" align="center"><a href="'+domain+just_arrived[i][0]+'">&#149;</a></td>');
		document.write('<td><a href="'+domain+just_arrived[i][0]+'">'+just_arrived[i][1]+'</a></td></tr>');
	}
	document.write('</table>');
}

//_______________________________________________________________________________________________________
//		Details popup opener.
//________________________________________________________________________________________________________
var windetail= null;
function detailsWindow(mypage){
LeftPosition=(screen.width)?(screen.width-400)/2:100;
TopPosition=(screen.height)?(screen.height-300)/2:100;
settings='width=400,height=300,top='+TopPosition+',left='+LeftPosition+',scrollbars=0,location=0,directories=0,status=0,menubar=0,toolbar=0,resizable=0';
windetail=window.open(mypage,'myname',settings);
windetail.focus();
}
//______________________________________________________________________________________________________
function write_store_table(){
document.write('<table width="100%" border="0" cellspacing="1" cellpadding="0" class="justarrivedstyles">');
document.write('<tr><td valign="top">');
write_table();
document.write('</td>');
document.write('<td background="http://www.wonderfulbuys.com/images/backv.gif" width="1"></td></tr></table>');
}
//________________________________________________________________________________________________

//Break out of frames

function breakout_of_frame()
{
  // see http://www.thesitewizard.com/archive/framebreak.shtml
  // for an explanation of this script and how to use it on your
  // own website
  if (top.location != location) {
    top.location.href = document.location.href ;
  }
}




