function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function open_window(theURL) { //v2.0
  window.open(theURL,"","toolbar=yes,scrollbars=yes,resizable=yes,width=700");
}
function attach_file( p_script_url ) {
      // create new script element, set its relative URL, and load it
      script = document.createElement( 'script' );
      script.src = p_script_url;
      document.getElementsByTagName( 'head' )[0].appendChild( script );
}
function preLoadImages(){
	var t='<layer top="-100" left="0" visibility="hide"><div style="position:absolute; top:-100px; left:0px; visibility:hidden">';
	for(i=0;i<arguments.length;i++)t+='<img src="'+arguments[i]+'" height="10" width="10">';
	t+='</div></layer>';
	document.write(t);
}
function rotate() {
	thisAd++ ;
	if (thisAd == imgCt) thisAd = 0;
	var idElement = document.getElementById('myPhotos');
 	if (idElement != null) {
	 	idElement.innerHTML="<img src=" +adImages[thisAd]+" name='Photos' alt='Photos' class='image_inside' />"; 		
 	}
}
function startpic(){
	setInterval("rotate()","6000")
}
