// JavaScript Document
		function p$(string){
			document.write(string);
		}
		function $(id){
			return document.getElementById(id);
		}
		function change(){
			if (ver==1){
				with($('f_img').filters[0]){
					Transition=1;
					apply();
					play(); 
				}
			}
			if (firstTime){ firstTime=false;timeOut=_timeOut_/1000;}
			else{	 
				 $('f_img').src=imgUrl[now];
				 $('f_img').alt=imgAlt[now];
				 if(now==0){
				   $('f_img').width=imgWidthFirst;
				 }
				 else{
				   $('f_img').width=imgWidth;
				 }
				   $('f_img').height=imgHeight;
				 $('f_imgLink').href=imgLink[now];
				 if (show_text) $('f_text').innerHTML=imgText[now];		
				 for (var i=0;i<count;i++) {
					$('b'+i).className="button";
					//$('f_menu'+i).className="";
				 }
				 $('b'+now).className="on";	
				 //$('f_menu'+now).className="on";	 
				 now=(now>=imgUrl.length-1)?0:now+1;
				 timeOut=_timeOut_;		 
			}
			theTimer=setTimeout("change()", timeOut);
		}
		function b_change(num){
		  window.clearInterval(theTimer); 
		  now=num;
		  firstTime=false;
		  change();
		}
		//draw line 
		function draw_line(){
			var div = document.createElement("div");	
			div.id = 'f_line';
			$('f_infoDiv').insertBefore(div,$('f_infoDiv').childNodes.item(0));			
		}
		

function newPopup(url) {
 // var source=document.getElementById('hgim');
 // var hcontent = source.innerHTML;
  //hcontent = hcontent.replace(/\.\.\//gi,"/");
 // hcontent = hcontent.replace(/<(\!\-\-\s*Instance).*\-\->/gi,""); 
  //hcontent = hcontent.replace(/\|\s*<a\s*href=\"JavaScript.*<\/a>/gi,"");
 // hcontent = hcontent.replace(/<li\s*class="">/g,"<li>");
 // hcontent = hcontent.replace(/jquery\.galleria\.js/g,"jquery.galleriapop.js");
  var generator=window.open(url,'Zoom', 'height=540,width=450,left=10,top=10,resizable=1,scrollbars=1,toolbar=0,menubar=0,location=0,directories=0,status=0, dependent=1');
 // var target = generator.document.getElementById('hgim');
 // target.innerHTML="<!--"+hcontent;
  //source.innerHTML=url;;
  //newwindow.document.location.href="/hgimage.jsp";

  //newwindow.refresh();
 // var newwindow=window.open('','Zoom', 'height=400,width=800,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,location=yes,directories=1,status=1, dependent=yes');
  /*newwindow.document.writeln('<head>');
  newwindow.document.writeln('<link href="\/css\/hg6j.css" rel="stylesheet" type="text\/css" media="screen"\/>');
  newwindow.document.writeln('<link href="\/css\/hgFeature.css" rel="stylesheet" type="text\/css" media="screen"\/>');
  newwindow.document.writeln('<\/head>\n<body bgcolor=\"black\" class="container">');
  newwindow.document.writeln('<p><a href="javascript:self.close()">Close Popup Box</a></p>');
  newwindow.document.writeln(''+hcontent+'');
  newwindow.document.writeln('<\/body> <\/html>');
  */
  //newwindow.document.close();
  if (window.focus) {generator.focus();}
}

// Based on JavaScript provided by Peter Curtis at www.pcurtis.com -->
function amz_js_PopWin(url,name,options){
  var ContextWindow = window.open(url,name,options);
  ContextWindow.focus();
  return false;
}

