function update_video(videoname){
document.getElementById('video_src').src="video_file.asp?video="+videoname
}

function openFooter(dept_id) {

		if(document.getElementById('footer_'+dept_id).style.visibility == "visible") {
				document.getElementById('footer_title_'+dept_id).style.display='none'; 
                return; // cannot sl
		}
				
		document.getElementById('footer_100011').style.visibility = "hidden";  
		document.getElementById('footer_100012').style.visibility = "hidden";  
		document.getElementById('footer_100013').style.visibility = "hidden"; 
		document.getElementById('footer_press').style.visibility = "hidden";  
		document.getElementById('footer_title_100011').style.display='inline'; 
		document.getElementById('footer_title_100012').style.display='inline'; 
		document.getElementById('footer_title_100013').style.display='inline';  
		
		document.getElementById('footer_title_'+dept_id).style.display='none'; 
		//document.getElementById('footer_'+dept_id).style.display='inline';
		promoSlideDown('footer_'+dept_id);
	}
	
	
function openPressFooter(dept_id) {
		
		if(document.getElementById('footer_press').style.visibility == "visible") { 
                return; // cannot sl
		}
				
		document.getElementById('footer_100011').style.visibility = "hidden";  
		document.getElementById('footer_100012').style.visibility = "hidden";  
		document.getElementById('footer_100013').style.visibility = "hidden";  
		document.getElementById('footer_press').style.visibility = "hidden"; 
		document.getElementById('footer_title_100011').style.display='inline'; 
		document.getElementById('footer_title_100012').style.display='inline'; 
		document.getElementById('footer_title_100013').style.display='inline';  
		 
		promoSlideDown('footer_press');
	}
	
	
	
function offFooter(dept_id) {
		 document.getElementById('footer_title_'+dept_id).style.display='inline'; 
		//document.getElementById('footer_'+dept_id).style.display='inline';
		 
	}
	
	
 function promoSlideDown(slideID) { 
		slideup = document.getElementById(slideID);
		var broswerType=navigator.appVersion
		if (broswerType.indexOf('MSIE') > 1 ) {
				slideup.style.filter="revealTrans(Duration=1,Transition=5)";
				slideup.filters[0].Apply(); 
				slideup.filters[0].Play(); 
				slideup.style.visibility = "visible";  
		} else { 
			 slideup.style.visibility = "visible"; 
		}	
		
	 } 
	
 function promoSlideUp(slideID) { 
		slideup = document.getElementById(slideID);
		var broswerType=navigator.appVersion
		if (broswerType.indexOf('MSIE') > 1 ) {
				slideup.style.filter="revealTrans(Duration=1,Transition=4)";
				slideup.filters[0].Apply();  
				slideup.filters[0].Play(); 
				slideup.style.visibility = "visible";  
		} else { 
			 slideup.style.visibility = "visible"; 
		}	
		
	 } 
	 
	 
 function promoSlideUpDisplay(slideID) { 
		slideup = document.getElementById(slideID);
		var broswerType=navigator.appVersion
		if (broswerType.indexOf('MSIE') > 1 ) {
				slideup.style.filter="revealTrans(Duration=1,Transition=4)";
				slideup.filters[0].Apply();  
				slideup.filters[0].Play(); 
				slideup.style.display = "none";  
		} else { 
			 slideup.style.display = "none"; 
		}	
		
	 } 
	 
	 
	 
 function promoSlideDownDisplay(slideID) { 
		slideup = document.getElementById(slideID);
		var broswerType=navigator.appVersion
		if (broswerType.indexOf('MSIE') > 1 ) {
				slideup.style.filter="revealTrans(Duration=1,Transition=5)";
				slideup.filters[0].Apply();  
				slideup.filters[0].Play(); 
				slideup.style.display = "inline";  
		} else { 
			 slideup.style.display = "inline"; 
		}	
		
	 } 
	 
	 
function open_close_section(section_id, section_id_close) {
	promoSlideUpDisplay(section_id_close); 
	document.getElementById(section_id_close + '_title').style.backgroundColor = '#c5c5c5';
	document.getElementById(section_id_close + '_img').src = 'images/arrow_right_closed.gif';
		
	if (document.getElementById(section_id).style.display == 'none') {
		//document.getElementById(section_id).style.display = 'inline';
		promoSlideDownDisplay(section_id);
		document.getElementById(section_id + '_title').style.backgroundColor = '#959595';
		document.getElementById(section_id + '_img').src = 'images/arrow_down_TR.png';
	} else {
		
		promoSlideUpDisplay(section_id);
		//document.getElementById(section_id).style.display= 'none';
		document.getElementById(section_id + '_title').style.backgroundColor = '#c5c5c5';
		document.getElementById(section_id + '_img').src = 'images/arrow_right_closed.gif';
	}
}

function changetab(tabID, theImg, theImg2, theLink, theTarget) {
		
		document.getElementById('tab1').className = 'hp_tab';
		document.getElementById('tab2').className = 'hp_tab';
		document.getElementById('tab3').className = 'hp_tab';
		document.getElementById('tab4').className = 'hp_tab'; 
		 
		document.getElementById('hp_mainFeature').style.background= 'url(' + theImg + ')';
		document.getElementById('hp_mainFeature').style.backgroundRepeat= 'no-repeat'; 
		//document.getElementById('hp_topPanel').style.background= 'url(' + theImg2 + ')';
		//document.getElementById('hp_topPanel').style.backgroundRepeat= 'no-repeat'; 
		document.getElementById('headLink').href= theLink; 
		document.getElementById('headLink').target=theTarget;
		document.getElementById(tabID).className = 'hp_tab_on';
		 
	}
	 

