var pop_exclusive_handler;
function pop_exclusive ( url, width, height ) {
	if ( !width ) width = 400;
	if ( !height ) height = 525;

	if ( pop_exclusive_handler && !pop_exclusive_handler.closed ) 
		pop_exclusive_handler.close ( ) ;
		
	pop_exclusive_handler = open ( url, "pop_exclusive_handler", "scrollbars=1,width="+width+",height="+height+", top=15,left=15" ) ;	
}



function randOrd(){
	return (Math.round(Math.random())-0.5); 
}
            
function write_vendors ( ) {

	var vendors= new Array ( 6 ) ;
 
	vendors[0]= ['genie90.gif','http://www.geniesolutions.com.au'];
	vendors[1]= ['ibaHealth90.gif','http://www.ibahealth.com'];
	vendors[2]= ['zedmed90.gif','http://www.zedmed.com.au'];
	vendors[3]= ['Locum90.gif','http://www.global-health.com'];
	vendors[4]= ['medtech90.gif','http://www.mdtech.com.au'];
	vendors[5]= ['intraHealth90.gif','http://www.intrahealth.com.au'];
	
	document.write ( '<div style="float:right;margin-left:25px;margin-right:10px;padding-top:75px;"><div class="partner">MIMS partner software vendors</div><div style="border:1px solid #9C6;">' ) ;

	vendors.sort ( randOrd );
	for ( i = 0; i < vendors.length; i++ ) 
		document.write ( '<a style="border-bottom:'+ ( i+1==vendors.length?'0':'1' ) +'px solid #9C6;display:block;" href="'+vendors[i][1]+'" target="_blank"><img  class="partner" src="../resources/images/vendors/'+vendors[i][0]+'" border="0"></a>' ) ;
	
	document.write ( '</div></div>' ) ;

}

function write_header ( ) {
	/*
	document.write ( 
		'<div style="text-align:right;height:48px;background:#9C6;margin:-10px;margin-bottom:4px;"><div style="height:10px;font-size:1;">&nbsp;</div>' + 
		'<a href="mailto:feedback@mims.com.au" target="_top" style="margin-right:2px;"><img onmouseover="swap ( this,\'http://www.mims.com.au/image/aa_feedback1.gif\',\'http://www.mims.com.au/image/aa_feedback2.gif\' ) " border="0" src="http://www.mims.com.au/image/aa_feedback1.gif"></a>' +
		'<a href="http://www.mims.com.au/contact.htm" target="_top" style="margin-right:2px;"><img onmouseover="swap ( this,\'http://www.mims.com.au/image/aa_contact1.gif\',\'http://www.mims.com.au/image/aa_contact2.gif\' ) " border="0" src="http://www.mims.com.au/image/aa_contact1.gif"></a>' +
		'<a href="http://www.mims.com.au/default.htm" target="_top" style="margin-right:2px;"><img onmouseover="swap ( this,\'http://www.mims.com.au/image/aa_mimshome1.gif\',\'http://www.mims.com.au/image/aa_mimshome2.gif\' ) " border="0" src="http://www.mims.com.au/image/aa_mimshome1.gif"></a>' +
		'</div>'
		 ) ;
		 */
		
}

function swap ( source,to,from ) {
	source.src = from;
	source.onmouseout = function ( ) { this.src = to; };
}
