// 20040429// start dans scripts ---------------// preload images		function preloadImages() { //v3.0  		var d=document; if(d.images){ if(!d.p) d.p=new Array();    	var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)    	if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}		}// find objects				function 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=findObj(n,d.layers[i].document);		if(!x && document.getElementById) x=document.getElementById(n); return x;		}		// swap image				function swapImage() { //v3.0		var i,j=0,x,a=swapImage.arguments; document.sr=new Array; for(i=0;i<(a.length-2);i+=3)		if ((x=findObj(a[i]))!=null){document.sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}		}				function swapImgRestore() { //v3.0		var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;		}				// end dans scripts ---------------// start custom scripts ---------------// randam image script #1// HOME PAGE MAIN PROMOTION// show random image on using random number generatorvar randNumber1 = Math.floor(Math.random() * 4);var RDMIMG1 ="";if (randNumber1 == 0){	RDMIMG1 ='<a href="gifts/index.html"><img src="images/promo_top_l_1.jpg" alt="" width="331" height="383"><img src="images/promo_top_r_1.jpg" alt="" width="331" height="383"></a>';	}if (randNumber1 == 1){	RDMIMG1 ='<a href="gifts/index.html"><img src="images/promo_top_l_2.jpg" alt="" width="331" height="383"><img src="images/promo_top_r_2.jpg" alt="" width="331" height="383"></a>';	}if (randNumber1 == 2){	RDMIMG1 ='<a href="gifts/index.html"><img src="images/promo_top_l_3.jpg" alt="" width="331" height="383"><img src="images/promo_top_r_3.jpg" alt="" width="331" height="383"></a>';	}if (randNumber1 == 3){	RDMIMG1 ='<a href="gifts/index.html"><img src="images/promo_top_l_4.jpg" alt="" width="331" height="383"><img src="images/promo_top_r_4.jpg" alt="" width="331" height="383"></a>';	}// randam image script #2// HOME PAGE MINI PROMOTION LEFT// show random image on using random number generatorvar randNumber2 = Math.floor(Math.random() * 3);var RDMIMG2 ="";if (randNumber2 == 0){	RDMIMG2 ='<a href="gifts/accessories.html"><img src="images/promo_l_wallet_1.jpg" alt="Leather Wallet" width="190" height="140" border="0"></a><img src="images/promomini_pipes.gif" alt="" width="1" height="140"><p class="positioncenter"><a href="gifts/accessories.html">Leather Wallet</a></p>';	}if (randNumber2 == 1){	RDMIMG2 ='<a href="gifts/accessories.html"><img src="images/promo_l_paperweight_1.jpg" alt="Glass Paperweight" width="190" height="140" border="0"></a><img src="images/promomini_pipes.gif" alt="" width="1" height="140"><p class="positioncenter"><a href="gifts/accessories.html">Glass Heart-Shaped Paperweight</a></p>';	}if (randNumber2 == 2){	RDMIMG2 ='<a href="gifts/bricabrac.html"><img src="images/promo_l_clock_1.jpg" alt="Glass Paperweight" width="190" height="140" border="0"></a><img src="images/promomini_pipes.gif" alt="" width="1" height="140"><p class="positioncenter"><a href="gifts/bricabrac.html">Retro TV Mini Clock</a></p>';	}if (randNumber2 == 3){	RDMIMG2 ='<a href="gifts/boxes.html"><img src="images/promomini_lft_4.jpg" alt="Glass Paperweight" width="190" height="140" border="0"></a><img src="images/promomini_pipes.gif" alt="" width="1" height="140"><p class="positioncenter"><a href="gifts/boxes.html">Mini Promo Item 4 Left</a></p>';	}if (randNumber2 == 4){	RDMIMG2 ='<a href="gifts/mirrors.html"><img src="images/promomini_lft_4.jpg" alt="Glass Paperweight" width="190" height="140" border="0"></a><img src="images/promomini_pipes.gif" alt="" width="1" height="140"><p class="positioncenter"><a href="gifts/mirrors.html">Mini Promo Item 5 Left</a></p>';	}// randam image script #3// HOME PAGE MINI PROMOTION CENTER// show random image on using random number generatorvar randNumber3 = Math.floor(Math.random() * 2);var RDMIMG3 ="";if (randNumber3 == 0){	RDMIMG3 ='<a href="gifts/boxes.html"><img src="images/promo_c_leather_case_1.jpg" alt="Leather Jewelery Case" width="223" height="140" border="0"></a><p class="positioncenter"><a href="gifts/boxes.html">Leather Jewelery Case</a></p>';	}if (randNumber3 == 1){	RDMIMG3 ='<a href="gifts/accessories.html"><img src="images/promo_c_jewelery_1.jpg" alt="Leather Jewelery Case" width="223" height="140" border="0"></a><p class="positioncenter"><a href="gifts/accessories.html">Cameo Brooch</a></p>';	}if (randNumber3 == 2){	RDMIMG3 ='<a href="gifts/personalcare.html"><img src="images/promomini_ctr_3.jpg" alt="Leather Jewelery Case" width="223" height="140" border="0"></a><p class="positioncenter"><a href="gifts/personalcare.html">Mini Promo Item 3 Center</a></p>';	}if (randNumber3 == 3){	RDMIMG3 ='<a href="gifts/frames.html"><img src="images/promomini_ctr_4.jpg" alt="Leather Jewelery Case" width="223" height="140" border="0"></a><p class="positioncenter"><a href="gifts/frames.html">Mini Promo Item 4 Center</a></p>';	}// randam image script #3// HOME PAGE MINI PROMOTION RIGHT// show random image on using random number generatorvar randNumber4 = Math.floor(Math.random() * 3);var RDMIMG4 ="";if (randNumber4 == 0){	RDMIMG4 ='<img src="images/promomini_pipes.gif" alt="" width="1" height="140"><a href="gifts/bricabrac.html"><img src="images/promo_r_clock_1.jpg" alt="Small Whimsical Clock" width="190" height="140" border="0"></a><p class="positioncenter"><a href="gifts/bricabrac.html">Small Whimsical Clock</a></p>';	}if (randNumber4 == 1){	RDMIMG4 ='<img src="images/promomini_pipes.gif" alt="" width="1" height="140"><a href="gifts/accessories.html"><img src="images/promo_r_paperweight_1.jpg" alt="Inspirational Paperweight" width="190" height="140" border="0"></a><p class="positioncenter"><a href="gifts/accessories.html">Inspirational Paperweight</a></p>';	}if (randNumber4 == 2){	RDMIMG4 ='<img src="images/promomini_pipes.gif" alt="" width="1" height="140"><a href="gifts/accessories.html"><img src="images/promo_r_jewelery_1.jpg" alt="Small Whimsical Clock" width="190" height="140" border="0"></a><p class="positioncenter"><a href="gifts/accessories.html">Cufflinks</a></p>';	}if (randNumber4 == 3){	RDMIMG4 ='<img src="images/promomini_pipes.gif" alt="" width="1" height="140"><a href="gifts/lighting.html"><img src="images/promomini_rgt_4.jpg" alt="Small Whimsical Clock" width="190" height="140" border="0"></a><p class="positioncenter"><a href="gifts/lighting.html">Mini Promo Item 4 Right</a></p>';	}if (randNumber4 == 4){	RDMIMG4 ='<img src="images/promomini_pipes.gif" alt="" width="1" height="140"><a href="gifts/furniture.html"><img src="images/promomini_rgt_4.jpg" alt="Small Whimsical Clock" width="190" height="140" border="0"></a><p class="positioncenter"><a href="gifts/furniture.html">Mini Promo Item 4 Right</a></p>';	}// end custom scripts ---------------