  function emailPage()
  {
      eval("window.open('http://www.ydesigns.biz/tools/email-a-friend/?storename=yhst-87796159854445&theURL="+window.location+"','email_popup','menubar=no,scrollbars=no,width=500,height=420')");  
  }

 function changepage()
  {
 var value2;
 value2 = document.getElementById('select1').options[document.getElementById('select1').selectedIndex].value;
 window.location=value2;
  }


function expandImage(imgLoc,imgH,imgW)
  {
imgH = imgH * 1; imgW = imgW * 1;
var X = window.screen.availHeight;
var Y = window.screen.availWidth;
X = X - 100;  Y = Y - 50;
if(X > (imgH + 90))	
{ X = (imgH + 90); }
if(Y > (imgW + 40))	
{ Y = (imgW + 40); }
if(Y<210){	Y = 210;	}
  var popWin = window.open('','','toolbar=0, location=0,status=0,menubar=0,resizable=0,scrollbars=1,width='+Y+',height=' + X);
  popWin.document.open();
  popWin.document.write('<ht'+'ml><he'+'ad><ti'+'tle>SteelHawkAirsoft.com</tit'+'le></he'+'ad><bo'+'dy>');
  popWin.document.write('<img alt="loading expanded image... please wait..." name=mainImage src='+imgLoc+' border=0>');
  popWin.document.write('<br><br><font face=verdana,arial,helvetica size=2><b><center><a href="javascript:window.close()"><b><font color=15325A>Close Window</a>');
  popWin.document.write('</body></html>');
  popWin.document.close();
  popWin.moveTo(50,50);
  }
  
  function itemDataTabsnewhome(){
	var wrapper = document.getElementById("itemDataTabshome");
	if(wrapper){
		tabs = wrapper.getElementsByTagName("DIV");
		for(i=0;i<tabs.length;i++){
			var s = tabs[i].id;
			var subs = s.substring(0,3)
			if(subs == "tab"){
				//******* SET INITIAL STYLE FOR DEFAULT TAB *********
				if(tabs[i].id == activeItemDataTab){
					if(tabs[i].id == "tabComplete"){
						tabs[i].className = "itemTabLinkPinkOnnew";
					}else{
						tabs[i].className = "itemTabLinkOnhome";
					}
				}else{
					tabs[i].className = "itemTabLinkOffhome";
				}
				if(tabs[i].id != "tabBlank"){
					//******* MOUSEOVER EVENT ********//
					tabs[i].onmouseover=function(){
						if(this.id == "tabComplete"){
							this.className = "itemTabLinkPinkOnnew";
						}else{
							this.className = "itemTabLinkOnMouseOver";
							activeItemDataTabobj.className = "itemTabLinkOffhome";
						    if(this.id == "tabComplete"){
							  this.className = "itemTabLinkPinkOnnew";
						    }else if(this.id == "tabDetailshome"){
							  wrapper.className = "tabItemDetailsOnhome";
							  this.className = "itemTabLinkOnhome";
						    }else if(this.id == "tabhome2"){
							  wrapper.className = "tabhome2Onhome";
							  this.className = "itemTabLinkOnhome";
						    }else if(this.id == "tabhome3"){
						    	wrapper.className = "tabhome3Onhome";
							  this.className = "itemTabLinkOnhome";
						    }else if(this.id == "tabhome4"){
							   wrapper.className = "tabhome4Onhome";
							   this.className = "itemTabLinkOnhome";
						    }else if(this.id == "tabhome5"){
							  wrapper.className = "tabhome5Onhome";
							  this.className = "itemTabLinkOnhome";
						    }else if(this.id == "tabhome6"){
							  wrapper.className = "tabhome6Onhome";
							  this.className = "itemTabLinkOnhome";
						    }else{
							  this.className = "itemTabLinkOnhome";
						    }
						}
					}
					//******* MOUSEOUT EVENT ********//
					tabs[i].onmouseout=function(){
						if(activeItemDataTab != this.id){
							this.className = "itemTabLinkOffhome";
						}
					}
					//******* ONCLICK EVENT ********//
					tabs[i].onclick=function(){
						activeItemDataTab = this.id;
						activeItemDataTabobj = this;
						//** RESET CONTENT DIVS AND TAB IMGS
						resetItemDataTabshome();
						//** SET ON CLASSNAME
						if(this.id == "tabComplete"){
							this.className = "itemTabLinkPinkOnnew";
						}else if(this.id == "tabDetailshome"){
							wrapper.className = "tabItemDetailsOnhome";
							this.className = "itemTabLinkOnhome";
						}else if(this.id == "tabhome2"){
							wrapper.className = "tabhome2Onhome";
							this.className = "itemTabLinkOnhome";
						}else if(this.id == "tabhome3"){
							wrapper.className = "tabhome3Onhome";
							this.className = "itemTabLinkOnhome";
						}else if(this.id == "tabhome4"){
							wrapper.className = "tabhome4Onhome";
							this.className = "itemTabLinkOnhome";
						}else if(this.id == "tabhome5"){
							wrapper.className = "tabhome5Onhome";
							this.className = "itemTabLinkOnhome";
						}else if(this.id == "tabhome6"){
							wrapper.className = "tabhome6Onhome";
							this.className = "itemTabLinkOnhome";
						}else{
							this.className = "itemTabLinkOnhome";
						}
						
						//** SET ON CONTENT
						var elem = this.id;
						document.getElementById(elem + "Content").style.display = "block";
					}
				if(tabs[i].id != activeItemDataTab){
					document.getElementById(tabs[i].id + "Content").style.display = "none";
				}
				}
			}
		}
	}
}
/**** ITEM DATA TABS FUNCTIONS ****/
function itemDataTabsnew(){
	var wrapper = document.getElementById("itemDataTabs");
	if(wrapper){
		tabs = wrapper.getElementsByTagName("DIV");
		for(i=0;i<tabs.length;i++){
			var s = tabs[i].id;
			var subs = s.substring(0,3)
			if(subs == "tab"){
				//******* SET INITIAL STYLE FOR DEFAULT TAB *********
				if(tabs[i].id == activeItemDataTab){
					if(tabs[i].id == "tabComplete"){
						tabs[i].className = "itemTabLinkPinkOnnew";
					}else{
						tabs[i].className = "itemTabLinkOnnew";
					}
				}else{
					tabs[i].className = "itemTabLinkOffnew";
				}
				if(tabs[i].id != "tabBlank"){
					//******* MOUSEOVER EVENT ********//
					tabs[i].onmouseover=function(){
						if(this.id == "tabComplete"){
							this.className = "itemTabLinkPinkOnnew";
						}else{
							this.className = "itemTabLinkOnnew";
						}
					}
					//******* MOUSEOUT EVENT ********//
					tabs[i].onmouseout=function(){
						if(activeItemDataTab != this.id){
							this.className = "itemTabLinkOffnew";
						}
					}
					//******* ONCLICK EVENT ********//
					tabs[i].onclick=function(){
						activeItemDataTab = this.id;
						//** RESET CONTENT DIVS AND TAB IMGS
						resetItemDataTabsnew();
						//** SET ON CLASSNAME
						if(this.id == "tabComplete"){
							this.className = "itemTabLinkPinkOnnew";
						}else if(this.id == "tabDetails"){
							wrapper.className = "tabItemDetailsOnnew";
							this.className = "itemTabLinkOnnew";
						}else if(this.id == "tabAccess"){
							wrapper.className = "tabAccessOn";
							this.className = "itemTabLinkOnnew";
						}else if(this.id == "tabDescription"){
							wrapper.className = "tabDescriptionOn";
							this.className = "itemTabLinkOnnew";	
						}else if(this.id == "tabNutrition"){
							wrapper.className = "tabNutritionOn";
							this.className = "itemTabLinkOnnew";
						}else if(this.id == "tabReviews"){
							wrapper.className = "tabReviewsOn";
							this.className = "itemTabLinkOnnew";	
						}else if(this.id == "tabFyi"){
							wrapper.className = "tabFyiOnnew";
							this.className = "itemTabLinkOnnew";
						}else{
							this.className = "itemTabLinkOnnew";
						}
						
						//** SET ON CONTENT
						var elem = this.id;
						document.getElementById(elem + "Content").style.display = "block";
					}
				if(tabs[i].id != activeItemDataTab){
					document.getElementById(tabs[i].id + "Content").style.display = "none";
				}
				}
			}
		}
	}
}
function resetItemDataTabsnew(){
	var itemDataTabs = document.getElementById("itemDataTabs");
	var tabs = itemDataTabs.getElementsByTagName("DIV");
	for(i=0;i<tabs.length;i++){
		var s = tabs[i].id;
		var subs = s.substring(0,3)
		if(subs == "tab"){
			tabs[i].className = "itemTabLinkOffnew";
			if(tabs[i].id != "tabBlank"){
				document.getElementById(s + "Content").style.display = "none";
			}
		}
	}
}

