Menu00Off = new Image; Menu00Off.src = "img/home_off.gif";
Menu00On = new Image; Menu00On.src = "img/home_on.gif";
Menu01Off = new Image; Menu01Off.src = "img/products_off.gif";
Menu01On = new Image; Menu01On.src = "img/products_on.gif";
Menu02Off = new Image; Menu02Off.src = "img/gallery_off.gif";
Menu02On = new Image; Menu02On.src = "img/gallery_on.gif";
Menu03Off = new Image; Menu03Off.src = "img/sitemap_on.gif";
Menu03On = new Image; Menu03On.src = "img/sitemap_off.gif";
Menu04Off = new Image; Menu04Off.src = "img/links_off.gif";
Menu04On = new Image; Menu04On.src = "img/links_on.gif";
Menu05Off = new Image; Menu05Off.src = "img/contactus_on.gif";
Menu05On = new Image; Menu05On.src = "img/contactus_off.gif";
Menu06Off = new Image; Menu06Off.src = "img/apparel_off.gif";
Menu06On = new Image; Menu06On.src = "img/apparel_on.gif";


function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

var a = 0;
function rotatePhoto(s) { 
	window.setTimeout('changePhoto()', s*500) 
}

function changePhoto()
{
	a = a + 1;  
	if (a==11) a = 1;

	document.photo.src="randompics/photo" + a + ".gif";
	rotatePhoto(6);
}
	
	
var WindowObjectReference = null; // global variable
var PreviousUrl; /* global variable which will store the url currently in the secondary window */

function openRequestedSinglePopup(strUrl, w, h)
{
  if(WindowObjectReference == null || WindowObjectReference.closed)
  {
   WindowObjectReference = window.open(strUrl, "SingleSecondaryWindowName", "toolbar=no,titlebar=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,Width=" + w + ",height=" + h);
  }
  else if(previousUrl != strUrl)
  {
   WindowObjectReference = window.open(strUrl, "SingleSecondaryWindowName", "toolbar=no,titlebar=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,Width=" + w + ",height=" + h);
    /* if the resource to load is different,
       then we load it in the already opened secondary window and then
       we bring such window back on top/in front of its parent window. */
   WindowObjectReference.focus();
  }
  else
  {
    WindowObjectReference.focus();
  };
  PreviousUrl = strUrl;
  /* explanation: we store the current url in order to compare url
     in the event of another call of this function. */
}

 function ch_video(v_embed) {
  document.getElementById('video_window').innerHTML = "<object width='512' height='384'><param name='movie' value='http://www.youtube.com/v/" + v_embed + "&hl=en&fs=1&rel=0'></param><param name='allowFullScreen' value='true'></param><embed src='http://www.youtube.com/v/" + v_embed + "&hl=en&fs=1&rel=0' type='application/x-shockwave-flash' allowfullscreen='true' width='512' height='384'></embed></object>";
 }

 function ch_vid(v_embed) {
  document.getElementById('video').innerHTML = "<object width='512' height='384'><param name='movie' value='http://www.youtube.com/v/" + v_embed + "&hl=en&fs=1&rel=0'></param><param name='allowFullScreen' value='true'></param><embed src='http://www.youtube.com/v/" + v_embed + "&hl=en&fs=1&rel=0' type='application/x-shockwave-flash' allowfullscreen='true' width='512' height='384'></embed></object>";
 }

 function ch_featureproduct(v_url, v_src, v_alt) {
  document.getElementById('featureproduct').innerHTML = "<a href=" + v_url + "><img style='border: none;' src=" + v_src + " alt='" + v_alt + "' /></a><br />";
 }


function CreateBookmarkLink() { title = document.title;   
        // Blogger - Replace with <$BlogItemTitle$>   
        // MovableType - Replace with <$MTEntryTitle$> 
        url = document.URL;  
        // Blogger - Replace with <$BlogItemPermalinkURL$>   
        // MovableType - Replace with <$MTEntryPermalink$>  
        // WordPress - <?php bloginfo('url'); ?>	
        if (window.sidebar) { 
        // Mozilla Firefox Bookmark		
        window.sidebar.addPanel(title, url,"");	} 
        else if( window.external ) 
        { // IE Favorite		
        window.external.AddFavorite( url, title); }	
        else if(window.opera && window.print) 
        { // Opera Hotlist		
        return true; } 
        } 