var secureConnectionRoom='navigation_text_tab';
var secureConnectionBread='navigation_text';
var base_document=document.getElementsByTagName('base')[0].href;
function XXX_Preload(){
	XXX_Preload_img(
		'imgHome', 'images/i_home_o.gif', 'index.php', 
		'imgWarranty', 'images/i_warranty_o.gif', 'ewarranty.php',
		'imgLogin', 'images/i_login_o.gif', 'login.php',
		'imgShopcart', 'images/i_shopcart_o.gif', 'shopping_cart.php',
		'imgFaq', 'images/i_faq_o.gif', 'faq.php',
		'imgContact', 'images/i_contact_o.gif', 'contact_us.php',
		'imgSitemap', 'images/i_sitemap_o.gif', 'sitemap.php',
		
		'imgTeks', 'images/i_teks_home_a.gif', 'index.php',
		'imgTeks', 'images/i_teks_warranty_a.gif', 'ewarranty.php',
		'imgTeks', 'images/i_teks_login_a.gif', 'login.php',
		'imgTeks', 'images/i_teks_shopcart_a.gif', 'shopping_cart.php',
		'imgTeks', 'images/i_teks_faq_a.gif', 'faq.php',
		'imgTeks', 'images/i_teks_contact_a.gif', 'contact_us.php',
		'imgTeks', 'images/i_teks_sitemap_a.gif', 'sitemap.php',

		'imgSimply', 'images/b_simply_a.gif', 'simply_collection.php',
		'imgBeauty', 'images/b_beautiful_a.gif', 'beautiful_collection.php',
		'imgDesign', 'images/b_design_a.gif', 'design_collection.php',
		'imgSign', 'images/b_signature_a.gif', 'rolletto_series.php',
		'imgSign', 'images/b_signature_a.gif', 'signaturecollection.php',
		'imgSpecials', 'images/b_specials_a.gif', 'specials_offer.php',
		'imgGift', 'images/b_giftideas_a.gif', 'gift_ideas.php',
		'imgTeddy', 'images/b_obear_a.gif', 'teddy_bear.php'
	);

	XXX_Preload_text(
		'orori_title_1', '<img src="'+base_document+'images/headtitle_about_wed.gif">', 'about_wedding_ring.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_announcement.gif">', 'announcement.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_compare_items.gif">', 'advanced_search_result.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_banktransfer.gif">', 'bank_transfer.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_final_confirm.gif">', 'checkout_confirmation.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_checkout_fail.gif">', 'checkout_fail.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_payment_confirm.gif">', 'checkout_payment.php',
		'orori_title_1', '<img src="'+base_document+'images/spacer.gif">', 'checkout_payment_address.php',
		'orori_title_1', '<img src="'+base_document+'images/spacer.gif">', 'checkout_process.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_delivery_info.gif">', 'checkout_shipping.php',
		'orori_title_1', '<img src="'+base_document+'images/spacer.gif">', 'checkout_shipping_address.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_checkout_success.gif">', 'checkout_success.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_contactus.gif">', 'contact_us.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_cookie_usage.gif">', 'cookie_usage.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_member_create.gif">', 'create_account.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_member_create.gif">', 'create_account_success.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_delivery_info.gif">', 'delivery_info.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_warranty.gif">', 'ewarranty.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_faq.gif">', 'faq.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_final_confirm.gif">', 'final_confirm.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_member_login.gif">', 'login.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_member_logoff.gif">', 'logoff.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_news_events.gif">', 'news_events.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_order_status.gif">', 'order_status.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_password_forget.gif">', 'password_forgotten.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_payment_confirm.gif">', 'payment_confirm.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_personal_info.gif">', 'personal_info.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_phone_order.gif">', 'phone_order.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_privacy_policy.gif">', 'privacy_policy.php',
		'orori_title_1', '<img src="'+base_document+'images/spacer.gif">', 'ring.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_ring_customizeit.gif">', 'ring_customize.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_compare_items.gif">', 'search_result.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_ship_cost_calc.gif">', 'shipping_calculator.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_shipping_policy.gif">', 'shipping_policy.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_shop_cart.gif">', 'shopping_cart.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_shop_cart.gif">', 'shoppingcart.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_sitemap.gif">', 'sitemap.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_specials_offer.gif">', 'specials_offer.php',
		'orori_title_1', '<img src="'+base_document+'images/spacer.gif">', 'tell_a_friend.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_wishlist.gif">', 'wishlist.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_wishlist.gif">', 'wishlist_help.php',
		'orori_title_1', '<img src="'+base_document+'images/headtitle_wishlist.gif">', 'wishlist_public.php'
);

	XXX_Preload_SecureConnection_text(
		secureConnectionBread, '<a href="../">Home</a> > <strong>Member Login</strong>', 'login.php',
		secureConnectionBread, '<strong>Personal Info', 'personal_info.php',
		secureConnectionBread, '<strong>Shopping Cart</strong> > Delivery Information > Payment Confirmation > Final Order Confirmation > Finished!', 'shopping_cart.php',
		secureConnectionBread, 'Shopping Cart > <strong>Delivery Information</strong> > Payment Confirmation > Final Order Confirmation > Finished!', 'checkout_shipping.php',
		secureConnectionBread, 'Shopping Cart > Delivery Information > <strong>Payment Confirmation</strong> > Final Order Confirmation > Finished!', 'checkout_payment.php',
		secureConnectionBread, 'Shopping Cart > Delivery Information > Payment Confirmation > <strong>Final Order Confirmation</strong> > Finished!', 'checkout_confirmation.php'

	);

	markActiveLink(
		'e_home','index.php', 
		'e_ewarranty', 'ewarranty.php', 
		'e_login', 'login.php',
		'e_shoppingcart', 'shopping_cart.php',
		'e_faq', 'faq.php',
		'e_contactus', 'contact_us.php',
		'e_sitemap', 'sitemap.php',	
		
		'e_aboutwedding', 'about_wedding_ring.php',
		'e_news_events', 'news_events.php',
		'e_privacypolicy', 'privacy_policy.php',
		'e_shippingpolicy', 'shipping_policy.php',
		'e_termsandconditions', 'terms_conditions.php'
	);
}
function XXX_Preload_img(){
	a=XXX_Preload_img.arguments;
	document.XXX_sr=new Array; 
	for(i=0;i<a.length;i+=3){
		if(a[i+2].toString().indexOf(basename)>=0){if ((x=MM_findObj(a[i]))!=null){x.src=base_document+a[i+1];x.onmouseover=function(){;};x.onmouseout=function(){;}}}		
	}
}
function XXX_Preload_text(){
	a=XXX_Preload_text.arguments;
	document.XXX_textsr=new Array; 
	for(i=0;i<a.length;i+=3){
			
		if(a[i+2].toString().indexOf(basename)>=0){if ((x=MM_findObj(a[i]))!=null){x.innerHTML=a[i+1];}}		
	}
}
function XXX_Preload_title(){
	a=XXX_Preload_title.arguments; 
	for(i=0;i<a.length;i+=3){
		if(a[i+2].toString().indexOf(basename)>=0){
			if(a[i+1]!=''){
				if ((x_10=MM_findObj('header_title_0'))!=null){x_10.style.display='block';}
				if ((x_11=MM_findObj('header_title_1'))!=null){x_11.style.display='block';}
				if ((x_2=MM_findObj('header_title_content'))!=null){
					x_2.style.display='block';}

				if ((x=MM_findObj(a[i]))!=null){
					x.innerHTML=a[i+1];
				}
			}
		}		
	}
}
function XXX_Preload_SecureConnection_text(){
	a=XXX_Preload_SecureConnection_text.arguments;
	if(window.location.protocol=='https:'){
		if ((x=MM_findObj(secureConnectionRoom))!=null){x.style.display='block';}
		for(i=0;i<a.length;i+=3){
			if(a[i+2].toString().indexOf(basename)>=0){if ((x=MM_findObj(a[i]))!=null){x.innerHTML=a[i+1];}}		
		}
	}
}

