
		<!--This block of JavaScript defines the arguments that should be passed to the viewer and will be referenced in the flashvars argument prior to viewer initialization.  This is where you should substitute your own company name, image name, and config name which can be pulled either from a dynamic source, or hard coded in the page -->
	
		//JavaScript Variables that will be referenced in the viewer initialization and viewer argument list
			var myName=genInstance();	//This needs to match the ID and NAME in the flash initialization below.  This is generated randomly dependant on curent time in order to prevent multiple page instances from interfering with each other by having the same instance name declared
			var viewerType = "genericbrochure";  //this can be changed to basiczoom, genericspin, or genericbrochure but make sure that the parameter references are valid for any other viewer type utilized
			   
		      var imageName = "Ingenix/eCatalog_05-2010";  //IPS ID of eCatalog, or comma seperated list of Company/Image to pass to the viewer
		      var configName = "Ingenix/ShopIngenix NewSite Viewer";  //Viewer configuration settings to use at viewer initialization
		  	
		  	var temp=imageName.split('/');  //splitting image name into company and sku for the email a friend form at the bottom of the page. 
		  	var company=temp[0];
		  	var sku=temp[1];
		
			var temp = configName.split('/');  //splitting config for email a friend form at bottom of page
			var config = temp[1];
		
			var urlPassBack = "";  //This argument can be used to append a string to the url generated by the ecatalog on click of an image map.  For this to function you must be using the loadProduct (or a derivative function) for your HREF template in your image map
		  	var urlCallBack = ""; //This argument can be used to prepend a string to the url for an image map if it does not begin with http:// or https://  For this to function you must be using the loadProduct (or a derivative function) for your HREF template in your image map

			var windowName = ""; //This variable populates the title bar for a window generated through an image map in the ecatalog.  For this to function you must be using the loadProduct (or a derivative function) for your HREF template in your image map
			var windowFeatures = ""; //This variable determines the features and behavior for the new window generated through an image map in the ecatalog.  See documentation for window.open to determine how to formulate this string of arguments and what options are available.    For this to function you must be using the loadProduct (or a derivative function) for your HREF template in your image map

			
		  	//email a friend arguments
			var stateidprep = "&loadStateUrl="+S7Config.contentRoot+"s7ondemand/misc/retrievexml.jsp?stateid=";
			var stateid = getParam("stateid", "");  //used to pull in a stateid appended to the url for passing state information from an email a friend url generated by 

			if (stateid==""){ //check to see if stateid is defined (found in the url call to the page) if not then set stateidprep that passes the state loading request to the viewer to null
			//alert("not defined");//an alert that can be used to test if stateid is found
			stateidprep="";}

			//alert(stateid);  //an alert that can be used to find out if the stateid is correctly parsed
		  	var emailWindowWidth="400";
		  	var emailWindowHeight="400";
		  	
		  	//variable flag used for enlarge view functionality
		  	var enlarge=getParam("el","normal");
		  	var reloadParams="";  //This variable can be used to pass additional arguments to the url call used by the large view / normal view
		  	
  
							    
				var flashvars = {
				}; 
				
				var params = {     //Setup param tag elements for the flash object to embed in the page 
					allowScriptAccess:"Always",
					menu:"false",
					quality:"high",
					scale:"noscale",
					salign:"LT",
					bgcolor:"#ebe8e3"
				};  
				
				var attributes = {  //Setup object tag elements for the flash object to embed in the page
					id: myName,
 					name: myName
				};

 				var viewerUrl = "";  //Build Viewer Path to Viewer swf
 				viewerUrl += S7Config.isViewerRoot;
 				viewerUrl += "flash/" + viewerType + ".swf?";
 				viewerUrl += "&serverUrl=" + S7Config.isRoot;
 				viewerUrl += "&contentRoot=" + S7Config.skinsRoot;
 				viewerUrl += "&instanceName=" + myName;
 				viewerUrl += "&image=" + imageName;
 				viewerUrl += "&config=" + configName;
 				viewerUrl += "&loadStateUrl" + stateidprep + stateid;
 				viewerUrl +="&enlarge=true," + enlarge;
				viewerUrl +="&searchEngineUrl=http://s7search1.scene7.com/s7search/search"
 			 			
 		     
 		     if (enlarge=="large")
 		     swfobject.embedSWF(viewerUrl, "myContent", "1200", "800", "7.0.14.0", "../resources/expressInstall/expressInstall.swf", flashvars, params, attributes);  //Add Viewer to page into the myContent div element, at 600 x 600 pixels, checking for flash version 6,0,65 before allowing initialization to proceed, otherwise show the default div content
      		else
      		swfobject.embedSWF(viewerUrl, "myContent", "960", "735", "7.0.14.0", "../resources/expressInstall/expressInstall.swf", flashvars, params, attributes);  //Add Viewer to page into the myContent div element, at 600 x 600 pixels, checking for flash version 6,0,65 before allowing initialization to proceed, otherwise show the default div content
      		
      	
