var d=document; var imghl = new Array();
// ************************************* //
function getObj(name){
	return d.getElementById?d.getElementById(name):d.all(name)
}
// ************************************* //
function preload(){
 hl_images = preload.arguments;
 for(i=0; i<hl_images.length; i++){
   imghl[(hl_images[i])]=new Image;
   imghl[(hl_images[i])].src=''+hl_images[i];
 }
} 
// ************************************* //
function swap(n,i){ 
 try{
   if(!swap.arguments.length){
     d[r_n].src=r_s;
   }else{
     r_s=d[n].src;
	 r_n=n;d[n].src=imghl[i].src
   }
 }catch(e){}
}
// ************************************* //
function newWindow1(file,t,l,w,h){
	window.focus();
	if(typeof(msgWindow)=='object') msgWindow.close();
	msgWindow = open('','window1','scrollbars=0,resizable=0,status=1,left='+l+',top='+t+',width='+w+',height='+h);
	msgWindow.location.href = file;
	if(msgWindow.opener == null) msgWindow.opener = self;
}
// ************************************* //
function isDef(obj){
	if( typeof(obj) == 'undefined' || obj == null) return false;
	else return true;
}
// ************************************* //
function get_random(){
	randomNum = '';
	for (i=0; i<2; ++i) {
		tmp = Math.random()*8;	
		randomNum += tmp.toString().replace(".","");
	}
	return randomNum;
}
// ************************************* //
function DrawFlashObject(src,width,height,rannum){
	str = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'">' +
	'<param name="movie" value="'+src+'&amp;rnd='+rannum+'">' +
	'<param name="quality" value="high">' +
	'<embed src="'+src+'&amp;rnd='+rannum+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed>' +
	'</object>';
	document.write(str);
}