function ScrollDivLeft(div_id){ 
	
	if (document.getElementById(div_id).scrollLeft > 0 ) {
		document.getElementById(div_id).scrollLeft =  document.getElementById(div_id).scrollLeft - 180;
	} 
}


function ScrollDivRight(div_id){  
	if (document.getElementById(div_id).scrollLeft < document.getElementById(div_id).scrollWidth) {
		document.getElementById(div_id).scrollLeft =  document.getElementById(div_id).scrollLeft + 180;
	}  
}



function display_checkout_info(the_action,the_plus){

	if(document.getElementById(the_action).style.display=='none')
	{
		//slideup('registerForm');
		slideup('shippingForm');
		slideup('billingForm');
		//slideup('deliveryForm');
		//slideup('ccForm');
		slideup('promoForm');
		
		//document.getElementById('arrow_register').src='images/account_arrow_closed.gif';
		document.getElementById('arrow_shipping').src='images/account_arrow_closed.gif';
		document.getElementById('arrow_billing').src='images/account_arrow_closed.gif';
		//document.getElementById('arrow_delivery').src='images/account_arrow_closed.gif';
		//document.getElementById('arrow_cc').src='images/account_arrow_closed.gif';
		document.getElementById('arrow_promo').src='images/account_arrow_closed.gif';
		
		slidedown3(the_action)
		//promoSlideDownDisplay (the_action)
		document.getElementById(the_plus).src='images/account_arrow_open.gif';
	}
	else{
		slideup(the_action) 
		document.getElementById(the_plus).src='images/account_arrow_closed.gif';
	}

}



function display_checkout_sub_info(the_action,the_plus){

	if(document.getElementById(the_action).style.display=='none')
	{	
		if (document.getElementById('shippingViewList')) {
			slideup('shippingViewList'); 
			document.getElementById('arrow_shipping_view_list').src='images/account_sub_arrow_closed.gif';
		}; 
		
		slideup('shippingEditForm'); 
		document.getElementById('arrow_shipping_edit_form').src='images/account_sub_arrow_closed.gif'; 
		 
		slidedown5(the_action,'shippingForm') 
		//promoSlideDownDisplay (the_action)
		document.getElementById(the_plus).src='images/account_sub_arrow_open.gif';
	}
	else{
	
		slideup(the_action) 
		document.getElementById(the_plus).src='images/account_sub_arrow_closed.gif';
	
	}

}



function display_account_info(the_action,the_plus){

	if(document.getElementById(the_action).style.display=='none')
	{
		slideup('profileForm');
		slideup('paymentForm'); 
		slideup('shipping'); 
		slideup('pending_list');
		slideup('order_list');
		slideup('wish_list');  
		
		document.getElementById('arrow_profile').src='images/account_arrow_closed.gif';
		document.getElementById('arrow_payment').src='images/account_arrow_closed.gif';
		document.getElementById('arrow_shipping').src='images/account_arrow_closed.gif';
		document.getElementById('arrow_pending_list').src='images/account_arrow_closed.gif';
		document.getElementById('arrow_order_list').src='images/account_arrow_closed.gif';
		document.getElementById('arrow_wish_list').src='images/account_arrow_closed.gif'; 
		
		slidedown3(the_action)
		//promoSlideDownDisplay (the_action)
		document.getElementById(the_plus).src='images/account_arrow_open.gif';
		
		//if (the_action == 'paymentForm') {
		//	slidedown5('ccForm','paymentForm');
		//} else if (the_action == 'shipping') {
		//	slidedown5('ship_list','shipping');
		//} 
	}
	else{
		slideup(the_action) 
		document.getElementById(the_plus).src='images/account_arrow_closed.gif';
	}

}



function display_account_sub_info(the_action,the_plus){
	var parent_action;
	
	if(document.getElementById(the_action).style.display=='none')
	{
		//slideup('ccForm');
		slideup('billingForm');
		slideup('ship_list');
		slideup('shippingForm');
		
		//document.getElementById('arrow_cc_form').src='images/account_sub_arrow_closed.gif';
		document.getElementById('arrow_billing_form').src='images/account_sub_arrow_closed.gif'; 
		document.getElementById('arrow_ship_list').src='images/account_sub_arrow_closed.gif';
		document.getElementById('arrow_shipping_form').src='images/account_sub_arrow_closed.gif'; 
		
		if (the_action == 'billingForm' || the_action == 'ccForm'){
			parent_action = 'paymentForm';
		} else if (the_action == 'ship_list' || the_action == 'shippingForm') {
			parent_action = 'shipping';
		} 
		
		slidedown5(the_action,parent_action)
		//promoSlideDownDisplay (the_action)
		document.getElementById(the_plus).src='images/account_sub_arrow_open.gif';
	}
	else{
		slideup(the_action) 
		document.getElementById(the_plus).src='images/account_sub_arrow_closed.gif';
	}

}



function clear_field(the_text,the_element){
	if (document.getElementById(the_element).value==the_text)
		{
			document.getElementById(the_element).value=''
		}
}


function updateCart(){ 
	setTimeout("submitCart();",1); }

function submitCart()
{  document.cartForm.submit(); }