function markActiveLink(){
	a=markActiveLink.arguments;
	for(i=0;i<a.length;i+=2){
		if(a[i+1].toString().indexOf(basename)>=0){if ((x=MM_findObj(a[i]))!=null){
			ancs=x.getElementsByTagName('a');
			x.innerHTML='<span class="textBoldGreen">'+ancs[0].innerHTML+'</span>';
		}
	}		
	}	
}

MM_preloadImages(base_document+'images/btn_bear_signature_o.gif',base_document+'images/btn_bear_design_o.gif',base_document+'images/btn_bear_beauty_o.gif',base_document+'images/btn_bear_simply_o.gif',base_document+'images/b_giftideas_o.gif',base_document+'images/b_simply_o.gif',base_document+'images/b_beautiful_o.gif',base_document+'images/b_design_o.gif',base_document+'images/b_signature_o.gif',base_document+'images/i_home_h.gif',base_document+'images/i_teks_home.gif',base_document+'images/i_warranty_h.gif',base_document+'images/i_teks_warranty.gif',base_document+'images/i_login_h.gif',base_document+'images/i_teks_login.gif',base_document+'images/i_shopcart_h.gif',base_document+'images/i_teks_shopcart.gif',base_document+'images/i_faq_h.gif',base_document+'images/i_teks_faq.gif',base_document+'images/i_contact_h.gif',base_document+'images/i_teks_contact.gif',base_document+'images/i_sitemap_h.gif',base_document+'images/i_teks_sitemap.gif',base_document+'images/btn_next_o.gif');
onloadRegister(XXX_Preload);