function resetItemDataTabshome(){
	var itemDataTabs = document.getElementById("itemDataTabshome");
	var tabs = itemDataTabs.getElementsByTagName("DIV");
	for(i=0;i<tabs.length;i++){
		var s = tabs[i].id;
		var subs = s.substring(0,3)
		if(subs == "tab"){
			tabs[i].className = "itemTabLinkOffhome";
			if(tabs[i].id != "tabBlank"){
				document.getElementById(s + "Content").style.display = "none";
			}
		}
	}
}



function itemDataTabsimage(){
	var wrapper = document.getElementById("itemDataTabsimage");
	if(wrapper){
		tabs = wrapper.getElementsByTagName("DIV");
		for(i=0;i<tabs.length;i++){
			var s = tabs[i].id;
			var subs = s.substring(0,3)
			if(subs == "tab"){
				//******* SET INITIAL STYLE FOR DEFAULT TAB *********
				if(tabs[i].id == activeItemDataTab){
					if(tabs[i].id == "tabComplete"){
						tabs[i].className = "itemTabLinkPinkOn";
					}else{
						tabs[i].className = "itemTabLinkOn";
					}
				}else{
					tabs[i].className = "itemTabLinkOff";
				}
				if(tabs[i].id != "tabBlank"){
					//******* MOUSEOVER EVENT ********//
					tabs[i].onmouseover=function(){
						if(this.id == "tabComplete"){
							this.className = "itemTabLinkPinkOn";
						}else{
							this.className = "itemTabLinkOn";
						}
					}
					//******* MOUSEOUT EVENT ********//
					tabs[i].onmouseout=function(){
						if(activeItemDataTab != this.id){
							this.className = "itemTabLinkOff";
						}
					}
					//******* ONCLICK EVENT ********//
					tabs[i].onclick=function(){
						activeItemDataTab = this.id;
						
						//** RESET CONTENT DIVS AND TAB IMGS
						resetItemDataTabsimage();
						//** SET ON CLASSNAME
						if(this.id == "tabComplete"){
							this.className = "itemTabLinkPinkOn";
						}else if(this.id == "tabImage"){
							wrapper.className = "tabItemImageOn";
							this.className = "itemTabLinkOn";
						}else if(this.id == "tabVideo"){
							wrapper.className = "tabVideoOn";
							this.className = "itemTabLinkOn";
						}else{
							this.className = "itemTabLinkOn";
						}
						
						//** SET ON CONTENT
						var elem = this.id;
						document.getElementById(elem + "Content").style.display = "block";
					}
				if(tabs[i].id != activeItemDataTab){
					document.getElementById(tabs[i].id + "Content").style.display = "none";
				}
				}
			}
		}
	}
}
function resetItemDataTabsimage(){
	var itemDataTabs = document.getElementById("itemDataTabsimage");
	var tabs = itemDataTabs.getElementsByTagName("DIV");
	for(i=0;i<tabs.length;i++){
		var s = tabs[i].id;
		var subs = s.substring(0,3)
		if(subs == "tab"){
			tabs[i].className = "itemTabLinkOff";
			if(tabs[i].id != "tabBlank"){
				document.getElementById(s + "Content").style.display = "none";
			}
		}
	}
}



/**** ITEM DATA TABS FUNCTIONS FOR QUICK SHOP ****/
function itemDataTabsQsnew(){
	var wrapper = document.getElementById("qsitemDataTabs");
	if(wrapper){
		tabs = wrapper.getElementsByTagName("DIV");
		for(i=0;i<tabs.length;i++){
			var s = tabs[i].id;
			var subs = s.substring(0,5)
			if(subs == "qstab"){
				//******* SET INITIAL STYLE FOR DEFAULT TAB *********
				if(tabs[i].id == activeItemDataTab){
					if(tabs[i].id == "qstabComplete"){
						tabs[i].className = "qsitemTabLinkPinkOn";
					}else{
						tabs[i].className = "qsitemTabLinkOn";
					}
				}else{
					tabs[i].className = "qsitemTabLinkOff";
				}
				if(tabs[i].id != "qstabBlank"){
					//******* MOUSEOVER EVENT ********//
					tabs[i].onmouseover=function(){
						if(this.id == "qstabComplete"){
							this.className = "qsitemTabLinkPinkOn";
						}else{
							this.className = "qsitemTabLinkOn";
						}
					}
					//******* MOUSEOUT EVENT ********//
					tabs[i].onmouseout=function(){
						if(activeItemDataTab != this.id){
							this.className = "qsitemTabLinkOff";
						}
					}
					//******* ONCLICK EVENT ********//
					tabs[i].onclick=function(){
						activeItemDataTab = this.id;
						//** RESET CONTENT DIVS AND TAB IMGS
						resetItemDataTabsQsnew();
						//** SET ON CLASSNAME
						if(this.id == "qstabComplete"){
							this.className = "qsitemTabLinkPinkOn";
						}else{
							this.className = "qsitemTabLinkOn";
						}
						//** SET ON CONTENT
						var elem = this.id;
						document.getElementById(elem + "Content").style.display = "block";
					}
				if(tabs[i].id != activeItemDataTab){
					document.getElementById(tabs[i].id + "Content").style.display = "none";
				}
				}
			}
		}
	}
}
function resetItemDataTabsQsnew(){
	var itemDataTabs = document.getElementById("qsitemDataTabs");
	var tabs = itemDataTabs.getElementsByTagName("DIV");
	for(i=0;i<tabs.length;i++){
		var s = tabs[i].id;
		var subs = s.substring(0,5)
		if(subs == "qstab"){
			tabs[i].className = "qsitemTabLinkOff";
			if(tabs[i].id != "qstabBlank"){
				document.getElementById(s + "Content").style.display = "none";
			}
		}
	}
}

